1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/checkbox.h
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_GTKCHECKBOX_H_
11 #define _WX_GTKCHECKBOX_H_
13 // ----------------------------------------------------------------------------
15 // ----------------------------------------------------------------------------
17 class WXDLLIMPEXP_CORE wxCheckBox
: public wxCheckBoxBase
22 wxCheckBox( wxWindow
*parent
, wxWindowID id
, const wxString
& label
,
23 const wxPoint
& pos
= wxDefaultPosition
,
24 const wxSize
& size
= wxDefaultSize
, long style
= 0,
25 const wxValidator
& validator
= wxDefaultValidator
,
26 const wxString
& name
= wxCheckBoxNameStr
)
28 Create(parent
, id
, label
, pos
, size
, style
, validator
, name
);
30 bool Create(wxWindow
*parent
,
32 const wxString
& label
,
33 const wxPoint
& pos
= wxDefaultPosition
,
34 const wxSize
& size
= wxDefaultSize
,
36 const wxValidator
& validator
= wxDefaultValidator
,
37 const wxString
& name
= wxCheckBoxNameStr
);
39 void SetValue( bool state
);
40 bool GetValue() const;
42 virtual void SetLabel( const wxString
& label
);
43 virtual bool Enable( bool enable
= true );
45 static wxVisualAttributes
46 GetClassDefaultAttributes(wxWindowVariant variant
= wxWINDOW_VARIANT_NORMAL
);
49 void GTKDisableEvents();
50 void GTKEnableEvents();
53 virtual void DoApplyWidgetStyle(GtkRcStyle
*style
);
54 virtual GdkWindow
*GTKGetWindow(wxArrayGdkWindows
& windows
) const;
56 void DoSet3StateValue(wxCheckBoxState state
);
57 wxCheckBoxState
DoGet3StateValue() const;
60 typedef wxCheckBoxBase base_type
;
62 GtkWidget
*m_widgetCheckbox
;
63 GtkWidget
*m_widgetLabel
;
65 DECLARE_DYNAMIC_CLASS(wxCheckBox
)
68 #endif // _WX_GTKCHECKBOX_H_