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