1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/motif/button.h
3 // Purpose: wxButton class
4 // Author: Julian Smart
7 // Copyright: (c) Julian Smart
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
15 class WXDLLIMPEXP_CORE wxButton
: public wxButtonBase
19 wxButton(wxWindow
*parent
,
21 const wxString
& label
= wxEmptyString
,
22 const wxPoint
& pos
= wxDefaultPosition
,
23 const wxSize
& size
= wxDefaultSize
, long style
= 0,
24 const wxValidator
& validator
= wxDefaultValidator
,
25 const wxString
& name
= wxButtonNameStr
)
27 Create(parent
, id
, label
, pos
, size
, style
, validator
, name
);
30 bool Create(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 virtual wxWindow
*SetDefault();
38 virtual void Command(wxCommandEvent
& event
);
40 static wxSize
GetDefaultSize();
43 virtual wxSize
GetMinSize() const;
46 virtual wxSize
DoGetBestSize() const;
49 wxSize
OldGetBestSize() const;
50 wxSize
OldGetMinSize() const;
51 void SetDefaultShadowThicknessAndResize();
53 DECLARE_DYNAMIC_CLASS(wxButton
)
56 #endif // _WX_BUTTON_H_