Debian Codegraph @

hiro/gtk/widget/text-edit.hpp

raw
1 #if defined(Hiro_TextEdit)
2
3 namespace hiro {
4
5 struct pTextEdit : pWidget {
6 Declare(TextEdit, Widget)
7
8 auto focused() const -> bool override;
9 auto setBackgroundColor(Color color) -> void;
10 auto setEditable(bool editable) -> void;
11 auto setFocused() -> void override;
12 auto setForegroundColor(Color color) -> void;
13 auto setText(const string& text) -> void;
14 auto setTextCursor(TextCursor textCursor) -> void;
15 auto setWordWrap(bool wordWrap) -> void;
16 auto text() const -> string;
17 auto textCursor() const -> TextCursor;
18
19 GtkWidget* subWidget = nullptr;
20 GtkTextBuffer* textBuffer = nullptr;
21 };
22
23 }
24
25 #endif