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