]>
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 wxButton(wxWindow
*parent
, wxWindowID id
, wxStockItemID stock
,
38 const wxString
& descriptiveLabel
= wxEmptyString
,
39 const wxPoint
& pos
= wxDefaultPosition
,
41 const wxValidator
& validator
= wxDefaultValidator
,
42 const wxString
& name
= wxButtonNameStr
)
44 Create(parent
, id
, stock
, descriptiveLabel
, pos
, style
, validator
, name
);
47 bool Create(wxWindow
*parent
, wxWindowID id
, const wxString
& label
,
48 const wxPoint
& pos
= wxDefaultPosition
,
49 const wxSize
& size
= wxDefaultSize
, long style
= 0,
50 const wxValidator
& validator
= wxDefaultValidator
,
51 const wxString
& name
= wxButtonNameStr
);
53 bool Create(wxWindow
*parent
, wxWindowID id
, wxStockItemID stock
,
54 const wxString
& descriptiveLabel
= wxEmptyString
,
55 const wxPoint
& pos
= wxDefaultPosition
,
57 const wxValidator
& validator
= wxDefaultValidator
,
58 const wxString
& name
= wxButtonNameStr
)
60 return CreateStock(parent
, id
, stock
, descriptiveLabel
,
61 pos
, style
, validator
, name
);
64 virtual void SetDefault();
65 virtual void Command(wxCommandEvent
& event
);
67 static wxSize
GetDefaultSize();
71 virtual wxSize
DoGetBestSize() const;
72 wxSize
OldGetBestSize() const;
73 void SetDefaultShadowThicknessAndResize();