]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/motif/button.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxButton class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "button.h"
20 class WXDLLEXPORT wxButton
: public wxButtonBase
22 DECLARE_DYNAMIC_CLASS(wxButton
)
26 wxButton(wxWindow
*parent
,
28 const wxString
& label
,
29 const wxPoint
& pos
= wxDefaultPosition
,
30 const wxSize
& size
= wxDefaultSize
, long style
= 0,
31 const wxValidator
& validator
= wxDefaultValidator
,
32 const wxString
& name
= wxButtonNameStr
)
34 Create(parent
, id
, label
, pos
, size
, style
, validator
, name
);
37 bool Create(wxWindow
*parent
, wxWindowID id
, const wxString
& label
,
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 SetDefault();
44 virtual void Command(wxCommandEvent
& event
);
46 static wxSize
GetDefaultSize();
50 virtual wxSize
DoGetBestSize() const;
51 wxSize
OldGetBestSize() const;
52 void SetDefaultShadowThicknessAndResize();