aboutsummaryrefslogtreecommitdiff
path: root/include/Overlay.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-09-11 22:09:40 +0200
committerdec05eba <dec05eba@protonmail.com>2024-09-11 22:09:40 +0200
commitbeb4441be84b92cc748c92dc6839279303cd27a4 (patch)
tree4e6b3813fa3160f037cacee05a62a33a21a652e4 /include/Overlay.hpp
parent7d6732a7d3d286507ce11565bd4736fa3b94659c (diff)
Fix loading audio tracks incorrect config, finish recording option
Diffstat (limited to 'include/Overlay.hpp')
-rw-r--r--include/Overlay.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/Overlay.hpp b/include/Overlay.hpp
index de5fa79..bb366e7 100644
--- a/include/Overlay.hpp
+++ b/include/Overlay.hpp
@@ -13,6 +13,8 @@
#include <mglpp/graphics/Text.hpp>
namespace gsr {
+ class DropdownButton;
+
class Overlay {
public:
Overlay(mgl::Window &window, std::string resources_path, GsrInfo gsr_info, egl_functions egl_funcs, mgl::Color bg_color);
@@ -28,6 +30,9 @@ namespace gsr {
void toggle_show();
bool is_open() const;
private:
+ void on_press_start_replay(const std::string &id);
+ void on_press_start_record(const std::string &id);
+ void on_press_start_stream(const std::string &id);
bool update_compositor_texture(const mgl_monitor *monitor);
private:
mgl::Window &window;
@@ -52,5 +57,8 @@ namespace gsr {
uint64_t default_cursor = 0;
pid_t gpu_screen_recorder_process = -1;
std::optional<Config> config;
+ DropdownButton *replay_dropdown_button_ptr = nullptr;
+ DropdownButton *record_dropdown_button_ptr = nullptr;
+ DropdownButton *stream_dropdown_button_ptr = nullptr;
};
} \ No newline at end of file