From 96b27fe9841e537614962e273ef9f0802365ea6d Mon Sep 17 00:00:00 2001 From: quou Date: Tue, 31 Dec 2024 23:38:11 +1100 Subject: ui stuf and things hmm m mmm m シ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ui.hpp') 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(); }; }; -- cgit v1.2.3-54-g00ecf