Debian Codegraph @

hiro/gtk/widget/hex-edit.hpp

raw
1 #if defined(Hiro_HexEdit)
2
3 namespace hiro {
4
5 struct pHexEdit : pWidget {
6 Declare(HexEdit, Widget)
7
8 auto focused() const -> bool override;
9 auto setAddress(u32 address) -> void;
10 auto setBackgroundColor(Color color) -> void;
11 auto setColumns(u32 columns) -> void;
12 auto setForegroundColor(Color color) -> void;
13 auto setLength(u32 length) -> void;
14 auto setRows(u32 rows) -> void;
15 auto update() -> void;
16
17 auto cursorPosition() -> u32;
18 auto keyPress(u32 scancode, u32 mask) -> bool;
19 auto rows() -> s32;
20 auto rowsScrollable() -> s32;
21 auto scroll(s32 position) -> void;
22 auto setCursorPosition(u32 position) -> void;
23 auto setScroll() -> void;
24 auto updateScroll() -> void;
25
26 GtkWidget* container = nullptr;
27 GtkWidget* subWidget = nullptr;
28 GtkWidget* scrollBar = nullptr;
29 GtkTextBuffer* textBuffer = nullptr;
30 GtkTextMark* textCursor = nullptr;
31 };
32
33 }
34
35 #endif