summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-05-14 23:42:11 +0200
committerCarl Hetherington <cth@carlh.net>2023-11-29 21:20:31 +0100
commit07790dc566e81d449b7d4f6052d06139af079070 (patch)
treedcc4a08dc60946ee7588f34962c55af0defc6957 /src
parentbc34634960cac0d49c605bfaf94e41c59a690614 (diff)
Add set().
Diffstat (limited to 'src')
-rw-r--r--src/wx/check_box.cc7
-rw-r--r--src/wx/check_box.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/src/wx/check_box.cc b/src/wx/check_box.cc
index baec651c1..c18ceba47 100644
--- a/src/wx/check_box.cc
+++ b/src/wx/check_box.cc
@@ -53,3 +53,10 @@ CheckBox::get() const
return GetValue();
}
+
+void
+CheckBox::set(bool state)
+{
+ SetValue(state);
+}
+
diff --git a/src/wx/check_box.h b/src/wx/check_box.h
index 4b3fddb9f..d9feb00c9 100644
--- a/src/wx/check_box.h
+++ b/src/wx/check_box.h
@@ -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) {