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 items for platforms that don't have this class
 
  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         { wxPyRaiseNotImplemented(); }
 
  39         { wxPyRaiseNotImplemented(); }
 
  46 %constant wxEventType wxEVT_COMMAND_TOGGLEBUTTON_CLICKED;
 
  49     EVT_TOGGLEBUTTON = wx.PyEventBinder( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, 1)
 
  53 MustHaveApp(wxToggleButton);
 
  55 class wxToggleButton : public wxControl
 
  58     %pythonAppend wxToggleButton         "self._setOORInfo(self)"
 
  59     %pythonAppend wxToggleButton()       ""
 
  61     wxToggleButton(wxWindow *parent,
 
  63                    const wxString& label = wxPyEmptyString,
 
  64                    const wxPoint& pos = wxDefaultPosition,
 
  65                    const wxSize& size = wxDefaultSize,
 
  67                    const wxValidator& validator = wxDefaultValidator,
 
  68                    const wxString& name = wxPyToggleButtonNameStr);
 
  69     %RenameCtor(PreToggleButton, wxToggleButton());
 
  71     bool Create(wxWindow *parent,
 
  73                    const wxString& label = wxPyEmptyString,
 
  74                    const wxPoint& pos = wxDefaultPosition,
 
  75                    const wxSize& size = wxDefaultSize,
 
  77                    const wxValidator& validator = wxDefaultValidator,
 
  78                    const wxString& name = wxPyToggleButtonNameStr);
 
  80     void SetValue(bool value);
 
  81     bool GetValue() const ;
 
  82     void SetLabel(const wxString& label);
 
  84     static wxVisualAttributes
 
  85     GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
 
  88 //---------------------------------------------------------------------------