]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/checkbox.h
Checking for wxUSE_SOCKETS and __GSOCKET_STANDALONE__ should be right, now
[wxWidgets.git] / include / wx / gtk1 / checkbox.h
CommitLineData
c801d85f
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: checkbox.h
3// Purpose:
4// Author: Robert Roebling
dbf858b5 5// Id: $Id$
01111366 6// Copyright: (c) 1998 Robert Roebling
ff8bfdbb 7// Licence: wxWindows licence
c801d85f
KB
8/////////////////////////////////////////////////////////////////////////////
9
10
11#ifndef __GTKCHECKBOXH__
12#define __GTKCHECKBOXH__
13
14#ifdef __GNUG__
15#pragma interface
16#endif
17
18#include "wx/defs.h"
dcf924a3
RR
19
20#if wxUSE_CHECKBOX
21
c801d85f
KB
22#include "wx/object.h"
23#include "wx/list.h"
24#include "wx/control.h"
25
26//-----------------------------------------------------------------------------
27// classes
28//-----------------------------------------------------------------------------
29
30class wxCheckBox;
31
32//-----------------------------------------------------------------------------
33// global data
34//-----------------------------------------------------------------------------
35
36extern const char *wxCheckBoxNameStr;
37
38//-----------------------------------------------------------------------------
39// wxCheckBox
40//-----------------------------------------------------------------------------
41
42class wxCheckBox: public wxControl
43{
ff8bfdbb 44DECLARE_DYNAMIC_CLASS(wxCheckBox)
c801d85f 45
ff8bfdbb 46public:
2cc0e28f 47 wxCheckBox();
ff8bfdbb
VZ
48 wxCheckBox( wxWindow *parent, wxWindowID id, const wxString& label,
49 const wxPoint& pos = wxDefaultPosition,
50 const wxSize& size = wxDefaultSize, long style = 0,
51 const wxValidator& validator = wxDefaultValidator,
52 const wxString& name = wxCheckBoxNameStr)
6de97a3b 53 {
ff8bfdbb 54 Create(parent, id, label, pos, size, style, validator, name);
6de97a3b 55 }
2cc0e28f
VZ
56 bool Create(wxWindow *parent,
57 wxWindowID id,
58 const wxString& label,
59 const wxPoint& pos = wxDefaultPosition,
60 const wxSize& size = wxDefaultSize,
61 long style = 0,
62 const wxValidator& validator = wxDefaultValidator,
63 const wxString& name = wxCheckBoxNameStr );
64
debe6624 65 void SetValue( bool state );
83058c58 66 bool GetValue() const;
ff8bfdbb 67
83058c58 68 void SetLabel( const wxString& label );
f03fc89f 69 bool Enable( bool enable );
ff8bfdbb
VZ
70
71 // implementation
ff8bfdbb 72 void ApplyWidgetStyle();
58614078 73
2cc0e28f
VZ
74 GtkWidget *m_widgetCheckbox;
75 GtkWidget *m_widgetLabel;
c801d85f
KB
76};
77
dcf924a3
RR
78#endif
79
c801d85f 80#endif // __GTKCHECKBOXH__