diff options
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(); |