]>
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__
19 #include "wx/object.h"
21 #include "wx/control.h"
23 //-----------------------------------------------------------------------------
25 //-----------------------------------------------------------------------------
29 //-----------------------------------------------------------------------------
31 //-----------------------------------------------------------------------------
33 extern const char *wxCheckBoxNameStr
;
35 //-----------------------------------------------------------------------------
37 //-----------------------------------------------------------------------------
39 class wxCheckBox
: public wxControl
41 DECLARE_DYNAMIC_CLASS(wxCheckBox
)
45 wxCheckBox( wxWindow
*parent
, wxWindowID id
, const wxString
& label
,
46 const wxPoint
& pos
= wxDefaultPosition
,
47 const wxSize
& size
= wxDefaultSize
, long style
= 0,
48 const wxValidator
& validator
= wxDefaultValidator
,
49 const wxString
& name
= wxCheckBoxNameStr
)
51 Create(parent
, id
, label
, pos
, size
, style
, validator
, name
);
53 bool Create(wxWindow
*parent
,
55 const wxString
& label
,
56 const wxPoint
& pos
= wxDefaultPosition
,
57 const wxSize
& size
= wxDefaultSize
,
59 const wxValidator
& validator
= wxDefaultValidator
,
60 const wxString
& name
= wxCheckBoxNameStr
);
62 void SetValue( bool state
);
63 bool GetValue() const;
65 void SetLabel( const wxString
& label
);
66 bool Enable( bool enable
);
69 void ApplyWidgetStyle();
71 bool m_blockFirstEvent
;
72 GtkWidget
*m_widgetCheckbox
;
73 GtkWidget
*m_widgetLabel
;
76 #endif // __GTKCHECKBOXH__