diff options
Diffstat (limited to 'include/gui')
-rw-r--r-- | include/gui/StaticPage.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/gui/StaticPage.hpp b/include/gui/StaticPage.hpp index cc15531..4280684 100644 --- a/include/gui/StaticPage.hpp +++ b/include/gui/StaticPage.hpp @@ -5,11 +5,15 @@ namespace gsr { class StaticPage : public Page { public: - StaticPage() = default; + StaticPage(mgl::vec2f size); StaticPage(const StaticPage&) = delete; StaticPage& operator=(const StaticPage&) = delete; bool on_event(mgl::Event &event, mgl::Window &window, mgl::vec2f offset) override; void draw(mgl::Window &window, mgl::vec2f offset) override; + + mgl::vec2f get_size() const { return size; } + private: + mgl::vec2f size; }; }
\ No newline at end of file |