]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/checkbox.h
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
7 // Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
12 #ifndef __GTKCHECKBOXH__
13 #define __GTKCHECKBOXH__
20 #include "wx/object.h"
22 #include "wx/control.h"
24 //-----------------------------------------------------------------------------
26 //-----------------------------------------------------------------------------
30 //-----------------------------------------------------------------------------
32 //-----------------------------------------------------------------------------
34 extern const char *wxCheckBoxNameStr
;
36 //-----------------------------------------------------------------------------
38 //-----------------------------------------------------------------------------
40 class wxCheckBox
: public wxControl
42 DECLARE_DYNAMIC_CLASS(wxCheckBox
)
47 inline wxCheckBox( 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
= wxCheckBoxNameStr
)
53 Create(parent
, id
, label
, pos
, size
, style
, validator
, name
);
55 bool Create( wxWindow
*parent
, wxWindowID id
, const wxString
& label
,
56 const wxPoint
& pos
= wxDefaultPosition
,
57 const wxSize
& size
= wxDefaultSize
, long style
= 0,
58 const wxValidator
& validator
= wxDefaultValidator
,
59 const wxString
& name
= wxCheckBoxNameStr
);
60 void SetValue( bool state
);
61 bool GetValue(void) const;
62 void SetFont( const wxFont
&font
);
63 void Enable( bool enable
);
66 #endif // __GTKCHECKBOXH__