Add set().
authorCarl Hetherington <cth@carlh.net>
Sun, 14 May 2023 21:42:11 +0000 (23:42 +0200)
committerCarl Hetherington <cth@carlh.net>
Sun, 28 Jan 2024 01:01:58 +0000 (02:01 +0100)
src/wx/check_box.cc
src/wx/check_box.h

index baec651c1b8ca58e18ee8c07e10e79958c374571..c18ceba474bbe8615e5630e11ebf3e9d2a6399aa 100644 (file)
@@ -53,3 +53,10 @@ CheckBox::get() const
        return GetValue();
 }
 
+
+void
+CheckBox::set(bool state)
+{
+       SetValue(state);
+}
+
index 4b3fddb9fdf65fa4f55226c203f740eb2a9dd97b..d9feb00c9c9c7935cb8a0c4473c8e6fa236b0e71 100644 (file)
@@ -39,6 +39,7 @@ public:
        void set_text (wxString text) override;
        wxString get_text () const override;
        bool get() const;
+       void set(bool state);
 
        template <typename... Args>
        void bind(Args... args) {