From d2f6b0738bdd90a5503fff404dfa4f0ad0962ef3 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 14 Nov 2024 00:25:37 +0100 Subject: Add option to start replay on fullscreen --- include/gui/RadioButton.hpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'include/gui/RadioButton.hpp') 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 items; size_t selected_item = 0; bool dirty = true; -- cgit v1.2.3