X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c980c992630e94e71139660631a77ffbca8ed958..d739313fc00b84e87b962a430c9c6622e88d81c1:/include/wx/gtk/button.h diff --git a/include/wx/gtk/button.h b/include/wx/gtk/button.h index 9e2268309c..c239f5b7a1 100644 --- a/include/wx/gtk/button.h +++ b/include/wx/gtk/button.h @@ -7,7 +7,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// - #ifndef __GTKBUTTONH__ #define __GTKBUTTONH__ @@ -38,10 +37,7 @@ extern const wxChar *wxButtonNameStr; class wxButton: public wxControl { - DECLARE_DYNAMIC_CLASS(wxButton) - - public: - +public: wxButton(); inline wxButton(wxWindow *parent, wxWindowID id, const wxString& label, const wxPoint& pos = wxDefaultPosition, @@ -57,15 +53,22 @@ class wxButton: public wxControl const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxButtonNameStr); - void SetDefault(); + virtual void SetDefault(); void SetLabel( const wxString &label ); bool Enable( bool enable ); static wxSize GetDefaultSize(); - // implementation + // implementation + // -------------- void ApplyWidgetStyle(); + +protected: + virtual wxSize DoGetBestSize() const; + +private: + DECLARE_DYNAMIC_CLASS(wxButton) }; #endif // __GTKBUTTONH__