aboutsummaryrefslogtreecommitdiff
path: root/include/gui/RadioButton.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/gui/RadioButton.hpp')
-rw-r--r--include/gui/RadioButton.hpp8
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;