From cfcee1a5d8e5068cdc5171b01beb9f9e6251e51e Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 27 Oct 2024 01:52:22 +0200 Subject: Add option to change video resolution --- include/gui/CheckBox.hpp | 4 ++++ include/gui/SettingsPage.hpp | 9 +++++++++ 2 files changed, 13 insertions(+) (limited to 'include/gui') diff --git a/include/gui/CheckBox.hpp b/include/gui/CheckBox.hpp index 8703794..0c86c0a 100644 --- a/include/gui/CheckBox.hpp +++ b/include/gui/CheckBox.hpp @@ -6,6 +6,8 @@ #include #include +#include + namespace gsr { class CheckBox : public Widget { public: @@ -20,6 +22,8 @@ namespace gsr { void set_checked(bool checked, bool animated = false); bool is_checked() const; + + std::function on_changed; private: void apply_animation(); mgl::vec2f get_checkbox_size(); diff --git a/include/gui/SettingsPage.hpp b/include/gui/SettingsPage.hpp index 4f5a7c9..77542a8 100644 --- a/include/gui/SettingsPage.hpp +++ b/include/gui/SettingsPage.hpp @@ -39,8 +39,13 @@ namespace gsr { std::unique_ptr create_area_height_entry(); std::unique_ptr create_area_size(); std::unique_ptr create_area_size_section(); + std::unique_ptr create_video_width_entry(); + std::unique_ptr create_video_height_entry(); + std::unique_ptr create_video_resolution(); + std::unique_ptr create_video_resolution_section(); std::unique_ptr create_restore_portal_session_checkbox(); std::unique_ptr create_restore_portal_session_section(); + std::unique_ptr create_change_video_resolution_section(); std::unique_ptr create_capture_target(const GsrInfo &gsr_info); std::unique_ptr create_audio_track_selection_checkbox(); std::unique_ptr