]>
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__
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 void SetLabel( const wxString
& label
);
46 bool Enable( bool enable
);
51 void ApplyWidgetStyle();
52 bool IsOwnGtkWindow( GdkWindow
*window
);
53 void OnInternalIdle();
55 GtkWidget
*m_widgetCheckbox
;
56 GtkWidget
*m_widgetLabel
;
61 virtual wxSize
DoGetBestSize() const;
64 DECLARE_DYNAMIC_CLASS(wxCheckBox
)
67 #endif // __GTKCHECKBOXH__