1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk1/checkbox.h
4 // Author: Robert Roebling
5 // Copyright: (c) 1998 Robert Roebling
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
9 #ifndef __GTKCHECKBOXH__
10 #define __GTKCHECKBOXH__
12 // ----------------------------------------------------------------------------
14 // ----------------------------------------------------------------------------
16 class WXDLLIMPEXP_CORE wxCheckBox
: public wxCheckBoxBase
20 wxCheckBox( wxWindow
*parent
, wxWindowID id
, const wxString
& label
,
21 const wxPoint
& pos
= wxDefaultPosition
,
22 const wxSize
& size
= wxDefaultSize
, long style
= 0,
23 const wxValidator
& validator
= wxDefaultValidator
,
24 const wxString
& name
= wxCheckBoxNameStr
)
26 Create(parent
, id
, label
, pos
, size
, style
, validator
, name
);
28 bool Create(wxWindow
*parent
,
30 const wxString
& label
,
31 const wxPoint
& pos
= wxDefaultPosition
,
32 const wxSize
& size
= wxDefaultSize
,
34 const wxValidator
& validator
= wxDefaultValidator
,
35 const wxString
& name
= wxCheckBoxNameStr
);
37 void SetValue( bool state
);
38 bool GetValue() const;
40 virtual void SetLabel( const wxString
& label
);
41 virtual bool Enable( bool enable
= TRUE
);
43 static wxVisualAttributes
44 GetClassDefaultAttributes(wxWindowVariant variant
= wxWINDOW_VARIANT_NORMAL
);
49 void DoApplyWidgetStyle(GtkRcStyle
*style
);
50 bool IsOwnGtkWindow( GdkWindow
*window
);
51 void OnInternalIdle();
53 GtkWidget
*m_widgetCheckbox
;
54 GtkWidget
*m_widgetLabel
;
59 virtual wxSize
DoGetBestSize() const;
62 DECLARE_DYNAMIC_CLASS(wxCheckBox
)
65 #endif // __GTKCHECKBOXH__