Add option to start replay on fullscreen

This commit is contained in:
dec05eba
2024-11-14 00:25:37 +01:00
parent 4ba1e814b7
commit d2f6b0738b
12 changed files with 218 additions and 41 deletions

View File

@@ -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;