diff options
author | dec05eba <dec05eba@protonmail.com> | 2025-03-15 00:39:37 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2025-03-15 00:56:38 +0100 |
commit | 63b2b6cbc34b9e34208f3bff96686b9bd3f54521 (patch) | |
tree | b20334166fd064c6b35d29daea7350841a219897 /include/Overlay.hpp | |
parent | 6c7158c06d41fd7c77a8a8b9d186440904950f8c (diff) |
Add region capture option
Diffstat (limited to 'include/Overlay.hpp')
-rw-r--r-- | include/Overlay.hpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/include/Overlay.hpp b/include/Overlay.hpp index 89747cd..5ed7f51 100644 --- a/include/Overlay.hpp +++ b/include/Overlay.hpp @@ -6,9 +6,9 @@ #include "Config.hpp" #include "window_texture.h" #include "WindowUtils.hpp" -#include "GlobalHotkeysLinux.hpp" #include "GlobalHotkeysJoystick.hpp" #include "AudioPlayer.hpp" +#include "RegionSelector.hpp" #include <mglpp/window/Window.hpp> #include <mglpp/window/Event.hpp> @@ -78,7 +78,6 @@ namespace gsr { void process_key_bindings(mgl::Event &event); void grab_mouse_and_keyboard(); void xi_setup_fake_cursor(); - void xi_grab_all_mouse_devices(); void close_gpu_screen_recorder_output(); @@ -109,10 +108,10 @@ namespace gsr { void update_ui_replay_stopped(); void on_press_save_replay(); - bool on_press_start_replay(bool disable_notification); - void on_press_start_record(); - void on_press_start_stream(); - void on_press_take_screenshot(); + bool on_press_start_replay(bool disable_notification, bool finished_region_selection); + void on_press_start_record(bool finished_region_selection); + void on_press_start_stream(bool finished_region_selection); + void on_press_take_screenshot(bool finished_region_selection); bool update_compositor_texture(const Monitor &monitor); void force_window_on_top(); @@ -202,5 +201,8 @@ namespace gsr { bool try_replay_startup = true; AudioPlayer audio_player; + RegionSelector region_selector; + bool start_region_capture = false; + std::function<void()> on_region_selected; }; }
\ No newline at end of file |