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