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