Debian Codegraph @

hiro/gtk/widget/tree-view-item.hpp

raw
1 #if defined(Hiro_TreeView)
2
3 namespace hiro {
4
5 struct pTreeViewItem : pObject {
6 Declare(TreeViewItem, Object)
7
8 auto append(sTreeViewItem item) -> void;
9 auto remove(sTreeViewItem item) -> void;
10 auto setBackgroundColor(Color color) -> void;
11 auto setCheckable(bool checkable) -> void;
12 auto setChecked(bool checked) -> void;
13 auto setExpanded(bool expanded) -> void;
14 auto setFocused() -> void override;
15 auto setForegroundColor(Color color) -> void;
16 auto setIcon(const image& icon) -> void;
17 auto setSelected() -> void;
18 auto setText(const string& text) -> void;
19
20 auto _minimumWidth(u32 depth = 0) -> u32;
21 auto _parentItem() -> pTreeViewItem*;
22 auto _parentWidget() -> pTreeView*;
23 auto _updateWidth() -> void;
24
25 GtkTreeIter gtkIter;
26 u32 _width = 0;
27 };
28
29 }
30
31 #endif