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 //---------------------------------------------------------------------------
18 MAKE_CONST_WXSTRING2(ToggleButtonNameStr, _T("wxToggleButton"));
20 //---------------------------------------------------------------------------
26 // implement dummy classes and such for wxMac
28 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
30 class wxToggleButton : public wxControl
33 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
34 const wxPoint&, const wxSize&, long,
35 const wxValidator&, const wxString&)
36 { PyErr_SetNone(PyExc_NotImplementedError); }
39 { PyErr_SetNone(PyExc_NotImplementedError); }
46 %constant wxEventType wxEVT_COMMAND_TOGGLEBUTTON_CLICKED;
49 EVT_TOGGLEBUTTON = wx.PyEventBinder( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, 1)
53 class wxToggleButton : public wxControl
56 %addtofunc wxToggleButton "self._setOORInfo(self)"
57 %addtofunc wxToggleButton() ""
59 wxToggleButton(wxWindow *parent,
61 const wxString& label,
62 const wxPoint& pos = wxDefaultPosition,
63 const wxSize& size = wxDefaultSize,
65 const wxValidator& validator = wxDefaultValidator,
66 const wxString& name = wxPyToggleButtonNameStr);
67 %name(PreToggleButton)wxToggleButton();
70 bool Create(wxWindow *parent,
72 const wxString& label,
73 const wxPoint& pos = wxDefaultPosition,
74 const wxSize& size = wxDefaultSize,
76 const wxValidator& validator = wxDefaultValidator,
77 const wxString& name = wxPyToggleButtonNameStr);
79 void SetValue(bool value);
80 bool GetValue() const ;
81 void SetLabel(const wxString& label);
85 //---------------------------------------------------------------------------