diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-08-01 22:41:07 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-08-01 22:41:07 +0200 |
commit | be0ad41e745c3e6177d1159e25f7d23e45b02738 (patch) | |
tree | c1845a43e3b3c67c9fadc067f2ff851e668b4213 /include | |
parent | 10a5669330ba978c37d984a312ba1de7a2542503 (diff) |
Use scissor for pages
Diffstat (limited to 'include')
-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 |