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
21 wxCheckBox( wxWindow
*parent
, wxWindowID id
, const wxString
& label
,
22 const wxPoint
& pos
= wxDefaultPosition
,
23 const wxSize
& size
= wxDefaultSize
, long style
= 0,
24 const wxValidator
& validator
= wxDefaultValidator
,
25 const wxString
& name
= wxCheckBoxNameStr
)
27 Create(parent
, id
, label
, pos
, size
, style
, validator
, name
);
29 bool Create(wxWindow
*parent
,
31 const wxString
& label
,
32 const wxPoint
& pos
= wxDefaultPosition
,
33 const wxSize
& size
= wxDefaultSize
,
35 const wxValidator
& validator
= wxDefaultValidator
,
36 const wxString
& name
= wxCheckBoxNameStr
);
38 void SetValue( bool state
);
39 bool GetValue() const;
41 virtual void SetLabel( const wxString
& label
);
42 virtual bool Enable( bool enable
= true );
44 static wxVisualAttributes
45 GetClassDefaultAttributes(wxWindowVariant variant
= wxWINDOW_VARIANT_NORMAL
);
48 void GTKDisableEvents();
49 void GTKEnableEvents();
52 virtual void DoApplyWidgetStyle(GtkRcStyle
*style
);
53 virtual GdkWindow
*GTKGetWindow(wxArrayGdkWindows
& windows
) const;
55 void DoSet3StateValue(wxCheckBoxState state
);
56 wxCheckBoxState
DoGet3StateValue() const;
59 typedef wxCheckBoxBase base_type
;
61 GtkWidget
*m_widgetCheckbox
;
62 GtkWidget
*m_widgetLabel
;
64 DECLARE_DYNAMIC_CLASS(wxCheckBox
)
67 #endif // _WX_GTKCHECKBOX_H_