aboutsummaryrefslogtreecommitdiff
path: root/include/gui
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-03-31 02:38:18 +0200
committerdec05eba <dec05eba@protonmail.com>2022-03-31 02:38:18 +0200
commit5dc945eb6a0361ee7a64314f7a2acbf24ea9b565 (patch)
tree51132c347bda1d8c33945a962f8bc1ac0948a982 /include/gui
parent900553e6c0120edaf90fa8d28f34bd82af4c5a58 (diff)
Start/stop recording if not running/already running
Diffstat (limited to 'include/gui')
-rw-r--r--include/gui/Button.hpp3
1 files changed, 3 insertions, 0 deletions
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 <string>
+#include <functional>
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<void()> on_click;
private:
mgl::vec2f size;
bool mouse_inside = false;