Add a little gap between player buttons and the position slider.
[dcpomatic.git] / src / wx / check_box.h
index 6e54ef4116b6cb4ca815ee792c60299c263be336..4b3fddb9fdf65fa4f55226c203f740eb2a9dd97b 100644 (file)
@@ -28,6 +28,7 @@
 LIBDCP_DISABLE_WARNINGS
 #include <wx/wx.h>
 LIBDCP_ENABLE_WARNINGS
+#include <boost/bind/bind.hpp>
 
 
 class CheckBox : public wxCheckBox, public I18NHook
@@ -37,6 +38,12 @@ public:
 
        void set_text (wxString text) override;
        wxString get_text () const override;
+       bool get() const;
+
+       template <typename... Args>
+       void bind(Args... args) {
+               Bind(wxEVT_CHECKBOX, boost::bind(std::forward<Args>(args)...));
+       }
 };