diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-11-14 00:25:37 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-11-14 00:25:37 +0100 |
commit | d2f6b0738bdd90a5503fff404dfa4f0ad0962ef3 (patch) | |
tree | d6ff32e7416d1a0b7f8e6024807797e8447b4bcf /include/gui/RadioButton.hpp | |
parent | 4ba1e814b748d57631f6b7afb7eaa63e8435c24e (diff) |
Add option to start replay on fullscreen
Diffstat (limited to 'include/gui/RadioButton.hpp')
-rw-r--r-- | include/gui/RadioButton.hpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/gui/RadioButton.hpp b/include/gui/RadioButton.hpp index 69339db..a009eab 100644 --- a/include/gui/RadioButton.hpp +++ b/include/gui/RadioButton.hpp @@ -9,7 +9,12 @@ namespace gsr { class RadioButton : public Widget { public: - RadioButton(mgl::Font *font); + enum class Orientation { + VERTICAL, + HORIZONTAL + }; + + RadioButton(mgl::Font *font, Orientation orientation); RadioButton(const RadioButton&) = delete; RadioButton& operator=(const RadioButton&) = delete; @@ -32,6 +37,7 @@ namespace gsr { }; mgl::Font *font; + Orientation orientation; std::vector<Item> items; size_t selected_item = 0; bool dirty = true; |