diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-10-27 01:52:22 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-10-27 01:54:37 +0200 |
commit | cfcee1a5d8e5068cdc5171b01beb9f9e6251e51e (patch) | |
tree | d2237ae86f9c41bb74ae05be25f5209857e1a132 /include/gui/CheckBox.hpp | |
parent | 1d2fc77cfcd3d40c3a382d3f5f8e6c28e8b38da9 (diff) |
Add option to change video resolution
Diffstat (limited to 'include/gui/CheckBox.hpp')
-rw-r--r-- | include/gui/CheckBox.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
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 <mglpp/graphics/Text.hpp> #include <mglpp/graphics/Sprite.hpp> +#include <functional> + 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<void(bool checked)> on_changed; private: void apply_animation(); mgl::vec2f get_checkbox_size(); |