mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:08:12 +00:00
ProcessManager: Start working on a graphical process manager.
I need a table view widget for this thing, so I'm also using this to prototype a model/view thingy.
This commit is contained in:
parent
dda9b9ab1b
commit
166aadc4e1
14 changed files with 467 additions and 1 deletions
19
LibGUI/GModelIndex.h
Normal file
19
LibGUI/GModelIndex.h
Normal file
|
@ -0,0 +1,19 @@
|
|||
#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 };
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue