]>
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 /////////////////////////////////////////////////////////////////////////////
10 #ifndef __GTKCHECKBOXH__
11 #define __GTKCHECKBOXH__
21 #include "wx/object.h"
23 #include "wx/control.h"
25 //-----------------------------------------------------------------------------
27 //-----------------------------------------------------------------------------
31 //-----------------------------------------------------------------------------
33 //-----------------------------------------------------------------------------
35 extern const char *wxCheckBoxNameStr
;
37 //-----------------------------------------------------------------------------
39 //-----------------------------------------------------------------------------
41 class wxCheckBox
: public wxControl
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();
70 bool IsOwnGtkWindow( GdkWindow
*window
);
71 void OnInternalIdle();
73 GtkWidget
*m_widgetCheckbox
;
74 GtkWidget
*m_widgetLabel
;
77 DECLARE_DYNAMIC_CLASS(wxCheckBox
)
82 #endif // __GTKCHECKBOXH__