diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-09-06 00:45:15 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-09-07 20:04:12 +0200 |
| commit | 5fc26ab21a2c09c150f85cf6ce3e83cb1b196c81 (patch) | |
| tree | 308014c95da5c7faed337452fd1b48a034a5a4e2 | |
| parent | 13010ea3dd3c2ed338185f07824f43ffbe094e33 (diff) | |
Add SpinCtrl::get().
| -rw-r--r-- | src/wx/dcpomatic_spin_ctrl.cc | 7 | ||||
| -rw-r--r-- | src/wx/dcpomatic_spin_ctrl.h | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/wx/dcpomatic_spin_ctrl.cc b/src/wx/dcpomatic_spin_ctrl.cc index fdbda2461..f6480d8cb 100644 --- a/src/wx/dcpomatic_spin_ctrl.cc +++ b/src/wx/dcpomatic_spin_ctrl.cc @@ -43,3 +43,10 @@ SpinCtrl::SpinCtrl(wxWindow* parent, int min, int max) Bind(wxEVT_TEXT_ENTER, boost::bind<void>(enter, _1)); } + +int +SpinCtrl::get() const +{ + return GetValue(); +} + diff --git a/src/wx/dcpomatic_spin_ctrl.h b/src/wx/dcpomatic_spin_ctrl.h index 0bc67acd3..17abc0bc2 100644 --- a/src/wx/dcpomatic_spin_ctrl.h +++ b/src/wx/dcpomatic_spin_ctrl.h @@ -34,6 +34,8 @@ class SpinCtrl : public wxSpinCtrl { public: SpinCtrl(wxWindow* parent, int min=0, int max=100); + + int get() const; }; |
