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/treebook.h>
13
14 #include <wx/window.h>
15 #include <wx/gdicmn.h>
16 #include <wx/gdicmn.h>
17 #include <wx/treectrl.h>
18 #include <wx/window.h>
19 #include <wx/event.h>
20 #include <wx/validate.h>
21 #include <wx/dc.h>
22 #include <wx/event.h>
23 #include <wx/event.h>
24 #include <wx/setup.h>
25 #include <wxPython/wxpy_api.h>
26 #include <wx/event.h>
27 #include <wx/cursor.h>
28 #include <wx/caret.h>
29 #include <wx/layout.h>
30 #include <wx/sizer.h>
31 #include <wx/dnd.h>
32 #include <wx/access.h>
33 #include <wx/accel.h>
34 #include <wx/menu.h>
35 #include <wx/tooltip.h>
36 #include <wx/event.h>
37 #include <wx/gdicmn.h>
38 #include <wx/event.h>
39 #include <wx/event.h>
40 #include <wx/palette.h>
41 #include <wx/colour.h>
42 #include <wx/font.h>
43 #include <wx/region.h>
44
45 #include <wx/eventfilter.h>
46 #include <wx/object.h>
47 #include <wx/object.h>
48 #include <wx/object.h>
49 #include <wx/imaglist.h>
_wxTreebook_GetTreeCtrl(wxTreebook * self)50 wxTreeCtrl* _wxTreebook_GetTreeCtrl(wxTreebook* self)
51 {
52 return(self->GetTreeCtrl());
53 }
54
55
56 class sipwxTreebook : public ::wxTreebook
57 {
58 public:
59 sipwxTreebook();
60 sipwxTreebook( ::wxWindow*, ::wxWindowID,const ::wxPoint&,const ::wxSize&,long,const ::wxString&);
61 virtual ~sipwxTreebook();
62
63 /*
64 * There is a public method for every protected method visible from
65 * this class.
66 */
67 void sipProtect_SendDestroyEvent();
68 bool sipProtectVirt_ProcessEvent(bool, ::wxEvent&);
69 void sipProtectVirt_DoEnable(bool,bool);
70 void sipProtectVirt_DoGetPosition(bool,int*,int*) const;
71 void sipProtectVirt_DoGetSize(bool,int*,int*) const;
72 void sipProtectVirt_DoGetClientSize(bool,int*,int*) const;
73 ::wxSize sipProtectVirt_DoGetBestSize(bool) const;
74 ::wxSize sipProtectVirt_DoGetBestClientSize(bool) const;
75 void sipProtectVirt_DoSetSize(bool,int,int,int,int,int);
76 void sipProtectVirt_DoSetClientSize(bool,int,int);
77 void sipProtectVirt_DoSetSizeHints(bool,int,int,int,int,int,int);
78 ::wxSize sipProtectVirt_DoGetBorderSize(bool) const;
79 void sipProtectVirt_DoMoveWindow(bool,int,int,int,int);
80 void sipProtectVirt_DoSetWindowVariant(bool, ::wxWindowVariant);
81 ::wxBorder sipProtectVirt_GetDefaultBorder(bool) const;
82 ::wxBorder sipProtectVirt_GetDefaultBorderForControl(bool) const;
83 void sipProtectVirt_DoFreeze(bool);
84 void sipProtectVirt_DoThaw(bool);
85 bool sipProtectVirt_HasTransparentBackground(bool);
86 bool sipProtectVirt_TryBefore(bool, ::wxEvent&);
87 bool sipProtectVirt_TryAfter(bool, ::wxEvent&);
88
89 /*
90 * There is a protected method for every virtual method visible from
91 * this class.
92 */
93 protected:
94 void RemoveChild( ::wxWindowBase*) SIP_OVERRIDE;
95 void AddChild( ::wxWindowBase*) SIP_OVERRIDE;
96 bool ProcessEvent( ::wxEvent&) SIP_OVERRIDE;
97 bool TryBefore( ::wxEvent&) SIP_OVERRIDE;
98 bool TryAfter( ::wxEvent&) SIP_OVERRIDE;
99 bool AcceptsFocus() const SIP_OVERRIDE;
100 bool AcceptsFocusFromKeyboard() const SIP_OVERRIDE;
101 bool AcceptsFocusRecursively() const SIP_OVERRIDE;
102 void SetCanFocus(bool) SIP_OVERRIDE;
103 bool InformFirstDirection(int,int,int) SIP_OVERRIDE;
104 ::wxPoint GetClientAreaOrigin() const SIP_OVERRIDE;
105 bool HasTransparentBackground() SIP_OVERRIDE;
106 bool ShouldInheritColours() const SIP_OVERRIDE;
107 ::wxValidator* GetValidator() SIP_OVERRIDE;
108 void SetValidator(const ::wxValidator&) SIP_OVERRIDE;
109 bool TransferDataFromWindow() SIP_OVERRIDE;
110 bool TransferDataToWindow() SIP_OVERRIDE;
111 bool Validate() SIP_OVERRIDE;
112 bool Destroy() SIP_OVERRIDE;
113 void InheritAttributes() SIP_OVERRIDE;
114 void InitDialog() SIP_OVERRIDE;
115 void OnInternalIdle() SIP_OVERRIDE;
116 ::wxWindow* GetMainWindowOfCompositeControl() SIP_OVERRIDE;
117 void DoEnable(bool) SIP_OVERRIDE;
118 void DoGetPosition(int*,int*) const SIP_OVERRIDE;
119 void DoGetSize(int*,int*) const SIP_OVERRIDE;
120 void DoGetClientSize(int*,int*) const SIP_OVERRIDE;
121 void DoSetSize(int,int,int,int,int) SIP_OVERRIDE;
122 void DoSetClientSize(int,int) SIP_OVERRIDE;
123 void DoSetSizeHints(int,int,int,int,int,int) SIP_OVERRIDE;
124 ::wxSize DoGetBorderSize() const SIP_OVERRIDE;
125 void DoMoveWindow(int,int,int,int) SIP_OVERRIDE;
126 void DoSetWindowVariant( ::wxWindowVariant) SIP_OVERRIDE;
127 ::wxBorder GetDefaultBorder() const SIP_OVERRIDE;
128 ::wxBorder GetDefaultBorderForControl() const SIP_OVERRIDE;
129 void DoFreeze() SIP_OVERRIDE;
130 void DoThaw() SIP_OVERRIDE;
131 ::wxSize DoGetBestSize() const SIP_OVERRIDE;
132 ::wxSize DoGetBestClientSize() const SIP_OVERRIDE;
133 void SetImageList( ::wxImageList*) SIP_OVERRIDE;
134 int GetPageImage(size_t) const SIP_OVERRIDE;
135 bool SetPageImage(size_t,int) SIP_OVERRIDE;
136 ::wxString GetPageText(size_t) const SIP_OVERRIDE;
137 bool SetPageText(size_t,const ::wxString&) SIP_OVERRIDE;
138 int GetSelection() const SIP_OVERRIDE;
139 int SetSelection(size_t) SIP_OVERRIDE;
140 int ChangeSelection(size_t) SIP_OVERRIDE;
141 bool AddPage( ::wxWindow*,const ::wxString&,bool,int) SIP_OVERRIDE;
142 bool DeleteAllPages() SIP_OVERRIDE;
143 bool DeletePage(size_t) SIP_OVERRIDE;
144 bool InsertPage(size_t, ::wxWindow*,const ::wxString&,bool,int) SIP_OVERRIDE;
145 bool RemovePage(size_t) SIP_OVERRIDE;
146 size_t GetPageCount() const SIP_OVERRIDE;
147 void SetPageSize(const ::wxSize&) SIP_OVERRIDE;
148 int HitTest(const ::wxPoint&,long*) const SIP_OVERRIDE;
149
150 public:
151 sipSimpleWrapper *sipPySelf;
152
153 private:
154 sipwxTreebook(const sipwxTreebook &);
155 sipwxTreebook &operator = (const sipwxTreebook &);
156
157 char sipPyMethods[55];
158 };
159
sipwxTreebook()160 sipwxTreebook::sipwxTreebook(): ::wxTreebook(), sipPySelf(SIP_NULLPTR)
161 {
162 memset(sipPyMethods, 0, sizeof (sipPyMethods));
163 }
164
sipwxTreebook(::wxWindow * parent,::wxWindowID id,const::wxPoint & pos,const::wxSize & size,long style,const::wxString & name)165 sipwxTreebook::sipwxTreebook( ::wxWindow*parent, ::wxWindowID id,const ::wxPoint& pos,const ::wxSize& size,long style,const ::wxString& name): ::wxTreebook(parent,id,pos,size,style,name), sipPySelf(SIP_NULLPTR)
166 {
167 memset(sipPyMethods, 0, sizeof (sipPyMethods));
168 }
169
~sipwxTreebook()170 sipwxTreebook::~sipwxTreebook()
171 {
172 sipInstanceDestroyedEx(&sipPySelf);
173 }
174
RemoveChild(::wxWindowBase * child)175 void sipwxTreebook::RemoveChild( ::wxWindowBase*child)
176 {
177 sip_gilstate_t sipGILState;
178 PyObject *sipMeth;
179
180 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,SIP_NULLPTR,sipName_RemoveChild);
181
182 if (!sipMeth)
183 {
184 ::wxTreebook::RemoveChild(child);
185 return;
186 }
187
188 extern void sipVH__core_110(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxWindowBase*);
189
190 sipVH__core_110(sipGILState, 0, sipPySelf, sipMeth, child);
191 }
192
AddChild(::wxWindowBase * child)193 void sipwxTreebook::AddChild( ::wxWindowBase*child)
194 {
195 sip_gilstate_t sipGILState;
196 PyObject *sipMeth;
197
198 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,SIP_NULLPTR,sipName_AddChild);
199
200 if (!sipMeth)
201 {
202 ::wxTreebook::AddChild(child);
203 return;
204 }
205
206 extern void sipVH__core_110(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxWindowBase*);
207
208 sipVH__core_110(sipGILState, 0, sipPySelf, sipMeth, child);
209 }
210
ProcessEvent(::wxEvent & event)211 bool sipwxTreebook::ProcessEvent( ::wxEvent& event)
212 {
213 sip_gilstate_t sipGILState;
214 PyObject *sipMeth;
215
216 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,SIP_NULLPTR,sipName_ProcessEvent);
217
218 if (!sipMeth)
219 return ::wxTreebook::ProcessEvent(event);
220
221 extern bool sipVH__core_90(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxEvent&);
222
223 return sipVH__core_90(sipGILState, 0, sipPySelf, sipMeth, event);
224 }
225
TryBefore(::wxEvent & event)226 bool sipwxTreebook::TryBefore( ::wxEvent& event)
227 {
228 sip_gilstate_t sipGILState;
229 PyObject *sipMeth;
230
231 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,SIP_NULLPTR,sipName_TryBefore);
232
233 if (!sipMeth)
234 return ::wxTreebook::TryBefore(event);
235
236 extern bool sipVH__core_90(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxEvent&);
237
238 return sipVH__core_90(sipGILState, 0, sipPySelf, sipMeth, event);
239 }
240
TryAfter(::wxEvent & event)241 bool sipwxTreebook::TryAfter( ::wxEvent& event)
242 {
243 sip_gilstate_t sipGILState;
244 PyObject *sipMeth;
245
246 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,SIP_NULLPTR,sipName_TryAfter);
247
248 if (!sipMeth)
249 return ::wxTreebook::TryAfter(event);
250
251 extern bool sipVH__core_90(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxEvent&);
252
253 return sipVH__core_90(sipGILState, 0, sipPySelf, sipMeth, event);
254 }
255
AcceptsFocus() const256 bool sipwxTreebook::AcceptsFocus() const
257 {
258 sip_gilstate_t sipGILState;
259 PyObject *sipMeth;
260
261 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[5]),sipPySelf,SIP_NULLPTR,sipName_AcceptsFocus);
262
263 if (!sipMeth)
264 return ::wxTreebook::AcceptsFocus();
265
266 extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
267
268 return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
269 }
270
AcceptsFocusFromKeyboard() const271 bool sipwxTreebook::AcceptsFocusFromKeyboard() const
272 {
273 sip_gilstate_t sipGILState;
274 PyObject *sipMeth;
275
276 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[6]),sipPySelf,SIP_NULLPTR,sipName_AcceptsFocusFromKeyboard);
277
278 if (!sipMeth)
279 return ::wxTreebook::AcceptsFocusFromKeyboard();
280
281 extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
282
283 return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
284 }
285
AcceptsFocusRecursively() const286 bool sipwxTreebook::AcceptsFocusRecursively() const
287 {
288 sip_gilstate_t sipGILState;
289 PyObject *sipMeth;
290
291 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[7]),sipPySelf,SIP_NULLPTR,sipName_AcceptsFocusRecursively);
292
293 if (!sipMeth)
294 return ::wxTreebook::AcceptsFocusRecursively();
295
296 extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
297
298 return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
299 }
300
SetCanFocus(bool canFocus)301 void sipwxTreebook::SetCanFocus(bool canFocus)
302 {
303 sip_gilstate_t sipGILState;
304 PyObject *sipMeth;
305
306 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,SIP_NULLPTR,sipName_SetCanFocus);
307
308 if (!sipMeth)
309 {
310 ::wxTreebook::SetCanFocus(canFocus);
311 return;
312 }
313
314 extern void sipVH__core_84(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);
315
316 sipVH__core_84(sipGILState, 0, sipPySelf, sipMeth, canFocus);
317 }
318
InformFirstDirection(int direction,int size,int availableOtherDir)319 bool sipwxTreebook::InformFirstDirection(int direction,int size,int availableOtherDir)
320 {
321 sip_gilstate_t sipGILState;
322 PyObject *sipMeth;
323
324 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,SIP_NULLPTR,sipName_InformFirstDirection);
325
326 if (!sipMeth)
327 return ::wxTreebook::InformFirstDirection(direction,size,availableOtherDir);
328
329 extern bool sipVH__core_111(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,int);
330
331 return sipVH__core_111(sipGILState, 0, sipPySelf, sipMeth, direction, size, availableOtherDir);
332 }
333
GetClientAreaOrigin() const334 ::wxPoint sipwxTreebook::GetClientAreaOrigin() const
335 {
336 sip_gilstate_t sipGILState;
337 PyObject *sipMeth;
338
339 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[10]),sipPySelf,SIP_NULLPTR,sipName_GetClientAreaOrigin);
340
341 if (!sipMeth)
342 return ::wxTreebook::GetClientAreaOrigin();
343
344 extern ::wxPoint sipVH__core_112(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
345
346 return sipVH__core_112(sipGILState, 0, sipPySelf, sipMeth);
347 }
348
HasTransparentBackground()349 bool sipwxTreebook::HasTransparentBackground()
350 {
351 sip_gilstate_t sipGILState;
352 PyObject *sipMeth;
353
354 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,SIP_NULLPTR,sipName_HasTransparentBackground);
355
356 if (!sipMeth)
357 return ::wxTreebook::HasTransparentBackground();
358
359 extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
360
361 return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
362 }
363
ShouldInheritColours() const364 bool sipwxTreebook::ShouldInheritColours() const
365 {
366 sip_gilstate_t sipGILState;
367 PyObject *sipMeth;
368
369 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[12]),sipPySelf,SIP_NULLPTR,sipName_ShouldInheritColours);
370
371 if (!sipMeth)
372 return ::wxTreebook::ShouldInheritColours();
373
374 extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
375
376 return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
377 }
378
GetValidator()379 ::wxValidator* sipwxTreebook::GetValidator()
380 {
381 sip_gilstate_t sipGILState;
382 PyObject *sipMeth;
383
384 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,SIP_NULLPTR,sipName_GetValidator);
385
386 if (!sipMeth)
387 return ::wxTreebook::GetValidator();
388
389 extern ::wxValidator* sipVH__core_113(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
390
391 return sipVH__core_113(sipGILState, 0, sipPySelf, sipMeth);
392 }
393
SetValidator(const::wxValidator & validator)394 void sipwxTreebook::SetValidator(const ::wxValidator& validator)
395 {
396 sip_gilstate_t sipGILState;
397 PyObject *sipMeth;
398
399 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,SIP_NULLPTR,sipName_SetValidator);
400
401 if (!sipMeth)
402 {
403 ::wxTreebook::SetValidator(validator);
404 return;
405 }
406
407 extern void sipVH__core_114(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const ::wxValidator&);
408
409 sipVH__core_114(sipGILState, 0, sipPySelf, sipMeth, validator);
410 }
411
TransferDataFromWindow()412 bool sipwxTreebook::TransferDataFromWindow()
413 {
414 sip_gilstate_t sipGILState;
415 PyObject *sipMeth;
416
417 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,SIP_NULLPTR,sipName_TransferDataFromWindow);
418
419 if (!sipMeth)
420 return ::wxTreebook::TransferDataFromWindow();
421
422 extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
423
424 return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
425 }
426
TransferDataToWindow()427 bool sipwxTreebook::TransferDataToWindow()
428 {
429 sip_gilstate_t sipGILState;
430 PyObject *sipMeth;
431
432 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,SIP_NULLPTR,sipName_TransferDataToWindow);
433
434 if (!sipMeth)
435 return ::wxTreebook::TransferDataToWindow();
436
437 extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
438
439 return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
440 }
441
Validate()442 bool sipwxTreebook::Validate()
443 {
444 sip_gilstate_t sipGILState;
445 PyObject *sipMeth;
446
447 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,SIP_NULLPTR,sipName_Validate);
448
449 if (!sipMeth)
450 return ::wxTreebook::Validate();
451
452 extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
453
454 return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
455 }
456
Destroy()457 bool sipwxTreebook::Destroy()
458 {
459 sip_gilstate_t sipGILState;
460 PyObject *sipMeth;
461
462 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,SIP_NULLPTR,sipName_Destroy);
463
464 if (!sipMeth)
465 return ::wxTreebook::Destroy();
466
467 extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
468
469 return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
470 }
471
InheritAttributes()472 void sipwxTreebook::InheritAttributes()
473 {
474 sip_gilstate_t sipGILState;
475 PyObject *sipMeth;
476
477 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,SIP_NULLPTR,sipName_InheritAttributes);
478
479 if (!sipMeth)
480 {
481 ::wxTreebook::InheritAttributes();
482 return;
483 }
484
485 extern void sipVH__core_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
486
487 sipVH__core_45(sipGILState, 0, sipPySelf, sipMeth);
488 }
489
InitDialog()490 void sipwxTreebook::InitDialog()
491 {
492 sip_gilstate_t sipGILState;
493 PyObject *sipMeth;
494
495 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,SIP_NULLPTR,sipName_InitDialog);
496
497 if (!sipMeth)
498 {
499 ::wxTreebook::InitDialog();
500 return;
501 }
502
503 extern void sipVH__core_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
504
505 sipVH__core_45(sipGILState, 0, sipPySelf, sipMeth);
506 }
507
OnInternalIdle()508 void sipwxTreebook::OnInternalIdle()
509 {
510 sip_gilstate_t sipGILState;
511 PyObject *sipMeth;
512
513 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,SIP_NULLPTR,sipName_OnInternalIdle);
514
515 if (!sipMeth)
516 {
517 ::wxTreebook::OnInternalIdle();
518 return;
519 }
520
521 extern void sipVH__core_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
522
523 sipVH__core_45(sipGILState, 0, sipPySelf, sipMeth);
524 }
525
GetMainWindowOfCompositeControl()526 ::wxWindow* sipwxTreebook::GetMainWindowOfCompositeControl()
527 {
528 sip_gilstate_t sipGILState;
529 PyObject *sipMeth;
530
531 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[22],sipPySelf,SIP_NULLPTR,sipName_GetMainWindowOfCompositeControl);
532
533 if (!sipMeth)
534 return ::wxTreebook::GetMainWindowOfCompositeControl();
535
536 extern ::wxWindow* sipVH__core_115(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
537
538 return sipVH__core_115(sipGILState, 0, sipPySelf, sipMeth);
539 }
540
DoEnable(bool enable)541 void sipwxTreebook::DoEnable(bool enable)
542 {
543 sip_gilstate_t sipGILState;
544 PyObject *sipMeth;
545
546 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],sipPySelf,SIP_NULLPTR,sipName_DoEnable);
547
548 if (!sipMeth)
549 {
550 ::wxTreebook::DoEnable(enable);
551 return;
552 }
553
554 extern void sipVH__core_84(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);
555
556 sipVH__core_84(sipGILState, 0, sipPySelf, sipMeth, enable);
557 }
558
DoGetPosition(int * x,int * y) const559 void sipwxTreebook::DoGetPosition(int*x,int*y) const
560 {
561 sip_gilstate_t sipGILState;
562 PyObject *sipMeth;
563
564 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[24]),sipPySelf,SIP_NULLPTR,sipName_DoGetPosition);
565
566 if (!sipMeth)
567 {
568 ::wxTreebook::DoGetPosition(x,y);
569 return;
570 }
571
572 extern void sipVH__core_116(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int*,int*);
573
574 sipVH__core_116(sipGILState, 0, sipPySelf, sipMeth, x, y);
575 }
576
DoGetSize(int * width,int * height) const577 void sipwxTreebook::DoGetSize(int*width,int*height) const
578 {
579 sip_gilstate_t sipGILState;
580 PyObject *sipMeth;
581
582 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[25]),sipPySelf,SIP_NULLPTR,sipName_DoGetSize);
583
584 if (!sipMeth)
585 {
586 ::wxTreebook::DoGetSize(width,height);
587 return;
588 }
589
590 extern void sipVH__core_116(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int*,int*);
591
592 sipVH__core_116(sipGILState, 0, sipPySelf, sipMeth, width, height);
593 }
594
DoGetClientSize(int * width,int * height) const595 void sipwxTreebook::DoGetClientSize(int*width,int*height) const
596 {
597 sip_gilstate_t sipGILState;
598 PyObject *sipMeth;
599
600 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[26]),sipPySelf,SIP_NULLPTR,sipName_DoGetClientSize);
601
602 if (!sipMeth)
603 {
604 ::wxTreebook::DoGetClientSize(width,height);
605 return;
606 }
607
608 extern void sipVH__core_116(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int*,int*);
609
610 sipVH__core_116(sipGILState, 0, sipPySelf, sipMeth, width, height);
611 }
612
DoSetSize(int x,int y,int width,int height,int sizeFlags)613 void sipwxTreebook::DoSetSize(int x,int y,int width,int height,int sizeFlags)
614 {
615 sip_gilstate_t sipGILState;
616 PyObject *sipMeth;
617
618 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[27],sipPySelf,SIP_NULLPTR,sipName_DoSetSize);
619
620 if (!sipMeth)
621 {
622 ::wxTreebook::DoSetSize(x,y,width,height,sizeFlags);
623 return;
624 }
625
626 extern void sipVH__core_117(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,int,int,int);
627
628 sipVH__core_117(sipGILState, 0, sipPySelf, sipMeth, x, y, width, height, sizeFlags);
629 }
630
DoSetClientSize(int width,int height)631 void sipwxTreebook::DoSetClientSize(int width,int height)
632 {
633 sip_gilstate_t sipGILState;
634 PyObject *sipMeth;
635
636 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[28],sipPySelf,SIP_NULLPTR,sipName_DoSetClientSize);
637
638 if (!sipMeth)
639 {
640 ::wxTreebook::DoSetClientSize(width,height);
641 return;
642 }
643
644 extern void sipVH__core_118(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int);
645
646 sipVH__core_118(sipGILState, 0, sipPySelf, sipMeth, width, height);
647 }
648
DoSetSizeHints(int minW,int minH,int maxW,int maxH,int incW,int incH)649 void sipwxTreebook::DoSetSizeHints(int minW,int minH,int maxW,int maxH,int incW,int incH)
650 {
651 sip_gilstate_t sipGILState;
652 PyObject *sipMeth;
653
654 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[29],sipPySelf,SIP_NULLPTR,sipName_DoSetSizeHints);
655
656 if (!sipMeth)
657 {
658 ::wxTreebook::DoSetSizeHints(minW,minH,maxW,maxH,incW,incH);
659 return;
660 }
661
662 extern void sipVH__core_119(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,int,int,int,int);
663
664 sipVH__core_119(sipGILState, 0, sipPySelf, sipMeth, minW, minH, maxW, maxH, incW, incH);
665 }
666
DoGetBorderSize() const667 ::wxSize sipwxTreebook::DoGetBorderSize() const
668 {
669 sip_gilstate_t sipGILState;
670 PyObject *sipMeth;
671
672 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[30]),sipPySelf,SIP_NULLPTR,sipName_DoGetBorderSize);
673
674 if (!sipMeth)
675 return ::wxTreebook::DoGetBorderSize();
676
677 extern ::wxSize sipVH__core_93(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
678
679 return sipVH__core_93(sipGILState, 0, sipPySelf, sipMeth);
680 }
681
DoMoveWindow(int x,int y,int width,int height)682 void sipwxTreebook::DoMoveWindow(int x,int y,int width,int height)
683 {
684 sip_gilstate_t sipGILState;
685 PyObject *sipMeth;
686
687 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[31],sipPySelf,SIP_NULLPTR,sipName_DoMoveWindow);
688
689 if (!sipMeth)
690 {
691 ::wxTreebook::DoMoveWindow(x,y,width,height);
692 return;
693 }
694
695 extern void sipVH__core_120(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,int,int);
696
697 sipVH__core_120(sipGILState, 0, sipPySelf, sipMeth, x, y, width, height);
698 }
699
DoSetWindowVariant(::wxWindowVariant variant)700 void sipwxTreebook::DoSetWindowVariant( ::wxWindowVariant variant)
701 {
702 sip_gilstate_t sipGILState;
703 PyObject *sipMeth;
704
705 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[32],sipPySelf,SIP_NULLPTR,sipName_DoSetWindowVariant);
706
707 if (!sipMeth)
708 {
709 ::wxTreebook::DoSetWindowVariant(variant);
710 return;
711 }
712
713 extern void sipVH__core_121(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxWindowVariant);
714
715 sipVH__core_121(sipGILState, 0, sipPySelf, sipMeth, variant);
716 }
717
GetDefaultBorder() const718 ::wxBorder sipwxTreebook::GetDefaultBorder() const
719 {
720 sip_gilstate_t sipGILState;
721 PyObject *sipMeth;
722
723 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[33]),sipPySelf,SIP_NULLPTR,sipName_GetDefaultBorder);
724
725 if (!sipMeth)
726 return ::wxTreebook::GetDefaultBorder();
727
728 extern ::wxBorder sipVH__core_122(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
729
730 return sipVH__core_122(sipGILState, 0, sipPySelf, sipMeth);
731 }
732
GetDefaultBorderForControl() const733 ::wxBorder sipwxTreebook::GetDefaultBorderForControl() const
734 {
735 sip_gilstate_t sipGILState;
736 PyObject *sipMeth;
737
738 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[34]),sipPySelf,SIP_NULLPTR,sipName_GetDefaultBorderForControl);
739
740 if (!sipMeth)
741 return ::wxTreebook::GetDefaultBorderForControl();
742
743 extern ::wxBorder sipVH__core_122(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
744
745 return sipVH__core_122(sipGILState, 0, sipPySelf, sipMeth);
746 }
747
DoFreeze()748 void sipwxTreebook::DoFreeze()
749 {
750 sip_gilstate_t sipGILState;
751 PyObject *sipMeth;
752
753 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[35],sipPySelf,SIP_NULLPTR,sipName_DoFreeze);
754
755 if (!sipMeth)
756 {
757 ::wxTreebook::DoFreeze();
758 return;
759 }
760
761 extern void sipVH__core_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
762
763 sipVH__core_45(sipGILState, 0, sipPySelf, sipMeth);
764 }
765
DoThaw()766 void sipwxTreebook::DoThaw()
767 {
768 sip_gilstate_t sipGILState;
769 PyObject *sipMeth;
770
771 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[36],sipPySelf,SIP_NULLPTR,sipName_DoThaw);
772
773 if (!sipMeth)
774 {
775 ::wxTreebook::DoThaw();
776 return;
777 }
778
779 extern void sipVH__core_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
780
781 sipVH__core_45(sipGILState, 0, sipPySelf, sipMeth);
782 }
783
DoGetBestSize() const784 ::wxSize sipwxTreebook::DoGetBestSize() const
785 {
786 sip_gilstate_t sipGILState;
787 PyObject *sipMeth;
788
789 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[37]),sipPySelf,SIP_NULLPTR,sipName_DoGetBestSize);
790
791 if (!sipMeth)
792 return ::wxTreebook::DoGetBestSize();
793
794 extern ::wxSize sipVH__core_93(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
795
796 return sipVH__core_93(sipGILState, 0, sipPySelf, sipMeth);
797 }
798
DoGetBestClientSize() const799 ::wxSize sipwxTreebook::DoGetBestClientSize() const
800 {
801 sip_gilstate_t sipGILState;
802 PyObject *sipMeth;
803
804 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[38]),sipPySelf,SIP_NULLPTR,sipName_DoGetBestClientSize);
805
806 if (!sipMeth)
807 return ::wxTreebook::DoGetBestClientSize();
808
809 extern ::wxSize sipVH__core_93(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
810
811 return sipVH__core_93(sipGILState, 0, sipPySelf, sipMeth);
812 }
813
SetImageList(::wxImageList * imageList)814 void sipwxTreebook::SetImageList( ::wxImageList*imageList)
815 {
816 sip_gilstate_t sipGILState;
817 PyObject *sipMeth;
818
819 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[39],sipPySelf,SIP_NULLPTR,sipName_SetImageList);
820
821 if (!sipMeth)
822 {
823 ::wxTreebook::SetImageList(imageList);
824 return;
825 }
826
827 extern void sipVH__core_140(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxImageList*);
828
829 sipVH__core_140(sipGILState, 0, sipPySelf, sipMeth, imageList);
830 }
831
GetPageImage(size_t nPage) const832 int sipwxTreebook::GetPageImage(size_t nPage) const
833 {
834 sip_gilstate_t sipGILState;
835 PyObject *sipMeth;
836
837 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[40]),sipPySelf,SIP_NULLPTR,sipName_GetPageImage);
838
839 if (!sipMeth)
840 return ::wxTreebook::GetPageImage(nPage);
841
842 extern int sipVH__core_130(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, size_t);
843
844 return sipVH__core_130(sipGILState, 0, sipPySelf, sipMeth, nPage);
845 }
846
SetPageImage(size_t page,int image)847 bool sipwxTreebook::SetPageImage(size_t page,int image)
848 {
849 sip_gilstate_t sipGILState;
850 PyObject *sipMeth;
851
852 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[41],sipPySelf,SIP_NULLPTR,sipName_SetPageImage);
853
854 if (!sipMeth)
855 return ::wxTreebook::SetPageImage(page,image);
856
857 extern bool sipVH__core_141(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, size_t,int);
858
859 return sipVH__core_141(sipGILState, 0, sipPySelf, sipMeth, page, image);
860 }
861
GetPageText(size_t nPage) const862 ::wxString sipwxTreebook::GetPageText(size_t nPage) const
863 {
864 sip_gilstate_t sipGILState;
865 PyObject *sipMeth;
866
867 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[42]),sipPySelf,SIP_NULLPTR,sipName_GetPageText);
868
869 if (!sipMeth)
870 return ::wxTreebook::GetPageText(nPage);
871
872 extern ::wxString sipVH__core_142(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, size_t);
873
874 return sipVH__core_142(sipGILState, 0, sipPySelf, sipMeth, nPage);
875 }
876
SetPageText(size_t page,const::wxString & text)877 bool sipwxTreebook::SetPageText(size_t page,const ::wxString& text)
878 {
879 sip_gilstate_t sipGILState;
880 PyObject *sipMeth;
881
882 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[43],sipPySelf,SIP_NULLPTR,sipName_SetPageText);
883
884 if (!sipMeth)
885 return ::wxTreebook::SetPageText(page,text);
886
887 extern bool sipVH__core_143(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, size_t,const ::wxString&);
888
889 return sipVH__core_143(sipGILState, 0, sipPySelf, sipMeth, page, text);
890 }
891
GetSelection() const892 int sipwxTreebook::GetSelection() const
893 {
894 sip_gilstate_t sipGILState;
895 PyObject *sipMeth;
896
897 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[44]),sipPySelf,SIP_NULLPTR,sipName_GetSelection);
898
899 if (!sipMeth)
900 return ::wxTreebook::GetSelection();
901
902 extern int sipVH__core_97(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
903
904 return sipVH__core_97(sipGILState, 0, sipPySelf, sipMeth);
905 }
906
SetSelection(size_t page)907 int sipwxTreebook::SetSelection(size_t page)
908 {
909 sip_gilstate_t sipGILState;
910 PyObject *sipMeth;
911
912 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[45],sipPySelf,SIP_NULLPTR,sipName_SetSelection);
913
914 if (!sipMeth)
915 return ::wxTreebook::SetSelection(page);
916
917 extern int sipVH__core_130(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, size_t);
918
919 return sipVH__core_130(sipGILState, 0, sipPySelf, sipMeth, page);
920 }
921
ChangeSelection(size_t page)922 int sipwxTreebook::ChangeSelection(size_t page)
923 {
924 sip_gilstate_t sipGILState;
925 PyObject *sipMeth;
926
927 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[46],sipPySelf,SIP_NULLPTR,sipName_ChangeSelection);
928
929 if (!sipMeth)
930 return ::wxTreebook::ChangeSelection(page);
931
932 extern int sipVH__core_130(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, size_t);
933
934 return sipVH__core_130(sipGILState, 0, sipPySelf, sipMeth, page);
935 }
936
AddPage(::wxWindow * page,const::wxString & text,bool bSelect,int imageId)937 bool sipwxTreebook::AddPage( ::wxWindow*page,const ::wxString& text,bool bSelect,int imageId)
938 {
939 sip_gilstate_t sipGILState;
940 PyObject *sipMeth;
941
942 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[47],sipPySelf,SIP_NULLPTR,sipName_AddPage);
943
944 if (!sipMeth)
945 return ::wxTreebook::AddPage(page,text,bSelect,imageId);
946
947 extern bool sipVH__core_144(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxWindow*,const ::wxString&,bool,int);
948
949 return sipVH__core_144(sipGILState, 0, sipPySelf, sipMeth, page, text, bSelect, imageId);
950 }
951
DeleteAllPages()952 bool sipwxTreebook::DeleteAllPages()
953 {
954 sip_gilstate_t sipGILState;
955 PyObject *sipMeth;
956
957 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[48],sipPySelf,SIP_NULLPTR,sipName_DeleteAllPages);
958
959 if (!sipMeth)
960 return ::wxTreebook::DeleteAllPages();
961
962 extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
963
964 return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
965 }
966
DeletePage(size_t pagePos)967 bool sipwxTreebook::DeletePage(size_t pagePos)
968 {
969 sip_gilstate_t sipGILState;
970 PyObject *sipMeth;
971
972 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[49],sipPySelf,SIP_NULLPTR,sipName_DeletePage);
973
974 if (!sipMeth)
975 return ::wxTreebook::DeletePage(pagePos);
976
977 extern bool sipVH__core_145(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, size_t);
978
979 return sipVH__core_145(sipGILState, 0, sipPySelf, sipMeth, pagePos);
980 }
981
InsertPage(size_t pagePos,::wxWindow * page,const::wxString & text,bool bSelect,int imageId)982 bool sipwxTreebook::InsertPage(size_t pagePos, ::wxWindow*page,const ::wxString& text,bool bSelect,int imageId)
983 {
984 sip_gilstate_t sipGILState;
985 PyObject *sipMeth;
986
987 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[50],sipPySelf,SIP_NULLPTR,sipName_InsertPage);
988
989 if (!sipMeth)
990 return ::wxTreebook::InsertPage(pagePos,page,text,bSelect,imageId);
991
992 extern bool sipVH__core_146(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, size_t, ::wxWindow*,const ::wxString&,bool,int);
993
994 return sipVH__core_146(sipGILState, 0, sipPySelf, sipMeth, pagePos, page, text, bSelect, imageId);
995 }
996
RemovePage(size_t page)997 bool sipwxTreebook::RemovePage(size_t page)
998 {
999 sip_gilstate_t sipGILState;
1000 PyObject *sipMeth;
1001
1002 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[51],sipPySelf,SIP_NULLPTR,sipName_RemovePage);
1003
1004 if (!sipMeth)
1005 return ::wxTreebook::RemovePage(page);
1006
1007 extern bool sipVH__core_145(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, size_t);
1008
1009 return sipVH__core_145(sipGILState, 0, sipPySelf, sipMeth, page);
1010 }
1011
GetPageCount() const1012 size_t sipwxTreebook::GetPageCount() const
1013 {
1014 sip_gilstate_t sipGILState;
1015 PyObject *sipMeth;
1016
1017 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[52]),sipPySelf,SIP_NULLPTR,sipName_GetPageCount);
1018
1019 if (!sipMeth)
1020 return ::wxTreebook::GetPageCount();
1021
1022 extern size_t sipVH__core_62(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
1023
1024 return sipVH__core_62(sipGILState, 0, sipPySelf, sipMeth);
1025 }
1026
SetPageSize(const::wxSize & size)1027 void sipwxTreebook::SetPageSize(const ::wxSize& size)
1028 {
1029 sip_gilstate_t sipGILState;
1030 PyObject *sipMeth;
1031
1032 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[53],sipPySelf,SIP_NULLPTR,sipName_SetPageSize);
1033
1034 if (!sipMeth)
1035 {
1036 ::wxTreebook::SetPageSize(size);
1037 return;
1038 }
1039
1040 extern void sipVH__core_147(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const ::wxSize&);
1041
1042 sipVH__core_147(sipGILState, 0, sipPySelf, sipMeth, size);
1043 }
1044
HitTest(const::wxPoint & pt,long * flags) const1045 int sipwxTreebook::HitTest(const ::wxPoint& pt,long*flags) const
1046 {
1047 sip_gilstate_t sipGILState;
1048 PyObject *sipMeth;
1049
1050 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[54]),sipPySelf,SIP_NULLPTR,sipName_HitTest);
1051
1052 if (!sipMeth)
1053 return ::wxTreebook::HitTest(pt,flags);
1054
1055 extern int sipVH__core_148(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const ::wxPoint&,long*);
1056
1057 return sipVH__core_148(sipGILState, 0, sipPySelf, sipMeth, pt, flags);
1058 }
1059
sipProtect_SendDestroyEvent()1060 void sipwxTreebook::sipProtect_SendDestroyEvent()
1061 {
1062 ::wxWindow::SendDestroyEvent();
1063 }
1064
sipProtectVirt_ProcessEvent(bool sipSelfWasArg,::wxEvent & event)1065 bool sipwxTreebook::sipProtectVirt_ProcessEvent(bool sipSelfWasArg, ::wxEvent& event)
1066 {
1067 return (sipSelfWasArg ? ::wxTreebook::ProcessEvent(event) : ProcessEvent(event));
1068 }
1069
sipProtectVirt_DoEnable(bool sipSelfWasArg,bool enable)1070 void sipwxTreebook::sipProtectVirt_DoEnable(bool sipSelfWasArg,bool enable)
1071 {
1072 (sipSelfWasArg ? ::wxTreebook::DoEnable(enable) : DoEnable(enable));
1073 }
1074
sipProtectVirt_DoGetPosition(bool sipSelfWasArg,int * x,int * y) const1075 void sipwxTreebook::sipProtectVirt_DoGetPosition(bool sipSelfWasArg,int*x,int*y) const
1076 {
1077 (sipSelfWasArg ? ::wxTreebook::DoGetPosition(x,y) : DoGetPosition(x,y));
1078 }
1079
sipProtectVirt_DoGetSize(bool sipSelfWasArg,int * width,int * height) const1080 void sipwxTreebook::sipProtectVirt_DoGetSize(bool sipSelfWasArg,int*width,int*height) const
1081 {
1082 (sipSelfWasArg ? ::wxTreebook::DoGetSize(width,height) : DoGetSize(width,height));
1083 }
1084
sipProtectVirt_DoGetClientSize(bool sipSelfWasArg,int * width,int * height) const1085 void sipwxTreebook::sipProtectVirt_DoGetClientSize(bool sipSelfWasArg,int*width,int*height) const
1086 {
1087 (sipSelfWasArg ? ::wxTreebook::DoGetClientSize(width,height) : DoGetClientSize(width,height));
1088 }
1089
sipProtectVirt_DoGetBestSize(bool sipSelfWasArg) const1090 ::wxSize sipwxTreebook::sipProtectVirt_DoGetBestSize(bool sipSelfWasArg) const
1091 {
1092 return (sipSelfWasArg ? ::wxTreebook::DoGetBestSize() : DoGetBestSize());
1093 }
1094
sipProtectVirt_DoGetBestClientSize(bool sipSelfWasArg) const1095 ::wxSize sipwxTreebook::sipProtectVirt_DoGetBestClientSize(bool sipSelfWasArg) const
1096 {
1097 return (sipSelfWasArg ? ::wxTreebook::DoGetBestClientSize() : DoGetBestClientSize());
1098 }
1099
sipProtectVirt_DoSetSize(bool sipSelfWasArg,int x,int y,int width,int height,int sizeFlags)1100 void sipwxTreebook::sipProtectVirt_DoSetSize(bool sipSelfWasArg,int x,int y,int width,int height,int sizeFlags)
1101 {
1102 (sipSelfWasArg ? ::wxTreebook::DoSetSize(x,y,width,height,sizeFlags) : DoSetSize(x,y,width,height,sizeFlags));
1103 }
1104
sipProtectVirt_DoSetClientSize(bool sipSelfWasArg,int width,int height)1105 void sipwxTreebook::sipProtectVirt_DoSetClientSize(bool sipSelfWasArg,int width,int height)
1106 {
1107 (sipSelfWasArg ? ::wxTreebook::DoSetClientSize(width,height) : DoSetClientSize(width,height));
1108 }
1109
sipProtectVirt_DoSetSizeHints(bool sipSelfWasArg,int minW,int minH,int maxW,int maxH,int incW,int incH)1110 void sipwxTreebook::sipProtectVirt_DoSetSizeHints(bool sipSelfWasArg,int minW,int minH,int maxW,int maxH,int incW,int incH)
1111 {
1112 (sipSelfWasArg ? ::wxTreebook::DoSetSizeHints(minW,minH,maxW,maxH,incW,incH) : DoSetSizeHints(minW,minH,maxW,maxH,incW,incH));
1113 }
1114
sipProtectVirt_DoGetBorderSize(bool sipSelfWasArg) const1115 ::wxSize sipwxTreebook::sipProtectVirt_DoGetBorderSize(bool sipSelfWasArg) const
1116 {
1117 return (sipSelfWasArg ? ::wxTreebook::DoGetBorderSize() : DoGetBorderSize());
1118 }
1119
sipProtectVirt_DoMoveWindow(bool sipSelfWasArg,int x,int y,int width,int height)1120 void sipwxTreebook::sipProtectVirt_DoMoveWindow(bool sipSelfWasArg,int x,int y,int width,int height)
1121 {
1122 (sipSelfWasArg ? ::wxTreebook::DoMoveWindow(x,y,width,height) : DoMoveWindow(x,y,width,height));
1123 }
1124
sipProtectVirt_DoSetWindowVariant(bool sipSelfWasArg,::wxWindowVariant variant)1125 void sipwxTreebook::sipProtectVirt_DoSetWindowVariant(bool sipSelfWasArg, ::wxWindowVariant variant)
1126 {
1127 (sipSelfWasArg ? ::wxTreebook::DoSetWindowVariant(variant) : DoSetWindowVariant(variant));
1128 }
1129
sipProtectVirt_GetDefaultBorder(bool sipSelfWasArg) const1130 ::wxBorder sipwxTreebook::sipProtectVirt_GetDefaultBorder(bool sipSelfWasArg) const
1131 {
1132 return (sipSelfWasArg ? ::wxTreebook::GetDefaultBorder() : GetDefaultBorder());
1133 }
1134
sipProtectVirt_GetDefaultBorderForControl(bool sipSelfWasArg) const1135 ::wxBorder sipwxTreebook::sipProtectVirt_GetDefaultBorderForControl(bool sipSelfWasArg) const
1136 {
1137 return (sipSelfWasArg ? ::wxTreebook::GetDefaultBorderForControl() : GetDefaultBorderForControl());
1138 }
1139
sipProtectVirt_DoFreeze(bool sipSelfWasArg)1140 void sipwxTreebook::sipProtectVirt_DoFreeze(bool sipSelfWasArg)
1141 {
1142 (sipSelfWasArg ? ::wxTreebook::DoFreeze() : DoFreeze());
1143 }
1144
sipProtectVirt_DoThaw(bool sipSelfWasArg)1145 void sipwxTreebook::sipProtectVirt_DoThaw(bool sipSelfWasArg)
1146 {
1147 (sipSelfWasArg ? ::wxTreebook::DoThaw() : DoThaw());
1148 }
1149
sipProtectVirt_HasTransparentBackground(bool sipSelfWasArg)1150 bool sipwxTreebook::sipProtectVirt_HasTransparentBackground(bool sipSelfWasArg)
1151 {
1152 return (sipSelfWasArg ? ::wxTreebook::HasTransparentBackground() : HasTransparentBackground());
1153 }
1154
sipProtectVirt_TryBefore(bool sipSelfWasArg,::wxEvent & event)1155 bool sipwxTreebook::sipProtectVirt_TryBefore(bool sipSelfWasArg, ::wxEvent& event)
1156 {
1157 return (sipSelfWasArg ? ::wxTreebook::TryBefore(event) : TryBefore(event));
1158 }
1159
sipProtectVirt_TryAfter(bool sipSelfWasArg,::wxEvent & event)1160 bool sipwxTreebook::sipProtectVirt_TryAfter(bool sipSelfWasArg, ::wxEvent& event)
1161 {
1162 return (sipSelfWasArg ? ::wxTreebook::TryAfter(event) : TryAfter(event));
1163 }
1164
1165
1166 PyDoc_STRVAR(doc_wxTreebook_SendDestroyEvent, "SendDestroyEvent()\n"
1167 "\n"
1168 "Generate wxWindowDestroyEvent for this window.");
1169
1170 extern "C" {static PyObject *meth_wxTreebook_SendDestroyEvent(PyObject *, PyObject *);}
meth_wxTreebook_SendDestroyEvent(PyObject * sipSelf,PyObject * sipArgs)1171 static PyObject *meth_wxTreebook_SendDestroyEvent(PyObject *sipSelf, PyObject *sipArgs)
1172 {
1173 PyObject *sipParseErr = SIP_NULLPTR;
1174
1175 {
1176 sipwxTreebook *sipCpp;
1177
1178 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTreebook, &sipCpp))
1179 {
1180 PyErr_Clear();
1181
1182 Py_BEGIN_ALLOW_THREADS
1183 sipCpp->sipProtect_SendDestroyEvent();
1184 Py_END_ALLOW_THREADS
1185
1186 if (PyErr_Occurred())
1187 return 0;
1188
1189 Py_INCREF(Py_None);
1190 return Py_None;
1191 }
1192 }
1193
1194 /* Raise an exception if the arguments couldn't be parsed. */
1195 sipNoMethod(sipParseErr, sipName_Treebook, sipName_SendDestroyEvent, SIP_NULLPTR);
1196
1197 return SIP_NULLPTR;
1198 }
1199
1200
1201 PyDoc_STRVAR(doc_wxTreebook_AddPage, "AddPage(page, text, bSelect=False, imageId=NOT_FOUND) -> bool\n"
1202 "\n"
1203 "Adds a new page.");
1204
1205 extern "C" {static PyObject *meth_wxTreebook_AddPage(PyObject *, PyObject *, PyObject *);}
meth_wxTreebook_AddPage(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1206 static PyObject *meth_wxTreebook_AddPage(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1207 {
1208 PyObject *sipParseErr = SIP_NULLPTR;
1209 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1210
1211 {
1212 ::wxWindow* page;
1213 const ::wxString* text;
1214 int textState = 0;
1215 bool bSelect = 0;
1216 int imageId = wxNOT_FOUND;
1217 ::wxTreebook *sipCpp;
1218
1219 static const char *sipKwdList[] = {
1220 sipName_page,
1221 sipName_text,
1222 sipName_bSelect,
1223 sipName_imageId,
1224 };
1225
1226 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8J1|bi", &sipSelf, sipType_wxTreebook, &sipCpp, sipType_wxWindow, &page, sipType_wxString,&text, &textState, &bSelect, &imageId))
1227 {
1228 bool sipRes;
1229
1230 PyErr_Clear();
1231
1232 Py_BEGIN_ALLOW_THREADS
1233 sipRes = (sipSelfWasArg ? sipCpp-> ::wxTreebook::AddPage(page,*text,bSelect,imageId) : sipCpp->AddPage(page,*text,bSelect,imageId));
1234 Py_END_ALLOW_THREADS
1235 sipReleaseType(const_cast< ::wxString *>(text),sipType_wxString,textState);
1236
1237 if (PyErr_Occurred())
1238 return 0;
1239
1240 return PyBool_FromLong(sipRes);
1241 }
1242 }
1243
1244 /* Raise an exception if the arguments couldn't be parsed. */
1245 sipNoMethod(sipParseErr, sipName_Treebook, sipName_AddPage, SIP_NULLPTR);
1246
1247 return SIP_NULLPTR;
1248 }
1249
1250
1251 PyDoc_STRVAR(doc_wxTreebook_AddSubPage, "AddSubPage(page, text, bSelect=False, imageId=NOT_FOUND) -> bool\n"
1252 "\n"
1253 "Adds a new child-page to the last top-level page.");
1254
1255 extern "C" {static PyObject *meth_wxTreebook_AddSubPage(PyObject *, PyObject *, PyObject *);}
meth_wxTreebook_AddSubPage(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1256 static PyObject *meth_wxTreebook_AddSubPage(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1257 {
1258 PyObject *sipParseErr = SIP_NULLPTR;
1259
1260 {
1261 ::wxWindow* page;
1262 const ::wxString* text;
1263 int textState = 0;
1264 bool bSelect = 0;
1265 int imageId = wxNOT_FOUND;
1266 ::wxTreebook *sipCpp;
1267
1268 static const char *sipKwdList[] = {
1269 sipName_page,
1270 sipName_text,
1271 sipName_bSelect,
1272 sipName_imageId,
1273 };
1274
1275 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8J1|bi", &sipSelf, sipType_wxTreebook, &sipCpp, sipType_wxWindow, &page, sipType_wxString,&text, &textState, &bSelect, &imageId))
1276 {
1277 bool sipRes;
1278
1279 PyErr_Clear();
1280
1281 Py_BEGIN_ALLOW_THREADS
1282 sipRes = sipCpp->AddSubPage(page,*text,bSelect,imageId);
1283 Py_END_ALLOW_THREADS
1284 sipReleaseType(const_cast< ::wxString *>(text),sipType_wxString,textState);
1285
1286 if (PyErr_Occurred())
1287 return 0;
1288
1289 return PyBool_FromLong(sipRes);
1290 }
1291 }
1292
1293 /* Raise an exception if the arguments couldn't be parsed. */
1294 sipNoMethod(sipParseErr, sipName_Treebook, sipName_AddSubPage, SIP_NULLPTR);
1295
1296 return SIP_NULLPTR;
1297 }
1298
1299
1300 PyDoc_STRVAR(doc_wxTreebook_CollapseNode, "CollapseNode(pageId) -> bool\n"
1301 "\n"
1302 "Shortcut for ExpandNode( pageId, false ).");
1303
1304 extern "C" {static PyObject *meth_wxTreebook_CollapseNode(PyObject *, PyObject *, PyObject *);}
meth_wxTreebook_CollapseNode(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1305 static PyObject *meth_wxTreebook_CollapseNode(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1306 {
1307 PyObject *sipParseErr = SIP_NULLPTR;
1308
1309 {
1310 size_t pageId;
1311 ::wxTreebook *sipCpp;
1312
1313 static const char *sipKwdList[] = {
1314 sipName_pageId,
1315 };
1316
1317 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B=", &sipSelf, sipType_wxTreebook, &sipCpp, &pageId))
1318 {
1319 bool sipRes;
1320
1321 PyErr_Clear();
1322
1323 Py_BEGIN_ALLOW_THREADS
1324 sipRes = sipCpp->CollapseNode(pageId);
1325 Py_END_ALLOW_THREADS
1326
1327 if (PyErr_Occurred())
1328 return 0;
1329
1330 return PyBool_FromLong(sipRes);
1331 }
1332 }
1333
1334 /* Raise an exception if the arguments couldn't be parsed. */
1335 sipNoMethod(sipParseErr, sipName_Treebook, sipName_CollapseNode, SIP_NULLPTR);
1336
1337 return SIP_NULLPTR;
1338 }
1339
1340
1341 PyDoc_STRVAR(doc_wxTreebook_Create, "Create(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=BK_DEFAULT, name=EmptyString) -> bool\n"
1342 "\n"
1343 "Creates a treebook control.");
1344
1345 extern "C" {static PyObject *meth_wxTreebook_Create(PyObject *, PyObject *, PyObject *);}
meth_wxTreebook_Create(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1346 static PyObject *meth_wxTreebook_Create(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1347 {
1348 PyObject *sipParseErr = SIP_NULLPTR;
1349
1350 {
1351 ::wxWindow* parent;
1352 ::wxWindowID id = wxID_ANY;
1353 const ::wxPoint& posdef = wxDefaultPosition;
1354 const ::wxPoint* pos = &posdef;
1355 int posState = 0;
1356 const ::wxSize& sizedef = wxDefaultSize;
1357 const ::wxSize* size = &sizedef;
1358 int sizeState = 0;
1359 long style = wxBK_DEFAULT;
1360 const ::wxString& namedef = wxEmptyString;
1361 const ::wxString* name = &namedef;
1362 int nameState = 0;
1363 sipWrapper *sipOwner = SIP_NULLPTR;
1364 ::wxTreebook *sipCpp;
1365
1366 static const char *sipKwdList[] = {
1367 sipName_parent,
1368 sipName_id,
1369 sipName_pos,
1370 sipName_size,
1371 sipName_style,
1372 sipName_name,
1373 };
1374
1375 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJH|iJ1J1lJ1", &sipSelf, sipType_wxTreebook, &sipCpp, sipType_wxWindow, &parent, &sipOwner, &id, sipType_wxPoint, &pos, &posState, sipType_wxSize, &size, &sizeState, &style, sipType_wxString,&name, &nameState))
1376 {
1377 bool sipRes;
1378
1379 PyErr_Clear();
1380
1381 Py_BEGIN_ALLOW_THREADS
1382 sipRes = sipCpp->Create(parent,id,*pos,*size,style,*name);
1383 Py_END_ALLOW_THREADS
1384
1385 if (sipOwner)
1386 sipTransferTo(sipSelf, (PyObject *)sipOwner);
1387 else
1388 sipTransferBack(sipSelf);
1389 sipReleaseType(const_cast< ::wxPoint *>(pos),sipType_wxPoint,posState);
1390 sipReleaseType(const_cast< ::wxSize *>(size),sipType_wxSize,sizeState);
1391 sipReleaseType(const_cast< ::wxString *>(name),sipType_wxString,nameState);
1392
1393 if (PyErr_Occurred())
1394 return 0;
1395
1396 return PyBool_FromLong(sipRes);
1397 }
1398 }
1399
1400 /* Raise an exception if the arguments couldn't be parsed. */
1401 sipNoMethod(sipParseErr, sipName_Treebook, sipName_Create, SIP_NULLPTR);
1402
1403 return SIP_NULLPTR;
1404 }
1405
1406
1407 PyDoc_STRVAR(doc_wxTreebook_DeletePage, "DeletePage(pagePos) -> bool\n"
1408 "\n"
1409 "Deletes the page at the specified position and all its children.");
1410
1411 extern "C" {static PyObject *meth_wxTreebook_DeletePage(PyObject *, PyObject *, PyObject *);}
meth_wxTreebook_DeletePage(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1412 static PyObject *meth_wxTreebook_DeletePage(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1413 {
1414 PyObject *sipParseErr = SIP_NULLPTR;
1415 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1416
1417 {
1418 size_t pagePos;
1419 ::wxTreebook *sipCpp;
1420
1421 static const char *sipKwdList[] = {
1422 sipName_pagePos,
1423 };
1424
1425 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B=", &sipSelf, sipType_wxTreebook, &sipCpp, &pagePos))
1426 {
1427 bool sipRes;
1428
1429 PyErr_Clear();
1430
1431 Py_BEGIN_ALLOW_THREADS
1432 sipRes = (sipSelfWasArg ? sipCpp-> ::wxTreebook::DeletePage(pagePos) : sipCpp->DeletePage(pagePos));
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_Treebook, sipName_DeletePage, SIP_NULLPTR);
1444
1445 return SIP_NULLPTR;
1446 }
1447
1448
1449 PyDoc_STRVAR(doc_wxTreebook_ExpandNode, "ExpandNode(pageId, expand=True) -> bool\n"
1450 "\n"
1451 "Expands (collapses) the pageId node.");
1452
1453 extern "C" {static PyObject *meth_wxTreebook_ExpandNode(PyObject *, PyObject *, PyObject *);}
meth_wxTreebook_ExpandNode(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1454 static PyObject *meth_wxTreebook_ExpandNode(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1455 {
1456 PyObject *sipParseErr = SIP_NULLPTR;
1457
1458 {
1459 size_t pageId;
1460 bool expand = 1;
1461 ::wxTreebook *sipCpp;
1462
1463 static const char *sipKwdList[] = {
1464 sipName_pageId,
1465 sipName_expand,
1466 };
1467
1468 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B=|b", &sipSelf, sipType_wxTreebook, &sipCpp, &pageId, &expand))
1469 {
1470 bool sipRes;
1471
1472 PyErr_Clear();
1473
1474 Py_BEGIN_ALLOW_THREADS
1475 sipRes = sipCpp->ExpandNode(pageId,expand);
1476 Py_END_ALLOW_THREADS
1477
1478 if (PyErr_Occurred())
1479 return 0;
1480
1481 return PyBool_FromLong(sipRes);
1482 }
1483 }
1484
1485 /* Raise an exception if the arguments couldn't be parsed. */
1486 sipNoMethod(sipParseErr, sipName_Treebook, sipName_ExpandNode, SIP_NULLPTR);
1487
1488 return SIP_NULLPTR;
1489 }
1490
1491
1492 PyDoc_STRVAR(doc_wxTreebook_GetPageParent, "GetPageParent(page) -> int\n"
1493 "\n"
1494 "Returns the parent page of the given one or wxNOT_FOUND if this is a\n"
1495 "top-level page.");
1496
1497 extern "C" {static PyObject *meth_wxTreebook_GetPageParent(PyObject *, PyObject *, PyObject *);}
meth_wxTreebook_GetPageParent(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1498 static PyObject *meth_wxTreebook_GetPageParent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1499 {
1500 PyObject *sipParseErr = SIP_NULLPTR;
1501
1502 {
1503 size_t page;
1504 const ::wxTreebook *sipCpp;
1505
1506 static const char *sipKwdList[] = {
1507 sipName_page,
1508 };
1509
1510 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B=", &sipSelf, sipType_wxTreebook, &sipCpp, &page))
1511 {
1512 int sipRes;
1513
1514 PyErr_Clear();
1515
1516 Py_BEGIN_ALLOW_THREADS
1517 sipRes = sipCpp->GetPageParent(page);
1518 Py_END_ALLOW_THREADS
1519
1520 if (PyErr_Occurred())
1521 return 0;
1522
1523 return SIPLong_FromLong(sipRes);
1524 }
1525 }
1526
1527 /* Raise an exception if the arguments couldn't be parsed. */
1528 sipNoMethod(sipParseErr, sipName_Treebook, sipName_GetPageParent, SIP_NULLPTR);
1529
1530 return SIP_NULLPTR;
1531 }
1532
1533
1534 PyDoc_STRVAR(doc_wxTreebook_GetSelection, "GetSelection() -> int\n"
1535 "\n"
1536 "Returns the currently selected page, or wxNOT_FOUND if none was\n"
1537 "selected.");
1538
1539 extern "C" {static PyObject *meth_wxTreebook_GetSelection(PyObject *, PyObject *);}
meth_wxTreebook_GetSelection(PyObject * sipSelf,PyObject * sipArgs)1540 static PyObject *meth_wxTreebook_GetSelection(PyObject *sipSelf, PyObject *sipArgs)
1541 {
1542 PyObject *sipParseErr = SIP_NULLPTR;
1543 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1544
1545 {
1546 const ::wxTreebook *sipCpp;
1547
1548 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTreebook, &sipCpp))
1549 {
1550 int sipRes;
1551
1552 PyErr_Clear();
1553
1554 Py_BEGIN_ALLOW_THREADS
1555 sipRes = (sipSelfWasArg ? sipCpp-> ::wxTreebook::GetSelection() : sipCpp->GetSelection());
1556 Py_END_ALLOW_THREADS
1557
1558 if (PyErr_Occurred())
1559 return 0;
1560
1561 return SIPLong_FromLong(sipRes);
1562 }
1563 }
1564
1565 /* Raise an exception if the arguments couldn't be parsed. */
1566 sipNoMethod(sipParseErr, sipName_Treebook, sipName_GetSelection, SIP_NULLPTR);
1567
1568 return SIP_NULLPTR;
1569 }
1570
1571
1572 PyDoc_STRVAR(doc_wxTreebook_InsertPage, "InsertPage(pagePos, page, text, bSelect=False, imageId=NOT_FOUND) -> bool\n"
1573 "\n"
1574 "Inserts a new page just before the page indicated by pagePos.");
1575
1576 extern "C" {static PyObject *meth_wxTreebook_InsertPage(PyObject *, PyObject *, PyObject *);}
meth_wxTreebook_InsertPage(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1577 static PyObject *meth_wxTreebook_InsertPage(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1578 {
1579 PyObject *sipParseErr = SIP_NULLPTR;
1580 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1581
1582 {
1583 size_t pagePos;
1584 ::wxWindow* page;
1585 const ::wxString* text;
1586 int textState = 0;
1587 bool bSelect = 0;
1588 int imageId = wxNOT_FOUND;
1589 ::wxTreebook *sipCpp;
1590
1591 static const char *sipKwdList[] = {
1592 sipName_pagePos,
1593 sipName_page,
1594 sipName_text,
1595 sipName_bSelect,
1596 sipName_imageId,
1597 };
1598
1599 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B=J8J1|bi", &sipSelf, sipType_wxTreebook, &sipCpp, &pagePos, sipType_wxWindow, &page, sipType_wxString,&text, &textState, &bSelect, &imageId))
1600 {
1601 bool sipRes;
1602
1603 PyErr_Clear();
1604
1605 Py_BEGIN_ALLOW_THREADS
1606 sipRes = (sipSelfWasArg ? sipCpp-> ::wxTreebook::InsertPage(pagePos,page,*text,bSelect,imageId) : sipCpp->InsertPage(pagePos,page,*text,bSelect,imageId));
1607 Py_END_ALLOW_THREADS
1608 sipReleaseType(const_cast< ::wxString *>(text),sipType_wxString,textState);
1609
1610 if (PyErr_Occurred())
1611 return 0;
1612
1613 return PyBool_FromLong(sipRes);
1614 }
1615 }
1616
1617 /* Raise an exception if the arguments couldn't be parsed. */
1618 sipNoMethod(sipParseErr, sipName_Treebook, sipName_InsertPage, SIP_NULLPTR);
1619
1620 return SIP_NULLPTR;
1621 }
1622
1623
1624 PyDoc_STRVAR(doc_wxTreebook_InsertSubPage, "InsertSubPage(pagePos, page, text, bSelect=False, imageId=NOT_FOUND) -> bool\n"
1625 "\n"
1626 "Inserts a sub page under the specified page.");
1627
1628 extern "C" {static PyObject *meth_wxTreebook_InsertSubPage(PyObject *, PyObject *, PyObject *);}
meth_wxTreebook_InsertSubPage(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1629 static PyObject *meth_wxTreebook_InsertSubPage(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1630 {
1631 PyObject *sipParseErr = SIP_NULLPTR;
1632
1633 {
1634 size_t pagePos;
1635 ::wxWindow* page;
1636 const ::wxString* text;
1637 int textState = 0;
1638 bool bSelect = 0;
1639 int imageId = wxNOT_FOUND;
1640 ::wxTreebook *sipCpp;
1641
1642 static const char *sipKwdList[] = {
1643 sipName_pagePos,
1644 sipName_page,
1645 sipName_text,
1646 sipName_bSelect,
1647 sipName_imageId,
1648 };
1649
1650 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B=J8J1|bi", &sipSelf, sipType_wxTreebook, &sipCpp, &pagePos, sipType_wxWindow, &page, sipType_wxString,&text, &textState, &bSelect, &imageId))
1651 {
1652 bool sipRes;
1653
1654 PyErr_Clear();
1655
1656 Py_BEGIN_ALLOW_THREADS
1657 sipRes = sipCpp->InsertSubPage(pagePos,page,*text,bSelect,imageId);
1658 Py_END_ALLOW_THREADS
1659 sipReleaseType(const_cast< ::wxString *>(text),sipType_wxString,textState);
1660
1661 if (PyErr_Occurred())
1662 return 0;
1663
1664 return PyBool_FromLong(sipRes);
1665 }
1666 }
1667
1668 /* Raise an exception if the arguments couldn't be parsed. */
1669 sipNoMethod(sipParseErr, sipName_Treebook, sipName_InsertSubPage, SIP_NULLPTR);
1670
1671 return SIP_NULLPTR;
1672 }
1673
1674
1675 PyDoc_STRVAR(doc_wxTreebook_IsNodeExpanded, "IsNodeExpanded(pageId) -> bool\n"
1676 "\n"
1677 "Returns true if the page represented by pageId is expanded.");
1678
1679 extern "C" {static PyObject *meth_wxTreebook_IsNodeExpanded(PyObject *, PyObject *, PyObject *);}
meth_wxTreebook_IsNodeExpanded(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1680 static PyObject *meth_wxTreebook_IsNodeExpanded(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1681 {
1682 PyObject *sipParseErr = SIP_NULLPTR;
1683
1684 {
1685 size_t pageId;
1686 const ::wxTreebook *sipCpp;
1687
1688 static const char *sipKwdList[] = {
1689 sipName_pageId,
1690 };
1691
1692 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B=", &sipSelf, sipType_wxTreebook, &sipCpp, &pageId))
1693 {
1694 bool sipRes;
1695
1696 PyErr_Clear();
1697
1698 Py_BEGIN_ALLOW_THREADS
1699 sipRes = sipCpp->IsNodeExpanded(pageId);
1700 Py_END_ALLOW_THREADS
1701
1702 if (PyErr_Occurred())
1703 return 0;
1704
1705 return PyBool_FromLong(sipRes);
1706 }
1707 }
1708
1709 /* Raise an exception if the arguments couldn't be parsed. */
1710 sipNoMethod(sipParseErr, sipName_Treebook, sipName_IsNodeExpanded, SIP_NULLPTR);
1711
1712 return SIP_NULLPTR;
1713 }
1714
1715
1716 PyDoc_STRVAR(doc_wxTreebook_GetClientAreaOrigin, "GetClientAreaOrigin(self) -> Point");
1717
1718 extern "C" {static PyObject *meth_wxTreebook_GetClientAreaOrigin(PyObject *, PyObject *);}
meth_wxTreebook_GetClientAreaOrigin(PyObject * sipSelf,PyObject * sipArgs)1719 static PyObject *meth_wxTreebook_GetClientAreaOrigin(PyObject *sipSelf, PyObject *sipArgs)
1720 {
1721 PyObject *sipParseErr = SIP_NULLPTR;
1722 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1723
1724 {
1725 const ::wxTreebook *sipCpp;
1726
1727 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTreebook, &sipCpp))
1728 {
1729 ::wxPoint*sipRes;
1730
1731 PyErr_Clear();
1732
1733 Py_BEGIN_ALLOW_THREADS
1734 sipRes = new ::wxPoint((sipSelfWasArg ? sipCpp-> ::wxTreebook::GetClientAreaOrigin() : sipCpp->GetClientAreaOrigin()));
1735 Py_END_ALLOW_THREADS
1736
1737 if (PyErr_Occurred())
1738 return 0;
1739
1740 return sipConvertFromNewType(sipRes,sipType_wxPoint,SIP_NULLPTR);
1741 }
1742 }
1743
1744 /* Raise an exception if the arguments couldn't be parsed. */
1745 sipNoMethod(sipParseErr, sipName_Treebook, sipName_GetClientAreaOrigin, doc_wxTreebook_GetClientAreaOrigin);
1746
1747 return SIP_NULLPTR;
1748 }
1749
1750
1751 PyDoc_STRVAR(doc_wxTreebook_Validate, "Validate(self) -> bool");
1752
1753 extern "C" {static PyObject *meth_wxTreebook_Validate(PyObject *, PyObject *);}
meth_wxTreebook_Validate(PyObject * sipSelf,PyObject * sipArgs)1754 static PyObject *meth_wxTreebook_Validate(PyObject *sipSelf, PyObject *sipArgs)
1755 {
1756 PyObject *sipParseErr = SIP_NULLPTR;
1757 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1758
1759 {
1760 ::wxTreebook *sipCpp;
1761
1762 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTreebook, &sipCpp))
1763 {
1764 bool sipRes;
1765
1766 PyErr_Clear();
1767
1768 Py_BEGIN_ALLOW_THREADS
1769 sipRes = (sipSelfWasArg ? sipCpp-> ::wxTreebook::Validate() : sipCpp->Validate());
1770 Py_END_ALLOW_THREADS
1771
1772 if (PyErr_Occurred())
1773 return 0;
1774
1775 return PyBool_FromLong(sipRes);
1776 }
1777 }
1778
1779 /* Raise an exception if the arguments couldn't be parsed. */
1780 sipNoMethod(sipParseErr, sipName_Treebook, sipName_Validate, doc_wxTreebook_Validate);
1781
1782 return SIP_NULLPTR;
1783 }
1784
1785
1786 PyDoc_STRVAR(doc_wxTreebook_TransferDataToWindow, "TransferDataToWindow(self) -> bool");
1787
1788 extern "C" {static PyObject *meth_wxTreebook_TransferDataToWindow(PyObject *, PyObject *);}
meth_wxTreebook_TransferDataToWindow(PyObject * sipSelf,PyObject * sipArgs)1789 static PyObject *meth_wxTreebook_TransferDataToWindow(PyObject *sipSelf, PyObject *sipArgs)
1790 {
1791 PyObject *sipParseErr = SIP_NULLPTR;
1792 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1793
1794 {
1795 ::wxTreebook *sipCpp;
1796
1797 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTreebook, &sipCpp))
1798 {
1799 bool sipRes;
1800
1801 PyErr_Clear();
1802
1803 Py_BEGIN_ALLOW_THREADS
1804 sipRes = (sipSelfWasArg ? sipCpp-> ::wxTreebook::TransferDataToWindow() : sipCpp->TransferDataToWindow());
1805 Py_END_ALLOW_THREADS
1806
1807 if (PyErr_Occurred())
1808 return 0;
1809
1810 return PyBool_FromLong(sipRes);
1811 }
1812 }
1813
1814 /* Raise an exception if the arguments couldn't be parsed. */
1815 sipNoMethod(sipParseErr, sipName_Treebook, sipName_TransferDataToWindow, doc_wxTreebook_TransferDataToWindow);
1816
1817 return SIP_NULLPTR;
1818 }
1819
1820
1821 PyDoc_STRVAR(doc_wxTreebook_TransferDataFromWindow, "TransferDataFromWindow(self) -> bool");
1822
1823 extern "C" {static PyObject *meth_wxTreebook_TransferDataFromWindow(PyObject *, PyObject *);}
meth_wxTreebook_TransferDataFromWindow(PyObject * sipSelf,PyObject * sipArgs)1824 static PyObject *meth_wxTreebook_TransferDataFromWindow(PyObject *sipSelf, PyObject *sipArgs)
1825 {
1826 PyObject *sipParseErr = SIP_NULLPTR;
1827 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1828
1829 {
1830 ::wxTreebook *sipCpp;
1831
1832 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTreebook, &sipCpp))
1833 {
1834 bool sipRes;
1835
1836 PyErr_Clear();
1837
1838 Py_BEGIN_ALLOW_THREADS
1839 sipRes = (sipSelfWasArg ? sipCpp-> ::wxTreebook::TransferDataFromWindow() : sipCpp->TransferDataFromWindow());
1840 Py_END_ALLOW_THREADS
1841
1842 if (PyErr_Occurred())
1843 return 0;
1844
1845 return PyBool_FromLong(sipRes);
1846 }
1847 }
1848
1849 /* Raise an exception if the arguments couldn't be parsed. */
1850 sipNoMethod(sipParseErr, sipName_Treebook, sipName_TransferDataFromWindow, doc_wxTreebook_TransferDataFromWindow);
1851
1852 return SIP_NULLPTR;
1853 }
1854
1855
1856 PyDoc_STRVAR(doc_wxTreebook_InitDialog, "InitDialog(self)");
1857
1858 extern "C" {static PyObject *meth_wxTreebook_InitDialog(PyObject *, PyObject *);}
meth_wxTreebook_InitDialog(PyObject * sipSelf,PyObject * sipArgs)1859 static PyObject *meth_wxTreebook_InitDialog(PyObject *sipSelf, PyObject *sipArgs)
1860 {
1861 PyObject *sipParseErr = SIP_NULLPTR;
1862 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1863
1864 {
1865 ::wxTreebook *sipCpp;
1866
1867 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTreebook, &sipCpp))
1868 {
1869 PyErr_Clear();
1870
1871 Py_BEGIN_ALLOW_THREADS
1872 (sipSelfWasArg ? sipCpp-> ::wxTreebook::InitDialog() : sipCpp->InitDialog());
1873 Py_END_ALLOW_THREADS
1874
1875 if (PyErr_Occurred())
1876 return 0;
1877
1878 Py_INCREF(Py_None);
1879 return Py_None;
1880 }
1881 }
1882
1883 /* Raise an exception if the arguments couldn't be parsed. */
1884 sipNoMethod(sipParseErr, sipName_Treebook, sipName_InitDialog, doc_wxTreebook_InitDialog);
1885
1886 return SIP_NULLPTR;
1887 }
1888
1889
1890 PyDoc_STRVAR(doc_wxTreebook_AcceptsFocus, "AcceptsFocus(self) -> bool");
1891
1892 extern "C" {static PyObject *meth_wxTreebook_AcceptsFocus(PyObject *, PyObject *);}
meth_wxTreebook_AcceptsFocus(PyObject * sipSelf,PyObject * sipArgs)1893 static PyObject *meth_wxTreebook_AcceptsFocus(PyObject *sipSelf, PyObject *sipArgs)
1894 {
1895 PyObject *sipParseErr = SIP_NULLPTR;
1896 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1897
1898 {
1899 const ::wxTreebook *sipCpp;
1900
1901 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTreebook, &sipCpp))
1902 {
1903 bool sipRes;
1904
1905 PyErr_Clear();
1906
1907 Py_BEGIN_ALLOW_THREADS
1908 sipRes = (sipSelfWasArg ? sipCpp-> ::wxTreebook::AcceptsFocus() : sipCpp->AcceptsFocus());
1909 Py_END_ALLOW_THREADS
1910
1911 if (PyErr_Occurred())
1912 return 0;
1913
1914 return PyBool_FromLong(sipRes);
1915 }
1916 }
1917
1918 /* Raise an exception if the arguments couldn't be parsed. */
1919 sipNoMethod(sipParseErr, sipName_Treebook, sipName_AcceptsFocus, doc_wxTreebook_AcceptsFocus);
1920
1921 return SIP_NULLPTR;
1922 }
1923
1924
1925 PyDoc_STRVAR(doc_wxTreebook_AcceptsFocusRecursively, "AcceptsFocusRecursively(self) -> bool");
1926
1927 extern "C" {static PyObject *meth_wxTreebook_AcceptsFocusRecursively(PyObject *, PyObject *);}
meth_wxTreebook_AcceptsFocusRecursively(PyObject * sipSelf,PyObject * sipArgs)1928 static PyObject *meth_wxTreebook_AcceptsFocusRecursively(PyObject *sipSelf, PyObject *sipArgs)
1929 {
1930 PyObject *sipParseErr = SIP_NULLPTR;
1931 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1932
1933 {
1934 const ::wxTreebook *sipCpp;
1935
1936 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTreebook, &sipCpp))
1937 {
1938 bool sipRes;
1939
1940 PyErr_Clear();
1941
1942 Py_BEGIN_ALLOW_THREADS
1943 sipRes = (sipSelfWasArg ? sipCpp-> ::wxTreebook::AcceptsFocusRecursively() : sipCpp->AcceptsFocusRecursively());
1944 Py_END_ALLOW_THREADS
1945
1946 if (PyErr_Occurred())
1947 return 0;
1948
1949 return PyBool_FromLong(sipRes);
1950 }
1951 }
1952
1953 /* Raise an exception if the arguments couldn't be parsed. */
1954 sipNoMethod(sipParseErr, sipName_Treebook, sipName_AcceptsFocusRecursively, doc_wxTreebook_AcceptsFocusRecursively);
1955
1956 return SIP_NULLPTR;
1957 }
1958
1959
1960 PyDoc_STRVAR(doc_wxTreebook_AcceptsFocusFromKeyboard, "AcceptsFocusFromKeyboard(self) -> bool");
1961
1962 extern "C" {static PyObject *meth_wxTreebook_AcceptsFocusFromKeyboard(PyObject *, PyObject *);}
meth_wxTreebook_AcceptsFocusFromKeyboard(PyObject * sipSelf,PyObject * sipArgs)1963 static PyObject *meth_wxTreebook_AcceptsFocusFromKeyboard(PyObject *sipSelf, PyObject *sipArgs)
1964 {
1965 PyObject *sipParseErr = SIP_NULLPTR;
1966 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1967
1968 {
1969 const ::wxTreebook *sipCpp;
1970
1971 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTreebook, &sipCpp))
1972 {
1973 bool sipRes;
1974
1975 PyErr_Clear();
1976
1977 Py_BEGIN_ALLOW_THREADS
1978 sipRes = (sipSelfWasArg ? sipCpp-> ::wxTreebook::AcceptsFocusFromKeyboard() : sipCpp->AcceptsFocusFromKeyboard());
1979 Py_END_ALLOW_THREADS
1980
1981 if (PyErr_Occurred())
1982 return 0;
1983
1984 return PyBool_FromLong(sipRes);
1985 }
1986 }
1987
1988 /* Raise an exception if the arguments couldn't be parsed. */
1989 sipNoMethod(sipParseErr, sipName_Treebook, sipName_AcceptsFocusFromKeyboard, doc_wxTreebook_AcceptsFocusFromKeyboard);
1990
1991 return SIP_NULLPTR;
1992 }
1993
1994
1995 PyDoc_STRVAR(doc_wxTreebook_AddChild, "AddChild(self, child: WindowBase)");
1996
1997 extern "C" {static PyObject *meth_wxTreebook_AddChild(PyObject *, PyObject *, PyObject *);}
meth_wxTreebook_AddChild(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1998 static PyObject *meth_wxTreebook_AddChild(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1999 {
2000 PyObject *sipParseErr = SIP_NULLPTR;
2001 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2002
2003 {
2004 ::wxWindowBase* child;
2005 ::wxTreebook *sipCpp;
2006
2007 static const char *sipKwdList[] = {
2008 sipName_child,
2009 };
2010
2011 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8", &sipSelf, sipType_wxTreebook, &sipCpp, sipType_wxWindowBase, &child))
2012 {
2013 PyErr_Clear();
2014
2015 Py_BEGIN_ALLOW_THREADS
2016 (sipSelfWasArg ? sipCpp-> ::wxTreebook::AddChild(child) : sipCpp->AddChild(child));
2017 Py_END_ALLOW_THREADS
2018
2019 if (PyErr_Occurred())
2020 return 0;
2021
2022 Py_INCREF(Py_None);
2023 return Py_None;
2024 }
2025 }
2026
2027 /* Raise an exception if the arguments couldn't be parsed. */
2028 sipNoMethod(sipParseErr, sipName_Treebook, sipName_AddChild, doc_wxTreebook_AddChild);
2029
2030 return SIP_NULLPTR;
2031 }
2032
2033
2034 PyDoc_STRVAR(doc_wxTreebook_RemoveChild, "RemoveChild(self, child: WindowBase)");
2035
2036 extern "C" {static PyObject *meth_wxTreebook_RemoveChild(PyObject *, PyObject *, PyObject *);}
meth_wxTreebook_RemoveChild(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2037 static PyObject *meth_wxTreebook_RemoveChild(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2038 {
2039 PyObject *sipParseErr = SIP_NULLPTR;
2040 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2041
2042 {
2043 ::wxWindowBase* child;
2044 ::wxTreebook *sipCpp;
2045
2046 static const char *sipKwdList[] = {
2047 sipName_child,
2048 };
2049
2050 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8", &sipSelf, sipType_wxTreebook, &sipCpp, sipType_wxWindowBase, &child))
2051 {
2052 PyErr_Clear();
2053
2054 Py_BEGIN_ALLOW_THREADS
2055 (sipSelfWasArg ? sipCpp-> ::wxTreebook::RemoveChild(child) : sipCpp->RemoveChild(child));
2056 Py_END_ALLOW_THREADS
2057
2058 if (PyErr_Occurred())
2059 return 0;
2060
2061 Py_INCREF(Py_None);
2062 return Py_None;
2063 }
2064 }
2065
2066 /* Raise an exception if the arguments couldn't be parsed. */
2067 sipNoMethod(sipParseErr, sipName_Treebook, sipName_RemoveChild, doc_wxTreebook_RemoveChild);
2068
2069 return SIP_NULLPTR;
2070 }
2071
2072
2073 PyDoc_STRVAR(doc_wxTreebook_InheritAttributes, "InheritAttributes(self)");
2074
2075 extern "C" {static PyObject *meth_wxTreebook_InheritAttributes(PyObject *, PyObject *);}
meth_wxTreebook_InheritAttributes(PyObject * sipSelf,PyObject * sipArgs)2076 static PyObject *meth_wxTreebook_InheritAttributes(PyObject *sipSelf, PyObject *sipArgs)
2077 {
2078 PyObject *sipParseErr = SIP_NULLPTR;
2079 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2080
2081 {
2082 ::wxTreebook *sipCpp;
2083
2084 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTreebook, &sipCpp))
2085 {
2086 PyErr_Clear();
2087
2088 Py_BEGIN_ALLOW_THREADS
2089 (sipSelfWasArg ? sipCpp-> ::wxTreebook::InheritAttributes() : sipCpp->InheritAttributes());
2090 Py_END_ALLOW_THREADS
2091
2092 if (PyErr_Occurred())
2093 return 0;
2094
2095 Py_INCREF(Py_None);
2096 return Py_None;
2097 }
2098 }
2099
2100 /* Raise an exception if the arguments couldn't be parsed. */
2101 sipNoMethod(sipParseErr, sipName_Treebook, sipName_InheritAttributes, doc_wxTreebook_InheritAttributes);
2102
2103 return SIP_NULLPTR;
2104 }
2105
2106
2107 PyDoc_STRVAR(doc_wxTreebook_ShouldInheritColours, "ShouldInheritColours(self) -> bool");
2108
2109 extern "C" {static PyObject *meth_wxTreebook_ShouldInheritColours(PyObject *, PyObject *);}
meth_wxTreebook_ShouldInheritColours(PyObject * sipSelf,PyObject * sipArgs)2110 static PyObject *meth_wxTreebook_ShouldInheritColours(PyObject *sipSelf, PyObject *sipArgs)
2111 {
2112 PyObject *sipParseErr = SIP_NULLPTR;
2113 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2114
2115 {
2116 const ::wxTreebook *sipCpp;
2117
2118 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTreebook, &sipCpp))
2119 {
2120 bool sipRes;
2121
2122 PyErr_Clear();
2123
2124 Py_BEGIN_ALLOW_THREADS
2125 sipRes = (sipSelfWasArg ? sipCpp-> ::wxTreebook::ShouldInheritColours() : sipCpp->ShouldInheritColours());
2126 Py_END_ALLOW_THREADS
2127
2128 if (PyErr_Occurred())
2129 return 0;
2130
2131 return PyBool_FromLong(sipRes);
2132 }
2133 }
2134
2135 /* Raise an exception if the arguments couldn't be parsed. */
2136 sipNoMethod(sipParseErr, sipName_Treebook, sipName_ShouldInheritColours, doc_wxTreebook_ShouldInheritColours);
2137
2138 return SIP_NULLPTR;
2139 }
2140
2141
2142 PyDoc_STRVAR(doc_wxTreebook_OnInternalIdle, "OnInternalIdle(self)");
2143
2144 extern "C" {static PyObject *meth_wxTreebook_OnInternalIdle(PyObject *, PyObject *);}
meth_wxTreebook_OnInternalIdle(PyObject * sipSelf,PyObject * sipArgs)2145 static PyObject *meth_wxTreebook_OnInternalIdle(PyObject *sipSelf, PyObject *sipArgs)
2146 {
2147 PyObject *sipParseErr = SIP_NULLPTR;
2148 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2149
2150 {
2151 ::wxTreebook *sipCpp;
2152
2153 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTreebook, &sipCpp))
2154 {
2155 PyErr_Clear();
2156
2157 Py_BEGIN_ALLOW_THREADS
2158 (sipSelfWasArg ? sipCpp-> ::wxTreebook::OnInternalIdle() : sipCpp->OnInternalIdle());
2159 Py_END_ALLOW_THREADS
2160
2161 if (PyErr_Occurred())
2162 return 0;
2163
2164 Py_INCREF(Py_None);
2165 return Py_None;
2166 }
2167 }
2168
2169 /* Raise an exception if the arguments couldn't be parsed. */
2170 sipNoMethod(sipParseErr, sipName_Treebook, sipName_OnInternalIdle, doc_wxTreebook_OnInternalIdle);
2171
2172 return SIP_NULLPTR;
2173 }
2174
2175
2176 PyDoc_STRVAR(doc_wxTreebook_GetMainWindowOfCompositeControl, "GetMainWindowOfCompositeControl(self) -> Window");
2177
2178 extern "C" {static PyObject *meth_wxTreebook_GetMainWindowOfCompositeControl(PyObject *, PyObject *);}
meth_wxTreebook_GetMainWindowOfCompositeControl(PyObject * sipSelf,PyObject * sipArgs)2179 static PyObject *meth_wxTreebook_GetMainWindowOfCompositeControl(PyObject *sipSelf, PyObject *sipArgs)
2180 {
2181 PyObject *sipParseErr = SIP_NULLPTR;
2182 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2183
2184 {
2185 ::wxTreebook *sipCpp;
2186
2187 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTreebook, &sipCpp))
2188 {
2189 ::wxWindow*sipRes;
2190
2191 PyErr_Clear();
2192
2193 Py_BEGIN_ALLOW_THREADS
2194 sipRes = (sipSelfWasArg ? sipCpp-> ::wxTreebook::GetMainWindowOfCompositeControl() : sipCpp->GetMainWindowOfCompositeControl());
2195 Py_END_ALLOW_THREADS
2196
2197 if (PyErr_Occurred())
2198 return 0;
2199
2200 return sipConvertFromType(sipRes,sipType_wxWindow,SIP_NULLPTR);
2201 }
2202 }
2203
2204 /* Raise an exception if the arguments couldn't be parsed. */
2205 sipNoMethod(sipParseErr, sipName_Treebook, sipName_GetMainWindowOfCompositeControl, doc_wxTreebook_GetMainWindowOfCompositeControl);
2206
2207 return SIP_NULLPTR;
2208 }
2209
2210
2211 PyDoc_STRVAR(doc_wxTreebook_InformFirstDirection, "InformFirstDirection(self, direction: int, size: int, availableOtherDir: int) -> bool");
2212
2213 extern "C" {static PyObject *meth_wxTreebook_InformFirstDirection(PyObject *, PyObject *, PyObject *);}
meth_wxTreebook_InformFirstDirection(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2214 static PyObject *meth_wxTreebook_InformFirstDirection(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2215 {
2216 PyObject *sipParseErr = SIP_NULLPTR;
2217 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2218
2219 {
2220 int direction;
2221 int size;
2222 int availableOtherDir;
2223 ::wxTreebook *sipCpp;
2224
2225 static const char *sipKwdList[] = {
2226 sipName_direction,
2227 sipName_size,
2228 sipName_availableOtherDir,
2229 };
2230
2231 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biii", &sipSelf, sipType_wxTreebook, &sipCpp, &direction, &size, &availableOtherDir))
2232 {
2233 bool sipRes;
2234
2235 PyErr_Clear();
2236
2237 Py_BEGIN_ALLOW_THREADS
2238 sipRes = (sipSelfWasArg ? sipCpp-> ::wxTreebook::InformFirstDirection(direction,size,availableOtherDir) : sipCpp->InformFirstDirection(direction,size,availableOtherDir));
2239 Py_END_ALLOW_THREADS
2240
2241 if (PyErr_Occurred())
2242 return 0;
2243
2244 return PyBool_FromLong(sipRes);
2245 }
2246 }
2247
2248 /* Raise an exception if the arguments couldn't be parsed. */
2249 sipNoMethod(sipParseErr, sipName_Treebook, sipName_InformFirstDirection, doc_wxTreebook_InformFirstDirection);
2250
2251 return SIP_NULLPTR;
2252 }
2253
2254
2255 PyDoc_STRVAR(doc_wxTreebook_SetCanFocus, "SetCanFocus(self, canFocus: bool)");
2256
2257 extern "C" {static PyObject *meth_wxTreebook_SetCanFocus(PyObject *, PyObject *, PyObject *);}
meth_wxTreebook_SetCanFocus(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2258 static PyObject *meth_wxTreebook_SetCanFocus(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2259 {
2260 PyObject *sipParseErr = SIP_NULLPTR;
2261 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2262
2263 {
2264 bool canFocus;
2265 ::wxTreebook *sipCpp;
2266
2267 static const char *sipKwdList[] = {
2268 sipName_canFocus,
2269 };
2270
2271 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bb", &sipSelf, sipType_wxTreebook, &sipCpp, &canFocus))
2272 {
2273 PyErr_Clear();
2274
2275 Py_BEGIN_ALLOW_THREADS
2276 (sipSelfWasArg ? sipCpp-> ::wxTreebook::SetCanFocus(canFocus) : sipCpp->SetCanFocus(canFocus));
2277 Py_END_ALLOW_THREADS
2278
2279 if (PyErr_Occurred())
2280 return 0;
2281
2282 Py_INCREF(Py_None);
2283 return Py_None;
2284 }
2285 }
2286
2287 /* Raise an exception if the arguments couldn't be parsed. */
2288 sipNoMethod(sipParseErr, sipName_Treebook, sipName_SetCanFocus, doc_wxTreebook_SetCanFocus);
2289
2290 return SIP_NULLPTR;
2291 }
2292
2293
2294 PyDoc_STRVAR(doc_wxTreebook_Destroy, "Destroy(self) -> bool");
2295
2296 extern "C" {static PyObject *meth_wxTreebook_Destroy(PyObject *, PyObject *);}
meth_wxTreebook_Destroy(PyObject * sipSelf,PyObject * sipArgs)2297 static PyObject *meth_wxTreebook_Destroy(PyObject *sipSelf, PyObject *sipArgs)
2298 {
2299 PyObject *sipParseErr = SIP_NULLPTR;
2300 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2301
2302 {
2303 ::wxTreebook *sipCpp;
2304
2305 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTreebook, &sipCpp))
2306 {
2307 bool sipRes;
2308
2309 PyErr_Clear();
2310
2311 Py_BEGIN_ALLOW_THREADS
2312 sipRes = (sipSelfWasArg ? sipCpp-> ::wxTreebook::Destroy() : sipCpp->Destroy());
2313 Py_END_ALLOW_THREADS
2314
2315 if (PyErr_Occurred())
2316 return 0;
2317
2318 return PyBool_FromLong(sipRes);
2319 }
2320 }
2321
2322 /* Raise an exception if the arguments couldn't be parsed. */
2323 sipNoMethod(sipParseErr, sipName_Treebook, sipName_Destroy, doc_wxTreebook_Destroy);
2324
2325 return SIP_NULLPTR;
2326 }
2327
2328
2329 PyDoc_STRVAR(doc_wxTreebook_SetValidator, "SetValidator(self, validator: Validator)");
2330
2331 extern "C" {static PyObject *meth_wxTreebook_SetValidator(PyObject *, PyObject *, PyObject *);}
meth_wxTreebook_SetValidator(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2332 static PyObject *meth_wxTreebook_SetValidator(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2333 {
2334 PyObject *sipParseErr = SIP_NULLPTR;
2335 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2336
2337 {
2338 const ::wxValidator* validator;
2339 ::wxTreebook *sipCpp;
2340
2341 static const char *sipKwdList[] = {
2342 sipName_validator,
2343 };
2344
2345 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxTreebook, &sipCpp, sipType_wxValidator, &validator))
2346 {
2347 PyErr_Clear();
2348
2349 Py_BEGIN_ALLOW_THREADS
2350 (sipSelfWasArg ? sipCpp-> ::wxTreebook::SetValidator(*validator) : sipCpp->SetValidator(*validator));
2351 Py_END_ALLOW_THREADS
2352
2353 if (PyErr_Occurred())
2354 return 0;
2355
2356 Py_INCREF(Py_None);
2357 return Py_None;
2358 }
2359 }
2360
2361 /* Raise an exception if the arguments couldn't be parsed. */
2362 sipNoMethod(sipParseErr, sipName_Treebook, sipName_SetValidator, doc_wxTreebook_SetValidator);
2363
2364 return SIP_NULLPTR;
2365 }
2366
2367
2368 PyDoc_STRVAR(doc_wxTreebook_GetValidator, "GetValidator(self) -> Validator");
2369
2370 extern "C" {static PyObject *meth_wxTreebook_GetValidator(PyObject *, PyObject *);}
meth_wxTreebook_GetValidator(PyObject * sipSelf,PyObject * sipArgs)2371 static PyObject *meth_wxTreebook_GetValidator(PyObject *sipSelf, PyObject *sipArgs)
2372 {
2373 PyObject *sipParseErr = SIP_NULLPTR;
2374 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2375
2376 {
2377 ::wxTreebook *sipCpp;
2378
2379 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTreebook, &sipCpp))
2380 {
2381 ::wxValidator*sipRes;
2382
2383 PyErr_Clear();
2384
2385 Py_BEGIN_ALLOW_THREADS
2386 sipRes = (sipSelfWasArg ? sipCpp-> ::wxTreebook::GetValidator() : sipCpp->GetValidator());
2387 Py_END_ALLOW_THREADS
2388
2389 if (PyErr_Occurred())
2390 return 0;
2391
2392 return sipConvertFromType(sipRes,sipType_wxValidator,SIP_NULLPTR);
2393 }
2394 }
2395
2396 /* Raise an exception if the arguments couldn't be parsed. */
2397 sipNoMethod(sipParseErr, sipName_Treebook, sipName_GetValidator, doc_wxTreebook_GetValidator);
2398
2399 return SIP_NULLPTR;
2400 }
2401
2402
2403 PyDoc_STRVAR(doc_wxTreebook_ProcessEvent, "ProcessEvent(self, event: Event) -> bool");
2404
2405 extern "C" {static PyObject *meth_wxTreebook_ProcessEvent(PyObject *, PyObject *, PyObject *);}
meth_wxTreebook_ProcessEvent(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2406 static PyObject *meth_wxTreebook_ProcessEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2407 {
2408 PyObject *sipParseErr = SIP_NULLPTR;
2409 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2410
2411 {
2412 ::wxEvent* event;
2413 sipwxTreebook *sipCpp;
2414
2415 static const char *sipKwdList[] = {
2416 sipName_event,
2417 };
2418
2419 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxTreebook, &sipCpp, sipType_wxEvent, &event))
2420 {
2421 bool sipRes;
2422
2423 PyErr_Clear();
2424
2425 Py_BEGIN_ALLOW_THREADS
2426 sipRes = sipCpp->sipProtectVirt_ProcessEvent(sipSelfWasArg,*event);
2427 Py_END_ALLOW_THREADS
2428
2429 if (PyErr_Occurred())
2430 return 0;
2431
2432 return PyBool_FromLong(sipRes);
2433 }
2434 }
2435
2436 /* Raise an exception if the arguments couldn't be parsed. */
2437 sipNoMethod(sipParseErr, sipName_Treebook, sipName_ProcessEvent, doc_wxTreebook_ProcessEvent);
2438
2439 return SIP_NULLPTR;
2440 }
2441
2442
2443 PyDoc_STRVAR(doc_wxTreebook_DoEnable, "DoEnable(self, enable: bool)");
2444
2445 extern "C" {static PyObject *meth_wxTreebook_DoEnable(PyObject *, PyObject *, PyObject *);}
meth_wxTreebook_DoEnable(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2446 static PyObject *meth_wxTreebook_DoEnable(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2447 {
2448 PyObject *sipParseErr = SIP_NULLPTR;
2449 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2450
2451 {
2452 bool enable;
2453 sipwxTreebook *sipCpp;
2454
2455 static const char *sipKwdList[] = {
2456 sipName_enable,
2457 };
2458
2459 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bb", &sipSelf, sipType_wxTreebook, &sipCpp, &enable))
2460 {
2461 PyErr_Clear();
2462
2463 Py_BEGIN_ALLOW_THREADS
2464 sipCpp->sipProtectVirt_DoEnable(sipSelfWasArg,enable);
2465 Py_END_ALLOW_THREADS
2466
2467 if (PyErr_Occurred())
2468 return 0;
2469
2470 Py_INCREF(Py_None);
2471 return Py_None;
2472 }
2473 }
2474
2475 /* Raise an exception if the arguments couldn't be parsed. */
2476 sipNoMethod(sipParseErr, sipName_Treebook, sipName_DoEnable, doc_wxTreebook_DoEnable);
2477
2478 return SIP_NULLPTR;
2479 }
2480
2481
2482 PyDoc_STRVAR(doc_wxTreebook_DoGetPosition, "DoGetPosition(self) -> Tuple[int, int]");
2483
2484 extern "C" {static PyObject *meth_wxTreebook_DoGetPosition(PyObject *, PyObject *, PyObject *);}
meth_wxTreebook_DoGetPosition(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2485 static PyObject *meth_wxTreebook_DoGetPosition(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2486 {
2487 PyObject *sipParseErr = SIP_NULLPTR;
2488 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2489
2490 {
2491 int x;
2492 int y;
2493 const sipwxTreebook *sipCpp;
2494
2495 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "B", &sipSelf, sipType_wxTreebook, &sipCpp))
2496 {
2497 PyErr_Clear();
2498
2499 Py_BEGIN_ALLOW_THREADS
2500 sipCpp->sipProtectVirt_DoGetPosition(sipSelfWasArg,&x,&y);
2501 Py_END_ALLOW_THREADS
2502
2503 if (PyErr_Occurred())
2504 return 0;
2505
2506 return sipBuildResult(0,"(ii)",x,y);
2507 }
2508 }
2509
2510 /* Raise an exception if the arguments couldn't be parsed. */
2511 sipNoMethod(sipParseErr, sipName_Treebook, sipName_DoGetPosition, doc_wxTreebook_DoGetPosition);
2512
2513 return SIP_NULLPTR;
2514 }
2515
2516
2517 PyDoc_STRVAR(doc_wxTreebook_DoGetSize, "DoGetSize(self) -> Tuple[int, int]");
2518
2519 extern "C" {static PyObject *meth_wxTreebook_DoGetSize(PyObject *, PyObject *, PyObject *);}
meth_wxTreebook_DoGetSize(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2520 static PyObject *meth_wxTreebook_DoGetSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2521 {
2522 PyObject *sipParseErr = SIP_NULLPTR;
2523 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2524
2525 {
2526 int width;
2527 int height;
2528 const sipwxTreebook *sipCpp;
2529
2530 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "B", &sipSelf, sipType_wxTreebook, &sipCpp))
2531 {
2532 PyErr_Clear();
2533
2534 Py_BEGIN_ALLOW_THREADS
2535 sipCpp->sipProtectVirt_DoGetSize(sipSelfWasArg,&width,&height);
2536 Py_END_ALLOW_THREADS
2537
2538 if (PyErr_Occurred())
2539 return 0;
2540
2541 return sipBuildResult(0,"(ii)",width,height);
2542 }
2543 }
2544
2545 /* Raise an exception if the arguments couldn't be parsed. */
2546 sipNoMethod(sipParseErr, sipName_Treebook, sipName_DoGetSize, doc_wxTreebook_DoGetSize);
2547
2548 return SIP_NULLPTR;
2549 }
2550
2551
2552 PyDoc_STRVAR(doc_wxTreebook_DoGetClientSize, "DoGetClientSize(self) -> Tuple[int, int]");
2553
2554 extern "C" {static PyObject *meth_wxTreebook_DoGetClientSize(PyObject *, PyObject *, PyObject *);}
meth_wxTreebook_DoGetClientSize(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2555 static PyObject *meth_wxTreebook_DoGetClientSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2556 {
2557 PyObject *sipParseErr = SIP_NULLPTR;
2558 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2559
2560 {
2561 int width;
2562 int height;
2563 const sipwxTreebook *sipCpp;
2564
2565 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "B", &sipSelf, sipType_wxTreebook, &sipCpp))
2566 {
2567 PyErr_Clear();
2568
2569 Py_BEGIN_ALLOW_THREADS
2570 sipCpp->sipProtectVirt_DoGetClientSize(sipSelfWasArg,&width,&height);
2571 Py_END_ALLOW_THREADS
2572
2573 if (PyErr_Occurred())
2574 return 0;
2575
2576 return sipBuildResult(0,"(ii)",width,height);
2577 }
2578 }
2579
2580 /* Raise an exception if the arguments couldn't be parsed. */
2581 sipNoMethod(sipParseErr, sipName_Treebook, sipName_DoGetClientSize, doc_wxTreebook_DoGetClientSize);
2582
2583 return SIP_NULLPTR;
2584 }
2585
2586
2587 PyDoc_STRVAR(doc_wxTreebook_DoGetBestSize, "DoGetBestSize(self) -> Size");
2588
2589 extern "C" {static PyObject *meth_wxTreebook_DoGetBestSize(PyObject *, PyObject *);}
meth_wxTreebook_DoGetBestSize(PyObject * sipSelf,PyObject * sipArgs)2590 static PyObject *meth_wxTreebook_DoGetBestSize(PyObject *sipSelf, PyObject *sipArgs)
2591 {
2592 PyObject *sipParseErr = SIP_NULLPTR;
2593 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2594
2595 {
2596 const sipwxTreebook *sipCpp;
2597
2598 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTreebook, &sipCpp))
2599 {
2600 ::wxSize*sipRes;
2601
2602 PyErr_Clear();
2603
2604 Py_BEGIN_ALLOW_THREADS
2605 sipRes = new ::wxSize(sipCpp->sipProtectVirt_DoGetBestSize(sipSelfWasArg));
2606 Py_END_ALLOW_THREADS
2607
2608 if (PyErr_Occurred())
2609 return 0;
2610
2611 return sipConvertFromNewType(sipRes,sipType_wxSize,SIP_NULLPTR);
2612 }
2613 }
2614
2615 /* Raise an exception if the arguments couldn't be parsed. */
2616 sipNoMethod(sipParseErr, sipName_Treebook, sipName_DoGetBestSize, doc_wxTreebook_DoGetBestSize);
2617
2618 return SIP_NULLPTR;
2619 }
2620
2621
2622 PyDoc_STRVAR(doc_wxTreebook_DoGetBestClientSize, "DoGetBestClientSize(self) -> Size");
2623
2624 extern "C" {static PyObject *meth_wxTreebook_DoGetBestClientSize(PyObject *, PyObject *);}
meth_wxTreebook_DoGetBestClientSize(PyObject * sipSelf,PyObject * sipArgs)2625 static PyObject *meth_wxTreebook_DoGetBestClientSize(PyObject *sipSelf, PyObject *sipArgs)
2626 {
2627 PyObject *sipParseErr = SIP_NULLPTR;
2628 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2629
2630 {
2631 const sipwxTreebook *sipCpp;
2632
2633 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTreebook, &sipCpp))
2634 {
2635 ::wxSize*sipRes;
2636
2637 PyErr_Clear();
2638
2639 Py_BEGIN_ALLOW_THREADS
2640 sipRes = new ::wxSize(sipCpp->sipProtectVirt_DoGetBestClientSize(sipSelfWasArg));
2641 Py_END_ALLOW_THREADS
2642
2643 if (PyErr_Occurred())
2644 return 0;
2645
2646 return sipConvertFromNewType(sipRes,sipType_wxSize,SIP_NULLPTR);
2647 }
2648 }
2649
2650 /* Raise an exception if the arguments couldn't be parsed. */
2651 sipNoMethod(sipParseErr, sipName_Treebook, sipName_DoGetBestClientSize, doc_wxTreebook_DoGetBestClientSize);
2652
2653 return SIP_NULLPTR;
2654 }
2655
2656
2657 PyDoc_STRVAR(doc_wxTreebook_DoSetSize, "DoSetSize(self, x: int, y: int, width: int, height: int, sizeFlags: int)");
2658
2659 extern "C" {static PyObject *meth_wxTreebook_DoSetSize(PyObject *, PyObject *, PyObject *);}
meth_wxTreebook_DoSetSize(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2660 static PyObject *meth_wxTreebook_DoSetSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2661 {
2662 PyObject *sipParseErr = SIP_NULLPTR;
2663 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2664
2665 {
2666 int x;
2667 int y;
2668 int width;
2669 int height;
2670 int sizeFlags;
2671 sipwxTreebook *sipCpp;
2672
2673 static const char *sipKwdList[] = {
2674 sipName_x,
2675 sipName_y,
2676 sipName_width,
2677 sipName_height,
2678 sipName_sizeFlags,
2679 };
2680
2681 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biiiii", &sipSelf, sipType_wxTreebook, &sipCpp, &x, &y, &width, &height, &sizeFlags))
2682 {
2683 PyErr_Clear();
2684
2685 Py_BEGIN_ALLOW_THREADS
2686 sipCpp->sipProtectVirt_DoSetSize(sipSelfWasArg,x,y,width,height,sizeFlags);
2687 Py_END_ALLOW_THREADS
2688
2689 if (PyErr_Occurred())
2690 return 0;
2691
2692 Py_INCREF(Py_None);
2693 return Py_None;
2694 }
2695 }
2696
2697 /* Raise an exception if the arguments couldn't be parsed. */
2698 sipNoMethod(sipParseErr, sipName_Treebook, sipName_DoSetSize, doc_wxTreebook_DoSetSize);
2699
2700 return SIP_NULLPTR;
2701 }
2702
2703
2704 PyDoc_STRVAR(doc_wxTreebook_DoSetClientSize, "DoSetClientSize(self, width: int, height: int)");
2705
2706 extern "C" {static PyObject *meth_wxTreebook_DoSetClientSize(PyObject *, PyObject *, PyObject *);}
meth_wxTreebook_DoSetClientSize(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2707 static PyObject *meth_wxTreebook_DoSetClientSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2708 {
2709 PyObject *sipParseErr = SIP_NULLPTR;
2710 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2711
2712 {
2713 int width;
2714 int height;
2715 sipwxTreebook *sipCpp;
2716
2717 static const char *sipKwdList[] = {
2718 sipName_width,
2719 sipName_height,
2720 };
2721
2722 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bii", &sipSelf, sipType_wxTreebook, &sipCpp, &width, &height))
2723 {
2724 PyErr_Clear();
2725
2726 Py_BEGIN_ALLOW_THREADS
2727 sipCpp->sipProtectVirt_DoSetClientSize(sipSelfWasArg,width,height);
2728 Py_END_ALLOW_THREADS
2729
2730 if (PyErr_Occurred())
2731 return 0;
2732
2733 Py_INCREF(Py_None);
2734 return Py_None;
2735 }
2736 }
2737
2738 /* Raise an exception if the arguments couldn't be parsed. */
2739 sipNoMethod(sipParseErr, sipName_Treebook, sipName_DoSetClientSize, doc_wxTreebook_DoSetClientSize);
2740
2741 return SIP_NULLPTR;
2742 }
2743
2744
2745 PyDoc_STRVAR(doc_wxTreebook_DoSetSizeHints, "DoSetSizeHints(self, minW: int, minH: int, maxW: int, maxH: int, incW: int, incH: int)");
2746
2747 extern "C" {static PyObject *meth_wxTreebook_DoSetSizeHints(PyObject *, PyObject *, PyObject *);}
meth_wxTreebook_DoSetSizeHints(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2748 static PyObject *meth_wxTreebook_DoSetSizeHints(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2749 {
2750 PyObject *sipParseErr = SIP_NULLPTR;
2751 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2752
2753 {
2754 int minW;
2755 int minH;
2756 int maxW;
2757 int maxH;
2758 int incW;
2759 int incH;
2760 sipwxTreebook *sipCpp;
2761
2762 static const char *sipKwdList[] = {
2763 sipName_minW,
2764 sipName_minH,
2765 sipName_maxW,
2766 sipName_maxH,
2767 sipName_incW,
2768 sipName_incH,
2769 };
2770
2771 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biiiiii", &sipSelf, sipType_wxTreebook, &sipCpp, &minW, &minH, &maxW, &maxH, &incW, &incH))
2772 {
2773 PyErr_Clear();
2774
2775 Py_BEGIN_ALLOW_THREADS
2776 sipCpp->sipProtectVirt_DoSetSizeHints(sipSelfWasArg,minW,minH,maxW,maxH,incW,incH);
2777 Py_END_ALLOW_THREADS
2778
2779 if (PyErr_Occurred())
2780 return 0;
2781
2782 Py_INCREF(Py_None);
2783 return Py_None;
2784 }
2785 }
2786
2787 /* Raise an exception if the arguments couldn't be parsed. */
2788 sipNoMethod(sipParseErr, sipName_Treebook, sipName_DoSetSizeHints, doc_wxTreebook_DoSetSizeHints);
2789
2790 return SIP_NULLPTR;
2791 }
2792
2793
2794 PyDoc_STRVAR(doc_wxTreebook_DoGetBorderSize, "DoGetBorderSize(self) -> Size");
2795
2796 extern "C" {static PyObject *meth_wxTreebook_DoGetBorderSize(PyObject *, PyObject *);}
meth_wxTreebook_DoGetBorderSize(PyObject * sipSelf,PyObject * sipArgs)2797 static PyObject *meth_wxTreebook_DoGetBorderSize(PyObject *sipSelf, PyObject *sipArgs)
2798 {
2799 PyObject *sipParseErr = SIP_NULLPTR;
2800 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2801
2802 {
2803 const sipwxTreebook *sipCpp;
2804
2805 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTreebook, &sipCpp))
2806 {
2807 ::wxSize*sipRes;
2808
2809 PyErr_Clear();
2810
2811 Py_BEGIN_ALLOW_THREADS
2812 sipRes = new ::wxSize(sipCpp->sipProtectVirt_DoGetBorderSize(sipSelfWasArg));
2813 Py_END_ALLOW_THREADS
2814
2815 if (PyErr_Occurred())
2816 return 0;
2817
2818 return sipConvertFromNewType(sipRes,sipType_wxSize,SIP_NULLPTR);
2819 }
2820 }
2821
2822 /* Raise an exception if the arguments couldn't be parsed. */
2823 sipNoMethod(sipParseErr, sipName_Treebook, sipName_DoGetBorderSize, doc_wxTreebook_DoGetBorderSize);
2824
2825 return SIP_NULLPTR;
2826 }
2827
2828
2829 PyDoc_STRVAR(doc_wxTreebook_DoMoveWindow, "DoMoveWindow(self, x: int, y: int, width: int, height: int)");
2830
2831 extern "C" {static PyObject *meth_wxTreebook_DoMoveWindow(PyObject *, PyObject *, PyObject *);}
meth_wxTreebook_DoMoveWindow(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2832 static PyObject *meth_wxTreebook_DoMoveWindow(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2833 {
2834 PyObject *sipParseErr = SIP_NULLPTR;
2835 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2836
2837 {
2838 int x;
2839 int y;
2840 int width;
2841 int height;
2842 sipwxTreebook *sipCpp;
2843
2844 static const char *sipKwdList[] = {
2845 sipName_x,
2846 sipName_y,
2847 sipName_width,
2848 sipName_height,
2849 };
2850
2851 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biiii", &sipSelf, sipType_wxTreebook, &sipCpp, &x, &y, &width, &height))
2852 {
2853 PyErr_Clear();
2854
2855 Py_BEGIN_ALLOW_THREADS
2856 sipCpp->sipProtectVirt_DoMoveWindow(sipSelfWasArg,x,y,width,height);
2857 Py_END_ALLOW_THREADS
2858
2859 if (PyErr_Occurred())
2860 return 0;
2861
2862 Py_INCREF(Py_None);
2863 return Py_None;
2864 }
2865 }
2866
2867 /* Raise an exception if the arguments couldn't be parsed. */
2868 sipNoMethod(sipParseErr, sipName_Treebook, sipName_DoMoveWindow, doc_wxTreebook_DoMoveWindow);
2869
2870 return SIP_NULLPTR;
2871 }
2872
2873
2874 PyDoc_STRVAR(doc_wxTreebook_DoSetWindowVariant, "DoSetWindowVariant(self, variant: WindowVariant)");
2875
2876 extern "C" {static PyObject *meth_wxTreebook_DoSetWindowVariant(PyObject *, PyObject *, PyObject *);}
meth_wxTreebook_DoSetWindowVariant(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2877 static PyObject *meth_wxTreebook_DoSetWindowVariant(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2878 {
2879 PyObject *sipParseErr = SIP_NULLPTR;
2880 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2881
2882 {
2883 ::wxWindowVariant variant;
2884 sipwxTreebook *sipCpp;
2885
2886 static const char *sipKwdList[] = {
2887 sipName_variant,
2888 };
2889
2890 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BE", &sipSelf, sipType_wxTreebook, &sipCpp, sipType_wxWindowVariant, &variant))
2891 {
2892 PyErr_Clear();
2893
2894 Py_BEGIN_ALLOW_THREADS
2895 sipCpp->sipProtectVirt_DoSetWindowVariant(sipSelfWasArg,variant);
2896 Py_END_ALLOW_THREADS
2897
2898 if (PyErr_Occurred())
2899 return 0;
2900
2901 Py_INCREF(Py_None);
2902 return Py_None;
2903 }
2904 }
2905
2906 /* Raise an exception if the arguments couldn't be parsed. */
2907 sipNoMethod(sipParseErr, sipName_Treebook, sipName_DoSetWindowVariant, doc_wxTreebook_DoSetWindowVariant);
2908
2909 return SIP_NULLPTR;
2910 }
2911
2912
2913 PyDoc_STRVAR(doc_wxTreebook_GetDefaultBorder, "GetDefaultBorder(self) -> Border");
2914
2915 extern "C" {static PyObject *meth_wxTreebook_GetDefaultBorder(PyObject *, PyObject *);}
meth_wxTreebook_GetDefaultBorder(PyObject * sipSelf,PyObject * sipArgs)2916 static PyObject *meth_wxTreebook_GetDefaultBorder(PyObject *sipSelf, PyObject *sipArgs)
2917 {
2918 PyObject *sipParseErr = SIP_NULLPTR;
2919 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2920
2921 {
2922 const sipwxTreebook *sipCpp;
2923
2924 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTreebook, &sipCpp))
2925 {
2926 ::wxBorder sipRes;
2927
2928 PyErr_Clear();
2929
2930 Py_BEGIN_ALLOW_THREADS
2931 sipRes = sipCpp->sipProtectVirt_GetDefaultBorder(sipSelfWasArg);
2932 Py_END_ALLOW_THREADS
2933
2934 if (PyErr_Occurred())
2935 return 0;
2936
2937 return sipConvertFromEnum(static_cast<int>(sipRes), sipType_wxBorder);
2938 }
2939 }
2940
2941 /* Raise an exception if the arguments couldn't be parsed. */
2942 sipNoMethod(sipParseErr, sipName_Treebook, sipName_GetDefaultBorder, doc_wxTreebook_GetDefaultBorder);
2943
2944 return SIP_NULLPTR;
2945 }
2946
2947
2948 PyDoc_STRVAR(doc_wxTreebook_GetDefaultBorderForControl, "GetDefaultBorderForControl(self) -> Border");
2949
2950 extern "C" {static PyObject *meth_wxTreebook_GetDefaultBorderForControl(PyObject *, PyObject *);}
meth_wxTreebook_GetDefaultBorderForControl(PyObject * sipSelf,PyObject * sipArgs)2951 static PyObject *meth_wxTreebook_GetDefaultBorderForControl(PyObject *sipSelf, PyObject *sipArgs)
2952 {
2953 PyObject *sipParseErr = SIP_NULLPTR;
2954 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2955
2956 {
2957 const sipwxTreebook *sipCpp;
2958
2959 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTreebook, &sipCpp))
2960 {
2961 ::wxBorder sipRes;
2962
2963 PyErr_Clear();
2964
2965 Py_BEGIN_ALLOW_THREADS
2966 sipRes = sipCpp->sipProtectVirt_GetDefaultBorderForControl(sipSelfWasArg);
2967 Py_END_ALLOW_THREADS
2968
2969 if (PyErr_Occurred())
2970 return 0;
2971
2972 return sipConvertFromEnum(static_cast<int>(sipRes), sipType_wxBorder);
2973 }
2974 }
2975
2976 /* Raise an exception if the arguments couldn't be parsed. */
2977 sipNoMethod(sipParseErr, sipName_Treebook, sipName_GetDefaultBorderForControl, doc_wxTreebook_GetDefaultBorderForControl);
2978
2979 return SIP_NULLPTR;
2980 }
2981
2982
2983 PyDoc_STRVAR(doc_wxTreebook_DoFreeze, "DoFreeze(self)");
2984
2985 extern "C" {static PyObject *meth_wxTreebook_DoFreeze(PyObject *, PyObject *);}
meth_wxTreebook_DoFreeze(PyObject * sipSelf,PyObject * sipArgs)2986 static PyObject *meth_wxTreebook_DoFreeze(PyObject *sipSelf, PyObject *sipArgs)
2987 {
2988 PyObject *sipParseErr = SIP_NULLPTR;
2989 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2990
2991 {
2992 sipwxTreebook *sipCpp;
2993
2994 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTreebook, &sipCpp))
2995 {
2996 PyErr_Clear();
2997
2998 Py_BEGIN_ALLOW_THREADS
2999 sipCpp->sipProtectVirt_DoFreeze(sipSelfWasArg);
3000 Py_END_ALLOW_THREADS
3001
3002 if (PyErr_Occurred())
3003 return 0;
3004
3005 Py_INCREF(Py_None);
3006 return Py_None;
3007 }
3008 }
3009
3010 /* Raise an exception if the arguments couldn't be parsed. */
3011 sipNoMethod(sipParseErr, sipName_Treebook, sipName_DoFreeze, doc_wxTreebook_DoFreeze);
3012
3013 return SIP_NULLPTR;
3014 }
3015
3016
3017 PyDoc_STRVAR(doc_wxTreebook_DoThaw, "DoThaw(self)");
3018
3019 extern "C" {static PyObject *meth_wxTreebook_DoThaw(PyObject *, PyObject *);}
meth_wxTreebook_DoThaw(PyObject * sipSelf,PyObject * sipArgs)3020 static PyObject *meth_wxTreebook_DoThaw(PyObject *sipSelf, PyObject *sipArgs)
3021 {
3022 PyObject *sipParseErr = SIP_NULLPTR;
3023 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
3024
3025 {
3026 sipwxTreebook *sipCpp;
3027
3028 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTreebook, &sipCpp))
3029 {
3030 PyErr_Clear();
3031
3032 Py_BEGIN_ALLOW_THREADS
3033 sipCpp->sipProtectVirt_DoThaw(sipSelfWasArg);
3034 Py_END_ALLOW_THREADS
3035
3036 if (PyErr_Occurred())
3037 return 0;
3038
3039 Py_INCREF(Py_None);
3040 return Py_None;
3041 }
3042 }
3043
3044 /* Raise an exception if the arguments couldn't be parsed. */
3045 sipNoMethod(sipParseErr, sipName_Treebook, sipName_DoThaw, doc_wxTreebook_DoThaw);
3046
3047 return SIP_NULLPTR;
3048 }
3049
3050
3051 PyDoc_STRVAR(doc_wxTreebook_HasTransparentBackground, "HasTransparentBackground(self) -> bool");
3052
3053 extern "C" {static PyObject *meth_wxTreebook_HasTransparentBackground(PyObject *, PyObject *);}
meth_wxTreebook_HasTransparentBackground(PyObject * sipSelf,PyObject * sipArgs)3054 static PyObject *meth_wxTreebook_HasTransparentBackground(PyObject *sipSelf, PyObject *sipArgs)
3055 {
3056 PyObject *sipParseErr = SIP_NULLPTR;
3057 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
3058
3059 {
3060 sipwxTreebook *sipCpp;
3061
3062 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTreebook, &sipCpp))
3063 {
3064 bool sipRes;
3065
3066 PyErr_Clear();
3067
3068 Py_BEGIN_ALLOW_THREADS
3069 sipRes = sipCpp->sipProtectVirt_HasTransparentBackground(sipSelfWasArg);
3070 Py_END_ALLOW_THREADS
3071
3072 if (PyErr_Occurred())
3073 return 0;
3074
3075 return PyBool_FromLong(sipRes);
3076 }
3077 }
3078
3079 /* Raise an exception if the arguments couldn't be parsed. */
3080 sipNoMethod(sipParseErr, sipName_Treebook, sipName_HasTransparentBackground, doc_wxTreebook_HasTransparentBackground);
3081
3082 return SIP_NULLPTR;
3083 }
3084
3085
3086 PyDoc_STRVAR(doc_wxTreebook_TryBefore, "TryBefore(self, event: Event) -> bool");
3087
3088 extern "C" {static PyObject *meth_wxTreebook_TryBefore(PyObject *, PyObject *, PyObject *);}
meth_wxTreebook_TryBefore(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)3089 static PyObject *meth_wxTreebook_TryBefore(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
3090 {
3091 PyObject *sipParseErr = SIP_NULLPTR;
3092 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
3093
3094 {
3095 ::wxEvent* event;
3096 sipwxTreebook *sipCpp;
3097
3098 static const char *sipKwdList[] = {
3099 sipName_event,
3100 };
3101
3102 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxTreebook, &sipCpp, sipType_wxEvent, &event))
3103 {
3104 bool sipRes;
3105
3106 PyErr_Clear();
3107
3108 Py_BEGIN_ALLOW_THREADS
3109 sipRes = sipCpp->sipProtectVirt_TryBefore(sipSelfWasArg,*event);
3110 Py_END_ALLOW_THREADS
3111
3112 if (PyErr_Occurred())
3113 return 0;
3114
3115 return PyBool_FromLong(sipRes);
3116 }
3117 }
3118
3119 /* Raise an exception if the arguments couldn't be parsed. */
3120 sipNoMethod(sipParseErr, sipName_Treebook, sipName_TryBefore, doc_wxTreebook_TryBefore);
3121
3122 return SIP_NULLPTR;
3123 }
3124
3125
3126 PyDoc_STRVAR(doc_wxTreebook_TryAfter, "TryAfter(self, event: Event) -> bool");
3127
3128 extern "C" {static PyObject *meth_wxTreebook_TryAfter(PyObject *, PyObject *, PyObject *);}
meth_wxTreebook_TryAfter(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)3129 static PyObject *meth_wxTreebook_TryAfter(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
3130 {
3131 PyObject *sipParseErr = SIP_NULLPTR;
3132 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
3133
3134 {
3135 ::wxEvent* event;
3136 sipwxTreebook *sipCpp;
3137
3138 static const char *sipKwdList[] = {
3139 sipName_event,
3140 };
3141
3142 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxTreebook, &sipCpp, sipType_wxEvent, &event))
3143 {
3144 bool sipRes;
3145
3146 PyErr_Clear();
3147
3148 Py_BEGIN_ALLOW_THREADS
3149 sipRes = sipCpp->sipProtectVirt_TryAfter(sipSelfWasArg,*event);
3150 Py_END_ALLOW_THREADS
3151
3152 if (PyErr_Occurred())
3153 return 0;
3154
3155 return PyBool_FromLong(sipRes);
3156 }
3157 }
3158
3159 /* Raise an exception if the arguments couldn't be parsed. */
3160 sipNoMethod(sipParseErr, sipName_Treebook, sipName_TryAfter, doc_wxTreebook_TryAfter);
3161
3162 return SIP_NULLPTR;
3163 }
3164
3165
3166 PyDoc_STRVAR(doc_wxTreebook_GetClassDefaultAttributes, "GetClassDefaultAttributes(variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes");
3167
3168 extern "C" {static PyObject *meth_wxTreebook_GetClassDefaultAttributes(PyObject *, PyObject *, PyObject *);}
meth_wxTreebook_GetClassDefaultAttributes(PyObject *,PyObject * sipArgs,PyObject * sipKwds)3169 static PyObject *meth_wxTreebook_GetClassDefaultAttributes(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
3170 {
3171 PyObject *sipParseErr = SIP_NULLPTR;
3172
3173 {
3174 ::wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL;
3175
3176 static const char *sipKwdList[] = {
3177 sipName_variant,
3178 };
3179
3180 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "|E", sipType_wxWindowVariant, &variant))
3181 {
3182 ::wxVisualAttributes*sipRes;
3183
3184 if (!wxPyCheckForApp()) return NULL;
3185
3186 PyErr_Clear();
3187
3188 Py_BEGIN_ALLOW_THREADS
3189 sipRes = new ::wxVisualAttributes( ::wxTreebook::GetClassDefaultAttributes(variant));
3190 Py_END_ALLOW_THREADS
3191
3192 if (PyErr_Occurred())
3193 return 0;
3194
3195 return sipConvertFromNewType(sipRes,sipType_wxVisualAttributes,SIP_NULLPTR);
3196 }
3197 }
3198
3199 /* Raise an exception if the arguments couldn't be parsed. */
3200 sipNoMethod(sipParseErr, sipName_Treebook, sipName_GetClassDefaultAttributes, SIP_NULLPTR);
3201
3202 return SIP_NULLPTR;
3203 }
3204
3205
3206 PyDoc_STRVAR(doc_wxTreebook_GetPageImage, "GetPageImage(self, nPage: int) -> int");
3207
3208 extern "C" {static PyObject *meth_wxTreebook_GetPageImage(PyObject *, PyObject *, PyObject *);}
meth_wxTreebook_GetPageImage(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)3209 static PyObject *meth_wxTreebook_GetPageImage(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
3210 {
3211 PyObject *sipParseErr = SIP_NULLPTR;
3212 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
3213
3214 {
3215 size_t nPage;
3216 const ::wxTreebook *sipCpp;
3217
3218 static const char *sipKwdList[] = {
3219 sipName_nPage,
3220 };
3221
3222 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B=", &sipSelf, sipType_wxTreebook, &sipCpp, &nPage))
3223 {
3224 int sipRes;
3225
3226 PyErr_Clear();
3227
3228 Py_BEGIN_ALLOW_THREADS
3229 sipRes = (sipSelfWasArg ? sipCpp-> ::wxTreebook::GetPageImage(nPage) : sipCpp->GetPageImage(nPage));
3230 Py_END_ALLOW_THREADS
3231
3232 if (PyErr_Occurred())
3233 return 0;
3234
3235 return SIPLong_FromLong(sipRes);
3236 }
3237 }
3238
3239 /* Raise an exception if the arguments couldn't be parsed. */
3240 sipNoMethod(sipParseErr, sipName_Treebook, sipName_GetPageImage, doc_wxTreebook_GetPageImage);
3241
3242 return SIP_NULLPTR;
3243 }
3244
3245
3246 PyDoc_STRVAR(doc_wxTreebook_SetPageImage, "SetPageImage(self, page: int, image: int) -> bool");
3247
3248 extern "C" {static PyObject *meth_wxTreebook_SetPageImage(PyObject *, PyObject *, PyObject *);}
meth_wxTreebook_SetPageImage(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)3249 static PyObject *meth_wxTreebook_SetPageImage(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
3250 {
3251 PyObject *sipParseErr = SIP_NULLPTR;
3252 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
3253
3254 {
3255 size_t page;
3256 int image;
3257 ::wxTreebook *sipCpp;
3258
3259 static const char *sipKwdList[] = {
3260 sipName_page,
3261 sipName_image,
3262 };
3263
3264 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B=i", &sipSelf, sipType_wxTreebook, &sipCpp, &page, &image))
3265 {
3266 bool sipRes;
3267
3268 PyErr_Clear();
3269
3270 Py_BEGIN_ALLOW_THREADS
3271 sipRes = (sipSelfWasArg ? sipCpp-> ::wxTreebook::SetPageImage(page,image) : sipCpp->SetPageImage(page,image));
3272 Py_END_ALLOW_THREADS
3273
3274 if (PyErr_Occurred())
3275 return 0;
3276
3277 return PyBool_FromLong(sipRes);
3278 }
3279 }
3280
3281 /* Raise an exception if the arguments couldn't be parsed. */
3282 sipNoMethod(sipParseErr, sipName_Treebook, sipName_SetPageImage, doc_wxTreebook_SetPageImage);
3283
3284 return SIP_NULLPTR;
3285 }
3286
3287
3288 PyDoc_STRVAR(doc_wxTreebook_GetPageText, "GetPageText(self, nPage: int) -> object");
3289
3290 extern "C" {static PyObject *meth_wxTreebook_GetPageText(PyObject *, PyObject *, PyObject *);}
meth_wxTreebook_GetPageText(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)3291 static PyObject *meth_wxTreebook_GetPageText(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
3292 {
3293 PyObject *sipParseErr = SIP_NULLPTR;
3294 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
3295
3296 {
3297 size_t nPage;
3298 const ::wxTreebook *sipCpp;
3299
3300 static const char *sipKwdList[] = {
3301 sipName_nPage,
3302 };
3303
3304 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B=", &sipSelf, sipType_wxTreebook, &sipCpp, &nPage))
3305 {
3306 ::wxString*sipRes;
3307
3308 PyErr_Clear();
3309
3310 Py_BEGIN_ALLOW_THREADS
3311 sipRes = new ::wxString((sipSelfWasArg ? sipCpp-> ::wxTreebook::GetPageText(nPage) : sipCpp->GetPageText(nPage)));
3312 Py_END_ALLOW_THREADS
3313
3314 if (PyErr_Occurred())
3315 return 0;
3316
3317 return sipConvertFromNewType(sipRes,sipType_wxString,SIP_NULLPTR);
3318 }
3319 }
3320
3321 /* Raise an exception if the arguments couldn't be parsed. */
3322 sipNoMethod(sipParseErr, sipName_Treebook, sipName_GetPageText, doc_wxTreebook_GetPageText);
3323
3324 return SIP_NULLPTR;
3325 }
3326
3327
3328 PyDoc_STRVAR(doc_wxTreebook_SetPageText, "SetPageText(self, page: int, text: object) -> bool");
3329
3330 extern "C" {static PyObject *meth_wxTreebook_SetPageText(PyObject *, PyObject *, PyObject *);}
meth_wxTreebook_SetPageText(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)3331 static PyObject *meth_wxTreebook_SetPageText(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
3332 {
3333 PyObject *sipParseErr = SIP_NULLPTR;
3334 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
3335
3336 {
3337 size_t page;
3338 const ::wxString* text;
3339 int textState = 0;
3340 ::wxTreebook *sipCpp;
3341
3342 static const char *sipKwdList[] = {
3343 sipName_page,
3344 sipName_text,
3345 };
3346
3347 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B=J1", &sipSelf, sipType_wxTreebook, &sipCpp, &page, sipType_wxString,&text, &textState))
3348 {
3349 bool sipRes;
3350
3351 PyErr_Clear();
3352
3353 Py_BEGIN_ALLOW_THREADS
3354 sipRes = (sipSelfWasArg ? sipCpp-> ::wxTreebook::SetPageText(page,*text) : sipCpp->SetPageText(page,*text));
3355 Py_END_ALLOW_THREADS
3356 sipReleaseType(const_cast< ::wxString *>(text),sipType_wxString,textState);
3357
3358 if (PyErr_Occurred())
3359 return 0;
3360
3361 return PyBool_FromLong(sipRes);
3362 }
3363 }
3364
3365 /* Raise an exception if the arguments couldn't be parsed. */
3366 sipNoMethod(sipParseErr, sipName_Treebook, sipName_SetPageText, doc_wxTreebook_SetPageText);
3367
3368 return SIP_NULLPTR;
3369 }
3370
3371
3372 PyDoc_STRVAR(doc_wxTreebook_SetSelection, "SetSelection(self, page: int) -> int");
3373
3374 extern "C" {static PyObject *meth_wxTreebook_SetSelection(PyObject *, PyObject *, PyObject *);}
meth_wxTreebook_SetSelection(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)3375 static PyObject *meth_wxTreebook_SetSelection(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
3376 {
3377 PyObject *sipParseErr = SIP_NULLPTR;
3378 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
3379
3380 {
3381 size_t page;
3382 ::wxTreebook *sipCpp;
3383
3384 static const char *sipKwdList[] = {
3385 sipName_page,
3386 };
3387
3388 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B=", &sipSelf, sipType_wxTreebook, &sipCpp, &page))
3389 {
3390 int sipRes;
3391
3392 PyErr_Clear();
3393
3394 Py_BEGIN_ALLOW_THREADS
3395 sipRes = (sipSelfWasArg ? sipCpp-> ::wxTreebook::SetSelection(page) : sipCpp->SetSelection(page));
3396 Py_END_ALLOW_THREADS
3397
3398 if (PyErr_Occurred())
3399 return 0;
3400
3401 return SIPLong_FromLong(sipRes);
3402 }
3403 }
3404
3405 /* Raise an exception if the arguments couldn't be parsed. */
3406 sipNoMethod(sipParseErr, sipName_Treebook, sipName_SetSelection, doc_wxTreebook_SetSelection);
3407
3408 return SIP_NULLPTR;
3409 }
3410
3411
3412 PyDoc_STRVAR(doc_wxTreebook_ChangeSelection, "ChangeSelection(self, page: int) -> int");
3413
3414 extern "C" {static PyObject *meth_wxTreebook_ChangeSelection(PyObject *, PyObject *, PyObject *);}
meth_wxTreebook_ChangeSelection(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)3415 static PyObject *meth_wxTreebook_ChangeSelection(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
3416 {
3417 PyObject *sipParseErr = SIP_NULLPTR;
3418 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
3419
3420 {
3421 size_t page;
3422 ::wxTreebook *sipCpp;
3423
3424 static const char *sipKwdList[] = {
3425 sipName_page,
3426 };
3427
3428 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B=", &sipSelf, sipType_wxTreebook, &sipCpp, &page))
3429 {
3430 int sipRes;
3431
3432 PyErr_Clear();
3433
3434 Py_BEGIN_ALLOW_THREADS
3435 sipRes = (sipSelfWasArg ? sipCpp-> ::wxTreebook::ChangeSelection(page) : sipCpp->ChangeSelection(page));
3436 Py_END_ALLOW_THREADS
3437
3438 if (PyErr_Occurred())
3439 return 0;
3440
3441 return SIPLong_FromLong(sipRes);
3442 }
3443 }
3444
3445 /* Raise an exception if the arguments couldn't be parsed. */
3446 sipNoMethod(sipParseErr, sipName_Treebook, sipName_ChangeSelection, doc_wxTreebook_ChangeSelection);
3447
3448 return SIP_NULLPTR;
3449 }
3450
3451
3452 PyDoc_STRVAR(doc_wxTreebook_HitTest, "HitTest(self, pt: Point) -> Tuple[int, int]");
3453
3454 extern "C" {static PyObject *meth_wxTreebook_HitTest(PyObject *, PyObject *, PyObject *);}
meth_wxTreebook_HitTest(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)3455 static PyObject *meth_wxTreebook_HitTest(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
3456 {
3457 PyObject *sipParseErr = SIP_NULLPTR;
3458 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
3459
3460 {
3461 const ::wxPoint* pt;
3462 int ptState = 0;
3463 long flags;
3464 const ::wxTreebook *sipCpp;
3465
3466 static const char *sipKwdList[] = {
3467 sipName_pt,
3468 };
3469
3470 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxTreebook, &sipCpp, sipType_wxPoint, &pt, &ptState))
3471 {
3472 int sipRes;
3473
3474 PyErr_Clear();
3475
3476 Py_BEGIN_ALLOW_THREADS
3477 sipRes = (sipSelfWasArg ? sipCpp-> ::wxTreebook::HitTest(*pt,&flags) : sipCpp->HitTest(*pt,&flags));
3478 Py_END_ALLOW_THREADS
3479 sipReleaseType(const_cast< ::wxPoint *>(pt),sipType_wxPoint,ptState);
3480
3481 if (PyErr_Occurred())
3482 return 0;
3483
3484 return sipBuildResult(0,"(il)",sipRes,flags);
3485 }
3486 }
3487
3488 /* Raise an exception if the arguments couldn't be parsed. */
3489 sipNoMethod(sipParseErr, sipName_Treebook, sipName_HitTest, doc_wxTreebook_HitTest);
3490
3491 return SIP_NULLPTR;
3492 }
3493
3494
3495 PyDoc_STRVAR(doc_wxTreebook_DeleteAllPages, "DeleteAllPages(self) -> bool");
3496
3497 extern "C" {static PyObject *meth_wxTreebook_DeleteAllPages(PyObject *, PyObject *);}
meth_wxTreebook_DeleteAllPages(PyObject * sipSelf,PyObject * sipArgs)3498 static PyObject *meth_wxTreebook_DeleteAllPages(PyObject *sipSelf, PyObject *sipArgs)
3499 {
3500 PyObject *sipParseErr = SIP_NULLPTR;
3501 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
3502
3503 {
3504 ::wxTreebook *sipCpp;
3505
3506 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTreebook, &sipCpp))
3507 {
3508 bool sipRes;
3509
3510 PyErr_Clear();
3511
3512 Py_BEGIN_ALLOW_THREADS
3513 sipRes = (sipSelfWasArg ? sipCpp-> ::wxTreebook::DeleteAllPages() : sipCpp->DeleteAllPages());
3514 Py_END_ALLOW_THREADS
3515
3516 if (PyErr_Occurred())
3517 return 0;
3518
3519 return PyBool_FromLong(sipRes);
3520 }
3521 }
3522
3523 /* Raise an exception if the arguments couldn't be parsed. */
3524 sipNoMethod(sipParseErr, sipName_Treebook, sipName_DeleteAllPages, doc_wxTreebook_DeleteAllPages);
3525
3526 return SIP_NULLPTR;
3527 }
3528
3529
3530 PyDoc_STRVAR(doc_wxTreebook_GetTreeCtrl, "GetTreeCtrl() -> TreeCtrl\n"
3531 "\n"
3532 "Returns the tree control used for selecting pages.");
3533
3534 extern "C" {static PyObject *meth_wxTreebook_GetTreeCtrl(PyObject *, PyObject *);}
meth_wxTreebook_GetTreeCtrl(PyObject * sipSelf,PyObject * sipArgs)3535 static PyObject *meth_wxTreebook_GetTreeCtrl(PyObject *sipSelf, PyObject *sipArgs)
3536 {
3537 PyObject *sipParseErr = SIP_NULLPTR;
3538
3539 {
3540 ::wxTreebook *sipCpp;
3541
3542 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxTreebook, &sipCpp))
3543 {
3544 ::wxTreeCtrl*sipRes = 0;
3545 int sipIsErr = 0;
3546
3547 PyErr_Clear();
3548 Py_BEGIN_ALLOW_THREADS
3549 sipRes = _wxTreebook_GetTreeCtrl(sipCpp);
3550 Py_END_ALLOW_THREADS
3551 if (PyErr_Occurred()) sipIsErr = 1;
3552
3553 if (sipIsErr)
3554 return 0;
3555
3556 return sipConvertFromType(sipRes,sipType_wxTreeCtrl,SIP_NULLPTR);
3557 }
3558 }
3559
3560 /* Raise an exception if the arguments couldn't be parsed. */
3561 sipNoMethod(sipParseErr, sipName_Treebook, sipName_GetTreeCtrl, SIP_NULLPTR);
3562
3563 return SIP_NULLPTR;
3564 }
3565
3566
3567 /* Cast a pointer to a type somewhere in its inheritance hierarchy. */
3568 extern "C" {static void *cast_wxTreebook(void *, const sipTypeDef *);}
cast_wxTreebook(void * sipCppV,const sipTypeDef * targetType)3569 static void *cast_wxTreebook(void *sipCppV, const sipTypeDef *targetType)
3570 {
3571 ::wxTreebook *sipCpp = reinterpret_cast< ::wxTreebook *>(sipCppV);
3572
3573 if (targetType == sipType_wxBookCtrlBase)
3574 return static_cast< ::wxBookCtrlBase *>(sipCpp);
3575
3576 if (targetType == sipType_wxControl)
3577 return static_cast< ::wxControl *>(sipCpp);
3578
3579 if (targetType == sipType_wxWindow)
3580 return static_cast< ::wxWindow *>(sipCpp);
3581
3582 if (targetType == sipType_wxWindowBase)
3583 return static_cast< ::wxWindowBase *>(sipCpp);
3584
3585 if (targetType == sipType_wxEvtHandler)
3586 return static_cast< ::wxEvtHandler *>(sipCpp);
3587
3588 if (targetType == sipType_wxObject)
3589 return static_cast< ::wxObject *>(sipCpp);
3590
3591 if (targetType == sipType_wxTrackable)
3592 return static_cast< ::wxTrackable *>(sipCpp);
3593
3594 if (targetType == sipType_wxWithImages)
3595 return static_cast< ::wxWithImages *>(sipCpp);
3596
3597 return sipCppV;
3598 }
3599
3600
3601 /* Call the instance's destructor. */
3602 extern "C" {static void release_wxTreebook(void *, int);}
release_wxTreebook(void * sipCppV,int sipState)3603 static void release_wxTreebook(void *sipCppV, int sipState)
3604 {
3605 Py_BEGIN_ALLOW_THREADS
3606
3607 if (sipState & SIP_DERIVED_CLASS)
3608 delete reinterpret_cast<sipwxTreebook *>(sipCppV);
3609 else
3610 delete reinterpret_cast< ::wxTreebook *>(sipCppV);
3611
3612 Py_END_ALLOW_THREADS
3613 }
3614
3615
3616 extern "C" {static void dealloc_wxTreebook(sipSimpleWrapper *);}
dealloc_wxTreebook(sipSimpleWrapper * sipSelf)3617 static void dealloc_wxTreebook(sipSimpleWrapper *sipSelf)
3618 {
3619 if (sipIsDerivedClass(sipSelf))
3620 reinterpret_cast<sipwxTreebook *>(sipGetAddress(sipSelf))->sipPySelf = SIP_NULLPTR;
3621
3622 if (sipIsOwnedByPython(sipSelf))
3623 {
3624 release_wxTreebook(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
3625 }
3626 }
3627
3628
3629 extern "C" {static void *init_type_wxTreebook(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
init_type_wxTreebook(sipSimpleWrapper * sipSelf,PyObject * sipArgs,PyObject * sipKwds,PyObject ** sipUnused,PyObject ** sipOwner,PyObject ** sipParseErr)3630 static void *init_type_wxTreebook(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
3631 {
3632 sipwxTreebook *sipCpp = SIP_NULLPTR;
3633
3634 {
3635 if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, ""))
3636 {
3637
3638 if (!wxPyCheckForApp()) return NULL;
3639
3640 PyErr_Clear();
3641
3642 Py_BEGIN_ALLOW_THREADS
3643 sipCpp = new sipwxTreebook();
3644 Py_END_ALLOW_THREADS
3645
3646 if (PyErr_Occurred())
3647 {
3648 delete sipCpp;
3649 return SIP_NULLPTR;
3650 }
3651
3652 sipCpp->sipPySelf = sipSelf;
3653
3654 return sipCpp;
3655 }
3656 }
3657
3658 {
3659 ::wxWindow* parent;
3660 ::wxWindowID id = wxID_ANY;
3661 const ::wxPoint& posdef = wxDefaultPosition;
3662 const ::wxPoint* pos = &posdef;
3663 int posState = 0;
3664 const ::wxSize& sizedef = wxDefaultSize;
3665 const ::wxSize* size = &sizedef;
3666 int sizeState = 0;
3667 long style = wxBK_DEFAULT;
3668 const ::wxString& namedef = wxEmptyString;
3669 const ::wxString* name = &namedef;
3670 int nameState = 0;
3671
3672 static const char *sipKwdList[] = {
3673 sipName_parent,
3674 sipName_id,
3675 sipName_pos,
3676 sipName_size,
3677 sipName_style,
3678 sipName_name,
3679 };
3680
3681 if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "JH|iJ1J1lJ1", sipType_wxWindow, &parent, sipOwner, &id, sipType_wxPoint, &pos, &posState, sipType_wxSize, &size, &sizeState, &style, sipType_wxString,&name, &nameState))
3682 {
3683
3684 if (!wxPyCheckForApp()) return NULL;
3685
3686 PyErr_Clear();
3687
3688 Py_BEGIN_ALLOW_THREADS
3689 sipCpp = new sipwxTreebook(parent,id,*pos,*size,style,*name);
3690 Py_END_ALLOW_THREADS
3691 sipReleaseType(const_cast< ::wxPoint *>(pos),sipType_wxPoint,posState);
3692 sipReleaseType(const_cast< ::wxSize *>(size),sipType_wxSize,sizeState);
3693 sipReleaseType(const_cast< ::wxString *>(name),sipType_wxString,nameState);
3694
3695 if (PyErr_Occurred())
3696 {
3697 delete sipCpp;
3698 return SIP_NULLPTR;
3699 }
3700
3701 sipCpp->sipPySelf = sipSelf;
3702
3703 return sipCpp;
3704 }
3705 }
3706
3707 return SIP_NULLPTR;
3708 }
3709
3710
3711 /* Define this type's super-types. */
3712 static sipEncodedTypeDef supers_wxTreebook[] = {{37, 255, 1}};
3713
3714
3715 static PyMethodDef methods_wxTreebook[] = {
3716 {SIP_MLNAME_CAST(sipName_AcceptsFocus), meth_wxTreebook_AcceptsFocus, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTreebook_AcceptsFocus)},
3717 {SIP_MLNAME_CAST(sipName_AcceptsFocusFromKeyboard), meth_wxTreebook_AcceptsFocusFromKeyboard, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTreebook_AcceptsFocusFromKeyboard)},
3718 {SIP_MLNAME_CAST(sipName_AcceptsFocusRecursively), meth_wxTreebook_AcceptsFocusRecursively, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTreebook_AcceptsFocusRecursively)},
3719 {SIP_MLNAME_CAST(sipName_AddChild), SIP_MLMETH_CAST(meth_wxTreebook_AddChild), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTreebook_AddChild)},
3720 {SIP_MLNAME_CAST(sipName_AddPage), SIP_MLMETH_CAST(meth_wxTreebook_AddPage), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTreebook_AddPage)},
3721 {SIP_MLNAME_CAST(sipName_AddSubPage), SIP_MLMETH_CAST(meth_wxTreebook_AddSubPage), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTreebook_AddSubPage)},
3722 {SIP_MLNAME_CAST(sipName_ChangeSelection), SIP_MLMETH_CAST(meth_wxTreebook_ChangeSelection), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTreebook_ChangeSelection)},
3723 {SIP_MLNAME_CAST(sipName_CollapseNode), SIP_MLMETH_CAST(meth_wxTreebook_CollapseNode), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTreebook_CollapseNode)},
3724 {SIP_MLNAME_CAST(sipName_Create), SIP_MLMETH_CAST(meth_wxTreebook_Create), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTreebook_Create)},
3725 {SIP_MLNAME_CAST(sipName_DeleteAllPages), meth_wxTreebook_DeleteAllPages, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTreebook_DeleteAllPages)},
3726 {SIP_MLNAME_CAST(sipName_DeletePage), SIP_MLMETH_CAST(meth_wxTreebook_DeletePage), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTreebook_DeletePage)},
3727 {SIP_MLNAME_CAST(sipName_Destroy), meth_wxTreebook_Destroy, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTreebook_Destroy)},
3728 {SIP_MLNAME_CAST(sipName_DoEnable), SIP_MLMETH_CAST(meth_wxTreebook_DoEnable), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTreebook_DoEnable)},
3729 {SIP_MLNAME_CAST(sipName_DoFreeze), meth_wxTreebook_DoFreeze, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTreebook_DoFreeze)},
3730 {SIP_MLNAME_CAST(sipName_DoGetBestClientSize), meth_wxTreebook_DoGetBestClientSize, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTreebook_DoGetBestClientSize)},
3731 {SIP_MLNAME_CAST(sipName_DoGetBestSize), meth_wxTreebook_DoGetBestSize, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTreebook_DoGetBestSize)},
3732 {SIP_MLNAME_CAST(sipName_DoGetBorderSize), meth_wxTreebook_DoGetBorderSize, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTreebook_DoGetBorderSize)},
3733 {SIP_MLNAME_CAST(sipName_DoGetClientSize), SIP_MLMETH_CAST(meth_wxTreebook_DoGetClientSize), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTreebook_DoGetClientSize)},
3734 {SIP_MLNAME_CAST(sipName_DoGetPosition), SIP_MLMETH_CAST(meth_wxTreebook_DoGetPosition), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTreebook_DoGetPosition)},
3735 {SIP_MLNAME_CAST(sipName_DoGetSize), SIP_MLMETH_CAST(meth_wxTreebook_DoGetSize), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTreebook_DoGetSize)},
3736 {SIP_MLNAME_CAST(sipName_DoMoveWindow), SIP_MLMETH_CAST(meth_wxTreebook_DoMoveWindow), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTreebook_DoMoveWindow)},
3737 {SIP_MLNAME_CAST(sipName_DoSetClientSize), SIP_MLMETH_CAST(meth_wxTreebook_DoSetClientSize), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTreebook_DoSetClientSize)},
3738 {SIP_MLNAME_CAST(sipName_DoSetSize), SIP_MLMETH_CAST(meth_wxTreebook_DoSetSize), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTreebook_DoSetSize)},
3739 {SIP_MLNAME_CAST(sipName_DoSetSizeHints), SIP_MLMETH_CAST(meth_wxTreebook_DoSetSizeHints), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTreebook_DoSetSizeHints)},
3740 {SIP_MLNAME_CAST(sipName_DoSetWindowVariant), SIP_MLMETH_CAST(meth_wxTreebook_DoSetWindowVariant), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTreebook_DoSetWindowVariant)},
3741 {SIP_MLNAME_CAST(sipName_DoThaw), meth_wxTreebook_DoThaw, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTreebook_DoThaw)},
3742 {SIP_MLNAME_CAST(sipName_ExpandNode), SIP_MLMETH_CAST(meth_wxTreebook_ExpandNode), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTreebook_ExpandNode)},
3743 {SIP_MLNAME_CAST(sipName_GetClassDefaultAttributes), SIP_MLMETH_CAST(meth_wxTreebook_GetClassDefaultAttributes), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTreebook_GetClassDefaultAttributes)},
3744 {SIP_MLNAME_CAST(sipName_GetClientAreaOrigin), meth_wxTreebook_GetClientAreaOrigin, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTreebook_GetClientAreaOrigin)},
3745 {SIP_MLNAME_CAST(sipName_GetDefaultBorder), meth_wxTreebook_GetDefaultBorder, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTreebook_GetDefaultBorder)},
3746 {SIP_MLNAME_CAST(sipName_GetDefaultBorderForControl), meth_wxTreebook_GetDefaultBorderForControl, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTreebook_GetDefaultBorderForControl)},
3747 {SIP_MLNAME_CAST(sipName_GetMainWindowOfCompositeControl), meth_wxTreebook_GetMainWindowOfCompositeControl, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTreebook_GetMainWindowOfCompositeControl)},
3748 {SIP_MLNAME_CAST(sipName_GetPageImage), SIP_MLMETH_CAST(meth_wxTreebook_GetPageImage), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTreebook_GetPageImage)},
3749 {SIP_MLNAME_CAST(sipName_GetPageParent), SIP_MLMETH_CAST(meth_wxTreebook_GetPageParent), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTreebook_GetPageParent)},
3750 {SIP_MLNAME_CAST(sipName_GetPageText), SIP_MLMETH_CAST(meth_wxTreebook_GetPageText), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTreebook_GetPageText)},
3751 {SIP_MLNAME_CAST(sipName_GetSelection), meth_wxTreebook_GetSelection, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTreebook_GetSelection)},
3752 {SIP_MLNAME_CAST(sipName_GetTreeCtrl), meth_wxTreebook_GetTreeCtrl, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTreebook_GetTreeCtrl)},
3753 {SIP_MLNAME_CAST(sipName_GetValidator), meth_wxTreebook_GetValidator, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTreebook_GetValidator)},
3754 {SIP_MLNAME_CAST(sipName_HasTransparentBackground), meth_wxTreebook_HasTransparentBackground, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTreebook_HasTransparentBackground)},
3755 {SIP_MLNAME_CAST(sipName_HitTest), SIP_MLMETH_CAST(meth_wxTreebook_HitTest), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTreebook_HitTest)},
3756 {SIP_MLNAME_CAST(sipName_InformFirstDirection), SIP_MLMETH_CAST(meth_wxTreebook_InformFirstDirection), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTreebook_InformFirstDirection)},
3757 {SIP_MLNAME_CAST(sipName_InheritAttributes), meth_wxTreebook_InheritAttributes, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTreebook_InheritAttributes)},
3758 {SIP_MLNAME_CAST(sipName_InitDialog), meth_wxTreebook_InitDialog, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTreebook_InitDialog)},
3759 {SIP_MLNAME_CAST(sipName_InsertPage), SIP_MLMETH_CAST(meth_wxTreebook_InsertPage), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTreebook_InsertPage)},
3760 {SIP_MLNAME_CAST(sipName_InsertSubPage), SIP_MLMETH_CAST(meth_wxTreebook_InsertSubPage), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTreebook_InsertSubPage)},
3761 {SIP_MLNAME_CAST(sipName_IsNodeExpanded), SIP_MLMETH_CAST(meth_wxTreebook_IsNodeExpanded), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTreebook_IsNodeExpanded)},
3762 {SIP_MLNAME_CAST(sipName_OnInternalIdle), meth_wxTreebook_OnInternalIdle, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTreebook_OnInternalIdle)},
3763 {SIP_MLNAME_CAST(sipName_ProcessEvent), SIP_MLMETH_CAST(meth_wxTreebook_ProcessEvent), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTreebook_ProcessEvent)},
3764 {SIP_MLNAME_CAST(sipName_RemoveChild), SIP_MLMETH_CAST(meth_wxTreebook_RemoveChild), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTreebook_RemoveChild)},
3765 {SIP_MLNAME_CAST(sipName_SendDestroyEvent), meth_wxTreebook_SendDestroyEvent, METH_VARARGS, SIP_NULLPTR},
3766 {SIP_MLNAME_CAST(sipName_SetCanFocus), SIP_MLMETH_CAST(meth_wxTreebook_SetCanFocus), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTreebook_SetCanFocus)},
3767 {SIP_MLNAME_CAST(sipName_SetPageImage), SIP_MLMETH_CAST(meth_wxTreebook_SetPageImage), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTreebook_SetPageImage)},
3768 {SIP_MLNAME_CAST(sipName_SetPageText), SIP_MLMETH_CAST(meth_wxTreebook_SetPageText), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTreebook_SetPageText)},
3769 {SIP_MLNAME_CAST(sipName_SetSelection), SIP_MLMETH_CAST(meth_wxTreebook_SetSelection), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTreebook_SetSelection)},
3770 {SIP_MLNAME_CAST(sipName_SetValidator), SIP_MLMETH_CAST(meth_wxTreebook_SetValidator), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTreebook_SetValidator)},
3771 {SIP_MLNAME_CAST(sipName_ShouldInheritColours), meth_wxTreebook_ShouldInheritColours, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTreebook_ShouldInheritColours)},
3772 {SIP_MLNAME_CAST(sipName_TransferDataFromWindow), meth_wxTreebook_TransferDataFromWindow, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTreebook_TransferDataFromWindow)},
3773 {SIP_MLNAME_CAST(sipName_TransferDataToWindow), meth_wxTreebook_TransferDataToWindow, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTreebook_TransferDataToWindow)},
3774 {SIP_MLNAME_CAST(sipName_TryAfter), SIP_MLMETH_CAST(meth_wxTreebook_TryAfter), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTreebook_TryAfter)},
3775 {SIP_MLNAME_CAST(sipName_TryBefore), SIP_MLMETH_CAST(meth_wxTreebook_TryBefore), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxTreebook_TryBefore)},
3776 {SIP_MLNAME_CAST(sipName_Validate), meth_wxTreebook_Validate, METH_VARARGS, SIP_MLDOC_CAST(doc_wxTreebook_Validate)}
3777 };
3778
3779 sipVariableDef variables_wxTreebook[] = {
3780 {PropertyVariable, sipName_TreeCtrl, &methods_wxTreebook[36], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
3781 {PropertyVariable, sipName_Selection, &methods_wxTreebook[35], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
3782 };
3783
3784 PyDoc_STRVAR(doc_wxTreebook, "Treebook()\n"
3785 "Treebook(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=BK_DEFAULT, name=EmptyString)\n"
3786 "\n"
3787 "This class is an extension of the wxNotebook class that allows a tree\n"
3788 "structured set of pages to be shown in a control.");
3789
3790
3791 sipClassTypeDef sipTypeDef__core_wxTreebook = {
3792 {
3793 -1,
3794 SIP_NULLPTR,
3795 SIP_NULLPTR,
3796 SIP_TYPE_SCC|SIP_TYPE_CLASS,
3797 sipNameNr_wxTreebook,
3798 {SIP_NULLPTR},
3799 SIP_NULLPTR
3800 },
3801 {
3802 sipNameNr_Treebook,
3803 {0, 0, 1},
3804 61, methods_wxTreebook,
3805 0, SIP_NULLPTR,
3806 2, variables_wxTreebook,
3807 {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
3808 },
3809 doc_wxTreebook,
3810 -1,
3811 -1,
3812 supers_wxTreebook,
3813 SIP_NULLPTR,
3814 init_type_wxTreebook,
3815 SIP_NULLPTR,
3816 SIP_NULLPTR,
3817 #if PY_MAJOR_VERSION >= 3
3818 SIP_NULLPTR,
3819 SIP_NULLPTR,
3820 #else
3821 SIP_NULLPTR,
3822 SIP_NULLPTR,
3823 SIP_NULLPTR,
3824 SIP_NULLPTR,
3825 #endif
3826 dealloc_wxTreebook,
3827 SIP_NULLPTR,
3828 SIP_NULLPTR,
3829 SIP_NULLPTR,
3830 release_wxTreebook,
3831 cast_wxTreebook,
3832 SIP_NULLPTR,
3833 SIP_NULLPTR,
3834 SIP_NULLPTR,
3835 SIP_NULLPTR,
3836 SIP_NULLPTR,
3837 SIP_NULLPTR
3838 };
3839