]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/checkbox.h
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
11 #ifndef __GTKCHECKBOXH__
12 #define __GTKCHECKBOXH__
19 #include "wx/object.h"
21 #include "wx/control.h"
23 //-----------------------------------------------------------------------------
25 //-----------------------------------------------------------------------------
29 //-----------------------------------------------------------------------------
31 //-----------------------------------------------------------------------------
33 extern const char *wxCheckBoxNameStr
;
35 //-----------------------------------------------------------------------------
37 //-----------------------------------------------------------------------------
39 class wxCheckBox
: public wxControl
41 DECLARE_DYNAMIC_CLASS(wxCheckBox
)
46 inline wxCheckBox( wxWindow
*parent
, wxWindowID id
, const wxString
& label
,
47 const wxPoint
& pos
= wxDefaultPosition
,
48 const wxSize
& size
= wxDefaultSize
, long style
= 0,
49 const wxValidator
& validator
= wxDefaultValidator
,
50 const wxString
& name
= wxCheckBoxNameStr
)
52 Create(parent
, id
, label
, pos
, size
, style
, validator
, name
);
54 bool Create( wxWindow
*parent
, wxWindowID id
, const wxString
& label
,
55 const wxPoint
& pos
= wxDefaultPosition
,
56 const wxSize
& size
= wxDefaultSize
, long style
= 0,
57 const wxValidator
& validator
= wxDefaultValidator
,
58 const wxString
& name
= wxCheckBoxNameStr
);
59 void SetValue( bool state
);
60 bool GetValue() const;
62 void SetLabel( const wxString
& label
);
63 void SetFont( const wxFont
&font
);
64 void Enable( bool enable
);
65 void SetBackgroundColour( const wxColour
&colour
);
68 #endif // __GTKCHECKBOXH__