From beb4441be84b92cc748c92dc6839279303cd27a4 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 11 Sep 2024 22:09:40 +0200 Subject: Fix loading audio tracks incorrect config, finish recording option --- include/Overlay.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/Overlay.hpp') 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 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; + DropdownButton *replay_dropdown_button_ptr = nullptr; + DropdownButton *record_dropdown_button_ptr = nullptr; + DropdownButton *stream_dropdown_button_ptr = nullptr; }; } \ No newline at end of file -- cgit v1.2.3