aboutsummaryrefslogtreecommitdiff
path: root/include/gui/WidgetContainer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/gui/WidgetContainer.hpp')
-rw-r--r--include/gui/WidgetContainer.hpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/include/gui/WidgetContainer.hpp b/include/gui/WidgetContainer.hpp
deleted file mode 100644
index e40ffb9..0000000
--- a/include/gui/WidgetContainer.hpp
+++ /dev/null
@@ -1,30 +0,0 @@
-#pragma once
-
-#include <vector>
-#include <memory>
-
-namespace mgl {
- class Event;
- class Window;
-}
-
-namespace gsr {
- class Widget;
-
- class WidgetContainer {
- public:
- static WidgetContainer& get_instance();
-
- void add_widget(Widget *widget);
- void remove_widget(Widget *widget);
-
- void on_event(mgl::Event &event, mgl::Window &window);
- void draw(mgl::Window &window);
- private:
- WidgetContainer() = default;
- WidgetContainer& operator=(const WidgetContainer&) = delete;
- WidgetContainer(const WidgetContainer&) = delete;
- private:
- std::vector<Widget*> widgets;
- };
-} \ No newline at end of file