diff options
Diffstat (limited to 'include/gui/Button.hpp')
-rw-r--r-- | include/gui/Button.hpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/gui/Button.hpp b/include/gui/Button.hpp new file mode 100644 index 0000000..ac9aa5c --- /dev/null +++ b/include/gui/Button.hpp @@ -0,0 +1,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; + }; +}
\ No newline at end of file |