aboutsummaryrefslogtreecommitdiff
path: root/include/gui
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-08-01 20:55:16 +0200
committerdec05eba <dec05eba@protonmail.com>2024-08-01 20:55:16 +0200
commit67216467d4dc43134a07f7f843a80a1adf688acd (patch)
treebdbdda36c45a01c10e6ebcb8af37d3231bb90a2f /include/gui
parent27255cdb64b87c048fad70ca893f684cf61819a4 (diff)
Move to settings page on settings button pressed
Diffstat (limited to 'include/gui')
-rw-r--r--include/gui/Widget.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/gui/Widget.hpp b/include/gui/Widget.hpp
index 63cb64a..6324490 100644
--- a/include/gui/Widget.hpp
+++ b/include/gui/Widget.hpp
@@ -9,7 +9,7 @@ namespace mgl {
namespace gsr {
class Widget {
- friend class WidgetContainer;
+ friend class Page;
public:
Widget();
Widget(const Widget&) = delete;
@@ -24,5 +24,6 @@ namespace gsr {
virtual mgl::vec2f get_position() const;
protected:
mgl::vec2f position;
+ bool move_to_top = false;
};
} \ No newline at end of file