mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 02:08:12 +03:00
166aadc4e1
I need a table view widget for this thing, so I'm also using this to prototype a model/view thingy.
20 lines
372 B
C++
20 lines
372 B
C++
#pragma once
|
|
|
|
class GModelIndex {
|
|
public:
|
|
GModelIndex() { }
|
|
GModelIndex(int row, int column)
|
|
: m_row(row)
|
|
, m_column(column)
|
|
{
|
|
}
|
|
|
|
bool is_valid() const { return m_row != -1 && m_column != -1; }
|
|
int row() const { return m_row; }
|
|
int column() const { return m_column; }
|
|
|
|
private:
|
|
int m_row { -1 };
|
|
int m_column { -1 };
|
|
};
|