]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/checkbox.h
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
11 #ifndef __GTKCHECKBOXH__
12 #define __GTKCHECKBOXH__
22 #include "wx/object.h"
24 #include "wx/control.h"
26 //-----------------------------------------------------------------------------
28 //-----------------------------------------------------------------------------
32 //-----------------------------------------------------------------------------
34 //-----------------------------------------------------------------------------
36 extern const char *wxCheckBoxNameStr
;
38 //-----------------------------------------------------------------------------
40 //-----------------------------------------------------------------------------
42 class wxCheckBox
: public wxControl
44 DECLARE_DYNAMIC_CLASS(wxCheckBox
)
48 wxCheckBox( wxWindow
*parent
, wxWindowID id
, const wxString
& label
,
49 const wxPoint
& pos
= wxDefaultPosition
,
50 const wxSize
& size
= wxDefaultSize
, long style
= 0,
51 const wxValidator
& validator
= wxDefaultValidator
,
52 const wxString
& name
= wxCheckBoxNameStr
)
54 Create(parent
, id
, label
, pos
, size
, style
, validator
, name
);
56 bool Create(wxWindow
*parent
,
58 const wxString
& label
,
59 const wxPoint
& pos
= wxDefaultPosition
,
60 const wxSize
& size
= wxDefaultSize
,
62 const wxValidator
& validator
= wxDefaultValidator
,
63 const wxString
& name
= wxCheckBoxNameStr
);
65 void SetValue( bool state
);
66 bool GetValue() const;
68 void SetLabel( const wxString
& label
);
69 bool Enable( bool enable
);
72 void ApplyWidgetStyle();
74 GtkWidget
*m_widgetCheckbox
;
75 GtkWidget
*m_widgetLabel
;
80 #endif // __GTKCHECKBOXH__