From 2ec59c6812ef2112dde2a7ce8c068d0c8155ed06 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 21 Mar 2025 23:47:24 +0100 Subject: Add alt+f2 to take a screenshot of a region --- include/Overlay.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/Overlay.hpp') diff --git a/include/Overlay.hpp b/include/Overlay.hpp index 5ed7f51..d7b8af1 100644 --- a/include/Overlay.hpp +++ b/include/Overlay.hpp @@ -59,6 +59,7 @@ namespace gsr { void toggle_replay(); void save_replay(); void take_screenshot(); + void take_screenshot_region(); void show_notification(const char *str, double timeout_seconds, mgl::Color icon_color, mgl::Color bg_color, NotificationType notification_type); bool is_open() const; bool should_exit(std::string &reason) const; @@ -111,7 +112,7 @@ namespace gsr { 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); + void on_press_take_screenshot(bool finished_region_selection, bool force_region_capture); bool update_compositor_texture(const Monitor &monitor); void force_window_on_top(); -- cgit v1.2.3-70-g09d2