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_ribbon.h"
11 
12         #include <wx/ribbon/panel.h>
13 
14         #include <wx/window.h>
15         #include <wx/bitmap.h>
16         #include <wx/gdicmn.h>
17         #include <wx/gdicmn.h>
18         #include <wx/window.h>
19         #include <wx/event.h>
20         #include <wx/validate.h>
21         #include <wx/ribbon/art.h>
22         #include <wx/ribbon/bar.h>
23         #include <wx/dc.h>
24         #include <wx/event.h>
25         #include <wx/event.h>
26     #include <wx/setup.h>
27     #include <wxPython/wxpy_api.h>
28         #include <wx/event.h>
29         #include <wx/cursor.h>
30         #include <wx/caret.h>
31         #include <wx/layout.h>
32         #include <wx/sizer.h>
33         #include <wx/dnd.h>
34         #include <wx/access.h>
35         #include <wx/accel.h>
36         #include <wx/menu.h>
37         #include <wx/tooltip.h>
38         #include <wx/event.h>
39         #include <wx/gdicmn.h>
40         #include <wx/event.h>
41         #include <wx/event.h>
42         #include <wx/palette.h>
43         #include <wx/colour.h>
44         #include <wx/font.h>
45         #include <wx/region.h>
46 
47         #include <wx/eventfilter.h>
48         #include <wx/object.h>
49         #include <wx/object.h>
50         #include <wx/object.h>
51 
52 
53 class sipwxRibbonPanel : public  ::wxRibbonPanel
54 {
55 public:
56     sipwxRibbonPanel();
57     sipwxRibbonPanel( ::wxWindow*, ::wxWindowID,const  ::wxString&,const  ::wxBitmap&,const  ::wxPoint&,const  ::wxSize&,long);
58     virtual ~sipwxRibbonPanel();
59 
60     /*
61      * There is a public method for every protected method visible from
62      * this class.
63      */
64     void sipProtect_SendDestroyEvent();
65      ::wxSize sipProtect_DoGetNextSmallerSize( ::wxOrientation, ::wxSize) const;
66      ::wxSize sipProtect_DoGetNextLargerSize( ::wxOrientation, ::wxSize) const;
67     bool sipProtectVirt_ProcessEvent(bool, ::wxEvent&);
68     void sipProtectVirt_DoEnable(bool,bool);
69     void sipProtectVirt_DoGetPosition(bool,int*,int*) const;
70     void sipProtectVirt_DoGetSize(bool,int*,int*) const;
71     void sipProtectVirt_DoGetClientSize(bool,int*,int*) const;
72      ::wxSize sipProtectVirt_DoGetBestSize(bool) const;
73      ::wxSize sipProtectVirt_DoGetBestClientSize(bool) const;
74     void sipProtectVirt_DoSetSize(bool,int,int,int,int,int);
75     void sipProtectVirt_DoSetClientSize(bool,int,int);
76     void sipProtectVirt_DoSetSizeHints(bool,int,int,int,int,int,int);
77      ::wxSize sipProtectVirt_DoGetBorderSize(bool) const;
78     void sipProtectVirt_DoMoveWindow(bool,int,int,int,int);
79     void sipProtectVirt_DoSetWindowVariant(bool, ::wxWindowVariant);
80      ::wxBorder sipProtectVirt_GetDefaultBorder(bool) const;
81      ::wxBorder sipProtectVirt_GetDefaultBorderForControl(bool) const;
82     void sipProtectVirt_DoFreeze(bool);
83     void sipProtectVirt_DoThaw(bool);
84     bool sipProtectVirt_HasTransparentBackground(bool);
85     bool sipProtectVirt_TryBefore(bool, ::wxEvent&);
86     bool sipProtectVirt_TryAfter(bool, ::wxEvent&);
87 
88     /*
89      * There is a protected method for every virtual method visible from
90      * this class.
91      */
92 protected:
93     void RemoveChild( ::wxWindowBase*) SIP_OVERRIDE;
94     void AddChild( ::wxWindowBase*) SIP_OVERRIDE;
95     bool ProcessEvent( ::wxEvent&) SIP_OVERRIDE;
96     bool TryBefore( ::wxEvent&) SIP_OVERRIDE;
97     bool TryAfter( ::wxEvent&) SIP_OVERRIDE;
98     bool AcceptsFocus() const SIP_OVERRIDE;
99     bool AcceptsFocusFromKeyboard() const SIP_OVERRIDE;
100     bool AcceptsFocusRecursively() const SIP_OVERRIDE;
101     void SetCanFocus(bool) SIP_OVERRIDE;
102     bool InformFirstDirection(int,int,int) SIP_OVERRIDE;
103      ::wxPoint GetClientAreaOrigin() const SIP_OVERRIDE;
104     bool HasTransparentBackground() SIP_OVERRIDE;
105     bool ShouldInheritColours() const SIP_OVERRIDE;
106      ::wxValidator* GetValidator() SIP_OVERRIDE;
107     void SetValidator(const  ::wxValidator&) SIP_OVERRIDE;
108     bool TransferDataFromWindow() SIP_OVERRIDE;
109     bool TransferDataToWindow() SIP_OVERRIDE;
110     bool Validate() SIP_OVERRIDE;
111     bool Destroy() SIP_OVERRIDE;
112     void InheritAttributes() SIP_OVERRIDE;
113     void InitDialog() SIP_OVERRIDE;
114     void OnInternalIdle() SIP_OVERRIDE;
115      ::wxWindow* GetMainWindowOfCompositeControl() SIP_OVERRIDE;
116     void DoEnable(bool) SIP_OVERRIDE;
117     void DoGetPosition(int*,int*) const SIP_OVERRIDE;
118     void DoGetSize(int*,int*) const SIP_OVERRIDE;
119     void DoGetClientSize(int*,int*) const SIP_OVERRIDE;
120     void DoSetSize(int,int,int,int,int) SIP_OVERRIDE;
121     void DoSetClientSize(int,int) SIP_OVERRIDE;
122     void DoSetSizeHints(int,int,int,int,int,int) SIP_OVERRIDE;
123      ::wxSize DoGetBorderSize() const SIP_OVERRIDE;
124     void DoMoveWindow(int,int,int,int) SIP_OVERRIDE;
125     void DoSetWindowVariant( ::wxWindowVariant) SIP_OVERRIDE;
126      ::wxBorder GetDefaultBorder() const SIP_OVERRIDE;
127      ::wxBorder GetDefaultBorderForControl() const SIP_OVERRIDE;
128     void DoFreeze() SIP_OVERRIDE;
129     void DoThaw() SIP_OVERRIDE;
130      ::wxSize DoGetBestSize() const SIP_OVERRIDE;
131      ::wxSize DoGetBestClientSize() const SIP_OVERRIDE;
132 
133 public:
134     sipSimpleWrapper *sipPySelf;
135 
136 private:
137     sipwxRibbonPanel(const sipwxRibbonPanel &);
138     sipwxRibbonPanel &operator = (const sipwxRibbonPanel &);
139 
140     char sipPyMethods[39];
141 };
142 
sipwxRibbonPanel()143 sipwxRibbonPanel::sipwxRibbonPanel():  ::wxRibbonPanel(), sipPySelf(SIP_NULLPTR)
144 {
145     memset(sipPyMethods, 0, sizeof (sipPyMethods));
146 }
147 
sipwxRibbonPanel(::wxWindow * parent,::wxWindowID id,const::wxString & label,const::wxBitmap & minimised_icon,const::wxPoint & pos,const::wxSize & size,long style)148 sipwxRibbonPanel::sipwxRibbonPanel( ::wxWindow*parent, ::wxWindowID id,const  ::wxString& label,const  ::wxBitmap& minimised_icon,const  ::wxPoint& pos,const  ::wxSize& size,long style):  ::wxRibbonPanel(parent,id,label,minimised_icon,pos,size,style), sipPySelf(SIP_NULLPTR)
149 {
150     memset(sipPyMethods, 0, sizeof (sipPyMethods));
151 }
152 
~sipwxRibbonPanel()153 sipwxRibbonPanel::~sipwxRibbonPanel()
154 {
155     sipInstanceDestroyedEx(&sipPySelf);
156 }
157 
RemoveChild(::wxWindowBase * child)158 void sipwxRibbonPanel::RemoveChild( ::wxWindowBase*child)
159 {
160     sip_gilstate_t sipGILState;
161     PyObject *sipMeth;
162 
163     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,SIP_NULLPTR,sipName_RemoveChild);
164 
165     if (!sipMeth)
166     {
167          ::wxRibbonPanel::RemoveChild(child);
168         return;
169     }
170 
171     extern void sipVH__ribbon_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::wxWindowBase*);
172 
173     sipVH__ribbon_0(sipGILState, 0, sipPySelf, sipMeth, child);
174 }
175 
AddChild(::wxWindowBase * child)176 void sipwxRibbonPanel::AddChild( ::wxWindowBase*child)
177 {
178     sip_gilstate_t sipGILState;
179     PyObject *sipMeth;
180 
181     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,SIP_NULLPTR,sipName_AddChild);
182 
183     if (!sipMeth)
184     {
185          ::wxRibbonPanel::AddChild(child);
186         return;
187     }
188 
189     extern void sipVH__ribbon_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::wxWindowBase*);
190 
191     sipVH__ribbon_0(sipGILState, 0, sipPySelf, sipMeth, child);
192 }
193 
ProcessEvent(::wxEvent & event)194 bool sipwxRibbonPanel::ProcessEvent( ::wxEvent& event)
195 {
196     sip_gilstate_t sipGILState;
197     PyObject *sipMeth;
198 
199     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,SIP_NULLPTR,sipName_ProcessEvent);
200 
201     if (!sipMeth)
202         return  ::wxRibbonPanel::ProcessEvent(event);
203 
204     extern bool sipVH__ribbon_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::wxEvent&);
205 
206     return sipVH__ribbon_1(sipGILState, 0, sipPySelf, sipMeth, event);
207 }
208 
TryBefore(::wxEvent & event)209 bool sipwxRibbonPanel::TryBefore( ::wxEvent& event)
210 {
211     sip_gilstate_t sipGILState;
212     PyObject *sipMeth;
213 
214     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,SIP_NULLPTR,sipName_TryBefore);
215 
216     if (!sipMeth)
217         return  ::wxRibbonPanel::TryBefore(event);
218 
219     extern bool sipVH__ribbon_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::wxEvent&);
220 
221     return sipVH__ribbon_1(sipGILState, 0, sipPySelf, sipMeth, event);
222 }
223 
TryAfter(::wxEvent & event)224 bool sipwxRibbonPanel::TryAfter( ::wxEvent& event)
225 {
226     sip_gilstate_t sipGILState;
227     PyObject *sipMeth;
228 
229     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,SIP_NULLPTR,sipName_TryAfter);
230 
231     if (!sipMeth)
232         return  ::wxRibbonPanel::TryAfter(event);
233 
234     extern bool sipVH__ribbon_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::wxEvent&);
235 
236     return sipVH__ribbon_1(sipGILState, 0, sipPySelf, sipMeth, event);
237 }
238 
AcceptsFocus() const239 bool sipwxRibbonPanel::AcceptsFocus() const
240 {
241     sip_gilstate_t sipGILState;
242     PyObject *sipMeth;
243 
244     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[5]),sipPySelf,SIP_NULLPTR,sipName_AcceptsFocus);
245 
246     if (!sipMeth)
247         return  ::wxRibbonPanel::AcceptsFocus();
248 
249     extern bool sipVH__ribbon_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
250 
251     return sipVH__ribbon_2(sipGILState, 0, sipPySelf, sipMeth);
252 }
253 
AcceptsFocusFromKeyboard() const254 bool sipwxRibbonPanel::AcceptsFocusFromKeyboard() const
255 {
256     sip_gilstate_t sipGILState;
257     PyObject *sipMeth;
258 
259     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[6]),sipPySelf,SIP_NULLPTR,sipName_AcceptsFocusFromKeyboard);
260 
261     if (!sipMeth)
262         return  ::wxRibbonPanel::AcceptsFocusFromKeyboard();
263 
264     extern bool sipVH__ribbon_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
265 
266     return sipVH__ribbon_2(sipGILState, 0, sipPySelf, sipMeth);
267 }
268 
AcceptsFocusRecursively() const269 bool sipwxRibbonPanel::AcceptsFocusRecursively() const
270 {
271     sip_gilstate_t sipGILState;
272     PyObject *sipMeth;
273 
274     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[7]),sipPySelf,SIP_NULLPTR,sipName_AcceptsFocusRecursively);
275 
276     if (!sipMeth)
277         return  ::wxRibbonPanel::AcceptsFocusRecursively();
278 
279     extern bool sipVH__ribbon_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
280 
281     return sipVH__ribbon_2(sipGILState, 0, sipPySelf, sipMeth);
282 }
283 
SetCanFocus(bool canFocus)284 void sipwxRibbonPanel::SetCanFocus(bool canFocus)
285 {
286     sip_gilstate_t sipGILState;
287     PyObject *sipMeth;
288 
289     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,SIP_NULLPTR,sipName_SetCanFocus);
290 
291     if (!sipMeth)
292     {
293          ::wxRibbonPanel::SetCanFocus(canFocus);
294         return;
295     }
296 
297     extern void sipVH__ribbon_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);
298 
299     sipVH__ribbon_3(sipGILState, 0, sipPySelf, sipMeth, canFocus);
300 }
301 
InformFirstDirection(int direction,int size,int availableOtherDir)302 bool sipwxRibbonPanel::InformFirstDirection(int direction,int size,int availableOtherDir)
303 {
304     sip_gilstate_t sipGILState;
305     PyObject *sipMeth;
306 
307     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,SIP_NULLPTR,sipName_InformFirstDirection);
308 
309     if (!sipMeth)
310         return  ::wxRibbonPanel::InformFirstDirection(direction,size,availableOtherDir);
311 
312     extern bool sipVH__ribbon_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,int);
313 
314     return sipVH__ribbon_4(sipGILState, 0, sipPySelf, sipMeth, direction, size, availableOtherDir);
315 }
316 
GetClientAreaOrigin() const317  ::wxPoint sipwxRibbonPanel::GetClientAreaOrigin() const
318 {
319     sip_gilstate_t sipGILState;
320     PyObject *sipMeth;
321 
322     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[10]),sipPySelf,SIP_NULLPTR,sipName_GetClientAreaOrigin);
323 
324     if (!sipMeth)
325         return  ::wxRibbonPanel::GetClientAreaOrigin();
326 
327     extern  ::wxPoint sipVH__ribbon_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
328 
329     return sipVH__ribbon_5(sipGILState, 0, sipPySelf, sipMeth);
330 }
331 
HasTransparentBackground()332 bool sipwxRibbonPanel::HasTransparentBackground()
333 {
334     sip_gilstate_t sipGILState;
335     PyObject *sipMeth;
336 
337     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,SIP_NULLPTR,sipName_HasTransparentBackground);
338 
339     if (!sipMeth)
340         return  ::wxRibbonPanel::HasTransparentBackground();
341 
342     extern bool sipVH__ribbon_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
343 
344     return sipVH__ribbon_2(sipGILState, 0, sipPySelf, sipMeth);
345 }
346 
ShouldInheritColours() const347 bool sipwxRibbonPanel::ShouldInheritColours() const
348 {
349     sip_gilstate_t sipGILState;
350     PyObject *sipMeth;
351 
352     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[12]),sipPySelf,SIP_NULLPTR,sipName_ShouldInheritColours);
353 
354     if (!sipMeth)
355         return  ::wxRibbonPanel::ShouldInheritColours();
356 
357     extern bool sipVH__ribbon_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
358 
359     return sipVH__ribbon_2(sipGILState, 0, sipPySelf, sipMeth);
360 }
361 
GetValidator()362  ::wxValidator* sipwxRibbonPanel::GetValidator()
363 {
364     sip_gilstate_t sipGILState;
365     PyObject *sipMeth;
366 
367     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,SIP_NULLPTR,sipName_GetValidator);
368 
369     if (!sipMeth)
370         return  ::wxRibbonPanel::GetValidator();
371 
372     extern  ::wxValidator* sipVH__ribbon_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
373 
374     return sipVH__ribbon_6(sipGILState, 0, sipPySelf, sipMeth);
375 }
376 
SetValidator(const::wxValidator & validator)377 void sipwxRibbonPanel::SetValidator(const  ::wxValidator& validator)
378 {
379     sip_gilstate_t sipGILState;
380     PyObject *sipMeth;
381 
382     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,SIP_NULLPTR,sipName_SetValidator);
383 
384     if (!sipMeth)
385     {
386          ::wxRibbonPanel::SetValidator(validator);
387         return;
388     }
389 
390     extern void sipVH__ribbon_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::wxValidator&);
391 
392     sipVH__ribbon_7(sipGILState, 0, sipPySelf, sipMeth, validator);
393 }
394 
TransferDataFromWindow()395 bool sipwxRibbonPanel::TransferDataFromWindow()
396 {
397     sip_gilstate_t sipGILState;
398     PyObject *sipMeth;
399 
400     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,SIP_NULLPTR,sipName_TransferDataFromWindow);
401 
402     if (!sipMeth)
403         return  ::wxRibbonPanel::TransferDataFromWindow();
404 
405     extern bool sipVH__ribbon_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
406 
407     return sipVH__ribbon_2(sipGILState, 0, sipPySelf, sipMeth);
408 }
409 
TransferDataToWindow()410 bool sipwxRibbonPanel::TransferDataToWindow()
411 {
412     sip_gilstate_t sipGILState;
413     PyObject *sipMeth;
414 
415     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,SIP_NULLPTR,sipName_TransferDataToWindow);
416 
417     if (!sipMeth)
418         return  ::wxRibbonPanel::TransferDataToWindow();
419 
420     extern bool sipVH__ribbon_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
421 
422     return sipVH__ribbon_2(sipGILState, 0, sipPySelf, sipMeth);
423 }
424 
Validate()425 bool sipwxRibbonPanel::Validate()
426 {
427     sip_gilstate_t sipGILState;
428     PyObject *sipMeth;
429 
430     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,SIP_NULLPTR,sipName_Validate);
431 
432     if (!sipMeth)
433         return  ::wxRibbonPanel::Validate();
434 
435     extern bool sipVH__ribbon_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
436 
437     return sipVH__ribbon_2(sipGILState, 0, sipPySelf, sipMeth);
438 }
439 
Destroy()440 bool sipwxRibbonPanel::Destroy()
441 {
442     sip_gilstate_t sipGILState;
443     PyObject *sipMeth;
444 
445     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,SIP_NULLPTR,sipName_Destroy);
446 
447     if (!sipMeth)
448         return  ::wxRibbonPanel::Destroy();
449 
450     extern bool sipVH__ribbon_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
451 
452     return sipVH__ribbon_2(sipGILState, 0, sipPySelf, sipMeth);
453 }
454 
InheritAttributes()455 void sipwxRibbonPanel::InheritAttributes()
456 {
457     sip_gilstate_t sipGILState;
458     PyObject *sipMeth;
459 
460     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,SIP_NULLPTR,sipName_InheritAttributes);
461 
462     if (!sipMeth)
463     {
464          ::wxRibbonPanel::InheritAttributes();
465         return;
466     }
467 
468     extern void sipVH__ribbon_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
469 
470     sipVH__ribbon_8(sipGILState, 0, sipPySelf, sipMeth);
471 }
472 
InitDialog()473 void sipwxRibbonPanel::InitDialog()
474 {
475     sip_gilstate_t sipGILState;
476     PyObject *sipMeth;
477 
478     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,SIP_NULLPTR,sipName_InitDialog);
479 
480     if (!sipMeth)
481     {
482          ::wxRibbonPanel::InitDialog();
483         return;
484     }
485 
486     extern void sipVH__ribbon_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
487 
488     sipVH__ribbon_8(sipGILState, 0, sipPySelf, sipMeth);
489 }
490 
OnInternalIdle()491 void sipwxRibbonPanel::OnInternalIdle()
492 {
493     sip_gilstate_t sipGILState;
494     PyObject *sipMeth;
495 
496     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,SIP_NULLPTR,sipName_OnInternalIdle);
497 
498     if (!sipMeth)
499     {
500          ::wxRibbonPanel::OnInternalIdle();
501         return;
502     }
503 
504     extern void sipVH__ribbon_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
505 
506     sipVH__ribbon_8(sipGILState, 0, sipPySelf, sipMeth);
507 }
508 
GetMainWindowOfCompositeControl()509  ::wxWindow* sipwxRibbonPanel::GetMainWindowOfCompositeControl()
510 {
511     sip_gilstate_t sipGILState;
512     PyObject *sipMeth;
513 
514     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[22],sipPySelf,SIP_NULLPTR,sipName_GetMainWindowOfCompositeControl);
515 
516     if (!sipMeth)
517         return  ::wxRibbonPanel::GetMainWindowOfCompositeControl();
518 
519     extern  ::wxWindow* sipVH__ribbon_9(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
520 
521     return sipVH__ribbon_9(sipGILState, 0, sipPySelf, sipMeth);
522 }
523 
DoEnable(bool enable)524 void sipwxRibbonPanel::DoEnable(bool enable)
525 {
526     sip_gilstate_t sipGILState;
527     PyObject *sipMeth;
528 
529     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],sipPySelf,SIP_NULLPTR,sipName_DoEnable);
530 
531     if (!sipMeth)
532     {
533          ::wxRibbonPanel::DoEnable(enable);
534         return;
535     }
536 
537     extern void sipVH__ribbon_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);
538 
539     sipVH__ribbon_3(sipGILState, 0, sipPySelf, sipMeth, enable);
540 }
541 
DoGetPosition(int * x,int * y) const542 void sipwxRibbonPanel::DoGetPosition(int*x,int*y) const
543 {
544     sip_gilstate_t sipGILState;
545     PyObject *sipMeth;
546 
547     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[24]),sipPySelf,SIP_NULLPTR,sipName_DoGetPosition);
548 
549     if (!sipMeth)
550     {
551          ::wxRibbonPanel::DoGetPosition(x,y);
552         return;
553     }
554 
555     extern void sipVH__ribbon_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int*,int*);
556 
557     sipVH__ribbon_10(sipGILState, 0, sipPySelf, sipMeth, x, y);
558 }
559 
DoGetSize(int * width,int * height) const560 void sipwxRibbonPanel::DoGetSize(int*width,int*height) const
561 {
562     sip_gilstate_t sipGILState;
563     PyObject *sipMeth;
564 
565     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[25]),sipPySelf,SIP_NULLPTR,sipName_DoGetSize);
566 
567     if (!sipMeth)
568     {
569          ::wxRibbonPanel::DoGetSize(width,height);
570         return;
571     }
572 
573     extern void sipVH__ribbon_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int*,int*);
574 
575     sipVH__ribbon_10(sipGILState, 0, sipPySelf, sipMeth, width, height);
576 }
577 
DoGetClientSize(int * width,int * height) const578 void sipwxRibbonPanel::DoGetClientSize(int*width,int*height) const
579 {
580     sip_gilstate_t sipGILState;
581     PyObject *sipMeth;
582 
583     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[26]),sipPySelf,SIP_NULLPTR,sipName_DoGetClientSize);
584 
585     if (!sipMeth)
586     {
587          ::wxRibbonPanel::DoGetClientSize(width,height);
588         return;
589     }
590 
591     extern void sipVH__ribbon_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int*,int*);
592 
593     sipVH__ribbon_10(sipGILState, 0, sipPySelf, sipMeth, width, height);
594 }
595 
DoSetSize(int x,int y,int width,int height,int sizeFlags)596 void sipwxRibbonPanel::DoSetSize(int x,int y,int width,int height,int sizeFlags)
597 {
598     sip_gilstate_t sipGILState;
599     PyObject *sipMeth;
600 
601     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[27],sipPySelf,SIP_NULLPTR,sipName_DoSetSize);
602 
603     if (!sipMeth)
604     {
605          ::wxRibbonPanel::DoSetSize(x,y,width,height,sizeFlags);
606         return;
607     }
608 
609     extern void sipVH__ribbon_11(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,int,int,int);
610 
611     sipVH__ribbon_11(sipGILState, 0, sipPySelf, sipMeth, x, y, width, height, sizeFlags);
612 }
613 
DoSetClientSize(int width,int height)614 void sipwxRibbonPanel::DoSetClientSize(int width,int height)
615 {
616     sip_gilstate_t sipGILState;
617     PyObject *sipMeth;
618 
619     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[28],sipPySelf,SIP_NULLPTR,sipName_DoSetClientSize);
620 
621     if (!sipMeth)
622     {
623          ::wxRibbonPanel::DoSetClientSize(width,height);
624         return;
625     }
626 
627     extern void sipVH__ribbon_12(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int);
628 
629     sipVH__ribbon_12(sipGILState, 0, sipPySelf, sipMeth, width, height);
630 }
631 
DoSetSizeHints(int minW,int minH,int maxW,int maxH,int incW,int incH)632 void sipwxRibbonPanel::DoSetSizeHints(int minW,int minH,int maxW,int maxH,int incW,int incH)
633 {
634     sip_gilstate_t sipGILState;
635     PyObject *sipMeth;
636 
637     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[29],sipPySelf,SIP_NULLPTR,sipName_DoSetSizeHints);
638 
639     if (!sipMeth)
640     {
641          ::wxRibbonPanel::DoSetSizeHints(minW,minH,maxW,maxH,incW,incH);
642         return;
643     }
644 
645     extern void sipVH__ribbon_13(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,int,int,int,int);
646 
647     sipVH__ribbon_13(sipGILState, 0, sipPySelf, sipMeth, minW, minH, maxW, maxH, incW, incH);
648 }
649 
DoGetBorderSize() const650  ::wxSize sipwxRibbonPanel::DoGetBorderSize() const
651 {
652     sip_gilstate_t sipGILState;
653     PyObject *sipMeth;
654 
655     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[30]),sipPySelf,SIP_NULLPTR,sipName_DoGetBorderSize);
656 
657     if (!sipMeth)
658         return  ::wxRibbonPanel::DoGetBorderSize();
659 
660     extern  ::wxSize sipVH__ribbon_14(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
661 
662     return sipVH__ribbon_14(sipGILState, 0, sipPySelf, sipMeth);
663 }
664 
DoMoveWindow(int x,int y,int width,int height)665 void sipwxRibbonPanel::DoMoveWindow(int x,int y,int width,int height)
666 {
667     sip_gilstate_t sipGILState;
668     PyObject *sipMeth;
669 
670     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[31],sipPySelf,SIP_NULLPTR,sipName_DoMoveWindow);
671 
672     if (!sipMeth)
673     {
674          ::wxRibbonPanel::DoMoveWindow(x,y,width,height);
675         return;
676     }
677 
678     extern void sipVH__ribbon_15(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,int,int);
679 
680     sipVH__ribbon_15(sipGILState, 0, sipPySelf, sipMeth, x, y, width, height);
681 }
682 
DoSetWindowVariant(::wxWindowVariant variant)683 void sipwxRibbonPanel::DoSetWindowVariant( ::wxWindowVariant variant)
684 {
685     sip_gilstate_t sipGILState;
686     PyObject *sipMeth;
687 
688     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[32],sipPySelf,SIP_NULLPTR,sipName_DoSetWindowVariant);
689 
690     if (!sipMeth)
691     {
692          ::wxRibbonPanel::DoSetWindowVariant(variant);
693         return;
694     }
695 
696     extern void sipVH__ribbon_16(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::wxWindowVariant);
697 
698     sipVH__ribbon_16(sipGILState, 0, sipPySelf, sipMeth, variant);
699 }
700 
GetDefaultBorder() const701  ::wxBorder sipwxRibbonPanel::GetDefaultBorder() const
702 {
703     sip_gilstate_t sipGILState;
704     PyObject *sipMeth;
705 
706     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[33]),sipPySelf,SIP_NULLPTR,sipName_GetDefaultBorder);
707 
708     if (!sipMeth)
709         return  ::wxRibbonPanel::GetDefaultBorder();
710 
711     extern  ::wxBorder sipVH__ribbon_17(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
712 
713     return sipVH__ribbon_17(sipGILState, 0, sipPySelf, sipMeth);
714 }
715 
GetDefaultBorderForControl() const716  ::wxBorder sipwxRibbonPanel::GetDefaultBorderForControl() const
717 {
718     sip_gilstate_t sipGILState;
719     PyObject *sipMeth;
720 
721     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[34]),sipPySelf,SIP_NULLPTR,sipName_GetDefaultBorderForControl);
722 
723     if (!sipMeth)
724         return  ::wxRibbonPanel::GetDefaultBorderForControl();
725 
726     extern  ::wxBorder sipVH__ribbon_17(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
727 
728     return sipVH__ribbon_17(sipGILState, 0, sipPySelf, sipMeth);
729 }
730 
DoFreeze()731 void sipwxRibbonPanel::DoFreeze()
732 {
733     sip_gilstate_t sipGILState;
734     PyObject *sipMeth;
735 
736     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[35],sipPySelf,SIP_NULLPTR,sipName_DoFreeze);
737 
738     if (!sipMeth)
739     {
740          ::wxRibbonPanel::DoFreeze();
741         return;
742     }
743 
744     extern void sipVH__ribbon_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
745 
746     sipVH__ribbon_8(sipGILState, 0, sipPySelf, sipMeth);
747 }
748 
DoThaw()749 void sipwxRibbonPanel::DoThaw()
750 {
751     sip_gilstate_t sipGILState;
752     PyObject *sipMeth;
753 
754     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[36],sipPySelf,SIP_NULLPTR,sipName_DoThaw);
755 
756     if (!sipMeth)
757     {
758          ::wxRibbonPanel::DoThaw();
759         return;
760     }
761 
762     extern void sipVH__ribbon_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
763 
764     sipVH__ribbon_8(sipGILState, 0, sipPySelf, sipMeth);
765 }
766 
DoGetBestSize() const767  ::wxSize sipwxRibbonPanel::DoGetBestSize() const
768 {
769     sip_gilstate_t sipGILState;
770     PyObject *sipMeth;
771 
772     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[37]),sipPySelf,SIP_NULLPTR,sipName_DoGetBestSize);
773 
774     if (!sipMeth)
775         return  ::wxRibbonPanel::DoGetBestSize();
776 
777     extern  ::wxSize sipVH__ribbon_14(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
778 
779     return sipVH__ribbon_14(sipGILState, 0, sipPySelf, sipMeth);
780 }
781 
DoGetBestClientSize() const782  ::wxSize sipwxRibbonPanel::DoGetBestClientSize() const
783 {
784     sip_gilstate_t sipGILState;
785     PyObject *sipMeth;
786 
787     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[38]),sipPySelf,SIP_NULLPTR,sipName_DoGetBestClientSize);
788 
789     if (!sipMeth)
790         return  ::wxRibbonPanel::DoGetBestClientSize();
791 
792     extern  ::wxSize sipVH__ribbon_14(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
793 
794     return sipVH__ribbon_14(sipGILState, 0, sipPySelf, sipMeth);
795 }
796 
sipProtect_SendDestroyEvent()797 void sipwxRibbonPanel::sipProtect_SendDestroyEvent()
798 {
799      ::wxWindow::SendDestroyEvent();
800 }
801 
sipProtect_DoGetNextSmallerSize(::wxOrientation direction,::wxSize relative_to) const802  ::wxSize sipwxRibbonPanel::sipProtect_DoGetNextSmallerSize( ::wxOrientation direction, ::wxSize relative_to) const
803 {
804     return  ::wxRibbonControl::DoGetNextSmallerSize(direction,relative_to);
805 }
806 
sipProtect_DoGetNextLargerSize(::wxOrientation direction,::wxSize relative_to) const807  ::wxSize sipwxRibbonPanel::sipProtect_DoGetNextLargerSize( ::wxOrientation direction, ::wxSize relative_to) const
808 {
809     return  ::wxRibbonControl::DoGetNextLargerSize(direction,relative_to);
810 }
811 
sipProtectVirt_ProcessEvent(bool sipSelfWasArg,::wxEvent & event)812 bool sipwxRibbonPanel::sipProtectVirt_ProcessEvent(bool sipSelfWasArg, ::wxEvent& event)
813 {
814     return (sipSelfWasArg ?  ::wxRibbonPanel::ProcessEvent(event) : ProcessEvent(event));
815 }
816 
sipProtectVirt_DoEnable(bool sipSelfWasArg,bool enable)817 void sipwxRibbonPanel::sipProtectVirt_DoEnable(bool sipSelfWasArg,bool enable)
818 {
819     (sipSelfWasArg ?  ::wxRibbonPanel::DoEnable(enable) : DoEnable(enable));
820 }
821 
sipProtectVirt_DoGetPosition(bool sipSelfWasArg,int * x,int * y) const822 void sipwxRibbonPanel::sipProtectVirt_DoGetPosition(bool sipSelfWasArg,int*x,int*y) const
823 {
824     (sipSelfWasArg ?  ::wxRibbonPanel::DoGetPosition(x,y) : DoGetPosition(x,y));
825 }
826 
sipProtectVirt_DoGetSize(bool sipSelfWasArg,int * width,int * height) const827 void sipwxRibbonPanel::sipProtectVirt_DoGetSize(bool sipSelfWasArg,int*width,int*height) const
828 {
829     (sipSelfWasArg ?  ::wxRibbonPanel::DoGetSize(width,height) : DoGetSize(width,height));
830 }
831 
sipProtectVirt_DoGetClientSize(bool sipSelfWasArg,int * width,int * height) const832 void sipwxRibbonPanel::sipProtectVirt_DoGetClientSize(bool sipSelfWasArg,int*width,int*height) const
833 {
834     (sipSelfWasArg ?  ::wxRibbonPanel::DoGetClientSize(width,height) : DoGetClientSize(width,height));
835 }
836 
sipProtectVirt_DoGetBestSize(bool sipSelfWasArg) const837  ::wxSize sipwxRibbonPanel::sipProtectVirt_DoGetBestSize(bool sipSelfWasArg) const
838 {
839     return (sipSelfWasArg ?  ::wxRibbonPanel::DoGetBestSize() : DoGetBestSize());
840 }
841 
sipProtectVirt_DoGetBestClientSize(bool sipSelfWasArg) const842  ::wxSize sipwxRibbonPanel::sipProtectVirt_DoGetBestClientSize(bool sipSelfWasArg) const
843 {
844     return (sipSelfWasArg ?  ::wxRibbonPanel::DoGetBestClientSize() : DoGetBestClientSize());
845 }
846 
sipProtectVirt_DoSetSize(bool sipSelfWasArg,int x,int y,int width,int height,int sizeFlags)847 void sipwxRibbonPanel::sipProtectVirt_DoSetSize(bool sipSelfWasArg,int x,int y,int width,int height,int sizeFlags)
848 {
849     (sipSelfWasArg ?  ::wxRibbonPanel::DoSetSize(x,y,width,height,sizeFlags) : DoSetSize(x,y,width,height,sizeFlags));
850 }
851 
sipProtectVirt_DoSetClientSize(bool sipSelfWasArg,int width,int height)852 void sipwxRibbonPanel::sipProtectVirt_DoSetClientSize(bool sipSelfWasArg,int width,int height)
853 {
854     (sipSelfWasArg ?  ::wxRibbonPanel::DoSetClientSize(width,height) : DoSetClientSize(width,height));
855 }
856 
sipProtectVirt_DoSetSizeHints(bool sipSelfWasArg,int minW,int minH,int maxW,int maxH,int incW,int incH)857 void sipwxRibbonPanel::sipProtectVirt_DoSetSizeHints(bool sipSelfWasArg,int minW,int minH,int maxW,int maxH,int incW,int incH)
858 {
859     (sipSelfWasArg ?  ::wxRibbonPanel::DoSetSizeHints(minW,minH,maxW,maxH,incW,incH) : DoSetSizeHints(minW,minH,maxW,maxH,incW,incH));
860 }
861 
sipProtectVirt_DoGetBorderSize(bool sipSelfWasArg) const862  ::wxSize sipwxRibbonPanel::sipProtectVirt_DoGetBorderSize(bool sipSelfWasArg) const
863 {
864     return (sipSelfWasArg ?  ::wxRibbonPanel::DoGetBorderSize() : DoGetBorderSize());
865 }
866 
sipProtectVirt_DoMoveWindow(bool sipSelfWasArg,int x,int y,int width,int height)867 void sipwxRibbonPanel::sipProtectVirt_DoMoveWindow(bool sipSelfWasArg,int x,int y,int width,int height)
868 {
869     (sipSelfWasArg ?  ::wxRibbonPanel::DoMoveWindow(x,y,width,height) : DoMoveWindow(x,y,width,height));
870 }
871 
sipProtectVirt_DoSetWindowVariant(bool sipSelfWasArg,::wxWindowVariant variant)872 void sipwxRibbonPanel::sipProtectVirt_DoSetWindowVariant(bool sipSelfWasArg, ::wxWindowVariant variant)
873 {
874     (sipSelfWasArg ?  ::wxRibbonPanel::DoSetWindowVariant(variant) : DoSetWindowVariant(variant));
875 }
876 
sipProtectVirt_GetDefaultBorder(bool sipSelfWasArg) const877  ::wxBorder sipwxRibbonPanel::sipProtectVirt_GetDefaultBorder(bool sipSelfWasArg) const
878 {
879     return (sipSelfWasArg ?  ::wxRibbonPanel::GetDefaultBorder() : GetDefaultBorder());
880 }
881 
sipProtectVirt_GetDefaultBorderForControl(bool sipSelfWasArg) const882  ::wxBorder sipwxRibbonPanel::sipProtectVirt_GetDefaultBorderForControl(bool sipSelfWasArg) const
883 {
884     return (sipSelfWasArg ?  ::wxRibbonPanel::GetDefaultBorderForControl() : GetDefaultBorderForControl());
885 }
886 
sipProtectVirt_DoFreeze(bool sipSelfWasArg)887 void sipwxRibbonPanel::sipProtectVirt_DoFreeze(bool sipSelfWasArg)
888 {
889     (sipSelfWasArg ?  ::wxRibbonPanel::DoFreeze() : DoFreeze());
890 }
891 
sipProtectVirt_DoThaw(bool sipSelfWasArg)892 void sipwxRibbonPanel::sipProtectVirt_DoThaw(bool sipSelfWasArg)
893 {
894     (sipSelfWasArg ?  ::wxRibbonPanel::DoThaw() : DoThaw());
895 }
896 
sipProtectVirt_HasTransparentBackground(bool sipSelfWasArg)897 bool sipwxRibbonPanel::sipProtectVirt_HasTransparentBackground(bool sipSelfWasArg)
898 {
899     return (sipSelfWasArg ?  ::wxRibbonPanel::HasTransparentBackground() : HasTransparentBackground());
900 }
901 
sipProtectVirt_TryBefore(bool sipSelfWasArg,::wxEvent & event)902 bool sipwxRibbonPanel::sipProtectVirt_TryBefore(bool sipSelfWasArg, ::wxEvent& event)
903 {
904     return (sipSelfWasArg ?  ::wxRibbonPanel::TryBefore(event) : TryBefore(event));
905 }
906 
sipProtectVirt_TryAfter(bool sipSelfWasArg,::wxEvent & event)907 bool sipwxRibbonPanel::sipProtectVirt_TryAfter(bool sipSelfWasArg, ::wxEvent& event)
908 {
909     return (sipSelfWasArg ?  ::wxRibbonPanel::TryAfter(event) : TryAfter(event));
910 }
911 
912 
913 PyDoc_STRVAR(doc_wxRibbonPanel_SendDestroyEvent, "SendDestroyEvent()\n"
914 "\n"
915 "Generate wxWindowDestroyEvent for this window.");
916 
917 extern "C" {static PyObject *meth_wxRibbonPanel_SendDestroyEvent(PyObject *, PyObject *);}
meth_wxRibbonPanel_SendDestroyEvent(PyObject * sipSelf,PyObject * sipArgs)918 static PyObject *meth_wxRibbonPanel_SendDestroyEvent(PyObject *sipSelf, PyObject *sipArgs)
919 {
920     PyObject *sipParseErr = SIP_NULLPTR;
921 
922     {
923         sipwxRibbonPanel *sipCpp;
924 
925         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonPanel, &sipCpp))
926         {
927             PyErr_Clear();
928 
929             Py_BEGIN_ALLOW_THREADS
930             sipCpp->sipProtect_SendDestroyEvent();
931             Py_END_ALLOW_THREADS
932 
933             if (PyErr_Occurred())
934                 return 0;
935 
936             Py_INCREF(Py_None);
937             return Py_None;
938         }
939     }
940 
941     /* Raise an exception if the arguments couldn't be parsed. */
942     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_SendDestroyEvent, SIP_NULLPTR);
943 
944     return SIP_NULLPTR;
945 }
946 
947 
948 PyDoc_STRVAR(doc_wxRibbonPanel_DoGetNextSmallerSize, "DoGetNextSmallerSize(direction, relative_to) -> wx.Size\n"
949 "\n"
950 "Implementation of GetNextSmallerSize().");
951 
952 extern "C" {static PyObject *meth_wxRibbonPanel_DoGetNextSmallerSize(PyObject *, PyObject *, PyObject *);}
meth_wxRibbonPanel_DoGetNextSmallerSize(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)953 static PyObject *meth_wxRibbonPanel_DoGetNextSmallerSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
954 {
955     PyObject *sipParseErr = SIP_NULLPTR;
956 
957     {
958          ::wxOrientation direction;
959          ::wxSize* relative_to;
960         int relative_toState = 0;
961         const sipwxRibbonPanel *sipCpp;
962 
963         static const char *sipKwdList[] = {
964             sipName_direction,
965             sipName_relative_to,
966         };
967 
968         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BEJ1", &sipSelf, sipType_wxRibbonPanel, &sipCpp, sipType_wxOrientation, &direction, sipType_wxSize, &relative_to, &relative_toState))
969         {
970              ::wxSize*sipRes;
971 
972             PyErr_Clear();
973 
974             Py_BEGIN_ALLOW_THREADS
975             sipRes = new  ::wxSize(sipCpp->sipProtect_DoGetNextSmallerSize(direction,*relative_to));
976             Py_END_ALLOW_THREADS
977             sipReleaseType(relative_to,sipType_wxSize,relative_toState);
978 
979             if (PyErr_Occurred())
980                 return 0;
981 
982             return sipConvertFromNewType(sipRes,sipType_wxSize,SIP_NULLPTR);
983         }
984     }
985 
986     /* Raise an exception if the arguments couldn't be parsed. */
987     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_DoGetNextSmallerSize, SIP_NULLPTR);
988 
989     return SIP_NULLPTR;
990 }
991 
992 
993 PyDoc_STRVAR(doc_wxRibbonPanel_DoGetNextLargerSize, "DoGetNextLargerSize(direction, relative_to) -> wx.Size\n"
994 "\n"
995 "Implementation of GetNextLargerSize().");
996 
997 extern "C" {static PyObject *meth_wxRibbonPanel_DoGetNextLargerSize(PyObject *, PyObject *, PyObject *);}
meth_wxRibbonPanel_DoGetNextLargerSize(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)998 static PyObject *meth_wxRibbonPanel_DoGetNextLargerSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
999 {
1000     PyObject *sipParseErr = SIP_NULLPTR;
1001 
1002     {
1003          ::wxOrientation direction;
1004          ::wxSize* relative_to;
1005         int relative_toState = 0;
1006         const sipwxRibbonPanel *sipCpp;
1007 
1008         static const char *sipKwdList[] = {
1009             sipName_direction,
1010             sipName_relative_to,
1011         };
1012 
1013         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BEJ1", &sipSelf, sipType_wxRibbonPanel, &sipCpp, sipType_wxOrientation, &direction, sipType_wxSize, &relative_to, &relative_toState))
1014         {
1015              ::wxSize*sipRes;
1016 
1017             PyErr_Clear();
1018 
1019             Py_BEGIN_ALLOW_THREADS
1020             sipRes = new  ::wxSize(sipCpp->sipProtect_DoGetNextLargerSize(direction,*relative_to));
1021             Py_END_ALLOW_THREADS
1022             sipReleaseType(relative_to,sipType_wxSize,relative_toState);
1023 
1024             if (PyErr_Occurred())
1025                 return 0;
1026 
1027             return sipConvertFromNewType(sipRes,sipType_wxSize,SIP_NULLPTR);
1028         }
1029     }
1030 
1031     /* Raise an exception if the arguments couldn't be parsed. */
1032     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_DoGetNextLargerSize, SIP_NULLPTR);
1033 
1034     return SIP_NULLPTR;
1035 }
1036 
1037 
1038 PyDoc_STRVAR(doc_wxRibbonPanel_Create, "Create(parent, id=wx.ID_ANY, label=wx.EmptyString, icon=wx.NullBitmap, pos=wx.DefaultPosition, size=wx.DefaultSize, style=RIBBON_PANEL_DEFAULT_STYLE) -> bool\n"
1039 "\n"
1040 "Create a ribbon panel in two-step ribbon panel construction.");
1041 
1042 extern "C" {static PyObject *meth_wxRibbonPanel_Create(PyObject *, PyObject *, PyObject *);}
meth_wxRibbonPanel_Create(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1043 static PyObject *meth_wxRibbonPanel_Create(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1044 {
1045     PyObject *sipParseErr = SIP_NULLPTR;
1046 
1047     {
1048          ::wxWindow* parent;
1049          ::wxWindowID id = wxID_ANY;
1050         const  ::wxString& labeldef = wxEmptyString;
1051         const  ::wxString* label = &labeldef;
1052         int labelState = 0;
1053         const  ::wxBitmap& icondef = wxNullBitmap;
1054         const  ::wxBitmap* icon = &icondef;
1055         const  ::wxPoint& posdef = wxDefaultPosition;
1056         const  ::wxPoint* pos = &posdef;
1057         int posState = 0;
1058         const  ::wxSize& sizedef = wxDefaultSize;
1059         const  ::wxSize* size = &sizedef;
1060         int sizeState = 0;
1061         long style = wxRIBBON_PANEL_DEFAULT_STYLE;
1062         sipWrapper *sipOwner = SIP_NULLPTR;
1063          ::wxRibbonPanel *sipCpp;
1064 
1065         static const char *sipKwdList[] = {
1066             sipName_parent,
1067             sipName_id,
1068             sipName_label,
1069             sipName_icon,
1070             sipName_pos,
1071             sipName_size,
1072             sipName_style,
1073         };
1074 
1075         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJH|iJ1J9J1J1l", &sipSelf, sipType_wxRibbonPanel, &sipCpp, sipType_wxWindow, &parent, &sipOwner, &id, sipType_wxString,&label, &labelState, sipType_wxBitmap, &icon, sipType_wxPoint, &pos, &posState, sipType_wxSize, &size, &sizeState, &style))
1076         {
1077             bool sipRes;
1078 
1079             PyErr_Clear();
1080 
1081             Py_BEGIN_ALLOW_THREADS
1082             sipRes = sipCpp->Create(parent,id,*label,*icon,*pos,*size,style);
1083             Py_END_ALLOW_THREADS
1084 
1085             if (sipOwner)
1086                 sipTransferTo(sipSelf, (PyObject *)sipOwner);
1087             else
1088                 sipTransferBack(sipSelf);
1089             sipReleaseType(const_cast< ::wxString *>(label),sipType_wxString,labelState);
1090             sipReleaseType(const_cast< ::wxPoint *>(pos),sipType_wxPoint,posState);
1091             sipReleaseType(const_cast< ::wxSize *>(size),sipType_wxSize,sizeState);
1092 
1093             if (PyErr_Occurred())
1094                 return 0;
1095 
1096             return PyBool_FromLong(sipRes);
1097         }
1098     }
1099 
1100     /* Raise an exception if the arguments couldn't be parsed. */
1101     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_Create, SIP_NULLPTR);
1102 
1103     return SIP_NULLPTR;
1104 }
1105 
1106 
1107 PyDoc_STRVAR(doc_wxRibbonPanel_GetMinimisedIcon, "GetMinimisedIcon() -> wx.Bitmap\n"
1108 "\n"
1109 "Get the bitmap to be used in place of the panel children when it is\n"
1110 "minimised.");
1111 
1112 extern "C" {static PyObject *meth_wxRibbonPanel_GetMinimisedIcon(PyObject *, PyObject *);}
meth_wxRibbonPanel_GetMinimisedIcon(PyObject * sipSelf,PyObject * sipArgs)1113 static PyObject *meth_wxRibbonPanel_GetMinimisedIcon(PyObject *sipSelf, PyObject *sipArgs)
1114 {
1115     PyObject *sipParseErr = SIP_NULLPTR;
1116 
1117     {
1118          ::wxRibbonPanel *sipCpp;
1119 
1120         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonPanel, &sipCpp))
1121         {
1122              ::wxBitmap*sipRes;
1123 
1124             PyErr_Clear();
1125 
1126             Py_BEGIN_ALLOW_THREADS
1127             sipRes = &sipCpp->GetMinimisedIcon();
1128             Py_END_ALLOW_THREADS
1129 
1130             if (PyErr_Occurred())
1131                 return 0;
1132 
1133             return sipConvertFromType(sipRes,sipType_wxBitmap,SIP_NULLPTR);
1134         }
1135     }
1136 
1137     /* Raise an exception if the arguments couldn't be parsed. */
1138     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_GetMinimisedIcon, SIP_NULLPTR);
1139 
1140     return SIP_NULLPTR;
1141 }
1142 
1143 
1144 PyDoc_STRVAR(doc_wxRibbonPanel_HasExtButton, "HasExtButton() -> bool\n"
1145 "\n"
1146 "Test if the panel has an extension button.");
1147 
1148 extern "C" {static PyObject *meth_wxRibbonPanel_HasExtButton(PyObject *, PyObject *);}
meth_wxRibbonPanel_HasExtButton(PyObject * sipSelf,PyObject * sipArgs)1149 static PyObject *meth_wxRibbonPanel_HasExtButton(PyObject *sipSelf, PyObject *sipArgs)
1150 {
1151     PyObject *sipParseErr = SIP_NULLPTR;
1152 
1153     {
1154         const  ::wxRibbonPanel *sipCpp;
1155 
1156         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonPanel, &sipCpp))
1157         {
1158             bool sipRes;
1159 
1160             PyErr_Clear();
1161 
1162             Py_BEGIN_ALLOW_THREADS
1163             sipRes = sipCpp->HasExtButton();
1164             Py_END_ALLOW_THREADS
1165 
1166             if (PyErr_Occurred())
1167                 return 0;
1168 
1169             return PyBool_FromLong(sipRes);
1170         }
1171     }
1172 
1173     /* Raise an exception if the arguments couldn't be parsed. */
1174     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_HasExtButton, SIP_NULLPTR);
1175 
1176     return SIP_NULLPTR;
1177 }
1178 
1179 
1180 PyDoc_STRVAR(doc_wxRibbonPanel_IsMinimised, "IsMinimised() -> bool\n"
1181 "IsMinimised(at_size) -> bool\n"
1182 "\n"
1183 "Query if the panel is currently minimised.\n"
1184 "");
1185 
1186 extern "C" {static PyObject *meth_wxRibbonPanel_IsMinimised(PyObject *, PyObject *, PyObject *);}
meth_wxRibbonPanel_IsMinimised(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1187 static PyObject *meth_wxRibbonPanel_IsMinimised(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1188 {
1189     PyObject *sipParseErr = SIP_NULLPTR;
1190 
1191     {
1192         const  ::wxRibbonPanel *sipCpp;
1193 
1194         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "B", &sipSelf, sipType_wxRibbonPanel, &sipCpp))
1195         {
1196             bool sipRes;
1197 
1198             PyErr_Clear();
1199 
1200             Py_BEGIN_ALLOW_THREADS
1201             sipRes = sipCpp->IsMinimised();
1202             Py_END_ALLOW_THREADS
1203 
1204             if (PyErr_Occurred())
1205                 return 0;
1206 
1207             return PyBool_FromLong(sipRes);
1208         }
1209     }
1210 
1211     {
1212          ::wxSize* at_size;
1213         int at_sizeState = 0;
1214         const  ::wxRibbonPanel *sipCpp;
1215 
1216         static const char *sipKwdList[] = {
1217             sipName_at_size,
1218         };
1219 
1220         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxRibbonPanel, &sipCpp, sipType_wxSize, &at_size, &at_sizeState))
1221         {
1222             bool sipRes;
1223 
1224             PyErr_Clear();
1225 
1226             Py_BEGIN_ALLOW_THREADS
1227             sipRes = sipCpp->IsMinimised(*at_size);
1228             Py_END_ALLOW_THREADS
1229             sipReleaseType(at_size,sipType_wxSize,at_sizeState);
1230 
1231             if (PyErr_Occurred())
1232                 return 0;
1233 
1234             return PyBool_FromLong(sipRes);
1235         }
1236     }
1237 
1238     /* Raise an exception if the arguments couldn't be parsed. */
1239     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_IsMinimised, SIP_NULLPTR);
1240 
1241     return SIP_NULLPTR;
1242 }
1243 
1244 
1245 PyDoc_STRVAR(doc_wxRibbonPanel_IsHovered, "IsHovered() -> bool\n"
1246 "\n"
1247 "Query is the mouse is currently hovered over the panel.");
1248 
1249 extern "C" {static PyObject *meth_wxRibbonPanel_IsHovered(PyObject *, PyObject *);}
meth_wxRibbonPanel_IsHovered(PyObject * sipSelf,PyObject * sipArgs)1250 static PyObject *meth_wxRibbonPanel_IsHovered(PyObject *sipSelf, PyObject *sipArgs)
1251 {
1252     PyObject *sipParseErr = SIP_NULLPTR;
1253 
1254     {
1255         const  ::wxRibbonPanel *sipCpp;
1256 
1257         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonPanel, &sipCpp))
1258         {
1259             bool sipRes;
1260 
1261             PyErr_Clear();
1262 
1263             Py_BEGIN_ALLOW_THREADS
1264             sipRes = sipCpp->IsHovered();
1265             Py_END_ALLOW_THREADS
1266 
1267             if (PyErr_Occurred())
1268                 return 0;
1269 
1270             return PyBool_FromLong(sipRes);
1271         }
1272     }
1273 
1274     /* Raise an exception if the arguments couldn't be parsed. */
1275     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_IsHovered, SIP_NULLPTR);
1276 
1277     return SIP_NULLPTR;
1278 }
1279 
1280 
1281 PyDoc_STRVAR(doc_wxRibbonPanel_IsExtButtonHovered, "IsExtButtonHovered() -> bool\n"
1282 "\n"
1283 "Query if the mouse is currently hovered over the extension button.");
1284 
1285 extern "C" {static PyObject *meth_wxRibbonPanel_IsExtButtonHovered(PyObject *, PyObject *);}
meth_wxRibbonPanel_IsExtButtonHovered(PyObject * sipSelf,PyObject * sipArgs)1286 static PyObject *meth_wxRibbonPanel_IsExtButtonHovered(PyObject *sipSelf, PyObject *sipArgs)
1287 {
1288     PyObject *sipParseErr = SIP_NULLPTR;
1289 
1290     {
1291         const  ::wxRibbonPanel *sipCpp;
1292 
1293         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonPanel, &sipCpp))
1294         {
1295             bool sipRes;
1296 
1297             PyErr_Clear();
1298 
1299             Py_BEGIN_ALLOW_THREADS
1300             sipRes = sipCpp->IsExtButtonHovered();
1301             Py_END_ALLOW_THREADS
1302 
1303             if (PyErr_Occurred())
1304                 return 0;
1305 
1306             return PyBool_FromLong(sipRes);
1307         }
1308     }
1309 
1310     /* Raise an exception if the arguments couldn't be parsed. */
1311     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_IsExtButtonHovered, SIP_NULLPTR);
1312 
1313     return SIP_NULLPTR;
1314 }
1315 
1316 
1317 PyDoc_STRVAR(doc_wxRibbonPanel_CanAutoMinimise, "CanAutoMinimise() -> bool\n"
1318 "\n"
1319 "Query if the panel can automatically minimise itself at small sizes.");
1320 
1321 extern "C" {static PyObject *meth_wxRibbonPanel_CanAutoMinimise(PyObject *, PyObject *);}
meth_wxRibbonPanel_CanAutoMinimise(PyObject * sipSelf,PyObject * sipArgs)1322 static PyObject *meth_wxRibbonPanel_CanAutoMinimise(PyObject *sipSelf, PyObject *sipArgs)
1323 {
1324     PyObject *sipParseErr = SIP_NULLPTR;
1325 
1326     {
1327         const  ::wxRibbonPanel *sipCpp;
1328 
1329         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonPanel, &sipCpp))
1330         {
1331             bool sipRes;
1332 
1333             PyErr_Clear();
1334 
1335             Py_BEGIN_ALLOW_THREADS
1336             sipRes = sipCpp->CanAutoMinimise();
1337             Py_END_ALLOW_THREADS
1338 
1339             if (PyErr_Occurred())
1340                 return 0;
1341 
1342             return PyBool_FromLong(sipRes);
1343         }
1344     }
1345 
1346     /* Raise an exception if the arguments couldn't be parsed. */
1347     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_CanAutoMinimise, SIP_NULLPTR);
1348 
1349     return SIP_NULLPTR;
1350 }
1351 
1352 
1353 PyDoc_STRVAR(doc_wxRibbonPanel_ShowExpanded, "ShowExpanded() -> bool\n"
1354 "\n"
1355 "Show the panel externally expanded.");
1356 
1357 extern "C" {static PyObject *meth_wxRibbonPanel_ShowExpanded(PyObject *, PyObject *);}
meth_wxRibbonPanel_ShowExpanded(PyObject * sipSelf,PyObject * sipArgs)1358 static PyObject *meth_wxRibbonPanel_ShowExpanded(PyObject *sipSelf, PyObject *sipArgs)
1359 {
1360     PyObject *sipParseErr = SIP_NULLPTR;
1361 
1362     {
1363          ::wxRibbonPanel *sipCpp;
1364 
1365         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonPanel, &sipCpp))
1366         {
1367             bool sipRes;
1368 
1369             PyErr_Clear();
1370 
1371             Py_BEGIN_ALLOW_THREADS
1372             sipRes = sipCpp->ShowExpanded();
1373             Py_END_ALLOW_THREADS
1374 
1375             if (PyErr_Occurred())
1376                 return 0;
1377 
1378             return PyBool_FromLong(sipRes);
1379         }
1380     }
1381 
1382     /* Raise an exception if the arguments couldn't be parsed. */
1383     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_ShowExpanded, SIP_NULLPTR);
1384 
1385     return SIP_NULLPTR;
1386 }
1387 
1388 
1389 PyDoc_STRVAR(doc_wxRibbonPanel_HideExpanded, "HideExpanded() -> bool\n"
1390 "\n"
1391 "Hide the panel's external expansion.");
1392 
1393 extern "C" {static PyObject *meth_wxRibbonPanel_HideExpanded(PyObject *, PyObject *);}
meth_wxRibbonPanel_HideExpanded(PyObject * sipSelf,PyObject * sipArgs)1394 static PyObject *meth_wxRibbonPanel_HideExpanded(PyObject *sipSelf, PyObject *sipArgs)
1395 {
1396     PyObject *sipParseErr = SIP_NULLPTR;
1397 
1398     {
1399          ::wxRibbonPanel *sipCpp;
1400 
1401         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonPanel, &sipCpp))
1402         {
1403             bool sipRes;
1404 
1405             PyErr_Clear();
1406 
1407             Py_BEGIN_ALLOW_THREADS
1408             sipRes = sipCpp->HideExpanded();
1409             Py_END_ALLOW_THREADS
1410 
1411             if (PyErr_Occurred())
1412                 return 0;
1413 
1414             return PyBool_FromLong(sipRes);
1415         }
1416     }
1417 
1418     /* Raise an exception if the arguments couldn't be parsed. */
1419     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_HideExpanded, SIP_NULLPTR);
1420 
1421     return SIP_NULLPTR;
1422 }
1423 
1424 
1425 PyDoc_STRVAR(doc_wxRibbonPanel_SetArtProvider, "SetArtProvider(art)\n"
1426 "\n"
1427 "Set the art provider to be used.");
1428 
1429 extern "C" {static PyObject *meth_wxRibbonPanel_SetArtProvider(PyObject *, PyObject *, PyObject *);}
meth_wxRibbonPanel_SetArtProvider(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1430 static PyObject *meth_wxRibbonPanel_SetArtProvider(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1431 {
1432     PyObject *sipParseErr = SIP_NULLPTR;
1433 
1434     {
1435          ::wxRibbonArtProvider* art;
1436          ::wxRibbonPanel *sipCpp;
1437 
1438         static const char *sipKwdList[] = {
1439             sipName_art,
1440         };
1441 
1442         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8", &sipSelf, sipType_wxRibbonPanel, &sipCpp, sipType_wxRibbonArtProvider, &art))
1443         {
1444             PyErr_Clear();
1445 
1446             Py_BEGIN_ALLOW_THREADS
1447             sipCpp->SetArtProvider(art);
1448             Py_END_ALLOW_THREADS
1449 
1450             if (PyErr_Occurred())
1451                 return 0;
1452 
1453             Py_INCREF(Py_None);
1454             return Py_None;
1455         }
1456     }
1457 
1458     /* Raise an exception if the arguments couldn't be parsed. */
1459     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_SetArtProvider, SIP_NULLPTR);
1460 
1461     return SIP_NULLPTR;
1462 }
1463 
1464 
1465 PyDoc_STRVAR(doc_wxRibbonPanel_Realize, "Realize() -> bool\n"
1466 "\n"
1467 "Realize all children of the panel.");
1468 
1469 extern "C" {static PyObject *meth_wxRibbonPanel_Realize(PyObject *, PyObject *);}
meth_wxRibbonPanel_Realize(PyObject * sipSelf,PyObject * sipArgs)1470 static PyObject *meth_wxRibbonPanel_Realize(PyObject *sipSelf, PyObject *sipArgs)
1471 {
1472     PyObject *sipParseErr = SIP_NULLPTR;
1473 
1474     {
1475          ::wxRibbonPanel *sipCpp;
1476 
1477         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonPanel, &sipCpp))
1478         {
1479             bool sipRes;
1480 
1481             PyErr_Clear();
1482 
1483             Py_BEGIN_ALLOW_THREADS
1484             sipRes = sipCpp->Realize();
1485             Py_END_ALLOW_THREADS
1486 
1487             if (PyErr_Occurred())
1488                 return 0;
1489 
1490             return PyBool_FromLong(sipRes);
1491         }
1492     }
1493 
1494     /* Raise an exception if the arguments couldn't be parsed. */
1495     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_Realize, SIP_NULLPTR);
1496 
1497     return SIP_NULLPTR;
1498 }
1499 
1500 
1501 PyDoc_STRVAR(doc_wxRibbonPanel_GetExpandedDummy, "GetExpandedDummy() -> RibbonPanel\n"
1502 "\n"
1503 "Get the dummy panel of an expanded panel.");
1504 
1505 extern "C" {static PyObject *meth_wxRibbonPanel_GetExpandedDummy(PyObject *, PyObject *);}
meth_wxRibbonPanel_GetExpandedDummy(PyObject * sipSelf,PyObject * sipArgs)1506 static PyObject *meth_wxRibbonPanel_GetExpandedDummy(PyObject *sipSelf, PyObject *sipArgs)
1507 {
1508     PyObject *sipParseErr = SIP_NULLPTR;
1509 
1510     {
1511          ::wxRibbonPanel *sipCpp;
1512 
1513         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonPanel, &sipCpp))
1514         {
1515              ::wxRibbonPanel*sipRes;
1516 
1517             PyErr_Clear();
1518 
1519             Py_BEGIN_ALLOW_THREADS
1520             sipRes = sipCpp->GetExpandedDummy();
1521             Py_END_ALLOW_THREADS
1522 
1523             if (PyErr_Occurred())
1524                 return 0;
1525 
1526             return sipConvertFromType(sipRes,sipType_wxRibbonPanel,SIP_NULLPTR);
1527         }
1528     }
1529 
1530     /* Raise an exception if the arguments couldn't be parsed. */
1531     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_GetExpandedDummy, SIP_NULLPTR);
1532 
1533     return SIP_NULLPTR;
1534 }
1535 
1536 
1537 PyDoc_STRVAR(doc_wxRibbonPanel_GetExpandedPanel, "GetExpandedPanel() -> RibbonPanel\n"
1538 "\n"
1539 "Get the expanded panel of a dummy panel.");
1540 
1541 extern "C" {static PyObject *meth_wxRibbonPanel_GetExpandedPanel(PyObject *, PyObject *);}
meth_wxRibbonPanel_GetExpandedPanel(PyObject * sipSelf,PyObject * sipArgs)1542 static PyObject *meth_wxRibbonPanel_GetExpandedPanel(PyObject *sipSelf, PyObject *sipArgs)
1543 {
1544     PyObject *sipParseErr = SIP_NULLPTR;
1545 
1546     {
1547          ::wxRibbonPanel *sipCpp;
1548 
1549         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonPanel, &sipCpp))
1550         {
1551              ::wxRibbonPanel*sipRes;
1552 
1553             PyErr_Clear();
1554 
1555             Py_BEGIN_ALLOW_THREADS
1556             sipRes = sipCpp->GetExpandedPanel();
1557             Py_END_ALLOW_THREADS
1558 
1559             if (PyErr_Occurred())
1560                 return 0;
1561 
1562             return sipConvertFromType(sipRes,sipType_wxRibbonPanel,SIP_NULLPTR);
1563         }
1564     }
1565 
1566     /* Raise an exception if the arguments couldn't be parsed. */
1567     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_GetExpandedPanel, SIP_NULLPTR);
1568 
1569     return SIP_NULLPTR;
1570 }
1571 
1572 
1573 PyDoc_STRVAR(doc_wxRibbonPanel_GetClientAreaOrigin, "GetClientAreaOrigin(self) -> Point");
1574 
1575 extern "C" {static PyObject *meth_wxRibbonPanel_GetClientAreaOrigin(PyObject *, PyObject *);}
meth_wxRibbonPanel_GetClientAreaOrigin(PyObject * sipSelf,PyObject * sipArgs)1576 static PyObject *meth_wxRibbonPanel_GetClientAreaOrigin(PyObject *sipSelf, PyObject *sipArgs)
1577 {
1578     PyObject *sipParseErr = SIP_NULLPTR;
1579     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1580 
1581     {
1582         const  ::wxRibbonPanel *sipCpp;
1583 
1584         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonPanel, &sipCpp))
1585         {
1586              ::wxPoint*sipRes;
1587 
1588             PyErr_Clear();
1589 
1590             Py_BEGIN_ALLOW_THREADS
1591             sipRes = new  ::wxPoint((sipSelfWasArg ? sipCpp-> ::wxRibbonPanel::GetClientAreaOrigin() : sipCpp->GetClientAreaOrigin()));
1592             Py_END_ALLOW_THREADS
1593 
1594             if (PyErr_Occurred())
1595                 return 0;
1596 
1597             return sipConvertFromNewType(sipRes,sipType_wxPoint,SIP_NULLPTR);
1598         }
1599     }
1600 
1601     /* Raise an exception if the arguments couldn't be parsed. */
1602     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_GetClientAreaOrigin, doc_wxRibbonPanel_GetClientAreaOrigin);
1603 
1604     return SIP_NULLPTR;
1605 }
1606 
1607 
1608 PyDoc_STRVAR(doc_wxRibbonPanel_Validate, "Validate(self) -> bool");
1609 
1610 extern "C" {static PyObject *meth_wxRibbonPanel_Validate(PyObject *, PyObject *);}
meth_wxRibbonPanel_Validate(PyObject * sipSelf,PyObject * sipArgs)1611 static PyObject *meth_wxRibbonPanel_Validate(PyObject *sipSelf, PyObject *sipArgs)
1612 {
1613     PyObject *sipParseErr = SIP_NULLPTR;
1614     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1615 
1616     {
1617          ::wxRibbonPanel *sipCpp;
1618 
1619         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonPanel, &sipCpp))
1620         {
1621             bool sipRes;
1622 
1623             PyErr_Clear();
1624 
1625             Py_BEGIN_ALLOW_THREADS
1626             sipRes = (sipSelfWasArg ? sipCpp-> ::wxRibbonPanel::Validate() : sipCpp->Validate());
1627             Py_END_ALLOW_THREADS
1628 
1629             if (PyErr_Occurred())
1630                 return 0;
1631 
1632             return PyBool_FromLong(sipRes);
1633         }
1634     }
1635 
1636     /* Raise an exception if the arguments couldn't be parsed. */
1637     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_Validate, doc_wxRibbonPanel_Validate);
1638 
1639     return SIP_NULLPTR;
1640 }
1641 
1642 
1643 PyDoc_STRVAR(doc_wxRibbonPanel_TransferDataToWindow, "TransferDataToWindow(self) -> bool");
1644 
1645 extern "C" {static PyObject *meth_wxRibbonPanel_TransferDataToWindow(PyObject *, PyObject *);}
meth_wxRibbonPanel_TransferDataToWindow(PyObject * sipSelf,PyObject * sipArgs)1646 static PyObject *meth_wxRibbonPanel_TransferDataToWindow(PyObject *sipSelf, PyObject *sipArgs)
1647 {
1648     PyObject *sipParseErr = SIP_NULLPTR;
1649     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1650 
1651     {
1652          ::wxRibbonPanel *sipCpp;
1653 
1654         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonPanel, &sipCpp))
1655         {
1656             bool sipRes;
1657 
1658             PyErr_Clear();
1659 
1660             Py_BEGIN_ALLOW_THREADS
1661             sipRes = (sipSelfWasArg ? sipCpp-> ::wxRibbonPanel::TransferDataToWindow() : sipCpp->TransferDataToWindow());
1662             Py_END_ALLOW_THREADS
1663 
1664             if (PyErr_Occurred())
1665                 return 0;
1666 
1667             return PyBool_FromLong(sipRes);
1668         }
1669     }
1670 
1671     /* Raise an exception if the arguments couldn't be parsed. */
1672     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_TransferDataToWindow, doc_wxRibbonPanel_TransferDataToWindow);
1673 
1674     return SIP_NULLPTR;
1675 }
1676 
1677 
1678 PyDoc_STRVAR(doc_wxRibbonPanel_TransferDataFromWindow, "TransferDataFromWindow(self) -> bool");
1679 
1680 extern "C" {static PyObject *meth_wxRibbonPanel_TransferDataFromWindow(PyObject *, PyObject *);}
meth_wxRibbonPanel_TransferDataFromWindow(PyObject * sipSelf,PyObject * sipArgs)1681 static PyObject *meth_wxRibbonPanel_TransferDataFromWindow(PyObject *sipSelf, PyObject *sipArgs)
1682 {
1683     PyObject *sipParseErr = SIP_NULLPTR;
1684     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1685 
1686     {
1687          ::wxRibbonPanel *sipCpp;
1688 
1689         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonPanel, &sipCpp))
1690         {
1691             bool sipRes;
1692 
1693             PyErr_Clear();
1694 
1695             Py_BEGIN_ALLOW_THREADS
1696             sipRes = (sipSelfWasArg ? sipCpp-> ::wxRibbonPanel::TransferDataFromWindow() : sipCpp->TransferDataFromWindow());
1697             Py_END_ALLOW_THREADS
1698 
1699             if (PyErr_Occurred())
1700                 return 0;
1701 
1702             return PyBool_FromLong(sipRes);
1703         }
1704     }
1705 
1706     /* Raise an exception if the arguments couldn't be parsed. */
1707     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_TransferDataFromWindow, doc_wxRibbonPanel_TransferDataFromWindow);
1708 
1709     return SIP_NULLPTR;
1710 }
1711 
1712 
1713 PyDoc_STRVAR(doc_wxRibbonPanel_InitDialog, "InitDialog(self)");
1714 
1715 extern "C" {static PyObject *meth_wxRibbonPanel_InitDialog(PyObject *, PyObject *);}
meth_wxRibbonPanel_InitDialog(PyObject * sipSelf,PyObject * sipArgs)1716 static PyObject *meth_wxRibbonPanel_InitDialog(PyObject *sipSelf, PyObject *sipArgs)
1717 {
1718     PyObject *sipParseErr = SIP_NULLPTR;
1719     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1720 
1721     {
1722          ::wxRibbonPanel *sipCpp;
1723 
1724         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonPanel, &sipCpp))
1725         {
1726             PyErr_Clear();
1727 
1728             Py_BEGIN_ALLOW_THREADS
1729             (sipSelfWasArg ? sipCpp-> ::wxRibbonPanel::InitDialog() : sipCpp->InitDialog());
1730             Py_END_ALLOW_THREADS
1731 
1732             if (PyErr_Occurred())
1733                 return 0;
1734 
1735             Py_INCREF(Py_None);
1736             return Py_None;
1737         }
1738     }
1739 
1740     /* Raise an exception if the arguments couldn't be parsed. */
1741     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_InitDialog, doc_wxRibbonPanel_InitDialog);
1742 
1743     return SIP_NULLPTR;
1744 }
1745 
1746 
1747 PyDoc_STRVAR(doc_wxRibbonPanel_AcceptsFocus, "AcceptsFocus(self) -> bool");
1748 
1749 extern "C" {static PyObject *meth_wxRibbonPanel_AcceptsFocus(PyObject *, PyObject *);}
meth_wxRibbonPanel_AcceptsFocus(PyObject * sipSelf,PyObject * sipArgs)1750 static PyObject *meth_wxRibbonPanel_AcceptsFocus(PyObject *sipSelf, PyObject *sipArgs)
1751 {
1752     PyObject *sipParseErr = SIP_NULLPTR;
1753     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1754 
1755     {
1756         const  ::wxRibbonPanel *sipCpp;
1757 
1758         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonPanel, &sipCpp))
1759         {
1760             bool sipRes;
1761 
1762             PyErr_Clear();
1763 
1764             Py_BEGIN_ALLOW_THREADS
1765             sipRes = (sipSelfWasArg ? sipCpp-> ::wxRibbonPanel::AcceptsFocus() : sipCpp->AcceptsFocus());
1766             Py_END_ALLOW_THREADS
1767 
1768             if (PyErr_Occurred())
1769                 return 0;
1770 
1771             return PyBool_FromLong(sipRes);
1772         }
1773     }
1774 
1775     /* Raise an exception if the arguments couldn't be parsed. */
1776     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_AcceptsFocus, doc_wxRibbonPanel_AcceptsFocus);
1777 
1778     return SIP_NULLPTR;
1779 }
1780 
1781 
1782 PyDoc_STRVAR(doc_wxRibbonPanel_AcceptsFocusRecursively, "AcceptsFocusRecursively(self) -> bool");
1783 
1784 extern "C" {static PyObject *meth_wxRibbonPanel_AcceptsFocusRecursively(PyObject *, PyObject *);}
meth_wxRibbonPanel_AcceptsFocusRecursively(PyObject * sipSelf,PyObject * sipArgs)1785 static PyObject *meth_wxRibbonPanel_AcceptsFocusRecursively(PyObject *sipSelf, PyObject *sipArgs)
1786 {
1787     PyObject *sipParseErr = SIP_NULLPTR;
1788     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1789 
1790     {
1791         const  ::wxRibbonPanel *sipCpp;
1792 
1793         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonPanel, &sipCpp))
1794         {
1795             bool sipRes;
1796 
1797             PyErr_Clear();
1798 
1799             Py_BEGIN_ALLOW_THREADS
1800             sipRes = (sipSelfWasArg ? sipCpp-> ::wxRibbonPanel::AcceptsFocusRecursively() : sipCpp->AcceptsFocusRecursively());
1801             Py_END_ALLOW_THREADS
1802 
1803             if (PyErr_Occurred())
1804                 return 0;
1805 
1806             return PyBool_FromLong(sipRes);
1807         }
1808     }
1809 
1810     /* Raise an exception if the arguments couldn't be parsed. */
1811     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_AcceptsFocusRecursively, doc_wxRibbonPanel_AcceptsFocusRecursively);
1812 
1813     return SIP_NULLPTR;
1814 }
1815 
1816 
1817 PyDoc_STRVAR(doc_wxRibbonPanel_AcceptsFocusFromKeyboard, "AcceptsFocusFromKeyboard(self) -> bool");
1818 
1819 extern "C" {static PyObject *meth_wxRibbonPanel_AcceptsFocusFromKeyboard(PyObject *, PyObject *);}
meth_wxRibbonPanel_AcceptsFocusFromKeyboard(PyObject * sipSelf,PyObject * sipArgs)1820 static PyObject *meth_wxRibbonPanel_AcceptsFocusFromKeyboard(PyObject *sipSelf, PyObject *sipArgs)
1821 {
1822     PyObject *sipParseErr = SIP_NULLPTR;
1823     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1824 
1825     {
1826         const  ::wxRibbonPanel *sipCpp;
1827 
1828         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonPanel, &sipCpp))
1829         {
1830             bool sipRes;
1831 
1832             PyErr_Clear();
1833 
1834             Py_BEGIN_ALLOW_THREADS
1835             sipRes = (sipSelfWasArg ? sipCpp-> ::wxRibbonPanel::AcceptsFocusFromKeyboard() : sipCpp->AcceptsFocusFromKeyboard());
1836             Py_END_ALLOW_THREADS
1837 
1838             if (PyErr_Occurred())
1839                 return 0;
1840 
1841             return PyBool_FromLong(sipRes);
1842         }
1843     }
1844 
1845     /* Raise an exception if the arguments couldn't be parsed. */
1846     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_AcceptsFocusFromKeyboard, doc_wxRibbonPanel_AcceptsFocusFromKeyboard);
1847 
1848     return SIP_NULLPTR;
1849 }
1850 
1851 
1852 PyDoc_STRVAR(doc_wxRibbonPanel_AddChild, "AddChild(self, child: WindowBase)");
1853 
1854 extern "C" {static PyObject *meth_wxRibbonPanel_AddChild(PyObject *, PyObject *, PyObject *);}
meth_wxRibbonPanel_AddChild(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1855 static PyObject *meth_wxRibbonPanel_AddChild(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1856 {
1857     PyObject *sipParseErr = SIP_NULLPTR;
1858     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1859 
1860     {
1861          ::wxWindowBase* child;
1862          ::wxRibbonPanel *sipCpp;
1863 
1864         static const char *sipKwdList[] = {
1865             sipName_child,
1866         };
1867 
1868         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8", &sipSelf, sipType_wxRibbonPanel, &sipCpp, sipType_wxWindowBase, &child))
1869         {
1870             PyErr_Clear();
1871 
1872             Py_BEGIN_ALLOW_THREADS
1873             (sipSelfWasArg ? sipCpp-> ::wxRibbonPanel::AddChild(child) : sipCpp->AddChild(child));
1874             Py_END_ALLOW_THREADS
1875 
1876             if (PyErr_Occurred())
1877                 return 0;
1878 
1879             Py_INCREF(Py_None);
1880             return Py_None;
1881         }
1882     }
1883 
1884     /* Raise an exception if the arguments couldn't be parsed. */
1885     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_AddChild, doc_wxRibbonPanel_AddChild);
1886 
1887     return SIP_NULLPTR;
1888 }
1889 
1890 
1891 PyDoc_STRVAR(doc_wxRibbonPanel_RemoveChild, "RemoveChild(self, child: WindowBase)");
1892 
1893 extern "C" {static PyObject *meth_wxRibbonPanel_RemoveChild(PyObject *, PyObject *, PyObject *);}
meth_wxRibbonPanel_RemoveChild(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1894 static PyObject *meth_wxRibbonPanel_RemoveChild(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1895 {
1896     PyObject *sipParseErr = SIP_NULLPTR;
1897     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1898 
1899     {
1900          ::wxWindowBase* child;
1901          ::wxRibbonPanel *sipCpp;
1902 
1903         static const char *sipKwdList[] = {
1904             sipName_child,
1905         };
1906 
1907         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8", &sipSelf, sipType_wxRibbonPanel, &sipCpp, sipType_wxWindowBase, &child))
1908         {
1909             PyErr_Clear();
1910 
1911             Py_BEGIN_ALLOW_THREADS
1912             (sipSelfWasArg ? sipCpp-> ::wxRibbonPanel::RemoveChild(child) : sipCpp->RemoveChild(child));
1913             Py_END_ALLOW_THREADS
1914 
1915             if (PyErr_Occurred())
1916                 return 0;
1917 
1918             Py_INCREF(Py_None);
1919             return Py_None;
1920         }
1921     }
1922 
1923     /* Raise an exception if the arguments couldn't be parsed. */
1924     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_RemoveChild, doc_wxRibbonPanel_RemoveChild);
1925 
1926     return SIP_NULLPTR;
1927 }
1928 
1929 
1930 PyDoc_STRVAR(doc_wxRibbonPanel_InheritAttributes, "InheritAttributes(self)");
1931 
1932 extern "C" {static PyObject *meth_wxRibbonPanel_InheritAttributes(PyObject *, PyObject *);}
meth_wxRibbonPanel_InheritAttributes(PyObject * sipSelf,PyObject * sipArgs)1933 static PyObject *meth_wxRibbonPanel_InheritAttributes(PyObject *sipSelf, PyObject *sipArgs)
1934 {
1935     PyObject *sipParseErr = SIP_NULLPTR;
1936     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1937 
1938     {
1939          ::wxRibbonPanel *sipCpp;
1940 
1941         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonPanel, &sipCpp))
1942         {
1943             PyErr_Clear();
1944 
1945             Py_BEGIN_ALLOW_THREADS
1946             (sipSelfWasArg ? sipCpp-> ::wxRibbonPanel::InheritAttributes() : sipCpp->InheritAttributes());
1947             Py_END_ALLOW_THREADS
1948 
1949             if (PyErr_Occurred())
1950                 return 0;
1951 
1952             Py_INCREF(Py_None);
1953             return Py_None;
1954         }
1955     }
1956 
1957     /* Raise an exception if the arguments couldn't be parsed. */
1958     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_InheritAttributes, doc_wxRibbonPanel_InheritAttributes);
1959 
1960     return SIP_NULLPTR;
1961 }
1962 
1963 
1964 PyDoc_STRVAR(doc_wxRibbonPanel_ShouldInheritColours, "ShouldInheritColours(self) -> bool");
1965 
1966 extern "C" {static PyObject *meth_wxRibbonPanel_ShouldInheritColours(PyObject *, PyObject *);}
meth_wxRibbonPanel_ShouldInheritColours(PyObject * sipSelf,PyObject * sipArgs)1967 static PyObject *meth_wxRibbonPanel_ShouldInheritColours(PyObject *sipSelf, PyObject *sipArgs)
1968 {
1969     PyObject *sipParseErr = SIP_NULLPTR;
1970     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1971 
1972     {
1973         const  ::wxRibbonPanel *sipCpp;
1974 
1975         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonPanel, &sipCpp))
1976         {
1977             bool sipRes;
1978 
1979             PyErr_Clear();
1980 
1981             Py_BEGIN_ALLOW_THREADS
1982             sipRes = (sipSelfWasArg ? sipCpp-> ::wxRibbonPanel::ShouldInheritColours() : sipCpp->ShouldInheritColours());
1983             Py_END_ALLOW_THREADS
1984 
1985             if (PyErr_Occurred())
1986                 return 0;
1987 
1988             return PyBool_FromLong(sipRes);
1989         }
1990     }
1991 
1992     /* Raise an exception if the arguments couldn't be parsed. */
1993     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_ShouldInheritColours, doc_wxRibbonPanel_ShouldInheritColours);
1994 
1995     return SIP_NULLPTR;
1996 }
1997 
1998 
1999 PyDoc_STRVAR(doc_wxRibbonPanel_OnInternalIdle, "OnInternalIdle(self)");
2000 
2001 extern "C" {static PyObject *meth_wxRibbonPanel_OnInternalIdle(PyObject *, PyObject *);}
meth_wxRibbonPanel_OnInternalIdle(PyObject * sipSelf,PyObject * sipArgs)2002 static PyObject *meth_wxRibbonPanel_OnInternalIdle(PyObject *sipSelf, PyObject *sipArgs)
2003 {
2004     PyObject *sipParseErr = SIP_NULLPTR;
2005     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2006 
2007     {
2008          ::wxRibbonPanel *sipCpp;
2009 
2010         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonPanel, &sipCpp))
2011         {
2012             PyErr_Clear();
2013 
2014             Py_BEGIN_ALLOW_THREADS
2015             (sipSelfWasArg ? sipCpp-> ::wxRibbonPanel::OnInternalIdle() : sipCpp->OnInternalIdle());
2016             Py_END_ALLOW_THREADS
2017 
2018             if (PyErr_Occurred())
2019                 return 0;
2020 
2021             Py_INCREF(Py_None);
2022             return Py_None;
2023         }
2024     }
2025 
2026     /* Raise an exception if the arguments couldn't be parsed. */
2027     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_OnInternalIdle, doc_wxRibbonPanel_OnInternalIdle);
2028 
2029     return SIP_NULLPTR;
2030 }
2031 
2032 
2033 PyDoc_STRVAR(doc_wxRibbonPanel_GetMainWindowOfCompositeControl, "GetMainWindowOfCompositeControl(self) -> Window");
2034 
2035 extern "C" {static PyObject *meth_wxRibbonPanel_GetMainWindowOfCompositeControl(PyObject *, PyObject *);}
meth_wxRibbonPanel_GetMainWindowOfCompositeControl(PyObject * sipSelf,PyObject * sipArgs)2036 static PyObject *meth_wxRibbonPanel_GetMainWindowOfCompositeControl(PyObject *sipSelf, PyObject *sipArgs)
2037 {
2038     PyObject *sipParseErr = SIP_NULLPTR;
2039     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2040 
2041     {
2042          ::wxRibbonPanel *sipCpp;
2043 
2044         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonPanel, &sipCpp))
2045         {
2046              ::wxWindow*sipRes;
2047 
2048             PyErr_Clear();
2049 
2050             Py_BEGIN_ALLOW_THREADS
2051             sipRes = (sipSelfWasArg ? sipCpp-> ::wxRibbonPanel::GetMainWindowOfCompositeControl() : sipCpp->GetMainWindowOfCompositeControl());
2052             Py_END_ALLOW_THREADS
2053 
2054             if (PyErr_Occurred())
2055                 return 0;
2056 
2057             return sipConvertFromType(sipRes,sipType_wxWindow,SIP_NULLPTR);
2058         }
2059     }
2060 
2061     /* Raise an exception if the arguments couldn't be parsed. */
2062     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_GetMainWindowOfCompositeControl, doc_wxRibbonPanel_GetMainWindowOfCompositeControl);
2063 
2064     return SIP_NULLPTR;
2065 }
2066 
2067 
2068 PyDoc_STRVAR(doc_wxRibbonPanel_InformFirstDirection, "InformFirstDirection(self, direction: int, size: int, availableOtherDir: int) -> bool");
2069 
2070 extern "C" {static PyObject *meth_wxRibbonPanel_InformFirstDirection(PyObject *, PyObject *, PyObject *);}
meth_wxRibbonPanel_InformFirstDirection(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2071 static PyObject *meth_wxRibbonPanel_InformFirstDirection(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2072 {
2073     PyObject *sipParseErr = SIP_NULLPTR;
2074     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2075 
2076     {
2077         int direction;
2078         int size;
2079         int availableOtherDir;
2080          ::wxRibbonPanel *sipCpp;
2081 
2082         static const char *sipKwdList[] = {
2083             sipName_direction,
2084             sipName_size,
2085             sipName_availableOtherDir,
2086         };
2087 
2088         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biii", &sipSelf, sipType_wxRibbonPanel, &sipCpp, &direction, &size, &availableOtherDir))
2089         {
2090             bool sipRes;
2091 
2092             PyErr_Clear();
2093 
2094             Py_BEGIN_ALLOW_THREADS
2095             sipRes = (sipSelfWasArg ? sipCpp-> ::wxRibbonPanel::InformFirstDirection(direction,size,availableOtherDir) : sipCpp->InformFirstDirection(direction,size,availableOtherDir));
2096             Py_END_ALLOW_THREADS
2097 
2098             if (PyErr_Occurred())
2099                 return 0;
2100 
2101             return PyBool_FromLong(sipRes);
2102         }
2103     }
2104 
2105     /* Raise an exception if the arguments couldn't be parsed. */
2106     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_InformFirstDirection, doc_wxRibbonPanel_InformFirstDirection);
2107 
2108     return SIP_NULLPTR;
2109 }
2110 
2111 
2112 PyDoc_STRVAR(doc_wxRibbonPanel_SetCanFocus, "SetCanFocus(self, canFocus: bool)");
2113 
2114 extern "C" {static PyObject *meth_wxRibbonPanel_SetCanFocus(PyObject *, PyObject *, PyObject *);}
meth_wxRibbonPanel_SetCanFocus(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2115 static PyObject *meth_wxRibbonPanel_SetCanFocus(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2116 {
2117     PyObject *sipParseErr = SIP_NULLPTR;
2118     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2119 
2120     {
2121         bool canFocus;
2122          ::wxRibbonPanel *sipCpp;
2123 
2124         static const char *sipKwdList[] = {
2125             sipName_canFocus,
2126         };
2127 
2128         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bb", &sipSelf, sipType_wxRibbonPanel, &sipCpp, &canFocus))
2129         {
2130             PyErr_Clear();
2131 
2132             Py_BEGIN_ALLOW_THREADS
2133             (sipSelfWasArg ? sipCpp-> ::wxRibbonPanel::SetCanFocus(canFocus) : sipCpp->SetCanFocus(canFocus));
2134             Py_END_ALLOW_THREADS
2135 
2136             if (PyErr_Occurred())
2137                 return 0;
2138 
2139             Py_INCREF(Py_None);
2140             return Py_None;
2141         }
2142     }
2143 
2144     /* Raise an exception if the arguments couldn't be parsed. */
2145     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_SetCanFocus, doc_wxRibbonPanel_SetCanFocus);
2146 
2147     return SIP_NULLPTR;
2148 }
2149 
2150 
2151 PyDoc_STRVAR(doc_wxRibbonPanel_Destroy, "Destroy(self) -> bool");
2152 
2153 extern "C" {static PyObject *meth_wxRibbonPanel_Destroy(PyObject *, PyObject *);}
meth_wxRibbonPanel_Destroy(PyObject * sipSelf,PyObject * sipArgs)2154 static PyObject *meth_wxRibbonPanel_Destroy(PyObject *sipSelf, PyObject *sipArgs)
2155 {
2156     PyObject *sipParseErr = SIP_NULLPTR;
2157     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2158 
2159     {
2160          ::wxRibbonPanel *sipCpp;
2161 
2162         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonPanel, &sipCpp))
2163         {
2164             bool sipRes;
2165 
2166             PyErr_Clear();
2167 
2168             Py_BEGIN_ALLOW_THREADS
2169             sipRes = (sipSelfWasArg ? sipCpp-> ::wxRibbonPanel::Destroy() : sipCpp->Destroy());
2170             Py_END_ALLOW_THREADS
2171 
2172             if (PyErr_Occurred())
2173                 return 0;
2174 
2175             return PyBool_FromLong(sipRes);
2176         }
2177     }
2178 
2179     /* Raise an exception if the arguments couldn't be parsed. */
2180     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_Destroy, doc_wxRibbonPanel_Destroy);
2181 
2182     return SIP_NULLPTR;
2183 }
2184 
2185 
2186 PyDoc_STRVAR(doc_wxRibbonPanel_SetValidator, "SetValidator(self, validator: Validator)");
2187 
2188 extern "C" {static PyObject *meth_wxRibbonPanel_SetValidator(PyObject *, PyObject *, PyObject *);}
meth_wxRibbonPanel_SetValidator(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2189 static PyObject *meth_wxRibbonPanel_SetValidator(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2190 {
2191     PyObject *sipParseErr = SIP_NULLPTR;
2192     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2193 
2194     {
2195         const  ::wxValidator* validator;
2196          ::wxRibbonPanel *sipCpp;
2197 
2198         static const char *sipKwdList[] = {
2199             sipName_validator,
2200         };
2201 
2202         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxRibbonPanel, &sipCpp, sipType_wxValidator, &validator))
2203         {
2204             PyErr_Clear();
2205 
2206             Py_BEGIN_ALLOW_THREADS
2207             (sipSelfWasArg ? sipCpp-> ::wxRibbonPanel::SetValidator(*validator) : sipCpp->SetValidator(*validator));
2208             Py_END_ALLOW_THREADS
2209 
2210             if (PyErr_Occurred())
2211                 return 0;
2212 
2213             Py_INCREF(Py_None);
2214             return Py_None;
2215         }
2216     }
2217 
2218     /* Raise an exception if the arguments couldn't be parsed. */
2219     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_SetValidator, doc_wxRibbonPanel_SetValidator);
2220 
2221     return SIP_NULLPTR;
2222 }
2223 
2224 
2225 PyDoc_STRVAR(doc_wxRibbonPanel_GetValidator, "GetValidator(self) -> Validator");
2226 
2227 extern "C" {static PyObject *meth_wxRibbonPanel_GetValidator(PyObject *, PyObject *);}
meth_wxRibbonPanel_GetValidator(PyObject * sipSelf,PyObject * sipArgs)2228 static PyObject *meth_wxRibbonPanel_GetValidator(PyObject *sipSelf, PyObject *sipArgs)
2229 {
2230     PyObject *sipParseErr = SIP_NULLPTR;
2231     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2232 
2233     {
2234          ::wxRibbonPanel *sipCpp;
2235 
2236         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonPanel, &sipCpp))
2237         {
2238              ::wxValidator*sipRes;
2239 
2240             PyErr_Clear();
2241 
2242             Py_BEGIN_ALLOW_THREADS
2243             sipRes = (sipSelfWasArg ? sipCpp-> ::wxRibbonPanel::GetValidator() : sipCpp->GetValidator());
2244             Py_END_ALLOW_THREADS
2245 
2246             if (PyErr_Occurred())
2247                 return 0;
2248 
2249             return sipConvertFromType(sipRes,sipType_wxValidator,SIP_NULLPTR);
2250         }
2251     }
2252 
2253     /* Raise an exception if the arguments couldn't be parsed. */
2254     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_GetValidator, doc_wxRibbonPanel_GetValidator);
2255 
2256     return SIP_NULLPTR;
2257 }
2258 
2259 
2260 PyDoc_STRVAR(doc_wxRibbonPanel_ProcessEvent, "ProcessEvent(self, event: Event) -> bool");
2261 
2262 extern "C" {static PyObject *meth_wxRibbonPanel_ProcessEvent(PyObject *, PyObject *, PyObject *);}
meth_wxRibbonPanel_ProcessEvent(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2263 static PyObject *meth_wxRibbonPanel_ProcessEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2264 {
2265     PyObject *sipParseErr = SIP_NULLPTR;
2266     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2267 
2268     {
2269          ::wxEvent* event;
2270         sipwxRibbonPanel *sipCpp;
2271 
2272         static const char *sipKwdList[] = {
2273             sipName_event,
2274         };
2275 
2276         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxRibbonPanel, &sipCpp, sipType_wxEvent, &event))
2277         {
2278             bool sipRes;
2279 
2280             PyErr_Clear();
2281 
2282             Py_BEGIN_ALLOW_THREADS
2283             sipRes = sipCpp->sipProtectVirt_ProcessEvent(sipSelfWasArg,*event);
2284             Py_END_ALLOW_THREADS
2285 
2286             if (PyErr_Occurred())
2287                 return 0;
2288 
2289             return PyBool_FromLong(sipRes);
2290         }
2291     }
2292 
2293     /* Raise an exception if the arguments couldn't be parsed. */
2294     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_ProcessEvent, doc_wxRibbonPanel_ProcessEvent);
2295 
2296     return SIP_NULLPTR;
2297 }
2298 
2299 
2300 PyDoc_STRVAR(doc_wxRibbonPanel_DoEnable, "DoEnable(self, enable: bool)");
2301 
2302 extern "C" {static PyObject *meth_wxRibbonPanel_DoEnable(PyObject *, PyObject *, PyObject *);}
meth_wxRibbonPanel_DoEnable(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2303 static PyObject *meth_wxRibbonPanel_DoEnable(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2304 {
2305     PyObject *sipParseErr = SIP_NULLPTR;
2306     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2307 
2308     {
2309         bool enable;
2310         sipwxRibbonPanel *sipCpp;
2311 
2312         static const char *sipKwdList[] = {
2313             sipName_enable,
2314         };
2315 
2316         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bb", &sipSelf, sipType_wxRibbonPanel, &sipCpp, &enable))
2317         {
2318             PyErr_Clear();
2319 
2320             Py_BEGIN_ALLOW_THREADS
2321             sipCpp->sipProtectVirt_DoEnable(sipSelfWasArg,enable);
2322             Py_END_ALLOW_THREADS
2323 
2324             if (PyErr_Occurred())
2325                 return 0;
2326 
2327             Py_INCREF(Py_None);
2328             return Py_None;
2329         }
2330     }
2331 
2332     /* Raise an exception if the arguments couldn't be parsed. */
2333     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_DoEnable, doc_wxRibbonPanel_DoEnable);
2334 
2335     return SIP_NULLPTR;
2336 }
2337 
2338 
2339 PyDoc_STRVAR(doc_wxRibbonPanel_DoGetPosition, "DoGetPosition(self) -> Tuple[int, int]");
2340 
2341 extern "C" {static PyObject *meth_wxRibbonPanel_DoGetPosition(PyObject *, PyObject *, PyObject *);}
meth_wxRibbonPanel_DoGetPosition(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2342 static PyObject *meth_wxRibbonPanel_DoGetPosition(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2343 {
2344     PyObject *sipParseErr = SIP_NULLPTR;
2345     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2346 
2347     {
2348         int x;
2349         int y;
2350         const sipwxRibbonPanel *sipCpp;
2351 
2352         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "B", &sipSelf, sipType_wxRibbonPanel, &sipCpp))
2353         {
2354             PyErr_Clear();
2355 
2356             Py_BEGIN_ALLOW_THREADS
2357             sipCpp->sipProtectVirt_DoGetPosition(sipSelfWasArg,&x,&y);
2358             Py_END_ALLOW_THREADS
2359 
2360             if (PyErr_Occurred())
2361                 return 0;
2362 
2363             return sipBuildResult(0,"(ii)",x,y);
2364         }
2365     }
2366 
2367     /* Raise an exception if the arguments couldn't be parsed. */
2368     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_DoGetPosition, doc_wxRibbonPanel_DoGetPosition);
2369 
2370     return SIP_NULLPTR;
2371 }
2372 
2373 
2374 PyDoc_STRVAR(doc_wxRibbonPanel_DoGetSize, "DoGetSize(self) -> Tuple[int, int]");
2375 
2376 extern "C" {static PyObject *meth_wxRibbonPanel_DoGetSize(PyObject *, PyObject *, PyObject *);}
meth_wxRibbonPanel_DoGetSize(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2377 static PyObject *meth_wxRibbonPanel_DoGetSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2378 {
2379     PyObject *sipParseErr = SIP_NULLPTR;
2380     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2381 
2382     {
2383         int width;
2384         int height;
2385         const sipwxRibbonPanel *sipCpp;
2386 
2387         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "B", &sipSelf, sipType_wxRibbonPanel, &sipCpp))
2388         {
2389             PyErr_Clear();
2390 
2391             Py_BEGIN_ALLOW_THREADS
2392             sipCpp->sipProtectVirt_DoGetSize(sipSelfWasArg,&width,&height);
2393             Py_END_ALLOW_THREADS
2394 
2395             if (PyErr_Occurred())
2396                 return 0;
2397 
2398             return sipBuildResult(0,"(ii)",width,height);
2399         }
2400     }
2401 
2402     /* Raise an exception if the arguments couldn't be parsed. */
2403     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_DoGetSize, doc_wxRibbonPanel_DoGetSize);
2404 
2405     return SIP_NULLPTR;
2406 }
2407 
2408 
2409 PyDoc_STRVAR(doc_wxRibbonPanel_DoGetClientSize, "DoGetClientSize(self) -> Tuple[int, int]");
2410 
2411 extern "C" {static PyObject *meth_wxRibbonPanel_DoGetClientSize(PyObject *, PyObject *, PyObject *);}
meth_wxRibbonPanel_DoGetClientSize(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2412 static PyObject *meth_wxRibbonPanel_DoGetClientSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2413 {
2414     PyObject *sipParseErr = SIP_NULLPTR;
2415     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2416 
2417     {
2418         int width;
2419         int height;
2420         const sipwxRibbonPanel *sipCpp;
2421 
2422         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "B", &sipSelf, sipType_wxRibbonPanel, &sipCpp))
2423         {
2424             PyErr_Clear();
2425 
2426             Py_BEGIN_ALLOW_THREADS
2427             sipCpp->sipProtectVirt_DoGetClientSize(sipSelfWasArg,&width,&height);
2428             Py_END_ALLOW_THREADS
2429 
2430             if (PyErr_Occurred())
2431                 return 0;
2432 
2433             return sipBuildResult(0,"(ii)",width,height);
2434         }
2435     }
2436 
2437     /* Raise an exception if the arguments couldn't be parsed. */
2438     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_DoGetClientSize, doc_wxRibbonPanel_DoGetClientSize);
2439 
2440     return SIP_NULLPTR;
2441 }
2442 
2443 
2444 PyDoc_STRVAR(doc_wxRibbonPanel_DoGetBestSize, "DoGetBestSize(self) -> Size");
2445 
2446 extern "C" {static PyObject *meth_wxRibbonPanel_DoGetBestSize(PyObject *, PyObject *);}
meth_wxRibbonPanel_DoGetBestSize(PyObject * sipSelf,PyObject * sipArgs)2447 static PyObject *meth_wxRibbonPanel_DoGetBestSize(PyObject *sipSelf, PyObject *sipArgs)
2448 {
2449     PyObject *sipParseErr = SIP_NULLPTR;
2450     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2451 
2452     {
2453         const sipwxRibbonPanel *sipCpp;
2454 
2455         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonPanel, &sipCpp))
2456         {
2457              ::wxSize*sipRes;
2458 
2459             PyErr_Clear();
2460 
2461             Py_BEGIN_ALLOW_THREADS
2462             sipRes = new  ::wxSize(sipCpp->sipProtectVirt_DoGetBestSize(sipSelfWasArg));
2463             Py_END_ALLOW_THREADS
2464 
2465             if (PyErr_Occurred())
2466                 return 0;
2467 
2468             return sipConvertFromNewType(sipRes,sipType_wxSize,SIP_NULLPTR);
2469         }
2470     }
2471 
2472     /* Raise an exception if the arguments couldn't be parsed. */
2473     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_DoGetBestSize, doc_wxRibbonPanel_DoGetBestSize);
2474 
2475     return SIP_NULLPTR;
2476 }
2477 
2478 
2479 PyDoc_STRVAR(doc_wxRibbonPanel_DoGetBestClientSize, "DoGetBestClientSize(self) -> Size");
2480 
2481 extern "C" {static PyObject *meth_wxRibbonPanel_DoGetBestClientSize(PyObject *, PyObject *);}
meth_wxRibbonPanel_DoGetBestClientSize(PyObject * sipSelf,PyObject * sipArgs)2482 static PyObject *meth_wxRibbonPanel_DoGetBestClientSize(PyObject *sipSelf, PyObject *sipArgs)
2483 {
2484     PyObject *sipParseErr = SIP_NULLPTR;
2485     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2486 
2487     {
2488         const sipwxRibbonPanel *sipCpp;
2489 
2490         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonPanel, &sipCpp))
2491         {
2492              ::wxSize*sipRes;
2493 
2494             PyErr_Clear();
2495 
2496             Py_BEGIN_ALLOW_THREADS
2497             sipRes = new  ::wxSize(sipCpp->sipProtectVirt_DoGetBestClientSize(sipSelfWasArg));
2498             Py_END_ALLOW_THREADS
2499 
2500             if (PyErr_Occurred())
2501                 return 0;
2502 
2503             return sipConvertFromNewType(sipRes,sipType_wxSize,SIP_NULLPTR);
2504         }
2505     }
2506 
2507     /* Raise an exception if the arguments couldn't be parsed. */
2508     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_DoGetBestClientSize, doc_wxRibbonPanel_DoGetBestClientSize);
2509 
2510     return SIP_NULLPTR;
2511 }
2512 
2513 
2514 PyDoc_STRVAR(doc_wxRibbonPanel_DoSetSize, "DoSetSize(self, x: int, y: int, width: int, height: int, sizeFlags: int)");
2515 
2516 extern "C" {static PyObject *meth_wxRibbonPanel_DoSetSize(PyObject *, PyObject *, PyObject *);}
meth_wxRibbonPanel_DoSetSize(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2517 static PyObject *meth_wxRibbonPanel_DoSetSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2518 {
2519     PyObject *sipParseErr = SIP_NULLPTR;
2520     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2521 
2522     {
2523         int x;
2524         int y;
2525         int width;
2526         int height;
2527         int sizeFlags;
2528         sipwxRibbonPanel *sipCpp;
2529 
2530         static const char *sipKwdList[] = {
2531             sipName_x,
2532             sipName_y,
2533             sipName_width,
2534             sipName_height,
2535             sipName_sizeFlags,
2536         };
2537 
2538         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biiiii", &sipSelf, sipType_wxRibbonPanel, &sipCpp, &x, &y, &width, &height, &sizeFlags))
2539         {
2540             PyErr_Clear();
2541 
2542             Py_BEGIN_ALLOW_THREADS
2543             sipCpp->sipProtectVirt_DoSetSize(sipSelfWasArg,x,y,width,height,sizeFlags);
2544             Py_END_ALLOW_THREADS
2545 
2546             if (PyErr_Occurred())
2547                 return 0;
2548 
2549             Py_INCREF(Py_None);
2550             return Py_None;
2551         }
2552     }
2553 
2554     /* Raise an exception if the arguments couldn't be parsed. */
2555     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_DoSetSize, doc_wxRibbonPanel_DoSetSize);
2556 
2557     return SIP_NULLPTR;
2558 }
2559 
2560 
2561 PyDoc_STRVAR(doc_wxRibbonPanel_DoSetClientSize, "DoSetClientSize(self, width: int, height: int)");
2562 
2563 extern "C" {static PyObject *meth_wxRibbonPanel_DoSetClientSize(PyObject *, PyObject *, PyObject *);}
meth_wxRibbonPanel_DoSetClientSize(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2564 static PyObject *meth_wxRibbonPanel_DoSetClientSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2565 {
2566     PyObject *sipParseErr = SIP_NULLPTR;
2567     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2568 
2569     {
2570         int width;
2571         int height;
2572         sipwxRibbonPanel *sipCpp;
2573 
2574         static const char *sipKwdList[] = {
2575             sipName_width,
2576             sipName_height,
2577         };
2578 
2579         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bii", &sipSelf, sipType_wxRibbonPanel, &sipCpp, &width, &height))
2580         {
2581             PyErr_Clear();
2582 
2583             Py_BEGIN_ALLOW_THREADS
2584             sipCpp->sipProtectVirt_DoSetClientSize(sipSelfWasArg,width,height);
2585             Py_END_ALLOW_THREADS
2586 
2587             if (PyErr_Occurred())
2588                 return 0;
2589 
2590             Py_INCREF(Py_None);
2591             return Py_None;
2592         }
2593     }
2594 
2595     /* Raise an exception if the arguments couldn't be parsed. */
2596     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_DoSetClientSize, doc_wxRibbonPanel_DoSetClientSize);
2597 
2598     return SIP_NULLPTR;
2599 }
2600 
2601 
2602 PyDoc_STRVAR(doc_wxRibbonPanel_DoSetSizeHints, "DoSetSizeHints(self, minW: int, minH: int, maxW: int, maxH: int, incW: int, incH: int)");
2603 
2604 extern "C" {static PyObject *meth_wxRibbonPanel_DoSetSizeHints(PyObject *, PyObject *, PyObject *);}
meth_wxRibbonPanel_DoSetSizeHints(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2605 static PyObject *meth_wxRibbonPanel_DoSetSizeHints(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2606 {
2607     PyObject *sipParseErr = SIP_NULLPTR;
2608     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2609 
2610     {
2611         int minW;
2612         int minH;
2613         int maxW;
2614         int maxH;
2615         int incW;
2616         int incH;
2617         sipwxRibbonPanel *sipCpp;
2618 
2619         static const char *sipKwdList[] = {
2620             sipName_minW,
2621             sipName_minH,
2622             sipName_maxW,
2623             sipName_maxH,
2624             sipName_incW,
2625             sipName_incH,
2626         };
2627 
2628         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biiiiii", &sipSelf, sipType_wxRibbonPanel, &sipCpp, &minW, &minH, &maxW, &maxH, &incW, &incH))
2629         {
2630             PyErr_Clear();
2631 
2632             Py_BEGIN_ALLOW_THREADS
2633             sipCpp->sipProtectVirt_DoSetSizeHints(sipSelfWasArg,minW,minH,maxW,maxH,incW,incH);
2634             Py_END_ALLOW_THREADS
2635 
2636             if (PyErr_Occurred())
2637                 return 0;
2638 
2639             Py_INCREF(Py_None);
2640             return Py_None;
2641         }
2642     }
2643 
2644     /* Raise an exception if the arguments couldn't be parsed. */
2645     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_DoSetSizeHints, doc_wxRibbonPanel_DoSetSizeHints);
2646 
2647     return SIP_NULLPTR;
2648 }
2649 
2650 
2651 PyDoc_STRVAR(doc_wxRibbonPanel_DoGetBorderSize, "DoGetBorderSize(self) -> Size");
2652 
2653 extern "C" {static PyObject *meth_wxRibbonPanel_DoGetBorderSize(PyObject *, PyObject *);}
meth_wxRibbonPanel_DoGetBorderSize(PyObject * sipSelf,PyObject * sipArgs)2654 static PyObject *meth_wxRibbonPanel_DoGetBorderSize(PyObject *sipSelf, PyObject *sipArgs)
2655 {
2656     PyObject *sipParseErr = SIP_NULLPTR;
2657     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2658 
2659     {
2660         const sipwxRibbonPanel *sipCpp;
2661 
2662         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonPanel, &sipCpp))
2663         {
2664              ::wxSize*sipRes;
2665 
2666             PyErr_Clear();
2667 
2668             Py_BEGIN_ALLOW_THREADS
2669             sipRes = new  ::wxSize(sipCpp->sipProtectVirt_DoGetBorderSize(sipSelfWasArg));
2670             Py_END_ALLOW_THREADS
2671 
2672             if (PyErr_Occurred())
2673                 return 0;
2674 
2675             return sipConvertFromNewType(sipRes,sipType_wxSize,SIP_NULLPTR);
2676         }
2677     }
2678 
2679     /* Raise an exception if the arguments couldn't be parsed. */
2680     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_DoGetBorderSize, doc_wxRibbonPanel_DoGetBorderSize);
2681 
2682     return SIP_NULLPTR;
2683 }
2684 
2685 
2686 PyDoc_STRVAR(doc_wxRibbonPanel_DoMoveWindow, "DoMoveWindow(self, x: int, y: int, width: int, height: int)");
2687 
2688 extern "C" {static PyObject *meth_wxRibbonPanel_DoMoveWindow(PyObject *, PyObject *, PyObject *);}
meth_wxRibbonPanel_DoMoveWindow(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2689 static PyObject *meth_wxRibbonPanel_DoMoveWindow(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2690 {
2691     PyObject *sipParseErr = SIP_NULLPTR;
2692     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2693 
2694     {
2695         int x;
2696         int y;
2697         int width;
2698         int height;
2699         sipwxRibbonPanel *sipCpp;
2700 
2701         static const char *sipKwdList[] = {
2702             sipName_x,
2703             sipName_y,
2704             sipName_width,
2705             sipName_height,
2706         };
2707 
2708         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biiii", &sipSelf, sipType_wxRibbonPanel, &sipCpp, &x, &y, &width, &height))
2709         {
2710             PyErr_Clear();
2711 
2712             Py_BEGIN_ALLOW_THREADS
2713             sipCpp->sipProtectVirt_DoMoveWindow(sipSelfWasArg,x,y,width,height);
2714             Py_END_ALLOW_THREADS
2715 
2716             if (PyErr_Occurred())
2717                 return 0;
2718 
2719             Py_INCREF(Py_None);
2720             return Py_None;
2721         }
2722     }
2723 
2724     /* Raise an exception if the arguments couldn't be parsed. */
2725     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_DoMoveWindow, doc_wxRibbonPanel_DoMoveWindow);
2726 
2727     return SIP_NULLPTR;
2728 }
2729 
2730 
2731 PyDoc_STRVAR(doc_wxRibbonPanel_DoSetWindowVariant, "DoSetWindowVariant(self, variant: WindowVariant)");
2732 
2733 extern "C" {static PyObject *meth_wxRibbonPanel_DoSetWindowVariant(PyObject *, PyObject *, PyObject *);}
meth_wxRibbonPanel_DoSetWindowVariant(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2734 static PyObject *meth_wxRibbonPanel_DoSetWindowVariant(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2735 {
2736     PyObject *sipParseErr = SIP_NULLPTR;
2737     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2738 
2739     {
2740          ::wxWindowVariant variant;
2741         sipwxRibbonPanel *sipCpp;
2742 
2743         static const char *sipKwdList[] = {
2744             sipName_variant,
2745         };
2746 
2747         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BE", &sipSelf, sipType_wxRibbonPanel, &sipCpp, sipType_wxWindowVariant, &variant))
2748         {
2749             PyErr_Clear();
2750 
2751             Py_BEGIN_ALLOW_THREADS
2752             sipCpp->sipProtectVirt_DoSetWindowVariant(sipSelfWasArg,variant);
2753             Py_END_ALLOW_THREADS
2754 
2755             if (PyErr_Occurred())
2756                 return 0;
2757 
2758             Py_INCREF(Py_None);
2759             return Py_None;
2760         }
2761     }
2762 
2763     /* Raise an exception if the arguments couldn't be parsed. */
2764     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_DoSetWindowVariant, doc_wxRibbonPanel_DoSetWindowVariant);
2765 
2766     return SIP_NULLPTR;
2767 }
2768 
2769 
2770 PyDoc_STRVAR(doc_wxRibbonPanel_GetDefaultBorder, "GetDefaultBorder(self) -> Border");
2771 
2772 extern "C" {static PyObject *meth_wxRibbonPanel_GetDefaultBorder(PyObject *, PyObject *);}
meth_wxRibbonPanel_GetDefaultBorder(PyObject * sipSelf,PyObject * sipArgs)2773 static PyObject *meth_wxRibbonPanel_GetDefaultBorder(PyObject *sipSelf, PyObject *sipArgs)
2774 {
2775     PyObject *sipParseErr = SIP_NULLPTR;
2776     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2777 
2778     {
2779         const sipwxRibbonPanel *sipCpp;
2780 
2781         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonPanel, &sipCpp))
2782         {
2783              ::wxBorder sipRes;
2784 
2785             PyErr_Clear();
2786 
2787             Py_BEGIN_ALLOW_THREADS
2788             sipRes = sipCpp->sipProtectVirt_GetDefaultBorder(sipSelfWasArg);
2789             Py_END_ALLOW_THREADS
2790 
2791             if (PyErr_Occurred())
2792                 return 0;
2793 
2794             return sipConvertFromEnum(static_cast<int>(sipRes), sipType_wxBorder);
2795         }
2796     }
2797 
2798     /* Raise an exception if the arguments couldn't be parsed. */
2799     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_GetDefaultBorder, doc_wxRibbonPanel_GetDefaultBorder);
2800 
2801     return SIP_NULLPTR;
2802 }
2803 
2804 
2805 PyDoc_STRVAR(doc_wxRibbonPanel_GetDefaultBorderForControl, "GetDefaultBorderForControl(self) -> Border");
2806 
2807 extern "C" {static PyObject *meth_wxRibbonPanel_GetDefaultBorderForControl(PyObject *, PyObject *);}
meth_wxRibbonPanel_GetDefaultBorderForControl(PyObject * sipSelf,PyObject * sipArgs)2808 static PyObject *meth_wxRibbonPanel_GetDefaultBorderForControl(PyObject *sipSelf, PyObject *sipArgs)
2809 {
2810     PyObject *sipParseErr = SIP_NULLPTR;
2811     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2812 
2813     {
2814         const sipwxRibbonPanel *sipCpp;
2815 
2816         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonPanel, &sipCpp))
2817         {
2818              ::wxBorder sipRes;
2819 
2820             PyErr_Clear();
2821 
2822             Py_BEGIN_ALLOW_THREADS
2823             sipRes = sipCpp->sipProtectVirt_GetDefaultBorderForControl(sipSelfWasArg);
2824             Py_END_ALLOW_THREADS
2825 
2826             if (PyErr_Occurred())
2827                 return 0;
2828 
2829             return sipConvertFromEnum(static_cast<int>(sipRes), sipType_wxBorder);
2830         }
2831     }
2832 
2833     /* Raise an exception if the arguments couldn't be parsed. */
2834     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_GetDefaultBorderForControl, doc_wxRibbonPanel_GetDefaultBorderForControl);
2835 
2836     return SIP_NULLPTR;
2837 }
2838 
2839 
2840 PyDoc_STRVAR(doc_wxRibbonPanel_DoFreeze, "DoFreeze(self)");
2841 
2842 extern "C" {static PyObject *meth_wxRibbonPanel_DoFreeze(PyObject *, PyObject *);}
meth_wxRibbonPanel_DoFreeze(PyObject * sipSelf,PyObject * sipArgs)2843 static PyObject *meth_wxRibbonPanel_DoFreeze(PyObject *sipSelf, PyObject *sipArgs)
2844 {
2845     PyObject *sipParseErr = SIP_NULLPTR;
2846     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2847 
2848     {
2849         sipwxRibbonPanel *sipCpp;
2850 
2851         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonPanel, &sipCpp))
2852         {
2853             PyErr_Clear();
2854 
2855             Py_BEGIN_ALLOW_THREADS
2856             sipCpp->sipProtectVirt_DoFreeze(sipSelfWasArg);
2857             Py_END_ALLOW_THREADS
2858 
2859             if (PyErr_Occurred())
2860                 return 0;
2861 
2862             Py_INCREF(Py_None);
2863             return Py_None;
2864         }
2865     }
2866 
2867     /* Raise an exception if the arguments couldn't be parsed. */
2868     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_DoFreeze, doc_wxRibbonPanel_DoFreeze);
2869 
2870     return SIP_NULLPTR;
2871 }
2872 
2873 
2874 PyDoc_STRVAR(doc_wxRibbonPanel_DoThaw, "DoThaw(self)");
2875 
2876 extern "C" {static PyObject *meth_wxRibbonPanel_DoThaw(PyObject *, PyObject *);}
meth_wxRibbonPanel_DoThaw(PyObject * sipSelf,PyObject * sipArgs)2877 static PyObject *meth_wxRibbonPanel_DoThaw(PyObject *sipSelf, PyObject *sipArgs)
2878 {
2879     PyObject *sipParseErr = SIP_NULLPTR;
2880     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2881 
2882     {
2883         sipwxRibbonPanel *sipCpp;
2884 
2885         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonPanel, &sipCpp))
2886         {
2887             PyErr_Clear();
2888 
2889             Py_BEGIN_ALLOW_THREADS
2890             sipCpp->sipProtectVirt_DoThaw(sipSelfWasArg);
2891             Py_END_ALLOW_THREADS
2892 
2893             if (PyErr_Occurred())
2894                 return 0;
2895 
2896             Py_INCREF(Py_None);
2897             return Py_None;
2898         }
2899     }
2900 
2901     /* Raise an exception if the arguments couldn't be parsed. */
2902     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_DoThaw, doc_wxRibbonPanel_DoThaw);
2903 
2904     return SIP_NULLPTR;
2905 }
2906 
2907 
2908 PyDoc_STRVAR(doc_wxRibbonPanel_HasTransparentBackground, "HasTransparentBackground(self) -> bool");
2909 
2910 extern "C" {static PyObject *meth_wxRibbonPanel_HasTransparentBackground(PyObject *, PyObject *);}
meth_wxRibbonPanel_HasTransparentBackground(PyObject * sipSelf,PyObject * sipArgs)2911 static PyObject *meth_wxRibbonPanel_HasTransparentBackground(PyObject *sipSelf, PyObject *sipArgs)
2912 {
2913     PyObject *sipParseErr = SIP_NULLPTR;
2914     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2915 
2916     {
2917         sipwxRibbonPanel *sipCpp;
2918 
2919         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonPanel, &sipCpp))
2920         {
2921             bool sipRes;
2922 
2923             PyErr_Clear();
2924 
2925             Py_BEGIN_ALLOW_THREADS
2926             sipRes = sipCpp->sipProtectVirt_HasTransparentBackground(sipSelfWasArg);
2927             Py_END_ALLOW_THREADS
2928 
2929             if (PyErr_Occurred())
2930                 return 0;
2931 
2932             return PyBool_FromLong(sipRes);
2933         }
2934     }
2935 
2936     /* Raise an exception if the arguments couldn't be parsed. */
2937     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_HasTransparentBackground, doc_wxRibbonPanel_HasTransparentBackground);
2938 
2939     return SIP_NULLPTR;
2940 }
2941 
2942 
2943 PyDoc_STRVAR(doc_wxRibbonPanel_TryBefore, "TryBefore(self, event: Event) -> bool");
2944 
2945 extern "C" {static PyObject *meth_wxRibbonPanel_TryBefore(PyObject *, PyObject *, PyObject *);}
meth_wxRibbonPanel_TryBefore(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2946 static PyObject *meth_wxRibbonPanel_TryBefore(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2947 {
2948     PyObject *sipParseErr = SIP_NULLPTR;
2949     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2950 
2951     {
2952          ::wxEvent* event;
2953         sipwxRibbonPanel *sipCpp;
2954 
2955         static const char *sipKwdList[] = {
2956             sipName_event,
2957         };
2958 
2959         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxRibbonPanel, &sipCpp, sipType_wxEvent, &event))
2960         {
2961             bool sipRes;
2962 
2963             PyErr_Clear();
2964 
2965             Py_BEGIN_ALLOW_THREADS
2966             sipRes = sipCpp->sipProtectVirt_TryBefore(sipSelfWasArg,*event);
2967             Py_END_ALLOW_THREADS
2968 
2969             if (PyErr_Occurred())
2970                 return 0;
2971 
2972             return PyBool_FromLong(sipRes);
2973         }
2974     }
2975 
2976     /* Raise an exception if the arguments couldn't be parsed. */
2977     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_TryBefore, doc_wxRibbonPanel_TryBefore);
2978 
2979     return SIP_NULLPTR;
2980 }
2981 
2982 
2983 PyDoc_STRVAR(doc_wxRibbonPanel_TryAfter, "TryAfter(self, event: Event) -> bool");
2984 
2985 extern "C" {static PyObject *meth_wxRibbonPanel_TryAfter(PyObject *, PyObject *, PyObject *);}
meth_wxRibbonPanel_TryAfter(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2986 static PyObject *meth_wxRibbonPanel_TryAfter(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2987 {
2988     PyObject *sipParseErr = SIP_NULLPTR;
2989     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2990 
2991     {
2992          ::wxEvent* event;
2993         sipwxRibbonPanel *sipCpp;
2994 
2995         static const char *sipKwdList[] = {
2996             sipName_event,
2997         };
2998 
2999         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxRibbonPanel, &sipCpp, sipType_wxEvent, &event))
3000         {
3001             bool sipRes;
3002 
3003             PyErr_Clear();
3004 
3005             Py_BEGIN_ALLOW_THREADS
3006             sipRes = sipCpp->sipProtectVirt_TryAfter(sipSelfWasArg,*event);
3007             Py_END_ALLOW_THREADS
3008 
3009             if (PyErr_Occurred())
3010                 return 0;
3011 
3012             return PyBool_FromLong(sipRes);
3013         }
3014     }
3015 
3016     /* Raise an exception if the arguments couldn't be parsed. */
3017     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_TryAfter, doc_wxRibbonPanel_TryAfter);
3018 
3019     return SIP_NULLPTR;
3020 }
3021 
3022 
3023 PyDoc_STRVAR(doc_wxRibbonPanel_GetClassDefaultAttributes, "GetClassDefaultAttributes(variant=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes");
3024 
3025 extern "C" {static PyObject *meth_wxRibbonPanel_GetClassDefaultAttributes(PyObject *, PyObject *, PyObject *);}
meth_wxRibbonPanel_GetClassDefaultAttributes(PyObject *,PyObject * sipArgs,PyObject * sipKwds)3026 static PyObject *meth_wxRibbonPanel_GetClassDefaultAttributes(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
3027 {
3028     PyObject *sipParseErr = SIP_NULLPTR;
3029 
3030     {
3031          ::wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL;
3032 
3033         static const char *sipKwdList[] = {
3034             sipName_variant,
3035         };
3036 
3037         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "|E", sipType_wxWindowVariant, &variant))
3038         {
3039              ::wxVisualAttributes*sipRes;
3040 
3041         if (!wxPyCheckForApp()) return NULL;
3042 
3043             PyErr_Clear();
3044 
3045             Py_BEGIN_ALLOW_THREADS
3046             sipRes = new  ::wxVisualAttributes( ::wxRibbonPanel::GetClassDefaultAttributes(variant));
3047             Py_END_ALLOW_THREADS
3048 
3049             if (PyErr_Occurred())
3050                 return 0;
3051 
3052             return sipConvertFromNewType(sipRes,sipType_wxVisualAttributes,SIP_NULLPTR);
3053         }
3054     }
3055 
3056     /* Raise an exception if the arguments couldn't be parsed. */
3057     sipNoMethod(sipParseErr, sipName_RibbonPanel, sipName_GetClassDefaultAttributes, SIP_NULLPTR);
3058 
3059     return SIP_NULLPTR;
3060 }
3061 
3062 
3063 /* Cast a pointer to a type somewhere in its inheritance hierarchy. */
3064 extern "C" {static void *cast_wxRibbonPanel(void *, const sipTypeDef *);}
cast_wxRibbonPanel(void * sipCppV,const sipTypeDef * targetType)3065 static void *cast_wxRibbonPanel(void *sipCppV, const sipTypeDef *targetType)
3066 {
3067      ::wxRibbonPanel *sipCpp = reinterpret_cast< ::wxRibbonPanel *>(sipCppV);
3068 
3069     if (targetType == sipType_wxRibbonControl)
3070         return static_cast< ::wxRibbonControl *>(sipCpp);
3071 
3072     if (targetType == sipType_wxControl)
3073         return static_cast< ::wxControl *>(sipCpp);
3074 
3075     if (targetType == sipType_wxWindow)
3076         return static_cast< ::wxWindow *>(sipCpp);
3077 
3078     if (targetType == sipType_wxWindowBase)
3079         return static_cast< ::wxWindowBase *>(sipCpp);
3080 
3081     if (targetType == sipType_wxEvtHandler)
3082         return static_cast< ::wxEvtHandler *>(sipCpp);
3083 
3084     if (targetType == sipType_wxObject)
3085         return static_cast< ::wxObject *>(sipCpp);
3086 
3087     if (targetType == sipType_wxTrackable)
3088         return static_cast< ::wxTrackable *>(sipCpp);
3089 
3090     return sipCppV;
3091 }
3092 
3093 
3094 /* Call the instance's destructor. */
3095 extern "C" {static void release_wxRibbonPanel(void *, int);}
release_wxRibbonPanel(void * sipCppV,int sipState)3096 static void release_wxRibbonPanel(void *sipCppV, int sipState)
3097 {
3098     Py_BEGIN_ALLOW_THREADS
3099 
3100     if (sipState & SIP_DERIVED_CLASS)
3101         delete reinterpret_cast<sipwxRibbonPanel *>(sipCppV);
3102     else
3103         delete reinterpret_cast< ::wxRibbonPanel *>(sipCppV);
3104 
3105     Py_END_ALLOW_THREADS
3106 }
3107 
3108 
3109 extern "C" {static void dealloc_wxRibbonPanel(sipSimpleWrapper *);}
dealloc_wxRibbonPanel(sipSimpleWrapper * sipSelf)3110 static void dealloc_wxRibbonPanel(sipSimpleWrapper *sipSelf)
3111 {
3112     if (sipIsDerivedClass(sipSelf))
3113         reinterpret_cast<sipwxRibbonPanel *>(sipGetAddress(sipSelf))->sipPySelf = SIP_NULLPTR;
3114 
3115     if (sipIsOwnedByPython(sipSelf))
3116     {
3117         release_wxRibbonPanel(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
3118     }
3119 }
3120 
3121 
3122 extern "C" {static void *init_type_wxRibbonPanel(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
init_type_wxRibbonPanel(sipSimpleWrapper * sipSelf,PyObject * sipArgs,PyObject * sipKwds,PyObject ** sipUnused,PyObject ** sipOwner,PyObject ** sipParseErr)3123 static void *init_type_wxRibbonPanel(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
3124 {
3125     sipwxRibbonPanel *sipCpp = SIP_NULLPTR;
3126 
3127     {
3128         if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, ""))
3129         {
3130 
3131         if (!wxPyCheckForApp()) return NULL;
3132 
3133             PyErr_Clear();
3134 
3135             Py_BEGIN_ALLOW_THREADS
3136             sipCpp = new sipwxRibbonPanel();
3137             Py_END_ALLOW_THREADS
3138 
3139             if (PyErr_Occurred())
3140             {
3141                 delete sipCpp;
3142                 return SIP_NULLPTR;
3143             }
3144 
3145             sipCpp->sipPySelf = sipSelf;
3146 
3147             return sipCpp;
3148         }
3149     }
3150 
3151     {
3152          ::wxWindow* parent;
3153          ::wxWindowID id = wxID_ANY;
3154         const  ::wxString& labeldef = wxEmptyString;
3155         const  ::wxString* label = &labeldef;
3156         int labelState = 0;
3157         const  ::wxBitmap& minimised_icondef = wxNullBitmap;
3158         const  ::wxBitmap* minimised_icon = &minimised_icondef;
3159         const  ::wxPoint& posdef = wxDefaultPosition;
3160         const  ::wxPoint* pos = &posdef;
3161         int posState = 0;
3162         const  ::wxSize& sizedef = wxDefaultSize;
3163         const  ::wxSize* size = &sizedef;
3164         int sizeState = 0;
3165         long style = wxRIBBON_PANEL_DEFAULT_STYLE;
3166 
3167         static const char *sipKwdList[] = {
3168             sipName_parent,
3169             sipName_id,
3170             sipName_label,
3171             sipName_minimised_icon,
3172             sipName_pos,
3173             sipName_size,
3174             sipName_style,
3175         };
3176 
3177         if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "JH|iJ1J9J1J1l", sipType_wxWindow, &parent, sipOwner, &id, sipType_wxString,&label, &labelState, sipType_wxBitmap, &minimised_icon, sipType_wxPoint, &pos, &posState, sipType_wxSize, &size, &sizeState, &style))
3178         {
3179 
3180         if (!wxPyCheckForApp()) return NULL;
3181 
3182             PyErr_Clear();
3183 
3184             Py_BEGIN_ALLOW_THREADS
3185             sipCpp = new sipwxRibbonPanel(parent,id,*label,*minimised_icon,*pos,*size,style);
3186             Py_END_ALLOW_THREADS
3187             sipReleaseType(const_cast< ::wxString *>(label),sipType_wxString,labelState);
3188             sipReleaseType(const_cast< ::wxPoint *>(pos),sipType_wxPoint,posState);
3189             sipReleaseType(const_cast< ::wxSize *>(size),sipType_wxSize,sizeState);
3190 
3191             if (PyErr_Occurred())
3192             {
3193                 delete sipCpp;
3194                 return SIP_NULLPTR;
3195             }
3196 
3197             sipCpp->sipPySelf = sipSelf;
3198 
3199             return sipCpp;
3200         }
3201     }
3202 
3203     return SIP_NULLPTR;
3204 }
3205 
3206 
3207 /* Define this type's super-types. */
3208 static sipEncodedTypeDef supers_wxRibbonPanel[] = {{11, 255, 1}};
3209 
3210 
3211 static PyMethodDef methods_wxRibbonPanel[] = {
3212     {SIP_MLNAME_CAST(sipName_AcceptsFocus), meth_wxRibbonPanel_AcceptsFocus, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRibbonPanel_AcceptsFocus)},
3213     {SIP_MLNAME_CAST(sipName_AcceptsFocusFromKeyboard), meth_wxRibbonPanel_AcceptsFocusFromKeyboard, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRibbonPanel_AcceptsFocusFromKeyboard)},
3214     {SIP_MLNAME_CAST(sipName_AcceptsFocusRecursively), meth_wxRibbonPanel_AcceptsFocusRecursively, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRibbonPanel_AcceptsFocusRecursively)},
3215     {SIP_MLNAME_CAST(sipName_AddChild), SIP_MLMETH_CAST(meth_wxRibbonPanel_AddChild), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRibbonPanel_AddChild)},
3216     {SIP_MLNAME_CAST(sipName_CanAutoMinimise), meth_wxRibbonPanel_CanAutoMinimise, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRibbonPanel_CanAutoMinimise)},
3217     {SIP_MLNAME_CAST(sipName_Create), SIP_MLMETH_CAST(meth_wxRibbonPanel_Create), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRibbonPanel_Create)},
3218     {SIP_MLNAME_CAST(sipName_Destroy), meth_wxRibbonPanel_Destroy, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRibbonPanel_Destroy)},
3219     {SIP_MLNAME_CAST(sipName_DoEnable), SIP_MLMETH_CAST(meth_wxRibbonPanel_DoEnable), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRibbonPanel_DoEnable)},
3220     {SIP_MLNAME_CAST(sipName_DoFreeze), meth_wxRibbonPanel_DoFreeze, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRibbonPanel_DoFreeze)},
3221     {SIP_MLNAME_CAST(sipName_DoGetBestClientSize), meth_wxRibbonPanel_DoGetBestClientSize, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRibbonPanel_DoGetBestClientSize)},
3222     {SIP_MLNAME_CAST(sipName_DoGetBestSize), meth_wxRibbonPanel_DoGetBestSize, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRibbonPanel_DoGetBestSize)},
3223     {SIP_MLNAME_CAST(sipName_DoGetBorderSize), meth_wxRibbonPanel_DoGetBorderSize, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRibbonPanel_DoGetBorderSize)},
3224     {SIP_MLNAME_CAST(sipName_DoGetClientSize), SIP_MLMETH_CAST(meth_wxRibbonPanel_DoGetClientSize), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRibbonPanel_DoGetClientSize)},
3225     {SIP_MLNAME_CAST(sipName_DoGetNextLargerSize), SIP_MLMETH_CAST(meth_wxRibbonPanel_DoGetNextLargerSize), METH_VARARGS|METH_KEYWORDS, SIP_NULLPTR},
3226     {SIP_MLNAME_CAST(sipName_DoGetNextSmallerSize), SIP_MLMETH_CAST(meth_wxRibbonPanel_DoGetNextSmallerSize), METH_VARARGS|METH_KEYWORDS, SIP_NULLPTR},
3227     {SIP_MLNAME_CAST(sipName_DoGetPosition), SIP_MLMETH_CAST(meth_wxRibbonPanel_DoGetPosition), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRibbonPanel_DoGetPosition)},
3228     {SIP_MLNAME_CAST(sipName_DoGetSize), SIP_MLMETH_CAST(meth_wxRibbonPanel_DoGetSize), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRibbonPanel_DoGetSize)},
3229     {SIP_MLNAME_CAST(sipName_DoMoveWindow), SIP_MLMETH_CAST(meth_wxRibbonPanel_DoMoveWindow), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRibbonPanel_DoMoveWindow)},
3230     {SIP_MLNAME_CAST(sipName_DoSetClientSize), SIP_MLMETH_CAST(meth_wxRibbonPanel_DoSetClientSize), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRibbonPanel_DoSetClientSize)},
3231     {SIP_MLNAME_CAST(sipName_DoSetSize), SIP_MLMETH_CAST(meth_wxRibbonPanel_DoSetSize), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRibbonPanel_DoSetSize)},
3232     {SIP_MLNAME_CAST(sipName_DoSetSizeHints), SIP_MLMETH_CAST(meth_wxRibbonPanel_DoSetSizeHints), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRibbonPanel_DoSetSizeHints)},
3233     {SIP_MLNAME_CAST(sipName_DoSetWindowVariant), SIP_MLMETH_CAST(meth_wxRibbonPanel_DoSetWindowVariant), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRibbonPanel_DoSetWindowVariant)},
3234     {SIP_MLNAME_CAST(sipName_DoThaw), meth_wxRibbonPanel_DoThaw, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRibbonPanel_DoThaw)},
3235     {SIP_MLNAME_CAST(sipName_GetClassDefaultAttributes), SIP_MLMETH_CAST(meth_wxRibbonPanel_GetClassDefaultAttributes), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRibbonPanel_GetClassDefaultAttributes)},
3236     {SIP_MLNAME_CAST(sipName_GetClientAreaOrigin), meth_wxRibbonPanel_GetClientAreaOrigin, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRibbonPanel_GetClientAreaOrigin)},
3237     {SIP_MLNAME_CAST(sipName_GetDefaultBorder), meth_wxRibbonPanel_GetDefaultBorder, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRibbonPanel_GetDefaultBorder)},
3238     {SIP_MLNAME_CAST(sipName_GetDefaultBorderForControl), meth_wxRibbonPanel_GetDefaultBorderForControl, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRibbonPanel_GetDefaultBorderForControl)},
3239     {SIP_MLNAME_CAST(sipName_GetExpandedDummy), meth_wxRibbonPanel_GetExpandedDummy, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRibbonPanel_GetExpandedDummy)},
3240     {SIP_MLNAME_CAST(sipName_GetExpandedPanel), meth_wxRibbonPanel_GetExpandedPanel, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRibbonPanel_GetExpandedPanel)},
3241     {SIP_MLNAME_CAST(sipName_GetMainWindowOfCompositeControl), meth_wxRibbonPanel_GetMainWindowOfCompositeControl, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRibbonPanel_GetMainWindowOfCompositeControl)},
3242     {SIP_MLNAME_CAST(sipName_GetMinimisedIcon), meth_wxRibbonPanel_GetMinimisedIcon, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRibbonPanel_GetMinimisedIcon)},
3243     {SIP_MLNAME_CAST(sipName_GetValidator), meth_wxRibbonPanel_GetValidator, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRibbonPanel_GetValidator)},
3244     {SIP_MLNAME_CAST(sipName_HasExtButton), meth_wxRibbonPanel_HasExtButton, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRibbonPanel_HasExtButton)},
3245     {SIP_MLNAME_CAST(sipName_HasTransparentBackground), meth_wxRibbonPanel_HasTransparentBackground, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRibbonPanel_HasTransparentBackground)},
3246     {SIP_MLNAME_CAST(sipName_HideExpanded), meth_wxRibbonPanel_HideExpanded, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRibbonPanel_HideExpanded)},
3247     {SIP_MLNAME_CAST(sipName_InformFirstDirection), SIP_MLMETH_CAST(meth_wxRibbonPanel_InformFirstDirection), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRibbonPanel_InformFirstDirection)},
3248     {SIP_MLNAME_CAST(sipName_InheritAttributes), meth_wxRibbonPanel_InheritAttributes, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRibbonPanel_InheritAttributes)},
3249     {SIP_MLNAME_CAST(sipName_InitDialog), meth_wxRibbonPanel_InitDialog, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRibbonPanel_InitDialog)},
3250     {SIP_MLNAME_CAST(sipName_IsExtButtonHovered), meth_wxRibbonPanel_IsExtButtonHovered, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRibbonPanel_IsExtButtonHovered)},
3251     {SIP_MLNAME_CAST(sipName_IsHovered), meth_wxRibbonPanel_IsHovered, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRibbonPanel_IsHovered)},
3252     {SIP_MLNAME_CAST(sipName_IsMinimised), SIP_MLMETH_CAST(meth_wxRibbonPanel_IsMinimised), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRibbonPanel_IsMinimised)},
3253     {SIP_MLNAME_CAST(sipName_OnInternalIdle), meth_wxRibbonPanel_OnInternalIdle, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRibbonPanel_OnInternalIdle)},
3254     {SIP_MLNAME_CAST(sipName_ProcessEvent), SIP_MLMETH_CAST(meth_wxRibbonPanel_ProcessEvent), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRibbonPanel_ProcessEvent)},
3255     {SIP_MLNAME_CAST(sipName_Realize), meth_wxRibbonPanel_Realize, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRibbonPanel_Realize)},
3256     {SIP_MLNAME_CAST(sipName_RemoveChild), SIP_MLMETH_CAST(meth_wxRibbonPanel_RemoveChild), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRibbonPanel_RemoveChild)},
3257     {SIP_MLNAME_CAST(sipName_SendDestroyEvent), meth_wxRibbonPanel_SendDestroyEvent, METH_VARARGS, SIP_NULLPTR},
3258     {SIP_MLNAME_CAST(sipName_SetArtProvider), SIP_MLMETH_CAST(meth_wxRibbonPanel_SetArtProvider), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRibbonPanel_SetArtProvider)},
3259     {SIP_MLNAME_CAST(sipName_SetCanFocus), SIP_MLMETH_CAST(meth_wxRibbonPanel_SetCanFocus), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRibbonPanel_SetCanFocus)},
3260     {SIP_MLNAME_CAST(sipName_SetValidator), SIP_MLMETH_CAST(meth_wxRibbonPanel_SetValidator), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRibbonPanel_SetValidator)},
3261     {SIP_MLNAME_CAST(sipName_ShouldInheritColours), meth_wxRibbonPanel_ShouldInheritColours, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRibbonPanel_ShouldInheritColours)},
3262     {SIP_MLNAME_CAST(sipName_ShowExpanded), meth_wxRibbonPanel_ShowExpanded, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRibbonPanel_ShowExpanded)},
3263     {SIP_MLNAME_CAST(sipName_TransferDataFromWindow), meth_wxRibbonPanel_TransferDataFromWindow, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRibbonPanel_TransferDataFromWindow)},
3264     {SIP_MLNAME_CAST(sipName_TransferDataToWindow), meth_wxRibbonPanel_TransferDataToWindow, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRibbonPanel_TransferDataToWindow)},
3265     {SIP_MLNAME_CAST(sipName_TryAfter), SIP_MLMETH_CAST(meth_wxRibbonPanel_TryAfter), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRibbonPanel_TryAfter)},
3266     {SIP_MLNAME_CAST(sipName_TryBefore), SIP_MLMETH_CAST(meth_wxRibbonPanel_TryBefore), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxRibbonPanel_TryBefore)},
3267     {SIP_MLNAME_CAST(sipName_Validate), meth_wxRibbonPanel_Validate, METH_VARARGS, SIP_MLDOC_CAST(doc_wxRibbonPanel_Validate)}
3268 };
3269 
3270 sipVariableDef variables_wxRibbonPanel[] = {
3271     {PropertyVariable, sipName_MinimisedIcon, &methods_wxRibbonPanel[30], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
3272     {PropertyVariable, sipName_ExpandedPanel, &methods_wxRibbonPanel[28], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
3273     {PropertyVariable, sipName_ExpandedDummy, &methods_wxRibbonPanel[27], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
3274 };
3275 
3276 PyDoc_STRVAR(doc_wxRibbonPanel, "RibbonPanel()\n"
3277 "RibbonPanel(parent, id=wx.ID_ANY, label=wx.EmptyString, minimised_icon=wx.NullBitmap, pos=wx.DefaultPosition, size=wx.DefaultSize, style=RIBBON_PANEL_DEFAULT_STYLE)\n"
3278 "\n"
3279 "Serves as a container for a group of (ribbon) controls.");
3280 
3281 
3282 sipClassTypeDef sipTypeDef__ribbon_wxRibbonPanel = {
3283     {
3284         -1,
3285         SIP_NULLPTR,
3286         SIP_NULLPTR,
3287         SIP_TYPE_SCC|SIP_TYPE_CLASS,
3288         sipNameNr_wxRibbonPanel,
3289         {SIP_NULLPTR},
3290         SIP_NULLPTR
3291     },
3292     {
3293         sipNameNr_RibbonPanel,
3294         {0, 0, 1},
3295         56, methods_wxRibbonPanel,
3296         0, SIP_NULLPTR,
3297         3, variables_wxRibbonPanel,
3298         {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
3299     },
3300     doc_wxRibbonPanel,
3301     -1,
3302     -1,
3303     supers_wxRibbonPanel,
3304     SIP_NULLPTR,
3305     init_type_wxRibbonPanel,
3306     SIP_NULLPTR,
3307     SIP_NULLPTR,
3308 #if PY_MAJOR_VERSION >= 3
3309     SIP_NULLPTR,
3310     SIP_NULLPTR,
3311 #else
3312     SIP_NULLPTR,
3313     SIP_NULLPTR,
3314     SIP_NULLPTR,
3315     SIP_NULLPTR,
3316 #endif
3317     dealloc_wxRibbonPanel,
3318     SIP_NULLPTR,
3319     SIP_NULLPTR,
3320     SIP_NULLPTR,
3321     release_wxRibbonPanel,
3322     cast_wxRibbonPanel,
3323     SIP_NULLPTR,
3324     SIP_NULLPTR,
3325     SIP_NULLPTR,
3326     SIP_NULLPTR,
3327     SIP_NULLPTR,
3328     SIP_NULLPTR
3329 };
3330