summaryrefslogtreecommitdiff
path: root/ui.hpp
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-12-31 23:38:11 +1100
committerquou <quou@disroot.org>2024-12-31 23:38:11 +1100
commit96b27fe9841e537614962e273ef9f0802365ea6d (patch)
treed1373862f700a83dd476555913b50c969159a836 /ui.hpp
parentae7824be86ecc53752a3bee1038c0677ac203cf7 (diff)
ui stuf and things hmm m mmm m シ
Diffstat (limited to 'ui.hpp')
-rw-r--r--ui.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui.hpp b/ui.hpp
index c11cd8f..adb1ba8 100644
--- a/ui.hpp
+++ b/ui.hpp
@@ -194,6 +194,7 @@ struct UI {
Container(UI* ui, Element* parent);
Rect layout(const Rect& avail) override;
+ void on_render() override;
};
struct Toolbar : Element {
@@ -217,6 +218,8 @@ struct UI {
~Label();
Rect layout(const Rect& avail) override;
void on_render() override;
+
+ void set_text(const char* s);
};
struct Modal : Element {
@@ -225,11 +228,13 @@ struct UI {
Label* title;
Button* close;
int drag_offset[2];
+ int pos[2];
bool dragging;
Modal(UI* ui, Element* parent, const char* title);
Rect layout(const Rect& avail) override;
void on_render() override;
void on_update() override;
+ void bring_to_front();
};
};