diff options
author | quou <quou@disroot.org> | 2024-12-31 23:38:11 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-12-31 23:38:11 +1100 |
commit | 96b27fe9841e537614962e273ef9f0802365ea6d (patch) | |
tree | d1373862f700a83dd476555913b50c969159a836 /ui.hpp | |
parent | ae7824be86ecc53752a3bee1038c0677ac203cf7 (diff) |
ui stuf and things hmm m mmm m シ
Diffstat (limited to 'ui.hpp')
-rw-r--r-- | ui.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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(); }; }; |