Debian Codegraph @

hiro/gtk/widget/icon-view.hpp

raw
1 #if defined(Hiro_IconView)
2
3 namespace hiro {
4
5 struct pIconView : pWidget {
6 Declare(IconView, Widget)
7
8 auto append(sIconViewItem item) -> void;
9 auto remove(sIconViewItem item) -> void;
10 auto reset() -> void override;
11 auto setBackgroundColor(Color color) -> void;
12 auto setBatchable(bool batchable) -> void;
13 auto setFlow(Orientation flow) -> void;
14 auto setForegroundColor(Color color) -> void;
15 auto setGeometry(Geometry geometry) -> void override;
16 auto setItemIcon(u32 position, const image& icon) -> void;
17 auto setItemSelected(u32 position, bool selected) -> void;
18 auto setItemSelected(const std::vector<s32>& selections) -> void;
19 auto setItemSelectedAll() -> void;
20 auto setItemSelectedNone() -> void;
21 auto setItemText(u32 position, const string& text) -> void;
22 auto setOrientation(Orientation orientation) -> void;
23
24 auto _updateSelected() -> void;
25
26 GtkWidget* subWidget = nullptr;
27 GtkListStore* store = nullptr;
28 std::vector<u32> currentSelection;
29 };
30
31 }
32
33 #endif