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/button.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 sipwxButton : public  ::wxButton
52 {
53 public:
54     sipwxButton();
55     sipwxButton( ::wxWindow*, ::wxWindowID,const  ::wxString&,const  ::wxPoint&,const  ::wxSize&,long,const  ::wxValidator&,const  ::wxString&);
56     virtual ~sipwxButton();
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     sipwxButton(const sipwxButton &);
134     sipwxButton &operator = (const sipwxButton &);
135 
136     char sipPyMethods[39];
137 };
138 
sipwxButton()139 sipwxButton::sipwxButton():  ::wxButton(), sipPySelf(SIP_NULLPTR)
140 {
141     memset(sipPyMethods, 0, sizeof (sipPyMethods));
142 }
143 
sipwxButton(::wxWindow * parent,::wxWindowID id,const::wxString & label,const::wxPoint & pos,const::wxSize & size,long style,const::wxValidator & validator,const::wxString & name)144 sipwxButton::sipwxButton( ::wxWindow*parent, ::wxWindowID id,const  ::wxString& label,const  ::wxPoint& pos,const  ::wxSize& size,long style,const  ::wxValidator& validator,const  ::wxString& name):  ::wxButton(parent,id,label,pos,size,style,validator,name), sipPySelf(SIP_NULLPTR)
145 {
146     memset(sipPyMethods, 0, sizeof (sipPyMethods));
147 }
148 
~sipwxButton()149 sipwxButton::~sipwxButton()
150 {
151     sipInstanceDestroyedEx(&sipPySelf);
152 }
153 
RemoveChild(::wxWindowBase * child)154 void sipwxButton::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          ::wxButton::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 sipwxButton::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          ::wxButton::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 sipwxButton::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  ::wxButton::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 sipwxButton::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  ::wxButton::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 sipwxButton::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  ::wxButton::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 sipwxButton::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  ::wxButton::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 sipwxButton::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  ::wxButton::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 sipwxButton::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  ::wxButton::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 sipwxButton::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          ::wxButton::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 sipwxButton::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  ::wxButton::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 sipwxButton::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  ::wxButton::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 sipwxButton::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  ::wxButton::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 sipwxButton::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  ::wxButton::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* sipwxButton::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  ::wxButton::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 sipwxButton::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          ::wxButton::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 sipwxButton::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  ::wxButton::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 sipwxButton::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  ::wxButton::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 sipwxButton::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  ::wxButton::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 sipwxButton::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  ::wxButton::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 sipwxButton::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          ::wxButton::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 sipwxButton::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          ::wxButton::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 sipwxButton::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          ::wxButton::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* sipwxButton::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  ::wxButton::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 sipwxButton::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          ::wxButton::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 sipwxButton::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          ::wxButton::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 sipwxButton::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          ::wxButton::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 sipwxButton::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          ::wxButton::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 sipwxButton::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          ::wxButton::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 sipwxButton::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          ::wxButton::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 sipwxButton::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          ::wxButton::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 sipwxButton::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  ::wxButton::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 sipwxButton::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          ::wxButton::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 sipwxButton::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          ::wxButton::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 sipwxButton::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  ::wxButton::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 sipwxButton::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  ::wxButton::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 sipwxButton::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          ::wxButton::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 sipwxButton::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          ::wxButton::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 sipwxButton::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  ::wxButton::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 sipwxButton::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  ::wxButton::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 sipwxButton::sipProtect_SendDestroyEvent()
794 {
795      ::wxWindow::SendDestroyEvent();
796 }
797 
sipProtectVirt_ProcessEvent(bool sipSelfWasArg,::wxEvent & event)798 bool sipwxButton::sipProtectVirt_ProcessEvent(bool sipSelfWasArg, ::wxEvent& event)
799 {
800     return (sipSelfWasArg ?  ::wxButton::ProcessEvent(event) : ProcessEvent(event));
801 }
802 
sipProtectVirt_DoEnable(bool sipSelfWasArg,bool enable)803 void sipwxButton::sipProtectVirt_DoEnable(bool sipSelfWasArg,bool enable)
804 {
805     (sipSelfWasArg ?  ::wxButton::DoEnable(enable) : DoEnable(enable));
806 }
807 
sipProtectVirt_DoGetPosition(bool sipSelfWasArg,int * x,int * y) const808 void sipwxButton::sipProtectVirt_DoGetPosition(bool sipSelfWasArg,int*x,int*y) const
809 {
810     (sipSelfWasArg ?  ::wxButton::DoGetPosition(x,y) : DoGetPosition(x,y));
811 }
812 
sipProtectVirt_DoGetSize(bool sipSelfWasArg,int * width,int * height) const813 void sipwxButton::sipProtectVirt_DoGetSize(bool sipSelfWasArg,int*width,int*height) const
814 {
815     (sipSelfWasArg ?  ::wxButton::DoGetSize(width,height) : DoGetSize(width,height));
816 }
817 
sipProtectVirt_DoGetClientSize(bool sipSelfWasArg,int * width,int * height) const818 void sipwxButton::sipProtectVirt_DoGetClientSize(bool sipSelfWasArg,int*width,int*height) const
819 {
820     (sipSelfWasArg ?  ::wxButton::DoGetClientSize(width,height) : DoGetClientSize(width,height));
821 }
822 
sipProtectVirt_DoGetBestSize(bool sipSelfWasArg) const823  ::wxSize sipwxButton::sipProtectVirt_DoGetBestSize(bool sipSelfWasArg) const
824 {
825     return (sipSelfWasArg ?  ::wxButton::DoGetBestSize() : DoGetBestSize());
826 }
827 
sipProtectVirt_DoGetBestClientSize(bool sipSelfWasArg) const828  ::wxSize sipwxButton::sipProtectVirt_DoGetBestClientSize(bool sipSelfWasArg) const
829 {
830     return (sipSelfWasArg ?  ::wxButton::DoGetBestClientSize() : DoGetBestClientSize());
831 }
832 
sipProtectVirt_DoSetSize(bool sipSelfWasArg,int x,int y,int width,int height,int sizeFlags)833 void sipwxButton::sipProtectVirt_DoSetSize(bool sipSelfWasArg,int x,int y,int width,int height,int sizeFlags)
834 {
835     (sipSelfWasArg ?  ::wxButton::DoSetSize(x,y,width,height,sizeFlags) : DoSetSize(x,y,width,height,sizeFlags));
836 }
837 
sipProtectVirt_DoSetClientSize(bool sipSelfWasArg,int width,int height)838 void sipwxButton::sipProtectVirt_DoSetClientSize(bool sipSelfWasArg,int width,int height)
839 {
840     (sipSelfWasArg ?  ::wxButton::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 sipwxButton::sipProtectVirt_DoSetSizeHints(bool sipSelfWasArg,int minW,int minH,int maxW,int maxH,int incW,int incH)
844 {
845     (sipSelfWasArg ?  ::wxButton::DoSetSizeHints(minW,minH,maxW,maxH,incW,incH) : DoSetSizeHints(minW,minH,maxW,maxH,incW,incH));
846 }
847 
sipProtectVirt_DoGetBorderSize(bool sipSelfWasArg) const848  ::wxSize sipwxButton::sipProtectVirt_DoGetBorderSize(bool sipSelfWasArg) const
849 {
850     return (sipSelfWasArg ?  ::wxButton::DoGetBorderSize() : DoGetBorderSize());
851 }
852 
sipProtectVirt_DoMoveWindow(bool sipSelfWasArg,int x,int y,int width,int height)853 void sipwxButton::sipProtectVirt_DoMoveWindow(bool sipSelfWasArg,int x,int y,int width,int height)
854 {
855     (sipSelfWasArg ?  ::wxButton::DoMoveWindow(x,y,width,height) : DoMoveWindow(x,y,width,height));
856 }
857 
sipProtectVirt_DoSetWindowVariant(bool sipSelfWasArg,::wxWindowVariant variant)858 void sipwxButton::sipProtectVirt_DoSetWindowVariant(bool sipSelfWasArg, ::wxWindowVariant variant)
859 {
860     (sipSelfWasArg ?  ::wxButton::DoSetWindowVariant(variant) : DoSetWindowVariant(variant));
861 }
862 
sipProtectVirt_GetDefaultBorder(bool sipSelfWasArg) const863  ::wxBorder sipwxButton::sipProtectVirt_GetDefaultBorder(bool sipSelfWasArg) const
864 {
865     return (sipSelfWasArg ?  ::wxButton::GetDefaultBorder() : GetDefaultBorder());
866 }
867 
sipProtectVirt_GetDefaultBorderForControl(bool sipSelfWasArg) const868  ::wxBorder sipwxButton::sipProtectVirt_GetDefaultBorderForControl(bool sipSelfWasArg) const
869 {
870     return (sipSelfWasArg ?  ::wxButton::GetDefaultBorderForControl() : GetDefaultBorderForControl());
871 }
872 
sipProtectVirt_DoFreeze(bool sipSelfWasArg)873 void sipwxButton::sipProtectVirt_DoFreeze(bool sipSelfWasArg)
874 {
875     (sipSelfWasArg ?  ::wxButton::DoFreeze() : DoFreeze());
876 }
877 
sipProtectVirt_DoThaw(bool sipSelfWasArg)878 void sipwxButton::sipProtectVirt_DoThaw(bool sipSelfWasArg)
879 {
880     (sipSelfWasArg ?  ::wxButton::DoThaw() : DoThaw());
881 }
882 
sipProtectVirt_HasTransparentBackground(bool sipSelfWasArg)883 bool sipwxButton::sipProtectVirt_HasTransparentBackground(bool sipSelfWasArg)
884 {
885     return (sipSelfWasArg ?  ::wxButton::HasTransparentBackground() : HasTransparentBackground());
886 }
887 
sipProtectVirt_TryBefore(bool sipSelfWasArg,::wxEvent & event)888 bool sipwxButton::sipProtectVirt_TryBefore(bool sipSelfWasArg, ::wxEvent& event)
889 {
890     return (sipSelfWasArg ?  ::wxButton::TryBefore(event) : TryBefore(event));
891 }
892 
sipProtectVirt_TryAfter(bool sipSelfWasArg,::wxEvent & event)893 bool sipwxButton::sipProtectVirt_TryAfter(bool sipSelfWasArg, ::wxEvent& event)
894 {
895     return (sipSelfWasArg ?  ::wxButton::TryAfter(event) : TryAfter(event));
896 }
897 
898 
899 PyDoc_STRVAR(doc_wxButton_SendDestroyEvent, "SendDestroyEvent()\n"
900 "\n"
901 "Generate wxWindowDestroyEvent for this window.");
902 
903 extern "C" {static PyObject *meth_wxButton_SendDestroyEvent(PyObject *, PyObject *);}
meth_wxButton_SendDestroyEvent(PyObject * sipSelf,PyObject * sipArgs)904 static PyObject *meth_wxButton_SendDestroyEvent(PyObject *sipSelf, PyObject *sipArgs)
905 {
906     PyObject *sipParseErr = SIP_NULLPTR;
907 
908     {
909         sipwxButton *sipCpp;
910 
911         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxButton, &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_Button, sipName_SendDestroyEvent, SIP_NULLPTR);
929 
930     return SIP_NULLPTR;
931 }
932 
933 
934 PyDoc_STRVAR(doc_wxButton_Create, "Create(parent, id=ID_ANY, label=EmptyString, pos=DefaultPosition, size=DefaultSize, style=0, validator=DefaultValidator, name=ButtonNameStr) -> bool\n"
935 "\n"
936 "Button creation function for two-step creation.");
937 
938 extern "C" {static PyObject *meth_wxButton_Create(PyObject *, PyObject *, PyObject *);}
meth_wxButton_Create(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)939 static PyObject *meth_wxButton_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& validatordef = wxDefaultValidator;
957         const  ::wxValidator* validator = &validatordef;
958         const  ::wxString& namedef = wxButtonNameStr;
959         const  ::wxString* name = &namedef;
960         int nameState = 0;
961         sipWrapper *sipOwner = SIP_NULLPTR;
962          ::wxButton *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_validator,
972             sipName_name,
973         };
974 
975         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJH|iJ1J1J1lJ9J1", &sipSelf, sipType_wxButton, &sipCpp, sipType_wxWindow, &parent, &sipOwner, &id, sipType_wxString,&label, &labelState, sipType_wxPoint, &pos, &posState, sipType_wxSize, &size, &sizeState, &style, sipType_wxValidator, &validator, 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,*validator,*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_Button, sipName_Create, SIP_NULLPTR);
1003 
1004     return SIP_NULLPTR;
1005 }
1006 
1007 
1008 PyDoc_STRVAR(doc_wxButton_GetAuthNeeded, "GetAuthNeeded() -> bool\n"
1009 "\n"
1010 "Returns true if an authentication needed symbol is displayed on the\n"
1011 "button.");
1012 
1013 extern "C" {static PyObject *meth_wxButton_GetAuthNeeded(PyObject *, PyObject *);}
meth_wxButton_GetAuthNeeded(PyObject * sipSelf,PyObject * sipArgs)1014 static PyObject *meth_wxButton_GetAuthNeeded(PyObject *sipSelf, PyObject *sipArgs)
1015 {
1016     PyObject *sipParseErr = SIP_NULLPTR;
1017 
1018     {
1019         const  ::wxButton *sipCpp;
1020 
1021         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxButton, &sipCpp))
1022         {
1023             bool sipRes;
1024 
1025             PyErr_Clear();
1026 
1027             Py_BEGIN_ALLOW_THREADS
1028             sipRes = sipCpp->GetAuthNeeded();
1029             Py_END_ALLOW_THREADS
1030 
1031             if (PyErr_Occurred())
1032                 return 0;
1033 
1034             return PyBool_FromLong(sipRes);
1035         }
1036     }
1037 
1038     /* Raise an exception if the arguments couldn't be parsed. */
1039     sipNoMethod(sipParseErr, sipName_Button, sipName_GetAuthNeeded, SIP_NULLPTR);
1040 
1041     return SIP_NULLPTR;
1042 }
1043 
1044 
1045 PyDoc_STRVAR(doc_wxButton_GetLabel, "GetLabel() -> String\n"
1046 "\n"
1047 "Returns the string label for the button.");
1048 
1049 extern "C" {static PyObject *meth_wxButton_GetLabel(PyObject *, PyObject *);}
meth_wxButton_GetLabel(PyObject * sipSelf,PyObject * sipArgs)1050 static PyObject *meth_wxButton_GetLabel(PyObject *sipSelf, PyObject *sipArgs)
1051 {
1052     PyObject *sipParseErr = SIP_NULLPTR;
1053 
1054     {
1055         const  ::wxButton *sipCpp;
1056 
1057         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxButton, &sipCpp))
1058         {
1059              ::wxString*sipRes;
1060 
1061             PyErr_Clear();
1062 
1063             Py_BEGIN_ALLOW_THREADS
1064             sipRes = new  ::wxString(sipCpp->GetLabel());
1065             Py_END_ALLOW_THREADS
1066 
1067             if (PyErr_Occurred())
1068                 return 0;
1069 
1070             return sipConvertFromNewType(sipRes,sipType_wxString,SIP_NULLPTR);
1071         }
1072     }
1073 
1074     /* Raise an exception if the arguments couldn't be parsed. */
1075     sipNoMethod(sipParseErr, sipName_Button, sipName_GetLabel, SIP_NULLPTR);
1076 
1077     return SIP_NULLPTR;
1078 }
1079 
1080 
1081 PyDoc_STRVAR(doc_wxButton_SetAuthNeeded, "SetAuthNeeded(needed=True)\n"
1082 "\n"
1083 "Sets whether an authentication needed symbol should be displayed on\n"
1084 "the button.");
1085 
1086 extern "C" {static PyObject *meth_wxButton_SetAuthNeeded(PyObject *, PyObject *, PyObject *);}
meth_wxButton_SetAuthNeeded(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1087 static PyObject *meth_wxButton_SetAuthNeeded(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1088 {
1089     PyObject *sipParseErr = SIP_NULLPTR;
1090 
1091     {
1092         bool needed = 1;
1093          ::wxButton *sipCpp;
1094 
1095         static const char *sipKwdList[] = {
1096             sipName_needed,
1097         };
1098 
1099         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B|b", &sipSelf, sipType_wxButton, &sipCpp, &needed))
1100         {
1101             PyErr_Clear();
1102 
1103             Py_BEGIN_ALLOW_THREADS
1104             sipCpp->SetAuthNeeded(needed);
1105             Py_END_ALLOW_THREADS
1106 
1107             if (PyErr_Occurred())
1108                 return 0;
1109 
1110             Py_INCREF(Py_None);
1111             return Py_None;
1112         }
1113     }
1114 
1115     /* Raise an exception if the arguments couldn't be parsed. */
1116     sipNoMethod(sipParseErr, sipName_Button, sipName_SetAuthNeeded, SIP_NULLPTR);
1117 
1118     return SIP_NULLPTR;
1119 }
1120 
1121 
1122 PyDoc_STRVAR(doc_wxButton_SetDefault, "SetDefault() -> Window\n"
1123 "\n"
1124 "This sets the button to be the default item in its top-level window\n"
1125 "(e.g.");
1126 
1127 extern "C" {static PyObject *meth_wxButton_SetDefault(PyObject *, PyObject *);}
meth_wxButton_SetDefault(PyObject * sipSelf,PyObject * sipArgs)1128 static PyObject *meth_wxButton_SetDefault(PyObject *sipSelf, PyObject *sipArgs)
1129 {
1130     PyObject *sipParseErr = SIP_NULLPTR;
1131 
1132     {
1133          ::wxButton *sipCpp;
1134 
1135         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxButton, &sipCpp))
1136         {
1137              ::wxWindow*sipRes;
1138 
1139             PyErr_Clear();
1140 
1141             Py_BEGIN_ALLOW_THREADS
1142             sipRes = sipCpp->SetDefault();
1143             Py_END_ALLOW_THREADS
1144 
1145             if (PyErr_Occurred())
1146                 return 0;
1147 
1148             return sipConvertFromType(sipRes,sipType_wxWindow,SIP_NULLPTR);
1149         }
1150     }
1151 
1152     /* Raise an exception if the arguments couldn't be parsed. */
1153     sipNoMethod(sipParseErr, sipName_Button, sipName_SetDefault, SIP_NULLPTR);
1154 
1155     return SIP_NULLPTR;
1156 }
1157 
1158 
1159 PyDoc_STRVAR(doc_wxButton_SetLabel, "SetLabel(label)\n"
1160 "\n"
1161 "Sets the string label for the button.");
1162 
1163 extern "C" {static PyObject *meth_wxButton_SetLabel(PyObject *, PyObject *, PyObject *);}
meth_wxButton_SetLabel(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1164 static PyObject *meth_wxButton_SetLabel(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1165 {
1166     PyObject *sipParseErr = SIP_NULLPTR;
1167 
1168     {
1169         const  ::wxString* label;
1170         int labelState = 0;
1171          ::wxButton *sipCpp;
1172 
1173         static const char *sipKwdList[] = {
1174             sipName_label,
1175         };
1176 
1177         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxButton, &sipCpp, sipType_wxString,&label, &labelState))
1178         {
1179             PyErr_Clear();
1180 
1181             Py_BEGIN_ALLOW_THREADS
1182             sipCpp->SetLabel(*label);
1183             Py_END_ALLOW_THREADS
1184             sipReleaseType(const_cast< ::wxString *>(label),sipType_wxString,labelState);
1185 
1186             if (PyErr_Occurred())
1187                 return 0;
1188 
1189             Py_INCREF(Py_None);
1190             return Py_None;
1191         }
1192     }
1193 
1194     /* Raise an exception if the arguments couldn't be parsed. */
1195     sipNoMethod(sipParseErr, sipName_Button, sipName_SetLabel, SIP_NULLPTR);
1196 
1197     return SIP_NULLPTR;
1198 }
1199 
1200 
1201 PyDoc_STRVAR(doc_wxButton_GetDefaultSize, "GetDefaultSize() -> Size\n"
1202 "\n"
1203 "Returns the default size for the buttons.");
1204 
1205 extern "C" {static PyObject *meth_wxButton_GetDefaultSize(PyObject *, PyObject *);}
meth_wxButton_GetDefaultSize(PyObject *,PyObject * sipArgs)1206 static PyObject *meth_wxButton_GetDefaultSize(PyObject *, PyObject *sipArgs)
1207 {
1208     PyObject *sipParseErr = SIP_NULLPTR;
1209 
1210     {
1211         if (sipParseArgs(&sipParseErr, sipArgs, ""))
1212         {
1213              ::wxSize*sipRes;
1214 
1215         if (!wxPyCheckForApp()) return NULL;
1216 
1217             PyErr_Clear();
1218 
1219             Py_BEGIN_ALLOW_THREADS
1220             sipRes = new  ::wxSize( ::wxButton::GetDefaultSize());
1221             Py_END_ALLOW_THREADS
1222 
1223             if (PyErr_Occurred())
1224                 return 0;
1225 
1226             return sipConvertFromNewType(sipRes,sipType_wxSize,SIP_NULLPTR);
1227         }
1228     }
1229 
1230     /* Raise an exception if the arguments couldn't be parsed. */
1231     sipNoMethod(sipParseErr, sipName_Button, sipName_GetDefaultSize, SIP_NULLPTR);
1232 
1233     return SIP_NULLPTR;
1234 }
1235 
1236 
1237 PyDoc_STRVAR(doc_wxButton_GetClientAreaOrigin, "GetClientAreaOrigin(self) -> Point");
1238 
1239 extern "C" {static PyObject *meth_wxButton_GetClientAreaOrigin(PyObject *, PyObject *);}
meth_wxButton_GetClientAreaOrigin(PyObject * sipSelf,PyObject * sipArgs)1240 static PyObject *meth_wxButton_GetClientAreaOrigin(PyObject *sipSelf, PyObject *sipArgs)
1241 {
1242     PyObject *sipParseErr = SIP_NULLPTR;
1243     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1244 
1245     {
1246         const  ::wxButton *sipCpp;
1247 
1248         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxButton, &sipCpp))
1249         {
1250              ::wxPoint*sipRes;
1251 
1252             PyErr_Clear();
1253 
1254             Py_BEGIN_ALLOW_THREADS
1255             sipRes = new  ::wxPoint((sipSelfWasArg ? sipCpp-> ::wxButton::GetClientAreaOrigin() : sipCpp->GetClientAreaOrigin()));
1256             Py_END_ALLOW_THREADS
1257 
1258             if (PyErr_Occurred())
1259                 return 0;
1260 
1261             return sipConvertFromNewType(sipRes,sipType_wxPoint,SIP_NULLPTR);
1262         }
1263     }
1264 
1265     /* Raise an exception if the arguments couldn't be parsed. */
1266     sipNoMethod(sipParseErr, sipName_Button, sipName_GetClientAreaOrigin, doc_wxButton_GetClientAreaOrigin);
1267 
1268     return SIP_NULLPTR;
1269 }
1270 
1271 
1272 PyDoc_STRVAR(doc_wxButton_Validate, "Validate(self) -> bool");
1273 
1274 extern "C" {static PyObject *meth_wxButton_Validate(PyObject *, PyObject *);}
meth_wxButton_Validate(PyObject * sipSelf,PyObject * sipArgs)1275 static PyObject *meth_wxButton_Validate(PyObject *sipSelf, PyObject *sipArgs)
1276 {
1277     PyObject *sipParseErr = SIP_NULLPTR;
1278     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1279 
1280     {
1281          ::wxButton *sipCpp;
1282 
1283         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxButton, &sipCpp))
1284         {
1285             bool sipRes;
1286 
1287             PyErr_Clear();
1288 
1289             Py_BEGIN_ALLOW_THREADS
1290             sipRes = (sipSelfWasArg ? sipCpp-> ::wxButton::Validate() : sipCpp->Validate());
1291             Py_END_ALLOW_THREADS
1292 
1293             if (PyErr_Occurred())
1294                 return 0;
1295 
1296             return PyBool_FromLong(sipRes);
1297         }
1298     }
1299 
1300     /* Raise an exception if the arguments couldn't be parsed. */
1301     sipNoMethod(sipParseErr, sipName_Button, sipName_Validate, doc_wxButton_Validate);
1302 
1303     return SIP_NULLPTR;
1304 }
1305 
1306 
1307 PyDoc_STRVAR(doc_wxButton_TransferDataToWindow, "TransferDataToWindow(self) -> bool");
1308 
1309 extern "C" {static PyObject *meth_wxButton_TransferDataToWindow(PyObject *, PyObject *);}
meth_wxButton_TransferDataToWindow(PyObject * sipSelf,PyObject * sipArgs)1310 static PyObject *meth_wxButton_TransferDataToWindow(PyObject *sipSelf, PyObject *sipArgs)
1311 {
1312     PyObject *sipParseErr = SIP_NULLPTR;
1313     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1314 
1315     {
1316          ::wxButton *sipCpp;
1317 
1318         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxButton, &sipCpp))
1319         {
1320             bool sipRes;
1321 
1322             PyErr_Clear();
1323 
1324             Py_BEGIN_ALLOW_THREADS
1325             sipRes = (sipSelfWasArg ? sipCpp-> ::wxButton::TransferDataToWindow() : sipCpp->TransferDataToWindow());
1326             Py_END_ALLOW_THREADS
1327 
1328             if (PyErr_Occurred())
1329                 return 0;
1330 
1331             return PyBool_FromLong(sipRes);
1332         }
1333     }
1334 
1335     /* Raise an exception if the arguments couldn't be parsed. */
1336     sipNoMethod(sipParseErr, sipName_Button, sipName_TransferDataToWindow, doc_wxButton_TransferDataToWindow);
1337 
1338     return SIP_NULLPTR;
1339 }
1340 
1341 
1342 PyDoc_STRVAR(doc_wxButton_TransferDataFromWindow, "TransferDataFromWindow(self) -> bool");
1343 
1344 extern "C" {static PyObject *meth_wxButton_TransferDataFromWindow(PyObject *, PyObject *);}
meth_wxButton_TransferDataFromWindow(PyObject * sipSelf,PyObject * sipArgs)1345 static PyObject *meth_wxButton_TransferDataFromWindow(PyObject *sipSelf, PyObject *sipArgs)
1346 {
1347     PyObject *sipParseErr = SIP_NULLPTR;
1348     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1349 
1350     {
1351          ::wxButton *sipCpp;
1352 
1353         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxButton, &sipCpp))
1354         {
1355             bool sipRes;
1356 
1357             PyErr_Clear();
1358 
1359             Py_BEGIN_ALLOW_THREADS
1360             sipRes = (sipSelfWasArg ? sipCpp-> ::wxButton::TransferDataFromWindow() : sipCpp->TransferDataFromWindow());
1361             Py_END_ALLOW_THREADS
1362 
1363             if (PyErr_Occurred())
1364                 return 0;
1365 
1366             return PyBool_FromLong(sipRes);
1367         }
1368     }
1369 
1370     /* Raise an exception if the arguments couldn't be parsed. */
1371     sipNoMethod(sipParseErr, sipName_Button, sipName_TransferDataFromWindow, doc_wxButton_TransferDataFromWindow);
1372 
1373     return SIP_NULLPTR;
1374 }
1375 
1376 
1377 PyDoc_STRVAR(doc_wxButton_InitDialog, "InitDialog(self)");
1378 
1379 extern "C" {static PyObject *meth_wxButton_InitDialog(PyObject *, PyObject *);}
meth_wxButton_InitDialog(PyObject * sipSelf,PyObject * sipArgs)1380 static PyObject *meth_wxButton_InitDialog(PyObject *sipSelf, PyObject *sipArgs)
1381 {
1382     PyObject *sipParseErr = SIP_NULLPTR;
1383     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1384 
1385     {
1386          ::wxButton *sipCpp;
1387 
1388         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxButton, &sipCpp))
1389         {
1390             PyErr_Clear();
1391 
1392             Py_BEGIN_ALLOW_THREADS
1393             (sipSelfWasArg ? sipCpp-> ::wxButton::InitDialog() : sipCpp->InitDialog());
1394             Py_END_ALLOW_THREADS
1395 
1396             if (PyErr_Occurred())
1397                 return 0;
1398 
1399             Py_INCREF(Py_None);
1400             return Py_None;
1401         }
1402     }
1403 
1404     /* Raise an exception if the arguments couldn't be parsed. */
1405     sipNoMethod(sipParseErr, sipName_Button, sipName_InitDialog, doc_wxButton_InitDialog);
1406 
1407     return SIP_NULLPTR;
1408 }
1409 
1410 
1411 PyDoc_STRVAR(doc_wxButton_AcceptsFocus, "AcceptsFocus(self) -> bool");
1412 
1413 extern "C" {static PyObject *meth_wxButton_AcceptsFocus(PyObject *, PyObject *);}
meth_wxButton_AcceptsFocus(PyObject * sipSelf,PyObject * sipArgs)1414 static PyObject *meth_wxButton_AcceptsFocus(PyObject *sipSelf, PyObject *sipArgs)
1415 {
1416     PyObject *sipParseErr = SIP_NULLPTR;
1417     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1418 
1419     {
1420         const  ::wxButton *sipCpp;
1421 
1422         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxButton, &sipCpp))
1423         {
1424             bool sipRes;
1425 
1426             PyErr_Clear();
1427 
1428             Py_BEGIN_ALLOW_THREADS
1429             sipRes = (sipSelfWasArg ? sipCpp-> ::wxButton::AcceptsFocus() : sipCpp->AcceptsFocus());
1430             Py_END_ALLOW_THREADS
1431 
1432             if (PyErr_Occurred())
1433                 return 0;
1434 
1435             return PyBool_FromLong(sipRes);
1436         }
1437     }
1438 
1439     /* Raise an exception if the arguments couldn't be parsed. */
1440     sipNoMethod(sipParseErr, sipName_Button, sipName_AcceptsFocus, doc_wxButton_AcceptsFocus);
1441 
1442     return SIP_NULLPTR;
1443 }
1444 
1445 
1446 PyDoc_STRVAR(doc_wxButton_AcceptsFocusRecursively, "AcceptsFocusRecursively(self) -> bool");
1447 
1448 extern "C" {static PyObject *meth_wxButton_AcceptsFocusRecursively(PyObject *, PyObject *);}
meth_wxButton_AcceptsFocusRecursively(PyObject * sipSelf,PyObject * sipArgs)1449 static PyObject *meth_wxButton_AcceptsFocusRecursively(PyObject *sipSelf, PyObject *sipArgs)
1450 {
1451     PyObject *sipParseErr = SIP_NULLPTR;
1452     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1453 
1454     {
1455         const  ::wxButton *sipCpp;
1456 
1457         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxButton, &sipCpp))
1458         {
1459             bool sipRes;
1460 
1461             PyErr_Clear();
1462 
1463             Py_BEGIN_ALLOW_THREADS
1464             sipRes = (sipSelfWasArg ? sipCpp-> ::wxButton::AcceptsFocusRecursively() : sipCpp->AcceptsFocusRecursively());
1465             Py_END_ALLOW_THREADS
1466 
1467             if (PyErr_Occurred())
1468                 return 0;
1469 
1470             return PyBool_FromLong(sipRes);
1471         }
1472     }
1473 
1474     /* Raise an exception if the arguments couldn't be parsed. */
1475     sipNoMethod(sipParseErr, sipName_Button, sipName_AcceptsFocusRecursively, doc_wxButton_AcceptsFocusRecursively);
1476 
1477     return SIP_NULLPTR;
1478 }
1479 
1480 
1481 PyDoc_STRVAR(doc_wxButton_AcceptsFocusFromKeyboard, "AcceptsFocusFromKeyboard(self) -> bool");
1482 
1483 extern "C" {static PyObject *meth_wxButton_AcceptsFocusFromKeyboard(PyObject *, PyObject *);}
meth_wxButton_AcceptsFocusFromKeyboard(PyObject * sipSelf,PyObject * sipArgs)1484 static PyObject *meth_wxButton_AcceptsFocusFromKeyboard(PyObject *sipSelf, PyObject *sipArgs)
1485 {
1486     PyObject *sipParseErr = SIP_NULLPTR;
1487     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1488 
1489     {
1490         const  ::wxButton *sipCpp;
1491 
1492         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxButton, &sipCpp))
1493         {
1494             bool sipRes;
1495 
1496             PyErr_Clear();
1497 
1498             Py_BEGIN_ALLOW_THREADS
1499             sipRes = (sipSelfWasArg ? sipCpp-> ::wxButton::AcceptsFocusFromKeyboard() : sipCpp->AcceptsFocusFromKeyboard());
1500             Py_END_ALLOW_THREADS
1501 
1502             if (PyErr_Occurred())
1503                 return 0;
1504 
1505             return PyBool_FromLong(sipRes);
1506         }
1507     }
1508 
1509     /* Raise an exception if the arguments couldn't be parsed. */
1510     sipNoMethod(sipParseErr, sipName_Button, sipName_AcceptsFocusFromKeyboard, doc_wxButton_AcceptsFocusFromKeyboard);
1511 
1512     return SIP_NULLPTR;
1513 }
1514 
1515 
1516 PyDoc_STRVAR(doc_wxButton_AddChild, "AddChild(self, child: WindowBase)");
1517 
1518 extern "C" {static PyObject *meth_wxButton_AddChild(PyObject *, PyObject *, PyObject *);}
meth_wxButton_AddChild(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1519 static PyObject *meth_wxButton_AddChild(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1520 {
1521     PyObject *sipParseErr = SIP_NULLPTR;
1522     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1523 
1524     {
1525          ::wxWindowBase* child;
1526          ::wxButton *sipCpp;
1527 
1528         static const char *sipKwdList[] = {
1529             sipName_child,
1530         };
1531 
1532         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8", &sipSelf, sipType_wxButton, &sipCpp, sipType_wxWindowBase, &child))
1533         {
1534             PyErr_Clear();
1535 
1536             Py_BEGIN_ALLOW_THREADS
1537             (sipSelfWasArg ? sipCpp-> ::wxButton::AddChild(child) : sipCpp->AddChild(child));
1538             Py_END_ALLOW_THREADS
1539 
1540             if (PyErr_Occurred())
1541                 return 0;
1542 
1543             Py_INCREF(Py_None);
1544             return Py_None;
1545         }
1546     }
1547 
1548     /* Raise an exception if the arguments couldn't be parsed. */
1549     sipNoMethod(sipParseErr, sipName_Button, sipName_AddChild, doc_wxButton_AddChild);
1550 
1551     return SIP_NULLPTR;
1552 }
1553 
1554 
1555 PyDoc_STRVAR(doc_wxButton_RemoveChild, "RemoveChild(self, child: WindowBase)");
1556 
1557 extern "C" {static PyObject *meth_wxButton_RemoveChild(PyObject *, PyObject *, PyObject *);}
meth_wxButton_RemoveChild(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1558 static PyObject *meth_wxButton_RemoveChild(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1559 {
1560     PyObject *sipParseErr = SIP_NULLPTR;
1561     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1562 
1563     {
1564          ::wxWindowBase* child;
1565          ::wxButton *sipCpp;
1566 
1567         static const char *sipKwdList[] = {
1568             sipName_child,
1569         };
1570 
1571         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8", &sipSelf, sipType_wxButton, &sipCpp, sipType_wxWindowBase, &child))
1572         {
1573             PyErr_Clear();
1574 
1575             Py_BEGIN_ALLOW_THREADS
1576             (sipSelfWasArg ? sipCpp-> ::wxButton::RemoveChild(child) : sipCpp->RemoveChild(child));
1577             Py_END_ALLOW_THREADS
1578 
1579             if (PyErr_Occurred())
1580                 return 0;
1581 
1582             Py_INCREF(Py_None);
1583             return Py_None;
1584         }
1585     }
1586 
1587     /* Raise an exception if the arguments couldn't be parsed. */
1588     sipNoMethod(sipParseErr, sipName_Button, sipName_RemoveChild, doc_wxButton_RemoveChild);
1589 
1590     return SIP_NULLPTR;
1591 }
1592 
1593 
1594 PyDoc_STRVAR(doc_wxButton_InheritAttributes, "InheritAttributes(self)");
1595 
1596 extern "C" {static PyObject *meth_wxButton_InheritAttributes(PyObject *, PyObject *);}
meth_wxButton_InheritAttributes(PyObject * sipSelf,PyObject * sipArgs)1597 static PyObject *meth_wxButton_InheritAttributes(PyObject *sipSelf, PyObject *sipArgs)
1598 {
1599     PyObject *sipParseErr = SIP_NULLPTR;
1600     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1601 
1602     {
1603          ::wxButton *sipCpp;
1604 
1605         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxButton, &sipCpp))
1606         {
1607             PyErr_Clear();
1608 
1609             Py_BEGIN_ALLOW_THREADS
1610             (sipSelfWasArg ? sipCpp-> ::wxButton::InheritAttributes() : sipCpp->InheritAttributes());
1611             Py_END_ALLOW_THREADS
1612 
1613             if (PyErr_Occurred())
1614                 return 0;
1615 
1616             Py_INCREF(Py_None);
1617             return Py_None;
1618         }
1619     }
1620 
1621     /* Raise an exception if the arguments couldn't be parsed. */
1622     sipNoMethod(sipParseErr, sipName_Button, sipName_InheritAttributes, doc_wxButton_InheritAttributes);
1623 
1624     return SIP_NULLPTR;
1625 }
1626 
1627 
1628 PyDoc_STRVAR(doc_wxButton_ShouldInheritColours, "ShouldInheritColours(self) -> bool");
1629 
1630 extern "C" {static PyObject *meth_wxButton_ShouldInheritColours(PyObject *, PyObject *);}
meth_wxButton_ShouldInheritColours(PyObject * sipSelf,PyObject * sipArgs)1631 static PyObject *meth_wxButton_ShouldInheritColours(PyObject *sipSelf, PyObject *sipArgs)
1632 {
1633     PyObject *sipParseErr = SIP_NULLPTR;
1634     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1635 
1636     {
1637         const  ::wxButton *sipCpp;
1638 
1639         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxButton, &sipCpp))
1640         {
1641             bool sipRes;
1642 
1643             PyErr_Clear();
1644 
1645             Py_BEGIN_ALLOW_THREADS
1646             sipRes = (sipSelfWasArg ? sipCpp-> ::wxButton::ShouldInheritColours() : sipCpp->ShouldInheritColours());
1647             Py_END_ALLOW_THREADS
1648 
1649             if (PyErr_Occurred())
1650                 return 0;
1651 
1652             return PyBool_FromLong(sipRes);
1653         }
1654     }
1655 
1656     /* Raise an exception if the arguments couldn't be parsed. */
1657     sipNoMethod(sipParseErr, sipName_Button, sipName_ShouldInheritColours, doc_wxButton_ShouldInheritColours);
1658 
1659     return SIP_NULLPTR;
1660 }
1661 
1662 
1663 PyDoc_STRVAR(doc_wxButton_OnInternalIdle, "OnInternalIdle(self)");
1664 
1665 extern "C" {static PyObject *meth_wxButton_OnInternalIdle(PyObject *, PyObject *);}
meth_wxButton_OnInternalIdle(PyObject * sipSelf,PyObject * sipArgs)1666 static PyObject *meth_wxButton_OnInternalIdle(PyObject *sipSelf, PyObject *sipArgs)
1667 {
1668     PyObject *sipParseErr = SIP_NULLPTR;
1669     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1670 
1671     {
1672          ::wxButton *sipCpp;
1673 
1674         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxButton, &sipCpp))
1675         {
1676             PyErr_Clear();
1677 
1678             Py_BEGIN_ALLOW_THREADS
1679             (sipSelfWasArg ? sipCpp-> ::wxButton::OnInternalIdle() : sipCpp->OnInternalIdle());
1680             Py_END_ALLOW_THREADS
1681 
1682             if (PyErr_Occurred())
1683                 return 0;
1684 
1685             Py_INCREF(Py_None);
1686             return Py_None;
1687         }
1688     }
1689 
1690     /* Raise an exception if the arguments couldn't be parsed. */
1691     sipNoMethod(sipParseErr, sipName_Button, sipName_OnInternalIdle, doc_wxButton_OnInternalIdle);
1692 
1693     return SIP_NULLPTR;
1694 }
1695 
1696 
1697 PyDoc_STRVAR(doc_wxButton_GetMainWindowOfCompositeControl, "GetMainWindowOfCompositeControl(self) -> Window");
1698 
1699 extern "C" {static PyObject *meth_wxButton_GetMainWindowOfCompositeControl(PyObject *, PyObject *);}
meth_wxButton_GetMainWindowOfCompositeControl(PyObject * sipSelf,PyObject * sipArgs)1700 static PyObject *meth_wxButton_GetMainWindowOfCompositeControl(PyObject *sipSelf, PyObject *sipArgs)
1701 {
1702     PyObject *sipParseErr = SIP_NULLPTR;
1703     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1704 
1705     {
1706          ::wxButton *sipCpp;
1707 
1708         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxButton, &sipCpp))
1709         {
1710              ::wxWindow*sipRes;
1711 
1712             PyErr_Clear();
1713 
1714             Py_BEGIN_ALLOW_THREADS
1715             sipRes = (sipSelfWasArg ? sipCpp-> ::wxButton::GetMainWindowOfCompositeControl() : sipCpp->GetMainWindowOfCompositeControl());
1716             Py_END_ALLOW_THREADS
1717 
1718             if (PyErr_Occurred())
1719                 return 0;
1720 
1721             return sipConvertFromType(sipRes,sipType_wxWindow,SIP_NULLPTR);
1722         }
1723     }
1724 
1725     /* Raise an exception if the arguments couldn't be parsed. */
1726     sipNoMethod(sipParseErr, sipName_Button, sipName_GetMainWindowOfCompositeControl, doc_wxButton_GetMainWindowOfCompositeControl);
1727 
1728     return SIP_NULLPTR;
1729 }
1730 
1731 
1732 PyDoc_STRVAR(doc_wxButton_InformFirstDirection, "InformFirstDirection(self, direction: int, size: int, availableOtherDir: int) -> bool");
1733 
1734 extern "C" {static PyObject *meth_wxButton_InformFirstDirection(PyObject *, PyObject *, PyObject *);}
meth_wxButton_InformFirstDirection(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1735 static PyObject *meth_wxButton_InformFirstDirection(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1736 {
1737     PyObject *sipParseErr = SIP_NULLPTR;
1738     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1739 
1740     {
1741         int direction;
1742         int size;
1743         int availableOtherDir;
1744          ::wxButton *sipCpp;
1745 
1746         static const char *sipKwdList[] = {
1747             sipName_direction,
1748             sipName_size,
1749             sipName_availableOtherDir,
1750         };
1751 
1752         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biii", &sipSelf, sipType_wxButton, &sipCpp, &direction, &size, &availableOtherDir))
1753         {
1754             bool sipRes;
1755 
1756             PyErr_Clear();
1757 
1758             Py_BEGIN_ALLOW_THREADS
1759             sipRes = (sipSelfWasArg ? sipCpp-> ::wxButton::InformFirstDirection(direction,size,availableOtherDir) : sipCpp->InformFirstDirection(direction,size,availableOtherDir));
1760             Py_END_ALLOW_THREADS
1761 
1762             if (PyErr_Occurred())
1763                 return 0;
1764 
1765             return PyBool_FromLong(sipRes);
1766         }
1767     }
1768 
1769     /* Raise an exception if the arguments couldn't be parsed. */
1770     sipNoMethod(sipParseErr, sipName_Button, sipName_InformFirstDirection, doc_wxButton_InformFirstDirection);
1771 
1772     return SIP_NULLPTR;
1773 }
1774 
1775 
1776 PyDoc_STRVAR(doc_wxButton_SetCanFocus, "SetCanFocus(self, canFocus: bool)");
1777 
1778 extern "C" {static PyObject *meth_wxButton_SetCanFocus(PyObject *, PyObject *, PyObject *);}
meth_wxButton_SetCanFocus(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1779 static PyObject *meth_wxButton_SetCanFocus(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1780 {
1781     PyObject *sipParseErr = SIP_NULLPTR;
1782     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1783 
1784     {
1785         bool canFocus;
1786          ::wxButton *sipCpp;
1787 
1788         static const char *sipKwdList[] = {
1789             sipName_canFocus,
1790         };
1791 
1792         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bb", &sipSelf, sipType_wxButton, &sipCpp, &canFocus))
1793         {
1794             PyErr_Clear();
1795 
1796             Py_BEGIN_ALLOW_THREADS
1797             (sipSelfWasArg ? sipCpp-> ::wxButton::SetCanFocus(canFocus) : sipCpp->SetCanFocus(canFocus));
1798             Py_END_ALLOW_THREADS
1799 
1800             if (PyErr_Occurred())
1801                 return 0;
1802 
1803             Py_INCREF(Py_None);
1804             return Py_None;
1805         }
1806     }
1807 
1808     /* Raise an exception if the arguments couldn't be parsed. */
1809     sipNoMethod(sipParseErr, sipName_Button, sipName_SetCanFocus, doc_wxButton_SetCanFocus);
1810 
1811     return SIP_NULLPTR;
1812 }
1813 
1814 
1815 PyDoc_STRVAR(doc_wxButton_Destroy, "Destroy(self) -> bool");
1816 
1817 extern "C" {static PyObject *meth_wxButton_Destroy(PyObject *, PyObject *);}
meth_wxButton_Destroy(PyObject * sipSelf,PyObject * sipArgs)1818 static PyObject *meth_wxButton_Destroy(PyObject *sipSelf, PyObject *sipArgs)
1819 {
1820     PyObject *sipParseErr = SIP_NULLPTR;
1821     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1822 
1823     {
1824          ::wxButton *sipCpp;
1825 
1826         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxButton, &sipCpp))
1827         {
1828             bool sipRes;
1829 
1830             PyErr_Clear();
1831 
1832             Py_BEGIN_ALLOW_THREADS
1833             sipRes = (sipSelfWasArg ? sipCpp-> ::wxButton::Destroy() : sipCpp->Destroy());
1834             Py_END_ALLOW_THREADS
1835 
1836             if (PyErr_Occurred())
1837                 return 0;
1838 
1839             return PyBool_FromLong(sipRes);
1840         }
1841     }
1842 
1843     /* Raise an exception if the arguments couldn't be parsed. */
1844     sipNoMethod(sipParseErr, sipName_Button, sipName_Destroy, doc_wxButton_Destroy);
1845 
1846     return SIP_NULLPTR;
1847 }
1848 
1849 
1850 PyDoc_STRVAR(doc_wxButton_SetValidator, "SetValidator(self, validator: Validator)");
1851 
1852 extern "C" {static PyObject *meth_wxButton_SetValidator(PyObject *, PyObject *, PyObject *);}
meth_wxButton_SetValidator(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1853 static PyObject *meth_wxButton_SetValidator(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1854 {
1855     PyObject *sipParseErr = SIP_NULLPTR;
1856     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1857 
1858     {
1859         const  ::wxValidator* validator;
1860          ::wxButton *sipCpp;
1861 
1862         static const char *sipKwdList[] = {
1863             sipName_validator,
1864         };
1865 
1866         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxButton, &sipCpp, sipType_wxValidator, &validator))
1867         {
1868             PyErr_Clear();
1869 
1870             Py_BEGIN_ALLOW_THREADS
1871             (sipSelfWasArg ? sipCpp-> ::wxButton::SetValidator(*validator) : sipCpp->SetValidator(*validator));
1872             Py_END_ALLOW_THREADS
1873 
1874             if (PyErr_Occurred())
1875                 return 0;
1876 
1877             Py_INCREF(Py_None);
1878             return Py_None;
1879         }
1880     }
1881 
1882     /* Raise an exception if the arguments couldn't be parsed. */
1883     sipNoMethod(sipParseErr, sipName_Button, sipName_SetValidator, doc_wxButton_SetValidator);
1884 
1885     return SIP_NULLPTR;
1886 }
1887 
1888 
1889 PyDoc_STRVAR(doc_wxButton_GetValidator, "GetValidator(self) -> Validator");
1890 
1891 extern "C" {static PyObject *meth_wxButton_GetValidator(PyObject *, PyObject *);}
meth_wxButton_GetValidator(PyObject * sipSelf,PyObject * sipArgs)1892 static PyObject *meth_wxButton_GetValidator(PyObject *sipSelf, PyObject *sipArgs)
1893 {
1894     PyObject *sipParseErr = SIP_NULLPTR;
1895     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1896 
1897     {
1898          ::wxButton *sipCpp;
1899 
1900         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxButton, &sipCpp))
1901         {
1902              ::wxValidator*sipRes;
1903 
1904             PyErr_Clear();
1905 
1906             Py_BEGIN_ALLOW_THREADS
1907             sipRes = (sipSelfWasArg ? sipCpp-> ::wxButton::GetValidator() : sipCpp->GetValidator());
1908             Py_END_ALLOW_THREADS
1909 
1910             if (PyErr_Occurred())
1911                 return 0;
1912 
1913             return sipConvertFromType(sipRes,sipType_wxValidator,SIP_NULLPTR);
1914         }
1915     }
1916 
1917     /* Raise an exception if the arguments couldn't be parsed. */
1918     sipNoMethod(sipParseErr, sipName_Button, sipName_GetValidator, doc_wxButton_GetValidator);
1919 
1920     return SIP_NULLPTR;
1921 }
1922 
1923 
1924 PyDoc_STRVAR(doc_wxButton_ProcessEvent, "ProcessEvent(self, event: Event) -> bool");
1925 
1926 extern "C" {static PyObject *meth_wxButton_ProcessEvent(PyObject *, PyObject *, PyObject *);}
meth_wxButton_ProcessEvent(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1927 static PyObject *meth_wxButton_ProcessEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1928 {
1929     PyObject *sipParseErr = SIP_NULLPTR;
1930     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1931 
1932     {
1933          ::wxEvent* event;
1934         sipwxButton *sipCpp;
1935 
1936         static const char *sipKwdList[] = {
1937             sipName_event,
1938         };
1939 
1940         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxButton, &sipCpp, sipType_wxEvent, &event))
1941         {
1942             bool sipRes;
1943 
1944             PyErr_Clear();
1945 
1946             Py_BEGIN_ALLOW_THREADS
1947             sipRes = sipCpp->sipProtectVirt_ProcessEvent(sipSelfWasArg,*event);
1948             Py_END_ALLOW_THREADS
1949 
1950             if (PyErr_Occurred())
1951                 return 0;
1952 
1953             return PyBool_FromLong(sipRes);
1954         }
1955     }
1956 
1957     /* Raise an exception if the arguments couldn't be parsed. */
1958     sipNoMethod(sipParseErr, sipName_Button, sipName_ProcessEvent, doc_wxButton_ProcessEvent);
1959 
1960     return SIP_NULLPTR;
1961 }
1962 
1963 
1964 PyDoc_STRVAR(doc_wxButton_DoEnable, "DoEnable(self, enable: bool)");
1965 
1966 extern "C" {static PyObject *meth_wxButton_DoEnable(PyObject *, PyObject *, PyObject *);}
meth_wxButton_DoEnable(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1967 static PyObject *meth_wxButton_DoEnable(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1968 {
1969     PyObject *sipParseErr = SIP_NULLPTR;
1970     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1971 
1972     {
1973         bool enable;
1974         sipwxButton *sipCpp;
1975 
1976         static const char *sipKwdList[] = {
1977             sipName_enable,
1978         };
1979 
1980         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bb", &sipSelf, sipType_wxButton, &sipCpp, &enable))
1981         {
1982             PyErr_Clear();
1983 
1984             Py_BEGIN_ALLOW_THREADS
1985             sipCpp->sipProtectVirt_DoEnable(sipSelfWasArg,enable);
1986             Py_END_ALLOW_THREADS
1987 
1988             if (PyErr_Occurred())
1989                 return 0;
1990 
1991             Py_INCREF(Py_None);
1992             return Py_None;
1993         }
1994     }
1995 
1996     /* Raise an exception if the arguments couldn't be parsed. */
1997     sipNoMethod(sipParseErr, sipName_Button, sipName_DoEnable, doc_wxButton_DoEnable);
1998 
1999     return SIP_NULLPTR;
2000 }
2001 
2002 
2003 PyDoc_STRVAR(doc_wxButton_DoGetPosition, "DoGetPosition(self) -> Tuple[int, int]");
2004 
2005 extern "C" {static PyObject *meth_wxButton_DoGetPosition(PyObject *, PyObject *, PyObject *);}
meth_wxButton_DoGetPosition(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2006 static PyObject *meth_wxButton_DoGetPosition(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2007 {
2008     PyObject *sipParseErr = SIP_NULLPTR;
2009     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2010 
2011     {
2012         int x;
2013         int y;
2014         const sipwxButton *sipCpp;
2015 
2016         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "B", &sipSelf, sipType_wxButton, &sipCpp))
2017         {
2018             PyErr_Clear();
2019 
2020             Py_BEGIN_ALLOW_THREADS
2021             sipCpp->sipProtectVirt_DoGetPosition(sipSelfWasArg,&x,&y);
2022             Py_END_ALLOW_THREADS
2023 
2024             if (PyErr_Occurred())
2025                 return 0;
2026 
2027             return sipBuildResult(0,"(ii)",x,y);
2028         }
2029     }
2030 
2031     /* Raise an exception if the arguments couldn't be parsed. */
2032     sipNoMethod(sipParseErr, sipName_Button, sipName_DoGetPosition, doc_wxButton_DoGetPosition);
2033 
2034     return SIP_NULLPTR;
2035 }
2036 
2037 
2038 PyDoc_STRVAR(doc_wxButton_DoGetSize, "DoGetSize(self) -> Tuple[int, int]");
2039 
2040 extern "C" {static PyObject *meth_wxButton_DoGetSize(PyObject *, PyObject *, PyObject *);}
meth_wxButton_DoGetSize(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2041 static PyObject *meth_wxButton_DoGetSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2042 {
2043     PyObject *sipParseErr = SIP_NULLPTR;
2044     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2045 
2046     {
2047         int width;
2048         int height;
2049         const sipwxButton *sipCpp;
2050 
2051         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "B", &sipSelf, sipType_wxButton, &sipCpp))
2052         {
2053             PyErr_Clear();
2054 
2055             Py_BEGIN_ALLOW_THREADS
2056             sipCpp->sipProtectVirt_DoGetSize(sipSelfWasArg,&width,&height);
2057             Py_END_ALLOW_THREADS
2058 
2059             if (PyErr_Occurred())
2060                 return 0;
2061 
2062             return sipBuildResult(0,"(ii)",width,height);
2063         }
2064     }
2065 
2066     /* Raise an exception if the arguments couldn't be parsed. */
2067     sipNoMethod(sipParseErr, sipName_Button, sipName_DoGetSize, doc_wxButton_DoGetSize);
2068 
2069     return SIP_NULLPTR;
2070 }
2071 
2072 
2073 PyDoc_STRVAR(doc_wxButton_DoGetClientSize, "DoGetClientSize(self) -> Tuple[int, int]");
2074 
2075 extern "C" {static PyObject *meth_wxButton_DoGetClientSize(PyObject *, PyObject *, PyObject *);}
meth_wxButton_DoGetClientSize(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2076 static PyObject *meth_wxButton_DoGetClientSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2077 {
2078     PyObject *sipParseErr = SIP_NULLPTR;
2079     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2080 
2081     {
2082         int width;
2083         int height;
2084         const sipwxButton *sipCpp;
2085 
2086         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "B", &sipSelf, sipType_wxButton, &sipCpp))
2087         {
2088             PyErr_Clear();
2089 
2090             Py_BEGIN_ALLOW_THREADS
2091             sipCpp->sipProtectVirt_DoGetClientSize(sipSelfWasArg,&width,&height);
2092             Py_END_ALLOW_THREADS
2093 
2094             if (PyErr_Occurred())
2095                 return 0;
2096 
2097             return sipBuildResult(0,"(ii)",width,height);
2098         }
2099     }
2100 
2101     /* Raise an exception if the arguments couldn't be parsed. */
2102     sipNoMethod(sipParseErr, sipName_Button, sipName_DoGetClientSize, doc_wxButton_DoGetClientSize);
2103 
2104     return SIP_NULLPTR;
2105 }
2106 
2107 
2108 PyDoc_STRVAR(doc_wxButton_DoGetBestSize, "DoGetBestSize(self) -> Size");
2109 
2110 extern "C" {static PyObject *meth_wxButton_DoGetBestSize(PyObject *, PyObject *);}
meth_wxButton_DoGetBestSize(PyObject * sipSelf,PyObject * sipArgs)2111 static PyObject *meth_wxButton_DoGetBestSize(PyObject *sipSelf, PyObject *sipArgs)
2112 {
2113     PyObject *sipParseErr = SIP_NULLPTR;
2114     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2115 
2116     {
2117         const sipwxButton *sipCpp;
2118 
2119         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxButton, &sipCpp))
2120         {
2121              ::wxSize*sipRes;
2122 
2123             PyErr_Clear();
2124 
2125             Py_BEGIN_ALLOW_THREADS
2126             sipRes = new  ::wxSize(sipCpp->sipProtectVirt_DoGetBestSize(sipSelfWasArg));
2127             Py_END_ALLOW_THREADS
2128 
2129             if (PyErr_Occurred())
2130                 return 0;
2131 
2132             return sipConvertFromNewType(sipRes,sipType_wxSize,SIP_NULLPTR);
2133         }
2134     }
2135 
2136     /* Raise an exception if the arguments couldn't be parsed. */
2137     sipNoMethod(sipParseErr, sipName_Button, sipName_DoGetBestSize, doc_wxButton_DoGetBestSize);
2138 
2139     return SIP_NULLPTR;
2140 }
2141 
2142 
2143 PyDoc_STRVAR(doc_wxButton_DoGetBestClientSize, "DoGetBestClientSize(self) -> Size");
2144 
2145 extern "C" {static PyObject *meth_wxButton_DoGetBestClientSize(PyObject *, PyObject *);}
meth_wxButton_DoGetBestClientSize(PyObject * sipSelf,PyObject * sipArgs)2146 static PyObject *meth_wxButton_DoGetBestClientSize(PyObject *sipSelf, PyObject *sipArgs)
2147 {
2148     PyObject *sipParseErr = SIP_NULLPTR;
2149     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2150 
2151     {
2152         const sipwxButton *sipCpp;
2153 
2154         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxButton, &sipCpp))
2155         {
2156              ::wxSize*sipRes;
2157 
2158             PyErr_Clear();
2159 
2160             Py_BEGIN_ALLOW_THREADS
2161             sipRes = new  ::wxSize(sipCpp->sipProtectVirt_DoGetBestClientSize(sipSelfWasArg));
2162             Py_END_ALLOW_THREADS
2163 
2164             if (PyErr_Occurred())
2165                 return 0;
2166 
2167             return sipConvertFromNewType(sipRes,sipType_wxSize,SIP_NULLPTR);
2168         }
2169     }
2170 
2171     /* Raise an exception if the arguments couldn't be parsed. */
2172     sipNoMethod(sipParseErr, sipName_Button, sipName_DoGetBestClientSize, doc_wxButton_DoGetBestClientSize);
2173 
2174     return SIP_NULLPTR;
2175 }
2176 
2177 
2178 PyDoc_STRVAR(doc_wxButton_DoSetSize, "DoSetSize(self, x: int, y: int, width: int, height: int, sizeFlags: int)");
2179 
2180 extern "C" {static PyObject *meth_wxButton_DoSetSize(PyObject *, PyObject *, PyObject *);}
meth_wxButton_DoSetSize(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2181 static PyObject *meth_wxButton_DoSetSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2182 {
2183     PyObject *sipParseErr = SIP_NULLPTR;
2184     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2185 
2186     {
2187         int x;
2188         int y;
2189         int width;
2190         int height;
2191         int sizeFlags;
2192         sipwxButton *sipCpp;
2193 
2194         static const char *sipKwdList[] = {
2195             sipName_x,
2196             sipName_y,
2197             sipName_width,
2198             sipName_height,
2199             sipName_sizeFlags,
2200         };
2201 
2202         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biiiii", &sipSelf, sipType_wxButton, &sipCpp, &x, &y, &width, &height, &sizeFlags))
2203         {
2204             PyErr_Clear();
2205 
2206             Py_BEGIN_ALLOW_THREADS
2207             sipCpp->sipProtectVirt_DoSetSize(sipSelfWasArg,x,y,width,height,sizeFlags);
2208             Py_END_ALLOW_THREADS
2209 
2210             if (PyErr_Occurred())
2211                 return 0;
2212 
2213             Py_INCREF(Py_None);
2214             return Py_None;
2215         }
2216     }
2217 
2218     /* Raise an exception if the arguments couldn't be parsed. */
2219     sipNoMethod(sipParseErr, sipName_Button, sipName_DoSetSize, doc_wxButton_DoSetSize);
2220 
2221     return SIP_NULLPTR;
2222 }
2223 
2224 
2225 PyDoc_STRVAR(doc_wxButton_DoSetClientSize, "DoSetClientSize(self, width: int, height: int)");
2226 
2227 extern "C" {static PyObject *meth_wxButton_DoSetClientSize(PyObject *, PyObject *, PyObject *);}
meth_wxButton_DoSetClientSize(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2228 static PyObject *meth_wxButton_DoSetClientSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2229 {
2230     PyObject *sipParseErr = SIP_NULLPTR;
2231     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2232 
2233     {
2234         int width;
2235         int height;
2236         sipwxButton *sipCpp;
2237 
2238         static const char *sipKwdList[] = {
2239             sipName_width,
2240             sipName_height,
2241         };
2242 
2243         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bii", &sipSelf, sipType_wxButton, &sipCpp, &width, &height))
2244         {
2245             PyErr_Clear();
2246 
2247             Py_BEGIN_ALLOW_THREADS
2248             sipCpp->sipProtectVirt_DoSetClientSize(sipSelfWasArg,width,height);
2249             Py_END_ALLOW_THREADS
2250 
2251             if (PyErr_Occurred())
2252                 return 0;
2253 
2254             Py_INCREF(Py_None);
2255             return Py_None;
2256         }
2257     }
2258 
2259     /* Raise an exception if the arguments couldn't be parsed. */
2260     sipNoMethod(sipParseErr, sipName_Button, sipName_DoSetClientSize, doc_wxButton_DoSetClientSize);
2261 
2262     return SIP_NULLPTR;
2263 }
2264 
2265 
2266 PyDoc_STRVAR(doc_wxButton_DoSetSizeHints, "DoSetSizeHints(self, minW: int, minH: int, maxW: int, maxH: int, incW: int, incH: int)");
2267 
2268 extern "C" {static PyObject *meth_wxButton_DoSetSizeHints(PyObject *, PyObject *, PyObject *);}
meth_wxButton_DoSetSizeHints(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2269 static PyObject *meth_wxButton_DoSetSizeHints(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2270 {
2271     PyObject *sipParseErr = SIP_NULLPTR;
2272     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2273 
2274     {
2275         int minW;
2276         int minH;
2277         int maxW;
2278         int maxH;
2279         int incW;
2280         int incH;
2281         sipwxButton *sipCpp;
2282 
2283         static const char *sipKwdList[] = {
2284             sipName_minW,
2285             sipName_minH,
2286             sipName_maxW,
2287             sipName_maxH,
2288             sipName_incW,
2289             sipName_incH,
2290         };
2291 
2292         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biiiiii", &sipSelf, sipType_wxButton, &sipCpp, &minW, &minH, &maxW, &maxH, &incW, &incH))
2293         {
2294             PyErr_Clear();
2295 
2296             Py_BEGIN_ALLOW_THREADS
2297             sipCpp->sipProtectVirt_DoSetSizeHints(sipSelfWasArg,minW,minH,maxW,maxH,incW,incH);
2298             Py_END_ALLOW_THREADS
2299 
2300             if (PyErr_Occurred())
2301                 return 0;
2302 
2303             Py_INCREF(Py_None);
2304             return Py_None;
2305         }
2306     }
2307 
2308     /* Raise an exception if the arguments couldn't be parsed. */
2309     sipNoMethod(sipParseErr, sipName_Button, sipName_DoSetSizeHints, doc_wxButton_DoSetSizeHints);
2310 
2311     return SIP_NULLPTR;
2312 }
2313 
2314 
2315 PyDoc_STRVAR(doc_wxButton_DoGetBorderSize, "DoGetBorderSize(self) -> Size");
2316 
2317 extern "C" {static PyObject *meth_wxButton_DoGetBorderSize(PyObject *, PyObject *);}
meth_wxButton_DoGetBorderSize(PyObject * sipSelf,PyObject * sipArgs)2318 static PyObject *meth_wxButton_DoGetBorderSize(PyObject *sipSelf, PyObject *sipArgs)
2319 {
2320     PyObject *sipParseErr = SIP_NULLPTR;
2321     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2322 
2323     {
2324         const sipwxButton *sipCpp;
2325 
2326         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxButton, &sipCpp))
2327         {
2328              ::wxSize*sipRes;
2329 
2330             PyErr_Clear();
2331 
2332             Py_BEGIN_ALLOW_THREADS
2333             sipRes = new  ::wxSize(sipCpp->sipProtectVirt_DoGetBorderSize(sipSelfWasArg));
2334             Py_END_ALLOW_THREADS
2335 
2336             if (PyErr_Occurred())
2337                 return 0;
2338 
2339             return sipConvertFromNewType(sipRes,sipType_wxSize,SIP_NULLPTR);
2340         }
2341     }
2342 
2343     /* Raise an exception if the arguments couldn't be parsed. */
2344     sipNoMethod(sipParseErr, sipName_Button, sipName_DoGetBorderSize, doc_wxButton_DoGetBorderSize);
2345 
2346     return SIP_NULLPTR;
2347 }
2348 
2349 
2350 PyDoc_STRVAR(doc_wxButton_DoMoveWindow, "DoMoveWindow(self, x: int, y: int, width: int, height: int)");
2351 
2352 extern "C" {static PyObject *meth_wxButton_DoMoveWindow(PyObject *, PyObject *, PyObject *);}
meth_wxButton_DoMoveWindow(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2353 static PyObject *meth_wxButton_DoMoveWindow(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2354 {
2355     PyObject *sipParseErr = SIP_NULLPTR;
2356     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2357 
2358     {
2359         int x;
2360         int y;
2361         int width;
2362         int height;
2363         sipwxButton *sipCpp;
2364 
2365         static const char *sipKwdList[] = {
2366             sipName_x,
2367             sipName_y,
2368             sipName_width,
2369             sipName_height,
2370         };
2371 
2372         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biiii", &sipSelf, sipType_wxButton, &sipCpp, &x, &y, &width, &height))
2373         {
2374             PyErr_Clear();
2375 
2376             Py_BEGIN_ALLOW_THREADS
2377             sipCpp->sipProtectVirt_DoMoveWindow(sipSelfWasArg,x,y,width,height);
2378             Py_END_ALLOW_THREADS
2379 
2380             if (PyErr_Occurred())
2381                 return 0;
2382 
2383             Py_INCREF(Py_None);
2384             return Py_None;
2385         }
2386     }
2387 
2388     /* Raise an exception if the arguments couldn't be parsed. */
2389     sipNoMethod(sipParseErr, sipName_Button, sipName_DoMoveWindow, doc_wxButton_DoMoveWindow);
2390 
2391     return SIP_NULLPTR;
2392 }
2393 
2394 
2395 PyDoc_STRVAR(doc_wxButton_DoSetWindowVariant, "DoSetWindowVariant(self, variant: WindowVariant)");
2396 
2397 extern "C" {static PyObject *meth_wxButton_DoSetWindowVariant(PyObject *, PyObject *, PyObject *);}
meth_wxButton_DoSetWindowVariant(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2398 static PyObject *meth_wxButton_DoSetWindowVariant(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2399 {
2400     PyObject *sipParseErr = SIP_NULLPTR;
2401     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2402 
2403     {
2404          ::wxWindowVariant variant;
2405         sipwxButton *sipCpp;
2406 
2407         static const char *sipKwdList[] = {
2408             sipName_variant,
2409         };
2410 
2411         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BE", &sipSelf, sipType_wxButton, &sipCpp, sipType_wxWindowVariant, &variant))
2412         {
2413             PyErr_Clear();
2414 
2415             Py_BEGIN_ALLOW_THREADS
2416             sipCpp->sipProtectVirt_DoSetWindowVariant(sipSelfWasArg,variant);
2417             Py_END_ALLOW_THREADS
2418 
2419             if (PyErr_Occurred())
2420                 return 0;
2421 
2422             Py_INCREF(Py_None);
2423             return Py_None;
2424         }
2425     }
2426 
2427     /* Raise an exception if the arguments couldn't be parsed. */
2428     sipNoMethod(sipParseErr, sipName_Button, sipName_DoSetWindowVariant, doc_wxButton_DoSetWindowVariant);
2429 
2430     return SIP_NULLPTR;
2431 }
2432 
2433 
2434 PyDoc_STRVAR(doc_wxButton_GetDefaultBorder, "GetDefaultBorder(self) -> Border");
2435 
2436 extern "C" {static PyObject *meth_wxButton_GetDefaultBorder(PyObject *, PyObject *);}
meth_wxButton_GetDefaultBorder(PyObject * sipSelf,PyObject * sipArgs)2437 static PyObject *meth_wxButton_GetDefaultBorder(PyObject *sipSelf, PyObject *sipArgs)
2438 {
2439     PyObject *sipParseErr = SIP_NULLPTR;
2440     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2441 
2442     {
2443         const sipwxButton *sipCpp;
2444 
2445         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxButton, &sipCpp))
2446         {
2447              ::wxBorder sipRes;
2448 
2449             PyErr_Clear();
2450 
2451             Py_BEGIN_ALLOW_THREADS
2452             sipRes = sipCpp->sipProtectVirt_GetDefaultBorder(sipSelfWasArg);
2453             Py_END_ALLOW_THREADS
2454 
2455             if (PyErr_Occurred())
2456                 return 0;
2457 
2458             return sipConvertFromEnum(static_cast<int>(sipRes), sipType_wxBorder);
2459         }
2460     }
2461 
2462     /* Raise an exception if the arguments couldn't be parsed. */
2463     sipNoMethod(sipParseErr, sipName_Button, sipName_GetDefaultBorder, doc_wxButton_GetDefaultBorder);
2464 
2465     return SIP_NULLPTR;
2466 }
2467 
2468 
2469 PyDoc_STRVAR(doc_wxButton_GetDefaultBorderForControl, "GetDefaultBorderForControl(self) -> Border");
2470 
2471 extern "C" {static PyObject *meth_wxButton_GetDefaultBorderForControl(PyObject *, PyObject *);}
meth_wxButton_GetDefaultBorderForControl(PyObject * sipSelf,PyObject * sipArgs)2472 static PyObject *meth_wxButton_GetDefaultBorderForControl(PyObject *sipSelf, PyObject *sipArgs)
2473 {
2474     PyObject *sipParseErr = SIP_NULLPTR;
2475     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2476 
2477     {
2478         const sipwxButton *sipCpp;
2479 
2480         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxButton, &sipCpp))
2481         {
2482              ::wxBorder sipRes;
2483 
2484             PyErr_Clear();
2485 
2486             Py_BEGIN_ALLOW_THREADS
2487             sipRes = sipCpp->sipProtectVirt_GetDefaultBorderForControl(sipSelfWasArg);
2488             Py_END_ALLOW_THREADS
2489 
2490             if (PyErr_Occurred())
2491                 return 0;
2492 
2493             return sipConvertFromEnum(static_cast<int>(sipRes), sipType_wxBorder);
2494         }
2495     }
2496 
2497     /* Raise an exception if the arguments couldn't be parsed. */
2498     sipNoMethod(sipParseErr, sipName_Button, sipName_GetDefaultBorderForControl, doc_wxButton_GetDefaultBorderForControl);
2499 
2500     return SIP_NULLPTR;
2501 }
2502 
2503 
2504 PyDoc_STRVAR(doc_wxButton_DoFreeze, "DoFreeze(self)");
2505 
2506 extern "C" {static PyObject *meth_wxButton_DoFreeze(PyObject *, PyObject *);}
meth_wxButton_DoFreeze(PyObject * sipSelf,PyObject * sipArgs)2507 static PyObject *meth_wxButton_DoFreeze(PyObject *sipSelf, PyObject *sipArgs)
2508 {
2509     PyObject *sipParseErr = SIP_NULLPTR;
2510     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2511 
2512     {
2513         sipwxButton *sipCpp;
2514 
2515         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxButton, &sipCpp))
2516         {
2517             PyErr_Clear();
2518 
2519             Py_BEGIN_ALLOW_THREADS
2520             sipCpp->sipProtectVirt_DoFreeze(sipSelfWasArg);
2521             Py_END_ALLOW_THREADS
2522 
2523             if (PyErr_Occurred())
2524                 return 0;
2525 
2526             Py_INCREF(Py_None);
2527             return Py_None;
2528         }
2529     }
2530 
2531     /* Raise an exception if the arguments couldn't be parsed. */
2532     sipNoMethod(sipParseErr, sipName_Button, sipName_DoFreeze, doc_wxButton_DoFreeze);
2533 
2534     return SIP_NULLPTR;
2535 }
2536 
2537 
2538 PyDoc_STRVAR(doc_wxButton_DoThaw, "DoThaw(self)");
2539 
2540 extern "C" {static PyObject *meth_wxButton_DoThaw(PyObject *, PyObject *);}
meth_wxButton_DoThaw(PyObject * sipSelf,PyObject * sipArgs)2541 static PyObject *meth_wxButton_DoThaw(PyObject *sipSelf, PyObject *sipArgs)
2542 {
2543     PyObject *sipParseErr = SIP_NULLPTR;
2544     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2545 
2546     {
2547         sipwxButton *sipCpp;
2548 
2549         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxButton, &sipCpp))
2550         {
2551             PyErr_Clear();
2552 
2553             Py_BEGIN_ALLOW_THREADS
2554             sipCpp->sipProtectVirt_DoThaw(sipSelfWasArg);
2555             Py_END_ALLOW_THREADS
2556 
2557             if (PyErr_Occurred())
2558                 return 0;
2559 
2560             Py_INCREF(Py_None);
2561             return Py_None;
2562         }
2563     }
2564 
2565     /* Raise an exception if the arguments couldn't be parsed. */
2566     sipNoMethod(sipParseErr, sipName_Button, sipName_DoThaw, doc_wxButton_DoThaw);
2567 
2568     return SIP_NULLPTR;
2569 }
2570 
2571 
2572 PyDoc_STRVAR(doc_wxButton_HasTransparentBackground, "HasTransparentBackground(self) -> bool");
2573 
2574 extern "C" {static PyObject *meth_wxButton_HasTransparentBackground(PyObject *, PyObject *);}
meth_wxButton_HasTransparentBackground(PyObject * sipSelf,PyObject * sipArgs)2575 static PyObject *meth_wxButton_HasTransparentBackground(PyObject *sipSelf, PyObject *sipArgs)
2576 {
2577     PyObject *sipParseErr = SIP_NULLPTR;
2578     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2579 
2580     {
2581         sipwxButton *sipCpp;
2582 
2583         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxButton, &sipCpp))
2584         {
2585             bool sipRes;
2586 
2587             PyErr_Clear();
2588 
2589             Py_BEGIN_ALLOW_THREADS
2590             sipRes = sipCpp->sipProtectVirt_HasTransparentBackground(sipSelfWasArg);
2591             Py_END_ALLOW_THREADS
2592 
2593             if (PyErr_Occurred())
2594                 return 0;
2595 
2596             return PyBool_FromLong(sipRes);
2597         }
2598     }
2599 
2600     /* Raise an exception if the arguments couldn't be parsed. */
2601     sipNoMethod(sipParseErr, sipName_Button, sipName_HasTransparentBackground, doc_wxButton_HasTransparentBackground);
2602 
2603     return SIP_NULLPTR;
2604 }
2605 
2606 
2607 PyDoc_STRVAR(doc_wxButton_TryBefore, "TryBefore(self, event: Event) -> bool");
2608 
2609 extern "C" {static PyObject *meth_wxButton_TryBefore(PyObject *, PyObject *, PyObject *);}
meth_wxButton_TryBefore(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2610 static PyObject *meth_wxButton_TryBefore(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2611 {
2612     PyObject *sipParseErr = SIP_NULLPTR;
2613     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2614 
2615     {
2616          ::wxEvent* event;
2617         sipwxButton *sipCpp;
2618 
2619         static const char *sipKwdList[] = {
2620             sipName_event,
2621         };
2622 
2623         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxButton, &sipCpp, sipType_wxEvent, &event))
2624         {
2625             bool sipRes;
2626 
2627             PyErr_Clear();
2628 
2629             Py_BEGIN_ALLOW_THREADS
2630             sipRes = sipCpp->sipProtectVirt_TryBefore(sipSelfWasArg,*event);
2631             Py_END_ALLOW_THREADS
2632 
2633             if (PyErr_Occurred())
2634                 return 0;
2635 
2636             return PyBool_FromLong(sipRes);
2637         }
2638     }
2639 
2640     /* Raise an exception if the arguments couldn't be parsed. */
2641     sipNoMethod(sipParseErr, sipName_Button, sipName_TryBefore, doc_wxButton_TryBefore);
2642 
2643     return SIP_NULLPTR;
2644 }
2645 
2646 
2647 PyDoc_STRVAR(doc_wxButton_TryAfter, "TryAfter(self, event: Event) -> bool");
2648 
2649 extern "C" {static PyObject *meth_wxButton_TryAfter(PyObject *, PyObject *, PyObject *);}
meth_wxButton_TryAfter(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2650 static PyObject *meth_wxButton_TryAfter(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2651 {
2652     PyObject *sipParseErr = SIP_NULLPTR;
2653     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2654 
2655     {
2656          ::wxEvent* event;
2657         sipwxButton *sipCpp;
2658 
2659         static const char *sipKwdList[] = {
2660             sipName_event,
2661         };
2662 
2663         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxButton, &sipCpp, sipType_wxEvent, &event))
2664         {
2665             bool sipRes;
2666 
2667             PyErr_Clear();
2668 
2669             Py_BEGIN_ALLOW_THREADS
2670             sipRes = sipCpp->sipProtectVirt_TryAfter(sipSelfWasArg,*event);
2671             Py_END_ALLOW_THREADS
2672 
2673             if (PyErr_Occurred())
2674                 return 0;
2675 
2676             return PyBool_FromLong(sipRes);
2677         }
2678     }
2679 
2680     /* Raise an exception if the arguments couldn't be parsed. */
2681     sipNoMethod(sipParseErr, sipName_Button, sipName_TryAfter, doc_wxButton_TryAfter);
2682 
2683     return SIP_NULLPTR;
2684 }
2685 
2686 
2687 PyDoc_STRVAR(doc_wxButton_GetClassDefaultAttributes, "GetClassDefaultAttributes(variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes");
2688 
2689 extern "C" {static PyObject *meth_wxButton_GetClassDefaultAttributes(PyObject *, PyObject *, PyObject *);}
meth_wxButton_GetClassDefaultAttributes(PyObject *,PyObject * sipArgs,PyObject * sipKwds)2690 static PyObject *meth_wxButton_GetClassDefaultAttributes(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
2691 {
2692     PyObject *sipParseErr = SIP_NULLPTR;
2693 
2694     {
2695          ::wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL;
2696 
2697         static const char *sipKwdList[] = {
2698             sipName_variant,
2699         };
2700 
2701         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "|E", sipType_wxWindowVariant, &variant))
2702         {
2703              ::wxVisualAttributes*sipRes;
2704 
2705         if (!wxPyCheckForApp()) return NULL;
2706 
2707             PyErr_Clear();
2708 
2709             Py_BEGIN_ALLOW_THREADS
2710             sipRes = new  ::wxVisualAttributes( ::wxButton::GetClassDefaultAttributes(variant));
2711             Py_END_ALLOW_THREADS
2712 
2713             if (PyErr_Occurred())
2714                 return 0;
2715 
2716             return sipConvertFromNewType(sipRes,sipType_wxVisualAttributes,SIP_NULLPTR);
2717         }
2718     }
2719 
2720     /* Raise an exception if the arguments couldn't be parsed. */
2721     sipNoMethod(sipParseErr, sipName_Button, sipName_GetClassDefaultAttributes, SIP_NULLPTR);
2722 
2723     return SIP_NULLPTR;
2724 }
2725 
2726 
2727 /* Cast a pointer to a type somewhere in its inheritance hierarchy. */
2728 extern "C" {static void *cast_wxButton(void *, const sipTypeDef *);}
cast_wxButton(void * sipCppV,const sipTypeDef * targetType)2729 static void *cast_wxButton(void *sipCppV, const sipTypeDef *targetType)
2730 {
2731      ::wxButton *sipCpp = reinterpret_cast< ::wxButton *>(sipCppV);
2732 
2733     if (targetType == sipType_wxAnyButton)
2734         return static_cast< ::wxAnyButton *>(sipCpp);
2735 
2736     if (targetType == sipType_wxControl)
2737         return static_cast< ::wxControl *>(sipCpp);
2738 
2739     if (targetType == sipType_wxWindow)
2740         return static_cast< ::wxWindow *>(sipCpp);
2741 
2742     if (targetType == sipType_wxWindowBase)
2743         return static_cast< ::wxWindowBase *>(sipCpp);
2744 
2745     if (targetType == sipType_wxEvtHandler)
2746         return static_cast< ::wxEvtHandler *>(sipCpp);
2747 
2748     if (targetType == sipType_wxObject)
2749         return static_cast< ::wxObject *>(sipCpp);
2750 
2751     if (targetType == sipType_wxTrackable)
2752         return static_cast< ::wxTrackable *>(sipCpp);
2753 
2754     return sipCppV;
2755 }
2756 
2757 
2758 /* Call the instance's destructor. */
2759 extern "C" {static void release_wxButton(void *, int);}
release_wxButton(void * sipCppV,int sipState)2760 static void release_wxButton(void *sipCppV, int sipState)
2761 {
2762     Py_BEGIN_ALLOW_THREADS
2763 
2764     if (sipState & SIP_DERIVED_CLASS)
2765         delete reinterpret_cast<sipwxButton *>(sipCppV);
2766     else
2767         delete reinterpret_cast< ::wxButton *>(sipCppV);
2768 
2769     Py_END_ALLOW_THREADS
2770 }
2771 
2772 
2773 extern "C" {static void dealloc_wxButton(sipSimpleWrapper *);}
dealloc_wxButton(sipSimpleWrapper * sipSelf)2774 static void dealloc_wxButton(sipSimpleWrapper *sipSelf)
2775 {
2776     if (sipIsDerivedClass(sipSelf))
2777         reinterpret_cast<sipwxButton *>(sipGetAddress(sipSelf))->sipPySelf = SIP_NULLPTR;
2778 
2779     if (sipIsOwnedByPython(sipSelf))
2780     {
2781         release_wxButton(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
2782     }
2783 }
2784 
2785 
2786 extern "C" {static void *init_type_wxButton(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
init_type_wxButton(sipSimpleWrapper * sipSelf,PyObject * sipArgs,PyObject * sipKwds,PyObject ** sipUnused,PyObject ** sipOwner,PyObject ** sipParseErr)2787 static void *init_type_wxButton(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
2788 {
2789     sipwxButton *sipCpp = SIP_NULLPTR;
2790 
2791     {
2792         if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, ""))
2793         {
2794 
2795         if (!wxPyCheckForApp()) return NULL;
2796 
2797             PyErr_Clear();
2798 
2799             Py_BEGIN_ALLOW_THREADS
2800             sipCpp = new sipwxButton();
2801             Py_END_ALLOW_THREADS
2802 
2803             if (PyErr_Occurred())
2804             {
2805                 delete sipCpp;
2806                 return SIP_NULLPTR;
2807             }
2808 
2809             sipCpp->sipPySelf = sipSelf;
2810 
2811             return sipCpp;
2812         }
2813     }
2814 
2815     {
2816          ::wxWindow* parent;
2817          ::wxWindowID id = wxID_ANY;
2818         const  ::wxString& labeldef = wxEmptyString;
2819         const  ::wxString* label = &labeldef;
2820         int labelState = 0;
2821         const  ::wxPoint& posdef = wxDefaultPosition;
2822         const  ::wxPoint* pos = &posdef;
2823         int posState = 0;
2824         const  ::wxSize& sizedef = wxDefaultSize;
2825         const  ::wxSize* size = &sizedef;
2826         int sizeState = 0;
2827         long style = 0;
2828         const  ::wxValidator& validatordef = wxDefaultValidator;
2829         const  ::wxValidator* validator = &validatordef;
2830         const  ::wxString& namedef = wxButtonNameStr;
2831         const  ::wxString* name = &namedef;
2832         int nameState = 0;
2833 
2834         static const char *sipKwdList[] = {
2835             sipName_parent,
2836             sipName_id,
2837             sipName_label,
2838             sipName_pos,
2839             sipName_size,
2840             sipName_style,
2841             sipName_validator,
2842             sipName_name,
2843         };
2844 
2845         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, &validator, sipType_wxString,&name, &nameState))
2846         {
2847 
2848         if (!wxPyCheckForApp()) return NULL;
2849 
2850             PyErr_Clear();
2851 
2852             Py_BEGIN_ALLOW_THREADS
2853             sipCpp = new sipwxButton(parent,id,*label,*pos,*size,style,*validator,*name);
2854             Py_END_ALLOW_THREADS
2855             sipReleaseType(const_cast< ::wxString *>(label),sipType_wxString,labelState);
2856             sipReleaseType(const_cast< ::wxPoint *>(pos),sipType_wxPoint,posState);
2857             sipReleaseType(const_cast< ::wxSize *>(size),sipType_wxSize,sizeState);
2858             sipReleaseType(const_cast< ::wxString *>(name),sipType_wxString,nameState);
2859 
2860             if (PyErr_Occurred())
2861             {
2862                 delete sipCpp;
2863                 return SIP_NULLPTR;
2864             }
2865 
2866             sipCpp->sipPySelf = sipSelf;
2867 
2868             return sipCpp;
2869         }
2870     }
2871 
2872     return SIP_NULLPTR;
2873 }
2874 
2875 
2876 /* Define this type's super-types. */
2877 static sipEncodedTypeDef supers_wxButton[] = {{17, 255, 1}};
2878 
2879 
2880 static PyMethodDef methods_wxButton[] = {
2881     {SIP_MLNAME_CAST(sipName_AcceptsFocus), meth_wxButton_AcceptsFocus, METH_VARARGS, SIP_MLDOC_CAST(doc_wxButton_AcceptsFocus)},
2882     {SIP_MLNAME_CAST(sipName_AcceptsFocusFromKeyboard), meth_wxButton_AcceptsFocusFromKeyboard, METH_VARARGS, SIP_MLDOC_CAST(doc_wxButton_AcceptsFocusFromKeyboard)},
2883     {SIP_MLNAME_CAST(sipName_AcceptsFocusRecursively), meth_wxButton_AcceptsFocusRecursively, METH_VARARGS, SIP_MLDOC_CAST(doc_wxButton_AcceptsFocusRecursively)},
2884     {SIP_MLNAME_CAST(sipName_AddChild), SIP_MLMETH_CAST(meth_wxButton_AddChild), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxButton_AddChild)},
2885     {SIP_MLNAME_CAST(sipName_Create), SIP_MLMETH_CAST(meth_wxButton_Create), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxButton_Create)},
2886     {SIP_MLNAME_CAST(sipName_Destroy), meth_wxButton_Destroy, METH_VARARGS, SIP_MLDOC_CAST(doc_wxButton_Destroy)},
2887     {SIP_MLNAME_CAST(sipName_DoEnable), SIP_MLMETH_CAST(meth_wxButton_DoEnable), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxButton_DoEnable)},
2888     {SIP_MLNAME_CAST(sipName_DoFreeze), meth_wxButton_DoFreeze, METH_VARARGS, SIP_MLDOC_CAST(doc_wxButton_DoFreeze)},
2889     {SIP_MLNAME_CAST(sipName_DoGetBestClientSize), meth_wxButton_DoGetBestClientSize, METH_VARARGS, SIP_MLDOC_CAST(doc_wxButton_DoGetBestClientSize)},
2890     {SIP_MLNAME_CAST(sipName_DoGetBestSize), meth_wxButton_DoGetBestSize, METH_VARARGS, SIP_MLDOC_CAST(doc_wxButton_DoGetBestSize)},
2891     {SIP_MLNAME_CAST(sipName_DoGetBorderSize), meth_wxButton_DoGetBorderSize, METH_VARARGS, SIP_MLDOC_CAST(doc_wxButton_DoGetBorderSize)},
2892     {SIP_MLNAME_CAST(sipName_DoGetClientSize), SIP_MLMETH_CAST(meth_wxButton_DoGetClientSize), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxButton_DoGetClientSize)},
2893     {SIP_MLNAME_CAST(sipName_DoGetPosition), SIP_MLMETH_CAST(meth_wxButton_DoGetPosition), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxButton_DoGetPosition)},
2894     {SIP_MLNAME_CAST(sipName_DoGetSize), SIP_MLMETH_CAST(meth_wxButton_DoGetSize), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxButton_DoGetSize)},
2895     {SIP_MLNAME_CAST(sipName_DoMoveWindow), SIP_MLMETH_CAST(meth_wxButton_DoMoveWindow), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxButton_DoMoveWindow)},
2896     {SIP_MLNAME_CAST(sipName_DoSetClientSize), SIP_MLMETH_CAST(meth_wxButton_DoSetClientSize), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxButton_DoSetClientSize)},
2897     {SIP_MLNAME_CAST(sipName_DoSetSize), SIP_MLMETH_CAST(meth_wxButton_DoSetSize), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxButton_DoSetSize)},
2898     {SIP_MLNAME_CAST(sipName_DoSetSizeHints), SIP_MLMETH_CAST(meth_wxButton_DoSetSizeHints), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxButton_DoSetSizeHints)},
2899     {SIP_MLNAME_CAST(sipName_DoSetWindowVariant), SIP_MLMETH_CAST(meth_wxButton_DoSetWindowVariant), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxButton_DoSetWindowVariant)},
2900     {SIP_MLNAME_CAST(sipName_DoThaw), meth_wxButton_DoThaw, METH_VARARGS, SIP_MLDOC_CAST(doc_wxButton_DoThaw)},
2901     {SIP_MLNAME_CAST(sipName_GetAuthNeeded), meth_wxButton_GetAuthNeeded, METH_VARARGS, SIP_MLDOC_CAST(doc_wxButton_GetAuthNeeded)},
2902     {SIP_MLNAME_CAST(sipName_GetClassDefaultAttributes), SIP_MLMETH_CAST(meth_wxButton_GetClassDefaultAttributes), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxButton_GetClassDefaultAttributes)},
2903     {SIP_MLNAME_CAST(sipName_GetClientAreaOrigin), meth_wxButton_GetClientAreaOrigin, METH_VARARGS, SIP_MLDOC_CAST(doc_wxButton_GetClientAreaOrigin)},
2904     {SIP_MLNAME_CAST(sipName_GetDefaultBorder), meth_wxButton_GetDefaultBorder, METH_VARARGS, SIP_MLDOC_CAST(doc_wxButton_GetDefaultBorder)},
2905     {SIP_MLNAME_CAST(sipName_GetDefaultBorderForControl), meth_wxButton_GetDefaultBorderForControl, METH_VARARGS, SIP_MLDOC_CAST(doc_wxButton_GetDefaultBorderForControl)},
2906     {SIP_MLNAME_CAST(sipName_GetDefaultSize), meth_wxButton_GetDefaultSize, METH_VARARGS, SIP_MLDOC_CAST(doc_wxButton_GetDefaultSize)},
2907     {SIP_MLNAME_CAST(sipName_GetLabel), meth_wxButton_GetLabel, METH_VARARGS, SIP_MLDOC_CAST(doc_wxButton_GetLabel)},
2908     {SIP_MLNAME_CAST(sipName_GetMainWindowOfCompositeControl), meth_wxButton_GetMainWindowOfCompositeControl, METH_VARARGS, SIP_MLDOC_CAST(doc_wxButton_GetMainWindowOfCompositeControl)},
2909     {SIP_MLNAME_CAST(sipName_GetValidator), meth_wxButton_GetValidator, METH_VARARGS, SIP_MLDOC_CAST(doc_wxButton_GetValidator)},
2910     {SIP_MLNAME_CAST(sipName_HasTransparentBackground), meth_wxButton_HasTransparentBackground, METH_VARARGS, SIP_MLDOC_CAST(doc_wxButton_HasTransparentBackground)},
2911     {SIP_MLNAME_CAST(sipName_InformFirstDirection), SIP_MLMETH_CAST(meth_wxButton_InformFirstDirection), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxButton_InformFirstDirection)},
2912     {SIP_MLNAME_CAST(sipName_InheritAttributes), meth_wxButton_InheritAttributes, METH_VARARGS, SIP_MLDOC_CAST(doc_wxButton_InheritAttributes)},
2913     {SIP_MLNAME_CAST(sipName_InitDialog), meth_wxButton_InitDialog, METH_VARARGS, SIP_MLDOC_CAST(doc_wxButton_InitDialog)},
2914     {SIP_MLNAME_CAST(sipName_OnInternalIdle), meth_wxButton_OnInternalIdle, METH_VARARGS, SIP_MLDOC_CAST(doc_wxButton_OnInternalIdle)},
2915     {SIP_MLNAME_CAST(sipName_ProcessEvent), SIP_MLMETH_CAST(meth_wxButton_ProcessEvent), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxButton_ProcessEvent)},
2916     {SIP_MLNAME_CAST(sipName_RemoveChild), SIP_MLMETH_CAST(meth_wxButton_RemoveChild), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxButton_RemoveChild)},
2917     {SIP_MLNAME_CAST(sipName_SendDestroyEvent), meth_wxButton_SendDestroyEvent, METH_VARARGS, SIP_NULLPTR},
2918     {SIP_MLNAME_CAST(sipName_SetAuthNeeded), SIP_MLMETH_CAST(meth_wxButton_SetAuthNeeded), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxButton_SetAuthNeeded)},
2919     {SIP_MLNAME_CAST(sipName_SetCanFocus), SIP_MLMETH_CAST(meth_wxButton_SetCanFocus), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxButton_SetCanFocus)},
2920     {SIP_MLNAME_CAST(sipName_SetDefault), meth_wxButton_SetDefault, METH_VARARGS, SIP_MLDOC_CAST(doc_wxButton_SetDefault)},
2921     {SIP_MLNAME_CAST(sipName_SetLabel), SIP_MLMETH_CAST(meth_wxButton_SetLabel), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxButton_SetLabel)},
2922     {SIP_MLNAME_CAST(sipName_SetValidator), SIP_MLMETH_CAST(meth_wxButton_SetValidator), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxButton_SetValidator)},
2923     {SIP_MLNAME_CAST(sipName_ShouldInheritColours), meth_wxButton_ShouldInheritColours, METH_VARARGS, SIP_MLDOC_CAST(doc_wxButton_ShouldInheritColours)},
2924     {SIP_MLNAME_CAST(sipName_TransferDataFromWindow), meth_wxButton_TransferDataFromWindow, METH_VARARGS, SIP_MLDOC_CAST(doc_wxButton_TransferDataFromWindow)},
2925     {SIP_MLNAME_CAST(sipName_TransferDataToWindow), meth_wxButton_TransferDataToWindow, METH_VARARGS, SIP_MLDOC_CAST(doc_wxButton_TransferDataToWindow)},
2926     {SIP_MLNAME_CAST(sipName_TryAfter), SIP_MLMETH_CAST(meth_wxButton_TryAfter), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxButton_TryAfter)},
2927     {SIP_MLNAME_CAST(sipName_TryBefore), SIP_MLMETH_CAST(meth_wxButton_TryBefore), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxButton_TryBefore)},
2928     {SIP_MLNAME_CAST(sipName_Validate), meth_wxButton_Validate, METH_VARARGS, SIP_MLDOC_CAST(doc_wxButton_Validate)}
2929 };
2930 
2931 sipVariableDef variables_wxButton[] = {
2932     {PropertyVariable, sipName_Label, &methods_wxButton[26], &methods_wxButton[40], SIP_NULLPTR, SIP_NULLPTR},
2933     {PropertyVariable, sipName_AuthNeeded, &methods_wxButton[20], &methods_wxButton[37], SIP_NULLPTR, SIP_NULLPTR},
2934 };
2935 
2936 PyDoc_STRVAR(doc_wxButton, "Button()\n"
2937 "Button(parent, id=ID_ANY, label=EmptyString, pos=DefaultPosition, size=DefaultSize, style=0, validator=DefaultValidator, name=ButtonNameStr)\n"
2938 "\n"
2939 "A button is a control that contains a text string, and is one of the\n"
2940 "most common elements of a GUI.");
2941 
2942 
2943 sipClassTypeDef sipTypeDef__core_wxButton = {
2944     {
2945         -1,
2946         SIP_NULLPTR,
2947         SIP_NULLPTR,
2948         SIP_TYPE_SCC|SIP_TYPE_CLASS,
2949         sipNameNr_wxButton,
2950         {SIP_NULLPTR},
2951         SIP_NULLPTR
2952     },
2953     {
2954         sipNameNr_Button,
2955         {0, 0, 1},
2956         48, methods_wxButton,
2957         0, SIP_NULLPTR,
2958         2, variables_wxButton,
2959         {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
2960     },
2961     doc_wxButton,
2962     -1,
2963     -1,
2964     supers_wxButton,
2965     SIP_NULLPTR,
2966     init_type_wxButton,
2967     SIP_NULLPTR,
2968     SIP_NULLPTR,
2969 #if PY_MAJOR_VERSION >= 3
2970     SIP_NULLPTR,
2971     SIP_NULLPTR,
2972 #else
2973     SIP_NULLPTR,
2974     SIP_NULLPTR,
2975     SIP_NULLPTR,
2976     SIP_NULLPTR,
2977 #endif
2978     dealloc_wxButton,
2979     SIP_NULLPTR,
2980     SIP_NULLPTR,
2981     SIP_NULLPTR,
2982     release_wxButton,
2983     cast_wxButton,
2984     SIP_NULLPTR,
2985     SIP_NULLPTR,
2986     SIP_NULLPTR,
2987     SIP_NULLPTR,
2988     SIP_NULLPTR,
2989     SIP_NULLPTR
2990 };
2991