1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: SWIG interface defs for wxCheckBox
7 // Created: 10-June-1998
9 // Copyright: (c) 2003 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
16 //---------------------------------------------------------------------------
20 DECLARE_DEF_STRING(CheckBoxNameStr);
25 // Determine whether to use a 3-state or 2-state
26 // checkbox. 3-state enables to differentiate
27 // between 'unchecked', 'checked' and 'undetermined'.
32 // If this style is set the user can set the checkbox to the
33 // undetermined state. If not set the undetermined set can only
34 // be set programmatically.
35 // This style can only be used with 3 state checkboxes.
36 wxCHK_ALLOW_3RD_STATE_FOR_USER,
43 wxCHK_UNDETERMINED /* 3-state checkbox only */
47 //---------------------------------------------------------------------------
49 class wxCheckBox : public wxControl
52 %addtofunc wxCheckBox "self._setOORInfo(self)"
53 %addtofunc wxCheckBox() ""
55 wxCheckBox(wxWindow* parent, wxWindowID id, const wxString& label,
56 const wxPoint& pos = wxDefaultPosition,
57 const wxSize& size = wxDefaultSize,
59 const wxValidator& validator = wxDefaultValidator,
60 const wxString& name = wxPyCheckBoxNameStr);
61 %name(PreCheckBox)wxCheckBox();
63 bool Create(wxWindow* parent, wxWindowID id, const wxString& label,
64 const wxPoint& pos = wxDefaultPosition,
65 const wxSize& size = wxDefaultSize,
67 const wxValidator& validator = wxDefaultValidator,
68 const wxString& name = wxPyCheckBoxNameStr);
72 void SetValue(const bool state);
73 wxCheckBoxState Get3StateValue() const;
74 void Set3StateValue(wxCheckBoxState state);
75 bool Is3State() const;
76 bool Is3rdStateAllowedForUser() const;
79 //---------------------------------------------------------------------------
80 //---------------------------------------------------------------------------