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

#include "Widget.hpp"
#include <string>

namespace gsr {
    class Button : public Widget {
    public:
        Button(mgl::vec2f size);
        void on_event(mgl::Event &event, mgl::Window &window) override;
        void draw(mgl::Window &window) override;
    private:
        mgl::vec2f size;
        bool mouse_inside = false;
    };
}