1 /*
2 * Interface wrapper code.
3 *
4 * Generated by SIP 4.19.16
5 *
6 * Copyright: (c) 2018 by Total Control Software
7 * License: wxWindows License
8 */
9
10 #include "sipAPI_core.h"
11
12 #include <wx/tglbtn.h>
13
14 #include <wx/window.h>
15 #include <wx/gdicmn.h>
16 #include <wx/gdicmn.h>
17 #include <wx/validate.h>
18 #include <wx/window.h>
19 #include <wx/event.h>
20 #include <wx/bitmap.h>
21 #include <wx/dc.h>
22 #include <wx/event.h>
23 #include <wx/event.h>
24 #include <wx/setup.h>
25 #include <wxPython/wxpy_api.h>
26 #include <wx/event.h>
27 #include <wx/cursor.h>
28 #include <wx/caret.h>
29 #include <wx/layout.h>
30 #include <wx/sizer.h>
31 #include <wx/dnd.h>
32 #include <wx/access.h>
33 #include <wx/accel.h>
34 #include <wx/menu.h>
35 #include <wx/tooltip.h>
36 #include <wx/event.h>
37 #include <wx/gdicmn.h>
38 #include <wx/event.h>
39 #include <wx/event.h>
40 #include <wx/palette.h>
41 #include <wx/colour.h>
42 #include <wx/font.h>
43 #include <wx/region.h>
44
45 #include <wx/eventfilter.h>
46 #include <wx/object.h>
47 #include <wx/object.h>
48 #include <wx/object.h>
49
50
51 class sipwxToggleButton : public ::wxToggleButton
52 {
53 public:
54 sipwxToggleButton();
55 sipwxToggleButton( ::wxWindow*, ::wxWindowID,const ::wxString&,const ::wxPoint&,const ::wxSize&,long,const ::wxValidator&,const ::wxString&);
56 virtual ~sipwxToggleButton();
57
58 /*
59 * There is a public method for every protected method visible from
60 * this class.
61 */
62 void sipProtect_SendDestroyEvent();
63 bool sipProtectVirt_ProcessEvent(bool, ::wxEvent&);
64 void sipProtectVirt_DoEnable(bool,bool);
65 void sipProtectVirt_DoGetPosition(bool,int*,int*) const;
66 void sipProtectVirt_DoGetSize(bool,int*,int*) const;
67 void sipProtectVirt_DoGetClientSize(bool,int*,int*) const;
68 ::wxSize sipProtectVirt_DoGetBestSize(bool) const;
69 ::wxSize sipProtectVirt_DoGetBestClientSize(bool) const;
70 void sipProtectVirt_DoSetSize(bool,int,int,int,int,int);
71 void sipProtectVirt_DoSetClientSize(bool,int,int);
72 void sipProtectVirt_DoSetSizeHints(bool,int,int,int,int,int,int);
73 ::wxSize sipProtectVirt_DoGetBorderSize(bool) const;
74 void sipProtectVirt_DoMoveWindow(bool,int,int,int,int);
75 void sipProtectVirt_DoSetWindowVariant(bool, ::wxWindowVariant);
76 ::wxBorder sipProtectVirt_GetDefaultBorder(bool) const;
77 ::wxBorder sipProtectVirt_GetDefaultBorderForControl(bool) const;
78 void sipProtectVirt_DoFreeze(bool);
79 void sipProtectVirt_DoThaw(bool);
80 bool sipProtectVirt_HasTransparentBackground(bool);
81 bool sipProtectVirt_TryBefore(bool, ::wxEvent&);
82 bool sipProtectVirt_TryAfter(bool, ::wxEvent&);
83
84 /*
85 * There is a protected method for every virtual method visible from
86 * this class.
87 */
88 protected:
89 void RemoveChild( ::wxWindowBase*) SIP_OVERRIDE;
90 void AddChild( ::wxWindowBase*) SIP_OVERRIDE;
91 bool ProcessEvent( ::wxEvent&) SIP_OVERRIDE;
92 bool TryBefore( ::wxEvent&) SIP_OVERRIDE;
93 bool TryAfter( ::wxEvent&) SIP_OVERRIDE;
94 bool AcceptsFocus() const SIP_OVERRIDE;
95 bool AcceptsFocusFromKeyboard() const SIP_OVERRIDE;
96 bool AcceptsFocusRecursively() const SIP_OVERRIDE;
97 void SetCanFocus(bool) SIP_OVERRIDE;
98 bool InformFirstDirection(int,int,int) SIP_OVERRIDE;
99 ::wxPoint GetClientAreaOrigin() const SIP_OVERRIDE;
100 bool HasTransparentBackground() SIP_OVERRIDE;
101 bool ShouldInheritColours() const SIP_OVERRIDE;
102 ::wxValidator* GetValidator() SIP_OVERRIDE;
103 void SetValidator(const ::wxValidator&) SIP_OVERRIDE;
104 bool TransferDataFromWindow() SIP_OVERRIDE;
105 bool TransferDataToWindow() SIP_OVERRIDE;
106 bool Validate() SIP_OVERRIDE;
107 bool Destroy() SIP_OVERRIDE;
108 void InheritAttributes() SIP_OVERRIDE;
109 void InitDialog() SIP_OVERRIDE;
110 void OnInternalIdle() SIP_OVERRIDE;
111 ::wxWindow* GetMainWindowOfCompositeControl() SIP_OVERRIDE;
112 void DoEnable(bool) SIP_OVERRIDE;
113 void DoGetPosition(int*,int*) const SIP_OVERRIDE;
114 void DoGetSize(int*,int*) const SIP_OVERRIDE;
115 void DoGetClientSize(int*,int*) const SIP_OVERRIDE;
116 void DoSetSize(int,int,int,int,int) SIP_OVERRIDE;
117 void DoSetClientSize(int,int) SIP_OVERRIDE;
118 void DoSetSizeHints(int,int,int,int,int,int) SIP_OVERRIDE;
119 ::wxSize DoGetBorderSize() const SIP_OVERRIDE;
120 void DoMoveWindow(int,int,int,int) SIP_OVERRIDE;
121 void DoSetWindowVariant( ::wxWindowVariant) SIP_OVERRIDE;
122 ::wxBorder GetDefaultBorder() const SIP_OVERRIDE;
123 ::wxBorder GetDefaultBorderForControl() const SIP_OVERRIDE;
124 void DoFreeze() SIP_OVERRIDE;
125 void DoThaw() SIP_OVERRIDE;
126 ::wxSize DoGetBestSize() const SIP_OVERRIDE;
127 ::wxSize DoGetBestClientSize() const SIP_OVERRIDE;
128
129 public:
130 sipSimpleWrapper *sipPySelf;
131
132 private:
133 sipwxToggleButton(const sipwxToggleButton &);
134 sipwxToggleButton &operator = (const sipwxToggleButton &);
135
136 char sipPyMethods[39];
137 };
138
sipwxToggleButton()139 sipwxToggleButton::sipwxToggleButton(): ::wxToggleButton(), sipPySelf(SIP_NULLPTR)
140 {
141 memset(sipPyMethods, 0, sizeof (sipPyMethods));
142 }
143
sipwxToggleButton(::wxWindow * parent,::wxWindowID id,const::wxString & label,const::wxPoint & pos,const::wxSize & size,long style,const::wxValidator & val,const::wxString & name)144 sipwxToggleButton::sipwxToggleButton( ::wxWindow*parent, ::wxWindowID id,const ::wxString& label,const ::wxPoint& pos,const ::wxSize& size,long style,const ::wxValidator& val,const ::wxString& name): ::wxToggleButton(parent,id,label,pos,size,style,val,name), sipPySelf(SIP_NULLPTR)
145 {
146 memset(sipPyMethods, 0, sizeof (sipPyMethods));
147 }
148
~sipwxToggleButton()149 sipwxToggleButton::~sipwxToggleButton()
150 {
151 sipInstanceDestroyedEx(&sipPySelf);
152 }
153
RemoveChild(::wxWindowBase * child)154 void sipwxToggleButton::RemoveChild( ::wxWindowBase*child)
155 {
156 sip_gilstate_t sipGILState;
157 PyObject *sipMeth;
158
159 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,SIP_NULLPTR,sipName_RemoveChild);
160
161 if (!sipMeth)
162 {
163 ::wxToggleButton::RemoveChild(child);
164 return;
165 }
166
167 extern void sipVH__core_110(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxWindowBase*);
168
169 sipVH__core_110(sipGILState, 0, sipPySelf, sipMeth, child);
170 }
171
AddChild(::wxWindowBase * child)172 void sipwxToggleButton::AddChild( ::wxWindowBase*child)
173 {
174 sip_gilstate_t sipGILState;
175 PyObject *sipMeth;
176
177 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,SIP_NULLPTR,sipName_AddChild);
178
179 if (!sipMeth)
180 {
181 ::wxToggleButton::AddChild(child);
182 return;
183 }
184
185 extern void sipVH__core_110(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxWindowBase*);
186
187 sipVH__core_110(sipGILState, 0, sipPySelf, sipMeth, child);
188 }
189
ProcessEvent(::wxEvent & event)190 bool sipwxToggleButton::ProcessEvent( ::wxEvent& event)
191 {
192 sip_gilstate_t sipGILState;
193 PyObject *sipMeth;
194
195 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,SIP_NULLPTR,sipName_ProcessEvent);
196
197 if (!sipMeth)
198 return ::wxToggleButton::ProcessEvent(event);
199
200 extern bool sipVH__core_90(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxEvent&);
201
202 return sipVH__core_90(sipGILState, 0, sipPySelf, sipMeth, event);
203 }
204
TryBefore(::wxEvent & event)205 bool sipwxToggleButton::TryBefore( ::wxEvent& event)
206 {
207 sip_gilstate_t sipGILState;
208 PyObject *sipMeth;
209
210 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,SIP_NULLPTR,sipName_TryBefore);
211
212 if (!sipMeth)
213 return ::wxToggleButton::TryBefore(event);
214
215 extern bool sipVH__core_90(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxEvent&);
216
217 return sipVH__core_90(sipGILState, 0, sipPySelf, sipMeth, event);
218 }
219
TryAfter(::wxEvent & event)220 bool sipwxToggleButton::TryAfter( ::wxEvent& event)
221 {
222 sip_gilstate_t sipGILState;
223 PyObject *sipMeth;
224
225 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,SIP_NULLPTR,sipName_TryAfter);
226
227 if (!sipMeth)
228 return ::wxToggleButton::TryAfter(event);
229
230 extern bool sipVH__core_90(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxEvent&);
231
232 return sipVH__core_90(sipGILState, 0, sipPySelf, sipMeth, event);
233 }
234
AcceptsFocus() const235 bool sipwxToggleButton::AcceptsFocus() const
236 {
237 sip_gilstate_t sipGILState;
238 PyObject *sipMeth;
239
240 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[5]),sipPySelf,SIP_NULLPTR,sipName_AcceptsFocus);
241
242 if (!sipMeth)
243 return ::wxToggleButton::AcceptsFocus();
244
245 extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
246
247 return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
248 }
249
AcceptsFocusFromKeyboard() const250 bool sipwxToggleButton::AcceptsFocusFromKeyboard() const
251 {
252 sip_gilstate_t sipGILState;
253 PyObject *sipMeth;
254
255 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[6]),sipPySelf,SIP_NULLPTR,sipName_AcceptsFocusFromKeyboard);
256
257 if (!sipMeth)
258 return ::wxToggleButton::AcceptsFocusFromKeyboard();
259
260 extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
261
262 return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
263 }
264
AcceptsFocusRecursively() const265 bool sipwxToggleButton::AcceptsFocusRecursively() const
266 {
267 sip_gilstate_t sipGILState;
268 PyObject *sipMeth;
269
270 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[7]),sipPySelf,SIP_NULLPTR,sipName_AcceptsFocusRecursively);
271
272 if (!sipMeth)
273 return ::wxToggleButton::AcceptsFocusRecursively();
274
275 extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
276
277 return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
278 }
279
SetCanFocus(bool canFocus)280 void sipwxToggleButton::SetCanFocus(bool canFocus)
281 {
282 sip_gilstate_t sipGILState;
283 PyObject *sipMeth;
284
285 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,SIP_NULLPTR,sipName_SetCanFocus);
286
287 if (!sipMeth)
288 {
289 ::wxToggleButton::SetCanFocus(canFocus);
290 return;
291 }
292
293 extern void sipVH__core_84(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);
294
295 sipVH__core_84(sipGILState, 0, sipPySelf, sipMeth, canFocus);
296 }
297
InformFirstDirection(int direction,int size,int availableOtherDir)298 bool sipwxToggleButton::InformFirstDirection(int direction,int size,int availableOtherDir)
299 {
300 sip_gilstate_t sipGILState;
301 PyObject *sipMeth;
302
303 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,SIP_NULLPTR,sipName_InformFirstDirection);
304
305 if (!sipMeth)
306 return ::wxToggleButton::InformFirstDirection(direction,size,availableOtherDir);
307
308 extern bool sipVH__core_111(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,int);
309
310 return sipVH__core_111(sipGILState, 0, sipPySelf, sipMeth, direction, size, availableOtherDir);
311 }
312
GetClientAreaOrigin() const313 ::wxPoint sipwxToggleButton::GetClientAreaOrigin() const
314 {
315 sip_gilstate_t sipGILState;
316 PyObject *sipMeth;
317
318 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[10]),sipPySelf,SIP_NULLPTR,sipName_GetClientAreaOrigin);
319
320 if (!sipMeth)
321 return ::wxToggleButton::GetClientAreaOrigin();
322
323 extern ::wxPoint sipVH__core_112(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
324
325 return sipVH__core_112(sipGILState, 0, sipPySelf, sipMeth);
326 }
327
HasTransparentBackground()328 bool sipwxToggleButton::HasTransparentBackground()
329 {
330 sip_gilstate_t sipGILState;
331 PyObject *sipMeth;
332
333 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,SIP_NULLPTR,sipName_HasTransparentBackground);
334
335 if (!sipMeth)
336 return ::wxToggleButton::HasTransparentBackground();
337
338 extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
339
340 return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
341 }
342
ShouldInheritColours() const343 bool sipwxToggleButton::ShouldInheritColours() const
344 {
345 sip_gilstate_t sipGILState;
346 PyObject *sipMeth;
347
348 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[12]),sipPySelf,SIP_NULLPTR,sipName_ShouldInheritColours);
349
350 if (!sipMeth)
351 return ::wxToggleButton::ShouldInheritColours();
352
353 extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
354
355 return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
356 }
357
GetValidator()358 ::wxValidator* sipwxToggleButton::GetValidator()
359 {
360 sip_gilstate_t sipGILState;
361 PyObject *sipMeth;
362
363 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,SIP_NULLPTR,sipName_GetValidator);
364
365 if (!sipMeth)
366 return ::wxToggleButton::GetValidator();
367
368 extern ::wxValidator* sipVH__core_113(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
369
370 return sipVH__core_113(sipGILState, 0, sipPySelf, sipMeth);
371 }
372
SetValidator(const::wxValidator & validator)373 void sipwxToggleButton::SetValidator(const ::wxValidator& validator)
374 {
375 sip_gilstate_t sipGILState;
376 PyObject *sipMeth;
377
378 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,SIP_NULLPTR,sipName_SetValidator);
379
380 if (!sipMeth)
381 {
382 ::wxToggleButton::SetValidator(validator);
383 return;
384 }
385
386 extern void sipVH__core_114(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const ::wxValidator&);
387
388 sipVH__core_114(sipGILState, 0, sipPySelf, sipMeth, validator);
389 }
390
TransferDataFromWindow()391 bool sipwxToggleButton::TransferDataFromWindow()
392 {
393 sip_gilstate_t sipGILState;
394 PyObject *sipMeth;
395
396 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,SIP_NULLPTR,sipName_TransferDataFromWindow);
397
398 if (!sipMeth)
399 return ::wxToggleButton::TransferDataFromWindow();
400
401 extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
402
403 return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
404 }
405
TransferDataToWindow()406 bool sipwxToggleButton::TransferDataToWindow()
407 {
408 sip_gilstate_t sipGILState;
409 PyObject *sipMeth;
410
411 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,SIP_NULLPTR,sipName_TransferDataToWindow);
412
413 if (!sipMeth)
414 return ::wxToggleButton::TransferDataToWindow();
415
416 extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
417
418 return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
419 }
420
Validate()421 bool sipwxToggleButton::Validate()
422 {
423 sip_gilstate_t sipGILState;
424 PyObject *sipMeth;
425
426 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,SIP_NULLPTR,sipName_Validate);
427
428 if (!sipMeth)
429 return ::wxToggleButton::Validate();
430
431 extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
432
433 return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
434 }
435
Destroy()436 bool sipwxToggleButton::Destroy()
437 {
438 sip_gilstate_t sipGILState;
439 PyObject *sipMeth;
440
441 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,SIP_NULLPTR,sipName_Destroy);
442
443 if (!sipMeth)
444 return ::wxToggleButton::Destroy();
445
446 extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
447
448 return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
449 }
450
InheritAttributes()451 void sipwxToggleButton::InheritAttributes()
452 {
453 sip_gilstate_t sipGILState;
454 PyObject *sipMeth;
455
456 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,SIP_NULLPTR,sipName_InheritAttributes);
457
458 if (!sipMeth)
459 {
460 ::wxToggleButton::InheritAttributes();
461 return;
462 }
463
464 extern void sipVH__core_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
465
466 sipVH__core_45(sipGILState, 0, sipPySelf, sipMeth);
467 }
468
InitDialog()469 void sipwxToggleButton::InitDialog()
470 {
471 sip_gilstate_t sipGILState;
472 PyObject *sipMeth;
473
474 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,SIP_NULLPTR,sipName_InitDialog);
475
476 if (!sipMeth)
477 {
478 ::wxToggleButton::InitDialog();
479 return;
480 }
481
482 extern void sipVH__core_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
483
484 sipVH__core_45(sipGILState, 0, sipPySelf, sipMeth);
485 }
486
OnInternalIdle()487 void sipwxToggleButton::OnInternalIdle()
488 {
489 sip_gilstate_t sipGILState;
490 PyObject *sipMeth;
491
492 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,SIP_NULLPTR,sipName_OnInternalIdle);
493
494 if (!sipMeth)
495 {
496 ::wxToggleButton::OnInternalIdle();
497 return;
498 }
499
500 extern void sipVH__core_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
501
502 sipVH__core_45(sipGILState, 0, sipPySelf, sipMeth);
503 }
504
GetMainWindowOfCompositeControl()505 ::wxWindow* sipwxToggleButton::GetMainWindowOfCompositeControl()
506 {
507 sip_gilstate_t sipGILState;
508 PyObject *sipMeth;
509
510 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[22],sipPySelf,SIP_NULLPTR,sipName_GetMainWindowOfCompositeControl);
511
512 if (!sipMeth)
513 return ::wxToggleButton::GetMainWindowOfCompositeControl();
514
515 extern ::wxWindow* sipVH__core_115(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
516
517 return sipVH__core_115(sipGILState, 0, sipPySelf, sipMeth);
518 }
519
DoEnable(bool enable)520 void sipwxToggleButton::DoEnable(bool enable)
521 {
522 sip_gilstate_t sipGILState;
523 PyObject *sipMeth;
524
525 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],sipPySelf,SIP_NULLPTR,sipName_DoEnable);
526
527 if (!sipMeth)
528 {
529 ::wxToggleButton::DoEnable(enable);
530 return;
531 }
532
533 extern void sipVH__core_84(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);
534
535 sipVH__core_84(sipGILState, 0, sipPySelf, sipMeth, enable);
536 }
537
DoGetPosition(int * x,int * y) const538 void sipwxToggleButton::DoGetPosition(int*x,int*y) const
539 {
540 sip_gilstate_t sipGILState;
541 PyObject *sipMeth;
542
543 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[24]),sipPySelf,SIP_NULLPTR,sipName_DoGetPosition);
544
545 if (!sipMeth)
546 {
547 ::wxToggleButton::DoGetPosition(x,y);
548 return;
549 }
550
551 extern void sipVH__core_116(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int*,int*);
552
553 sipVH__core_116(sipGILState, 0, sipPySelf, sipMeth, x, y);
554 }
555
DoGetSize(int * width,int * height) const556 void sipwxToggleButton::DoGetSize(int*width,int*height) const
557 {
558 sip_gilstate_t sipGILState;
559 PyObject *sipMeth;
560
561 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[25]),sipPySelf,SIP_NULLPTR,sipName_DoGetSize);
562
563 if (!sipMeth)
564 {
565 ::wxToggleButton::DoGetSize(width,height);
566 return;
567 }
568
569 extern void sipVH__core_116(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int*,int*);
570
571 sipVH__core_116(sipGILState, 0, sipPySelf, sipMeth, width, height);
572 }
573
DoGetClientSize(int * width,int * height) const574 void sipwxToggleButton::DoGetClientSize(int*width,int*height) const
575 {
576 sip_gilstate_t sipGILState;
577 PyObject *sipMeth;
578
579 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[26]),sipPySelf,SIP_NULLPTR,sipName_DoGetClientSize);
580
581 if (!sipMeth)
582 {
583 ::wxToggleButton::DoGetClientSize(width,height);
584 return;
585 }
586
587 extern void sipVH__core_116(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int*,int*);
588
589 sipVH__core_116(sipGILState, 0, sipPySelf, sipMeth, width, height);
590 }
591
DoSetSize(int x,int y,int width,int height,int sizeFlags)592 void sipwxToggleButton::DoSetSize(int x,int y,int width,int height,int sizeFlags)
593 {
594 sip_gilstate_t sipGILState;
595 PyObject *sipMeth;
596
597 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[27],sipPySelf,SIP_NULLPTR,sipName_DoSetSize);
598
599 if (!sipMeth)
600 {
601 ::wxToggleButton::DoSetSize(x,y,width,height,sizeFlags);
602 return;
603 }
604
605 extern void sipVH__core_117(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,int,int,int);
606
607 sipVH__core_117(sipGILState, 0, sipPySelf, sipMeth, x, y, width, height, sizeFlags);
608 }
609
DoSetClientSize(int width,int height)610 void sipwxToggleButton::DoSetClientSize(int width,int height)
611 {
612 sip_gilstate_t sipGILState;
613 PyObject *sipMeth;
614
615 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[28],sipPySelf,SIP_NULLPTR,sipName_DoSetClientSize);
616
617 if (!sipMeth)
618 {
619 ::wxToggleButton::DoSetClientSize(width,height);
620 return;
621 }
622
623 extern void sipVH__core_118(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int);
624
625 sipVH__core_118(sipGILState, 0, sipPySelf, sipMeth, width, height);
626 }
627
DoSetSizeHints(int minW,int minH,int maxW,int maxH,int incW,int incH)628 void sipwxToggleButton::DoSetSizeHints(int minW,int minH,int maxW,int maxH,int incW,int incH)
629 {
630 sip_gilstate_t sipGILState;
631 PyObject *sipMeth;
632
633 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[29],sipPySelf,SIP_NULLPTR,sipName_DoSetSizeHints);
634
635 if (!sipMeth)
636 {
637 ::wxToggleButton::DoSetSizeHints(minW,minH,maxW,maxH,incW,incH);
638 return;
639 }
640
641 extern void sipVH__core_119(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,int,int,int,int);
642
643 sipVH__core_119(sipGILState, 0, sipPySelf, sipMeth, minW, minH, maxW, maxH, incW, incH);
644 }
645
DoGetBorderSize() const646 ::wxSize sipwxToggleButton::DoGetBorderSize() const
647 {
648 sip_gilstate_t sipGILState;
649 PyObject *sipMeth;
650
651 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[30]),sipPySelf,SIP_NULLPTR,sipName_DoGetBorderSize);
652
653 if (!sipMeth)
654 return ::wxToggleButton::DoGetBorderSize();
655
656 extern ::wxSize sipVH__core_93(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
657
658 return sipVH__core_93(sipGILState, 0, sipPySelf, sipMeth);
659 }
660
DoMoveWindow(int x,int y,int width,int height)661 void sipwxToggleButton::DoMoveWindow(int x,int y,int width,int height)
662 {
663 sip_gilstate_t sipGILState;
664 PyObject *sipMeth;
665
666 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[31],sipPySelf,SIP_NULLPTR,sipName_DoMoveWindow);
667
668 if (!sipMeth)
669 {
670 ::wxToggleButton::DoMoveWindow(x,y,width,height);
671 return;
672 }
673
674 extern void sipVH__core_120(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,int,int);
675
676 sipVH__core_120(sipGILState, 0, sipPySelf, sipMeth, x, y, width, height);
677 }
678
DoSetWindowVariant(::wxWindowVariant variant)679 void sipwxToggleButton::DoSetWindowVariant( ::wxWindowVariant variant)
680 {
681 sip_gilstate_t sipGILState;
682 PyObject *sipMeth;
683
684 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[32],sipPySelf,SIP_NULLPTR,sipName_DoSetWindowVariant);
685
686 if (!sipMeth)
687 {
688 ::wxToggleButton::DoSetWindowVariant(variant);
689 return;
690 }
691
692 extern void sipVH__core_121(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxWindowVariant);
693
694 sipVH__core_121(sipGILState, 0, sipPySelf, sipMeth, variant);
695 }
696
GetDefaultBorder() const697 ::wxBorder sipwxToggleButton::GetDefaultBorder() const
698 {
699 sip_gilstate_t sipGILState;
700 PyObject *sipMeth;
701
702 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[33]),sipPySelf,SIP_NULLPTR,sipName_GetDefaultBorder);
703
704 if (!sipMeth)
705 return ::wxToggleButton::GetDefaultBorder();
706
707 extern ::wxBorder sipVH__core_122(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
708
709 return sipVH__core_122(sipGILState, 0, sipPySelf, sipMeth);
710 }
711
GetDefaultBorderForControl() const712 ::wxBorder sipwxToggleButton::GetDefaultBorderForControl() const
713 {
714 sip_gilstate_t sipGILState;
715 PyObject *sipMeth;
716
717 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[34]),sipPySelf,SIP_NULLPTR,sipName_GetDefaultBorderForControl);
718
719 if (!sipMeth)
720 return ::wxToggleButton::GetDefaultBorderForControl();
721
722 extern ::wxBorder sipVH__core_122(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
723
724 return sipVH__core_122(sipGILState, 0, sipPySelf, sipMeth);
725 }
726
DoFreeze()727 void sipwxToggleButton::DoFreeze()
728 {
729 sip_gilstate_t sipGILState;
730 PyObject *sipMeth;
731
732 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[35],sipPySelf,SIP_NULLPTR,sipName_DoFreeze);
733
734 if (!sipMeth)
735 {
736 ::wxToggleButton::DoFreeze();
737 return;
738 }
739
740 extern void sipVH__core_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
741
742 sipVH__core_45(sipGILState, 0, sipPySelf, sipMeth);
743 }
744
DoThaw()745 void sipwxToggleButton::DoThaw()
746 {
747 sip_gilstate_t sipGILState;
748 PyObject *sipMeth;
749
750 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[36],sipPySelf,SIP_NULLPTR,sipName_DoThaw);
751
752 if (!sipMeth)
753 {
754 ::wxToggleButton::DoThaw();
755 return;
756 }
757
758 extern void sipVH__core_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
759
760 sipVH__core_45(sipGILState, 0, sipPySelf, sipMeth);
761 }
762
DoGetBestSize() const763 ::wxSize sipwxToggleButton::DoGetBestSize() const
764 {
765 sip_gilstate_t sipGILState;
766 PyObject *sipMeth;
767
768 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[37]),sipPySelf,SIP_NULLPTR,sipName_DoGetBestSize);
769
770 if (!sipMeth)
771 return ::wxToggleButton::DoGetBestSize();
772
773 extern ::wxSize sipVH__core_93(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
774
775 return sipVH__core_93(sipGILState, 0, sipPySelf, sipMeth);
776 }
777
DoGetBestClientSize() const778 ::wxSize sipwxToggleButton::DoGetBestClientSize() const
779 {
780 sip_gilstate_t sipGILState;
781 PyObject *sipMeth;
782
783 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[38]),sipPySelf,SIP_NULLPTR,sipName_DoGetBestClientSize);
784
785 if (!sipMeth)
786 return ::wxToggleButton::DoGetBestClientSize();
787
788 extern ::wxSize sipVH__core_93(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
789
790 return sipVH__core_93(sipGILState, 0, sipPySelf, sipMeth);
791 }
792
sipProtect_SendDestroyEvent()793 void sipwxToggleButton::sipProtect_SendDestroyEvent()
794 {
795 ::wxWindow::SendDestroyEvent();
796 }
797
sipProtectVirt_ProcessEvent(bool sipSelfWasArg,::wxEvent & event)798 bool sipwxToggleButton::sipProtectVirt_ProcessEvent(bool sipSelfWasArg, ::wxEvent& event)
799 {
800 return (sipSelfWasArg ? ::wxToggleButton::ProcessEvent(event) : ProcessEvent(event));
801 }
802
sipProtectVirt_DoEnable(bool sipSelfWasArg,bool enable)803 void sipwxToggleButton::sipProtectVirt_DoEnable(bool sipSelfWasArg,bool enable)
804 {
805 (sipSelfWasArg ? ::wxToggleButton::DoEnable(enable) : DoEnable(enable));
806 }
807
sipProtectVirt_DoGetPosition(bool sipSelfWasArg,int * x,int * y) const808 void sipwxToggleButton::sipProtectVirt_DoGetPosition(bool sipSelfWasArg,int*x,int*y) const
809 {
810 (sipSelfWasArg ? ::wxToggleButton::DoGetPosition(x,y) : DoGetPosition(x,y));
811 }
812
sipProtectVirt_DoGetSize(bool sipSelfWasArg,int * width,int * height) const813 void sipwxToggleButton::sipProtectVirt_DoGetSize(bool sipSelfWasArg,int*width,int*height) const
814 {
815 (sipSelfWasArg ? ::wxToggleButton::DoGetSize(width,height) : DoGetSize(width,height));
816 }
817
sipProtectVirt_DoGetClientSize(bool sipSelfWasArg,int * width,int * height) const818 void sipwxToggleButton::sipProtectVirt_DoGetClientSize(bool sipSelfWasArg,int*width,int*height) const
819 {
820 (sipSelfWasArg ? ::wxToggleButton::DoGetClientSize(width,height) : DoGetClientSize(width,height));
821 }
822
sipProtectVirt_DoGetBestSize(bool sipSelfWasArg) const823 ::wxSize sipwxToggleButton::sipProtectVirt_DoGetBestSize(bool sipSelfWasArg) const
824 {
825 return (sipSelfWasArg ? ::wxToggleButton::DoGetBestSize() : DoGetBestSize());
826 }
827
sipProtectVirt_DoGetBestClientSize(bool sipSelfWasArg) const828 ::wxSize sipwxToggleButton::sipProtectVirt_DoGetBestClientSize(bool sipSelfWasArg) const
829 {
830 return (sipSelfWasArg ? ::wxToggleButton::DoGetBestClientSize() : DoGetBestClientSize());
831 }
832
sipProtectVirt_DoSetSize(bool sipSelfWasArg,int x,int y,int width,int height,int sizeFlags)833 void sipwxToggleButton::sipProtectVirt_DoSetSize(bool sipSelfWasArg,int x,int y,int width,int height,int sizeFlags)
834 {
835 (sipSelfWasArg ? ::wxToggleButton::DoSetSize(x,y,width,height,sizeFlags) : DoSetSize(x,y,width,height,sizeFlags));
836 }
837
sipProtectVirt_DoSetClientSize(bool sipSelfWasArg,int width,int height)838 void sipwxToggleButton::sipProtectVirt_DoSetClientSize(bool sipSelfWasArg,int width,int height)
839 {
840 (sipSelfWasArg ? ::wxToggleButton::DoSetClientSize(width,height) : DoSetClientSize(width,height));
841 }
842
sipProtectVirt_DoSetSizeHints(bool sipSelfWasArg,int minW,int minH,int maxW,int maxH,int incW,int incH)843 void sipwxToggleButton::sipProtectVirt_DoSetSizeHints(bool sipSelfWasArg,int minW,int minH,int maxW,int maxH,int incW,int incH)
844 {
845 (sipSelfWasArg ? ::wxToggleButton::DoSetSizeHints(minW,minH,maxW,maxH,incW,incH) : DoSetSizeHints(minW,minH,maxW,maxH,incW,incH));
846 }
847
sipProtectVirt_DoGetBorderSize(bool sipSelfWasArg) const848 ::wxSize sipwxToggleButton::sipProtectVirt_DoGetBorderSize(bool sipSelfWasArg) const
849 {
850 return (sipSelfWasArg ? ::wxToggleButton::DoGetBorderSize() : DoGetBorderSize());
851 }
852
sipProtectVirt_DoMoveWindow(bool sipSelfWasArg,int x,int y,int width,int height)853 void sipwxToggleButton::sipProtectVirt_DoMoveWindow(bool sipSelfWasArg,int x,int y,int width,int height)
854 {
855 (sipSelfWasArg ? ::wxToggleButton::DoMoveWindow(x,y,width,height) : DoMoveWindow(x,y,width,height));
856 }
857
sipProtectVirt_DoSetWindowVariant(bool sipSelfWasArg,::wxWindowVariant variant)858 void sipwxToggleButton::sipProtectVirt_DoSetWindowVariant(bool sipSelfWasArg, ::wxWindowVariant variant)
859 {
860 (sipSelfWasArg ? ::wxToggleButton::DoSetWindowVariant(variant) : DoSetWindowVariant(variant));
861 }
862
sipProtectVirt_GetDefaultBorder(bool sipSelfWasArg) const863 ::wxBorder sipwxToggleButton::sipProtectVirt_GetDefaultBorder(bool sipSelfWasArg) const
864 {
865 return (sipSelfWasArg ? ::wxToggleButton::GetDefaultBorder() : GetDefaultBorder());
866 }
867
sipProtectVirt_GetDefaultBorderForControl(bool sipSelfWasArg) const868 ::wxBorder sipwxToggleButton::sipProtectVirt_GetDefaultBorderForControl(bool sipSelfWasArg) const
869 {
870 return (sipSelfWasArg ? ::wxToggleButton::GetDefaultBorderForControl() : GetDefaultBorderForControl());
871 }
872
sipProtectVirt_DoFreeze(bool sipSelfWasArg)873 void sipwxToggleButton::sipProtectVirt_DoFreeze(bool sipSelfWasArg)
874 {
875 (sipSelfWasArg ? ::wxToggleButton::DoFreeze() : DoFreeze());
876 }
877
sipProtectVirt_DoThaw(bool sipSelfWasArg)878 void sipwxToggleButton::sipProtectVirt_DoThaw(bool sipSelfWasArg)
879 {
880 (sipSelfWasArg ? ::wxToggleButton::DoThaw() : DoThaw());
881 }
882
sipProtectVirt_HasTransparentBackground(bool sipSelfWasArg)883 bool sipwxToggleButton::sipProtectVirt_HasTransparentBackground(bool sipSelfWasArg)
884 {
885 return (sipSelfWasArg ? ::wxToggleButton::HasTransparentBackground() : HasTransparentBackground());
886 }
887
sipProtectVirt_TryBefore(bool sipSelfWasArg,::wxEvent & event)888 bool sipwxToggleButton::sipProtectVirt_TryBefore(bool sipSelfWasArg, ::wxEvent& event)
889 {
890 return (sipSelfWasArg ? ::wxToggleButton::TryBefore(event) : TryBefore(event));
891 }
892
sipProtectVirt_TryAfter(bool sipSelfWasArg,::wxEvent & event)893 bool sipwxToggleButton::sipProtectVirt_TryAfter(bool sipSelfWasArg, ::wxEvent& event)
894 {
895 return (sipSelfWasArg ? ::wxToggleButton::TryAfter(event) : TryAfter(event));
896 }
897
898
899 PyDoc_STRVAR(doc_wxToggleButton_SendDestroyEvent, "SendDestroyEvent()\n"
900 "\n"
901 "Generate wxWindowDestroyEvent for this window.");
902
903 extern "C" {static PyObject *meth_wxToggleButton_SendDestroyEvent(PyObject *, PyObject *);}
meth_wxToggleButton_SendDestroyEvent(PyObject * sipSelf,PyObject * sipArgs)904 static PyObject *meth_wxToggleButton_SendDestroyEvent(PyObject *sipSelf, PyObject *sipArgs)
905 {
906 PyObject *sipParseErr = SIP_NULLPTR;
907
908 {
909 sipwxToggleButton *sipCpp;
910
911 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxToggleButton, &sipCpp))
912 {
913 PyErr_Clear();
914
915 Py_BEGIN_ALLOW_THREADS
916 sipCpp->sipProtect_SendDestroyEvent();
917 Py_END_ALLOW_THREADS
918
919 if (PyErr_Occurred())
920 return 0;
921
922 Py_INCREF(Py_None);
923 return Py_None;
924 }
925 }
926
927 /* Raise an exception if the arguments couldn't be parsed. */
928 sipNoMethod(sipParseErr, sipName_ToggleButton, sipName_SendDestroyEvent, SIP_NULLPTR);
929
930 return SIP_NULLPTR;
931 }
932
933
934 PyDoc_STRVAR(doc_wxToggleButton_Create, "Create(parent, id=ID_ANY, label=EmptyString, pos=DefaultPosition, size=DefaultSize, style=0, val=DefaultValidator, name=CheckBoxNameStr) -> bool\n"
935 "\n"
936 "Creates the toggle button for two-step construction.");
937
938 extern "C" {static PyObject *meth_wxToggleButton_Create(PyObject *, PyObject *, PyObject *);}
meth_wxToggleButton_Create(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)939 static PyObject *meth_wxToggleButton_Create(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
940 {
941 PyObject *sipParseErr = SIP_NULLPTR;
942
943 {
944 ::wxWindow* parent;
945 ::wxWindowID id = wxID_ANY;
946 const ::wxString& labeldef = wxEmptyString;
947 const ::wxString* label = &labeldef;
948 int labelState = 0;
949 const ::wxPoint& posdef = wxDefaultPosition;
950 const ::wxPoint* pos = &posdef;
951 int posState = 0;
952 const ::wxSize& sizedef = wxDefaultSize;
953 const ::wxSize* size = &sizedef;
954 int sizeState = 0;
955 long style = 0;
956 const ::wxValidator& valdef = wxDefaultValidator;
957 const ::wxValidator* val = &valdef;
958 const ::wxString& namedef = wxCheckBoxNameStr;
959 const ::wxString* name = &namedef;
960 int nameState = 0;
961 sipWrapper *sipOwner = SIP_NULLPTR;
962 ::wxToggleButton *sipCpp;
963
964 static const char *sipKwdList[] = {
965 sipName_parent,
966 sipName_id,
967 sipName_label,
968 sipName_pos,
969 sipName_size,
970 sipName_style,
971 sipName_val,
972 sipName_name,
973 };
974
975 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJH|iJ1J1J1lJ9J1", &sipSelf, sipType_wxToggleButton, &sipCpp, sipType_wxWindow, &parent, &sipOwner, &id, sipType_wxString,&label, &labelState, sipType_wxPoint, &pos, &posState, sipType_wxSize, &size, &sizeState, &style, sipType_wxValidator, &val, sipType_wxString,&name, &nameState))
976 {
977 bool sipRes;
978
979 PyErr_Clear();
980
981 Py_BEGIN_ALLOW_THREADS
982 sipRes = sipCpp->Create(parent,id,*label,*pos,*size,style,*val,*name);
983 Py_END_ALLOW_THREADS
984
985 if (sipOwner)
986 sipTransferTo(sipSelf, (PyObject *)sipOwner);
987 else
988 sipTransferBack(sipSelf);
989 sipReleaseType(const_cast< ::wxString *>(label),sipType_wxString,labelState);
990 sipReleaseType(const_cast< ::wxPoint *>(pos),sipType_wxPoint,posState);
991 sipReleaseType(const_cast< ::wxSize *>(size),sipType_wxSize,sizeState);
992 sipReleaseType(const_cast< ::wxString *>(name),sipType_wxString,nameState);
993
994 if (PyErr_Occurred())
995 return 0;
996
997 return PyBool_FromLong(sipRes);
998 }
999 }
1000
1001 /* Raise an exception if the arguments couldn't be parsed. */
1002 sipNoMethod(sipParseErr, sipName_ToggleButton, sipName_Create, SIP_NULLPTR);
1003
1004 return SIP_NULLPTR;
1005 }
1006
1007
1008 PyDoc_STRVAR(doc_wxToggleButton_GetValue, "GetValue() -> bool\n"
1009 "\n"
1010 "Gets the state of the toggle button.");
1011
1012 extern "C" {static PyObject *meth_wxToggleButton_GetValue(PyObject *, PyObject *);}
meth_wxToggleButton_GetValue(PyObject * sipSelf,PyObject * sipArgs)1013 static PyObject *meth_wxToggleButton_GetValue(PyObject *sipSelf, PyObject *sipArgs)
1014 {
1015 PyObject *sipParseErr = SIP_NULLPTR;
1016
1017 {
1018 const ::wxToggleButton *sipCpp;
1019
1020 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxToggleButton, &sipCpp))
1021 {
1022 bool sipRes;
1023
1024 PyErr_Clear();
1025
1026 Py_BEGIN_ALLOW_THREADS
1027 sipRes = sipCpp->GetValue();
1028 Py_END_ALLOW_THREADS
1029
1030 if (PyErr_Occurred())
1031 return 0;
1032
1033 return PyBool_FromLong(sipRes);
1034 }
1035 }
1036
1037 /* Raise an exception if the arguments couldn't be parsed. */
1038 sipNoMethod(sipParseErr, sipName_ToggleButton, sipName_GetValue, SIP_NULLPTR);
1039
1040 return SIP_NULLPTR;
1041 }
1042
1043
1044 PyDoc_STRVAR(doc_wxToggleButton_SetValue, "SetValue(state)\n"
1045 "\n"
1046 "Sets the toggle button to the given state.");
1047
1048 extern "C" {static PyObject *meth_wxToggleButton_SetValue(PyObject *, PyObject *, PyObject *);}
meth_wxToggleButton_SetValue(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1049 static PyObject *meth_wxToggleButton_SetValue(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1050 {
1051 PyObject *sipParseErr = SIP_NULLPTR;
1052
1053 {
1054 bool state;
1055 ::wxToggleButton *sipCpp;
1056
1057 static const char *sipKwdList[] = {
1058 sipName_state,
1059 };
1060
1061 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bb", &sipSelf, sipType_wxToggleButton, &sipCpp, &state))
1062 {
1063 PyErr_Clear();
1064
1065 Py_BEGIN_ALLOW_THREADS
1066 sipCpp->SetValue(state);
1067 Py_END_ALLOW_THREADS
1068
1069 if (PyErr_Occurred())
1070 return 0;
1071
1072 Py_INCREF(Py_None);
1073 return Py_None;
1074 }
1075 }
1076
1077 /* Raise an exception if the arguments couldn't be parsed. */
1078 sipNoMethod(sipParseErr, sipName_ToggleButton, sipName_SetValue, SIP_NULLPTR);
1079
1080 return SIP_NULLPTR;
1081 }
1082
1083
1084 PyDoc_STRVAR(doc_wxToggleButton_GetClientAreaOrigin, "GetClientAreaOrigin(self) -> Point");
1085
1086 extern "C" {static PyObject *meth_wxToggleButton_GetClientAreaOrigin(PyObject *, PyObject *);}
meth_wxToggleButton_GetClientAreaOrigin(PyObject * sipSelf,PyObject * sipArgs)1087 static PyObject *meth_wxToggleButton_GetClientAreaOrigin(PyObject *sipSelf, PyObject *sipArgs)
1088 {
1089 PyObject *sipParseErr = SIP_NULLPTR;
1090 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1091
1092 {
1093 const ::wxToggleButton *sipCpp;
1094
1095 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxToggleButton, &sipCpp))
1096 {
1097 ::wxPoint*sipRes;
1098
1099 PyErr_Clear();
1100
1101 Py_BEGIN_ALLOW_THREADS
1102 sipRes = new ::wxPoint((sipSelfWasArg ? sipCpp-> ::wxToggleButton::GetClientAreaOrigin() : sipCpp->GetClientAreaOrigin()));
1103 Py_END_ALLOW_THREADS
1104
1105 if (PyErr_Occurred())
1106 return 0;
1107
1108 return sipConvertFromNewType(sipRes,sipType_wxPoint,SIP_NULLPTR);
1109 }
1110 }
1111
1112 /* Raise an exception if the arguments couldn't be parsed. */
1113 sipNoMethod(sipParseErr, sipName_ToggleButton, sipName_GetClientAreaOrigin, doc_wxToggleButton_GetClientAreaOrigin);
1114
1115 return SIP_NULLPTR;
1116 }
1117
1118
1119 PyDoc_STRVAR(doc_wxToggleButton_Validate, "Validate(self) -> bool");
1120
1121 extern "C" {static PyObject *meth_wxToggleButton_Validate(PyObject *, PyObject *);}
meth_wxToggleButton_Validate(PyObject * sipSelf,PyObject * sipArgs)1122 static PyObject *meth_wxToggleButton_Validate(PyObject *sipSelf, PyObject *sipArgs)
1123 {
1124 PyObject *sipParseErr = SIP_NULLPTR;
1125 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1126
1127 {
1128 ::wxToggleButton *sipCpp;
1129
1130 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxToggleButton, &sipCpp))
1131 {
1132 bool sipRes;
1133
1134 PyErr_Clear();
1135
1136 Py_BEGIN_ALLOW_THREADS
1137 sipRes = (sipSelfWasArg ? sipCpp-> ::wxToggleButton::Validate() : sipCpp->Validate());
1138 Py_END_ALLOW_THREADS
1139
1140 if (PyErr_Occurred())
1141 return 0;
1142
1143 return PyBool_FromLong(sipRes);
1144 }
1145 }
1146
1147 /* Raise an exception if the arguments couldn't be parsed. */
1148 sipNoMethod(sipParseErr, sipName_ToggleButton, sipName_Validate, doc_wxToggleButton_Validate);
1149
1150 return SIP_NULLPTR;
1151 }
1152
1153
1154 PyDoc_STRVAR(doc_wxToggleButton_TransferDataToWindow, "TransferDataToWindow(self) -> bool");
1155
1156 extern "C" {static PyObject *meth_wxToggleButton_TransferDataToWindow(PyObject *, PyObject *);}
meth_wxToggleButton_TransferDataToWindow(PyObject * sipSelf,PyObject * sipArgs)1157 static PyObject *meth_wxToggleButton_TransferDataToWindow(PyObject *sipSelf, PyObject *sipArgs)
1158 {
1159 PyObject *sipParseErr = SIP_NULLPTR;
1160 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1161
1162 {
1163 ::wxToggleButton *sipCpp;
1164
1165 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxToggleButton, &sipCpp))
1166 {
1167 bool sipRes;
1168
1169 PyErr_Clear();
1170
1171 Py_BEGIN_ALLOW_THREADS
1172 sipRes = (sipSelfWasArg ? sipCpp-> ::wxToggleButton::TransferDataToWindow() : sipCpp->TransferDataToWindow());
1173 Py_END_ALLOW_THREADS
1174
1175 if (PyErr_Occurred())
1176 return 0;
1177
1178 return PyBool_FromLong(sipRes);
1179 }
1180 }
1181
1182 /* Raise an exception if the arguments couldn't be parsed. */
1183 sipNoMethod(sipParseErr, sipName_ToggleButton, sipName_TransferDataToWindow, doc_wxToggleButton_TransferDataToWindow);
1184
1185 return SIP_NULLPTR;
1186 }
1187
1188
1189 PyDoc_STRVAR(doc_wxToggleButton_TransferDataFromWindow, "TransferDataFromWindow(self) -> bool");
1190
1191 extern "C" {static PyObject *meth_wxToggleButton_TransferDataFromWindow(PyObject *, PyObject *);}
meth_wxToggleButton_TransferDataFromWindow(PyObject * sipSelf,PyObject * sipArgs)1192 static PyObject *meth_wxToggleButton_TransferDataFromWindow(PyObject *sipSelf, PyObject *sipArgs)
1193 {
1194 PyObject *sipParseErr = SIP_NULLPTR;
1195 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1196
1197 {
1198 ::wxToggleButton *sipCpp;
1199
1200 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxToggleButton, &sipCpp))
1201 {
1202 bool sipRes;
1203
1204 PyErr_Clear();
1205
1206 Py_BEGIN_ALLOW_THREADS
1207 sipRes = (sipSelfWasArg ? sipCpp-> ::wxToggleButton::TransferDataFromWindow() : sipCpp->TransferDataFromWindow());
1208 Py_END_ALLOW_THREADS
1209
1210 if (PyErr_Occurred())
1211 return 0;
1212
1213 return PyBool_FromLong(sipRes);
1214 }
1215 }
1216
1217 /* Raise an exception if the arguments couldn't be parsed. */
1218 sipNoMethod(sipParseErr, sipName_ToggleButton, sipName_TransferDataFromWindow, doc_wxToggleButton_TransferDataFromWindow);
1219
1220 return SIP_NULLPTR;
1221 }
1222
1223
1224 PyDoc_STRVAR(doc_wxToggleButton_InitDialog, "InitDialog(self)");
1225
1226 extern "C" {static PyObject *meth_wxToggleButton_InitDialog(PyObject *, PyObject *);}
meth_wxToggleButton_InitDialog(PyObject * sipSelf,PyObject * sipArgs)1227 static PyObject *meth_wxToggleButton_InitDialog(PyObject *sipSelf, PyObject *sipArgs)
1228 {
1229 PyObject *sipParseErr = SIP_NULLPTR;
1230 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1231
1232 {
1233 ::wxToggleButton *sipCpp;
1234
1235 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxToggleButton, &sipCpp))
1236 {
1237 PyErr_Clear();
1238
1239 Py_BEGIN_ALLOW_THREADS
1240 (sipSelfWasArg ? sipCpp-> ::wxToggleButton::InitDialog() : sipCpp->InitDialog());
1241 Py_END_ALLOW_THREADS
1242
1243 if (PyErr_Occurred())
1244 return 0;
1245
1246 Py_INCREF(Py_None);
1247 return Py_None;
1248 }
1249 }
1250
1251 /* Raise an exception if the arguments couldn't be parsed. */
1252 sipNoMethod(sipParseErr, sipName_ToggleButton, sipName_InitDialog, doc_wxToggleButton_InitDialog);
1253
1254 return SIP_NULLPTR;
1255 }
1256
1257
1258 PyDoc_STRVAR(doc_wxToggleButton_AcceptsFocus, "AcceptsFocus(self) -> bool");
1259
1260 extern "C" {static PyObject *meth_wxToggleButton_AcceptsFocus(PyObject *, PyObject *);}
meth_wxToggleButton_AcceptsFocus(PyObject * sipSelf,PyObject * sipArgs)1261 static PyObject *meth_wxToggleButton_AcceptsFocus(PyObject *sipSelf, PyObject *sipArgs)
1262 {
1263 PyObject *sipParseErr = SIP_NULLPTR;
1264 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1265
1266 {
1267 const ::wxToggleButton *sipCpp;
1268
1269 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxToggleButton, &sipCpp))
1270 {
1271 bool sipRes;
1272
1273 PyErr_Clear();
1274
1275 Py_BEGIN_ALLOW_THREADS
1276 sipRes = (sipSelfWasArg ? sipCpp-> ::wxToggleButton::AcceptsFocus() : sipCpp->AcceptsFocus());
1277 Py_END_ALLOW_THREADS
1278
1279 if (PyErr_Occurred())
1280 return 0;
1281
1282 return PyBool_FromLong(sipRes);
1283 }
1284 }
1285
1286 /* Raise an exception if the arguments couldn't be parsed. */
1287 sipNoMethod(sipParseErr, sipName_ToggleButton, sipName_AcceptsFocus, doc_wxToggleButton_AcceptsFocus);
1288
1289 return SIP_NULLPTR;
1290 }
1291
1292
1293 PyDoc_STRVAR(doc_wxToggleButton_AcceptsFocusRecursively, "AcceptsFocusRecursively(self) -> bool");
1294
1295 extern "C" {static PyObject *meth_wxToggleButton_AcceptsFocusRecursively(PyObject *, PyObject *);}
meth_wxToggleButton_AcceptsFocusRecursively(PyObject * sipSelf,PyObject * sipArgs)1296 static PyObject *meth_wxToggleButton_AcceptsFocusRecursively(PyObject *sipSelf, PyObject *sipArgs)
1297 {
1298 PyObject *sipParseErr = SIP_NULLPTR;
1299 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1300
1301 {
1302 const ::wxToggleButton *sipCpp;
1303
1304 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxToggleButton, &sipCpp))
1305 {
1306 bool sipRes;
1307
1308 PyErr_Clear();
1309
1310 Py_BEGIN_ALLOW_THREADS
1311 sipRes = (sipSelfWasArg ? sipCpp-> ::wxToggleButton::AcceptsFocusRecursively() : sipCpp->AcceptsFocusRecursively());
1312 Py_END_ALLOW_THREADS
1313
1314 if (PyErr_Occurred())
1315 return 0;
1316
1317 return PyBool_FromLong(sipRes);
1318 }
1319 }
1320
1321 /* Raise an exception if the arguments couldn't be parsed. */
1322 sipNoMethod(sipParseErr, sipName_ToggleButton, sipName_AcceptsFocusRecursively, doc_wxToggleButton_AcceptsFocusRecursively);
1323
1324 return SIP_NULLPTR;
1325 }
1326
1327
1328 PyDoc_STRVAR(doc_wxToggleButton_AcceptsFocusFromKeyboard, "AcceptsFocusFromKeyboard(self) -> bool");
1329
1330 extern "C" {static PyObject *meth_wxToggleButton_AcceptsFocusFromKeyboard(PyObject *, PyObject *);}
meth_wxToggleButton_AcceptsFocusFromKeyboard(PyObject * sipSelf,PyObject * sipArgs)1331 static PyObject *meth_wxToggleButton_AcceptsFocusFromKeyboard(PyObject *sipSelf, PyObject *sipArgs)
1332 {
1333 PyObject *sipParseErr = SIP_NULLPTR;
1334 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1335
1336 {
1337 const ::wxToggleButton *sipCpp;
1338
1339 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxToggleButton, &sipCpp))
1340 {
1341 bool sipRes;
1342
1343 PyErr_Clear();
1344
1345 Py_BEGIN_ALLOW_THREADS
1346 sipRes = (sipSelfWasArg ? sipCpp-> ::wxToggleButton::AcceptsFocusFromKeyboard() : sipCpp->AcceptsFocusFromKeyboard());
1347 Py_END_ALLOW_THREADS
1348
1349 if (PyErr_Occurred())
1350 return 0;
1351
1352 return PyBool_FromLong(sipRes);
1353 }
1354 }
1355
1356 /* Raise an exception if the arguments couldn't be parsed. */
1357 sipNoMethod(sipParseErr, sipName_ToggleButton, sipName_AcceptsFocusFromKeyboard, doc_wxToggleButton_AcceptsFocusFromKeyboard);
1358
1359 return SIP_NULLPTR;
1360 }
1361
1362
1363 PyDoc_STRVAR(doc_wxToggleButton_AddChild, "AddChild(self, child: WindowBase)");
1364
1365 extern "C" {static PyObject *meth_wxToggleButton_AddChild(PyObject *, PyObject *, PyObject *);}
meth_wxToggleButton_AddChild(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1366 static PyObject *meth_wxToggleButton_AddChild(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1367 {
1368 PyObject *sipParseErr = SIP_NULLPTR;
1369 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1370
1371 {
1372 ::wxWindowBase* child;
1373 ::wxToggleButton *sipCpp;
1374
1375 static const char *sipKwdList[] = {
1376 sipName_child,
1377 };
1378
1379 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8", &sipSelf, sipType_wxToggleButton, &sipCpp, sipType_wxWindowBase, &child))
1380 {
1381 PyErr_Clear();
1382
1383 Py_BEGIN_ALLOW_THREADS
1384 (sipSelfWasArg ? sipCpp-> ::wxToggleButton::AddChild(child) : sipCpp->AddChild(child));
1385 Py_END_ALLOW_THREADS
1386
1387 if (PyErr_Occurred())
1388 return 0;
1389
1390 Py_INCREF(Py_None);
1391 return Py_None;
1392 }
1393 }
1394
1395 /* Raise an exception if the arguments couldn't be parsed. */
1396 sipNoMethod(sipParseErr, sipName_ToggleButton, sipName_AddChild, doc_wxToggleButton_AddChild);
1397
1398 return SIP_NULLPTR;
1399 }
1400
1401
1402 PyDoc_STRVAR(doc_wxToggleButton_RemoveChild, "RemoveChild(self, child: WindowBase)");
1403
1404 extern "C" {static PyObject *meth_wxToggleButton_RemoveChild(PyObject *, PyObject *, PyObject *);}
meth_wxToggleButton_RemoveChild(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1405 static PyObject *meth_wxToggleButton_RemoveChild(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1406 {
1407 PyObject *sipParseErr = SIP_NULLPTR;
1408 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1409
1410 {
1411 ::wxWindowBase* child;
1412 ::wxToggleButton *sipCpp;
1413
1414 static const char *sipKwdList[] = {
1415 sipName_child,
1416 };
1417
1418 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8", &sipSelf, sipType_wxToggleButton, &sipCpp, sipType_wxWindowBase, &child))
1419 {
1420 PyErr_Clear();
1421
1422 Py_BEGIN_ALLOW_THREADS
1423 (sipSelfWasArg ? sipCpp-> ::wxToggleButton::RemoveChild(child) : sipCpp->RemoveChild(child));
1424 Py_END_ALLOW_THREADS
1425
1426 if (PyErr_Occurred())
1427 return 0;
1428
1429 Py_INCREF(Py_None);
1430 return Py_None;
1431 }
1432 }
1433
1434 /* Raise an exception if the arguments couldn't be parsed. */
1435 sipNoMethod(sipParseErr, sipName_ToggleButton, sipName_RemoveChild, doc_wxToggleButton_RemoveChild);
1436
1437 return SIP_NULLPTR;
1438 }
1439
1440
1441 PyDoc_STRVAR(doc_wxToggleButton_InheritAttributes, "InheritAttributes(self)");
1442
1443 extern "C" {static PyObject *meth_wxToggleButton_InheritAttributes(PyObject *, PyObject *);}
meth_wxToggleButton_InheritAttributes(PyObject * sipSelf,PyObject * sipArgs)1444 static PyObject *meth_wxToggleButton_InheritAttributes(PyObject *sipSelf, PyObject *sipArgs)
1445 {
1446 PyObject *sipParseErr = SIP_NULLPTR;
1447 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1448
1449 {
1450 ::wxToggleButton *sipCpp;
1451
1452 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxToggleButton, &sipCpp))
1453 {
1454 PyErr_Clear();
1455
1456 Py_BEGIN_ALLOW_THREADS
1457 (sipSelfWasArg ? sipCpp-> ::wxToggleButton::InheritAttributes() : sipCpp->InheritAttributes());
1458 Py_END_ALLOW_THREADS
1459
1460 if (PyErr_Occurred())
1461 return 0;
1462
1463 Py_INCREF(Py_None);
1464 return Py_None;
1465 }
1466 }
1467
1468 /* Raise an exception if the arguments couldn't be parsed. */
1469 sipNoMethod(sipParseErr, sipName_ToggleButton, sipName_InheritAttributes, doc_wxToggleButton_InheritAttributes);
1470
1471 return SIP_NULLPTR;
1472 }
1473
1474
1475 PyDoc_STRVAR(doc_wxToggleButton_ShouldInheritColours, "ShouldInheritColours(self) -> bool");
1476
1477 extern "C" {static PyObject *meth_wxToggleButton_ShouldInheritColours(PyObject *, PyObject *);}
meth_wxToggleButton_ShouldInheritColours(PyObject * sipSelf,PyObject * sipArgs)1478 static PyObject *meth_wxToggleButton_ShouldInheritColours(PyObject *sipSelf, PyObject *sipArgs)
1479 {
1480 PyObject *sipParseErr = SIP_NULLPTR;
1481 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1482
1483 {
1484 const ::wxToggleButton *sipCpp;
1485
1486 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxToggleButton, &sipCpp))
1487 {
1488 bool sipRes;
1489
1490 PyErr_Clear();
1491
1492 Py_BEGIN_ALLOW_THREADS
1493 sipRes = (sipSelfWasArg ? sipCpp-> ::wxToggleButton::ShouldInheritColours() : sipCpp->ShouldInheritColours());
1494 Py_END_ALLOW_THREADS
1495
1496 if (PyErr_Occurred())
1497 return 0;
1498
1499 return PyBool_FromLong(sipRes);
1500 }
1501 }
1502
1503 /* Raise an exception if the arguments couldn't be parsed. */
1504 sipNoMethod(sipParseErr, sipName_ToggleButton, sipName_ShouldInheritColours, doc_wxToggleButton_ShouldInheritColours);
1505
1506 return SIP_NULLPTR;
1507 }
1508
1509
1510 PyDoc_STRVAR(doc_wxToggleButton_OnInternalIdle, "OnInternalIdle(self)");
1511
1512 extern "C" {static PyObject *meth_wxToggleButton_OnInternalIdle(PyObject *, PyObject *);}
meth_wxToggleButton_OnInternalIdle(PyObject * sipSelf,PyObject * sipArgs)1513 static PyObject *meth_wxToggleButton_OnInternalIdle(PyObject *sipSelf, PyObject *sipArgs)
1514 {
1515 PyObject *sipParseErr = SIP_NULLPTR;
1516 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1517
1518 {
1519 ::wxToggleButton *sipCpp;
1520
1521 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxToggleButton, &sipCpp))
1522 {
1523 PyErr_Clear();
1524
1525 Py_BEGIN_ALLOW_THREADS
1526 (sipSelfWasArg ? sipCpp-> ::wxToggleButton::OnInternalIdle() : sipCpp->OnInternalIdle());
1527 Py_END_ALLOW_THREADS
1528
1529 if (PyErr_Occurred())
1530 return 0;
1531
1532 Py_INCREF(Py_None);
1533 return Py_None;
1534 }
1535 }
1536
1537 /* Raise an exception if the arguments couldn't be parsed. */
1538 sipNoMethod(sipParseErr, sipName_ToggleButton, sipName_OnInternalIdle, doc_wxToggleButton_OnInternalIdle);
1539
1540 return SIP_NULLPTR;
1541 }
1542
1543
1544 PyDoc_STRVAR(doc_wxToggleButton_GetMainWindowOfCompositeControl, "GetMainWindowOfCompositeControl(self) -> Window");
1545
1546 extern "C" {static PyObject *meth_wxToggleButton_GetMainWindowOfCompositeControl(PyObject *, PyObject *);}
meth_wxToggleButton_GetMainWindowOfCompositeControl(PyObject * sipSelf,PyObject * sipArgs)1547 static PyObject *meth_wxToggleButton_GetMainWindowOfCompositeControl(PyObject *sipSelf, PyObject *sipArgs)
1548 {
1549 PyObject *sipParseErr = SIP_NULLPTR;
1550 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1551
1552 {
1553 ::wxToggleButton *sipCpp;
1554
1555 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxToggleButton, &sipCpp))
1556 {
1557 ::wxWindow*sipRes;
1558
1559 PyErr_Clear();
1560
1561 Py_BEGIN_ALLOW_THREADS
1562 sipRes = (sipSelfWasArg ? sipCpp-> ::wxToggleButton::GetMainWindowOfCompositeControl() : sipCpp->GetMainWindowOfCompositeControl());
1563 Py_END_ALLOW_THREADS
1564
1565 if (PyErr_Occurred())
1566 return 0;
1567
1568 return sipConvertFromType(sipRes,sipType_wxWindow,SIP_NULLPTR);
1569 }
1570 }
1571
1572 /* Raise an exception if the arguments couldn't be parsed. */
1573 sipNoMethod(sipParseErr, sipName_ToggleButton, sipName_GetMainWindowOfCompositeControl, doc_wxToggleButton_GetMainWindowOfCompositeControl);
1574
1575 return SIP_NULLPTR;
1576 }
1577
1578
1579 PyDoc_STRVAR(doc_wxToggleButton_InformFirstDirection, "InformFirstDirection(self, direction: int, size: int, availableOtherDir: int) -> bool");
1580
1581 extern "C" {static PyObject *meth_wxToggleButton_InformFirstDirection(PyObject *, PyObject *, PyObject *);}
meth_wxToggleButton_InformFirstDirection(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1582 static PyObject *meth_wxToggleButton_InformFirstDirection(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1583 {
1584 PyObject *sipParseErr = SIP_NULLPTR;
1585 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1586
1587 {
1588 int direction;
1589 int size;
1590 int availableOtherDir;
1591 ::wxToggleButton *sipCpp;
1592
1593 static const char *sipKwdList[] = {
1594 sipName_direction,
1595 sipName_size,
1596 sipName_availableOtherDir,
1597 };
1598
1599 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biii", &sipSelf, sipType_wxToggleButton, &sipCpp, &direction, &size, &availableOtherDir))
1600 {
1601 bool sipRes;
1602
1603 PyErr_Clear();
1604
1605 Py_BEGIN_ALLOW_THREADS
1606 sipRes = (sipSelfWasArg ? sipCpp-> ::wxToggleButton::InformFirstDirection(direction,size,availableOtherDir) : sipCpp->InformFirstDirection(direction,size,availableOtherDir));
1607 Py_END_ALLOW_THREADS
1608
1609 if (PyErr_Occurred())
1610 return 0;
1611
1612 return PyBool_FromLong(sipRes);
1613 }
1614 }
1615
1616 /* Raise an exception if the arguments couldn't be parsed. */
1617 sipNoMethod(sipParseErr, sipName_ToggleButton, sipName_InformFirstDirection, doc_wxToggleButton_InformFirstDirection);
1618
1619 return SIP_NULLPTR;
1620 }
1621
1622
1623 PyDoc_STRVAR(doc_wxToggleButton_SetCanFocus, "SetCanFocus(self, canFocus: bool)");
1624
1625 extern "C" {static PyObject *meth_wxToggleButton_SetCanFocus(PyObject *, PyObject *, PyObject *);}
meth_wxToggleButton_SetCanFocus(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1626 static PyObject *meth_wxToggleButton_SetCanFocus(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1627 {
1628 PyObject *sipParseErr = SIP_NULLPTR;
1629 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1630
1631 {
1632 bool canFocus;
1633 ::wxToggleButton *sipCpp;
1634
1635 static const char *sipKwdList[] = {
1636 sipName_canFocus,
1637 };
1638
1639 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bb", &sipSelf, sipType_wxToggleButton, &sipCpp, &canFocus))
1640 {
1641 PyErr_Clear();
1642
1643 Py_BEGIN_ALLOW_THREADS
1644 (sipSelfWasArg ? sipCpp-> ::wxToggleButton::SetCanFocus(canFocus) : sipCpp->SetCanFocus(canFocus));
1645 Py_END_ALLOW_THREADS
1646
1647 if (PyErr_Occurred())
1648 return 0;
1649
1650 Py_INCREF(Py_None);
1651 return Py_None;
1652 }
1653 }
1654
1655 /* Raise an exception if the arguments couldn't be parsed. */
1656 sipNoMethod(sipParseErr, sipName_ToggleButton, sipName_SetCanFocus, doc_wxToggleButton_SetCanFocus);
1657
1658 return SIP_NULLPTR;
1659 }
1660
1661
1662 PyDoc_STRVAR(doc_wxToggleButton_Destroy, "Destroy(self) -> bool");
1663
1664 extern "C" {static PyObject *meth_wxToggleButton_Destroy(PyObject *, PyObject *);}
meth_wxToggleButton_Destroy(PyObject * sipSelf,PyObject * sipArgs)1665 static PyObject *meth_wxToggleButton_Destroy(PyObject *sipSelf, PyObject *sipArgs)
1666 {
1667 PyObject *sipParseErr = SIP_NULLPTR;
1668 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1669
1670 {
1671 ::wxToggleButton *sipCpp;
1672
1673 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxToggleButton, &sipCpp))
1674 {
1675 bool sipRes;
1676
1677 PyErr_Clear();
1678
1679 Py_BEGIN_ALLOW_THREADS
1680 sipRes = (sipSelfWasArg ? sipCpp-> ::wxToggleButton::Destroy() : sipCpp->Destroy());
1681 Py_END_ALLOW_THREADS
1682
1683 if (PyErr_Occurred())
1684 return 0;
1685
1686 return PyBool_FromLong(sipRes);
1687 }
1688 }
1689
1690 /* Raise an exception if the arguments couldn't be parsed. */
1691 sipNoMethod(sipParseErr, sipName_ToggleButton, sipName_Destroy, doc_wxToggleButton_Destroy);
1692
1693 return SIP_NULLPTR;
1694 }
1695
1696
1697 PyDoc_STRVAR(doc_wxToggleButton_SetValidator, "SetValidator(self, validator: Validator)");
1698
1699 extern "C" {static PyObject *meth_wxToggleButton_SetValidator(PyObject *, PyObject *, PyObject *);}
meth_wxToggleButton_SetValidator(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1700 static PyObject *meth_wxToggleButton_SetValidator(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1701 {
1702 PyObject *sipParseErr = SIP_NULLPTR;
1703 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1704
1705 {
1706 const ::wxValidator* validator;
1707 ::wxToggleButton *sipCpp;
1708
1709 static const char *sipKwdList[] = {
1710 sipName_validator,
1711 };
1712
1713 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxToggleButton, &sipCpp, sipType_wxValidator, &validator))
1714 {
1715 PyErr_Clear();
1716
1717 Py_BEGIN_ALLOW_THREADS
1718 (sipSelfWasArg ? sipCpp-> ::wxToggleButton::SetValidator(*validator) : sipCpp->SetValidator(*validator));
1719 Py_END_ALLOW_THREADS
1720
1721 if (PyErr_Occurred())
1722 return 0;
1723
1724 Py_INCREF(Py_None);
1725 return Py_None;
1726 }
1727 }
1728
1729 /* Raise an exception if the arguments couldn't be parsed. */
1730 sipNoMethod(sipParseErr, sipName_ToggleButton, sipName_SetValidator, doc_wxToggleButton_SetValidator);
1731
1732 return SIP_NULLPTR;
1733 }
1734
1735
1736 PyDoc_STRVAR(doc_wxToggleButton_GetValidator, "GetValidator(self) -> Validator");
1737
1738 extern "C" {static PyObject *meth_wxToggleButton_GetValidator(PyObject *, PyObject *);}
meth_wxToggleButton_GetValidator(PyObject * sipSelf,PyObject * sipArgs)1739 static PyObject *meth_wxToggleButton_GetValidator(PyObject *sipSelf, PyObject *sipArgs)
1740 {
1741 PyObject *sipParseErr = SIP_NULLPTR;
1742 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1743
1744 {
1745 ::wxToggleButton *sipCpp;
1746
1747 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxToggleButton, &sipCpp))
1748 {
1749 ::wxValidator*sipRes;
1750
1751 PyErr_Clear();
1752
1753 Py_BEGIN_ALLOW_THREADS
1754 sipRes = (sipSelfWasArg ? sipCpp-> ::wxToggleButton::GetValidator() : sipCpp->GetValidator());
1755 Py_END_ALLOW_THREADS
1756
1757 if (PyErr_Occurred())
1758 return 0;
1759
1760 return sipConvertFromType(sipRes,sipType_wxValidator,SIP_NULLPTR);
1761 }
1762 }
1763
1764 /* Raise an exception if the arguments couldn't be parsed. */
1765 sipNoMethod(sipParseErr, sipName_ToggleButton, sipName_GetValidator, doc_wxToggleButton_GetValidator);
1766
1767 return SIP_NULLPTR;
1768 }
1769
1770
1771 PyDoc_STRVAR(doc_wxToggleButton_ProcessEvent, "ProcessEvent(self, event: Event) -> bool");
1772
1773 extern "C" {static PyObject *meth_wxToggleButton_ProcessEvent(PyObject *, PyObject *, PyObject *);}
meth_wxToggleButton_ProcessEvent(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1774 static PyObject *meth_wxToggleButton_ProcessEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1775 {
1776 PyObject *sipParseErr = SIP_NULLPTR;
1777 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1778
1779 {
1780 ::wxEvent* event;
1781 sipwxToggleButton *sipCpp;
1782
1783 static const char *sipKwdList[] = {
1784 sipName_event,
1785 };
1786
1787 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxToggleButton, &sipCpp, sipType_wxEvent, &event))
1788 {
1789 bool sipRes;
1790
1791 PyErr_Clear();
1792
1793 Py_BEGIN_ALLOW_THREADS
1794 sipRes = sipCpp->sipProtectVirt_ProcessEvent(sipSelfWasArg,*event);
1795 Py_END_ALLOW_THREADS
1796
1797 if (PyErr_Occurred())
1798 return 0;
1799
1800 return PyBool_FromLong(sipRes);
1801 }
1802 }
1803
1804 /* Raise an exception if the arguments couldn't be parsed. */
1805 sipNoMethod(sipParseErr, sipName_ToggleButton, sipName_ProcessEvent, doc_wxToggleButton_ProcessEvent);
1806
1807 return SIP_NULLPTR;
1808 }
1809
1810
1811 PyDoc_STRVAR(doc_wxToggleButton_DoEnable, "DoEnable(self, enable: bool)");
1812
1813 extern "C" {static PyObject *meth_wxToggleButton_DoEnable(PyObject *, PyObject *, PyObject *);}
meth_wxToggleButton_DoEnable(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1814 static PyObject *meth_wxToggleButton_DoEnable(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1815 {
1816 PyObject *sipParseErr = SIP_NULLPTR;
1817 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1818
1819 {
1820 bool enable;
1821 sipwxToggleButton *sipCpp;
1822
1823 static const char *sipKwdList[] = {
1824 sipName_enable,
1825 };
1826
1827 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bb", &sipSelf, sipType_wxToggleButton, &sipCpp, &enable))
1828 {
1829 PyErr_Clear();
1830
1831 Py_BEGIN_ALLOW_THREADS
1832 sipCpp->sipProtectVirt_DoEnable(sipSelfWasArg,enable);
1833 Py_END_ALLOW_THREADS
1834
1835 if (PyErr_Occurred())
1836 return 0;
1837
1838 Py_INCREF(Py_None);
1839 return Py_None;
1840 }
1841 }
1842
1843 /* Raise an exception if the arguments couldn't be parsed. */
1844 sipNoMethod(sipParseErr, sipName_ToggleButton, sipName_DoEnable, doc_wxToggleButton_DoEnable);
1845
1846 return SIP_NULLPTR;
1847 }
1848
1849
1850 PyDoc_STRVAR(doc_wxToggleButton_DoGetPosition, "DoGetPosition(self) -> Tuple[int, int]");
1851
1852 extern "C" {static PyObject *meth_wxToggleButton_DoGetPosition(PyObject *, PyObject *, PyObject *);}
meth_wxToggleButton_DoGetPosition(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1853 static PyObject *meth_wxToggleButton_DoGetPosition(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1854 {
1855 PyObject *sipParseErr = SIP_NULLPTR;
1856 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1857
1858 {
1859 int x;
1860 int y;
1861 const sipwxToggleButton *sipCpp;
1862
1863 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "B", &sipSelf, sipType_wxToggleButton, &sipCpp))
1864 {
1865 PyErr_Clear();
1866
1867 Py_BEGIN_ALLOW_THREADS
1868 sipCpp->sipProtectVirt_DoGetPosition(sipSelfWasArg,&x,&y);
1869 Py_END_ALLOW_THREADS
1870
1871 if (PyErr_Occurred())
1872 return 0;
1873
1874 return sipBuildResult(0,"(ii)",x,y);
1875 }
1876 }
1877
1878 /* Raise an exception if the arguments couldn't be parsed. */
1879 sipNoMethod(sipParseErr, sipName_ToggleButton, sipName_DoGetPosition, doc_wxToggleButton_DoGetPosition);
1880
1881 return SIP_NULLPTR;
1882 }
1883
1884
1885 PyDoc_STRVAR(doc_wxToggleButton_DoGetSize, "DoGetSize(self) -> Tuple[int, int]");
1886
1887 extern "C" {static PyObject *meth_wxToggleButton_DoGetSize(PyObject *, PyObject *, PyObject *);}
meth_wxToggleButton_DoGetSize(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1888 static PyObject *meth_wxToggleButton_DoGetSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1889 {
1890 PyObject *sipParseErr = SIP_NULLPTR;
1891 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1892
1893 {
1894 int width;
1895 int height;
1896 const sipwxToggleButton *sipCpp;
1897
1898 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "B", &sipSelf, sipType_wxToggleButton, &sipCpp))
1899 {
1900 PyErr_Clear();
1901
1902 Py_BEGIN_ALLOW_THREADS
1903 sipCpp->sipProtectVirt_DoGetSize(sipSelfWasArg,&width,&height);
1904 Py_END_ALLOW_THREADS
1905
1906 if (PyErr_Occurred())
1907 return 0;
1908
1909 return sipBuildResult(0,"(ii)",width,height);
1910 }
1911 }
1912
1913 /* Raise an exception if the arguments couldn't be parsed. */
1914 sipNoMethod(sipParseErr, sipName_ToggleButton, sipName_DoGetSize, doc_wxToggleButton_DoGetSize);
1915
1916 return SIP_NULLPTR;
1917 }
1918
1919
1920 PyDoc_STRVAR(doc_wxToggleButton_DoGetClientSize, "DoGetClientSize(self) -> Tuple[int, int]");
1921
1922 extern "C" {static PyObject *meth_wxToggleButton_DoGetClientSize(PyObject *, PyObject *, PyObject *);}
meth_wxToggleButton_DoGetClientSize(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1923 static PyObject *meth_wxToggleButton_DoGetClientSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1924 {
1925 PyObject *sipParseErr = SIP_NULLPTR;
1926 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1927
1928 {
1929 int width;
1930 int height;
1931 const sipwxToggleButton *sipCpp;
1932
1933 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "B", &sipSelf, sipType_wxToggleButton, &sipCpp))
1934 {
1935 PyErr_Clear();
1936
1937 Py_BEGIN_ALLOW_THREADS
1938 sipCpp->sipProtectVirt_DoGetClientSize(sipSelfWasArg,&width,&height);
1939 Py_END_ALLOW_THREADS
1940
1941 if (PyErr_Occurred())
1942 return 0;
1943
1944 return sipBuildResult(0,"(ii)",width,height);
1945 }
1946 }
1947
1948 /* Raise an exception if the arguments couldn't be parsed. */
1949 sipNoMethod(sipParseErr, sipName_ToggleButton, sipName_DoGetClientSize, doc_wxToggleButton_DoGetClientSize);
1950
1951 return SIP_NULLPTR;
1952 }
1953
1954
1955 PyDoc_STRVAR(doc_wxToggleButton_DoGetBestSize, "DoGetBestSize(self) -> Size");
1956
1957 extern "C" {static PyObject *meth_wxToggleButton_DoGetBestSize(PyObject *, PyObject *);}
meth_wxToggleButton_DoGetBestSize(PyObject * sipSelf,PyObject * sipArgs)1958 static PyObject *meth_wxToggleButton_DoGetBestSize(PyObject *sipSelf, PyObject *sipArgs)
1959 {
1960 PyObject *sipParseErr = SIP_NULLPTR;
1961 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1962
1963 {
1964 const sipwxToggleButton *sipCpp;
1965
1966 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxToggleButton, &sipCpp))
1967 {
1968 ::wxSize*sipRes;
1969
1970 PyErr_Clear();
1971
1972 Py_BEGIN_ALLOW_THREADS
1973 sipRes = new ::wxSize(sipCpp->sipProtectVirt_DoGetBestSize(sipSelfWasArg));
1974 Py_END_ALLOW_THREADS
1975
1976 if (PyErr_Occurred())
1977 return 0;
1978
1979 return sipConvertFromNewType(sipRes,sipType_wxSize,SIP_NULLPTR);
1980 }
1981 }
1982
1983 /* Raise an exception if the arguments couldn't be parsed. */
1984 sipNoMethod(sipParseErr, sipName_ToggleButton, sipName_DoGetBestSize, doc_wxToggleButton_DoGetBestSize);
1985
1986 return SIP_NULLPTR;
1987 }
1988
1989
1990 PyDoc_STRVAR(doc_wxToggleButton_DoGetBestClientSize, "DoGetBestClientSize(self) -> Size");
1991
1992 extern "C" {static PyObject *meth_wxToggleButton_DoGetBestClientSize(PyObject *, PyObject *);}
meth_wxToggleButton_DoGetBestClientSize(PyObject * sipSelf,PyObject * sipArgs)1993 static PyObject *meth_wxToggleButton_DoGetBestClientSize(PyObject *sipSelf, PyObject *sipArgs)
1994 {
1995 PyObject *sipParseErr = SIP_NULLPTR;
1996 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1997
1998 {
1999 const sipwxToggleButton *sipCpp;
2000
2001 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxToggleButton, &sipCpp))
2002 {
2003 ::wxSize*sipRes;
2004
2005 PyErr_Clear();
2006
2007 Py_BEGIN_ALLOW_THREADS
2008 sipRes = new ::wxSize(sipCpp->sipProtectVirt_DoGetBestClientSize(sipSelfWasArg));
2009 Py_END_ALLOW_THREADS
2010
2011 if (PyErr_Occurred())
2012 return 0;
2013
2014 return sipConvertFromNewType(sipRes,sipType_wxSize,SIP_NULLPTR);
2015 }
2016 }
2017
2018 /* Raise an exception if the arguments couldn't be parsed. */
2019 sipNoMethod(sipParseErr, sipName_ToggleButton, sipName_DoGetBestClientSize, doc_wxToggleButton_DoGetBestClientSize);
2020
2021 return SIP_NULLPTR;
2022 }
2023
2024
2025 PyDoc_STRVAR(doc_wxToggleButton_DoSetSize, "DoSetSize(self, x: int, y: int, width: int, height: int, sizeFlags: int)");
2026
2027 extern "C" {static PyObject *meth_wxToggleButton_DoSetSize(PyObject *, PyObject *, PyObject *);}
meth_wxToggleButton_DoSetSize(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2028 static PyObject *meth_wxToggleButton_DoSetSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2029 {
2030 PyObject *sipParseErr = SIP_NULLPTR;
2031 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2032
2033 {
2034 int x;
2035 int y;
2036 int width;
2037 int height;
2038 int sizeFlags;
2039 sipwxToggleButton *sipCpp;
2040
2041 static const char *sipKwdList[] = {
2042 sipName_x,
2043 sipName_y,
2044 sipName_width,
2045 sipName_height,
2046 sipName_sizeFlags,
2047 };
2048
2049 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biiiii", &sipSelf, sipType_wxToggleButton, &sipCpp, &x, &y, &width, &height, &sizeFlags))
2050 {
2051 PyErr_Clear();
2052
2053 Py_BEGIN_ALLOW_THREADS
2054 sipCpp->sipProtectVirt_DoSetSize(sipSelfWasArg,x,y,width,height,sizeFlags);
2055 Py_END_ALLOW_THREADS
2056
2057 if (PyErr_Occurred())
2058 return 0;
2059
2060 Py_INCREF(Py_None);
2061 return Py_None;
2062 }
2063 }
2064
2065 /* Raise an exception if the arguments couldn't be parsed. */
2066 sipNoMethod(sipParseErr, sipName_ToggleButton, sipName_DoSetSize, doc_wxToggleButton_DoSetSize);
2067
2068 return SIP_NULLPTR;
2069 }
2070
2071
2072 PyDoc_STRVAR(doc_wxToggleButton_DoSetClientSize, "DoSetClientSize(self, width: int, height: int)");
2073
2074 extern "C" {static PyObject *meth_wxToggleButton_DoSetClientSize(PyObject *, PyObject *, PyObject *);}
meth_wxToggleButton_DoSetClientSize(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2075 static PyObject *meth_wxToggleButton_DoSetClientSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2076 {
2077 PyObject *sipParseErr = SIP_NULLPTR;
2078 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2079
2080 {
2081 int width;
2082 int height;
2083 sipwxToggleButton *sipCpp;
2084
2085 static const char *sipKwdList[] = {
2086 sipName_width,
2087 sipName_height,
2088 };
2089
2090 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bii", &sipSelf, sipType_wxToggleButton, &sipCpp, &width, &height))
2091 {
2092 PyErr_Clear();
2093
2094 Py_BEGIN_ALLOW_THREADS
2095 sipCpp->sipProtectVirt_DoSetClientSize(sipSelfWasArg,width,height);
2096 Py_END_ALLOW_THREADS
2097
2098 if (PyErr_Occurred())
2099 return 0;
2100
2101 Py_INCREF(Py_None);
2102 return Py_None;
2103 }
2104 }
2105
2106 /* Raise an exception if the arguments couldn't be parsed. */
2107 sipNoMethod(sipParseErr, sipName_ToggleButton, sipName_DoSetClientSize, doc_wxToggleButton_DoSetClientSize);
2108
2109 return SIP_NULLPTR;
2110 }
2111
2112
2113 PyDoc_STRVAR(doc_wxToggleButton_DoSetSizeHints, "DoSetSizeHints(self, minW: int, minH: int, maxW: int, maxH: int, incW: int, incH: int)");
2114
2115 extern "C" {static PyObject *meth_wxToggleButton_DoSetSizeHints(PyObject *, PyObject *, PyObject *);}
meth_wxToggleButton_DoSetSizeHints(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2116 static PyObject *meth_wxToggleButton_DoSetSizeHints(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2117 {
2118 PyObject *sipParseErr = SIP_NULLPTR;
2119 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2120
2121 {
2122 int minW;
2123 int minH;
2124 int maxW;
2125 int maxH;
2126 int incW;
2127 int incH;
2128 sipwxToggleButton *sipCpp;
2129
2130 static const char *sipKwdList[] = {
2131 sipName_minW,
2132 sipName_minH,
2133 sipName_maxW,
2134 sipName_maxH,
2135 sipName_incW,
2136 sipName_incH,
2137 };
2138
2139 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biiiiii", &sipSelf, sipType_wxToggleButton, &sipCpp, &minW, &minH, &maxW, &maxH, &incW, &incH))
2140 {
2141 PyErr_Clear();
2142
2143 Py_BEGIN_ALLOW_THREADS
2144 sipCpp->sipProtectVirt_DoSetSizeHints(sipSelfWasArg,minW,minH,maxW,maxH,incW,incH);
2145 Py_END_ALLOW_THREADS
2146
2147 if (PyErr_Occurred())
2148 return 0;
2149
2150 Py_INCREF(Py_None);
2151 return Py_None;
2152 }
2153 }
2154
2155 /* Raise an exception if the arguments couldn't be parsed. */
2156 sipNoMethod(sipParseErr, sipName_ToggleButton, sipName_DoSetSizeHints, doc_wxToggleButton_DoSetSizeHints);
2157
2158 return SIP_NULLPTR;
2159 }
2160
2161
2162 PyDoc_STRVAR(doc_wxToggleButton_DoGetBorderSize, "DoGetBorderSize(self) -> Size");
2163
2164 extern "C" {static PyObject *meth_wxToggleButton_DoGetBorderSize(PyObject *, PyObject *);}
meth_wxToggleButton_DoGetBorderSize(PyObject * sipSelf,PyObject * sipArgs)2165 static PyObject *meth_wxToggleButton_DoGetBorderSize(PyObject *sipSelf, PyObject *sipArgs)
2166 {
2167 PyObject *sipParseErr = SIP_NULLPTR;
2168 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2169
2170 {
2171 const sipwxToggleButton *sipCpp;
2172
2173 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxToggleButton, &sipCpp))
2174 {
2175 ::wxSize*sipRes;
2176
2177 PyErr_Clear();
2178
2179 Py_BEGIN_ALLOW_THREADS
2180 sipRes = new ::wxSize(sipCpp->sipProtectVirt_DoGetBorderSize(sipSelfWasArg));
2181 Py_END_ALLOW_THREADS
2182
2183 if (PyErr_Occurred())
2184 return 0;
2185
2186 return sipConvertFromNewType(sipRes,sipType_wxSize,SIP_NULLPTR);
2187 }
2188 }
2189
2190 /* Raise an exception if the arguments couldn't be parsed. */
2191 sipNoMethod(sipParseErr, sipName_ToggleButton, sipName_DoGetBorderSize, doc_wxToggleButton_DoGetBorderSize);
2192
2193 return SIP_NULLPTR;
2194 }
2195
2196
2197 PyDoc_STRVAR(doc_wxToggleButton_DoMoveWindow, "DoMoveWindow(self, x: int, y: int, width: int, height: int)");
2198
2199 extern "C" {static PyObject *meth_wxToggleButton_DoMoveWindow(PyObject *, PyObject *, PyObject *);}
meth_wxToggleButton_DoMoveWindow(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2200 static PyObject *meth_wxToggleButton_DoMoveWindow(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2201 {
2202 PyObject *sipParseErr = SIP_NULLPTR;
2203 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2204
2205 {
2206 int x;
2207 int y;
2208 int width;
2209 int height;
2210 sipwxToggleButton *sipCpp;
2211
2212 static const char *sipKwdList[] = {
2213 sipName_x,
2214 sipName_y,
2215 sipName_width,
2216 sipName_height,
2217 };
2218
2219 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biiii", &sipSelf, sipType_wxToggleButton, &sipCpp, &x, &y, &width, &height))
2220 {
2221 PyErr_Clear();
2222
2223 Py_BEGIN_ALLOW_THREADS
2224 sipCpp->sipProtectVirt_DoMoveWindow(sipSelfWasArg,x,y,width,height);
2225 Py_END_ALLOW_THREADS
2226
2227 if (PyErr_Occurred())
2228 return 0;
2229
2230 Py_INCREF(Py_None);
2231 return Py_None;
2232 }
2233 }
2234
2235 /* Raise an exception if the arguments couldn't be parsed. */
2236 sipNoMethod(sipParseErr, sipName_ToggleButton, sipName_DoMoveWindow, doc_wxToggleButton_DoMoveWindow);
2237
2238 return SIP_NULLPTR;
2239 }
2240
2241
2242 PyDoc_STRVAR(doc_wxToggleButton_DoSetWindowVariant, "DoSetWindowVariant(self, variant: WindowVariant)");
2243
2244 extern "C" {static PyObject *meth_wxToggleButton_DoSetWindowVariant(PyObject *, PyObject *, PyObject *);}
meth_wxToggleButton_DoSetWindowVariant(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2245 static PyObject *meth_wxToggleButton_DoSetWindowVariant(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2246 {
2247 PyObject *sipParseErr = SIP_NULLPTR;
2248 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2249
2250 {
2251 ::wxWindowVariant variant;
2252 sipwxToggleButton *sipCpp;
2253
2254 static const char *sipKwdList[] = {
2255 sipName_variant,
2256 };
2257
2258 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BE", &sipSelf, sipType_wxToggleButton, &sipCpp, sipType_wxWindowVariant, &variant))
2259 {
2260 PyErr_Clear();
2261
2262 Py_BEGIN_ALLOW_THREADS
2263 sipCpp->sipProtectVirt_DoSetWindowVariant(sipSelfWasArg,variant);
2264 Py_END_ALLOW_THREADS
2265
2266 if (PyErr_Occurred())
2267 return 0;
2268
2269 Py_INCREF(Py_None);
2270 return Py_None;
2271 }
2272 }
2273
2274 /* Raise an exception if the arguments couldn't be parsed. */
2275 sipNoMethod(sipParseErr, sipName_ToggleButton, sipName_DoSetWindowVariant, doc_wxToggleButton_DoSetWindowVariant);
2276
2277 return SIP_NULLPTR;
2278 }
2279
2280
2281 PyDoc_STRVAR(doc_wxToggleButton_GetDefaultBorder, "GetDefaultBorder(self) -> Border");
2282
2283 extern "C" {static PyObject *meth_wxToggleButton_GetDefaultBorder(PyObject *, PyObject *);}
meth_wxToggleButton_GetDefaultBorder(PyObject * sipSelf,PyObject * sipArgs)2284 static PyObject *meth_wxToggleButton_GetDefaultBorder(PyObject *sipSelf, PyObject *sipArgs)
2285 {
2286 PyObject *sipParseErr = SIP_NULLPTR;
2287 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2288
2289 {
2290 const sipwxToggleButton *sipCpp;
2291
2292 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxToggleButton, &sipCpp))
2293 {
2294 ::wxBorder sipRes;
2295
2296 PyErr_Clear();
2297
2298 Py_BEGIN_ALLOW_THREADS
2299 sipRes = sipCpp->sipProtectVirt_GetDefaultBorder(sipSelfWasArg);
2300 Py_END_ALLOW_THREADS
2301
2302 if (PyErr_Occurred())
2303 return 0;
2304
2305 return sipConvertFromEnum(static_cast<int>(sipRes), sipType_wxBorder);
2306 }
2307 }
2308
2309 /* Raise an exception if the arguments couldn't be parsed. */
2310 sipNoMethod(sipParseErr, sipName_ToggleButton, sipName_GetDefaultBorder, doc_wxToggleButton_GetDefaultBorder);
2311
2312 return SIP_NULLPTR;
2313 }
2314
2315
2316 PyDoc_STRVAR(doc_wxToggleButton_GetDefaultBorderForControl, "GetDefaultBorderForControl(self) -> Border");
2317
2318 extern "C" {static PyObject *meth_wxToggleButton_GetDefaultBorderForControl(PyObject *, PyObject *);}
meth_wxToggleButton_GetDefaultBorderForControl(PyObject * sipSelf,PyObject * sipArgs)2319 static PyObject *meth_wxToggleButton_GetDefaultBorderForControl(PyObject *sipSelf, PyObject *sipArgs)
2320 {
2321 PyObject *sipParseErr = SIP_NULLPTR;
2322 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2323
2324 {
2325 const sipwxToggleButton *sipCpp;
2326
2327 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxToggleButton, &sipCpp))
2328 {
2329 ::wxBorder sipRes;
2330
2331 PyErr_Clear();
2332
2333 Py_BEGIN_ALLOW_THREADS
2334 sipRes = sipCpp->sipProtectVirt_GetDefaultBorderForControl(sipSelfWasArg);
2335 Py_END_ALLOW_THREADS
2336
2337 if (PyErr_Occurred())
2338 return 0;
2339
2340 return sipConvertFromEnum(static_cast<int>(sipRes), sipType_wxBorder);
2341 }
2342 }
2343
2344 /* Raise an exception if the arguments couldn't be parsed. */
2345 sipNoMethod(sipParseErr, sipName_ToggleButton, sipName_GetDefaultBorderForControl, doc_wxToggleButton_GetDefaultBorderForControl);
2346
2347 return SIP_NULLPTR;
2348 }
2349
2350
2351 PyDoc_STRVAR(doc_wxToggleButton_DoFreeze, "DoFreeze(self)");
2352
2353 extern "C" {static PyObject *meth_wxToggleButton_DoFreeze(PyObject *, PyObject *);}
meth_wxToggleButton_DoFreeze(PyObject * sipSelf,PyObject * sipArgs)2354 static PyObject *meth_wxToggleButton_DoFreeze(PyObject *sipSelf, PyObject *sipArgs)
2355 {
2356 PyObject *sipParseErr = SIP_NULLPTR;
2357 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2358
2359 {
2360 sipwxToggleButton *sipCpp;
2361
2362 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxToggleButton, &sipCpp))
2363 {
2364 PyErr_Clear();
2365
2366 Py_BEGIN_ALLOW_THREADS
2367 sipCpp->sipProtectVirt_DoFreeze(sipSelfWasArg);
2368 Py_END_ALLOW_THREADS
2369
2370 if (PyErr_Occurred())
2371 return 0;
2372
2373 Py_INCREF(Py_None);
2374 return Py_None;
2375 }
2376 }
2377
2378 /* Raise an exception if the arguments couldn't be parsed. */
2379 sipNoMethod(sipParseErr, sipName_ToggleButton, sipName_DoFreeze, doc_wxToggleButton_DoFreeze);
2380
2381 return SIP_NULLPTR;
2382 }
2383
2384
2385 PyDoc_STRVAR(doc_wxToggleButton_DoThaw, "DoThaw(self)");
2386
2387 extern "C" {static PyObject *meth_wxToggleButton_DoThaw(PyObject *, PyObject *);}
meth_wxToggleButton_DoThaw(PyObject * sipSelf,PyObject * sipArgs)2388 static PyObject *meth_wxToggleButton_DoThaw(PyObject *sipSelf, PyObject *sipArgs)
2389 {
2390 PyObject *sipParseErr = SIP_NULLPTR;
2391 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2392
2393 {
2394 sipwxToggleButton *sipCpp;
2395
2396 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxToggleButton, &sipCpp))
2397 {
2398 PyErr_Clear();
2399
2400 Py_BEGIN_ALLOW_THREADS
2401 sipCpp->sipProtectVirt_DoThaw(sipSelfWasArg);
2402 Py_END_ALLOW_THREADS
2403
2404 if (PyErr_Occurred())
2405 return 0;
2406
2407 Py_INCREF(Py_None);
2408 return Py_None;
2409 }
2410 }
2411
2412 /* Raise an exception if the arguments couldn't be parsed. */
2413 sipNoMethod(sipParseErr, sipName_ToggleButton, sipName_DoThaw, doc_wxToggleButton_DoThaw);
2414
2415 return SIP_NULLPTR;
2416 }
2417
2418
2419 PyDoc_STRVAR(doc_wxToggleButton_HasTransparentBackground, "HasTransparentBackground(self) -> bool");
2420
2421 extern "C" {static PyObject *meth_wxToggleButton_HasTransparentBackground(PyObject *, PyObject *);}
meth_wxToggleButton_HasTransparentBackground(PyObject * sipSelf,PyObject * sipArgs)2422 static PyObject *meth_wxToggleButton_HasTransparentBackground(PyObject *sipSelf, PyObject *sipArgs)
2423 {
2424 PyObject *sipParseErr = SIP_NULLPTR;
2425 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2426
2427 {
2428 sipwxToggleButton *sipCpp;
2429
2430 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxToggleButton, &sipCpp))
2431 {
2432 bool sipRes;
2433
2434 PyErr_Clear();
2435
2436 Py_BEGIN_ALLOW_THREADS
2437 sipRes = sipCpp->sipProtectVirt_HasTransparentBackground(sipSelfWasArg);
2438 Py_END_ALLOW_THREADS
2439
2440 if (PyErr_Occurred())
2441 return 0;
2442
2443 return PyBool_FromLong(sipRes);
2444 }
2445 }
2446
2447 /* Raise an exception if the arguments couldn't be parsed. */
2448 sipNoMethod(sipParseErr, sipName_ToggleButton, sipName_HasTransparentBackground, doc_wxToggleButton_HasTransparentBackground);
2449
2450 return SIP_NULLPTR;
2451 }
2452
2453
2454 PyDoc_STRVAR(doc_wxToggleButton_TryBefore, "TryBefore(self, event: Event) -> bool");
2455
2456 extern "C" {static PyObject *meth_wxToggleButton_TryBefore(PyObject *, PyObject *, PyObject *);}
meth_wxToggleButton_TryBefore(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2457 static PyObject *meth_wxToggleButton_TryBefore(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2458 {
2459 PyObject *sipParseErr = SIP_NULLPTR;
2460 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2461
2462 {
2463 ::wxEvent* event;
2464 sipwxToggleButton *sipCpp;
2465
2466 static const char *sipKwdList[] = {
2467 sipName_event,
2468 };
2469
2470 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxToggleButton, &sipCpp, sipType_wxEvent, &event))
2471 {
2472 bool sipRes;
2473
2474 PyErr_Clear();
2475
2476 Py_BEGIN_ALLOW_THREADS
2477 sipRes = sipCpp->sipProtectVirt_TryBefore(sipSelfWasArg,*event);
2478 Py_END_ALLOW_THREADS
2479
2480 if (PyErr_Occurred())
2481 return 0;
2482
2483 return PyBool_FromLong(sipRes);
2484 }
2485 }
2486
2487 /* Raise an exception if the arguments couldn't be parsed. */
2488 sipNoMethod(sipParseErr, sipName_ToggleButton, sipName_TryBefore, doc_wxToggleButton_TryBefore);
2489
2490 return SIP_NULLPTR;
2491 }
2492
2493
2494 PyDoc_STRVAR(doc_wxToggleButton_TryAfter, "TryAfter(self, event: Event) -> bool");
2495
2496 extern "C" {static PyObject *meth_wxToggleButton_TryAfter(PyObject *, PyObject *, PyObject *);}
meth_wxToggleButton_TryAfter(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2497 static PyObject *meth_wxToggleButton_TryAfter(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2498 {
2499 PyObject *sipParseErr = SIP_NULLPTR;
2500 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2501
2502 {
2503 ::wxEvent* event;
2504 sipwxToggleButton *sipCpp;
2505
2506 static const char *sipKwdList[] = {
2507 sipName_event,
2508 };
2509
2510 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxToggleButton, &sipCpp, sipType_wxEvent, &event))
2511 {
2512 bool sipRes;
2513
2514 PyErr_Clear();
2515
2516 Py_BEGIN_ALLOW_THREADS
2517 sipRes = sipCpp->sipProtectVirt_TryAfter(sipSelfWasArg,*event);
2518 Py_END_ALLOW_THREADS
2519
2520 if (PyErr_Occurred())
2521 return 0;
2522
2523 return PyBool_FromLong(sipRes);
2524 }
2525 }
2526
2527 /* Raise an exception if the arguments couldn't be parsed. */
2528 sipNoMethod(sipParseErr, sipName_ToggleButton, sipName_TryAfter, doc_wxToggleButton_TryAfter);
2529
2530 return SIP_NULLPTR;
2531 }
2532
2533
2534 PyDoc_STRVAR(doc_wxToggleButton_GetClassDefaultAttributes, "GetClassDefaultAttributes(variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes");
2535
2536 extern "C" {static PyObject *meth_wxToggleButton_GetClassDefaultAttributes(PyObject *, PyObject *, PyObject *);}
meth_wxToggleButton_GetClassDefaultAttributes(PyObject *,PyObject * sipArgs,PyObject * sipKwds)2537 static PyObject *meth_wxToggleButton_GetClassDefaultAttributes(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
2538 {
2539 PyObject *sipParseErr = SIP_NULLPTR;
2540
2541 {
2542 ::wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL;
2543
2544 static const char *sipKwdList[] = {
2545 sipName_variant,
2546 };
2547
2548 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "|E", sipType_wxWindowVariant, &variant))
2549 {
2550 ::wxVisualAttributes*sipRes;
2551
2552 if (!wxPyCheckForApp()) return NULL;
2553
2554 PyErr_Clear();
2555
2556 Py_BEGIN_ALLOW_THREADS
2557 sipRes = new ::wxVisualAttributes( ::wxToggleButton::GetClassDefaultAttributes(variant));
2558 Py_END_ALLOW_THREADS
2559
2560 if (PyErr_Occurred())
2561 return 0;
2562
2563 return sipConvertFromNewType(sipRes,sipType_wxVisualAttributes,SIP_NULLPTR);
2564 }
2565 }
2566
2567 /* Raise an exception if the arguments couldn't be parsed. */
2568 sipNoMethod(sipParseErr, sipName_ToggleButton, sipName_GetClassDefaultAttributes, SIP_NULLPTR);
2569
2570 return SIP_NULLPTR;
2571 }
2572
2573
2574 /* Cast a pointer to a type somewhere in its inheritance hierarchy. */
2575 extern "C" {static void *cast_wxToggleButton(void *, const sipTypeDef *);}
cast_wxToggleButton(void * sipCppV,const sipTypeDef * targetType)2576 static void *cast_wxToggleButton(void *sipCppV, const sipTypeDef *targetType)
2577 {
2578 ::wxToggleButton *sipCpp = reinterpret_cast< ::wxToggleButton *>(sipCppV);
2579
2580 if (targetType == sipType_wxAnyButton)
2581 return static_cast< ::wxAnyButton *>(sipCpp);
2582
2583 if (targetType == sipType_wxControl)
2584 return static_cast< ::wxControl *>(sipCpp);
2585
2586 if (targetType == sipType_wxWindow)
2587 return static_cast< ::wxWindow *>(sipCpp);
2588
2589 if (targetType == sipType_wxWindowBase)
2590 return static_cast< ::wxWindowBase *>(sipCpp);
2591
2592 if (targetType == sipType_wxEvtHandler)
2593 return static_cast< ::wxEvtHandler *>(sipCpp);
2594
2595 if (targetType == sipType_wxObject)
2596 return static_cast< ::wxObject *>(sipCpp);
2597
2598 if (targetType == sipType_wxTrackable)
2599 return static_cast< ::wxTrackable *>(sipCpp);
2600
2601 return sipCppV;
2602 }
2603
2604
2605 /* Call the instance's destructor. */
2606 extern "C" {static void release_wxToggleButton(void *, int);}
release_wxToggleButton(void * sipCppV,int sipState)2607 static void release_wxToggleButton(void *sipCppV, int sipState)
2608 {
2609 Py_BEGIN_ALLOW_THREADS
2610
2611 if (sipState & SIP_DERIVED_CLASS)
2612 delete reinterpret_cast<sipwxToggleButton *>(sipCppV);
2613 else
2614 delete reinterpret_cast< ::wxToggleButton *>(sipCppV);
2615
2616 Py_END_ALLOW_THREADS
2617 }
2618
2619
2620 extern "C" {static void dealloc_wxToggleButton(sipSimpleWrapper *);}
dealloc_wxToggleButton(sipSimpleWrapper * sipSelf)2621 static void dealloc_wxToggleButton(sipSimpleWrapper *sipSelf)
2622 {
2623 if (sipIsDerivedClass(sipSelf))
2624 reinterpret_cast<sipwxToggleButton *>(sipGetAddress(sipSelf))->sipPySelf = SIP_NULLPTR;
2625
2626 if (sipIsOwnedByPython(sipSelf))
2627 {
2628 release_wxToggleButton(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
2629 }
2630 }
2631
2632
2633 extern "C" {static void *init_type_wxToggleButton(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
init_type_wxToggleButton(sipSimpleWrapper * sipSelf,PyObject * sipArgs,PyObject * sipKwds,PyObject ** sipUnused,PyObject ** sipOwner,PyObject ** sipParseErr)2634 static void *init_type_wxToggleButton(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
2635 {
2636 sipwxToggleButton *sipCpp = SIP_NULLPTR;
2637
2638 {
2639 if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, ""))
2640 {
2641
2642 if (!wxPyCheckForApp()) return NULL;
2643
2644 PyErr_Clear();
2645
2646 Py_BEGIN_ALLOW_THREADS
2647 sipCpp = new sipwxToggleButton();
2648 Py_END_ALLOW_THREADS
2649
2650 if (PyErr_Occurred())
2651 {
2652 delete sipCpp;
2653 return SIP_NULLPTR;
2654 }
2655
2656 sipCpp->sipPySelf = sipSelf;
2657
2658 return sipCpp;
2659 }
2660 }
2661
2662 {
2663 ::wxWindow* parent;
2664 ::wxWindowID id = wxID_ANY;
2665 const ::wxString& labeldef = wxEmptyString;
2666 const ::wxString* label = &labeldef;
2667 int labelState = 0;
2668 const ::wxPoint& posdef = wxDefaultPosition;
2669 const ::wxPoint* pos = &posdef;
2670 int posState = 0;
2671 const ::wxSize& sizedef = wxDefaultSize;
2672 const ::wxSize* size = &sizedef;
2673 int sizeState = 0;
2674 long style = 0;
2675 const ::wxValidator& valdef = wxDefaultValidator;
2676 const ::wxValidator* val = &valdef;
2677 const ::wxString& namedef = wxCheckBoxNameStr;
2678 const ::wxString* name = &namedef;
2679 int nameState = 0;
2680
2681 static const char *sipKwdList[] = {
2682 sipName_parent,
2683 sipName_id,
2684 sipName_label,
2685 sipName_pos,
2686 sipName_size,
2687 sipName_style,
2688 sipName_val,
2689 sipName_name,
2690 };
2691
2692 if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "JH|iJ1J1J1lJ9J1", sipType_wxWindow, &parent, sipOwner, &id, sipType_wxString,&label, &labelState, sipType_wxPoint, &pos, &posState, sipType_wxSize, &size, &sizeState, &style, sipType_wxValidator, &val, sipType_wxString,&name, &nameState))
2693 {
2694
2695 if (!wxPyCheckForApp()) return NULL;
2696
2697 PyErr_Clear();
2698
2699 Py_BEGIN_ALLOW_THREADS
2700 sipCpp = new sipwxToggleButton(parent,id,*label,*pos,*size,style,*val,*name);
2701 Py_END_ALLOW_THREADS
2702 sipReleaseType(const_cast< ::wxString *>(label),sipType_wxString,labelState);
2703 sipReleaseType(const_cast< ::wxPoint *>(pos),sipType_wxPoint,posState);
2704 sipReleaseType(const_cast< ::wxSize *>(size),sipType_wxSize,sizeState);
2705 sipReleaseType(const_cast< ::wxString *>(name),sipType_wxString,nameState);
2706
2707 if (PyErr_Occurred())
2708 {
2709 delete sipCpp;
2710 return SIP_NULLPTR;
2711 }
2712
2713 sipCpp->sipPySelf = sipSelf;
2714
2715 return sipCpp;
2716 }
2717 }
2718
2719 return SIP_NULLPTR;
2720 }
2721
2722
2723 /* Define this type's super-types. */
2724 static sipEncodedTypeDef supers_wxToggleButton[] = {{17, 255, 1}};
2725
2726
2727 static PyMethodDef methods_wxToggleButton[] = {
2728 {SIP_MLNAME_CAST(sipName_AcceptsFocus), meth_wxToggleButton_AcceptsFocus, METH_VARARGS, SIP_MLDOC_CAST(doc_wxToggleButton_AcceptsFocus)},
2729 {SIP_MLNAME_CAST(sipName_AcceptsFocusFromKeyboard), meth_wxToggleButton_AcceptsFocusFromKeyboard, METH_VARARGS, SIP_MLDOC_CAST(doc_wxToggleButton_AcceptsFocusFromKeyboard)},
2730 {SIP_MLNAME_CAST(sipName_AcceptsFocusRecursively), meth_wxToggleButton_AcceptsFocusRecursively, METH_VARARGS, SIP_MLDOC_CAST(doc_wxToggleButton_AcceptsFocusRecursively)},
2731 {SIP_MLNAME_CAST(sipName_AddChild), SIP_MLMETH_CAST(meth_wxToggleButton_AddChild), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxToggleButton_AddChild)},
2732 {SIP_MLNAME_CAST(sipName_Create), SIP_MLMETH_CAST(meth_wxToggleButton_Create), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxToggleButton_Create)},
2733 {SIP_MLNAME_CAST(sipName_Destroy), meth_wxToggleButton_Destroy, METH_VARARGS, SIP_MLDOC_CAST(doc_wxToggleButton_Destroy)},
2734 {SIP_MLNAME_CAST(sipName_DoEnable), SIP_MLMETH_CAST(meth_wxToggleButton_DoEnable), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxToggleButton_DoEnable)},
2735 {SIP_MLNAME_CAST(sipName_DoFreeze), meth_wxToggleButton_DoFreeze, METH_VARARGS, SIP_MLDOC_CAST(doc_wxToggleButton_DoFreeze)},
2736 {SIP_MLNAME_CAST(sipName_DoGetBestClientSize), meth_wxToggleButton_DoGetBestClientSize, METH_VARARGS, SIP_MLDOC_CAST(doc_wxToggleButton_DoGetBestClientSize)},
2737 {SIP_MLNAME_CAST(sipName_DoGetBestSize), meth_wxToggleButton_DoGetBestSize, METH_VARARGS, SIP_MLDOC_CAST(doc_wxToggleButton_DoGetBestSize)},
2738 {SIP_MLNAME_CAST(sipName_DoGetBorderSize), meth_wxToggleButton_DoGetBorderSize, METH_VARARGS, SIP_MLDOC_CAST(doc_wxToggleButton_DoGetBorderSize)},
2739 {SIP_MLNAME_CAST(sipName_DoGetClientSize), SIP_MLMETH_CAST(meth_wxToggleButton_DoGetClientSize), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxToggleButton_DoGetClientSize)},
2740 {SIP_MLNAME_CAST(sipName_DoGetPosition), SIP_MLMETH_CAST(meth_wxToggleButton_DoGetPosition), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxToggleButton_DoGetPosition)},
2741 {SIP_MLNAME_CAST(sipName_DoGetSize), SIP_MLMETH_CAST(meth_wxToggleButton_DoGetSize), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxToggleButton_DoGetSize)},
2742 {SIP_MLNAME_CAST(sipName_DoMoveWindow), SIP_MLMETH_CAST(meth_wxToggleButton_DoMoveWindow), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxToggleButton_DoMoveWindow)},
2743 {SIP_MLNAME_CAST(sipName_DoSetClientSize), SIP_MLMETH_CAST(meth_wxToggleButton_DoSetClientSize), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxToggleButton_DoSetClientSize)},
2744 {SIP_MLNAME_CAST(sipName_DoSetSize), SIP_MLMETH_CAST(meth_wxToggleButton_DoSetSize), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxToggleButton_DoSetSize)},
2745 {SIP_MLNAME_CAST(sipName_DoSetSizeHints), SIP_MLMETH_CAST(meth_wxToggleButton_DoSetSizeHints), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxToggleButton_DoSetSizeHints)},
2746 {SIP_MLNAME_CAST(sipName_DoSetWindowVariant), SIP_MLMETH_CAST(meth_wxToggleButton_DoSetWindowVariant), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxToggleButton_DoSetWindowVariant)},
2747 {SIP_MLNAME_CAST(sipName_DoThaw), meth_wxToggleButton_DoThaw, METH_VARARGS, SIP_MLDOC_CAST(doc_wxToggleButton_DoThaw)},
2748 {SIP_MLNAME_CAST(sipName_GetClassDefaultAttributes), SIP_MLMETH_CAST(meth_wxToggleButton_GetClassDefaultAttributes), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxToggleButton_GetClassDefaultAttributes)},
2749 {SIP_MLNAME_CAST(sipName_GetClientAreaOrigin), meth_wxToggleButton_GetClientAreaOrigin, METH_VARARGS, SIP_MLDOC_CAST(doc_wxToggleButton_GetClientAreaOrigin)},
2750 {SIP_MLNAME_CAST(sipName_GetDefaultBorder), meth_wxToggleButton_GetDefaultBorder, METH_VARARGS, SIP_MLDOC_CAST(doc_wxToggleButton_GetDefaultBorder)},
2751 {SIP_MLNAME_CAST(sipName_GetDefaultBorderForControl), meth_wxToggleButton_GetDefaultBorderForControl, METH_VARARGS, SIP_MLDOC_CAST(doc_wxToggleButton_GetDefaultBorderForControl)},
2752 {SIP_MLNAME_CAST(sipName_GetMainWindowOfCompositeControl), meth_wxToggleButton_GetMainWindowOfCompositeControl, METH_VARARGS, SIP_MLDOC_CAST(doc_wxToggleButton_GetMainWindowOfCompositeControl)},
2753 {SIP_MLNAME_CAST(sipName_GetValidator), meth_wxToggleButton_GetValidator, METH_VARARGS, SIP_MLDOC_CAST(doc_wxToggleButton_GetValidator)},
2754 {SIP_MLNAME_CAST(sipName_GetValue), meth_wxToggleButton_GetValue, METH_VARARGS, SIP_MLDOC_CAST(doc_wxToggleButton_GetValue)},
2755 {SIP_MLNAME_CAST(sipName_HasTransparentBackground), meth_wxToggleButton_HasTransparentBackground, METH_VARARGS, SIP_MLDOC_CAST(doc_wxToggleButton_HasTransparentBackground)},
2756 {SIP_MLNAME_CAST(sipName_InformFirstDirection), SIP_MLMETH_CAST(meth_wxToggleButton_InformFirstDirection), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxToggleButton_InformFirstDirection)},
2757 {SIP_MLNAME_CAST(sipName_InheritAttributes), meth_wxToggleButton_InheritAttributes, METH_VARARGS, SIP_MLDOC_CAST(doc_wxToggleButton_InheritAttributes)},
2758 {SIP_MLNAME_CAST(sipName_InitDialog), meth_wxToggleButton_InitDialog, METH_VARARGS, SIP_MLDOC_CAST(doc_wxToggleButton_InitDialog)},
2759 {SIP_MLNAME_CAST(sipName_OnInternalIdle), meth_wxToggleButton_OnInternalIdle, METH_VARARGS, SIP_MLDOC_CAST(doc_wxToggleButton_OnInternalIdle)},
2760 {SIP_MLNAME_CAST(sipName_ProcessEvent), SIP_MLMETH_CAST(meth_wxToggleButton_ProcessEvent), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxToggleButton_ProcessEvent)},
2761 {SIP_MLNAME_CAST(sipName_RemoveChild), SIP_MLMETH_CAST(meth_wxToggleButton_RemoveChild), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxToggleButton_RemoveChild)},
2762 {SIP_MLNAME_CAST(sipName_SendDestroyEvent), meth_wxToggleButton_SendDestroyEvent, METH_VARARGS, SIP_NULLPTR},
2763 {SIP_MLNAME_CAST(sipName_SetCanFocus), SIP_MLMETH_CAST(meth_wxToggleButton_SetCanFocus), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxToggleButton_SetCanFocus)},
2764 {SIP_MLNAME_CAST(sipName_SetValidator), SIP_MLMETH_CAST(meth_wxToggleButton_SetValidator), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxToggleButton_SetValidator)},
2765 {SIP_MLNAME_CAST(sipName_SetValue), SIP_MLMETH_CAST(meth_wxToggleButton_SetValue), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxToggleButton_SetValue)},
2766 {SIP_MLNAME_CAST(sipName_ShouldInheritColours), meth_wxToggleButton_ShouldInheritColours, METH_VARARGS, SIP_MLDOC_CAST(doc_wxToggleButton_ShouldInheritColours)},
2767 {SIP_MLNAME_CAST(sipName_TransferDataFromWindow), meth_wxToggleButton_TransferDataFromWindow, METH_VARARGS, SIP_MLDOC_CAST(doc_wxToggleButton_TransferDataFromWindow)},
2768 {SIP_MLNAME_CAST(sipName_TransferDataToWindow), meth_wxToggleButton_TransferDataToWindow, METH_VARARGS, SIP_MLDOC_CAST(doc_wxToggleButton_TransferDataToWindow)},
2769 {SIP_MLNAME_CAST(sipName_TryAfter), SIP_MLMETH_CAST(meth_wxToggleButton_TryAfter), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxToggleButton_TryAfter)},
2770 {SIP_MLNAME_CAST(sipName_TryBefore), SIP_MLMETH_CAST(meth_wxToggleButton_TryBefore), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxToggleButton_TryBefore)},
2771 {SIP_MLNAME_CAST(sipName_Validate), meth_wxToggleButton_Validate, METH_VARARGS, SIP_MLDOC_CAST(doc_wxToggleButton_Validate)}
2772 };
2773
2774 sipVariableDef variables_wxToggleButton[] = {
2775 {PropertyVariable, sipName_Value, &methods_wxToggleButton[26], &methods_wxToggleButton[37], SIP_NULLPTR, SIP_NULLPTR},
2776 };
2777
2778 PyDoc_STRVAR(doc_wxToggleButton, "ToggleButton()\n"
2779 "ToggleButton(parent, id=ID_ANY, label=EmptyString, pos=DefaultPosition, size=DefaultSize, style=0, val=DefaultValidator, name=CheckBoxNameStr)\n"
2780 "\n"
2781 "wxToggleButton is a button that stays pressed when clicked by the\n"
2782 "user.");
2783
2784
2785 sipClassTypeDef sipTypeDef__core_wxToggleButton = {
2786 {
2787 -1,
2788 SIP_NULLPTR,
2789 SIP_NULLPTR,
2790 SIP_TYPE_SCC|SIP_TYPE_CLASS,
2791 sipNameNr_wxToggleButton,
2792 {SIP_NULLPTR},
2793 SIP_NULLPTR
2794 },
2795 {
2796 sipNameNr_ToggleButton,
2797 {0, 0, 1},
2798 44, methods_wxToggleButton,
2799 0, SIP_NULLPTR,
2800 1, variables_wxToggleButton,
2801 {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
2802 },
2803 doc_wxToggleButton,
2804 -1,
2805 -1,
2806 supers_wxToggleButton,
2807 SIP_NULLPTR,
2808 init_type_wxToggleButton,
2809 SIP_NULLPTR,
2810 SIP_NULLPTR,
2811 #if PY_MAJOR_VERSION >= 3
2812 SIP_NULLPTR,
2813 SIP_NULLPTR,
2814 #else
2815 SIP_NULLPTR,
2816 SIP_NULLPTR,
2817 SIP_NULLPTR,
2818 SIP_NULLPTR,
2819 #endif
2820 dealloc_wxToggleButton,
2821 SIP_NULLPTR,
2822 SIP_NULLPTR,
2823 SIP_NULLPTR,
2824 release_wxToggleButton,
2825 cast_wxToggleButton,
2826 SIP_NULLPTR,
2827 SIP_NULLPTR,
2828 SIP_NULLPTR,
2829 SIP_NULLPTR,
2830 SIP_NULLPTR,
2831 SIP_NULLPTR
2832 };
2833