Debian Codegraph @

hiro/gtk/widget/table-view.hpp

raw
1 #if defined(Hiro_TableView)
2
3 namespace hiro {
4
5 struct pTableView : pWidget {
6 Declare(TableView, Widget)
7
8 auto append(sTableViewColumn column) -> void;
9 auto append(sTableViewItem item) -> void;
10 auto focused() const -> bool override;
11 auto remove(sTableViewColumn column) -> void;
12 auto remove(sTableViewItem item) -> void;
13 auto resizeColumns() -> void;
14 auto setAlignment(Alignment alignment) -> void;
15 auto setBackgroundColor(Color color) -> void;
16 auto setBatchable(bool batchable) -> void;
17 auto setBordered(bool bordered) -> void;
18 auto setFocused() -> void override;
19 auto setFont(const Font& font) -> void override;
20 auto setForegroundColor(Color color) -> void;
21 auto setGeometry(Geometry geometry) -> void override;
22 auto setHeadered(bool headered) -> void;
23 auto setSortable(bool sortable) -> void;
24
25 auto _cellWidth(u32 row, u32 column) -> u32;
26 auto _columnWidth(u32 column) -> u32;
27 auto _createModel() -> void;
28 auto _doActivate(GtkTreePath* = nullptr, GtkTreeViewColumn* = nullptr) -> void;
29 auto _doChange() -> void;
30 auto _doContext() -> void;
31 auto _doDataFunc(GtkTreeViewColumn* column, GtkCellRenderer* renderer, GtkTreeIter* iter) -> void;
32 auto _doEdit(GtkCellRendererText* gtkCellRendererText, const char* path, const char* text) -> void;
33 auto _doEvent(GdkEventButton* event) -> s32;
34 auto _doHeaderActivate(GtkTreeViewColumn* column) -> void;
35 auto _doKeyPress(GdkEventKey* event) -> bool;
36 auto _doMouseMove() -> s32;
37 auto _doToggle(GtkCellRendererToggle* gtkCellRendererToggle, const char* path) -> void;
38 auto _updateRulesHint() -> void;
39 auto _updateSelected() -> void;
40 auto _width(u32 column) -> u32;
41
42 GtkScrolledWindow* gtkScrolledWindow = nullptr;
43 GtkWidget* gtkWidgetChild = nullptr;
44 GtkTreeView* gtkTreeView = nullptr;
45 GtkTreeSelection* gtkTreeSelection = nullptr;
46 GtkListStore* gtkListStore = nullptr;
47 GtkTreeModel* gtkTreeModel = nullptr;
48 GtkEntry* gtkEntry = nullptr;
49 std::vector<u32> currentSelection;
50 bool suppressChange = false;
51 };
52
53 }
54
55 #endif