diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/dcpomatic_button.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wx/dcpomatic_button.h b/src/wx/dcpomatic_button.h index 902c85666..6de8b60f4 100644 --- a/src/wx/dcpomatic_button.h +++ b/src/wx/dcpomatic_button.h @@ -28,6 +28,7 @@ LIBDCP_DISABLE_WARNINGS #include <wx/button.h> LIBDCP_ENABLE_WARNINGS +#include <boost/bind/bind.hpp> class Button : public wxButton, public I18NHook @@ -37,6 +38,11 @@ public: void set_text (wxString text) override; wxString get_text () const override; + + template <typename... Args> + void bind(Args... args) { + Bind(wxEVT_BUTTON, boost::bind(std::forward<Args>(args)...)); + } }; |
