X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..38a097f588121ffcab2fa57e4494a6d0783c3567:/include/wx/motif/button.h diff --git a/include/wx/motif/button.h b/include/wx/motif/button.h index a0034575bc..583578d668 100644 --- a/include/wx/motif/button.h +++ b/include/wx/motif/button.h @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: button.h +// Name: wx/motif/button.h // Purpose: wxButton class // Author: Julian Smart // Modified by: @@ -16,7 +16,7 @@ class WXDLLEXPORT wxButton: public wxButtonBase { DECLARE_DYNAMIC_CLASS(wxButton) - + public: wxButton() { } wxButton(wxWindow *parent, @@ -29,22 +29,26 @@ public: { Create(parent, id, label, pos, size, style, validator, name); } - + bool Create(wxWindow *parent, wxWindowID id, const wxString& label = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxButtonNameStr); - + virtual void SetDefault(); virtual void Command(wxCommandEvent& event); - + static wxSize GetDefaultSize(); - + // Implementation -private: +protected: + virtual wxSize DoGetBestSize() const; + +private: + virtual wxSize GetMinSize() const; wxSize OldGetBestSize() const; wxSize OldGetMinSize() const;