summaryrefslogtreecommitdiff
path: root/ui.hpp
diff options
context:
space:
mode:
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();
};
};