diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-08-06 03:11:43 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-08-06 03:11:43 +0200 |
commit | b778fd7cc654f28a2bfe0ff74537f120241b289c (patch) | |
tree | de1830608492356d818cce314094e2359a3a478a /include/gui/List.hpp | |
parent | ae1897cf2ce6a447b253ffa8489b5c016a23fb41 (diff) |
Change fonts, nicer combobox, add/remove audio track button
Diffstat (limited to 'include/gui/List.hpp')
-rw-r--r-- | include/gui/List.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/gui/List.hpp b/include/gui/List.hpp index 8c4e1fc..0b1350c 100644 --- a/include/gui/List.hpp +++ b/include/gui/List.hpp @@ -25,10 +25,19 @@ namespace gsr { bool on_event(mgl::Event &event, mgl::Window &window, mgl::vec2f offset) override; void draw(mgl::Window &window, mgl::vec2f offset) override; + //void remove_child_widget(Widget *widget) override; + void add_widget(std::unique_ptr<Widget> widget); + void remove_widget(Widget *widget); + mgl::vec2f get_size() override; + private: + void update(); + void remove_widget_immediate(Widget *widget); protected: std::vector<std::unique_ptr<Widget>> widgets; + std::vector<std::unique_ptr<Widget>> add_queue; + std::vector<Widget*> remove_queue; Orientation orientation; Alignment content_alignment; }; |