From b778fd7cc654f28a2bfe0ff74537f120241b289c Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 6 Aug 2024 03:11:43 +0200 Subject: Change fonts, nicer combobox, add/remove audio track button --- include/gui/List.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/gui/List.hpp') 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); + void remove_widget(Widget *widget); + mgl::vec2f get_size() override; + private: + void update(); + void remove_widget_immediate(Widget *widget); protected: std::vector> widgets; + std::vector> add_queue; + std::vector remove_queue; Orientation orientation; Alignment content_alignment; }; -- cgit v1.2.3