From be0ad41e745c3e6177d1159e25f7d23e45b02738 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 1 Aug 2024 22:41:07 +0200 Subject: Use scissor for pages --- include/gui/StaticPage.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/gui') 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 -- cgit v1.2.3