diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-05-14 23:42:11 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-01-28 02:01:58 +0100 |
| commit | 277aa36973cc870c2ea8dcbaba1428cd2abc4fb5 (patch) | |
| tree | b8acae859ab8b654a002f79bf5cf66a0f859b0e3 | |
| parent | 33ab595ca5f2272b4cd5660b3ef7e0ec717ee151 (diff) | |
Add set().
| -rw-r--r-- | src/wx/check_box.cc | 7 | ||||
| -rw-r--r-- | src/wx/check_box.h | 1 |
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) { |
