]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/checkbox.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/checkbox.h
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef __GTKCHECKBOXH__
11 #define __GTKCHECKBOXH__
13 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
17 // ----------------------------------------------------------------------------
19 // ----------------------------------------------------------------------------
21 class wxCheckBox
: public wxCheckBoxBase
25 wxCheckBox( wxWindow
*parent
, wxWindowID id
, const wxString
& label
,
26 const wxPoint
& pos
= wxDefaultPosition
,
27 const wxSize
& size
= wxDefaultSize
, long style
= 0,
28 const wxValidator
& validator
= wxDefaultValidator
,
29 const wxString
& name
= wxCheckBoxNameStr
)
31 Create(parent
, id
, label
, pos
, size
, style
, validator
, name
);
33 bool Create(wxWindow
*parent
,
35 const wxString
& label
,
36 const wxPoint
& pos
= wxDefaultPosition
,
37 const wxSize
& size
= wxDefaultSize
,
39 const wxValidator
& validator
= wxDefaultValidator
,
40 const wxString
& name
= wxCheckBoxNameStr
);
42 void SetValue( bool state
);
43 bool GetValue() const;
45 virtual void SetLabel( const wxString
& label
);
46 virtual bool Enable( bool enable
= TRUE
);
48 static wxVisualAttributes
49 GetClassDefaultAttributes(wxWindowVariant variant
= wxWINDOW_VARIANT_NORMAL
);
54 void ApplyWidgetStyle();
55 bool IsOwnGtkWindow( GdkWindow
*window
);
56 void OnInternalIdle();
58 GtkWidget
*m_widgetCheckbox
;
59 GtkWidget
*m_widgetLabel
;
64 virtual wxSize
DoGetBestSize() const;
67 DECLARE_DYNAMIC_CLASS(wxCheckBox
)
70 #endif // __GTKCHECKBOXH__