]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/motif/button.h
5735b60555b5d12ebef1b8ccca93f34f9f962cfe
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxButton class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
16 class WXDLLEXPORT wxButton
: public wxButtonBase
18 DECLARE_DYNAMIC_CLASS(wxButton
)
22 wxButton(wxWindow
*parent
,
24 const wxString
& label
= wxEmptyString
,
25 const wxPoint
& pos
= wxDefaultPosition
,
26 const wxSize
& size
= wxDefaultSize
, long style
= 0,
27 const wxValidator
& validator
= wxDefaultValidator
,
28 const wxString
& name
= wxButtonNameStr
)
30 Create(parent
, id
, label
, pos
, size
, style
, validator
, name
);
33 bool Create(wxWindow
*parent
, wxWindowID id
,
34 const wxString
& label
= wxEmptyString
,
35 const wxPoint
& pos
= wxDefaultPosition
,
36 const wxSize
& size
= wxDefaultSize
, long style
= 0,
37 const wxValidator
& validator
= wxDefaultValidator
,
38 const wxString
& name
= wxButtonNameStr
);
40 virtual void SetDefault();
41 virtual void Command(wxCommandEvent
& event
);
43 static wxSize
GetDefaultSize();
48 virtual wxSize
DoGetBestSize() const;
52 virtual wxSize
GetMinSize() const;
53 wxSize
OldGetBestSize() const;
54 wxSize
OldGetMinSize() const;
55 void SetDefaultShadowThicknessAndResize();