aboutsummaryrefslogtreecommitdiff
path: root/include/gui/StaticPage.hpp
blob: 8b64ba6a10eceb2cd654eaa8bdc58b532801f5f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include "Page.hpp"

namespace gsr {
    class StaticPage : public Page {
    public:
        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() override { return size; }
    private:
        mgl::vec2f size;
    };
}