]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/button.h
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef __GTKBUTTONH__
11 #define __GTKBUTTONH__
18 #include "wx/object.h"
20 #include "wx/control.h"
22 //-----------------------------------------------------------------------------
24 //-----------------------------------------------------------------------------
28 //-----------------------------------------------------------------------------
30 //-----------------------------------------------------------------------------
32 extern const wxChar
*wxButtonNameStr
;
34 //-----------------------------------------------------------------------------
36 //-----------------------------------------------------------------------------
38 class wxButton
: public wxControl
42 inline wxButton(wxWindow
*parent
, wxWindowID id
, const wxString
& label
,
43 const wxPoint
& pos
= wxDefaultPosition
,
44 const wxSize
& size
= wxDefaultSize
, long style
= 0,
45 const wxValidator
& validator
= wxDefaultValidator
,
46 const wxString
& name
= wxButtonNameStr
)
48 Create(parent
, id
, label
, pos
, size
, style
, validator
, name
);
51 bool Create(wxWindow
*parent
, wxWindowID id
, const wxString
& label
,
52 const wxPoint
& pos
= wxDefaultPosition
,
53 const wxSize
& size
= wxDefaultSize
, long style
= 0,
54 const wxValidator
& validator
= wxDefaultValidator
,
55 const wxString
& name
= wxButtonNameStr
);
56 virtual void SetDefault();
57 void SetLabel( const wxString
&label
);
58 bool Enable( bool enable
);
60 static wxSize
GetDefaultSize();
65 void ApplyWidgetStyle();
68 DECLARE_DYNAMIC_CLASS(wxButton
)
71 #endif // __GTKBUTTONH__