Draw and event position relative to parent (for pages)

This commit is contained in:
dec05eba
2024-08-01 22:19:59 +02:00
parent 67216467d4
commit 10a5669330
15 changed files with 280 additions and 150 deletions

View File

@@ -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;
};
}