X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/42b4e99e9a72c259e6a4d24b7e9cd5a3129a990f..24f4ad95920746ebc6cfc6f2ab86f65fb53345ca:/include/wx/gtk/button.h diff --git a/include/wx/gtk/button.h b/include/wx/gtk/button.h index af4fdac9ee..0fb15ad031 100644 --- a/include/wx/gtk/button.h +++ b/include/wx/gtk/button.h @@ -1,13 +1,12 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: button.h +// Name: wx/gtk/button.h // Purpose: // Author: Robert Roebling // Id: $Id$ // Copyright: (c) 1998 Robert Roebling -// Licence: wxWindows licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// - #ifndef __GTKBUTTONH__ #define __GTKBUTTONH__ @@ -38,12 +37,9 @@ extern const wxChar *wxButtonNameStr; class wxButton: public wxControl { - DECLARE_DYNAMIC_CLASS(wxButton) - - public: - +public: wxButton(); - inline wxButton(wxWindow *parent, wxWindowID id, const wxString& label, + wxButton(wxWindow *parent, wxWindowID id, const wxString& label, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, @@ -51,21 +47,30 @@ class wxButton: public wxControl { Create(parent, id, label, pos, size, style, validator, name); } - ~wxButton(); + virtual ~wxButton(); + 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); + virtual void SetDefault(); - void SetLabel( const wxString &label ); - bool Enable( bool enable ); + virtual void SetLabel( const wxString &label ); + virtual bool Enable( bool enable = TRUE ); static wxSize GetDefaultSize(); - - // implementation - - void ApplyWidgetStyle(); + + // implementation + // -------------- + + void ApplyWidgetStyle(); + +protected: + virtual wxSize DoGetBestSize() const; + +private: + DECLARE_DYNAMIC_CLASS(wxButton) }; #endif // __GTKBUTTONH__