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 //---------------------------------------------------------------------------
19 MAKE_CONST_WXSTRING(CheckBoxNameStr);
23 // Determine whether to use a 3-state or 2-state
24 // checkbox. 3-state enables to differentiate
25 // between 'unchecked', 'checked' and 'undetermined'.
30 // If this style is set the user can set the checkbox to the
31 // undetermined state. If not set the undetermined set can only
32 // be set programmatically.
33 // This style can only be used with 3 state checkboxes.
34 wxCHK_ALLOW_3RD_STATE_FOR_USER,
41 wxCHK_UNDETERMINED /* 3-state checkbox only */
45 //---------------------------------------------------------------------------
47 class wxCheckBox : public wxControl
50 %pythonAppend wxCheckBox "self._setOORInfo(self)"
51 %pythonAppend wxCheckBox() ""
53 wxCheckBox(wxWindow* parent, wxWindowID id, const wxString& label,
54 const wxPoint& pos = wxDefaultPosition,
55 const wxSize& size = wxDefaultSize,
57 const wxValidator& validator = wxDefaultValidator,
58 const wxString& name = wxPyCheckBoxNameStr);
59 %name(PreCheckBox)wxCheckBox();
61 bool Create(wxWindow* parent, wxWindowID id, const wxString& label,
62 const wxPoint& pos = wxDefaultPosition,
63 const wxSize& size = wxDefaultSize,
65 const wxValidator& validator = wxDefaultValidator,
66 const wxString& name = wxPyCheckBoxNameStr);
70 void SetValue(const bool state);
71 wxCheckBoxState Get3StateValue() const;
72 void Set3StateValue(wxCheckBoxState state);
73 bool Is3State() const;
74 bool Is3rdStateAllowedForUser() const;
77 //---------------------------------------------------------------------------
78 //---------------------------------------------------------------------------