diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-09-06 00:45:21 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-09-07 20:04:12 +0200 |
| commit | 506b98d414e96e53eb56a41ca991b691c8393408 (patch) | |
| tree | 20a27b5a2a9df46cc398a3351424cf2412b2ee41 /src/wx/dcpomatic_spin_ctrl.h | |
| parent | 5fc26ab21a2c09c150f85cf6ce3e83cb1b196c81 (diff) | |
Add SpinCtrl::bind().
Diffstat (limited to 'src/wx/dcpomatic_spin_ctrl.h')
| -rw-r--r-- | src/wx/dcpomatic_spin_ctrl.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wx/dcpomatic_spin_ctrl.h b/src/wx/dcpomatic_spin_ctrl.h index 17abc0bc2..b776be927 100644 --- a/src/wx/dcpomatic_spin_ctrl.h +++ b/src/wx/dcpomatic_spin_ctrl.h @@ -28,6 +28,7 @@ LIBDCP_DISABLE_WARNINGS #include <wx/spinctrl.h> #include <wx/wx.h> LIBDCP_ENABLE_WARNINGS +#include <boost/bind.hpp> class SpinCtrl : public wxSpinCtrl @@ -36,6 +37,11 @@ public: SpinCtrl(wxWindow* parent, int min=0, int max=100); int get() const; + + template <typename... Args> + void bind(Args... args) { + Bind(wxEVT_SPINCTRL, boost::bind(std::forward<Args>(args)...)); + } }; |
