1 /*
2  * Interface wrapper code.
3  *
4  * Generated by SIP 4.19.16
5  *
6  *     Copyright: (c) 2018 by Total Control Software
7  *     License:   wxWindows License
8  */
9 
10 #include "sipAPI_core.h"
11 
12         #include <wx/nonownedwnd.h>
13 
14         #include <wx/region.h>
15         #include <wx/graphics.h>
16         #include <wx/event.h>
17         #include <wx/gdicmn.h>
18         #include <wx/window.h>
19         #include <wx/gdicmn.h>
20         #include <wx/window.h>
21         #include <wx/event.h>
22     #include <wx/setup.h>
23     #include <wxPython/wxpy_api.h>
24         #include <wx/event.h>
25         #include <wx/cursor.h>
26         #include <wx/caret.h>
27         #include <wx/layout.h>
28         #include <wx/sizer.h>
29         #include <wx/dnd.h>
30         #include <wx/access.h>
31         #include <wx/accel.h>
32         #include <wx/validate.h>
33         #include <wx/menu.h>
34         #include <wx/tooltip.h>
35         #include <wx/event.h>
36         #include <wx/gdicmn.h>
37         #include <wx/event.h>
38         #include <wx/event.h>
39         #include <wx/palette.h>
40         #include <wx/colour.h>
41         #include <wx/font.h>
42 
43         #include <wx/eventfilter.h>
44         #include <wx/object.h>
45         #include <wx/object.h>
46         #include <wx/object.h>
47 
48 
49 class sipwxNonOwnedWindow : public  ::wxNonOwnedWindow
50 {
51 public:
52     sipwxNonOwnedWindow();
53     virtual ~sipwxNonOwnedWindow();
54 
55     /*
56      * There is a public method for every protected method visible from
57      * this class.
58      */
59     void sipProtectVirt_DoEnable(bool,bool);
60     void sipProtectVirt_DoGetPosition(bool,int*,int*) const;
61     void sipProtectVirt_DoGetSize(bool,int*,int*) const;
62     void sipProtectVirt_DoGetClientSize(bool,int*,int*) const;
63     void sipProtectVirt_DoSetSize(bool,int,int,int,int,int);
64     void sipProtectVirt_DoSetClientSize(bool,int,int);
65     void sipProtectVirt_DoSetSizeHints(bool,int,int,int,int,int,int);
66      ::wxSize sipProtectVirt_DoGetBorderSize(bool) const;
67     void sipProtectVirt_DoMoveWindow(bool,int,int,int,int);
68     void sipProtectVirt_DoSetWindowVariant(bool, ::wxWindowVariant);
69      ::wxBorder sipProtectVirt_GetDefaultBorder(bool) const;
70      ::wxBorder sipProtectVirt_GetDefaultBorderForControl(bool) const;
71     void sipProtectVirt_DoFreeze(bool);
72     void sipProtectVirt_DoThaw(bool);
73     bool sipProtectVirt_TryBefore(bool, ::wxEvent&);
74     bool sipProtectVirt_TryAfter(bool, ::wxEvent&);
75      ::wxSize sipProtectVirt_DoGetBestSize(bool) const;
76      ::wxSize sipProtectVirt_DoGetBestClientSize(bool) const;
77     void sipProtect_SendDestroyEvent();
78     bool sipProtectVirt_ProcessEvent(bool, ::wxEvent&);
79 
80     /*
81      * There is a protected method for every virtual method visible from
82      * this class.
83      */
84 protected:
85     void RemoveChild( ::wxWindowBase*) SIP_OVERRIDE;
86     void AddChild( ::wxWindowBase*) SIP_OVERRIDE;
87     bool ProcessEvent( ::wxEvent&) SIP_OVERRIDE;
88     bool TryBefore( ::wxEvent&) SIP_OVERRIDE;
89     bool TryAfter( ::wxEvent&) SIP_OVERRIDE;
90     bool AcceptsFocus() const SIP_OVERRIDE;
91     bool AcceptsFocusFromKeyboard() const SIP_OVERRIDE;
92     bool AcceptsFocusRecursively() const SIP_OVERRIDE;
93     void SetCanFocus(bool) SIP_OVERRIDE;
94     bool InformFirstDirection(int,int,int) SIP_OVERRIDE;
95      ::wxPoint GetClientAreaOrigin() const SIP_OVERRIDE;
96     bool HasTransparentBackground() SIP_OVERRIDE;
97     bool ShouldInheritColours() const SIP_OVERRIDE;
98      ::wxValidator* GetValidator() SIP_OVERRIDE;
99     void SetValidator(const  ::wxValidator&) SIP_OVERRIDE;
100     bool TransferDataFromWindow() SIP_OVERRIDE;
101     bool TransferDataToWindow() SIP_OVERRIDE;
102     bool Validate() SIP_OVERRIDE;
103     bool Destroy() SIP_OVERRIDE;
104     void InheritAttributes() SIP_OVERRIDE;
105     void InitDialog() SIP_OVERRIDE;
106     void OnInternalIdle() SIP_OVERRIDE;
107      ::wxWindow* GetMainWindowOfCompositeControl() SIP_OVERRIDE;
108     void DoEnable(bool) SIP_OVERRIDE;
109     void DoGetPosition(int*,int*) const SIP_OVERRIDE;
110     void DoGetSize(int*,int*) const SIP_OVERRIDE;
111     void DoGetClientSize(int*,int*) const SIP_OVERRIDE;
112     void DoSetSize(int,int,int,int,int) SIP_OVERRIDE;
113     void DoSetClientSize(int,int) SIP_OVERRIDE;
114     void DoSetSizeHints(int,int,int,int,int,int) SIP_OVERRIDE;
115      ::wxSize DoGetBorderSize() const SIP_OVERRIDE;
116     void DoMoveWindow(int,int,int,int) SIP_OVERRIDE;
117     void DoSetWindowVariant( ::wxWindowVariant) SIP_OVERRIDE;
118      ::wxBorder GetDefaultBorder() const SIP_OVERRIDE;
119      ::wxBorder GetDefaultBorderForControl() const SIP_OVERRIDE;
120     void DoFreeze() SIP_OVERRIDE;
121     void DoThaw() SIP_OVERRIDE;
122      ::wxSize DoGetBestSize() const SIP_OVERRIDE;
123      ::wxSize DoGetBestClientSize() const SIP_OVERRIDE;
124 
125 public:
126     sipSimpleWrapper *sipPySelf;
127 
128 private:
129     sipwxNonOwnedWindow(const sipwxNonOwnedWindow &);
130     sipwxNonOwnedWindow &operator = (const sipwxNonOwnedWindow &);
131 
132     char sipPyMethods[39];
133 };
134 
sipwxNonOwnedWindow()135 sipwxNonOwnedWindow::sipwxNonOwnedWindow():  ::wxNonOwnedWindow(), sipPySelf(SIP_NULLPTR)
136 {
137     memset(sipPyMethods, 0, sizeof (sipPyMethods));
138 }
139 
~sipwxNonOwnedWindow()140 sipwxNonOwnedWindow::~sipwxNonOwnedWindow()
141 {
142     sipInstanceDestroyedEx(&sipPySelf);
143 }
144 
RemoveChild(::wxWindowBase * child)145 void sipwxNonOwnedWindow::RemoveChild( ::wxWindowBase*child)
146 {
147     sip_gilstate_t sipGILState;
148     PyObject *sipMeth;
149 
150     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,SIP_NULLPTR,sipName_RemoveChild);
151 
152     if (!sipMeth)
153     {
154          ::wxNonOwnedWindow::RemoveChild(child);
155         return;
156     }
157 
158     extern void sipVH__core_110(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::wxWindowBase*);
159 
160     sipVH__core_110(sipGILState, 0, sipPySelf, sipMeth, child);
161 }
162 
AddChild(::wxWindowBase * child)163 void sipwxNonOwnedWindow::AddChild( ::wxWindowBase*child)
164 {
165     sip_gilstate_t sipGILState;
166     PyObject *sipMeth;
167 
168     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,SIP_NULLPTR,sipName_AddChild);
169 
170     if (!sipMeth)
171     {
172          ::wxNonOwnedWindow::AddChild(child);
173         return;
174     }
175 
176     extern void sipVH__core_110(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::wxWindowBase*);
177 
178     sipVH__core_110(sipGILState, 0, sipPySelf, sipMeth, child);
179 }
180 
ProcessEvent(::wxEvent & event)181 bool sipwxNonOwnedWindow::ProcessEvent( ::wxEvent& event)
182 {
183     sip_gilstate_t sipGILState;
184     PyObject *sipMeth;
185 
186     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,SIP_NULLPTR,sipName_ProcessEvent);
187 
188     if (!sipMeth)
189         return  ::wxNonOwnedWindow::ProcessEvent(event);
190 
191     extern bool sipVH__core_90(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::wxEvent&);
192 
193     return sipVH__core_90(sipGILState, 0, sipPySelf, sipMeth, event);
194 }
195 
TryBefore(::wxEvent & event)196 bool sipwxNonOwnedWindow::TryBefore( ::wxEvent& event)
197 {
198     sip_gilstate_t sipGILState;
199     PyObject *sipMeth;
200 
201     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,SIP_NULLPTR,sipName_TryBefore);
202 
203     if (!sipMeth)
204         return  ::wxNonOwnedWindow::TryBefore(event);
205 
206     extern bool sipVH__core_90(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::wxEvent&);
207 
208     return sipVH__core_90(sipGILState, 0, sipPySelf, sipMeth, event);
209 }
210 
TryAfter(::wxEvent & event)211 bool sipwxNonOwnedWindow::TryAfter( ::wxEvent& event)
212 {
213     sip_gilstate_t sipGILState;
214     PyObject *sipMeth;
215 
216     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,SIP_NULLPTR,sipName_TryAfter);
217 
218     if (!sipMeth)
219         return  ::wxNonOwnedWindow::TryAfter(event);
220 
221     extern bool sipVH__core_90(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::wxEvent&);
222 
223     return sipVH__core_90(sipGILState, 0, sipPySelf, sipMeth, event);
224 }
225 
AcceptsFocus() const226 bool sipwxNonOwnedWindow::AcceptsFocus() const
227 {
228     sip_gilstate_t sipGILState;
229     PyObject *sipMeth;
230 
231     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[5]),sipPySelf,SIP_NULLPTR,sipName_AcceptsFocus);
232 
233     if (!sipMeth)
234         return  ::wxNonOwnedWindow::AcceptsFocus();
235 
236     extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
237 
238     return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
239 }
240 
AcceptsFocusFromKeyboard() const241 bool sipwxNonOwnedWindow::AcceptsFocusFromKeyboard() const
242 {
243     sip_gilstate_t sipGILState;
244     PyObject *sipMeth;
245 
246     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[6]),sipPySelf,SIP_NULLPTR,sipName_AcceptsFocusFromKeyboard);
247 
248     if (!sipMeth)
249         return  ::wxNonOwnedWindow::AcceptsFocusFromKeyboard();
250 
251     extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
252 
253     return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
254 }
255 
AcceptsFocusRecursively() const256 bool sipwxNonOwnedWindow::AcceptsFocusRecursively() const
257 {
258     sip_gilstate_t sipGILState;
259     PyObject *sipMeth;
260 
261     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[7]),sipPySelf,SIP_NULLPTR,sipName_AcceptsFocusRecursively);
262 
263     if (!sipMeth)
264         return  ::wxNonOwnedWindow::AcceptsFocusRecursively();
265 
266     extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
267 
268     return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
269 }
270 
SetCanFocus(bool canFocus)271 void sipwxNonOwnedWindow::SetCanFocus(bool canFocus)
272 {
273     sip_gilstate_t sipGILState;
274     PyObject *sipMeth;
275 
276     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,SIP_NULLPTR,sipName_SetCanFocus);
277 
278     if (!sipMeth)
279     {
280          ::wxNonOwnedWindow::SetCanFocus(canFocus);
281         return;
282     }
283 
284     extern void sipVH__core_84(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);
285 
286     sipVH__core_84(sipGILState, 0, sipPySelf, sipMeth, canFocus);
287 }
288 
InformFirstDirection(int direction,int size,int availableOtherDir)289 bool sipwxNonOwnedWindow::InformFirstDirection(int direction,int size,int availableOtherDir)
290 {
291     sip_gilstate_t sipGILState;
292     PyObject *sipMeth;
293 
294     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,SIP_NULLPTR,sipName_InformFirstDirection);
295 
296     if (!sipMeth)
297         return  ::wxNonOwnedWindow::InformFirstDirection(direction,size,availableOtherDir);
298 
299     extern bool sipVH__core_111(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,int);
300 
301     return sipVH__core_111(sipGILState, 0, sipPySelf, sipMeth, direction, size, availableOtherDir);
302 }
303 
GetClientAreaOrigin() const304  ::wxPoint sipwxNonOwnedWindow::GetClientAreaOrigin() const
305 {
306     sip_gilstate_t sipGILState;
307     PyObject *sipMeth;
308 
309     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[10]),sipPySelf,SIP_NULLPTR,sipName_GetClientAreaOrigin);
310 
311     if (!sipMeth)
312         return  ::wxNonOwnedWindow::GetClientAreaOrigin();
313 
314     extern  ::wxPoint sipVH__core_112(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
315 
316     return sipVH__core_112(sipGILState, 0, sipPySelf, sipMeth);
317 }
318 
HasTransparentBackground()319 bool sipwxNonOwnedWindow::HasTransparentBackground()
320 {
321     sip_gilstate_t sipGILState;
322     PyObject *sipMeth;
323 
324     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,SIP_NULLPTR,sipName_HasTransparentBackground);
325 
326     if (!sipMeth)
327         return  ::wxNonOwnedWindow::HasTransparentBackground();
328 
329     extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
330 
331     return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
332 }
333 
ShouldInheritColours() const334 bool sipwxNonOwnedWindow::ShouldInheritColours() const
335 {
336     sip_gilstate_t sipGILState;
337     PyObject *sipMeth;
338 
339     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[12]),sipPySelf,SIP_NULLPTR,sipName_ShouldInheritColours);
340 
341     if (!sipMeth)
342         return  ::wxNonOwnedWindow::ShouldInheritColours();
343 
344     extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
345 
346     return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
347 }
348 
GetValidator()349  ::wxValidator* sipwxNonOwnedWindow::GetValidator()
350 {
351     sip_gilstate_t sipGILState;
352     PyObject *sipMeth;
353 
354     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,SIP_NULLPTR,sipName_GetValidator);
355 
356     if (!sipMeth)
357         return  ::wxNonOwnedWindow::GetValidator();
358 
359     extern  ::wxValidator* sipVH__core_113(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
360 
361     return sipVH__core_113(sipGILState, 0, sipPySelf, sipMeth);
362 }
363 
SetValidator(const::wxValidator & validator)364 void sipwxNonOwnedWindow::SetValidator(const  ::wxValidator& validator)
365 {
366     sip_gilstate_t sipGILState;
367     PyObject *sipMeth;
368 
369     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,SIP_NULLPTR,sipName_SetValidator);
370 
371     if (!sipMeth)
372     {
373          ::wxNonOwnedWindow::SetValidator(validator);
374         return;
375     }
376 
377     extern void sipVH__core_114(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::wxValidator&);
378 
379     sipVH__core_114(sipGILState, 0, sipPySelf, sipMeth, validator);
380 }
381 
TransferDataFromWindow()382 bool sipwxNonOwnedWindow::TransferDataFromWindow()
383 {
384     sip_gilstate_t sipGILState;
385     PyObject *sipMeth;
386 
387     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,SIP_NULLPTR,sipName_TransferDataFromWindow);
388 
389     if (!sipMeth)
390         return  ::wxNonOwnedWindow::TransferDataFromWindow();
391 
392     extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
393 
394     return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
395 }
396 
TransferDataToWindow()397 bool sipwxNonOwnedWindow::TransferDataToWindow()
398 {
399     sip_gilstate_t sipGILState;
400     PyObject *sipMeth;
401 
402     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,SIP_NULLPTR,sipName_TransferDataToWindow);
403 
404     if (!sipMeth)
405         return  ::wxNonOwnedWindow::TransferDataToWindow();
406 
407     extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
408 
409     return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
410 }
411 
Validate()412 bool sipwxNonOwnedWindow::Validate()
413 {
414     sip_gilstate_t sipGILState;
415     PyObject *sipMeth;
416 
417     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,SIP_NULLPTR,sipName_Validate);
418 
419     if (!sipMeth)
420         return  ::wxNonOwnedWindow::Validate();
421 
422     extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
423 
424     return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
425 }
426 
Destroy()427 bool sipwxNonOwnedWindow::Destroy()
428 {
429     sip_gilstate_t sipGILState;
430     PyObject *sipMeth;
431 
432     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,SIP_NULLPTR,sipName_Destroy);
433 
434     if (!sipMeth)
435         return  ::wxNonOwnedWindow::Destroy();
436 
437     extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
438 
439     return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
440 }
441 
InheritAttributes()442 void sipwxNonOwnedWindow::InheritAttributes()
443 {
444     sip_gilstate_t sipGILState;
445     PyObject *sipMeth;
446 
447     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,SIP_NULLPTR,sipName_InheritAttributes);
448 
449     if (!sipMeth)
450     {
451          ::wxNonOwnedWindow::InheritAttributes();
452         return;
453     }
454 
455     extern void sipVH__core_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
456 
457     sipVH__core_45(sipGILState, 0, sipPySelf, sipMeth);
458 }
459 
InitDialog()460 void sipwxNonOwnedWindow::InitDialog()
461 {
462     sip_gilstate_t sipGILState;
463     PyObject *sipMeth;
464 
465     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,SIP_NULLPTR,sipName_InitDialog);
466 
467     if (!sipMeth)
468     {
469          ::wxNonOwnedWindow::InitDialog();
470         return;
471     }
472 
473     extern void sipVH__core_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
474 
475     sipVH__core_45(sipGILState, 0, sipPySelf, sipMeth);
476 }
477 
OnInternalIdle()478 void sipwxNonOwnedWindow::OnInternalIdle()
479 {
480     sip_gilstate_t sipGILState;
481     PyObject *sipMeth;
482 
483     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,SIP_NULLPTR,sipName_OnInternalIdle);
484 
485     if (!sipMeth)
486     {
487          ::wxNonOwnedWindow::OnInternalIdle();
488         return;
489     }
490 
491     extern void sipVH__core_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
492 
493     sipVH__core_45(sipGILState, 0, sipPySelf, sipMeth);
494 }
495 
GetMainWindowOfCompositeControl()496  ::wxWindow* sipwxNonOwnedWindow::GetMainWindowOfCompositeControl()
497 {
498     sip_gilstate_t sipGILState;
499     PyObject *sipMeth;
500 
501     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[22],sipPySelf,SIP_NULLPTR,sipName_GetMainWindowOfCompositeControl);
502 
503     if (!sipMeth)
504         return  ::wxNonOwnedWindow::GetMainWindowOfCompositeControl();
505 
506     extern  ::wxWindow* sipVH__core_115(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
507 
508     return sipVH__core_115(sipGILState, 0, sipPySelf, sipMeth);
509 }
510 
DoEnable(bool enable)511 void sipwxNonOwnedWindow::DoEnable(bool enable)
512 {
513     sip_gilstate_t sipGILState;
514     PyObject *sipMeth;
515 
516     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],sipPySelf,SIP_NULLPTR,sipName_DoEnable);
517 
518     if (!sipMeth)
519     {
520          ::wxNonOwnedWindow::DoEnable(enable);
521         return;
522     }
523 
524     extern void sipVH__core_84(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);
525 
526     sipVH__core_84(sipGILState, 0, sipPySelf, sipMeth, enable);
527 }
528 
DoGetPosition(int * x,int * y) const529 void sipwxNonOwnedWindow::DoGetPosition(int*x,int*y) const
530 {
531     sip_gilstate_t sipGILState;
532     PyObject *sipMeth;
533 
534     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[24]),sipPySelf,SIP_NULLPTR,sipName_DoGetPosition);
535 
536     if (!sipMeth)
537     {
538          ::wxNonOwnedWindow::DoGetPosition(x,y);
539         return;
540     }
541 
542     extern void sipVH__core_116(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int*,int*);
543 
544     sipVH__core_116(sipGILState, 0, sipPySelf, sipMeth, x, y);
545 }
546 
DoGetSize(int * width,int * height) const547 void sipwxNonOwnedWindow::DoGetSize(int*width,int*height) const
548 {
549     sip_gilstate_t sipGILState;
550     PyObject *sipMeth;
551 
552     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[25]),sipPySelf,SIP_NULLPTR,sipName_DoGetSize);
553 
554     if (!sipMeth)
555     {
556          ::wxNonOwnedWindow::DoGetSize(width,height);
557         return;
558     }
559 
560     extern void sipVH__core_116(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int*,int*);
561 
562     sipVH__core_116(sipGILState, 0, sipPySelf, sipMeth, width, height);
563 }
564 
DoGetClientSize(int * width,int * height) const565 void sipwxNonOwnedWindow::DoGetClientSize(int*width,int*height) const
566 {
567     sip_gilstate_t sipGILState;
568     PyObject *sipMeth;
569 
570     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[26]),sipPySelf,SIP_NULLPTR,sipName_DoGetClientSize);
571 
572     if (!sipMeth)
573     {
574          ::wxNonOwnedWindow::DoGetClientSize(width,height);
575         return;
576     }
577 
578     extern void sipVH__core_116(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int*,int*);
579 
580     sipVH__core_116(sipGILState, 0, sipPySelf, sipMeth, width, height);
581 }
582 
DoSetSize(int x,int y,int width,int height,int sizeFlags)583 void sipwxNonOwnedWindow::DoSetSize(int x,int y,int width,int height,int sizeFlags)
584 {
585     sip_gilstate_t sipGILState;
586     PyObject *sipMeth;
587 
588     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[27],sipPySelf,SIP_NULLPTR,sipName_DoSetSize);
589 
590     if (!sipMeth)
591     {
592          ::wxNonOwnedWindow::DoSetSize(x,y,width,height,sizeFlags);
593         return;
594     }
595 
596     extern void sipVH__core_117(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,int,int,int);
597 
598     sipVH__core_117(sipGILState, 0, sipPySelf, sipMeth, x, y, width, height, sizeFlags);
599 }
600 
DoSetClientSize(int width,int height)601 void sipwxNonOwnedWindow::DoSetClientSize(int width,int height)
602 {
603     sip_gilstate_t sipGILState;
604     PyObject *sipMeth;
605 
606     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[28],sipPySelf,SIP_NULLPTR,sipName_DoSetClientSize);
607 
608     if (!sipMeth)
609     {
610          ::wxNonOwnedWindow::DoSetClientSize(width,height);
611         return;
612     }
613 
614     extern void sipVH__core_118(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int);
615 
616     sipVH__core_118(sipGILState, 0, sipPySelf, sipMeth, width, height);
617 }
618 
DoSetSizeHints(int minW,int minH,int maxW,int maxH,int incW,int incH)619 void sipwxNonOwnedWindow::DoSetSizeHints(int minW,int minH,int maxW,int maxH,int incW,int incH)
620 {
621     sip_gilstate_t sipGILState;
622     PyObject *sipMeth;
623 
624     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[29],sipPySelf,SIP_NULLPTR,sipName_DoSetSizeHints);
625 
626     if (!sipMeth)
627     {
628          ::wxNonOwnedWindow::DoSetSizeHints(minW,minH,maxW,maxH,incW,incH);
629         return;
630     }
631 
632     extern void sipVH__core_119(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,int,int,int,int);
633 
634     sipVH__core_119(sipGILState, 0, sipPySelf, sipMeth, minW, minH, maxW, maxH, incW, incH);
635 }
636 
DoGetBorderSize() const637  ::wxSize sipwxNonOwnedWindow::DoGetBorderSize() const
638 {
639     sip_gilstate_t sipGILState;
640     PyObject *sipMeth;
641 
642     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[30]),sipPySelf,SIP_NULLPTR,sipName_DoGetBorderSize);
643 
644     if (!sipMeth)
645         return  ::wxNonOwnedWindow::DoGetBorderSize();
646 
647     extern  ::wxSize sipVH__core_93(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
648 
649     return sipVH__core_93(sipGILState, 0, sipPySelf, sipMeth);
650 }
651 
DoMoveWindow(int x,int y,int width,int height)652 void sipwxNonOwnedWindow::DoMoveWindow(int x,int y,int width,int height)
653 {
654     sip_gilstate_t sipGILState;
655     PyObject *sipMeth;
656 
657     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[31],sipPySelf,SIP_NULLPTR,sipName_DoMoveWindow);
658 
659     if (!sipMeth)
660     {
661          ::wxNonOwnedWindow::DoMoveWindow(x,y,width,height);
662         return;
663     }
664 
665     extern void sipVH__core_120(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,int,int);
666 
667     sipVH__core_120(sipGILState, 0, sipPySelf, sipMeth, x, y, width, height);
668 }
669 
DoSetWindowVariant(::wxWindowVariant variant)670 void sipwxNonOwnedWindow::DoSetWindowVariant( ::wxWindowVariant variant)
671 {
672     sip_gilstate_t sipGILState;
673     PyObject *sipMeth;
674 
675     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[32],sipPySelf,SIP_NULLPTR,sipName_DoSetWindowVariant);
676 
677     if (!sipMeth)
678     {
679          ::wxNonOwnedWindow::DoSetWindowVariant(variant);
680         return;
681     }
682 
683     extern void sipVH__core_121(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::wxWindowVariant);
684 
685     sipVH__core_121(sipGILState, 0, sipPySelf, sipMeth, variant);
686 }
687 
GetDefaultBorder() const688  ::wxBorder sipwxNonOwnedWindow::GetDefaultBorder() const
689 {
690     sip_gilstate_t sipGILState;
691     PyObject *sipMeth;
692 
693     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[33]),sipPySelf,SIP_NULLPTR,sipName_GetDefaultBorder);
694 
695     if (!sipMeth)
696         return  ::wxNonOwnedWindow::GetDefaultBorder();
697 
698     extern  ::wxBorder sipVH__core_122(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
699 
700     return sipVH__core_122(sipGILState, 0, sipPySelf, sipMeth);
701 }
702 
GetDefaultBorderForControl() const703  ::wxBorder sipwxNonOwnedWindow::GetDefaultBorderForControl() const
704 {
705     sip_gilstate_t sipGILState;
706     PyObject *sipMeth;
707 
708     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[34]),sipPySelf,SIP_NULLPTR,sipName_GetDefaultBorderForControl);
709 
710     if (!sipMeth)
711         return  ::wxNonOwnedWindow::GetDefaultBorderForControl();
712 
713     extern  ::wxBorder sipVH__core_122(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
714 
715     return sipVH__core_122(sipGILState, 0, sipPySelf, sipMeth);
716 }
717 
DoFreeze()718 void sipwxNonOwnedWindow::DoFreeze()
719 {
720     sip_gilstate_t sipGILState;
721     PyObject *sipMeth;
722 
723     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[35],sipPySelf,SIP_NULLPTR,sipName_DoFreeze);
724 
725     if (!sipMeth)
726     {
727          ::wxNonOwnedWindow::DoFreeze();
728         return;
729     }
730 
731     extern void sipVH__core_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
732 
733     sipVH__core_45(sipGILState, 0, sipPySelf, sipMeth);
734 }
735 
DoThaw()736 void sipwxNonOwnedWindow::DoThaw()
737 {
738     sip_gilstate_t sipGILState;
739     PyObject *sipMeth;
740 
741     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[36],sipPySelf,SIP_NULLPTR,sipName_DoThaw);
742 
743     if (!sipMeth)
744     {
745          ::wxNonOwnedWindow::DoThaw();
746         return;
747     }
748 
749     extern void sipVH__core_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
750 
751     sipVH__core_45(sipGILState, 0, sipPySelf, sipMeth);
752 }
753 
DoGetBestSize() const754  ::wxSize sipwxNonOwnedWindow::DoGetBestSize() const
755 {
756     sip_gilstate_t sipGILState;
757     PyObject *sipMeth;
758 
759     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[37]),sipPySelf,SIP_NULLPTR,sipName_DoGetBestSize);
760 
761     if (!sipMeth)
762         return  ::wxNonOwnedWindow::DoGetBestSize();
763 
764     extern  ::wxSize sipVH__core_93(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
765 
766     return sipVH__core_93(sipGILState, 0, sipPySelf, sipMeth);
767 }
768 
DoGetBestClientSize() const769  ::wxSize sipwxNonOwnedWindow::DoGetBestClientSize() const
770 {
771     sip_gilstate_t sipGILState;
772     PyObject *sipMeth;
773 
774     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[38]),sipPySelf,SIP_NULLPTR,sipName_DoGetBestClientSize);
775 
776     if (!sipMeth)
777         return  ::wxNonOwnedWindow::DoGetBestClientSize();
778 
779     extern  ::wxSize sipVH__core_93(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
780 
781     return sipVH__core_93(sipGILState, 0, sipPySelf, sipMeth);
782 }
783 
sipProtectVirt_DoEnable(bool sipSelfWasArg,bool enable)784 void sipwxNonOwnedWindow::sipProtectVirt_DoEnable(bool sipSelfWasArg,bool enable)
785 {
786     (sipSelfWasArg ?  ::wxWindow::DoEnable(enable) : DoEnable(enable));
787 }
788 
sipProtectVirt_DoGetPosition(bool sipSelfWasArg,int * x,int * y) const789 void sipwxNonOwnedWindow::sipProtectVirt_DoGetPosition(bool sipSelfWasArg,int*x,int*y) const
790 {
791     (sipSelfWasArg ?  ::wxWindow::DoGetPosition(x,y) : DoGetPosition(x,y));
792 }
793 
sipProtectVirt_DoGetSize(bool sipSelfWasArg,int * width,int * height) const794 void sipwxNonOwnedWindow::sipProtectVirt_DoGetSize(bool sipSelfWasArg,int*width,int*height) const
795 {
796     (sipSelfWasArg ?  ::wxWindow::DoGetSize(width,height) : DoGetSize(width,height));
797 }
798 
sipProtectVirt_DoGetClientSize(bool sipSelfWasArg,int * width,int * height) const799 void sipwxNonOwnedWindow::sipProtectVirt_DoGetClientSize(bool sipSelfWasArg,int*width,int*height) const
800 {
801     (sipSelfWasArg ?  ::wxWindow::DoGetClientSize(width,height) : DoGetClientSize(width,height));
802 }
803 
sipProtectVirt_DoSetSize(bool sipSelfWasArg,int x,int y,int width,int height,int sizeFlags)804 void sipwxNonOwnedWindow::sipProtectVirt_DoSetSize(bool sipSelfWasArg,int x,int y,int width,int height,int sizeFlags)
805 {
806     (sipSelfWasArg ?  ::wxWindow::DoSetSize(x,y,width,height,sizeFlags) : DoSetSize(x,y,width,height,sizeFlags));
807 }
808 
sipProtectVirt_DoSetClientSize(bool sipSelfWasArg,int width,int height)809 void sipwxNonOwnedWindow::sipProtectVirt_DoSetClientSize(bool sipSelfWasArg,int width,int height)
810 {
811     (sipSelfWasArg ?  ::wxWindow::DoSetClientSize(width,height) : DoSetClientSize(width,height));
812 }
813 
sipProtectVirt_DoSetSizeHints(bool sipSelfWasArg,int minW,int minH,int maxW,int maxH,int incW,int incH)814 void sipwxNonOwnedWindow::sipProtectVirt_DoSetSizeHints(bool sipSelfWasArg,int minW,int minH,int maxW,int maxH,int incW,int incH)
815 {
816     (sipSelfWasArg ?  ::wxWindow::DoSetSizeHints(minW,minH,maxW,maxH,incW,incH) : DoSetSizeHints(minW,minH,maxW,maxH,incW,incH));
817 }
818 
sipProtectVirt_DoGetBorderSize(bool sipSelfWasArg) const819  ::wxSize sipwxNonOwnedWindow::sipProtectVirt_DoGetBorderSize(bool sipSelfWasArg) const
820 {
821     return (sipSelfWasArg ?  ::wxWindow::DoGetBorderSize() : DoGetBorderSize());
822 }
823 
sipProtectVirt_DoMoveWindow(bool sipSelfWasArg,int x,int y,int width,int height)824 void sipwxNonOwnedWindow::sipProtectVirt_DoMoveWindow(bool sipSelfWasArg,int x,int y,int width,int height)
825 {
826     (sipSelfWasArg ?  ::wxWindow::DoMoveWindow(x,y,width,height) : DoMoveWindow(x,y,width,height));
827 }
828 
sipProtectVirt_DoSetWindowVariant(bool sipSelfWasArg,::wxWindowVariant variant)829 void sipwxNonOwnedWindow::sipProtectVirt_DoSetWindowVariant(bool sipSelfWasArg, ::wxWindowVariant variant)
830 {
831     (sipSelfWasArg ?  ::wxWindow::DoSetWindowVariant(variant) : DoSetWindowVariant(variant));
832 }
833 
sipProtectVirt_GetDefaultBorder(bool sipSelfWasArg) const834  ::wxBorder sipwxNonOwnedWindow::sipProtectVirt_GetDefaultBorder(bool sipSelfWasArg) const
835 {
836     return (sipSelfWasArg ?  ::wxWindow::GetDefaultBorder() : GetDefaultBorder());
837 }
838 
sipProtectVirt_GetDefaultBorderForControl(bool sipSelfWasArg) const839  ::wxBorder sipwxNonOwnedWindow::sipProtectVirt_GetDefaultBorderForControl(bool sipSelfWasArg) const
840 {
841     return (sipSelfWasArg ?  ::wxWindow::GetDefaultBorderForControl() : GetDefaultBorderForControl());
842 }
843 
sipProtectVirt_DoFreeze(bool sipSelfWasArg)844 void sipwxNonOwnedWindow::sipProtectVirt_DoFreeze(bool sipSelfWasArg)
845 {
846     (sipSelfWasArg ?  ::wxWindow::DoFreeze() : DoFreeze());
847 }
848 
sipProtectVirt_DoThaw(bool sipSelfWasArg)849 void sipwxNonOwnedWindow::sipProtectVirt_DoThaw(bool sipSelfWasArg)
850 {
851     (sipSelfWasArg ?  ::wxWindow::DoThaw() : DoThaw());
852 }
853 
sipProtectVirt_TryBefore(bool sipSelfWasArg,::wxEvent & event)854 bool sipwxNonOwnedWindow::sipProtectVirt_TryBefore(bool sipSelfWasArg, ::wxEvent& event)
855 {
856     return (sipSelfWasArg ?  ::wxWindow::TryBefore(event) : TryBefore(event));
857 }
858 
sipProtectVirt_TryAfter(bool sipSelfWasArg,::wxEvent & event)859 bool sipwxNonOwnedWindow::sipProtectVirt_TryAfter(bool sipSelfWasArg, ::wxEvent& event)
860 {
861     return (sipSelfWasArg ?  ::wxWindow::TryAfter(event) : TryAfter(event));
862 }
863 
sipProtectVirt_DoGetBestSize(bool sipSelfWasArg) const864  ::wxSize sipwxNonOwnedWindow::sipProtectVirt_DoGetBestSize(bool sipSelfWasArg) const
865 {
866     return (sipSelfWasArg ?  ::wxWindow::DoGetBestSize() : DoGetBestSize());
867 }
868 
sipProtectVirt_DoGetBestClientSize(bool sipSelfWasArg) const869  ::wxSize sipwxNonOwnedWindow::sipProtectVirt_DoGetBestClientSize(bool sipSelfWasArg) const
870 {
871     return (sipSelfWasArg ?  ::wxWindow::DoGetBestClientSize() : DoGetBestClientSize());
872 }
873 
sipProtect_SendDestroyEvent()874 void sipwxNonOwnedWindow::sipProtect_SendDestroyEvent()
875 {
876      ::wxWindow::SendDestroyEvent();
877 }
878 
sipProtectVirt_ProcessEvent(bool sipSelfWasArg,::wxEvent & event)879 bool sipwxNonOwnedWindow::sipProtectVirt_ProcessEvent(bool sipSelfWasArg, ::wxEvent& event)
880 {
881     return (sipSelfWasArg ?  ::wxWindow::ProcessEvent(event) : ProcessEvent(event));
882 }
883 
884 
885 PyDoc_STRVAR(doc_wxNonOwnedWindow_DoEnable, "DoEnable(self, enable: bool)");
886 
887 extern "C" {static PyObject *meth_wxNonOwnedWindow_DoEnable(PyObject *, PyObject *, PyObject *);}
meth_wxNonOwnedWindow_DoEnable(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)888 static PyObject *meth_wxNonOwnedWindow_DoEnable(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
889 {
890     PyObject *sipParseErr = SIP_NULLPTR;
891     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
892 
893     {
894         bool enable;
895         sipwxNonOwnedWindow *sipCpp;
896 
897         static const char *sipKwdList[] = {
898             sipName_enable,
899         };
900 
901         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bb", &sipSelf, sipType_wxNonOwnedWindow, &sipCpp, &enable))
902         {
903             PyErr_Clear();
904 
905             Py_BEGIN_ALLOW_THREADS
906             sipCpp->sipProtectVirt_DoEnable(sipSelfWasArg,enable);
907             Py_END_ALLOW_THREADS
908 
909             if (PyErr_Occurred())
910                 return 0;
911 
912             Py_INCREF(Py_None);
913             return Py_None;
914         }
915     }
916 
917     /* Raise an exception if the arguments couldn't be parsed. */
918     sipNoMethod(sipParseErr, sipName_NonOwnedWindow, sipName_DoEnable, doc_wxNonOwnedWindow_DoEnable);
919 
920     return SIP_NULLPTR;
921 }
922 
923 
924 PyDoc_STRVAR(doc_wxNonOwnedWindow_DoGetPosition, "DoGetPosition(self) -> Tuple[int, int]");
925 
926 extern "C" {static PyObject *meth_wxNonOwnedWindow_DoGetPosition(PyObject *, PyObject *, PyObject *);}
meth_wxNonOwnedWindow_DoGetPosition(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)927 static PyObject *meth_wxNonOwnedWindow_DoGetPosition(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
928 {
929     PyObject *sipParseErr = SIP_NULLPTR;
930     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
931 
932     {
933         int x;
934         int y;
935         const sipwxNonOwnedWindow *sipCpp;
936 
937         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "B", &sipSelf, sipType_wxNonOwnedWindow, &sipCpp))
938         {
939             PyErr_Clear();
940 
941             Py_BEGIN_ALLOW_THREADS
942             sipCpp->sipProtectVirt_DoGetPosition(sipSelfWasArg,&x,&y);
943             Py_END_ALLOW_THREADS
944 
945             if (PyErr_Occurred())
946                 return 0;
947 
948             return sipBuildResult(0,"(ii)",x,y);
949         }
950     }
951 
952     /* Raise an exception if the arguments couldn't be parsed. */
953     sipNoMethod(sipParseErr, sipName_NonOwnedWindow, sipName_DoGetPosition, doc_wxNonOwnedWindow_DoGetPosition);
954 
955     return SIP_NULLPTR;
956 }
957 
958 
959 PyDoc_STRVAR(doc_wxNonOwnedWindow_DoGetSize, "DoGetSize(self) -> Tuple[int, int]");
960 
961 extern "C" {static PyObject *meth_wxNonOwnedWindow_DoGetSize(PyObject *, PyObject *, PyObject *);}
meth_wxNonOwnedWindow_DoGetSize(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)962 static PyObject *meth_wxNonOwnedWindow_DoGetSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
963 {
964     PyObject *sipParseErr = SIP_NULLPTR;
965     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
966 
967     {
968         int width;
969         int height;
970         const sipwxNonOwnedWindow *sipCpp;
971 
972         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "B", &sipSelf, sipType_wxNonOwnedWindow, &sipCpp))
973         {
974             PyErr_Clear();
975 
976             Py_BEGIN_ALLOW_THREADS
977             sipCpp->sipProtectVirt_DoGetSize(sipSelfWasArg,&width,&height);
978             Py_END_ALLOW_THREADS
979 
980             if (PyErr_Occurred())
981                 return 0;
982 
983             return sipBuildResult(0,"(ii)",width,height);
984         }
985     }
986 
987     /* Raise an exception if the arguments couldn't be parsed. */
988     sipNoMethod(sipParseErr, sipName_NonOwnedWindow, sipName_DoGetSize, doc_wxNonOwnedWindow_DoGetSize);
989 
990     return SIP_NULLPTR;
991 }
992 
993 
994 PyDoc_STRVAR(doc_wxNonOwnedWindow_DoGetClientSize, "DoGetClientSize(self) -> Tuple[int, int]");
995 
996 extern "C" {static PyObject *meth_wxNonOwnedWindow_DoGetClientSize(PyObject *, PyObject *, PyObject *);}
meth_wxNonOwnedWindow_DoGetClientSize(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)997 static PyObject *meth_wxNonOwnedWindow_DoGetClientSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
998 {
999     PyObject *sipParseErr = SIP_NULLPTR;
1000     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1001 
1002     {
1003         int width;
1004         int height;
1005         const sipwxNonOwnedWindow *sipCpp;
1006 
1007         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "B", &sipSelf, sipType_wxNonOwnedWindow, &sipCpp))
1008         {
1009             PyErr_Clear();
1010 
1011             Py_BEGIN_ALLOW_THREADS
1012             sipCpp->sipProtectVirt_DoGetClientSize(sipSelfWasArg,&width,&height);
1013             Py_END_ALLOW_THREADS
1014 
1015             if (PyErr_Occurred())
1016                 return 0;
1017 
1018             return sipBuildResult(0,"(ii)",width,height);
1019         }
1020     }
1021 
1022     /* Raise an exception if the arguments couldn't be parsed. */
1023     sipNoMethod(sipParseErr, sipName_NonOwnedWindow, sipName_DoGetClientSize, doc_wxNonOwnedWindow_DoGetClientSize);
1024 
1025     return SIP_NULLPTR;
1026 }
1027 
1028 
1029 PyDoc_STRVAR(doc_wxNonOwnedWindow_DoSetSize, "DoSetSize(self, x: int, y: int, width: int, height: int, sizeFlags: int)");
1030 
1031 extern "C" {static PyObject *meth_wxNonOwnedWindow_DoSetSize(PyObject *, PyObject *, PyObject *);}
meth_wxNonOwnedWindow_DoSetSize(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1032 static PyObject *meth_wxNonOwnedWindow_DoSetSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1033 {
1034     PyObject *sipParseErr = SIP_NULLPTR;
1035     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1036 
1037     {
1038         int x;
1039         int y;
1040         int width;
1041         int height;
1042         int sizeFlags;
1043         sipwxNonOwnedWindow *sipCpp;
1044 
1045         static const char *sipKwdList[] = {
1046             sipName_x,
1047             sipName_y,
1048             sipName_width,
1049             sipName_height,
1050             sipName_sizeFlags,
1051         };
1052 
1053         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biiiii", &sipSelf, sipType_wxNonOwnedWindow, &sipCpp, &x, &y, &width, &height, &sizeFlags))
1054         {
1055             PyErr_Clear();
1056 
1057             Py_BEGIN_ALLOW_THREADS
1058             sipCpp->sipProtectVirt_DoSetSize(sipSelfWasArg,x,y,width,height,sizeFlags);
1059             Py_END_ALLOW_THREADS
1060 
1061             if (PyErr_Occurred())
1062                 return 0;
1063 
1064             Py_INCREF(Py_None);
1065             return Py_None;
1066         }
1067     }
1068 
1069     /* Raise an exception if the arguments couldn't be parsed. */
1070     sipNoMethod(sipParseErr, sipName_NonOwnedWindow, sipName_DoSetSize, doc_wxNonOwnedWindow_DoSetSize);
1071 
1072     return SIP_NULLPTR;
1073 }
1074 
1075 
1076 PyDoc_STRVAR(doc_wxNonOwnedWindow_DoSetClientSize, "DoSetClientSize(self, width: int, height: int)");
1077 
1078 extern "C" {static PyObject *meth_wxNonOwnedWindow_DoSetClientSize(PyObject *, PyObject *, PyObject *);}
meth_wxNonOwnedWindow_DoSetClientSize(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1079 static PyObject *meth_wxNonOwnedWindow_DoSetClientSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1080 {
1081     PyObject *sipParseErr = SIP_NULLPTR;
1082     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1083 
1084     {
1085         int width;
1086         int height;
1087         sipwxNonOwnedWindow *sipCpp;
1088 
1089         static const char *sipKwdList[] = {
1090             sipName_width,
1091             sipName_height,
1092         };
1093 
1094         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bii", &sipSelf, sipType_wxNonOwnedWindow, &sipCpp, &width, &height))
1095         {
1096             PyErr_Clear();
1097 
1098             Py_BEGIN_ALLOW_THREADS
1099             sipCpp->sipProtectVirt_DoSetClientSize(sipSelfWasArg,width,height);
1100             Py_END_ALLOW_THREADS
1101 
1102             if (PyErr_Occurred())
1103                 return 0;
1104 
1105             Py_INCREF(Py_None);
1106             return Py_None;
1107         }
1108     }
1109 
1110     /* Raise an exception if the arguments couldn't be parsed. */
1111     sipNoMethod(sipParseErr, sipName_NonOwnedWindow, sipName_DoSetClientSize, doc_wxNonOwnedWindow_DoSetClientSize);
1112 
1113     return SIP_NULLPTR;
1114 }
1115 
1116 
1117 PyDoc_STRVAR(doc_wxNonOwnedWindow_DoSetSizeHints, "DoSetSizeHints(self, minW: int, minH: int, maxW: int, maxH: int, incW: int, incH: int)");
1118 
1119 extern "C" {static PyObject *meth_wxNonOwnedWindow_DoSetSizeHints(PyObject *, PyObject *, PyObject *);}
meth_wxNonOwnedWindow_DoSetSizeHints(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1120 static PyObject *meth_wxNonOwnedWindow_DoSetSizeHints(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1121 {
1122     PyObject *sipParseErr = SIP_NULLPTR;
1123     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1124 
1125     {
1126         int minW;
1127         int minH;
1128         int maxW;
1129         int maxH;
1130         int incW;
1131         int incH;
1132         sipwxNonOwnedWindow *sipCpp;
1133 
1134         static const char *sipKwdList[] = {
1135             sipName_minW,
1136             sipName_minH,
1137             sipName_maxW,
1138             sipName_maxH,
1139             sipName_incW,
1140             sipName_incH,
1141         };
1142 
1143         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biiiiii", &sipSelf, sipType_wxNonOwnedWindow, &sipCpp, &minW, &minH, &maxW, &maxH, &incW, &incH))
1144         {
1145             PyErr_Clear();
1146 
1147             Py_BEGIN_ALLOW_THREADS
1148             sipCpp->sipProtectVirt_DoSetSizeHints(sipSelfWasArg,minW,minH,maxW,maxH,incW,incH);
1149             Py_END_ALLOW_THREADS
1150 
1151             if (PyErr_Occurred())
1152                 return 0;
1153 
1154             Py_INCREF(Py_None);
1155             return Py_None;
1156         }
1157     }
1158 
1159     /* Raise an exception if the arguments couldn't be parsed. */
1160     sipNoMethod(sipParseErr, sipName_NonOwnedWindow, sipName_DoSetSizeHints, doc_wxNonOwnedWindow_DoSetSizeHints);
1161 
1162     return SIP_NULLPTR;
1163 }
1164 
1165 
1166 PyDoc_STRVAR(doc_wxNonOwnedWindow_DoGetBorderSize, "DoGetBorderSize(self) -> Size");
1167 
1168 extern "C" {static PyObject *meth_wxNonOwnedWindow_DoGetBorderSize(PyObject *, PyObject *);}
meth_wxNonOwnedWindow_DoGetBorderSize(PyObject * sipSelf,PyObject * sipArgs)1169 static PyObject *meth_wxNonOwnedWindow_DoGetBorderSize(PyObject *sipSelf, PyObject *sipArgs)
1170 {
1171     PyObject *sipParseErr = SIP_NULLPTR;
1172     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1173 
1174     {
1175         const sipwxNonOwnedWindow *sipCpp;
1176 
1177         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxNonOwnedWindow, &sipCpp))
1178         {
1179              ::wxSize*sipRes;
1180 
1181             PyErr_Clear();
1182 
1183             Py_BEGIN_ALLOW_THREADS
1184             sipRes = new  ::wxSize(sipCpp->sipProtectVirt_DoGetBorderSize(sipSelfWasArg));
1185             Py_END_ALLOW_THREADS
1186 
1187             if (PyErr_Occurred())
1188                 return 0;
1189 
1190             return sipConvertFromNewType(sipRes,sipType_wxSize,SIP_NULLPTR);
1191         }
1192     }
1193 
1194     /* Raise an exception if the arguments couldn't be parsed. */
1195     sipNoMethod(sipParseErr, sipName_NonOwnedWindow, sipName_DoGetBorderSize, doc_wxNonOwnedWindow_DoGetBorderSize);
1196 
1197     return SIP_NULLPTR;
1198 }
1199 
1200 
1201 PyDoc_STRVAR(doc_wxNonOwnedWindow_DoMoveWindow, "DoMoveWindow(self, x: int, y: int, width: int, height: int)");
1202 
1203 extern "C" {static PyObject *meth_wxNonOwnedWindow_DoMoveWindow(PyObject *, PyObject *, PyObject *);}
meth_wxNonOwnedWindow_DoMoveWindow(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1204 static PyObject *meth_wxNonOwnedWindow_DoMoveWindow(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1205 {
1206     PyObject *sipParseErr = SIP_NULLPTR;
1207     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1208 
1209     {
1210         int x;
1211         int y;
1212         int width;
1213         int height;
1214         sipwxNonOwnedWindow *sipCpp;
1215 
1216         static const char *sipKwdList[] = {
1217             sipName_x,
1218             sipName_y,
1219             sipName_width,
1220             sipName_height,
1221         };
1222 
1223         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biiii", &sipSelf, sipType_wxNonOwnedWindow, &sipCpp, &x, &y, &width, &height))
1224         {
1225             PyErr_Clear();
1226 
1227             Py_BEGIN_ALLOW_THREADS
1228             sipCpp->sipProtectVirt_DoMoveWindow(sipSelfWasArg,x,y,width,height);
1229             Py_END_ALLOW_THREADS
1230 
1231             if (PyErr_Occurred())
1232                 return 0;
1233 
1234             Py_INCREF(Py_None);
1235             return Py_None;
1236         }
1237     }
1238 
1239     /* Raise an exception if the arguments couldn't be parsed. */
1240     sipNoMethod(sipParseErr, sipName_NonOwnedWindow, sipName_DoMoveWindow, doc_wxNonOwnedWindow_DoMoveWindow);
1241 
1242     return SIP_NULLPTR;
1243 }
1244 
1245 
1246 PyDoc_STRVAR(doc_wxNonOwnedWindow_DoSetWindowVariant, "DoSetWindowVariant(self, variant: WindowVariant)");
1247 
1248 extern "C" {static PyObject *meth_wxNonOwnedWindow_DoSetWindowVariant(PyObject *, PyObject *, PyObject *);}
meth_wxNonOwnedWindow_DoSetWindowVariant(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1249 static PyObject *meth_wxNonOwnedWindow_DoSetWindowVariant(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1250 {
1251     PyObject *sipParseErr = SIP_NULLPTR;
1252     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1253 
1254     {
1255          ::wxWindowVariant variant;
1256         sipwxNonOwnedWindow *sipCpp;
1257 
1258         static const char *sipKwdList[] = {
1259             sipName_variant,
1260         };
1261 
1262         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BE", &sipSelf, sipType_wxNonOwnedWindow, &sipCpp, sipType_wxWindowVariant, &variant))
1263         {
1264             PyErr_Clear();
1265 
1266             Py_BEGIN_ALLOW_THREADS
1267             sipCpp->sipProtectVirt_DoSetWindowVariant(sipSelfWasArg,variant);
1268             Py_END_ALLOW_THREADS
1269 
1270             if (PyErr_Occurred())
1271                 return 0;
1272 
1273             Py_INCREF(Py_None);
1274             return Py_None;
1275         }
1276     }
1277 
1278     /* Raise an exception if the arguments couldn't be parsed. */
1279     sipNoMethod(sipParseErr, sipName_NonOwnedWindow, sipName_DoSetWindowVariant, doc_wxNonOwnedWindow_DoSetWindowVariant);
1280 
1281     return SIP_NULLPTR;
1282 }
1283 
1284 
1285 PyDoc_STRVAR(doc_wxNonOwnedWindow_GetDefaultBorder, "GetDefaultBorder(self) -> Border");
1286 
1287 extern "C" {static PyObject *meth_wxNonOwnedWindow_GetDefaultBorder(PyObject *, PyObject *);}
meth_wxNonOwnedWindow_GetDefaultBorder(PyObject * sipSelf,PyObject * sipArgs)1288 static PyObject *meth_wxNonOwnedWindow_GetDefaultBorder(PyObject *sipSelf, PyObject *sipArgs)
1289 {
1290     PyObject *sipParseErr = SIP_NULLPTR;
1291     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1292 
1293     {
1294         const sipwxNonOwnedWindow *sipCpp;
1295 
1296         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxNonOwnedWindow, &sipCpp))
1297         {
1298              ::wxBorder sipRes;
1299 
1300             PyErr_Clear();
1301 
1302             Py_BEGIN_ALLOW_THREADS
1303             sipRes = sipCpp->sipProtectVirt_GetDefaultBorder(sipSelfWasArg);
1304             Py_END_ALLOW_THREADS
1305 
1306             if (PyErr_Occurred())
1307                 return 0;
1308 
1309             return sipConvertFromEnum(static_cast<int>(sipRes), sipType_wxBorder);
1310         }
1311     }
1312 
1313     /* Raise an exception if the arguments couldn't be parsed. */
1314     sipNoMethod(sipParseErr, sipName_NonOwnedWindow, sipName_GetDefaultBorder, doc_wxNonOwnedWindow_GetDefaultBorder);
1315 
1316     return SIP_NULLPTR;
1317 }
1318 
1319 
1320 PyDoc_STRVAR(doc_wxNonOwnedWindow_GetDefaultBorderForControl, "GetDefaultBorderForControl(self) -> Border");
1321 
1322 extern "C" {static PyObject *meth_wxNonOwnedWindow_GetDefaultBorderForControl(PyObject *, PyObject *);}
meth_wxNonOwnedWindow_GetDefaultBorderForControl(PyObject * sipSelf,PyObject * sipArgs)1323 static PyObject *meth_wxNonOwnedWindow_GetDefaultBorderForControl(PyObject *sipSelf, PyObject *sipArgs)
1324 {
1325     PyObject *sipParseErr = SIP_NULLPTR;
1326     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1327 
1328     {
1329         const sipwxNonOwnedWindow *sipCpp;
1330 
1331         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxNonOwnedWindow, &sipCpp))
1332         {
1333              ::wxBorder sipRes;
1334 
1335             PyErr_Clear();
1336 
1337             Py_BEGIN_ALLOW_THREADS
1338             sipRes = sipCpp->sipProtectVirt_GetDefaultBorderForControl(sipSelfWasArg);
1339             Py_END_ALLOW_THREADS
1340 
1341             if (PyErr_Occurred())
1342                 return 0;
1343 
1344             return sipConvertFromEnum(static_cast<int>(sipRes), sipType_wxBorder);
1345         }
1346     }
1347 
1348     /* Raise an exception if the arguments couldn't be parsed. */
1349     sipNoMethod(sipParseErr, sipName_NonOwnedWindow, sipName_GetDefaultBorderForControl, doc_wxNonOwnedWindow_GetDefaultBorderForControl);
1350 
1351     return SIP_NULLPTR;
1352 }
1353 
1354 
1355 PyDoc_STRVAR(doc_wxNonOwnedWindow_DoFreeze, "DoFreeze(self)");
1356 
1357 extern "C" {static PyObject *meth_wxNonOwnedWindow_DoFreeze(PyObject *, PyObject *);}
meth_wxNonOwnedWindow_DoFreeze(PyObject * sipSelf,PyObject * sipArgs)1358 static PyObject *meth_wxNonOwnedWindow_DoFreeze(PyObject *sipSelf, PyObject *sipArgs)
1359 {
1360     PyObject *sipParseErr = SIP_NULLPTR;
1361     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1362 
1363     {
1364         sipwxNonOwnedWindow *sipCpp;
1365 
1366         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxNonOwnedWindow, &sipCpp))
1367         {
1368             PyErr_Clear();
1369 
1370             Py_BEGIN_ALLOW_THREADS
1371             sipCpp->sipProtectVirt_DoFreeze(sipSelfWasArg);
1372             Py_END_ALLOW_THREADS
1373 
1374             if (PyErr_Occurred())
1375                 return 0;
1376 
1377             Py_INCREF(Py_None);
1378             return Py_None;
1379         }
1380     }
1381 
1382     /* Raise an exception if the arguments couldn't be parsed. */
1383     sipNoMethod(sipParseErr, sipName_NonOwnedWindow, sipName_DoFreeze, doc_wxNonOwnedWindow_DoFreeze);
1384 
1385     return SIP_NULLPTR;
1386 }
1387 
1388 
1389 PyDoc_STRVAR(doc_wxNonOwnedWindow_DoThaw, "DoThaw(self)");
1390 
1391 extern "C" {static PyObject *meth_wxNonOwnedWindow_DoThaw(PyObject *, PyObject *);}
meth_wxNonOwnedWindow_DoThaw(PyObject * sipSelf,PyObject * sipArgs)1392 static PyObject *meth_wxNonOwnedWindow_DoThaw(PyObject *sipSelf, PyObject *sipArgs)
1393 {
1394     PyObject *sipParseErr = SIP_NULLPTR;
1395     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1396 
1397     {
1398         sipwxNonOwnedWindow *sipCpp;
1399 
1400         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxNonOwnedWindow, &sipCpp))
1401         {
1402             PyErr_Clear();
1403 
1404             Py_BEGIN_ALLOW_THREADS
1405             sipCpp->sipProtectVirt_DoThaw(sipSelfWasArg);
1406             Py_END_ALLOW_THREADS
1407 
1408             if (PyErr_Occurred())
1409                 return 0;
1410 
1411             Py_INCREF(Py_None);
1412             return Py_None;
1413         }
1414     }
1415 
1416     /* Raise an exception if the arguments couldn't be parsed. */
1417     sipNoMethod(sipParseErr, sipName_NonOwnedWindow, sipName_DoThaw, doc_wxNonOwnedWindow_DoThaw);
1418 
1419     return SIP_NULLPTR;
1420 }
1421 
1422 
1423 PyDoc_STRVAR(doc_wxNonOwnedWindow_TryBefore, "TryBefore(self, event: Event) -> bool");
1424 
1425 extern "C" {static PyObject *meth_wxNonOwnedWindow_TryBefore(PyObject *, PyObject *, PyObject *);}
meth_wxNonOwnedWindow_TryBefore(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1426 static PyObject *meth_wxNonOwnedWindow_TryBefore(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1427 {
1428     PyObject *sipParseErr = SIP_NULLPTR;
1429     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1430 
1431     {
1432          ::wxEvent* event;
1433         sipwxNonOwnedWindow *sipCpp;
1434 
1435         static const char *sipKwdList[] = {
1436             sipName_event,
1437         };
1438 
1439         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxNonOwnedWindow, &sipCpp, sipType_wxEvent, &event))
1440         {
1441             bool sipRes;
1442 
1443             PyErr_Clear();
1444 
1445             Py_BEGIN_ALLOW_THREADS
1446             sipRes = sipCpp->sipProtectVirt_TryBefore(sipSelfWasArg,*event);
1447             Py_END_ALLOW_THREADS
1448 
1449             if (PyErr_Occurred())
1450                 return 0;
1451 
1452             return PyBool_FromLong(sipRes);
1453         }
1454     }
1455 
1456     /* Raise an exception if the arguments couldn't be parsed. */
1457     sipNoMethod(sipParseErr, sipName_NonOwnedWindow, sipName_TryBefore, doc_wxNonOwnedWindow_TryBefore);
1458 
1459     return SIP_NULLPTR;
1460 }
1461 
1462 
1463 PyDoc_STRVAR(doc_wxNonOwnedWindow_TryAfter, "TryAfter(self, event: Event) -> bool");
1464 
1465 extern "C" {static PyObject *meth_wxNonOwnedWindow_TryAfter(PyObject *, PyObject *, PyObject *);}
meth_wxNonOwnedWindow_TryAfter(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1466 static PyObject *meth_wxNonOwnedWindow_TryAfter(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1467 {
1468     PyObject *sipParseErr = SIP_NULLPTR;
1469     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1470 
1471     {
1472          ::wxEvent* event;
1473         sipwxNonOwnedWindow *sipCpp;
1474 
1475         static const char *sipKwdList[] = {
1476             sipName_event,
1477         };
1478 
1479         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxNonOwnedWindow, &sipCpp, sipType_wxEvent, &event))
1480         {
1481             bool sipRes;
1482 
1483             PyErr_Clear();
1484 
1485             Py_BEGIN_ALLOW_THREADS
1486             sipRes = sipCpp->sipProtectVirt_TryAfter(sipSelfWasArg,*event);
1487             Py_END_ALLOW_THREADS
1488 
1489             if (PyErr_Occurred())
1490                 return 0;
1491 
1492             return PyBool_FromLong(sipRes);
1493         }
1494     }
1495 
1496     /* Raise an exception if the arguments couldn't be parsed. */
1497     sipNoMethod(sipParseErr, sipName_NonOwnedWindow, sipName_TryAfter, doc_wxNonOwnedWindow_TryAfter);
1498 
1499     return SIP_NULLPTR;
1500 }
1501 
1502 
1503 PyDoc_STRVAR(doc_wxNonOwnedWindow_DoGetBestSize, "DoGetBestSize() -> Size\n"
1504 "\n"
1505 "Implementation of GetBestSize() that can be overridden.");
1506 
1507 extern "C" {static PyObject *meth_wxNonOwnedWindow_DoGetBestSize(PyObject *, PyObject *);}
meth_wxNonOwnedWindow_DoGetBestSize(PyObject * sipSelf,PyObject * sipArgs)1508 static PyObject *meth_wxNonOwnedWindow_DoGetBestSize(PyObject *sipSelf, PyObject *sipArgs)
1509 {
1510     PyObject *sipParseErr = SIP_NULLPTR;
1511     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1512 
1513     {
1514         const sipwxNonOwnedWindow *sipCpp;
1515 
1516         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxNonOwnedWindow, &sipCpp))
1517         {
1518              ::wxSize*sipRes;
1519 
1520             PyErr_Clear();
1521 
1522             Py_BEGIN_ALLOW_THREADS
1523             sipRes = new  ::wxSize(sipCpp->sipProtectVirt_DoGetBestSize(sipSelfWasArg));
1524             Py_END_ALLOW_THREADS
1525 
1526             if (PyErr_Occurred())
1527                 return 0;
1528 
1529             return sipConvertFromNewType(sipRes,sipType_wxSize,SIP_NULLPTR);
1530         }
1531     }
1532 
1533     /* Raise an exception if the arguments couldn't be parsed. */
1534     sipNoMethod(sipParseErr, sipName_NonOwnedWindow, sipName_DoGetBestSize, SIP_NULLPTR);
1535 
1536     return SIP_NULLPTR;
1537 }
1538 
1539 
1540 PyDoc_STRVAR(doc_wxNonOwnedWindow_DoGetBestClientSize, "DoGetBestClientSize() -> Size\n"
1541 "\n"
1542 "Override this method to return the best size for a custom control.");
1543 
1544 extern "C" {static PyObject *meth_wxNonOwnedWindow_DoGetBestClientSize(PyObject *, PyObject *);}
meth_wxNonOwnedWindow_DoGetBestClientSize(PyObject * sipSelf,PyObject * sipArgs)1545 static PyObject *meth_wxNonOwnedWindow_DoGetBestClientSize(PyObject *sipSelf, PyObject *sipArgs)
1546 {
1547     PyObject *sipParseErr = SIP_NULLPTR;
1548     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1549 
1550     {
1551         const sipwxNonOwnedWindow *sipCpp;
1552 
1553         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxNonOwnedWindow, &sipCpp))
1554         {
1555              ::wxSize*sipRes;
1556 
1557             PyErr_Clear();
1558 
1559             Py_BEGIN_ALLOW_THREADS
1560             sipRes = new  ::wxSize(sipCpp->sipProtectVirt_DoGetBestClientSize(sipSelfWasArg));
1561             Py_END_ALLOW_THREADS
1562 
1563             if (PyErr_Occurred())
1564                 return 0;
1565 
1566             return sipConvertFromNewType(sipRes,sipType_wxSize,SIP_NULLPTR);
1567         }
1568     }
1569 
1570     /* Raise an exception if the arguments couldn't be parsed. */
1571     sipNoMethod(sipParseErr, sipName_NonOwnedWindow, sipName_DoGetBestClientSize, SIP_NULLPTR);
1572 
1573     return SIP_NULLPTR;
1574 }
1575 
1576 
1577 PyDoc_STRVAR(doc_wxNonOwnedWindow_SendDestroyEvent, "SendDestroyEvent()\n"
1578 "\n"
1579 "Generate wxWindowDestroyEvent for this window.");
1580 
1581 extern "C" {static PyObject *meth_wxNonOwnedWindow_SendDestroyEvent(PyObject *, PyObject *);}
meth_wxNonOwnedWindow_SendDestroyEvent(PyObject * sipSelf,PyObject * sipArgs)1582 static PyObject *meth_wxNonOwnedWindow_SendDestroyEvent(PyObject *sipSelf, PyObject *sipArgs)
1583 {
1584     PyObject *sipParseErr = SIP_NULLPTR;
1585 
1586     {
1587         sipwxNonOwnedWindow *sipCpp;
1588 
1589         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxNonOwnedWindow, &sipCpp))
1590         {
1591             PyErr_Clear();
1592 
1593             Py_BEGIN_ALLOW_THREADS
1594             sipCpp->sipProtect_SendDestroyEvent();
1595             Py_END_ALLOW_THREADS
1596 
1597             if (PyErr_Occurred())
1598                 return 0;
1599 
1600             Py_INCREF(Py_None);
1601             return Py_None;
1602         }
1603     }
1604 
1605     /* Raise an exception if the arguments couldn't be parsed. */
1606     sipNoMethod(sipParseErr, sipName_NonOwnedWindow, sipName_SendDestroyEvent, SIP_NULLPTR);
1607 
1608     return SIP_NULLPTR;
1609 }
1610 
1611 
1612 PyDoc_STRVAR(doc_wxNonOwnedWindow_ProcessEvent, "ProcessEvent(event) -> bool\n"
1613 "\n"
1614 "This function is public in wxEvtHandler but protected in wxWindow\n"
1615 "because for wxWindows you should always call ProcessEvent() on the\n"
1616 "pointer returned by GetEventHandler() and not on the wxWindow object\n"
1617 "itself.");
1618 
1619 extern "C" {static PyObject *meth_wxNonOwnedWindow_ProcessEvent(PyObject *, PyObject *, PyObject *);}
meth_wxNonOwnedWindow_ProcessEvent(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1620 static PyObject *meth_wxNonOwnedWindow_ProcessEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1621 {
1622     PyObject *sipParseErr = SIP_NULLPTR;
1623     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1624 
1625     {
1626          ::wxEvent* event;
1627         sipwxNonOwnedWindow *sipCpp;
1628 
1629         static const char *sipKwdList[] = {
1630             sipName_event,
1631         };
1632 
1633         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxNonOwnedWindow, &sipCpp, sipType_wxEvent, &event))
1634         {
1635             bool sipRes;
1636 
1637             PyErr_Clear();
1638 
1639             Py_BEGIN_ALLOW_THREADS
1640             sipRes = sipCpp->sipProtectVirt_ProcessEvent(sipSelfWasArg,*event);
1641             Py_END_ALLOW_THREADS
1642 
1643             if (PyErr_Occurred())
1644                 return 0;
1645 
1646             return PyBool_FromLong(sipRes);
1647         }
1648     }
1649 
1650     /* Raise an exception if the arguments couldn't be parsed. */
1651     sipNoMethod(sipParseErr, sipName_NonOwnedWindow, sipName_ProcessEvent, SIP_NULLPTR);
1652 
1653     return SIP_NULLPTR;
1654 }
1655 
1656 
1657 PyDoc_STRVAR(doc_wxNonOwnedWindow_SetShape, "SetShape(region) -> bool\n"
1658 "SetShape(path) -> bool\n"
1659 "\n"
1660 "If the platform supports it, sets the shape of the window to that\n"
1661 "depicted by region.\n"
1662 "");
1663 
1664 extern "C" {static PyObject *meth_wxNonOwnedWindow_SetShape(PyObject *, PyObject *, PyObject *);}
meth_wxNonOwnedWindow_SetShape(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1665 static PyObject *meth_wxNonOwnedWindow_SetShape(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1666 {
1667     PyObject *sipParseErr = SIP_NULLPTR;
1668 
1669     {
1670         const  ::wxRegion* region;
1671          ::wxNonOwnedWindow *sipCpp;
1672 
1673         static const char *sipKwdList[] = {
1674             sipName_region,
1675         };
1676 
1677         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxNonOwnedWindow, &sipCpp, sipType_wxRegion, &region))
1678         {
1679             bool sipRes;
1680 
1681             PyErr_Clear();
1682 
1683             Py_BEGIN_ALLOW_THREADS
1684             sipRes = sipCpp->SetShape(*region);
1685             Py_END_ALLOW_THREADS
1686 
1687             if (PyErr_Occurred())
1688                 return 0;
1689 
1690             return PyBool_FromLong(sipRes);
1691         }
1692     }
1693 
1694     {
1695         const  ::wxGraphicsPath* path;
1696          ::wxNonOwnedWindow *sipCpp;
1697 
1698         static const char *sipKwdList[] = {
1699             sipName_path,
1700         };
1701 
1702         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxNonOwnedWindow, &sipCpp, sipType_wxGraphicsPath, &path))
1703         {
1704             bool sipRes;
1705 
1706             PyErr_Clear();
1707 
1708             Py_BEGIN_ALLOW_THREADS
1709             sipRes = sipCpp->SetShape(*path);
1710             Py_END_ALLOW_THREADS
1711 
1712             if (PyErr_Occurred())
1713                 return 0;
1714 
1715             return PyBool_FromLong(sipRes);
1716         }
1717     }
1718 
1719     /* Raise an exception if the arguments couldn't be parsed. */
1720     sipNoMethod(sipParseErr, sipName_NonOwnedWindow, sipName_SetShape, SIP_NULLPTR);
1721 
1722     return SIP_NULLPTR;
1723 }
1724 
1725 
1726 /* Cast a pointer to a type somewhere in its inheritance hierarchy. */
1727 extern "C" {static void *cast_wxNonOwnedWindow(void *, const sipTypeDef *);}
cast_wxNonOwnedWindow(void * sipCppV,const sipTypeDef * targetType)1728 static void *cast_wxNonOwnedWindow(void *sipCppV, const sipTypeDef *targetType)
1729 {
1730      ::wxNonOwnedWindow *sipCpp = reinterpret_cast< ::wxNonOwnedWindow *>(sipCppV);
1731 
1732     if (targetType == sipType_wxWindow)
1733         return static_cast< ::wxWindow *>(sipCpp);
1734 
1735     if (targetType == sipType_wxWindowBase)
1736         return static_cast< ::wxWindowBase *>(sipCpp);
1737 
1738     if (targetType == sipType_wxEvtHandler)
1739         return static_cast< ::wxEvtHandler *>(sipCpp);
1740 
1741     if (targetType == sipType_wxObject)
1742         return static_cast< ::wxObject *>(sipCpp);
1743 
1744     if (targetType == sipType_wxTrackable)
1745         return static_cast< ::wxTrackable *>(sipCpp);
1746 
1747     return sipCppV;
1748 }
1749 
1750 
1751 /* Call the instance's destructor. */
1752 extern "C" {static void release_wxNonOwnedWindow(void *, int);}
release_wxNonOwnedWindow(void * sipCppV,int sipState)1753 static void release_wxNonOwnedWindow(void *sipCppV, int sipState)
1754 {
1755     Py_BEGIN_ALLOW_THREADS
1756 
1757     if (sipState & SIP_DERIVED_CLASS)
1758         delete reinterpret_cast<sipwxNonOwnedWindow *>(sipCppV);
1759     else
1760         delete reinterpret_cast< ::wxNonOwnedWindow *>(sipCppV);
1761 
1762     Py_END_ALLOW_THREADS
1763 }
1764 
1765 
1766 extern "C" {static void dealloc_wxNonOwnedWindow(sipSimpleWrapper *);}
dealloc_wxNonOwnedWindow(sipSimpleWrapper * sipSelf)1767 static void dealloc_wxNonOwnedWindow(sipSimpleWrapper *sipSelf)
1768 {
1769     if (sipIsDerivedClass(sipSelf))
1770         reinterpret_cast<sipwxNonOwnedWindow *>(sipGetAddress(sipSelf))->sipPySelf = SIP_NULLPTR;
1771 
1772     if (sipIsOwnedByPython(sipSelf))
1773     {
1774         release_wxNonOwnedWindow(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
1775     }
1776 }
1777 
1778 
1779 extern "C" {static void *init_type_wxNonOwnedWindow(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
init_type_wxNonOwnedWindow(sipSimpleWrapper * sipSelf,PyObject * sipArgs,PyObject * sipKwds,PyObject ** sipUnused,PyObject **,PyObject ** sipParseErr)1780 static void *init_type_wxNonOwnedWindow(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
1781 {
1782     sipwxNonOwnedWindow *sipCpp = SIP_NULLPTR;
1783 
1784     {
1785         if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, ""))
1786         {
1787             Py_BEGIN_ALLOW_THREADS
1788             sipCpp = new sipwxNonOwnedWindow();
1789             Py_END_ALLOW_THREADS
1790 
1791             sipCpp->sipPySelf = sipSelf;
1792 
1793             return sipCpp;
1794         }
1795     }
1796 
1797     return SIP_NULLPTR;
1798 }
1799 
1800 
1801 /* Define this type's super-types. */
1802 static sipEncodedTypeDef supers_wxNonOwnedWindow[] = {{570, 255, 1}};
1803 
1804 
1805 static PyMethodDef methods_wxNonOwnedWindow[] = {
1806     {SIP_MLNAME_CAST(sipName_DoEnable), SIP_MLMETH_CAST(meth_wxNonOwnedWindow_DoEnable), METH_VARARGS|METH_KEYWORDS, SIP_NULLPTR},
1807     {SIP_MLNAME_CAST(sipName_DoFreeze), meth_wxNonOwnedWindow_DoFreeze, METH_VARARGS, SIP_NULLPTR},
1808     {SIP_MLNAME_CAST(sipName_DoGetBestClientSize), meth_wxNonOwnedWindow_DoGetBestClientSize, METH_VARARGS, SIP_NULLPTR},
1809     {SIP_MLNAME_CAST(sipName_DoGetBestSize), meth_wxNonOwnedWindow_DoGetBestSize, METH_VARARGS, SIP_NULLPTR},
1810     {SIP_MLNAME_CAST(sipName_DoGetBorderSize), meth_wxNonOwnedWindow_DoGetBorderSize, METH_VARARGS, SIP_NULLPTR},
1811     {SIP_MLNAME_CAST(sipName_DoGetClientSize), SIP_MLMETH_CAST(meth_wxNonOwnedWindow_DoGetClientSize), METH_VARARGS|METH_KEYWORDS, SIP_NULLPTR},
1812     {SIP_MLNAME_CAST(sipName_DoGetPosition), SIP_MLMETH_CAST(meth_wxNonOwnedWindow_DoGetPosition), METH_VARARGS|METH_KEYWORDS, SIP_NULLPTR},
1813     {SIP_MLNAME_CAST(sipName_DoGetSize), SIP_MLMETH_CAST(meth_wxNonOwnedWindow_DoGetSize), METH_VARARGS|METH_KEYWORDS, SIP_NULLPTR},
1814     {SIP_MLNAME_CAST(sipName_DoMoveWindow), SIP_MLMETH_CAST(meth_wxNonOwnedWindow_DoMoveWindow), METH_VARARGS|METH_KEYWORDS, SIP_NULLPTR},
1815     {SIP_MLNAME_CAST(sipName_DoSetClientSize), SIP_MLMETH_CAST(meth_wxNonOwnedWindow_DoSetClientSize), METH_VARARGS|METH_KEYWORDS, SIP_NULLPTR},
1816     {SIP_MLNAME_CAST(sipName_DoSetSize), SIP_MLMETH_CAST(meth_wxNonOwnedWindow_DoSetSize), METH_VARARGS|METH_KEYWORDS, SIP_NULLPTR},
1817     {SIP_MLNAME_CAST(sipName_DoSetSizeHints), SIP_MLMETH_CAST(meth_wxNonOwnedWindow_DoSetSizeHints), METH_VARARGS|METH_KEYWORDS, SIP_NULLPTR},
1818     {SIP_MLNAME_CAST(sipName_DoSetWindowVariant), SIP_MLMETH_CAST(meth_wxNonOwnedWindow_DoSetWindowVariant), METH_VARARGS|METH_KEYWORDS, SIP_NULLPTR},
1819     {SIP_MLNAME_CAST(sipName_DoThaw), meth_wxNonOwnedWindow_DoThaw, METH_VARARGS, SIP_NULLPTR},
1820     {SIP_MLNAME_CAST(sipName_GetDefaultBorder), meth_wxNonOwnedWindow_GetDefaultBorder, METH_VARARGS, SIP_NULLPTR},
1821     {SIP_MLNAME_CAST(sipName_GetDefaultBorderForControl), meth_wxNonOwnedWindow_GetDefaultBorderForControl, METH_VARARGS, SIP_NULLPTR},
1822     {SIP_MLNAME_CAST(sipName_ProcessEvent), SIP_MLMETH_CAST(meth_wxNonOwnedWindow_ProcessEvent), METH_VARARGS|METH_KEYWORDS, SIP_NULLPTR},
1823     {SIP_MLNAME_CAST(sipName_SendDestroyEvent), meth_wxNonOwnedWindow_SendDestroyEvent, METH_VARARGS, SIP_NULLPTR},
1824     {SIP_MLNAME_CAST(sipName_SetShape), SIP_MLMETH_CAST(meth_wxNonOwnedWindow_SetShape), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxNonOwnedWindow_SetShape)},
1825     {SIP_MLNAME_CAST(sipName_TryAfter), SIP_MLMETH_CAST(meth_wxNonOwnedWindow_TryAfter), METH_VARARGS|METH_KEYWORDS, SIP_NULLPTR},
1826     {SIP_MLNAME_CAST(sipName_TryBefore), SIP_MLMETH_CAST(meth_wxNonOwnedWindow_TryBefore), METH_VARARGS|METH_KEYWORDS, SIP_NULLPTR}
1827 };
1828 
1829 PyDoc_STRVAR(doc_wxNonOwnedWindow, "Common base class for all non-child windows.");
1830 
1831 
1832 sipClassTypeDef sipTypeDef__core_wxNonOwnedWindow = {
1833     {
1834         -1,
1835         SIP_NULLPTR,
1836         SIP_NULLPTR,
1837         SIP_TYPE_SCC|SIP_TYPE_CLASS,
1838         sipNameNr_wxNonOwnedWindow,
1839         {SIP_NULLPTR},
1840         SIP_NULLPTR
1841     },
1842     {
1843         sipNameNr_NonOwnedWindow,
1844         {0, 0, 1},
1845         21, methods_wxNonOwnedWindow,
1846         0, SIP_NULLPTR,
1847         0, SIP_NULLPTR,
1848         {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
1849     },
1850     doc_wxNonOwnedWindow,
1851     -1,
1852     -1,
1853     supers_wxNonOwnedWindow,
1854     SIP_NULLPTR,
1855     init_type_wxNonOwnedWindow,
1856     SIP_NULLPTR,
1857     SIP_NULLPTR,
1858 #if PY_MAJOR_VERSION >= 3
1859     SIP_NULLPTR,
1860     SIP_NULLPTR,
1861 #else
1862     SIP_NULLPTR,
1863     SIP_NULLPTR,
1864     SIP_NULLPTR,
1865     SIP_NULLPTR,
1866 #endif
1867     dealloc_wxNonOwnedWindow,
1868     SIP_NULLPTR,
1869     SIP_NULLPTR,
1870     SIP_NULLPTR,
1871     release_wxNonOwnedWindow,
1872     cast_wxNonOwnedWindow,
1873     SIP_NULLPTR,
1874     SIP_NULLPTR,
1875     SIP_NULLPTR,
1876     SIP_NULLPTR,
1877     SIP_NULLPTR,
1878     SIP_NULLPTR
1879 };
1880