1//--------------------------------------------------------------------------- 2// This file is generated by wxPython's SIP generator. Do not edit by hand. 3// 4// Copyright: (c) 2018 by Total Control Software 5// License: wxWindows License 6// 7// This file will be included by _core.sip 8// 9//--------------------------------------------------------------------------- 10 11//--------------------------------------------------------------------------- 12 13const char* wxRadioButtonNameStr; 14 15class wxRadioButton : wxControl 16{ 17 %Docstring 18 RadioButton() 19 RadioButton(parent, id=ID_ANY, label=EmptyString, pos=DefaultPosition, size=DefaultSize, style=0, validator=DefaultValidator, name=RadioButtonNameStr) 20 21 A radio button item is a button which usually denotes one of several 22 mutually exclusive options. 23 %End 24 %TypeHeaderCode 25 #include <wx/radiobut.h> 26 %End 27 28public: 29 wxRadioButton(); 30 %PreMethodCode 31 if (!wxPyCheckForApp()) return NULL; 32 %End 33 34 wxRadioButton( 35 wxWindow * parent /TransferThis/, 36 wxWindowID id = wxID_ANY, 37 const wxString & label = wxEmptyString, 38 const wxPoint & pos = wxDefaultPosition, 39 const wxSize & size = wxDefaultSize, 40 long style = 0, 41 const wxValidator & validator = wxDefaultValidator, 42 const wxString & name = wxRadioButtonNameStr 43 ); 44 %PreMethodCode 45 if (!wxPyCheckForApp()) return NULL; 46 %End 47 48 ~wxRadioButton(); 49 50 bool Create( 51 wxWindow * parent /TransferThis/, 52 wxWindowID id = wxID_ANY, 53 const wxString & label = wxEmptyString, 54 const wxPoint & pos = wxDefaultPosition, 55 const wxSize & size = wxDefaultSize, 56 long style = 0, 57 const wxValidator & validator = wxDefaultValidator, 58 const wxString & name = wxRadioButtonNameStr 59 ); 60 %Docstring 61 Create(parent, id=ID_ANY, label=EmptyString, pos=DefaultPosition, size=DefaultSize, style=0, validator=DefaultValidator, name=RadioButtonNameStr) -> bool 62 63 Creates the choice for two-step construction. 64 %End 65 66 bool GetValue() const; 67 %Docstring 68 GetValue() -> bool 69 70 Returns true if the radio button is checked, false otherwise. 71 %End 72 73 void SetValue( 74 bool value 75 ); 76 %Docstring 77 SetValue(value) 78 79 Sets the radio button to checked or unchecked status. 80 %End 81 82 public: 83 virtual wxPoint GetClientAreaOrigin() const; 84 virtual bool Validate(); 85 virtual bool TransferDataToWindow(); 86 virtual bool TransferDataFromWindow(); 87 virtual void InitDialog(); 88 virtual bool AcceptsFocus() const; 89 virtual bool AcceptsFocusRecursively() const; 90 virtual bool AcceptsFocusFromKeyboard() const; 91 virtual void AddChild( wxWindowBase *child ); 92 virtual void RemoveChild( wxWindowBase *child ); 93 virtual void InheritAttributes(); 94 virtual bool ShouldInheritColours() const; 95 virtual void OnInternalIdle(); 96 virtual wxWindow *GetMainWindowOfCompositeControl(); 97 virtual bool InformFirstDirection(int direction, int size, int availableOtherDir); 98 virtual void SetCanFocus(bool canFocus); 99 virtual bool Destroy(); 100 virtual void SetValidator( const wxValidator &validator ); 101 virtual wxValidator* GetValidator(); 102 103 104 protected: 105 virtual bool ProcessEvent(wxEvent & event); 106 virtual void DoEnable(bool enable); 107 virtual void DoGetPosition(int *x, int *y) const; 108 virtual void DoGetSize(int *width, int *height) const; 109 virtual void DoGetClientSize(int *width, int *height) const; 110 virtual wxSize DoGetBestSize() const; 111 virtual wxSize DoGetBestClientSize() const; 112 virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags); 113 virtual void DoSetClientSize(int width, int height); 114 virtual void DoSetSizeHints( int minW, int minH, int maxW, int maxH, int incW, int incH ); 115 virtual wxSize DoGetBorderSize() const; 116 virtual void DoMoveWindow(int x, int y, int width, int height); 117 virtual void DoSetWindowVariant( wxWindowVariant variant); 118 virtual wxBorder GetDefaultBorder() const; 119 virtual wxBorder GetDefaultBorderForControl() const; 120 virtual void DoFreeze(); 121 virtual void DoThaw(); 122 virtual bool HasTransparentBackground(); 123 virtual bool TryBefore(wxEvent& event); 124 virtual bool TryAfter(wxEvent& event); 125 126 127 public: 128 129 130 static 131 wxVisualAttributes GetClassDefaultAttributes( 132 wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL 133 ); 134 %Docstring 135 GetClassDefaultAttributes(variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes 136 %End 137 %PreMethodCode 138 if (!wxPyCheckForApp()) return NULL; 139 %End 140 141 public: 142 143 144 %Property(name=Value, get=GetValue, set=SetValue) 145}; // end of class wxRadioButton 146 147 148 149//--------------------------------------------------------------------------- 150 151