aboutsummaryrefslogtreecommitdiff
path: root/include/gui/StaticPage.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-08-01 22:19:59 +0200
committerdec05eba <dec05eba@protonmail.com>2024-08-01 22:22:45 +0200
commit10a5669330ba978c37d984a312ba1de7a2542503 (patch)
tree0ff8cc9660841ce3979ad87da954fb7e14de7d16 /include/gui/StaticPage.hpp
parent67216467d4dc43134a07f7f843a80a1adf688acd (diff)
Draw and event position relative to parent (for pages)
Diffstat (limited to 'include/gui/StaticPage.hpp')
-rw-r--r--include/gui/StaticPage.hpp15
1 files changed, 15 insertions, 0 deletions
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