diff options
Diffstat (limited to 'include/gui/Page.hpp')
-rw-r--r-- | include/gui/Page.hpp | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/include/gui/Page.hpp b/include/gui/Page.hpp index 1435e68..a5cfaf9 100644 --- a/include/gui/Page.hpp +++ b/include/gui/Page.hpp @@ -1,27 +1,19 @@ #pragma once +#include "Widget.hpp" #include <vector> #include <memory> -namespace mgl { - class Event; - class Window; -} - namespace gsr { - class Widget; - - class Page { + class Page : public Widget { public: Page() = default; Page(const Page&) = delete; Page& operator=(const Page&) = delete; + virtual ~Page() = default; void add_widget(std::unique_ptr<Widget> widget); - - void on_event(mgl::Event &event, mgl::Window &window); - void draw(mgl::Window &window); - private: + protected: std::vector<std::unique_ptr<Widget>> widgets; }; }
\ No newline at end of file |