1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: SWIG interface defs for wxToggleButton
7 // Created: 10-June-1998
9 // Copyright: (c) 2003 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
16 //---------------------------------------------------------------------------
19 wxChar* wxToggleButtonNameStr = _T("wxToggleButton");
20 DECLARE_DEF_STRING(ToggleButtonNameStr);
23 //---------------------------------------------------------------------------
29 // implement dummy classes and such for wxMac
31 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
33 class wxToggleButton : public wxControl
36 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
37 const wxPoint&, const wxSize&, long,
38 const wxValidator&, const wxString&)
39 { PyErr_SetNone(PyExc_NotImplementedError); }
42 { PyErr_SetNone(PyExc_NotImplementedError); }
49 %constant wxEventType wxEVT_COMMAND_TOGGLEBUTTON_CLICKED;
52 EVT_TOGGLEBUTTON = wx.PyEventBinder( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, 1)
56 class wxToggleButton : public wxControl
59 %addtofunc wxToggleButton "self._setOORInfo(self)"
60 %addtofunc wxToggleButton() ""
62 wxToggleButton(wxWindow *parent,
64 const wxString& label,
65 const wxPoint& pos = wxDefaultPosition,
66 const wxSize& size = wxDefaultSize,
68 const wxValidator& validator = wxDefaultValidator,
69 const wxString& name = wxPyToggleButtonNameStr);
70 %name(PreToggleButton)wxToggleButton();
73 bool Create(wxWindow *parent,
75 const wxString& label,
76 const wxPoint& pos = wxDefaultPosition,
77 const wxSize& size = wxDefaultSize,
79 const wxValidator& validator = wxDefaultValidator,
80 const wxString& name = wxPyToggleButtonNameStr);
82 void SetValue(bool value);
83 bool GetValue() const ;
84 void SetLabel(const wxString& label);
88 //---------------------------------------------------------------------------