X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0dbd6262a9ee7d735fb3930707346298f71b2cb7..77436c4cbac2269e564dc4fcf4494a58feca0af4:/include/wx/mac/button.h diff --git a/include/wx/mac/button.h b/include/wx/mac/button.h index 68b67d8c96..680652b3e7 100644 --- a/include/wx/mac/button.h +++ b/include/wx/mac/button.h @@ -22,7 +22,7 @@ WXDLLEXPORT_DATA(extern const char*) wxButtonNameStr; // Pushbutton -class WXDLLEXPORT wxButton: public wxControl +class WXDLLEXPORT wxButton: public wxButtonBase { DECLARE_DYNAMIC_CLASS(wxButton) public: @@ -42,11 +42,13 @@ class WXDLLEXPORT wxButton: public wxControl const wxValidator& validator = wxDefaultValidator, const wxString& name = wxButtonNameStr); - virtual void SetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO); + virtual void MacHandleControlClick( ControlHandle control , SInt16 controlpart ) ; + static wxSize GetDefaultSize(); + virtual void SetDefault(); - virtual void SetLabel(const wxString& label); - virtual wxString GetLabel() const ; virtual void Command(wxCommandEvent& event); +protected: + virtual wxSize DoGetBestSize() const ; }; #endif