From 5dc945eb6a0361ee7a64314f7a2acbf24ea9b565 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 31 Mar 2022 02:38:18 +0200 Subject: Start/stop recording if not running/already running --- include/gui/Button.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/gui') diff --git a/include/gui/Button.hpp b/include/gui/Button.hpp index ac9aa5c..145d869 100644 --- a/include/gui/Button.hpp +++ b/include/gui/Button.hpp @@ -2,6 +2,7 @@ #include "Widget.hpp" #include +#include namespace gsr { class Button : public Widget { @@ -9,6 +10,8 @@ namespace gsr { Button(mgl::vec2f size); void on_event(mgl::Event &event, mgl::Window &window) override; void draw(mgl::Window &window) override; + + std::function on_click; private: mgl::vec2f size; bool mouse_inside = false; -- cgit v1.2.3