]>
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
= wxEmptyString
,
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
,
38 const wxString
& label
= wxEmptyString
,
39 const wxPoint
& pos
= wxDefaultPosition
,
40 const wxSize
& size
= wxDefaultSize
, long style
= 0,
41 const wxValidator
& validator
= wxDefaultValidator
,
42 const wxString
& name
= wxButtonNameStr
);
44 virtual void SetDefault();
45 virtual void Command(wxCommandEvent
& event
);
47 static wxSize
GetDefaultSize();
51 virtual wxSize
DoGetBestSize() const;
52 virtual wxSize
GetMinSize() const;
53 wxSize
OldGetBestSize() const;
54 wxSize
OldGetMinSize() const;
55 void SetDefaultShadowThicknessAndResize();