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-12-16 02:07:38 +0100
commitcd89b957284cb29be7f52a780ca78c3e7e6dc65e (patch)
tree73d968134c1e01435e621a5ab99d3865a1526e19 /src
parent6205c7805ba11cfd38f22d0024f36ce33dddee53 (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) {