diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-08-07 20:32:59 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-08-07 20:32:59 +0200 |
commit | b709805cfac4d1fe1bfe28e497a3e48e224372a8 (patch) | |
tree | 82f4bb638805dd58017d933fafd2143eb8019637 /include/gui/Widget.hpp | |
parent | 2ea32e11093a4d057338c02abbff4807446ff8de (diff) |
Move settings ui to SettingsPage class, show different widgets for different settings page, show different widgets depending on combobox selections
Diffstat (limited to 'include/gui/Widget.hpp')
-rw-r--r-- | include/gui/Widget.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/gui/Widget.hpp b/include/gui/Widget.hpp index 5b582da..498ca05 100644 --- a/include/gui/Widget.hpp +++ b/include/gui/Widget.hpp @@ -34,6 +34,8 @@ namespace gsr { virtual mgl::vec2f get_position() const; virtual mgl::vec2f get_size() = 0; + // This can be different from get_size, for example with ScrollablePage this excludes the margins + virtual mgl::vec2f get_inner_size() { return get_size(); } void set_horizontal_alignment(Alignment alignment); void set_vertical_alignment(Alignment alignment); |