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