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_aui.h"
11 
12         #include <wx/aui/auibook.h>
13 
14         #include <wx/gdicmn.h>
15         #include <wx/colour.h>
16         #include <wx/font.h>
17         #include <wx/dc.h>
18         #include <wx/window.h>
19         #include <wx/bitmap.h>
20         #include <wx/aui/auibook.h>
21         #include <wx/gdicmn.h>
22 
23 
24 PyDoc_STRVAR(doc_wxAuiTabArt_Clone, "Clone() -> AuiTabArt\n"
25 "\n"
26 "Clones the art object.");
27 
28 extern "C" {static PyObject *meth_wxAuiTabArt_Clone(PyObject *, PyObject *);}
meth_wxAuiTabArt_Clone(PyObject * sipSelf,PyObject * sipArgs)29 static PyObject *meth_wxAuiTabArt_Clone(PyObject *sipSelf, PyObject *sipArgs)
30 {
31     PyObject *sipParseErr = SIP_NULLPTR;
32     PyObject *sipOrigSelf = sipSelf;
33 
34     {
35          ::wxAuiTabArt *sipCpp;
36 
37         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxAuiTabArt, &sipCpp))
38         {
39              ::wxAuiTabArt*sipRes;
40 
41             if (!sipOrigSelf)
42             {
43                 sipAbstractMethod(sipName_AuiTabArt, sipName_Clone);
44                 return SIP_NULLPTR;
45             }
46 
47             PyErr_Clear();
48 
49             Py_BEGIN_ALLOW_THREADS
50             sipRes = sipCpp->Clone();
51             Py_END_ALLOW_THREADS
52 
53             if (PyErr_Occurred())
54                 return 0;
55 
56             return sipConvertFromType(sipRes,sipType_wxAuiTabArt,SIP_NULLPTR);
57         }
58     }
59 
60     /* Raise an exception if the arguments couldn't be parsed. */
61     sipNoMethod(sipParseErr, sipName_AuiTabArt, sipName_Clone, SIP_NULLPTR);
62 
63     return SIP_NULLPTR;
64 }
65 
66 
67 PyDoc_STRVAR(doc_wxAuiTabArt_DrawBackground, "DrawBackground(dc, wnd, rect)\n"
68 "\n"
69 "Draws a background on the given area.");
70 
71 extern "C" {static PyObject *meth_wxAuiTabArt_DrawBackground(PyObject *, PyObject *, PyObject *);}
meth_wxAuiTabArt_DrawBackground(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)72 static PyObject *meth_wxAuiTabArt_DrawBackground(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
73 {
74     PyObject *sipParseErr = SIP_NULLPTR;
75     PyObject *sipOrigSelf = sipSelf;
76 
77     {
78          ::wxDC* dc;
79          ::wxWindow* wnd;
80         const  ::wxRect* rect;
81         int rectState = 0;
82          ::wxAuiTabArt *sipCpp;
83 
84         static const char *sipKwdList[] = {
85             sipName_dc,
86             sipName_wnd,
87             sipName_rect,
88         };
89 
90         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9J8J1", &sipSelf, sipType_wxAuiTabArt, &sipCpp, sipType_wxDC, &dc, sipType_wxWindow, &wnd, sipType_wxRect, &rect, &rectState))
91         {
92             if (!sipOrigSelf)
93             {
94                 sipAbstractMethod(sipName_AuiTabArt, sipName_DrawBackground);
95                 return SIP_NULLPTR;
96             }
97 
98             PyErr_Clear();
99 
100             Py_BEGIN_ALLOW_THREADS
101             sipCpp->DrawBackground(*dc,wnd,*rect);
102             Py_END_ALLOW_THREADS
103             sipReleaseType(const_cast< ::wxRect *>(rect),sipType_wxRect,rectState);
104 
105             if (PyErr_Occurred())
106                 return 0;
107 
108             Py_INCREF(Py_None);
109             return Py_None;
110         }
111     }
112 
113     /* Raise an exception if the arguments couldn't be parsed. */
114     sipNoMethod(sipParseErr, sipName_AuiTabArt, sipName_DrawBackground, SIP_NULLPTR);
115 
116     return SIP_NULLPTR;
117 }
118 
119 
120 PyDoc_STRVAR(doc_wxAuiTabArt_DrawButton, "DrawButton(dc, wnd, in_rect, bitmap_id, button_state, orientation, out_rect)\n"
121 "\n"
122 "Draws a button.");
123 
124 extern "C" {static PyObject *meth_wxAuiTabArt_DrawButton(PyObject *, PyObject *, PyObject *);}
meth_wxAuiTabArt_DrawButton(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)125 static PyObject *meth_wxAuiTabArt_DrawButton(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
126 {
127     PyObject *sipParseErr = SIP_NULLPTR;
128     PyObject *sipOrigSelf = sipSelf;
129 
130     {
131          ::wxDC* dc;
132          ::wxWindow* wnd;
133         const  ::wxRect* in_rect;
134         int in_rectState = 0;
135         int bitmap_id;
136         int button_state;
137         int orientation;
138          ::wxRect* out_rect;
139         int out_rectState = 0;
140          ::wxAuiTabArt *sipCpp;
141 
142         static const char *sipKwdList[] = {
143             sipName_dc,
144             sipName_wnd,
145             sipName_in_rect,
146             sipName_bitmap_id,
147             sipName_button_state,
148             sipName_orientation,
149             sipName_out_rect,
150         };
151 
152         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9J8J1iiiJ0", &sipSelf, sipType_wxAuiTabArt, &sipCpp, sipType_wxDC, &dc, sipType_wxWindow, &wnd, sipType_wxRect, &in_rect, &in_rectState, &bitmap_id, &button_state, &orientation, sipType_wxRect, &out_rect, &out_rectState))
153         {
154             if (!sipOrigSelf)
155             {
156                 sipAbstractMethod(sipName_AuiTabArt, sipName_DrawButton);
157                 return SIP_NULLPTR;
158             }
159 
160             PyErr_Clear();
161 
162             Py_BEGIN_ALLOW_THREADS
163             sipCpp->DrawButton(*dc,wnd,*in_rect,bitmap_id,button_state,orientation,out_rect);
164             Py_END_ALLOW_THREADS
165             sipReleaseType(const_cast< ::wxRect *>(in_rect),sipType_wxRect,in_rectState);
166             sipReleaseType(out_rect,sipType_wxRect,out_rectState);
167 
168             if (PyErr_Occurred())
169                 return 0;
170 
171             Py_INCREF(Py_None);
172             return Py_None;
173         }
174     }
175 
176     /* Raise an exception if the arguments couldn't be parsed. */
177     sipNoMethod(sipParseErr, sipName_AuiTabArt, sipName_DrawButton, SIP_NULLPTR);
178 
179     return SIP_NULLPTR;
180 }
181 
182 
183 PyDoc_STRVAR(doc_wxAuiTabArt_DrawTab, "DrawTab(dc, wnd, page, rect, close_button_state, out_tab_rect, out_button_rect, x_extent)\n"
184 "\n"
185 "Draws a tab.");
186 
187 extern "C" {static PyObject *meth_wxAuiTabArt_DrawTab(PyObject *, PyObject *, PyObject *);}
meth_wxAuiTabArt_DrawTab(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)188 static PyObject *meth_wxAuiTabArt_DrawTab(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
189 {
190     PyObject *sipParseErr = SIP_NULLPTR;
191     PyObject *sipOrigSelf = sipSelf;
192 
193     {
194          ::wxDC* dc;
195          ::wxWindow* wnd;
196         const  ::wxAuiNotebookPage* page;
197         const  ::wxRect* rect;
198         int rectState = 0;
199         int close_button_state;
200          ::wxRect* out_tab_rect;
201         int out_tab_rectState = 0;
202          ::wxRect* out_button_rect;
203         int out_button_rectState = 0;
204         int x_extent;
205          ::wxAuiTabArt *sipCpp;
206 
207         static const char *sipKwdList[] = {
208             sipName_dc,
209             sipName_wnd,
210             sipName_page,
211             sipName_rect,
212             sipName_close_button_state,
213             sipName_out_tab_rect,
214             sipName_out_button_rect,
215         };
216 
217         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9J8J9J1iJ0J0", &sipSelf, sipType_wxAuiTabArt, &sipCpp, sipType_wxDC, &dc, sipType_wxWindow, &wnd, sipType_wxAuiNotebookPage, &page, sipType_wxRect, &rect, &rectState, &close_button_state, sipType_wxRect, &out_tab_rect, &out_tab_rectState, sipType_wxRect, &out_button_rect, &out_button_rectState))
218         {
219             if (!sipOrigSelf)
220             {
221                 sipAbstractMethod(sipName_AuiTabArt, sipName_DrawTab);
222                 return SIP_NULLPTR;
223             }
224 
225             PyErr_Clear();
226 
227             Py_BEGIN_ALLOW_THREADS
228             sipCpp->DrawTab(*dc,wnd,*page,*rect,close_button_state,out_tab_rect,out_button_rect,&x_extent);
229             Py_END_ALLOW_THREADS
230             sipReleaseType(const_cast< ::wxRect *>(rect),sipType_wxRect,rectState);
231             sipReleaseType(out_tab_rect,sipType_wxRect,out_tab_rectState);
232             sipReleaseType(out_button_rect,sipType_wxRect,out_button_rectState);
233 
234             if (PyErr_Occurred())
235                 return 0;
236 
237             return SIPLong_FromLong(x_extent);
238         }
239     }
240 
241     /* Raise an exception if the arguments couldn't be parsed. */
242     sipNoMethod(sipParseErr, sipName_AuiTabArt, sipName_DrawTab, SIP_NULLPTR);
243 
244     return SIP_NULLPTR;
245 }
246 
247 
248 PyDoc_STRVAR(doc_wxAuiTabArt_GetBestTabCtrlSize, "GetBestTabCtrlSize(, , ) -> int\n"
249 "\n"
250 "Returns the tab control size.");
251 
252 extern "C" {static PyObject *meth_wxAuiTabArt_GetBestTabCtrlSize(PyObject *, PyObject *);}
meth_wxAuiTabArt_GetBestTabCtrlSize(PyObject * sipSelf,PyObject * sipArgs)253 static PyObject *meth_wxAuiTabArt_GetBestTabCtrlSize(PyObject *sipSelf, PyObject *sipArgs)
254 {
255     PyObject *sipParseErr = SIP_NULLPTR;
256     PyObject *sipOrigSelf = sipSelf;
257 
258     {
259          ::wxWindow* a0;
260         const  ::wxAuiNotebookPageArray* a1;
261         const  ::wxSize* a2;
262         int a2State = 0;
263          ::wxAuiTabArt *sipCpp;
264 
265         if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J9J1", &sipSelf, sipType_wxAuiTabArt, &sipCpp, sipType_wxWindow, &a0, sipType_wxAuiNotebookPageArray, &a1, sipType_wxSize, &a2, &a2State))
266         {
267             int sipRes;
268 
269             if (!sipOrigSelf)
270             {
271                 sipAbstractMethod(sipName_AuiTabArt, sipName_GetBestTabCtrlSize);
272                 return SIP_NULLPTR;
273             }
274 
275             PyErr_Clear();
276 
277             Py_BEGIN_ALLOW_THREADS
278             sipRes = sipCpp->GetBestTabCtrlSize(a0,*a1,*a2);
279             Py_END_ALLOW_THREADS
280             sipReleaseType(const_cast< ::wxSize *>(a2),sipType_wxSize,a2State);
281 
282             if (PyErr_Occurred())
283                 return 0;
284 
285             return SIPLong_FromLong(sipRes);
286         }
287     }
288 
289     /* Raise an exception if the arguments couldn't be parsed. */
290     sipNoMethod(sipParseErr, sipName_AuiTabArt, sipName_GetBestTabCtrlSize, SIP_NULLPTR);
291 
292     return SIP_NULLPTR;
293 }
294 
295 
296 PyDoc_STRVAR(doc_wxAuiTabArt_GetIndentSize, "GetIndentSize() -> int\n"
297 "\n"
298 "Returns the indent size.");
299 
300 extern "C" {static PyObject *meth_wxAuiTabArt_GetIndentSize(PyObject *, PyObject *);}
meth_wxAuiTabArt_GetIndentSize(PyObject * sipSelf,PyObject * sipArgs)301 static PyObject *meth_wxAuiTabArt_GetIndentSize(PyObject *sipSelf, PyObject *sipArgs)
302 {
303     PyObject *sipParseErr = SIP_NULLPTR;
304     PyObject *sipOrigSelf = sipSelf;
305 
306     {
307          ::wxAuiTabArt *sipCpp;
308 
309         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxAuiTabArt, &sipCpp))
310         {
311             int sipRes;
312 
313             if (!sipOrigSelf)
314             {
315                 sipAbstractMethod(sipName_AuiTabArt, sipName_GetIndentSize);
316                 return SIP_NULLPTR;
317             }
318 
319             PyErr_Clear();
320 
321             Py_BEGIN_ALLOW_THREADS
322             sipRes = sipCpp->GetIndentSize();
323             Py_END_ALLOW_THREADS
324 
325             if (PyErr_Occurred())
326                 return 0;
327 
328             return SIPLong_FromLong(sipRes);
329         }
330     }
331 
332     /* Raise an exception if the arguments couldn't be parsed. */
333     sipNoMethod(sipParseErr, sipName_AuiTabArt, sipName_GetIndentSize, SIP_NULLPTR);
334 
335     return SIP_NULLPTR;
336 }
337 
338 
339 PyDoc_STRVAR(doc_wxAuiTabArt_GetTabSize, "GetTabSize(dc, wnd, caption, bitmap, active, close_button_state, x_extent) -> wx.Size\n"
340 "\n"
341 "Returns the tab size for the given caption, bitmap and state.");
342 
343 extern "C" {static PyObject *meth_wxAuiTabArt_GetTabSize(PyObject *, PyObject *, PyObject *);}
meth_wxAuiTabArt_GetTabSize(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)344 static PyObject *meth_wxAuiTabArt_GetTabSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
345 {
346     PyObject *sipParseErr = SIP_NULLPTR;
347     PyObject *sipOrigSelf = sipSelf;
348 
349     {
350          ::wxDC* dc;
351          ::wxWindow* wnd;
352         const  ::wxString* caption;
353         int captionState = 0;
354         const  ::wxBitmap* bitmap;
355         bool active;
356         int close_button_state;
357         int x_extent;
358          ::wxAuiTabArt *sipCpp;
359 
360         static const char *sipKwdList[] = {
361             sipName_dc,
362             sipName_wnd,
363             sipName_caption,
364             sipName_bitmap,
365             sipName_active,
366             sipName_close_button_state,
367         };
368 
369         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9J8J1J9bi", &sipSelf, sipType_wxAuiTabArt, &sipCpp, sipType_wxDC, &dc, sipType_wxWindow, &wnd, sipType_wxString,&caption, &captionState, sipType_wxBitmap, &bitmap, &active, &close_button_state))
370         {
371              ::wxSize*sipRes;
372 
373             if (!sipOrigSelf)
374             {
375                 sipAbstractMethod(sipName_AuiTabArt, sipName_GetTabSize);
376                 return SIP_NULLPTR;
377             }
378 
379             PyErr_Clear();
380 
381             Py_BEGIN_ALLOW_THREADS
382             sipRes = new  ::wxSize(sipCpp->GetTabSize(*dc,wnd,*caption,*bitmap,active,close_button_state,&x_extent));
383             Py_END_ALLOW_THREADS
384             sipReleaseType(const_cast< ::wxString *>(caption),sipType_wxString,captionState);
385 
386             if (PyErr_Occurred())
387                 return 0;
388 
389             PyObject *sipResObj = sipConvertFromNewType(sipRes,sipType_wxSize,SIP_NULLPTR);
390             return sipBuildResult(0,"(Ri)",sipResObj,x_extent);
391         }
392     }
393 
394     /* Raise an exception if the arguments couldn't be parsed. */
395     sipNoMethod(sipParseErr, sipName_AuiTabArt, sipName_GetTabSize, SIP_NULLPTR);
396 
397     return SIP_NULLPTR;
398 }
399 
400 
401 PyDoc_STRVAR(doc_wxAuiTabArt_SetFlags, "SetFlags(flags)\n"
402 "\n"
403 "Sets flags.");
404 
405 extern "C" {static PyObject *meth_wxAuiTabArt_SetFlags(PyObject *, PyObject *, PyObject *);}
meth_wxAuiTabArt_SetFlags(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)406 static PyObject *meth_wxAuiTabArt_SetFlags(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
407 {
408     PyObject *sipParseErr = SIP_NULLPTR;
409     PyObject *sipOrigSelf = sipSelf;
410 
411     {
412         uint flags;
413          ::wxAuiTabArt *sipCpp;
414 
415         static const char *sipKwdList[] = {
416             sipName_flags,
417         };
418 
419         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bu", &sipSelf, sipType_wxAuiTabArt, &sipCpp, &flags))
420         {
421             if (!sipOrigSelf)
422             {
423                 sipAbstractMethod(sipName_AuiTabArt, sipName_SetFlags);
424                 return SIP_NULLPTR;
425             }
426 
427             PyErr_Clear();
428 
429             Py_BEGIN_ALLOW_THREADS
430             sipCpp->SetFlags(flags);
431             Py_END_ALLOW_THREADS
432 
433             if (PyErr_Occurred())
434                 return 0;
435 
436             Py_INCREF(Py_None);
437             return Py_None;
438         }
439     }
440 
441     /* Raise an exception if the arguments couldn't be parsed. */
442     sipNoMethod(sipParseErr, sipName_AuiTabArt, sipName_SetFlags, SIP_NULLPTR);
443 
444     return SIP_NULLPTR;
445 }
446 
447 
448 PyDoc_STRVAR(doc_wxAuiTabArt_SetMeasuringFont, "SetMeasuringFont(font)\n"
449 "\n"
450 "Sets the font used for calculating measurements.");
451 
452 extern "C" {static PyObject *meth_wxAuiTabArt_SetMeasuringFont(PyObject *, PyObject *, PyObject *);}
meth_wxAuiTabArt_SetMeasuringFont(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)453 static PyObject *meth_wxAuiTabArt_SetMeasuringFont(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
454 {
455     PyObject *sipParseErr = SIP_NULLPTR;
456     PyObject *sipOrigSelf = sipSelf;
457 
458     {
459         const  ::wxFont* font;
460          ::wxAuiTabArt *sipCpp;
461 
462         static const char *sipKwdList[] = {
463             sipName_font,
464         };
465 
466         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxAuiTabArt, &sipCpp, sipType_wxFont, &font))
467         {
468             if (!sipOrigSelf)
469             {
470                 sipAbstractMethod(sipName_AuiTabArt, sipName_SetMeasuringFont);
471                 return SIP_NULLPTR;
472             }
473 
474             PyErr_Clear();
475 
476             Py_BEGIN_ALLOW_THREADS
477             sipCpp->SetMeasuringFont(*font);
478             Py_END_ALLOW_THREADS
479 
480             if (PyErr_Occurred())
481                 return 0;
482 
483             Py_INCREF(Py_None);
484             return Py_None;
485         }
486     }
487 
488     /* Raise an exception if the arguments couldn't be parsed. */
489     sipNoMethod(sipParseErr, sipName_AuiTabArt, sipName_SetMeasuringFont, SIP_NULLPTR);
490 
491     return SIP_NULLPTR;
492 }
493 
494 
495 PyDoc_STRVAR(doc_wxAuiTabArt_SetNormalFont, "SetNormalFont(font)\n"
496 "\n"
497 "Sets the normal font for drawing labels.");
498 
499 extern "C" {static PyObject *meth_wxAuiTabArt_SetNormalFont(PyObject *, PyObject *, PyObject *);}
meth_wxAuiTabArt_SetNormalFont(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)500 static PyObject *meth_wxAuiTabArt_SetNormalFont(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
501 {
502     PyObject *sipParseErr = SIP_NULLPTR;
503     PyObject *sipOrigSelf = sipSelf;
504 
505     {
506         const  ::wxFont* font;
507          ::wxAuiTabArt *sipCpp;
508 
509         static const char *sipKwdList[] = {
510             sipName_font,
511         };
512 
513         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxAuiTabArt, &sipCpp, sipType_wxFont, &font))
514         {
515             if (!sipOrigSelf)
516             {
517                 sipAbstractMethod(sipName_AuiTabArt, sipName_SetNormalFont);
518                 return SIP_NULLPTR;
519             }
520 
521             PyErr_Clear();
522 
523             Py_BEGIN_ALLOW_THREADS
524             sipCpp->SetNormalFont(*font);
525             Py_END_ALLOW_THREADS
526 
527             if (PyErr_Occurred())
528                 return 0;
529 
530             Py_INCREF(Py_None);
531             return Py_None;
532         }
533     }
534 
535     /* Raise an exception if the arguments couldn't be parsed. */
536     sipNoMethod(sipParseErr, sipName_AuiTabArt, sipName_SetNormalFont, SIP_NULLPTR);
537 
538     return SIP_NULLPTR;
539 }
540 
541 
542 PyDoc_STRVAR(doc_wxAuiTabArt_SetSelectedFont, "SetSelectedFont(font)\n"
543 "\n"
544 "Sets the font for drawing text for selected UI elements.");
545 
546 extern "C" {static PyObject *meth_wxAuiTabArt_SetSelectedFont(PyObject *, PyObject *, PyObject *);}
meth_wxAuiTabArt_SetSelectedFont(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)547 static PyObject *meth_wxAuiTabArt_SetSelectedFont(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
548 {
549     PyObject *sipParseErr = SIP_NULLPTR;
550     PyObject *sipOrigSelf = sipSelf;
551 
552     {
553         const  ::wxFont* font;
554          ::wxAuiTabArt *sipCpp;
555 
556         static const char *sipKwdList[] = {
557             sipName_font,
558         };
559 
560         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxAuiTabArt, &sipCpp, sipType_wxFont, &font))
561         {
562             if (!sipOrigSelf)
563             {
564                 sipAbstractMethod(sipName_AuiTabArt, sipName_SetSelectedFont);
565                 return SIP_NULLPTR;
566             }
567 
568             PyErr_Clear();
569 
570             Py_BEGIN_ALLOW_THREADS
571             sipCpp->SetSelectedFont(*font);
572             Py_END_ALLOW_THREADS
573 
574             if (PyErr_Occurred())
575                 return 0;
576 
577             Py_INCREF(Py_None);
578             return Py_None;
579         }
580     }
581 
582     /* Raise an exception if the arguments couldn't be parsed. */
583     sipNoMethod(sipParseErr, sipName_AuiTabArt, sipName_SetSelectedFont, SIP_NULLPTR);
584 
585     return SIP_NULLPTR;
586 }
587 
588 
589 PyDoc_STRVAR(doc_wxAuiTabArt_SetColour, "SetColour(colour)\n"
590 "\n"
591 "Sets the colour of the inactive tabs.");
592 
593 extern "C" {static PyObject *meth_wxAuiTabArt_SetColour(PyObject *, PyObject *, PyObject *);}
meth_wxAuiTabArt_SetColour(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)594 static PyObject *meth_wxAuiTabArt_SetColour(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
595 {
596     PyObject *sipParseErr = SIP_NULLPTR;
597     PyObject *sipOrigSelf = sipSelf;
598 
599     {
600         const  ::wxColour* colour;
601         int colourState = 0;
602          ::wxAuiTabArt *sipCpp;
603 
604         static const char *sipKwdList[] = {
605             sipName_colour,
606         };
607 
608         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxAuiTabArt, &sipCpp, sipType_wxColour, &colour, &colourState))
609         {
610             if (!sipOrigSelf)
611             {
612                 sipAbstractMethod(sipName_AuiTabArt, sipName_SetColour);
613                 return SIP_NULLPTR;
614             }
615 
616             PyErr_Clear();
617 
618             Py_BEGIN_ALLOW_THREADS
619             sipCpp->SetColour(*colour);
620             Py_END_ALLOW_THREADS
621             sipReleaseType(const_cast< ::wxColour *>(colour),sipType_wxColour,colourState);
622 
623             if (PyErr_Occurred())
624                 return 0;
625 
626             Py_INCREF(Py_None);
627             return Py_None;
628         }
629     }
630 
631     /* Raise an exception if the arguments couldn't be parsed. */
632     sipNoMethod(sipParseErr, sipName_AuiTabArt, sipName_SetColour, SIP_NULLPTR);
633 
634     return SIP_NULLPTR;
635 }
636 
637 
638 PyDoc_STRVAR(doc_wxAuiTabArt_SetActiveColour, "SetActiveColour(colour)\n"
639 "\n"
640 "Sets the colour of the selected tab.");
641 
642 extern "C" {static PyObject *meth_wxAuiTabArt_SetActiveColour(PyObject *, PyObject *, PyObject *);}
meth_wxAuiTabArt_SetActiveColour(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)643 static PyObject *meth_wxAuiTabArt_SetActiveColour(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
644 {
645     PyObject *sipParseErr = SIP_NULLPTR;
646     PyObject *sipOrigSelf = sipSelf;
647 
648     {
649         const  ::wxColour* colour;
650         int colourState = 0;
651          ::wxAuiTabArt *sipCpp;
652 
653         static const char *sipKwdList[] = {
654             sipName_colour,
655         };
656 
657         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxAuiTabArt, &sipCpp, sipType_wxColour, &colour, &colourState))
658         {
659             if (!sipOrigSelf)
660             {
661                 sipAbstractMethod(sipName_AuiTabArt, sipName_SetActiveColour);
662                 return SIP_NULLPTR;
663             }
664 
665             PyErr_Clear();
666 
667             Py_BEGIN_ALLOW_THREADS
668             sipCpp->SetActiveColour(*colour);
669             Py_END_ALLOW_THREADS
670             sipReleaseType(const_cast< ::wxColour *>(colour),sipType_wxColour,colourState);
671 
672             if (PyErr_Occurred())
673                 return 0;
674 
675             Py_INCREF(Py_None);
676             return Py_None;
677         }
678     }
679 
680     /* Raise an exception if the arguments couldn't be parsed. */
681     sipNoMethod(sipParseErr, sipName_AuiTabArt, sipName_SetActiveColour, SIP_NULLPTR);
682 
683     return SIP_NULLPTR;
684 }
685 
686 
687 PyDoc_STRVAR(doc_wxAuiTabArt_SetSizingInfo, "SetSizingInfo(tab_ctrl_size, tab_count)\n"
688 "\n"
689 "Sets sizing information.");
690 
691 extern "C" {static PyObject *meth_wxAuiTabArt_SetSizingInfo(PyObject *, PyObject *, PyObject *);}
meth_wxAuiTabArt_SetSizingInfo(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)692 static PyObject *meth_wxAuiTabArt_SetSizingInfo(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
693 {
694     PyObject *sipParseErr = SIP_NULLPTR;
695     PyObject *sipOrigSelf = sipSelf;
696 
697     {
698         const  ::wxSize* tab_ctrl_size;
699         int tab_ctrl_sizeState = 0;
700         size_t tab_count;
701          ::wxAuiTabArt *sipCpp;
702 
703         static const char *sipKwdList[] = {
704             sipName_tab_ctrl_size,
705             sipName_tab_count,
706         };
707 
708         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1=", &sipSelf, sipType_wxAuiTabArt, &sipCpp, sipType_wxSize, &tab_ctrl_size, &tab_ctrl_sizeState, &tab_count))
709         {
710             if (!sipOrigSelf)
711             {
712                 sipAbstractMethod(sipName_AuiTabArt, sipName_SetSizingInfo);
713                 return SIP_NULLPTR;
714             }
715 
716             PyErr_Clear();
717 
718             Py_BEGIN_ALLOW_THREADS
719             sipCpp->SetSizingInfo(*tab_ctrl_size,tab_count);
720             Py_END_ALLOW_THREADS
721             sipReleaseType(const_cast< ::wxSize *>(tab_ctrl_size),sipType_wxSize,tab_ctrl_sizeState);
722 
723             if (PyErr_Occurred())
724                 return 0;
725 
726             Py_INCREF(Py_None);
727             return Py_None;
728         }
729     }
730 
731     /* Raise an exception if the arguments couldn't be parsed. */
732     sipNoMethod(sipParseErr, sipName_AuiTabArt, sipName_SetSizingInfo, SIP_NULLPTR);
733 
734     return SIP_NULLPTR;
735 }
736 
737 
738 /* Call the instance's destructor. */
739 extern "C" {static void release_wxAuiTabArt(void *, int);}
release_wxAuiTabArt(void * sipCppV,int)740 static void release_wxAuiTabArt(void *sipCppV, int)
741 {
742     Py_BEGIN_ALLOW_THREADS
743 
744     delete reinterpret_cast< ::wxAuiTabArt *>(sipCppV);
745 
746     Py_END_ALLOW_THREADS
747 }
748 
749 
750 extern "C" {static void dealloc_wxAuiTabArt(sipSimpleWrapper *);}
dealloc_wxAuiTabArt(sipSimpleWrapper * sipSelf)751 static void dealloc_wxAuiTabArt(sipSimpleWrapper *sipSelf)
752 {
753     if (sipIsOwnedByPython(sipSelf))
754     {
755         release_wxAuiTabArt(sipGetAddress(sipSelf), 0);
756     }
757 }
758 
759 
760 static PyMethodDef methods_wxAuiTabArt[] = {
761     {SIP_MLNAME_CAST(sipName_Clone), meth_wxAuiTabArt_Clone, METH_VARARGS, SIP_MLDOC_CAST(doc_wxAuiTabArt_Clone)},
762     {SIP_MLNAME_CAST(sipName_DrawBackground), SIP_MLMETH_CAST(meth_wxAuiTabArt_DrawBackground), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxAuiTabArt_DrawBackground)},
763     {SIP_MLNAME_CAST(sipName_DrawButton), SIP_MLMETH_CAST(meth_wxAuiTabArt_DrawButton), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxAuiTabArt_DrawButton)},
764     {SIP_MLNAME_CAST(sipName_DrawTab), SIP_MLMETH_CAST(meth_wxAuiTabArt_DrawTab), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxAuiTabArt_DrawTab)},
765     {SIP_MLNAME_CAST(sipName_GetBestTabCtrlSize), meth_wxAuiTabArt_GetBestTabCtrlSize, METH_VARARGS, SIP_MLDOC_CAST(doc_wxAuiTabArt_GetBestTabCtrlSize)},
766     {SIP_MLNAME_CAST(sipName_GetIndentSize), meth_wxAuiTabArt_GetIndentSize, METH_VARARGS, SIP_MLDOC_CAST(doc_wxAuiTabArt_GetIndentSize)},
767     {SIP_MLNAME_CAST(sipName_GetTabSize), SIP_MLMETH_CAST(meth_wxAuiTabArt_GetTabSize), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxAuiTabArt_GetTabSize)},
768     {SIP_MLNAME_CAST(sipName_SetActiveColour), SIP_MLMETH_CAST(meth_wxAuiTabArt_SetActiveColour), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxAuiTabArt_SetActiveColour)},
769     {SIP_MLNAME_CAST(sipName_SetColour), SIP_MLMETH_CAST(meth_wxAuiTabArt_SetColour), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxAuiTabArt_SetColour)},
770     {SIP_MLNAME_CAST(sipName_SetFlags), SIP_MLMETH_CAST(meth_wxAuiTabArt_SetFlags), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxAuiTabArt_SetFlags)},
771     {SIP_MLNAME_CAST(sipName_SetMeasuringFont), SIP_MLMETH_CAST(meth_wxAuiTabArt_SetMeasuringFont), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxAuiTabArt_SetMeasuringFont)},
772     {SIP_MLNAME_CAST(sipName_SetNormalFont), SIP_MLMETH_CAST(meth_wxAuiTabArt_SetNormalFont), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxAuiTabArt_SetNormalFont)},
773     {SIP_MLNAME_CAST(sipName_SetSelectedFont), SIP_MLMETH_CAST(meth_wxAuiTabArt_SetSelectedFont), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxAuiTabArt_SetSelectedFont)},
774     {SIP_MLNAME_CAST(sipName_SetSizingInfo), SIP_MLMETH_CAST(meth_wxAuiTabArt_SetSizingInfo), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxAuiTabArt_SetSizingInfo)}
775 };
776 
777 sipVariableDef variables_wxAuiTabArt[] = {
778     {PropertyVariable, sipName_IndentSize, &methods_wxAuiTabArt[5], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
779 };
780 
781 PyDoc_STRVAR(doc_wxAuiTabArt, "AuiTabArt()\n"
782 "\n"
783 "Tab art provider defines all the drawing functions used by\n"
784 "wxAuiNotebook.");
785 
786 
787 sipClassTypeDef sipTypeDef__aui_wxAuiTabArt = {
788     {
789         -1,
790         SIP_NULLPTR,
791         SIP_NULLPTR,
792         SIP_TYPE_ABSTRACT|SIP_TYPE_CLASS,
793         sipNameNr_wxAuiTabArt,
794         {SIP_NULLPTR},
795         SIP_NULLPTR
796     },
797     {
798         sipNameNr_AuiTabArt,
799         {0, 0, 1},
800         14, methods_wxAuiTabArt,
801         0, SIP_NULLPTR,
802         1, variables_wxAuiTabArt,
803         {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
804     },
805     doc_wxAuiTabArt,
806     -1,
807     -1,
808     SIP_NULLPTR,
809     SIP_NULLPTR,
810     SIP_NULLPTR,
811     SIP_NULLPTR,
812     SIP_NULLPTR,
813 #if PY_MAJOR_VERSION >= 3
814     SIP_NULLPTR,
815     SIP_NULLPTR,
816 #else
817     SIP_NULLPTR,
818     SIP_NULLPTR,
819     SIP_NULLPTR,
820     SIP_NULLPTR,
821 #endif
822     dealloc_wxAuiTabArt,
823     SIP_NULLPTR,
824     SIP_NULLPTR,
825     SIP_NULLPTR,
826     release_wxAuiTabArt,
827     SIP_NULLPTR,
828     SIP_NULLPTR,
829     SIP_NULLPTR,
830     SIP_NULLPTR,
831     SIP_NULLPTR,
832     SIP_NULLPTR,
833     SIP_NULLPTR
834 };
835