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/ComboBox.hpp | |
parent | ae1897cf2ce6a447b253ffa8489b5c016a23fb41 (diff) |
Change fonts, nicer combobox, add/remove audio track button
Diffstat (limited to 'include/gui/ComboBox.hpp')
-rw-r--r-- | include/gui/ComboBox.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/gui/ComboBox.hpp b/include/gui/ComboBox.hpp index 70a79a7..b4e7b78 100644 --- a/include/gui/ComboBox.hpp +++ b/include/gui/ComboBox.hpp @@ -2,6 +2,7 @@ #include "Widget.hpp" #include <mglpp/graphics/Text.hpp> +#include <mglpp/graphics/Sprite.hpp> #include <string> #include <vector> @@ -21,6 +22,7 @@ namespace gsr { mgl::vec2f get_size() override; private: void update_if_dirty(); + float get_dropdown_arrow_height() const; private: struct Item { mgl::Text text; @@ -30,6 +32,7 @@ namespace gsr { mgl::vec2f max_size; mgl::Font *font; std::vector<Item> items; + mgl::Sprite dropdown_arrow; bool dirty = true; bool show_dropdown = false; size_t selected_item = 0; |