From 10a5669330ba978c37d984a312ba1de7a2542503 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 1 Aug 2024 22:19:59 +0200 Subject: Draw and event position relative to parent (for pages) --- include/gui/StaticPage.hpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 include/gui/StaticPage.hpp (limited to 'include/gui/StaticPage.hpp') diff --git a/include/gui/StaticPage.hpp b/include/gui/StaticPage.hpp new file mode 100644 index 0000000..cc15531 --- /dev/null +++ b/include/gui/StaticPage.hpp @@ -0,0 +1,15 @@ +#pragma once + +#include "Page.hpp" + +namespace gsr { + class StaticPage : public Page { + public: + StaticPage() = default; + 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; + }; +} \ No newline at end of file -- cgit v1.2.3