diff options
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(); }; }; |