]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/classic/button.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxButton class
4 // Author: Stefan Csomor
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 #include "wx/control.h"
16 #include "wx/gdicmn.h"
18 WXDLLEXPORT_DATA(extern const wxChar
) wxButtonNameStr
[];
21 class WXDLLEXPORT wxButton
: public wxButtonBase
23 DECLARE_DYNAMIC_CLASS(wxButton
)
26 inline wxButton(wxWindow
*parent
, wxWindowID id
,
27 const wxString
& label
= wxEmptyString
,
28 const wxPoint
& pos
= wxDefaultPosition
,
29 const wxSize
& size
= wxDefaultSize
, long style
= 0,
30 const wxValidator
& validator
= wxDefaultValidator
,
31 const wxString
& name
= wxButtonNameStr
)
33 Create(parent
, id
, label
, pos
, size
, style
, validator
, name
);
36 bool Create(wxWindow
*parent
, wxWindowID id
,
37 const wxString
& label
= wxEmptyString
,
38 const wxPoint
& pos
= wxDefaultPosition
,
39 const wxSize
& size
= wxDefaultSize
, long style
= 0,
40 const wxValidator
& validator
= wxDefaultValidator
,
41 const wxString
& name
= wxButtonNameStr
);
43 virtual void MacHandleControlClick( WXWidget control
, wxInt16 controlpart
, bool mouseStillDown
) ;
44 static wxSize
GetDefaultSize();
46 virtual void SetDefault();
47 virtual void Command(wxCommandEvent
& event
);
49 virtual wxSize
DoGetBestSize() const ;