projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9319f03
)
Add bind().
author
Carl Hetherington
<cth@carlh.net>
Thu, 1 Dec 2022 19:16:28 +0000
(20:16 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Thu, 1 Dec 2022 19:25:08 +0000
(20:25 +0100)
src/wx/dcpomatic_button.h
patch
|
blob
|
history
diff --git
a/src/wx/dcpomatic_button.h
b/src/wx/dcpomatic_button.h
index 902c856668ae2c1b900aafafa664c31a015855d7..6de8b60f40aa837590bbde420875897250eb6f2d 100644
(file)
--- 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)...));
+ }
};