1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/motif/button.h
3 // Purpose: wxButton class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
16 class WXDLLIMPEXP_CORE wxButton
: public wxButtonBase
20 wxButton(wxWindow
*parent
,
22 const wxString
& label
= wxEmptyString
,
23 const wxPoint
& pos
= wxDefaultPosition
,
24 const wxSize
& size
= wxDefaultSize
, long style
= 0,
25 const wxValidator
& validator
= wxDefaultValidator
,
26 const wxString
& name
= wxButtonNameStr
)
28 Create(parent
, id
, label
, pos
, size
, style
, validator
, name
);
31 bool Create(wxWindow
*parent
, wxWindowID id
,
32 const wxString
& label
= wxEmptyString
,
33 const wxPoint
& pos
= wxDefaultPosition
,
34 const wxSize
& size
= wxDefaultSize
, long style
= 0,
35 const wxValidator
& validator
= wxDefaultValidator
,
36 const wxString
& name
= wxButtonNameStr
);
38 virtual wxWindow
*SetDefault();
39 virtual void Command(wxCommandEvent
& event
);
41 static wxSize
GetDefaultSize();
44 virtual wxSize
GetMinSize() const;
47 virtual wxSize
DoGetBestSize() const;
50 wxSize
OldGetBestSize() const;
51 wxSize
OldGetMinSize() const;
52 void SetDefaultShadowThicknessAndResize();
54 DECLARE_DYNAMIC_CLASS(wxButton
)
57 #endif // _WX_BUTTON_H_