X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b6af8d80dcdd9d7ef9cca3aaaaf8fe4db343d7ae..10310d83222024c0a4f22e04ae3cc6f18caf5e47:/include/wx/gtk1/button.h?ds=sidebyside diff --git a/include/wx/gtk1/button.h b/include/wx/gtk1/button.h index c423cc21fb..bbc5f130e2 100644 --- a/include/wx/gtk1/button.h +++ b/include/wx/gtk1/button.h @@ -44,14 +44,23 @@ class wxButton: public wxControl public: wxButton(void); - wxButton( wxWindow *parent, wxWindowID id, const wxString &label, - const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, - long style = 0, const wxString &name = wxButtonNameStr ); - bool Create( wxWindow *parent, wxWindowID id, const wxString &label, - const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, - long style = 0, const wxString &name = wxButtonNameStr ); + inline wxButton(wxWindow *parent, wxWindowID id, const wxString& label, + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, long style = 0, + const wxValidator& validator = wxDefaultValidator, + const wxString& name = wxButtonNameStr) + { + Create(parent, id, label, pos, size, style, validator, name); + } + bool Create(wxWindow *parent, wxWindowID id, const wxString& label, + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, long style = 0, + const wxValidator& validator = wxDefaultValidator, + const wxString& name = wxButtonNameStr); void SetDefault(void); void SetLabel( const wxString &label ); + void Enable( bool enable ); + void SetFont( const wxFont &font ); }; #endif // __GTKBUTTONH__