]>
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 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "button.h"
19 #include "wx/control.h"
20 #include "wx/gdicmn.h"
22 WXDLLEXPORT_DATA(extern const wxChar
*) wxButtonNameStr
;
25 class WXDLLEXPORT wxButton
: public wxButtonBase
27 DECLARE_DYNAMIC_CLASS(wxButton
)
30 inline wxButton(wxWindow
*parent
, wxWindowID id
,
31 const wxString
& label
= wxEmptyString
,
32 const wxPoint
& pos
= wxDefaultPosition
,
33 const wxSize
& size
= wxDefaultSize
, long style
= 0,
34 const wxValidator
& validator
= wxDefaultValidator
,
35 const wxString
& name
= wxButtonNameStr
)
37 Create(parent
, id
, label
, pos
, size
, style
, validator
, name
);
40 bool Create(wxWindow
*parent
, wxWindowID id
,
41 const wxString
& label
= wxEmptyString
,
42 const wxPoint
& pos
= wxDefaultPosition
,
43 const wxSize
& size
= wxDefaultSize
, long style
= 0,
44 const wxValidator
& validator
= wxDefaultValidator
,
45 const wxString
& name
= wxButtonNameStr
);
47 virtual void MacHandleControlClick( WXWidget control
, wxInt16 controlpart
, bool mouseStillDown
) ;
48 static wxSize
GetDefaultSize();
50 virtual void SetDefault();
51 virtual void Command(wxCommandEvent
& event
);
53 virtual wxSize
DoGetBestSize() const ;