Start/stop recording if not running/already running

This commit is contained in:
dec05eba
2022-03-31 02:38:18 +02:00
parent 900553e6c0
commit 5dc945eb6a
6 changed files with 244 additions and 18 deletions

View File

@@ -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;