aboutsummaryrefslogtreecommitdiff
path: root/src/gui/Widget.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-08-01 20:46:13 +0200
committerdec05eba <dec05eba@protonmail.com>2024-08-01 20:46:13 +0200
commit27255cdb64b87c048fad70ca893f684cf61819a4 (patch)
treed89ea70475d1e8e9508d652eef836c49c0d162a8 /src/gui/Widget.cpp
parent6624db873c91087bc1805b9d018c92c455b85190 (diff)
Change global widget container to page
Diffstat (limited to 'src/gui/Widget.cpp')
-rw-r--r--src/gui/Widget.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/Widget.cpp b/src/gui/Widget.cpp
index 718fd8d..1dc4d98 100644
--- a/src/gui/Widget.cpp
+++ b/src/gui/Widget.cpp
@@ -1,13 +1,12 @@
#include "../../include/gui/Widget.hpp"
-#include "../../include/gui/WidgetContainer.hpp"
namespace gsr {
Widget::Widget() {
- WidgetContainer::get_instance().add_widget(this);
+
}
Widget::~Widget() {
- WidgetContainer::get_instance().remove_widget(this);
+
}
void Widget::set_position(mgl::vec2f position) {