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/listctrl.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/listctrl.h>
19         #include <wx/window.h>
20         #include <wx/event.h>
21         #include <wx/colour.h>
22         #include <wx/font.h>
23         #include <wx/listctrl.h>
24         #include <wx/imaglist.h>
25         #include <wx/gdicmn.h>
26         #include <wx/textctrl.h>
27     #include <wx/setup.h>
28     #include <wxPython/wxpy_api.h>
29         #include <wx/dc.h>
30         #include <wx/event.h>
31         #include <wx/event.h>
32         #include <wx/event.h>
33         #include <wx/cursor.h>
34         #include <wx/caret.h>
35         #include <wx/layout.h>
36         #include <wx/sizer.h>
37         #include <wx/dnd.h>
38         #include <wx/access.h>
39         #include <wx/accel.h>
40         #include <wx/menu.h>
41         #include <wx/tooltip.h>
42         #include <wx/event.h>
43         #include <wx/event.h>
44         #include <wx/event.h>
45         #include <wx/palette.h>
46         #include <wx/region.h>
47 
48         #include <wx/eventfilter.h>
49         #include <wx/object.h>
50         #include <wx/object.h>
51         #include <wx/object.h>
wxPyListCtrl_SortItems(wxIntPtr item1,wxIntPtr item2,wxIntPtr funcPtr)52         static int wxCALLBACK wxPyListCtrl_SortItems(wxIntPtr item1, wxIntPtr item2, wxIntPtr funcPtr)
53         {
54             int retval = 0;
55             PyObject* func = (PyObject*)funcPtr;
56             wxPyThreadBlocker blocker;
57 
58         #if SIZEOF_LONG >= SIZEOF_VOID_P
59             PyObject* args = Py_BuildValue("(ll)", item1, item2);
60         #else
61             PyObject* args = Py_BuildValue("(LL)", item1, item2);
62         #endif
63 
64             PyObject* result = PyEval_CallObject(func, args);
65             Py_DECREF(args);
66             if (result) {
67                 retval = wxPyInt_AsLong(result);
68                 Py_DECREF(result);
69             }
70             return retval;
71         }
_wxListCtrl_GetColumn(wxListCtrl * self,int col)72     wxListItem* _wxListCtrl_GetColumn(wxListCtrl* self, int col)
73     {
74         wxListItem item;
75         item.SetMask( wxLIST_MASK_STATE |
76                       wxLIST_MASK_TEXT  |
77                       wxLIST_MASK_IMAGE |
78                       wxLIST_MASK_DATA  |
79                       wxLIST_SET_ITEM   |
80                       wxLIST_MASK_WIDTH |
81                       wxLIST_MASK_FORMAT
82                       );
83         if (self->GetColumn(col, item))
84             return new wxListItem(item);
85         else
86             return NULL;
87     }
_wxListCtrl_GetColumnIndexFromOrder(const wxListCtrl * self,int pos)88     int _wxListCtrl_GetColumnIndexFromOrder(const wxListCtrl* self, int pos)
89     {
90         #ifdef wxHAS_LISTCTRL_COLUMN_ORDER
91             return self->GetColumnIndexFromOrder(pos);
92         #else
93             wxPyRaiseNotImplemented();
94             return 0;
95         #endif
96     }
_wxListCtrl_GetColumnOrder(const wxListCtrl * self,int col)97     int _wxListCtrl_GetColumnOrder(const wxListCtrl* self, int col)
98     {
99         #ifdef wxHAS_LISTCTRL_COLUMN_ORDER
100             return self->GetColumnOrder(col);
101         #else
102             wxPyRaiseNotImplemented();
103             return 0;
104         #endif
105     }
_wxListCtrl_GetColumnsOrder(const wxListCtrl * self)106     wxArrayInt* _wxListCtrl_GetColumnsOrder(const wxListCtrl* self)
107     {
108         #ifdef wxHAS_LISTCTRL_COLUMN_ORDER
109             return new wxArrayInt(self->GetColumnsOrder());
110         #else
111             wxPyRaiseNotImplemented();
112             return new wxArrayInt();
113         #endif
114     }
_wxListCtrl_GetItem(wxListCtrl * self,int itemIdx,int col)115     wxListItem* _wxListCtrl_GetItem(wxListCtrl* self, int itemIdx, int col)
116     {
117         wxListItem* info = new wxListItem;
118         info->m_itemId = itemIdx;
119         info->m_col = col;
120         info->m_mask = 0xFFFF;
121         info->m_stateMask = 0xFFFF;
122         self->GetItem(*info);
123         return info;
124     }
_wxListCtrl_GetItemPosition(wxListCtrl * self,long item)125     wxPoint* _wxListCtrl_GetItemPosition(wxListCtrl* self, long item)
126     {
127         wxPoint* pos = new wxPoint;
128         self->GetItemPosition(item, *pos);
129         return pos;
130     }
_wxListCtrl_GetItemRect(wxListCtrl * self,long item,int code)131     wxRect* _wxListCtrl_GetItemRect(wxListCtrl* self, long item, int code)
132     {
133         wxRect* rect = new wxRect;
134         self->GetItemRect(item, *rect, code);
135         return rect;
136     }
_wxListCtrl_SetColumnsOrder(wxListCtrl * self,const wxArrayInt * orders)137     bool _wxListCtrl_SetColumnsOrder(wxListCtrl* self, const wxArrayInt *orders)
138     {
139         #ifdef wxHAS_LISTCTRL_COLUMN_ORDER
140             return self->SetColumnsOrder(*orders);
141         #else
142             wxPyRaiseNotImplemented();
143             return false;
144         #endif
145     }
_wxListCtrl_SortItems(wxListCtrl * self,PyObject * fnSortCallBack)146     bool _wxListCtrl_SortItems(wxListCtrl* self, PyObject* fnSortCallBack)
147     {
148         if (!PyCallable_Check(fnSortCallBack))
149             return false;
150         return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems,
151                                (wxIntPtr)fnSortCallBack);
152     }
_wxListCtrl_HitTestSubItem(wxListCtrl * self,const wxPoint * point)153     PyObject* _wxListCtrl_HitTestSubItem(wxListCtrl* self, const wxPoint* point)
154     {
155         long item, subitem;
156         int flags;
157         item = self->HitTest(*point, flags, &subitem);
158         wxPyThreadBlocker blocker;
159         PyObject* rv = PyTuple_New(3);
160         PyTuple_SetItem(rv, 0, wxPyInt_FromLong(item));
161         PyTuple_SetItem(rv, 1, wxPyInt_FromLong(flags));
162         PyTuple_SetItem(rv, 2, wxPyInt_FromLong(subitem));
163         return rv;
164     }
_wxListCtrl_HasColumnOrderSupport(wxListCtrl * self)165     bool _wxListCtrl_HasColumnOrderSupport(wxListCtrl* self)
166     {
167         #ifdef wxHAS_LISTCTRL_COLUMN_ORDER
168             return true;
169         #else
170             return false;
171         #endif
172     }
_wxListCtrl_GetMainWindow(wxListCtrl * self)173     wxWindow* _wxListCtrl_GetMainWindow(wxListCtrl* self)
174     {
175         #if defined(__WXMSW__) || defined(__WXMAC__)
176             return self;
177         #else
178             return (wxWindow*)self->m_mainWin;
179         #endif
180     }
181 
182 
183 class sipwxListCtrl : public  ::wxListCtrl
184 {
185 public:
186     sipwxListCtrl();
187     sipwxListCtrl( ::wxWindow*, ::wxWindowID,const  ::wxPoint&,const  ::wxSize&,long,const  ::wxValidator&,const  ::wxString&);
188     virtual ~sipwxListCtrl();
189 
190     /*
191      * There is a public method for every protected method visible from
192      * this class.
193      */
194     void sipProtect_SendDestroyEvent();
195     bool sipProtectVirt_ProcessEvent(bool, ::wxEvent&);
196     void sipProtectVirt_DoEnable(bool,bool);
197     void sipProtectVirt_DoGetPosition(bool,int*,int*) const;
198     void sipProtectVirt_DoGetSize(bool,int*,int*) const;
199     void sipProtectVirt_DoGetClientSize(bool,int*,int*) const;
200      ::wxSize sipProtectVirt_DoGetBestSize(bool) const;
201      ::wxSize sipProtectVirt_DoGetBestClientSize(bool) const;
202     void sipProtectVirt_DoSetSize(bool,int,int,int,int,int);
203     void sipProtectVirt_DoSetClientSize(bool,int,int);
204     void sipProtectVirt_DoSetSizeHints(bool,int,int,int,int,int,int);
205      ::wxSize sipProtectVirt_DoGetBorderSize(bool) const;
206     void sipProtectVirt_DoMoveWindow(bool,int,int,int,int);
207     void sipProtectVirt_DoSetWindowVariant(bool, ::wxWindowVariant);
208      ::wxBorder sipProtectVirt_GetDefaultBorder(bool) const;
209      ::wxBorder sipProtectVirt_GetDefaultBorderForControl(bool) const;
210     void sipProtectVirt_DoFreeze(bool);
211     void sipProtectVirt_DoThaw(bool);
212     bool sipProtectVirt_HasTransparentBackground(bool);
213     bool sipProtectVirt_TryBefore(bool, ::wxEvent&);
214     bool sipProtectVirt_TryAfter(bool, ::wxEvent&);
215      ::wxListItemAttr* sipProtectVirt_OnGetItemAttr(bool,long) const;
216     int sipProtectVirt_OnGetItemColumnImage(bool,long,long) const;
217     int sipProtectVirt_OnGetItemImage(bool,long) const;
218      ::wxString sipProtectVirt_OnGetItemText(bool,long,long) const;
219 
220     /*
221      * There is a protected method for every virtual method visible from
222      * this class.
223      */
224 protected:
225      ::wxString OnGetItemText(long,long) const SIP_OVERRIDE;
226     int OnGetItemImage(long) const SIP_OVERRIDE;
227     int OnGetItemColumnImage(long,long) const SIP_OVERRIDE;
228      ::wxListItemAttr* OnGetItemAttr(long) const SIP_OVERRIDE;
229      ::wxSize DoGetBestClientSize() const SIP_OVERRIDE;
230      ::wxSize DoGetBestSize() const SIP_OVERRIDE;
231     void DoThaw() SIP_OVERRIDE;
232     void DoFreeze() SIP_OVERRIDE;
233      ::wxBorder GetDefaultBorderForControl() const SIP_OVERRIDE;
234      ::wxBorder GetDefaultBorder() const SIP_OVERRIDE;
235     void DoSetWindowVariant( ::wxWindowVariant) SIP_OVERRIDE;
236     void DoMoveWindow(int,int,int,int) SIP_OVERRIDE;
237      ::wxSize DoGetBorderSize() const SIP_OVERRIDE;
238     void DoSetSizeHints(int,int,int,int,int,int) SIP_OVERRIDE;
239     void DoSetClientSize(int,int) SIP_OVERRIDE;
240     void DoSetSize(int,int,int,int,int) SIP_OVERRIDE;
241     void DoGetClientSize(int*,int*) const SIP_OVERRIDE;
242     void DoGetSize(int*,int*) const SIP_OVERRIDE;
243     void DoGetPosition(int*,int*) const SIP_OVERRIDE;
244     void DoEnable(bool) SIP_OVERRIDE;
245      ::wxWindow* GetMainWindowOfCompositeControl() SIP_OVERRIDE;
246     void OnInternalIdle() SIP_OVERRIDE;
247     void InitDialog() SIP_OVERRIDE;
248     void InheritAttributes() SIP_OVERRIDE;
249     bool Destroy() SIP_OVERRIDE;
250     bool Validate() SIP_OVERRIDE;
251     bool TransferDataToWindow() SIP_OVERRIDE;
252     bool TransferDataFromWindow() SIP_OVERRIDE;
253     void SetValidator(const  ::wxValidator&) SIP_OVERRIDE;
254      ::wxValidator* GetValidator() SIP_OVERRIDE;
255     bool ShouldInheritColours() const SIP_OVERRIDE;
256     bool HasTransparentBackground() SIP_OVERRIDE;
257      ::wxPoint GetClientAreaOrigin() const SIP_OVERRIDE;
258     bool InformFirstDirection(int,int,int) SIP_OVERRIDE;
259     void SetCanFocus(bool) SIP_OVERRIDE;
260     bool AcceptsFocusRecursively() const SIP_OVERRIDE;
261     bool AcceptsFocusFromKeyboard() const SIP_OVERRIDE;
262     bool AcceptsFocus() const SIP_OVERRIDE;
263     bool TryAfter( ::wxEvent&) SIP_OVERRIDE;
264     bool TryBefore( ::wxEvent&) SIP_OVERRIDE;
265     bool ProcessEvent( ::wxEvent&) SIP_OVERRIDE;
266     void AddChild( ::wxWindowBase*) SIP_OVERRIDE;
267     void RemoveChild( ::wxWindowBase*) SIP_OVERRIDE;
268 
269 public:
270     sipSimpleWrapper *sipPySelf;
271 
272 private:
273     sipwxListCtrl(const sipwxListCtrl &);
274     sipwxListCtrl &operator = (const sipwxListCtrl &);
275 
276     char sipPyMethods[43];
277 };
278 
sipwxListCtrl()279 sipwxListCtrl::sipwxListCtrl():  ::wxListCtrl(), sipPySelf(SIP_NULLPTR)
280 {
281     memset(sipPyMethods, 0, sizeof (sipPyMethods));
282 }
283 
sipwxListCtrl(::wxWindow * parent,::wxWindowID id,const::wxPoint & pos,const::wxSize & size,long style,const::wxValidator & validator,const::wxString & name)284 sipwxListCtrl::sipwxListCtrl( ::wxWindow*parent, ::wxWindowID id,const  ::wxPoint& pos,const  ::wxSize& size,long style,const  ::wxValidator& validator,const  ::wxString& name):  ::wxListCtrl(parent,id,pos,size,style,validator,name), sipPySelf(SIP_NULLPTR)
285 {
286     memset(sipPyMethods, 0, sizeof (sipPyMethods));
287 }
288 
~sipwxListCtrl()289 sipwxListCtrl::~sipwxListCtrl()
290 {
291     sipInstanceDestroyedEx(&sipPySelf);
292 }
293 
OnGetItemText(long item,long column) const294  ::wxString sipwxListCtrl::OnGetItemText(long item,long column) const
295 {
296     sip_gilstate_t sipGILState;
297     PyObject *sipMeth;
298 
299     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,SIP_NULLPTR,sipName_OnGetItemText);
300 
301     if (!sipMeth)
302         return  ::wxListCtrl::OnGetItemText(item,column);
303 
304     extern  ::wxString sipVH__core_161(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, long,long);
305 
306     return sipVH__core_161(sipGILState, 0, sipPySelf, sipMeth, item, column);
307 }
308 
OnGetItemImage(long item) const309 int sipwxListCtrl::OnGetItemImage(long item) const
310 {
311     sip_gilstate_t sipGILState;
312     PyObject *sipMeth;
313 
314     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,SIP_NULLPTR,sipName_OnGetItemImage);
315 
316     if (!sipMeth)
317         return  ::wxListCtrl::OnGetItemImage(item);
318 
319     extern int sipVH__core_160(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, long);
320 
321     return sipVH__core_160(sipGILState, 0, sipPySelf, sipMeth, item);
322 }
323 
OnGetItemColumnImage(long item,long column) const324 int sipwxListCtrl::OnGetItemColumnImage(long item,long column) const
325 {
326     sip_gilstate_t sipGILState;
327     PyObject *sipMeth;
328 
329     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[2]),sipPySelf,SIP_NULLPTR,sipName_OnGetItemColumnImage);
330 
331     if (!sipMeth)
332         return  ::wxListCtrl::OnGetItemColumnImage(item,column);
333 
334     extern int sipVH__core_159(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, long,long);
335 
336     return sipVH__core_159(sipGILState, 0, sipPySelf, sipMeth, item, column);
337 }
338 
OnGetItemAttr(long item) const339  ::wxListItemAttr* sipwxListCtrl::OnGetItemAttr(long item) const
340 {
341     sip_gilstate_t sipGILState;
342     PyObject *sipMeth;
343 
344     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,SIP_NULLPTR,sipName_OnGetItemAttr);
345 
346     if (!sipMeth)
347         return  ::wxListCtrl::OnGetItemAttr(item);
348 
349     extern  ::wxListItemAttr* sipVH__core_158(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, long);
350 
351     return sipVH__core_158(sipGILState, 0, sipPySelf, sipMeth, item);
352 }
353 
DoGetBestClientSize() const354  ::wxSize sipwxListCtrl::DoGetBestClientSize() const
355 {
356     sip_gilstate_t sipGILState;
357     PyObject *sipMeth;
358 
359     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[4]),sipPySelf,SIP_NULLPTR,sipName_DoGetBestClientSize);
360 
361     if (!sipMeth)
362         return  ::wxListCtrl::DoGetBestClientSize();
363 
364     extern  ::wxSize sipVH__core_93(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
365 
366     return sipVH__core_93(sipGILState, 0, sipPySelf, sipMeth);
367 }
368 
DoGetBestSize() const369  ::wxSize sipwxListCtrl::DoGetBestSize() const
370 {
371     sip_gilstate_t sipGILState;
372     PyObject *sipMeth;
373 
374     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[5]),sipPySelf,SIP_NULLPTR,sipName_DoGetBestSize);
375 
376     if (!sipMeth)
377         return  ::wxListCtrl::DoGetBestSize();
378 
379     extern  ::wxSize sipVH__core_93(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
380 
381     return sipVH__core_93(sipGILState, 0, sipPySelf, sipMeth);
382 }
383 
DoThaw()384 void sipwxListCtrl::DoThaw()
385 {
386     sip_gilstate_t sipGILState;
387     PyObject *sipMeth;
388 
389     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,SIP_NULLPTR,sipName_DoThaw);
390 
391     if (!sipMeth)
392     {
393          ::wxListCtrl::DoThaw();
394         return;
395     }
396 
397     extern void sipVH__core_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
398 
399     sipVH__core_45(sipGILState, 0, sipPySelf, sipMeth);
400 }
401 
DoFreeze()402 void sipwxListCtrl::DoFreeze()
403 {
404     sip_gilstate_t sipGILState;
405     PyObject *sipMeth;
406 
407     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,SIP_NULLPTR,sipName_DoFreeze);
408 
409     if (!sipMeth)
410     {
411          ::wxListCtrl::DoFreeze();
412         return;
413     }
414 
415     extern void sipVH__core_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
416 
417     sipVH__core_45(sipGILState, 0, sipPySelf, sipMeth);
418 }
419 
GetDefaultBorderForControl() const420  ::wxBorder sipwxListCtrl::GetDefaultBorderForControl() const
421 {
422     sip_gilstate_t sipGILState;
423     PyObject *sipMeth;
424 
425     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[8]),sipPySelf,SIP_NULLPTR,sipName_GetDefaultBorderForControl);
426 
427     if (!sipMeth)
428         return  ::wxListCtrl::GetDefaultBorderForControl();
429 
430     extern  ::wxBorder sipVH__core_122(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
431 
432     return sipVH__core_122(sipGILState, 0, sipPySelf, sipMeth);
433 }
434 
GetDefaultBorder() const435  ::wxBorder sipwxListCtrl::GetDefaultBorder() const
436 {
437     sip_gilstate_t sipGILState;
438     PyObject *sipMeth;
439 
440     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[9]),sipPySelf,SIP_NULLPTR,sipName_GetDefaultBorder);
441 
442     if (!sipMeth)
443         return  ::wxListCtrl::GetDefaultBorder();
444 
445     extern  ::wxBorder sipVH__core_122(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
446 
447     return sipVH__core_122(sipGILState, 0, sipPySelf, sipMeth);
448 }
449 
DoSetWindowVariant(::wxWindowVariant variant)450 void sipwxListCtrl::DoSetWindowVariant( ::wxWindowVariant variant)
451 {
452     sip_gilstate_t sipGILState;
453     PyObject *sipMeth;
454 
455     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,SIP_NULLPTR,sipName_DoSetWindowVariant);
456 
457     if (!sipMeth)
458     {
459          ::wxListCtrl::DoSetWindowVariant(variant);
460         return;
461     }
462 
463     extern void sipVH__core_121(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::wxWindowVariant);
464 
465     sipVH__core_121(sipGILState, 0, sipPySelf, sipMeth, variant);
466 }
467 
DoMoveWindow(int x,int y,int width,int height)468 void sipwxListCtrl::DoMoveWindow(int x,int y,int width,int height)
469 {
470     sip_gilstate_t sipGILState;
471     PyObject *sipMeth;
472 
473     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,SIP_NULLPTR,sipName_DoMoveWindow);
474 
475     if (!sipMeth)
476     {
477          ::wxListCtrl::DoMoveWindow(x,y,width,height);
478         return;
479     }
480 
481     extern void sipVH__core_120(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,int,int);
482 
483     sipVH__core_120(sipGILState, 0, sipPySelf, sipMeth, x, y, width, height);
484 }
485 
DoGetBorderSize() const486  ::wxSize sipwxListCtrl::DoGetBorderSize() const
487 {
488     sip_gilstate_t sipGILState;
489     PyObject *sipMeth;
490 
491     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[12]),sipPySelf,SIP_NULLPTR,sipName_DoGetBorderSize);
492 
493     if (!sipMeth)
494         return  ::wxListCtrl::DoGetBorderSize();
495 
496     extern  ::wxSize sipVH__core_93(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
497 
498     return sipVH__core_93(sipGILState, 0, sipPySelf, sipMeth);
499 }
500 
DoSetSizeHints(int minW,int minH,int maxW,int maxH,int incW,int incH)501 void sipwxListCtrl::DoSetSizeHints(int minW,int minH,int maxW,int maxH,int incW,int incH)
502 {
503     sip_gilstate_t sipGILState;
504     PyObject *sipMeth;
505 
506     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,SIP_NULLPTR,sipName_DoSetSizeHints);
507 
508     if (!sipMeth)
509     {
510          ::wxListCtrl::DoSetSizeHints(minW,minH,maxW,maxH,incW,incH);
511         return;
512     }
513 
514     extern void sipVH__core_119(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,int,int,int,int);
515 
516     sipVH__core_119(sipGILState, 0, sipPySelf, sipMeth, minW, minH, maxW, maxH, incW, incH);
517 }
518 
DoSetClientSize(int width,int height)519 void sipwxListCtrl::DoSetClientSize(int width,int height)
520 {
521     sip_gilstate_t sipGILState;
522     PyObject *sipMeth;
523 
524     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,SIP_NULLPTR,sipName_DoSetClientSize);
525 
526     if (!sipMeth)
527     {
528          ::wxListCtrl::DoSetClientSize(width,height);
529         return;
530     }
531 
532     extern void sipVH__core_118(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int);
533 
534     sipVH__core_118(sipGILState, 0, sipPySelf, sipMeth, width, height);
535 }
536 
DoSetSize(int x,int y,int width,int height,int sizeFlags)537 void sipwxListCtrl::DoSetSize(int x,int y,int width,int height,int sizeFlags)
538 {
539     sip_gilstate_t sipGILState;
540     PyObject *sipMeth;
541 
542     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,SIP_NULLPTR,sipName_DoSetSize);
543 
544     if (!sipMeth)
545     {
546          ::wxListCtrl::DoSetSize(x,y,width,height,sizeFlags);
547         return;
548     }
549 
550     extern void sipVH__core_117(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,int,int,int);
551 
552     sipVH__core_117(sipGILState, 0, sipPySelf, sipMeth, x, y, width, height, sizeFlags);
553 }
554 
DoGetClientSize(int * width,int * height) const555 void sipwxListCtrl::DoGetClientSize(int*width,int*height) const
556 {
557     sip_gilstate_t sipGILState;
558     PyObject *sipMeth;
559 
560     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[16]),sipPySelf,SIP_NULLPTR,sipName_DoGetClientSize);
561 
562     if (!sipMeth)
563     {
564          ::wxListCtrl::DoGetClientSize(width,height);
565         return;
566     }
567 
568     extern void sipVH__core_116(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int*,int*);
569 
570     sipVH__core_116(sipGILState, 0, sipPySelf, sipMeth, width, height);
571 }
572 
DoGetSize(int * width,int * height) const573 void sipwxListCtrl::DoGetSize(int*width,int*height) const
574 {
575     sip_gilstate_t sipGILState;
576     PyObject *sipMeth;
577 
578     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[17]),sipPySelf,SIP_NULLPTR,sipName_DoGetSize);
579 
580     if (!sipMeth)
581     {
582          ::wxListCtrl::DoGetSize(width,height);
583         return;
584     }
585 
586     extern void sipVH__core_116(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int*,int*);
587 
588     sipVH__core_116(sipGILState, 0, sipPySelf, sipMeth, width, height);
589 }
590 
DoGetPosition(int * x,int * y) const591 void sipwxListCtrl::DoGetPosition(int*x,int*y) const
592 {
593     sip_gilstate_t sipGILState;
594     PyObject *sipMeth;
595 
596     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[18]),sipPySelf,SIP_NULLPTR,sipName_DoGetPosition);
597 
598     if (!sipMeth)
599     {
600          ::wxListCtrl::DoGetPosition(x,y);
601         return;
602     }
603 
604     extern void sipVH__core_116(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int*,int*);
605 
606     sipVH__core_116(sipGILState, 0, sipPySelf, sipMeth, x, y);
607 }
608 
DoEnable(bool enable)609 void sipwxListCtrl::DoEnable(bool enable)
610 {
611     sip_gilstate_t sipGILState;
612     PyObject *sipMeth;
613 
614     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,SIP_NULLPTR,sipName_DoEnable);
615 
616     if (!sipMeth)
617     {
618          ::wxListCtrl::DoEnable(enable);
619         return;
620     }
621 
622     extern void sipVH__core_84(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);
623 
624     sipVH__core_84(sipGILState, 0, sipPySelf, sipMeth, enable);
625 }
626 
GetMainWindowOfCompositeControl()627  ::wxWindow* sipwxListCtrl::GetMainWindowOfCompositeControl()
628 {
629     sip_gilstate_t sipGILState;
630     PyObject *sipMeth;
631 
632     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,SIP_NULLPTR,sipName_GetMainWindowOfCompositeControl);
633 
634     if (!sipMeth)
635         return  ::wxListCtrl::GetMainWindowOfCompositeControl();
636 
637     extern  ::wxWindow* sipVH__core_115(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
638 
639     return sipVH__core_115(sipGILState, 0, sipPySelf, sipMeth);
640 }
641 
OnInternalIdle()642 void sipwxListCtrl::OnInternalIdle()
643 {
644     sip_gilstate_t sipGILState;
645     PyObject *sipMeth;
646 
647     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,SIP_NULLPTR,sipName_OnInternalIdle);
648 
649     if (!sipMeth)
650     {
651          ::wxListCtrl::OnInternalIdle();
652         return;
653     }
654 
655     extern void sipVH__core_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
656 
657     sipVH__core_45(sipGILState, 0, sipPySelf, sipMeth);
658 }
659 
InitDialog()660 void sipwxListCtrl::InitDialog()
661 {
662     sip_gilstate_t sipGILState;
663     PyObject *sipMeth;
664 
665     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[22],sipPySelf,SIP_NULLPTR,sipName_InitDialog);
666 
667     if (!sipMeth)
668     {
669          ::wxListCtrl::InitDialog();
670         return;
671     }
672 
673     extern void sipVH__core_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
674 
675     sipVH__core_45(sipGILState, 0, sipPySelf, sipMeth);
676 }
677 
InheritAttributes()678 void sipwxListCtrl::InheritAttributes()
679 {
680     sip_gilstate_t sipGILState;
681     PyObject *sipMeth;
682 
683     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],sipPySelf,SIP_NULLPTR,sipName_InheritAttributes);
684 
685     if (!sipMeth)
686     {
687          ::wxListCtrl::InheritAttributes();
688         return;
689     }
690 
691     extern void sipVH__core_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
692 
693     sipVH__core_45(sipGILState, 0, sipPySelf, sipMeth);
694 }
695 
Destroy()696 bool sipwxListCtrl::Destroy()
697 {
698     sip_gilstate_t sipGILState;
699     PyObject *sipMeth;
700 
701     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[24],sipPySelf,SIP_NULLPTR,sipName_Destroy);
702 
703     if (!sipMeth)
704         return  ::wxListCtrl::Destroy();
705 
706     extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
707 
708     return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
709 }
710 
Validate()711 bool sipwxListCtrl::Validate()
712 {
713     sip_gilstate_t sipGILState;
714     PyObject *sipMeth;
715 
716     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[25],sipPySelf,SIP_NULLPTR,sipName_Validate);
717 
718     if (!sipMeth)
719         return  ::wxListCtrl::Validate();
720 
721     extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
722 
723     return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
724 }
725 
TransferDataToWindow()726 bool sipwxListCtrl::TransferDataToWindow()
727 {
728     sip_gilstate_t sipGILState;
729     PyObject *sipMeth;
730 
731     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[26],sipPySelf,SIP_NULLPTR,sipName_TransferDataToWindow);
732 
733     if (!sipMeth)
734         return  ::wxListCtrl::TransferDataToWindow();
735 
736     extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
737 
738     return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
739 }
740 
TransferDataFromWindow()741 bool sipwxListCtrl::TransferDataFromWindow()
742 {
743     sip_gilstate_t sipGILState;
744     PyObject *sipMeth;
745 
746     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[27],sipPySelf,SIP_NULLPTR,sipName_TransferDataFromWindow);
747 
748     if (!sipMeth)
749         return  ::wxListCtrl::TransferDataFromWindow();
750 
751     extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
752 
753     return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
754 }
755 
SetValidator(const::wxValidator & validator)756 void sipwxListCtrl::SetValidator(const  ::wxValidator& validator)
757 {
758     sip_gilstate_t sipGILState;
759     PyObject *sipMeth;
760 
761     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[28],sipPySelf,SIP_NULLPTR,sipName_SetValidator);
762 
763     if (!sipMeth)
764     {
765          ::wxListCtrl::SetValidator(validator);
766         return;
767     }
768 
769     extern void sipVH__core_114(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::wxValidator&);
770 
771     sipVH__core_114(sipGILState, 0, sipPySelf, sipMeth, validator);
772 }
773 
GetValidator()774  ::wxValidator* sipwxListCtrl::GetValidator()
775 {
776     sip_gilstate_t sipGILState;
777     PyObject *sipMeth;
778 
779     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[29],sipPySelf,SIP_NULLPTR,sipName_GetValidator);
780 
781     if (!sipMeth)
782         return  ::wxListCtrl::GetValidator();
783 
784     extern  ::wxValidator* sipVH__core_113(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
785 
786     return sipVH__core_113(sipGILState, 0, sipPySelf, sipMeth);
787 }
788 
ShouldInheritColours() const789 bool sipwxListCtrl::ShouldInheritColours() const
790 {
791     sip_gilstate_t sipGILState;
792     PyObject *sipMeth;
793 
794     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[30]),sipPySelf,SIP_NULLPTR,sipName_ShouldInheritColours);
795 
796     if (!sipMeth)
797         return  ::wxListCtrl::ShouldInheritColours();
798 
799     extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
800 
801     return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
802 }
803 
HasTransparentBackground()804 bool sipwxListCtrl::HasTransparentBackground()
805 {
806     sip_gilstate_t sipGILState;
807     PyObject *sipMeth;
808 
809     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[31],sipPySelf,SIP_NULLPTR,sipName_HasTransparentBackground);
810 
811     if (!sipMeth)
812         return  ::wxListCtrl::HasTransparentBackground();
813 
814     extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
815 
816     return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
817 }
818 
GetClientAreaOrigin() const819  ::wxPoint sipwxListCtrl::GetClientAreaOrigin() const
820 {
821     sip_gilstate_t sipGILState;
822     PyObject *sipMeth;
823 
824     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[32]),sipPySelf,SIP_NULLPTR,sipName_GetClientAreaOrigin);
825 
826     if (!sipMeth)
827         return  ::wxListCtrl::GetClientAreaOrigin();
828 
829     extern  ::wxPoint sipVH__core_112(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
830 
831     return sipVH__core_112(sipGILState, 0, sipPySelf, sipMeth);
832 }
833 
InformFirstDirection(int direction,int size,int availableOtherDir)834 bool sipwxListCtrl::InformFirstDirection(int direction,int size,int availableOtherDir)
835 {
836     sip_gilstate_t sipGILState;
837     PyObject *sipMeth;
838 
839     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[33],sipPySelf,SIP_NULLPTR,sipName_InformFirstDirection);
840 
841     if (!sipMeth)
842         return  ::wxListCtrl::InformFirstDirection(direction,size,availableOtherDir);
843 
844     extern bool sipVH__core_111(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,int);
845 
846     return sipVH__core_111(sipGILState, 0, sipPySelf, sipMeth, direction, size, availableOtherDir);
847 }
848 
SetCanFocus(bool canFocus)849 void sipwxListCtrl::SetCanFocus(bool canFocus)
850 {
851     sip_gilstate_t sipGILState;
852     PyObject *sipMeth;
853 
854     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[34],sipPySelf,SIP_NULLPTR,sipName_SetCanFocus);
855 
856     if (!sipMeth)
857     {
858          ::wxListCtrl::SetCanFocus(canFocus);
859         return;
860     }
861 
862     extern void sipVH__core_84(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);
863 
864     sipVH__core_84(sipGILState, 0, sipPySelf, sipMeth, canFocus);
865 }
866 
AcceptsFocusRecursively() const867 bool sipwxListCtrl::AcceptsFocusRecursively() const
868 {
869     sip_gilstate_t sipGILState;
870     PyObject *sipMeth;
871 
872     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[35]),sipPySelf,SIP_NULLPTR,sipName_AcceptsFocusRecursively);
873 
874     if (!sipMeth)
875         return  ::wxListCtrl::AcceptsFocusRecursively();
876 
877     extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
878 
879     return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
880 }
881 
AcceptsFocusFromKeyboard() const882 bool sipwxListCtrl::AcceptsFocusFromKeyboard() const
883 {
884     sip_gilstate_t sipGILState;
885     PyObject *sipMeth;
886 
887     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[36]),sipPySelf,SIP_NULLPTR,sipName_AcceptsFocusFromKeyboard);
888 
889     if (!sipMeth)
890         return  ::wxListCtrl::AcceptsFocusFromKeyboard();
891 
892     extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
893 
894     return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
895 }
896 
AcceptsFocus() const897 bool sipwxListCtrl::AcceptsFocus() const
898 {
899     sip_gilstate_t sipGILState;
900     PyObject *sipMeth;
901 
902     sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[37]),sipPySelf,SIP_NULLPTR,sipName_AcceptsFocus);
903 
904     if (!sipMeth)
905         return  ::wxListCtrl::AcceptsFocus();
906 
907     extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
908 
909     return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
910 }
911 
TryAfter(::wxEvent & event)912 bool sipwxListCtrl::TryAfter( ::wxEvent& event)
913 {
914     sip_gilstate_t sipGILState;
915     PyObject *sipMeth;
916 
917     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[38],sipPySelf,SIP_NULLPTR,sipName_TryAfter);
918 
919     if (!sipMeth)
920         return  ::wxListCtrl::TryAfter(event);
921 
922     extern bool sipVH__core_90(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::wxEvent&);
923 
924     return sipVH__core_90(sipGILState, 0, sipPySelf, sipMeth, event);
925 }
926 
TryBefore(::wxEvent & event)927 bool sipwxListCtrl::TryBefore( ::wxEvent& event)
928 {
929     sip_gilstate_t sipGILState;
930     PyObject *sipMeth;
931 
932     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[39],sipPySelf,SIP_NULLPTR,sipName_TryBefore);
933 
934     if (!sipMeth)
935         return  ::wxListCtrl::TryBefore(event);
936 
937     extern bool sipVH__core_90(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::wxEvent&);
938 
939     return sipVH__core_90(sipGILState, 0, sipPySelf, sipMeth, event);
940 }
941 
ProcessEvent(::wxEvent & event)942 bool sipwxListCtrl::ProcessEvent( ::wxEvent& event)
943 {
944     sip_gilstate_t sipGILState;
945     PyObject *sipMeth;
946 
947     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[40],sipPySelf,SIP_NULLPTR,sipName_ProcessEvent);
948 
949     if (!sipMeth)
950         return  ::wxListCtrl::ProcessEvent(event);
951 
952     extern bool sipVH__core_90(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::wxEvent&);
953 
954     return sipVH__core_90(sipGILState, 0, sipPySelf, sipMeth, event);
955 }
956 
AddChild(::wxWindowBase * child)957 void sipwxListCtrl::AddChild( ::wxWindowBase*child)
958 {
959     sip_gilstate_t sipGILState;
960     PyObject *sipMeth;
961 
962     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[41],sipPySelf,SIP_NULLPTR,sipName_AddChild);
963 
964     if (!sipMeth)
965     {
966          ::wxListCtrl::AddChild(child);
967         return;
968     }
969 
970     extern void sipVH__core_110(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::wxWindowBase*);
971 
972     sipVH__core_110(sipGILState, 0, sipPySelf, sipMeth, child);
973 }
974 
RemoveChild(::wxWindowBase * child)975 void sipwxListCtrl::RemoveChild( ::wxWindowBase*child)
976 {
977     sip_gilstate_t sipGILState;
978     PyObject *sipMeth;
979 
980     sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[42],sipPySelf,SIP_NULLPTR,sipName_RemoveChild);
981 
982     if (!sipMeth)
983     {
984          ::wxListCtrl::RemoveChild(child);
985         return;
986     }
987 
988     extern void sipVH__core_110(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::wxWindowBase*);
989 
990     sipVH__core_110(sipGILState, 0, sipPySelf, sipMeth, child);
991 }
992 
sipProtect_SendDestroyEvent()993 void sipwxListCtrl::sipProtect_SendDestroyEvent()
994 {
995      ::wxWindow::SendDestroyEvent();
996 }
997 
sipProtectVirt_ProcessEvent(bool sipSelfWasArg,::wxEvent & event)998 bool sipwxListCtrl::sipProtectVirt_ProcessEvent(bool sipSelfWasArg, ::wxEvent& event)
999 {
1000     return (sipSelfWasArg ?  ::wxListCtrl::ProcessEvent(event) : ProcessEvent(event));
1001 }
1002 
sipProtectVirt_DoEnable(bool sipSelfWasArg,bool enable)1003 void sipwxListCtrl::sipProtectVirt_DoEnable(bool sipSelfWasArg,bool enable)
1004 {
1005     (sipSelfWasArg ?  ::wxListCtrl::DoEnable(enable) : DoEnable(enable));
1006 }
1007 
sipProtectVirt_DoGetPosition(bool sipSelfWasArg,int * x,int * y) const1008 void sipwxListCtrl::sipProtectVirt_DoGetPosition(bool sipSelfWasArg,int*x,int*y) const
1009 {
1010     (sipSelfWasArg ?  ::wxListCtrl::DoGetPosition(x,y) : DoGetPosition(x,y));
1011 }
1012 
sipProtectVirt_DoGetSize(bool sipSelfWasArg,int * width,int * height) const1013 void sipwxListCtrl::sipProtectVirt_DoGetSize(bool sipSelfWasArg,int*width,int*height) const
1014 {
1015     (sipSelfWasArg ?  ::wxListCtrl::DoGetSize(width,height) : DoGetSize(width,height));
1016 }
1017 
sipProtectVirt_DoGetClientSize(bool sipSelfWasArg,int * width,int * height) const1018 void sipwxListCtrl::sipProtectVirt_DoGetClientSize(bool sipSelfWasArg,int*width,int*height) const
1019 {
1020     (sipSelfWasArg ?  ::wxListCtrl::DoGetClientSize(width,height) : DoGetClientSize(width,height));
1021 }
1022 
sipProtectVirt_DoGetBestSize(bool sipSelfWasArg) const1023  ::wxSize sipwxListCtrl::sipProtectVirt_DoGetBestSize(bool sipSelfWasArg) const
1024 {
1025     return (sipSelfWasArg ?  ::wxListCtrl::DoGetBestSize() : DoGetBestSize());
1026 }
1027 
sipProtectVirt_DoGetBestClientSize(bool sipSelfWasArg) const1028  ::wxSize sipwxListCtrl::sipProtectVirt_DoGetBestClientSize(bool sipSelfWasArg) const
1029 {
1030     return (sipSelfWasArg ?  ::wxListCtrl::DoGetBestClientSize() : DoGetBestClientSize());
1031 }
1032 
sipProtectVirt_DoSetSize(bool sipSelfWasArg,int x,int y,int width,int height,int sizeFlags)1033 void sipwxListCtrl::sipProtectVirt_DoSetSize(bool sipSelfWasArg,int x,int y,int width,int height,int sizeFlags)
1034 {
1035     (sipSelfWasArg ?  ::wxListCtrl::DoSetSize(x,y,width,height,sizeFlags) : DoSetSize(x,y,width,height,sizeFlags));
1036 }
1037 
sipProtectVirt_DoSetClientSize(bool sipSelfWasArg,int width,int height)1038 void sipwxListCtrl::sipProtectVirt_DoSetClientSize(bool sipSelfWasArg,int width,int height)
1039 {
1040     (sipSelfWasArg ?  ::wxListCtrl::DoSetClientSize(width,height) : DoSetClientSize(width,height));
1041 }
1042 
sipProtectVirt_DoSetSizeHints(bool sipSelfWasArg,int minW,int minH,int maxW,int maxH,int incW,int incH)1043 void sipwxListCtrl::sipProtectVirt_DoSetSizeHints(bool sipSelfWasArg,int minW,int minH,int maxW,int maxH,int incW,int incH)
1044 {
1045     (sipSelfWasArg ?  ::wxListCtrl::DoSetSizeHints(minW,minH,maxW,maxH,incW,incH) : DoSetSizeHints(minW,minH,maxW,maxH,incW,incH));
1046 }
1047 
sipProtectVirt_DoGetBorderSize(bool sipSelfWasArg) const1048  ::wxSize sipwxListCtrl::sipProtectVirt_DoGetBorderSize(bool sipSelfWasArg) const
1049 {
1050     return (sipSelfWasArg ?  ::wxListCtrl::DoGetBorderSize() : DoGetBorderSize());
1051 }
1052 
sipProtectVirt_DoMoveWindow(bool sipSelfWasArg,int x,int y,int width,int height)1053 void sipwxListCtrl::sipProtectVirt_DoMoveWindow(bool sipSelfWasArg,int x,int y,int width,int height)
1054 {
1055     (sipSelfWasArg ?  ::wxListCtrl::DoMoveWindow(x,y,width,height) : DoMoveWindow(x,y,width,height));
1056 }
1057 
sipProtectVirt_DoSetWindowVariant(bool sipSelfWasArg,::wxWindowVariant variant)1058 void sipwxListCtrl::sipProtectVirt_DoSetWindowVariant(bool sipSelfWasArg, ::wxWindowVariant variant)
1059 {
1060     (sipSelfWasArg ?  ::wxListCtrl::DoSetWindowVariant(variant) : DoSetWindowVariant(variant));
1061 }
1062 
sipProtectVirt_GetDefaultBorder(bool sipSelfWasArg) const1063  ::wxBorder sipwxListCtrl::sipProtectVirt_GetDefaultBorder(bool sipSelfWasArg) const
1064 {
1065     return (sipSelfWasArg ?  ::wxListCtrl::GetDefaultBorder() : GetDefaultBorder());
1066 }
1067 
sipProtectVirt_GetDefaultBorderForControl(bool sipSelfWasArg) const1068  ::wxBorder sipwxListCtrl::sipProtectVirt_GetDefaultBorderForControl(bool sipSelfWasArg) const
1069 {
1070     return (sipSelfWasArg ?  ::wxListCtrl::GetDefaultBorderForControl() : GetDefaultBorderForControl());
1071 }
1072 
sipProtectVirt_DoFreeze(bool sipSelfWasArg)1073 void sipwxListCtrl::sipProtectVirt_DoFreeze(bool sipSelfWasArg)
1074 {
1075     (sipSelfWasArg ?  ::wxListCtrl::DoFreeze() : DoFreeze());
1076 }
1077 
sipProtectVirt_DoThaw(bool sipSelfWasArg)1078 void sipwxListCtrl::sipProtectVirt_DoThaw(bool sipSelfWasArg)
1079 {
1080     (sipSelfWasArg ?  ::wxListCtrl::DoThaw() : DoThaw());
1081 }
1082 
sipProtectVirt_HasTransparentBackground(bool sipSelfWasArg)1083 bool sipwxListCtrl::sipProtectVirt_HasTransparentBackground(bool sipSelfWasArg)
1084 {
1085     return (sipSelfWasArg ?  ::wxListCtrl::HasTransparentBackground() : HasTransparentBackground());
1086 }
1087 
sipProtectVirt_TryBefore(bool sipSelfWasArg,::wxEvent & event)1088 bool sipwxListCtrl::sipProtectVirt_TryBefore(bool sipSelfWasArg, ::wxEvent& event)
1089 {
1090     return (sipSelfWasArg ?  ::wxListCtrl::TryBefore(event) : TryBefore(event));
1091 }
1092 
sipProtectVirt_TryAfter(bool sipSelfWasArg,::wxEvent & event)1093 bool sipwxListCtrl::sipProtectVirt_TryAfter(bool sipSelfWasArg, ::wxEvent& event)
1094 {
1095     return (sipSelfWasArg ?  ::wxListCtrl::TryAfter(event) : TryAfter(event));
1096 }
1097 
sipProtectVirt_OnGetItemAttr(bool sipSelfWasArg,long item) const1098  ::wxListItemAttr* sipwxListCtrl::sipProtectVirt_OnGetItemAttr(bool sipSelfWasArg,long item) const
1099 {
1100     return (sipSelfWasArg ?  ::wxListCtrl::OnGetItemAttr(item) : OnGetItemAttr(item));
1101 }
1102 
sipProtectVirt_OnGetItemColumnImage(bool sipSelfWasArg,long item,long column) const1103 int sipwxListCtrl::sipProtectVirt_OnGetItemColumnImage(bool sipSelfWasArg,long item,long column) const
1104 {
1105     return (sipSelfWasArg ?  ::wxListCtrl::OnGetItemColumnImage(item,column) : OnGetItemColumnImage(item,column));
1106 }
1107 
sipProtectVirt_OnGetItemImage(bool sipSelfWasArg,long item) const1108 int sipwxListCtrl::sipProtectVirt_OnGetItemImage(bool sipSelfWasArg,long item) const
1109 {
1110     return (sipSelfWasArg ?  ::wxListCtrl::OnGetItemImage(item) : OnGetItemImage(item));
1111 }
1112 
sipProtectVirt_OnGetItemText(bool sipSelfWasArg,long item,long column) const1113  ::wxString sipwxListCtrl::sipProtectVirt_OnGetItemText(bool sipSelfWasArg,long item,long column) const
1114 {
1115     return (sipSelfWasArg ?  ::wxListCtrl::OnGetItemText(item,column) : OnGetItemText(item,column));
1116 }
1117 
1118 
1119 PyDoc_STRVAR(doc_wxListCtrl_SendDestroyEvent, "SendDestroyEvent()\n"
1120 "\n"
1121 "Generate wxWindowDestroyEvent for this window.");
1122 
1123 extern "C" {static PyObject *meth_wxListCtrl_SendDestroyEvent(PyObject *, PyObject *);}
meth_wxListCtrl_SendDestroyEvent(PyObject * sipSelf,PyObject * sipArgs)1124 static PyObject *meth_wxListCtrl_SendDestroyEvent(PyObject *sipSelf, PyObject *sipArgs)
1125 {
1126     PyObject *sipParseErr = SIP_NULLPTR;
1127 
1128     {
1129         sipwxListCtrl *sipCpp;
1130 
1131         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxListCtrl, &sipCpp))
1132         {
1133             PyErr_Clear();
1134 
1135             Py_BEGIN_ALLOW_THREADS
1136             sipCpp->sipProtect_SendDestroyEvent();
1137             Py_END_ALLOW_THREADS
1138 
1139             if (PyErr_Occurred())
1140                 return 0;
1141 
1142             Py_INCREF(Py_None);
1143             return Py_None;
1144         }
1145     }
1146 
1147     /* Raise an exception if the arguments couldn't be parsed. */
1148     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_SendDestroyEvent, SIP_NULLPTR);
1149 
1150     return SIP_NULLPTR;
1151 }
1152 
1153 
1154 PyDoc_STRVAR(doc_wxListCtrl_AppendColumn, "AppendColumn(heading, format=LIST_FORMAT_LEFT, width=-1) -> long\n"
1155 "\n"
1156 "Adds a new column to the list control in report view mode.");
1157 
1158 extern "C" {static PyObject *meth_wxListCtrl_AppendColumn(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_AppendColumn(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1159 static PyObject *meth_wxListCtrl_AppendColumn(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1160 {
1161     PyObject *sipParseErr = SIP_NULLPTR;
1162 
1163     {
1164         const  ::wxString* heading;
1165         int headingState = 0;
1166          ::wxListColumnFormat format = wxLIST_FORMAT_LEFT;
1167         int width = -1;
1168          ::wxListCtrl *sipCpp;
1169 
1170         static const char *sipKwdList[] = {
1171             sipName_heading,
1172             sipName_format,
1173             sipName_width,
1174         };
1175 
1176         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1|Ei", &sipSelf, sipType_wxListCtrl, &sipCpp, sipType_wxString,&heading, &headingState, sipType_wxListColumnFormat, &format, &width))
1177         {
1178             long sipRes;
1179 
1180             PyErr_Clear();
1181 
1182             Py_BEGIN_ALLOW_THREADS
1183             sipRes = sipCpp->AppendColumn(*heading,format,width);
1184             Py_END_ALLOW_THREADS
1185             sipReleaseType(const_cast< ::wxString *>(heading),sipType_wxString,headingState);
1186 
1187             if (PyErr_Occurred())
1188                 return 0;
1189 
1190             return PyLong_FromLong(sipRes);
1191         }
1192     }
1193 
1194     /* Raise an exception if the arguments couldn't be parsed. */
1195     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_AppendColumn, SIP_NULLPTR);
1196 
1197     return SIP_NULLPTR;
1198 }
1199 
1200 
1201 PyDoc_STRVAR(doc_wxListCtrl_Arrange, "Arrange(flag=LIST_ALIGN_DEFAULT) -> bool\n"
1202 "\n"
1203 "Arranges the items in icon or small icon view.");
1204 
1205 extern "C" {static PyObject *meth_wxListCtrl_Arrange(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_Arrange(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1206 static PyObject *meth_wxListCtrl_Arrange(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1207 {
1208     PyObject *sipParseErr = SIP_NULLPTR;
1209 
1210     {
1211         int flag = wxLIST_ALIGN_DEFAULT;
1212          ::wxListCtrl *sipCpp;
1213 
1214         static const char *sipKwdList[] = {
1215             sipName_flag,
1216         };
1217 
1218         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B|i", &sipSelf, sipType_wxListCtrl, &sipCpp, &flag))
1219         {
1220             bool sipRes;
1221 
1222             PyErr_Clear();
1223 
1224             Py_BEGIN_ALLOW_THREADS
1225             sipRes = sipCpp->Arrange(flag);
1226             Py_END_ALLOW_THREADS
1227 
1228             if (PyErr_Occurred())
1229                 return 0;
1230 
1231             return PyBool_FromLong(sipRes);
1232         }
1233     }
1234 
1235     /* Raise an exception if the arguments couldn't be parsed. */
1236     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_Arrange, SIP_NULLPTR);
1237 
1238     return SIP_NULLPTR;
1239 }
1240 
1241 
1242 PyDoc_STRVAR(doc_wxListCtrl_AssignImageList, "AssignImageList(imageList, which)\n"
1243 "\n"
1244 "Sets the image list associated with the control and takes ownership of\n"
1245 "it (i.e.");
1246 
1247 extern "C" {static PyObject *meth_wxListCtrl_AssignImageList(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_AssignImageList(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1248 static PyObject *meth_wxListCtrl_AssignImageList(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1249 {
1250     PyObject *sipParseErr = SIP_NULLPTR;
1251 
1252     {
1253          ::wxImageList* imageList;
1254         int which;
1255          ::wxListCtrl *sipCpp;
1256 
1257         static const char *sipKwdList[] = {
1258             sipName_imageList,
1259             sipName_which,
1260         };
1261 
1262         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ:i", &sipSelf, sipType_wxListCtrl, &sipCpp, sipType_wxImageList, &imageList, &which))
1263         {
1264             PyErr_Clear();
1265 
1266             Py_BEGIN_ALLOW_THREADS
1267             sipCpp->AssignImageList(imageList,which);
1268             Py_END_ALLOW_THREADS
1269 
1270             if (PyErr_Occurred())
1271                 return 0;
1272 
1273             Py_INCREF(Py_None);
1274             return Py_None;
1275         }
1276     }
1277 
1278     /* Raise an exception if the arguments couldn't be parsed. */
1279     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_AssignImageList, SIP_NULLPTR);
1280 
1281     return SIP_NULLPTR;
1282 }
1283 
1284 
1285 PyDoc_STRVAR(doc_wxListCtrl_ClearAll, "ClearAll()\n"
1286 "\n"
1287 "Deletes all items and all columns.");
1288 
1289 extern "C" {static PyObject *meth_wxListCtrl_ClearAll(PyObject *, PyObject *);}
meth_wxListCtrl_ClearAll(PyObject * sipSelf,PyObject * sipArgs)1290 static PyObject *meth_wxListCtrl_ClearAll(PyObject *sipSelf, PyObject *sipArgs)
1291 {
1292     PyObject *sipParseErr = SIP_NULLPTR;
1293 
1294     {
1295          ::wxListCtrl *sipCpp;
1296 
1297         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxListCtrl, &sipCpp))
1298         {
1299             PyErr_Clear();
1300 
1301             Py_BEGIN_ALLOW_THREADS
1302             sipCpp->ClearAll();
1303             Py_END_ALLOW_THREADS
1304 
1305             if (PyErr_Occurred())
1306                 return 0;
1307 
1308             Py_INCREF(Py_None);
1309             return Py_None;
1310         }
1311     }
1312 
1313     /* Raise an exception if the arguments couldn't be parsed. */
1314     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_ClearAll, SIP_NULLPTR);
1315 
1316     return SIP_NULLPTR;
1317 }
1318 
1319 
1320 PyDoc_STRVAR(doc_wxListCtrl_Create, "Create(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=LC_ICON, validator=DefaultValidator, name=ListCtrlNameStr) -> bool\n"
1321 "\n"
1322 "Creates the list control.");
1323 
1324 extern "C" {static PyObject *meth_wxListCtrl_Create(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_Create(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1325 static PyObject *meth_wxListCtrl_Create(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1326 {
1327     PyObject *sipParseErr = SIP_NULLPTR;
1328 
1329     {
1330          ::wxWindow* parent;
1331          ::wxWindowID id = wxID_ANY;
1332         const  ::wxPoint& posdef = wxDefaultPosition;
1333         const  ::wxPoint* pos = &posdef;
1334         int posState = 0;
1335         const  ::wxSize& sizedef = wxDefaultSize;
1336         const  ::wxSize* size = &sizedef;
1337         int sizeState = 0;
1338         long style = wxLC_ICON;
1339         const  ::wxValidator& validatordef = wxDefaultValidator;
1340         const  ::wxValidator* validator = &validatordef;
1341         const  ::wxString& namedef = wxListCtrlNameStr;
1342         const  ::wxString* name = &namedef;
1343         int nameState = 0;
1344         sipWrapper *sipOwner = SIP_NULLPTR;
1345          ::wxListCtrl *sipCpp;
1346 
1347         static const char *sipKwdList[] = {
1348             sipName_parent,
1349             sipName_id,
1350             sipName_pos,
1351             sipName_size,
1352             sipName_style,
1353             sipName_validator,
1354             sipName_name,
1355         };
1356 
1357         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJH|iJ1J1lJ9J1", &sipSelf, sipType_wxListCtrl, &sipCpp, sipType_wxWindow, &parent, &sipOwner, &id, sipType_wxPoint, &pos, &posState, sipType_wxSize, &size, &sizeState, &style, sipType_wxValidator, &validator, sipType_wxString,&name, &nameState))
1358         {
1359             bool sipRes;
1360 
1361             PyErr_Clear();
1362 
1363             Py_BEGIN_ALLOW_THREADS
1364             sipRes = sipCpp->Create(parent,id,*pos,*size,style,*validator,*name);
1365             Py_END_ALLOW_THREADS
1366 
1367             if (sipOwner)
1368                 sipTransferTo(sipSelf, (PyObject *)sipOwner);
1369             else
1370                 sipTransferBack(sipSelf);
1371             sipReleaseType(const_cast< ::wxPoint *>(pos),sipType_wxPoint,posState);
1372             sipReleaseType(const_cast< ::wxSize *>(size),sipType_wxSize,sizeState);
1373             sipReleaseType(const_cast< ::wxString *>(name),sipType_wxString,nameState);
1374 
1375             if (PyErr_Occurred())
1376                 return 0;
1377 
1378             return PyBool_FromLong(sipRes);
1379         }
1380     }
1381 
1382     /* Raise an exception if the arguments couldn't be parsed. */
1383     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_Create, SIP_NULLPTR);
1384 
1385     return SIP_NULLPTR;
1386 }
1387 
1388 
1389 PyDoc_STRVAR(doc_wxListCtrl_DeleteAllColumns, "DeleteAllColumns() -> bool\n"
1390 "\n"
1391 "Delete all columns in the list control.");
1392 
1393 extern "C" {static PyObject *meth_wxListCtrl_DeleteAllColumns(PyObject *, PyObject *);}
meth_wxListCtrl_DeleteAllColumns(PyObject * sipSelf,PyObject * sipArgs)1394 static PyObject *meth_wxListCtrl_DeleteAllColumns(PyObject *sipSelf, PyObject *sipArgs)
1395 {
1396     PyObject *sipParseErr = SIP_NULLPTR;
1397 
1398     {
1399          ::wxListCtrl *sipCpp;
1400 
1401         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxListCtrl, &sipCpp))
1402         {
1403             bool sipRes;
1404 
1405             PyErr_Clear();
1406 
1407             Py_BEGIN_ALLOW_THREADS
1408             sipRes = sipCpp->DeleteAllColumns();
1409             Py_END_ALLOW_THREADS
1410 
1411             if (PyErr_Occurred())
1412                 return 0;
1413 
1414             return PyBool_FromLong(sipRes);
1415         }
1416     }
1417 
1418     /* Raise an exception if the arguments couldn't be parsed. */
1419     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_DeleteAllColumns, SIP_NULLPTR);
1420 
1421     return SIP_NULLPTR;
1422 }
1423 
1424 
1425 PyDoc_STRVAR(doc_wxListCtrl_DeleteAllItems, "DeleteAllItems() -> bool\n"
1426 "\n"
1427 "Deletes all items in the list control.");
1428 
1429 extern "C" {static PyObject *meth_wxListCtrl_DeleteAllItems(PyObject *, PyObject *);}
meth_wxListCtrl_DeleteAllItems(PyObject * sipSelf,PyObject * sipArgs)1430 static PyObject *meth_wxListCtrl_DeleteAllItems(PyObject *sipSelf, PyObject *sipArgs)
1431 {
1432     PyObject *sipParseErr = SIP_NULLPTR;
1433 
1434     {
1435          ::wxListCtrl *sipCpp;
1436 
1437         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxListCtrl, &sipCpp))
1438         {
1439             bool sipRes;
1440 
1441             PyErr_Clear();
1442 
1443             Py_BEGIN_ALLOW_THREADS
1444             sipRes = sipCpp->DeleteAllItems();
1445             Py_END_ALLOW_THREADS
1446 
1447             if (PyErr_Occurred())
1448                 return 0;
1449 
1450             return PyBool_FromLong(sipRes);
1451         }
1452     }
1453 
1454     /* Raise an exception if the arguments couldn't be parsed. */
1455     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_DeleteAllItems, SIP_NULLPTR);
1456 
1457     return SIP_NULLPTR;
1458 }
1459 
1460 
1461 PyDoc_STRVAR(doc_wxListCtrl_DeleteColumn, "DeleteColumn(col) -> bool\n"
1462 "\n"
1463 "Deletes a column.");
1464 
1465 extern "C" {static PyObject *meth_wxListCtrl_DeleteColumn(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_DeleteColumn(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1466 static PyObject *meth_wxListCtrl_DeleteColumn(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1467 {
1468     PyObject *sipParseErr = SIP_NULLPTR;
1469 
1470     {
1471         int col;
1472          ::wxListCtrl *sipCpp;
1473 
1474         static const char *sipKwdList[] = {
1475             sipName_col,
1476         };
1477 
1478         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi", &sipSelf, sipType_wxListCtrl, &sipCpp, &col))
1479         {
1480             bool sipRes;
1481 
1482             PyErr_Clear();
1483 
1484             Py_BEGIN_ALLOW_THREADS
1485             sipRes = sipCpp->DeleteColumn(col);
1486             Py_END_ALLOW_THREADS
1487 
1488             if (PyErr_Occurred())
1489                 return 0;
1490 
1491             return PyBool_FromLong(sipRes);
1492         }
1493     }
1494 
1495     /* Raise an exception if the arguments couldn't be parsed. */
1496     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_DeleteColumn, SIP_NULLPTR);
1497 
1498     return SIP_NULLPTR;
1499 }
1500 
1501 
1502 PyDoc_STRVAR(doc_wxListCtrl_DeleteItem, "DeleteItem(item) -> bool\n"
1503 "\n"
1504 "Deletes the specified item.");
1505 
1506 extern "C" {static PyObject *meth_wxListCtrl_DeleteItem(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_DeleteItem(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1507 static PyObject *meth_wxListCtrl_DeleteItem(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1508 {
1509     PyObject *sipParseErr = SIP_NULLPTR;
1510 
1511     {
1512         long item;
1513          ::wxListCtrl *sipCpp;
1514 
1515         static const char *sipKwdList[] = {
1516             sipName_item,
1517         };
1518 
1519         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bl", &sipSelf, sipType_wxListCtrl, &sipCpp, &item))
1520         {
1521             bool sipRes;
1522 
1523             PyErr_Clear();
1524 
1525             Py_BEGIN_ALLOW_THREADS
1526             sipRes = sipCpp->DeleteItem(item);
1527             Py_END_ALLOW_THREADS
1528 
1529             if (PyErr_Occurred())
1530                 return 0;
1531 
1532             return PyBool_FromLong(sipRes);
1533         }
1534     }
1535 
1536     /* Raise an exception if the arguments couldn't be parsed. */
1537     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_DeleteItem, SIP_NULLPTR);
1538 
1539     return SIP_NULLPTR;
1540 }
1541 
1542 
1543 PyDoc_STRVAR(doc_wxListCtrl_EditLabel, "EditLabel(item) -> TextCtrl\n"
1544 "\n"
1545 "Starts editing the label of the given item.");
1546 
1547 extern "C" {static PyObject *meth_wxListCtrl_EditLabel(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_EditLabel(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1548 static PyObject *meth_wxListCtrl_EditLabel(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1549 {
1550     PyObject *sipParseErr = SIP_NULLPTR;
1551 
1552     {
1553         long item;
1554          ::wxListCtrl *sipCpp;
1555 
1556         static const char *sipKwdList[] = {
1557             sipName_item,
1558         };
1559 
1560         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bl", &sipSelf, sipType_wxListCtrl, &sipCpp, &item))
1561         {
1562              ::wxTextCtrl*sipRes;
1563 
1564             PyErr_Clear();
1565 
1566             Py_BEGIN_ALLOW_THREADS
1567             sipRes = sipCpp->EditLabel(item);
1568             Py_END_ALLOW_THREADS
1569 
1570             if (PyErr_Occurred())
1571                 return 0;
1572 
1573             return sipConvertFromType(sipRes,sipType_wxTextCtrl,SIP_NULLPTR);
1574         }
1575     }
1576 
1577     /* Raise an exception if the arguments couldn't be parsed. */
1578     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_EditLabel, SIP_NULLPTR);
1579 
1580     return SIP_NULLPTR;
1581 }
1582 
1583 
1584 PyDoc_STRVAR(doc_wxListCtrl_EnableAlternateRowColours, "EnableAlternateRowColours(enable=True)\n"
1585 "\n"
1586 "Enable alternating row background colours (also called zebra\n"
1587 "striping).");
1588 
1589 extern "C" {static PyObject *meth_wxListCtrl_EnableAlternateRowColours(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_EnableAlternateRowColours(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1590 static PyObject *meth_wxListCtrl_EnableAlternateRowColours(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1591 {
1592     PyObject *sipParseErr = SIP_NULLPTR;
1593 
1594     {
1595         bool enable = 1;
1596          ::wxListCtrl *sipCpp;
1597 
1598         static const char *sipKwdList[] = {
1599             sipName_enable,
1600         };
1601 
1602         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B|b", &sipSelf, sipType_wxListCtrl, &sipCpp, &enable))
1603         {
1604             PyErr_Clear();
1605 
1606             Py_BEGIN_ALLOW_THREADS
1607             sipCpp->EnableAlternateRowColours(enable);
1608             Py_END_ALLOW_THREADS
1609 
1610             if (PyErr_Occurred())
1611                 return 0;
1612 
1613             Py_INCREF(Py_None);
1614             return Py_None;
1615         }
1616     }
1617 
1618     /* Raise an exception if the arguments couldn't be parsed. */
1619     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_EnableAlternateRowColours, SIP_NULLPTR);
1620 
1621     return SIP_NULLPTR;
1622 }
1623 
1624 
1625 PyDoc_STRVAR(doc_wxListCtrl_EnableBellOnNoMatch, "EnableBellOnNoMatch(on=True)\n"
1626 "\n"
1627 "Enable or disable a beep if there is no match for the currently\n"
1628 "entered text when searching for the item from keyboard.");
1629 
1630 extern "C" {static PyObject *meth_wxListCtrl_EnableBellOnNoMatch(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_EnableBellOnNoMatch(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1631 static PyObject *meth_wxListCtrl_EnableBellOnNoMatch(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1632 {
1633     PyObject *sipParseErr = SIP_NULLPTR;
1634 
1635     {
1636         bool on = 1;
1637          ::wxListCtrl *sipCpp;
1638 
1639         static const char *sipKwdList[] = {
1640             sipName_on,
1641         };
1642 
1643         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B|b", &sipSelf, sipType_wxListCtrl, &sipCpp, &on))
1644         {
1645             PyErr_Clear();
1646 
1647             Py_BEGIN_ALLOW_THREADS
1648             sipCpp->EnableBellOnNoMatch(on);
1649             Py_END_ALLOW_THREADS
1650 
1651             if (PyErr_Occurred())
1652                 return 0;
1653 
1654             Py_INCREF(Py_None);
1655             return Py_None;
1656         }
1657     }
1658 
1659     /* Raise an exception if the arguments couldn't be parsed. */
1660     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_EnableBellOnNoMatch, SIP_NULLPTR);
1661 
1662     return SIP_NULLPTR;
1663 }
1664 
1665 
1666 PyDoc_STRVAR(doc_wxListCtrl_EnsureVisible, "EnsureVisible(item) -> bool\n"
1667 "\n"
1668 "Ensures this item is visible.");
1669 
1670 extern "C" {static PyObject *meth_wxListCtrl_EnsureVisible(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_EnsureVisible(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1671 static PyObject *meth_wxListCtrl_EnsureVisible(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1672 {
1673     PyObject *sipParseErr = SIP_NULLPTR;
1674 
1675     {
1676         long item;
1677          ::wxListCtrl *sipCpp;
1678 
1679         static const char *sipKwdList[] = {
1680             sipName_item,
1681         };
1682 
1683         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bl", &sipSelf, sipType_wxListCtrl, &sipCpp, &item))
1684         {
1685             bool sipRes;
1686 
1687             PyErr_Clear();
1688 
1689             Py_BEGIN_ALLOW_THREADS
1690             sipRes = sipCpp->EnsureVisible(item);
1691             Py_END_ALLOW_THREADS
1692 
1693             if (PyErr_Occurred())
1694                 return 0;
1695 
1696             return PyBool_FromLong(sipRes);
1697         }
1698     }
1699 
1700     /* Raise an exception if the arguments couldn't be parsed. */
1701     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_EnsureVisible, SIP_NULLPTR);
1702 
1703     return SIP_NULLPTR;
1704 }
1705 
1706 
1707 PyDoc_STRVAR(doc_wxListCtrl_FindItem, "FindItem(start, str, partial=False) -> long\n"
1708 "FindItem(start, data) -> long\n"
1709 "FindItem(start, pt, direction) -> long\n"
1710 "\n"
1711 "Find an item whose label matches this string, starting from start or\n"
1712 "the beginning if start is -1.\n"
1713 "\n"
1714 "");
1715 
1716 extern "C" {static PyObject *meth_wxListCtrl_FindItem(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_FindItem(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1717 static PyObject *meth_wxListCtrl_FindItem(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1718 {
1719     PyObject *sipParseErr = SIP_NULLPTR;
1720 
1721     {
1722         long start;
1723         const  ::wxString* str;
1724         int strState = 0;
1725         bool partial = 0;
1726          ::wxListCtrl *sipCpp;
1727 
1728         static const char *sipKwdList[] = {
1729             sipName_start,
1730             sipName_str,
1731             sipName_partial,
1732         };
1733 
1734         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BlJ1|b", &sipSelf, sipType_wxListCtrl, &sipCpp, &start, sipType_wxString,&str, &strState, &partial))
1735         {
1736             long sipRes;
1737 
1738             PyErr_Clear();
1739 
1740             Py_BEGIN_ALLOW_THREADS
1741             sipRes = sipCpp->FindItem(start,*str,partial);
1742             Py_END_ALLOW_THREADS
1743             sipReleaseType(const_cast< ::wxString *>(str),sipType_wxString,strState);
1744 
1745             if (PyErr_Occurred())
1746                 return 0;
1747 
1748             return PyLong_FromLong(sipRes);
1749         }
1750     }
1751 
1752     {
1753         long start;
1754          ::wxUIntPtr* data;
1755         int dataState = 0;
1756          ::wxListCtrl *sipCpp;
1757 
1758         static const char *sipKwdList[] = {
1759             sipName_start,
1760             sipName_data,
1761         };
1762 
1763         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BlJ1", &sipSelf, sipType_wxListCtrl, &sipCpp, &start, sipType_wxUIntPtr,&data, &dataState))
1764         {
1765             long sipRes;
1766 
1767             PyErr_Clear();
1768 
1769             Py_BEGIN_ALLOW_THREADS
1770             sipRes = sipCpp->FindItem(start,*data);
1771             Py_END_ALLOW_THREADS
1772             sipReleaseType(data,sipType_wxUIntPtr,dataState);
1773 
1774             if (PyErr_Occurred())
1775                 return 0;
1776 
1777             return PyLong_FromLong(sipRes);
1778         }
1779     }
1780 
1781     {
1782         long start;
1783         const  ::wxPoint* pt;
1784         int ptState = 0;
1785         int direction;
1786          ::wxListCtrl *sipCpp;
1787 
1788         static const char *sipKwdList[] = {
1789             sipName_start,
1790             sipName_pt,
1791             sipName_direction,
1792         };
1793 
1794         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BlJ1i", &sipSelf, sipType_wxListCtrl, &sipCpp, &start, sipType_wxPoint, &pt, &ptState, &direction))
1795         {
1796             long sipRes;
1797 
1798             PyErr_Clear();
1799 
1800             Py_BEGIN_ALLOW_THREADS
1801             sipRes = sipCpp->FindItem(start,*pt,direction);
1802             Py_END_ALLOW_THREADS
1803             sipReleaseType(const_cast< ::wxPoint *>(pt),sipType_wxPoint,ptState);
1804 
1805             if (PyErr_Occurred())
1806                 return 0;
1807 
1808             return PyLong_FromLong(sipRes);
1809         }
1810     }
1811 
1812     /* Raise an exception if the arguments couldn't be parsed. */
1813     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_FindItem, SIP_NULLPTR);
1814 
1815     return SIP_NULLPTR;
1816 }
1817 
1818 
1819 PyDoc_STRVAR(doc_wxListCtrl_GetColumn, "GetColumn(col) -> ListItem\n"
1820 "\n"
1821 "Gets information about this column. See SetItem() for more\n"
1822 "information.");
1823 
1824 extern "C" {static PyObject *meth_wxListCtrl_GetColumn(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_GetColumn(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1825 static PyObject *meth_wxListCtrl_GetColumn(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1826 {
1827     PyObject *sipParseErr = SIP_NULLPTR;
1828 
1829     {
1830         int col;
1831          ::wxListCtrl *sipCpp;
1832 
1833         static const char *sipKwdList[] = {
1834             sipName_col,
1835         };
1836 
1837         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi", &sipSelf, sipType_wxListCtrl, &sipCpp, &col))
1838         {
1839              ::wxListItem*sipRes = 0;
1840             int sipIsErr = 0;
1841 
1842         PyErr_Clear();
1843         Py_BEGIN_ALLOW_THREADS
1844         sipRes = _wxListCtrl_GetColumn(sipCpp, col);
1845         Py_END_ALLOW_THREADS
1846         if (PyErr_Occurred()) sipIsErr = 1;
1847 
1848             if (sipIsErr)
1849                 return 0;
1850 
1851             return sipConvertFromNewType(sipRes,sipType_wxListItem,SIP_NULLPTR);
1852         }
1853     }
1854 
1855     /* Raise an exception if the arguments couldn't be parsed. */
1856     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_GetColumn, SIP_NULLPTR);
1857 
1858     return SIP_NULLPTR;
1859 }
1860 
1861 
1862 PyDoc_STRVAR(doc_wxListCtrl_GetColumnCount, "GetColumnCount() -> int\n"
1863 "\n"
1864 "Returns the number of columns.");
1865 
1866 extern "C" {static PyObject *meth_wxListCtrl_GetColumnCount(PyObject *, PyObject *);}
meth_wxListCtrl_GetColumnCount(PyObject * sipSelf,PyObject * sipArgs)1867 static PyObject *meth_wxListCtrl_GetColumnCount(PyObject *sipSelf, PyObject *sipArgs)
1868 {
1869     PyObject *sipParseErr = SIP_NULLPTR;
1870 
1871     {
1872         const  ::wxListCtrl *sipCpp;
1873 
1874         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxListCtrl, &sipCpp))
1875         {
1876             int sipRes;
1877 
1878             PyErr_Clear();
1879 
1880             Py_BEGIN_ALLOW_THREADS
1881             sipRes = sipCpp->GetColumnCount();
1882             Py_END_ALLOW_THREADS
1883 
1884             if (PyErr_Occurred())
1885                 return 0;
1886 
1887             return SIPLong_FromLong(sipRes);
1888         }
1889     }
1890 
1891     /* Raise an exception if the arguments couldn't be parsed. */
1892     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_GetColumnCount, SIP_NULLPTR);
1893 
1894     return SIP_NULLPTR;
1895 }
1896 
1897 
1898 PyDoc_STRVAR(doc_wxListCtrl_GetColumnIndexFromOrder, "GetColumnIndexFromOrder(pos) -> int\n"
1899 "\n"
1900 "Gets the column index from its position in visual order.");
1901 
1902 extern "C" {static PyObject *meth_wxListCtrl_GetColumnIndexFromOrder(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_GetColumnIndexFromOrder(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1903 static PyObject *meth_wxListCtrl_GetColumnIndexFromOrder(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1904 {
1905     PyObject *sipParseErr = SIP_NULLPTR;
1906 
1907     {
1908         int pos;
1909         const  ::wxListCtrl *sipCpp;
1910 
1911         static const char *sipKwdList[] = {
1912             sipName_pos,
1913         };
1914 
1915         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi", &sipSelf, sipType_wxListCtrl, &sipCpp, &pos))
1916         {
1917             int sipRes = 0;
1918             int sipIsErr = 0;
1919 
1920         PyErr_Clear();
1921         Py_BEGIN_ALLOW_THREADS
1922         sipRes = _wxListCtrl_GetColumnIndexFromOrder(sipCpp, pos);
1923         Py_END_ALLOW_THREADS
1924         if (PyErr_Occurred()) sipIsErr = 1;
1925 
1926             if (sipIsErr)
1927                 return 0;
1928 
1929             return SIPLong_FromLong(sipRes);
1930         }
1931     }
1932 
1933     /* Raise an exception if the arguments couldn't be parsed. */
1934     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_GetColumnIndexFromOrder, SIP_NULLPTR);
1935 
1936     return SIP_NULLPTR;
1937 }
1938 
1939 
1940 PyDoc_STRVAR(doc_wxListCtrl_GetColumnOrder, "GetColumnOrder(col) -> int\n"
1941 "\n"
1942 "Gets the column visual order position.");
1943 
1944 extern "C" {static PyObject *meth_wxListCtrl_GetColumnOrder(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_GetColumnOrder(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1945 static PyObject *meth_wxListCtrl_GetColumnOrder(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1946 {
1947     PyObject *sipParseErr = SIP_NULLPTR;
1948 
1949     {
1950         int col;
1951         const  ::wxListCtrl *sipCpp;
1952 
1953         static const char *sipKwdList[] = {
1954             sipName_col,
1955         };
1956 
1957         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi", &sipSelf, sipType_wxListCtrl, &sipCpp, &col))
1958         {
1959             int sipRes = 0;
1960             int sipIsErr = 0;
1961 
1962         PyErr_Clear();
1963         Py_BEGIN_ALLOW_THREADS
1964         sipRes = _wxListCtrl_GetColumnOrder(sipCpp, col);
1965         Py_END_ALLOW_THREADS
1966         if (PyErr_Occurred()) sipIsErr = 1;
1967 
1968             if (sipIsErr)
1969                 return 0;
1970 
1971             return SIPLong_FromLong(sipRes);
1972         }
1973     }
1974 
1975     /* Raise an exception if the arguments couldn't be parsed. */
1976     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_GetColumnOrder, SIP_NULLPTR);
1977 
1978     return SIP_NULLPTR;
1979 }
1980 
1981 
1982 PyDoc_STRVAR(doc_wxListCtrl_GetColumnWidth, "GetColumnWidth(col) -> int\n"
1983 "\n"
1984 "Gets the column width (report view only).");
1985 
1986 extern "C" {static PyObject *meth_wxListCtrl_GetColumnWidth(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_GetColumnWidth(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1987 static PyObject *meth_wxListCtrl_GetColumnWidth(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1988 {
1989     PyObject *sipParseErr = SIP_NULLPTR;
1990 
1991     {
1992         int col;
1993         const  ::wxListCtrl *sipCpp;
1994 
1995         static const char *sipKwdList[] = {
1996             sipName_col,
1997         };
1998 
1999         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi", &sipSelf, sipType_wxListCtrl, &sipCpp, &col))
2000         {
2001             int sipRes;
2002 
2003             PyErr_Clear();
2004 
2005             Py_BEGIN_ALLOW_THREADS
2006             sipRes = sipCpp->GetColumnWidth(col);
2007             Py_END_ALLOW_THREADS
2008 
2009             if (PyErr_Occurred())
2010                 return 0;
2011 
2012             return SIPLong_FromLong(sipRes);
2013         }
2014     }
2015 
2016     /* Raise an exception if the arguments couldn't be parsed. */
2017     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_GetColumnWidth, SIP_NULLPTR);
2018 
2019     return SIP_NULLPTR;
2020 }
2021 
2022 
2023 PyDoc_STRVAR(doc_wxListCtrl_GetColumnsOrder, "GetColumnsOrder() -> ArrayInt\n"
2024 "\n"
2025 "Returns the array containing the orders of all columns.");
2026 
2027 extern "C" {static PyObject *meth_wxListCtrl_GetColumnsOrder(PyObject *, PyObject *);}
meth_wxListCtrl_GetColumnsOrder(PyObject * sipSelf,PyObject * sipArgs)2028 static PyObject *meth_wxListCtrl_GetColumnsOrder(PyObject *sipSelf, PyObject *sipArgs)
2029 {
2030     PyObject *sipParseErr = SIP_NULLPTR;
2031 
2032     {
2033         const  ::wxListCtrl *sipCpp;
2034 
2035         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxListCtrl, &sipCpp))
2036         {
2037              ::wxArrayInt*sipRes = 0;
2038             int sipIsErr = 0;
2039 
2040         PyErr_Clear();
2041         Py_BEGIN_ALLOW_THREADS
2042         sipRes = _wxListCtrl_GetColumnsOrder(sipCpp);
2043         Py_END_ALLOW_THREADS
2044         if (PyErr_Occurred()) sipIsErr = 1;
2045 
2046             if (sipIsErr)
2047                 return 0;
2048 
2049             return sipConvertFromNewType(sipRes,sipType_wxArrayInt,SIP_NULLPTR);
2050         }
2051     }
2052 
2053     /* Raise an exception if the arguments couldn't be parsed. */
2054     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_GetColumnsOrder, SIP_NULLPTR);
2055 
2056     return SIP_NULLPTR;
2057 }
2058 
2059 
2060 PyDoc_STRVAR(doc_wxListCtrl_GetCountPerPage, "GetCountPerPage() -> int\n"
2061 "\n"
2062 "Gets the number of items that can fit vertically in the visible area\n"
2063 "of the list control (list or report view) or the total number of items\n"
2064 "in the list control (icon or small icon view).");
2065 
2066 extern "C" {static PyObject *meth_wxListCtrl_GetCountPerPage(PyObject *, PyObject *);}
meth_wxListCtrl_GetCountPerPage(PyObject * sipSelf,PyObject * sipArgs)2067 static PyObject *meth_wxListCtrl_GetCountPerPage(PyObject *sipSelf, PyObject *sipArgs)
2068 {
2069     PyObject *sipParseErr = SIP_NULLPTR;
2070 
2071     {
2072         const  ::wxListCtrl *sipCpp;
2073 
2074         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxListCtrl, &sipCpp))
2075         {
2076             int sipRes;
2077 
2078             PyErr_Clear();
2079 
2080             Py_BEGIN_ALLOW_THREADS
2081             sipRes = sipCpp->GetCountPerPage();
2082             Py_END_ALLOW_THREADS
2083 
2084             if (PyErr_Occurred())
2085                 return 0;
2086 
2087             return SIPLong_FromLong(sipRes);
2088         }
2089     }
2090 
2091     /* Raise an exception if the arguments couldn't be parsed. */
2092     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_GetCountPerPage, SIP_NULLPTR);
2093 
2094     return SIP_NULLPTR;
2095 }
2096 
2097 
2098 PyDoc_STRVAR(doc_wxListCtrl_GetEditControl, "GetEditControl() -> TextCtrl\n"
2099 "\n"
2100 "Returns the edit control being currently used to edit a label.");
2101 
2102 extern "C" {static PyObject *meth_wxListCtrl_GetEditControl(PyObject *, PyObject *);}
meth_wxListCtrl_GetEditControl(PyObject * sipSelf,PyObject * sipArgs)2103 static PyObject *meth_wxListCtrl_GetEditControl(PyObject *sipSelf, PyObject *sipArgs)
2104 {
2105     PyObject *sipParseErr = SIP_NULLPTR;
2106 
2107     {
2108         const  ::wxListCtrl *sipCpp;
2109 
2110         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxListCtrl, &sipCpp))
2111         {
2112              ::wxTextCtrl*sipRes;
2113 
2114             PyErr_Clear();
2115 
2116             Py_BEGIN_ALLOW_THREADS
2117             sipRes = sipCpp->GetEditControl();
2118             Py_END_ALLOW_THREADS
2119 
2120             if (PyErr_Occurred())
2121                 return 0;
2122 
2123             return sipConvertFromType(sipRes,sipType_wxTextCtrl,SIP_NULLPTR);
2124         }
2125     }
2126 
2127     /* Raise an exception if the arguments couldn't be parsed. */
2128     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_GetEditControl, SIP_NULLPTR);
2129 
2130     return SIP_NULLPTR;
2131 }
2132 
2133 
2134 PyDoc_STRVAR(doc_wxListCtrl_GetImageList, "GetImageList(which) -> ImageList\n"
2135 "\n"
2136 "Returns the specified image list.");
2137 
2138 extern "C" {static PyObject *meth_wxListCtrl_GetImageList(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_GetImageList(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2139 static PyObject *meth_wxListCtrl_GetImageList(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2140 {
2141     PyObject *sipParseErr = SIP_NULLPTR;
2142 
2143     {
2144         int which;
2145         const  ::wxListCtrl *sipCpp;
2146 
2147         static const char *sipKwdList[] = {
2148             sipName_which,
2149         };
2150 
2151         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi", &sipSelf, sipType_wxListCtrl, &sipCpp, &which))
2152         {
2153              ::wxImageList*sipRes;
2154 
2155             PyErr_Clear();
2156 
2157             Py_BEGIN_ALLOW_THREADS
2158             sipRes = sipCpp->GetImageList(which);
2159             Py_END_ALLOW_THREADS
2160 
2161             if (PyErr_Occurred())
2162                 return 0;
2163 
2164             return sipConvertFromType(sipRes,sipType_wxImageList,SIP_NULLPTR);
2165         }
2166     }
2167 
2168     /* Raise an exception if the arguments couldn't be parsed. */
2169     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_GetImageList, SIP_NULLPTR);
2170 
2171     return SIP_NULLPTR;
2172 }
2173 
2174 
2175 PyDoc_STRVAR(doc_wxListCtrl_GetItem, "GetItem(itemIdx, col=0) -> ListItem\n"
2176 "\n"
2177 "Gets information about the item. See SetItem() for more information.");
2178 
2179 extern "C" {static PyObject *meth_wxListCtrl_GetItem(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_GetItem(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2180 static PyObject *meth_wxListCtrl_GetItem(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2181 {
2182     PyObject *sipParseErr = SIP_NULLPTR;
2183 
2184     {
2185         int itemIdx;
2186         int col = 0;
2187          ::wxListCtrl *sipCpp;
2188 
2189         static const char *sipKwdList[] = {
2190             sipName_itemIdx,
2191             sipName_col,
2192         };
2193 
2194         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi|i", &sipSelf, sipType_wxListCtrl, &sipCpp, &itemIdx, &col))
2195         {
2196              ::wxListItem*sipRes = 0;
2197             int sipIsErr = 0;
2198 
2199         PyErr_Clear();
2200         Py_BEGIN_ALLOW_THREADS
2201         sipRes = _wxListCtrl_GetItem(sipCpp, itemIdx, col);
2202         Py_END_ALLOW_THREADS
2203         if (PyErr_Occurred()) sipIsErr = 1;
2204 
2205             if (sipIsErr)
2206                 return 0;
2207 
2208             return sipConvertFromNewType(sipRes,sipType_wxListItem,SIP_NULLPTR);
2209         }
2210     }
2211 
2212     /* Raise an exception if the arguments couldn't be parsed. */
2213     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_GetItem, SIP_NULLPTR);
2214 
2215     return SIP_NULLPTR;
2216 }
2217 
2218 
2219 PyDoc_STRVAR(doc_wxListCtrl_GetItemBackgroundColour, "GetItemBackgroundColour(item) -> Colour\n"
2220 "\n"
2221 "Returns the colour for this item.");
2222 
2223 extern "C" {static PyObject *meth_wxListCtrl_GetItemBackgroundColour(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_GetItemBackgroundColour(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2224 static PyObject *meth_wxListCtrl_GetItemBackgroundColour(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2225 {
2226     PyObject *sipParseErr = SIP_NULLPTR;
2227 
2228     {
2229         long item;
2230         const  ::wxListCtrl *sipCpp;
2231 
2232         static const char *sipKwdList[] = {
2233             sipName_item,
2234         };
2235 
2236         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bl", &sipSelf, sipType_wxListCtrl, &sipCpp, &item))
2237         {
2238              ::wxColour*sipRes;
2239 
2240             PyErr_Clear();
2241 
2242             Py_BEGIN_ALLOW_THREADS
2243             sipRes = new  ::wxColour(sipCpp->GetItemBackgroundColour(item));
2244             Py_END_ALLOW_THREADS
2245 
2246             if (PyErr_Occurred())
2247                 return 0;
2248 
2249             return sipConvertFromNewType(sipRes,sipType_wxColour,SIP_NULLPTR);
2250         }
2251     }
2252 
2253     /* Raise an exception if the arguments couldn't be parsed. */
2254     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_GetItemBackgroundColour, SIP_NULLPTR);
2255 
2256     return SIP_NULLPTR;
2257 }
2258 
2259 
2260 PyDoc_STRVAR(doc_wxListCtrl_GetItemCount, "GetItemCount() -> int\n"
2261 "\n"
2262 "Returns the number of items in the list control.");
2263 
2264 extern "C" {static PyObject *meth_wxListCtrl_GetItemCount(PyObject *, PyObject *);}
meth_wxListCtrl_GetItemCount(PyObject * sipSelf,PyObject * sipArgs)2265 static PyObject *meth_wxListCtrl_GetItemCount(PyObject *sipSelf, PyObject *sipArgs)
2266 {
2267     PyObject *sipParseErr = SIP_NULLPTR;
2268 
2269     {
2270         const  ::wxListCtrl *sipCpp;
2271 
2272         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxListCtrl, &sipCpp))
2273         {
2274             int sipRes;
2275 
2276             PyErr_Clear();
2277 
2278             Py_BEGIN_ALLOW_THREADS
2279             sipRes = sipCpp->GetItemCount();
2280             Py_END_ALLOW_THREADS
2281 
2282             if (PyErr_Occurred())
2283                 return 0;
2284 
2285             return SIPLong_FromLong(sipRes);
2286         }
2287     }
2288 
2289     /* Raise an exception if the arguments couldn't be parsed. */
2290     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_GetItemCount, SIP_NULLPTR);
2291 
2292     return SIP_NULLPTR;
2293 }
2294 
2295 
2296 PyDoc_STRVAR(doc_wxListCtrl_GetItemData, "GetItemData(item) -> long\n"
2297 "\n"
2298 "Gets the application-defined data associated with this item.");
2299 
2300 extern "C" {static PyObject *meth_wxListCtrl_GetItemData(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_GetItemData(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2301 static PyObject *meth_wxListCtrl_GetItemData(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2302 {
2303     PyObject *sipParseErr = SIP_NULLPTR;
2304 
2305     {
2306         long item;
2307         const  ::wxListCtrl *sipCpp;
2308 
2309         static const char *sipKwdList[] = {
2310             sipName_item,
2311         };
2312 
2313         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bl", &sipSelf, sipType_wxListCtrl, &sipCpp, &item))
2314         {
2315             long sipRes;
2316 
2317             PyErr_Clear();
2318 
2319             Py_BEGIN_ALLOW_THREADS
2320             sipRes = sipCpp->GetItemData(item);
2321             Py_END_ALLOW_THREADS
2322 
2323             if (PyErr_Occurred())
2324                 return 0;
2325 
2326             return PyLong_FromLong(sipRes);
2327         }
2328     }
2329 
2330     /* Raise an exception if the arguments couldn't be parsed. */
2331     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_GetItemData, SIP_NULLPTR);
2332 
2333     return SIP_NULLPTR;
2334 }
2335 
2336 
2337 PyDoc_STRVAR(doc_wxListCtrl_GetItemFont, "GetItemFont(item) -> Font\n"
2338 "\n"
2339 "Returns the item's font.");
2340 
2341 extern "C" {static PyObject *meth_wxListCtrl_GetItemFont(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_GetItemFont(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2342 static PyObject *meth_wxListCtrl_GetItemFont(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2343 {
2344     PyObject *sipParseErr = SIP_NULLPTR;
2345 
2346     {
2347         long item;
2348         const  ::wxListCtrl *sipCpp;
2349 
2350         static const char *sipKwdList[] = {
2351             sipName_item,
2352         };
2353 
2354         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bl", &sipSelf, sipType_wxListCtrl, &sipCpp, &item))
2355         {
2356              ::wxFont*sipRes;
2357 
2358             PyErr_Clear();
2359 
2360             Py_BEGIN_ALLOW_THREADS
2361             sipRes = new  ::wxFont(sipCpp->GetItemFont(item));
2362             Py_END_ALLOW_THREADS
2363 
2364             if (PyErr_Occurred())
2365                 return 0;
2366 
2367             return sipConvertFromNewType(sipRes,sipType_wxFont,SIP_NULLPTR);
2368         }
2369     }
2370 
2371     /* Raise an exception if the arguments couldn't be parsed. */
2372     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_GetItemFont, SIP_NULLPTR);
2373 
2374     return SIP_NULLPTR;
2375 }
2376 
2377 
2378 PyDoc_STRVAR(doc_wxListCtrl_GetItemPosition, "GetItemPosition(item) -> Point\n"
2379 "\n"
2380 "Returns the position of the item, in icon or small icon view.");
2381 
2382 extern "C" {static PyObject *meth_wxListCtrl_GetItemPosition(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_GetItemPosition(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2383 static PyObject *meth_wxListCtrl_GetItemPosition(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2384 {
2385     PyObject *sipParseErr = SIP_NULLPTR;
2386 
2387     {
2388         long item;
2389          ::wxListCtrl *sipCpp;
2390 
2391         static const char *sipKwdList[] = {
2392             sipName_item,
2393         };
2394 
2395         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bl", &sipSelf, sipType_wxListCtrl, &sipCpp, &item))
2396         {
2397              ::wxPoint*sipRes = 0;
2398             int sipIsErr = 0;
2399 
2400         PyErr_Clear();
2401         Py_BEGIN_ALLOW_THREADS
2402         sipRes = _wxListCtrl_GetItemPosition(sipCpp, item);
2403         Py_END_ALLOW_THREADS
2404         if (PyErr_Occurred()) sipIsErr = 1;
2405 
2406             if (sipIsErr)
2407                 return 0;
2408 
2409             return sipConvertFromNewType(sipRes,sipType_wxPoint,SIP_NULLPTR);
2410         }
2411     }
2412 
2413     /* Raise an exception if the arguments couldn't be parsed. */
2414     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_GetItemPosition, SIP_NULLPTR);
2415 
2416     return SIP_NULLPTR;
2417 }
2418 
2419 
2420 PyDoc_STRVAR(doc_wxListCtrl_GetItemRect, "GetItemRect(item, code=LIST_RECT_BOUNDS) -> Rect\n"
2421 "\n"
2422 "Returns the rectangle representing the item's size and position, in\n"
2423 "physical coordinates.\n"
2424 "code is one of wx.LIST_RECT_BOUNDS, wx.LIST_RECT_ICON,\n"
2425 "wx.LIST_RECT_LABEL.");
2426 
2427 extern "C" {static PyObject *meth_wxListCtrl_GetItemRect(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_GetItemRect(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2428 static PyObject *meth_wxListCtrl_GetItemRect(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2429 {
2430     PyObject *sipParseErr = SIP_NULLPTR;
2431 
2432     {
2433         long item;
2434         int code = wxLIST_RECT_BOUNDS;
2435          ::wxListCtrl *sipCpp;
2436 
2437         static const char *sipKwdList[] = {
2438             sipName_item,
2439             sipName_code,
2440         };
2441 
2442         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bl|i", &sipSelf, sipType_wxListCtrl, &sipCpp, &item, &code))
2443         {
2444              ::wxRect*sipRes = 0;
2445             int sipIsErr = 0;
2446 
2447         PyErr_Clear();
2448         Py_BEGIN_ALLOW_THREADS
2449         sipRes = _wxListCtrl_GetItemRect(sipCpp, item, code);
2450         Py_END_ALLOW_THREADS
2451         if (PyErr_Occurred()) sipIsErr = 1;
2452 
2453             if (sipIsErr)
2454                 return 0;
2455 
2456             return sipConvertFromNewType(sipRes,sipType_wxRect,SIP_NULLPTR);
2457         }
2458     }
2459 
2460     /* Raise an exception if the arguments couldn't be parsed. */
2461     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_GetItemRect, SIP_NULLPTR);
2462 
2463     return SIP_NULLPTR;
2464 }
2465 
2466 
2467 PyDoc_STRVAR(doc_wxListCtrl_GetItemSpacing, "GetItemSpacing() -> Size\n"
2468 "\n"
2469 "Retrieves the spacing between icons in pixels: horizontal spacing is\n"
2470 "returned as x component of the wxSize object and the vertical spacing\n"
2471 "as its y component.");
2472 
2473 extern "C" {static PyObject *meth_wxListCtrl_GetItemSpacing(PyObject *, PyObject *);}
meth_wxListCtrl_GetItemSpacing(PyObject * sipSelf,PyObject * sipArgs)2474 static PyObject *meth_wxListCtrl_GetItemSpacing(PyObject *sipSelf, PyObject *sipArgs)
2475 {
2476     PyObject *sipParseErr = SIP_NULLPTR;
2477 
2478     {
2479         const  ::wxListCtrl *sipCpp;
2480 
2481         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxListCtrl, &sipCpp))
2482         {
2483              ::wxSize*sipRes;
2484 
2485             PyErr_Clear();
2486 
2487             Py_BEGIN_ALLOW_THREADS
2488             sipRes = new  ::wxSize(sipCpp->GetItemSpacing());
2489             Py_END_ALLOW_THREADS
2490 
2491             if (PyErr_Occurred())
2492                 return 0;
2493 
2494             return sipConvertFromNewType(sipRes,sipType_wxSize,SIP_NULLPTR);
2495         }
2496     }
2497 
2498     /* Raise an exception if the arguments couldn't be parsed. */
2499     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_GetItemSpacing, SIP_NULLPTR);
2500 
2501     return SIP_NULLPTR;
2502 }
2503 
2504 
2505 PyDoc_STRVAR(doc_wxListCtrl_GetItemState, "GetItemState(item, stateMask) -> int\n"
2506 "\n"
2507 "Gets the item state.");
2508 
2509 extern "C" {static PyObject *meth_wxListCtrl_GetItemState(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_GetItemState(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2510 static PyObject *meth_wxListCtrl_GetItemState(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2511 {
2512     PyObject *sipParseErr = SIP_NULLPTR;
2513 
2514     {
2515         long item;
2516         long stateMask;
2517         const  ::wxListCtrl *sipCpp;
2518 
2519         static const char *sipKwdList[] = {
2520             sipName_item,
2521             sipName_stateMask,
2522         };
2523 
2524         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bll", &sipSelf, sipType_wxListCtrl, &sipCpp, &item, &stateMask))
2525         {
2526             int sipRes;
2527 
2528             PyErr_Clear();
2529 
2530             Py_BEGIN_ALLOW_THREADS
2531             sipRes = sipCpp->GetItemState(item,stateMask);
2532             Py_END_ALLOW_THREADS
2533 
2534             if (PyErr_Occurred())
2535                 return 0;
2536 
2537             return SIPLong_FromLong(sipRes);
2538         }
2539     }
2540 
2541     /* Raise an exception if the arguments couldn't be parsed. */
2542     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_GetItemState, SIP_NULLPTR);
2543 
2544     return SIP_NULLPTR;
2545 }
2546 
2547 
2548 PyDoc_STRVAR(doc_wxListCtrl_GetItemText, "GetItemText(item, col=0) -> String\n"
2549 "\n"
2550 "Gets the item text for this item.");
2551 
2552 extern "C" {static PyObject *meth_wxListCtrl_GetItemText(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_GetItemText(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2553 static PyObject *meth_wxListCtrl_GetItemText(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2554 {
2555     PyObject *sipParseErr = SIP_NULLPTR;
2556 
2557     {
2558         long item;
2559         int col = 0;
2560         const  ::wxListCtrl *sipCpp;
2561 
2562         static const char *sipKwdList[] = {
2563             sipName_item,
2564             sipName_col,
2565         };
2566 
2567         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bl|i", &sipSelf, sipType_wxListCtrl, &sipCpp, &item, &col))
2568         {
2569              ::wxString*sipRes;
2570 
2571             PyErr_Clear();
2572 
2573             Py_BEGIN_ALLOW_THREADS
2574             sipRes = new  ::wxString(sipCpp->GetItemText(item,col));
2575             Py_END_ALLOW_THREADS
2576 
2577             if (PyErr_Occurred())
2578                 return 0;
2579 
2580             return sipConvertFromNewType(sipRes,sipType_wxString,SIP_NULLPTR);
2581         }
2582     }
2583 
2584     /* Raise an exception if the arguments couldn't be parsed. */
2585     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_GetItemText, SIP_NULLPTR);
2586 
2587     return SIP_NULLPTR;
2588 }
2589 
2590 
2591 PyDoc_STRVAR(doc_wxListCtrl_GetItemTextColour, "GetItemTextColour(item) -> Colour\n"
2592 "\n"
2593 "Returns the colour for this item.");
2594 
2595 extern "C" {static PyObject *meth_wxListCtrl_GetItemTextColour(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_GetItemTextColour(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2596 static PyObject *meth_wxListCtrl_GetItemTextColour(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2597 {
2598     PyObject *sipParseErr = SIP_NULLPTR;
2599 
2600     {
2601         long item;
2602         const  ::wxListCtrl *sipCpp;
2603 
2604         static const char *sipKwdList[] = {
2605             sipName_item,
2606         };
2607 
2608         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bl", &sipSelf, sipType_wxListCtrl, &sipCpp, &item))
2609         {
2610              ::wxColour*sipRes;
2611 
2612             PyErr_Clear();
2613 
2614             Py_BEGIN_ALLOW_THREADS
2615             sipRes = new  ::wxColour(sipCpp->GetItemTextColour(item));
2616             Py_END_ALLOW_THREADS
2617 
2618             if (PyErr_Occurred())
2619                 return 0;
2620 
2621             return sipConvertFromNewType(sipRes,sipType_wxColour,SIP_NULLPTR);
2622         }
2623     }
2624 
2625     /* Raise an exception if the arguments couldn't be parsed. */
2626     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_GetItemTextColour, SIP_NULLPTR);
2627 
2628     return SIP_NULLPTR;
2629 }
2630 
2631 
2632 PyDoc_STRVAR(doc_wxListCtrl_GetNextItem, "GetNextItem(item, geometry=LIST_NEXT_ALL, state=LIST_STATE_DONTCARE) -> long\n"
2633 "\n"
2634 "Searches for an item with the given geometry or state, starting from\n"
2635 "item but excluding the item itself.");
2636 
2637 extern "C" {static PyObject *meth_wxListCtrl_GetNextItem(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_GetNextItem(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2638 static PyObject *meth_wxListCtrl_GetNextItem(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2639 {
2640     PyObject *sipParseErr = SIP_NULLPTR;
2641 
2642     {
2643         long item;
2644         int geometry = wxLIST_NEXT_ALL;
2645         int state = wxLIST_STATE_DONTCARE;
2646         const  ::wxListCtrl *sipCpp;
2647 
2648         static const char *sipKwdList[] = {
2649             sipName_item,
2650             sipName_geometry,
2651             sipName_state,
2652         };
2653 
2654         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bl|ii", &sipSelf, sipType_wxListCtrl, &sipCpp, &item, &geometry, &state))
2655         {
2656             long sipRes;
2657 
2658             PyErr_Clear();
2659 
2660             Py_BEGIN_ALLOW_THREADS
2661             sipRes = sipCpp->GetNextItem(item,geometry,state);
2662             Py_END_ALLOW_THREADS
2663 
2664             if (PyErr_Occurred())
2665                 return 0;
2666 
2667             return PyLong_FromLong(sipRes);
2668         }
2669     }
2670 
2671     /* Raise an exception if the arguments couldn't be parsed. */
2672     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_GetNextItem, SIP_NULLPTR);
2673 
2674     return SIP_NULLPTR;
2675 }
2676 
2677 
2678 PyDoc_STRVAR(doc_wxListCtrl_GetSelectedItemCount, "GetSelectedItemCount() -> int\n"
2679 "\n"
2680 "Returns the number of selected items in the list control.");
2681 
2682 extern "C" {static PyObject *meth_wxListCtrl_GetSelectedItemCount(PyObject *, PyObject *);}
meth_wxListCtrl_GetSelectedItemCount(PyObject * sipSelf,PyObject * sipArgs)2683 static PyObject *meth_wxListCtrl_GetSelectedItemCount(PyObject *sipSelf, PyObject *sipArgs)
2684 {
2685     PyObject *sipParseErr = SIP_NULLPTR;
2686 
2687     {
2688         const  ::wxListCtrl *sipCpp;
2689 
2690         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxListCtrl, &sipCpp))
2691         {
2692             int sipRes;
2693 
2694             PyErr_Clear();
2695 
2696             Py_BEGIN_ALLOW_THREADS
2697             sipRes = sipCpp->GetSelectedItemCount();
2698             Py_END_ALLOW_THREADS
2699 
2700             if (PyErr_Occurred())
2701                 return 0;
2702 
2703             return SIPLong_FromLong(sipRes);
2704         }
2705     }
2706 
2707     /* Raise an exception if the arguments couldn't be parsed. */
2708     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_GetSelectedItemCount, SIP_NULLPTR);
2709 
2710     return SIP_NULLPTR;
2711 }
2712 
2713 
2714 PyDoc_STRVAR(doc_wxListCtrl_GetSubItemRect, "GetSubItemRect(item, subItem, rect, code=LIST_RECT_BOUNDS) -> bool\n"
2715 "\n"
2716 "Returns the rectangle representing the size and position, in physical\n"
2717 "coordinates, of the given subitem, i.e.");
2718 
2719 extern "C" {static PyObject *meth_wxListCtrl_GetSubItemRect(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_GetSubItemRect(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2720 static PyObject *meth_wxListCtrl_GetSubItemRect(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2721 {
2722     PyObject *sipParseErr = SIP_NULLPTR;
2723 
2724     {
2725         long item;
2726         long subItem;
2727          ::wxRect* rect;
2728         int rectState = 0;
2729         int code = wxLIST_RECT_BOUNDS;
2730         const  ::wxListCtrl *sipCpp;
2731 
2732         static const char *sipKwdList[] = {
2733             sipName_item,
2734             sipName_subItem,
2735             sipName_rect,
2736             sipName_code,
2737         };
2738 
2739         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BllJ1|i", &sipSelf, sipType_wxListCtrl, &sipCpp, &item, &subItem, sipType_wxRect, &rect, &rectState, &code))
2740         {
2741             bool sipRes;
2742 
2743             PyErr_Clear();
2744 
2745             Py_BEGIN_ALLOW_THREADS
2746             sipRes = sipCpp->GetSubItemRect(item,subItem,*rect,code);
2747             Py_END_ALLOW_THREADS
2748             sipReleaseType(rect,sipType_wxRect,rectState);
2749 
2750             if (PyErr_Occurred())
2751                 return 0;
2752 
2753             return PyBool_FromLong(sipRes);
2754         }
2755     }
2756 
2757     /* Raise an exception if the arguments couldn't be parsed. */
2758     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_GetSubItemRect, SIP_NULLPTR);
2759 
2760     return SIP_NULLPTR;
2761 }
2762 
2763 
2764 PyDoc_STRVAR(doc_wxListCtrl_GetTextColour, "GetTextColour() -> Colour\n"
2765 "\n"
2766 "Gets the text colour of the list control.");
2767 
2768 extern "C" {static PyObject *meth_wxListCtrl_GetTextColour(PyObject *, PyObject *);}
meth_wxListCtrl_GetTextColour(PyObject * sipSelf,PyObject * sipArgs)2769 static PyObject *meth_wxListCtrl_GetTextColour(PyObject *sipSelf, PyObject *sipArgs)
2770 {
2771     PyObject *sipParseErr = SIP_NULLPTR;
2772 
2773     {
2774         const  ::wxListCtrl *sipCpp;
2775 
2776         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxListCtrl, &sipCpp))
2777         {
2778              ::wxColour*sipRes;
2779 
2780             PyErr_Clear();
2781 
2782             Py_BEGIN_ALLOW_THREADS
2783             sipRes = new  ::wxColour(sipCpp->GetTextColour());
2784             Py_END_ALLOW_THREADS
2785 
2786             if (PyErr_Occurred())
2787                 return 0;
2788 
2789             return sipConvertFromNewType(sipRes,sipType_wxColour,SIP_NULLPTR);
2790         }
2791     }
2792 
2793     /* Raise an exception if the arguments couldn't be parsed. */
2794     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_GetTextColour, SIP_NULLPTR);
2795 
2796     return SIP_NULLPTR;
2797 }
2798 
2799 
2800 PyDoc_STRVAR(doc_wxListCtrl_GetTopItem, "GetTopItem() -> long\n"
2801 "\n"
2802 "Gets the index of the topmost visible item when in list or report\n"
2803 "view.");
2804 
2805 extern "C" {static PyObject *meth_wxListCtrl_GetTopItem(PyObject *, PyObject *);}
meth_wxListCtrl_GetTopItem(PyObject * sipSelf,PyObject * sipArgs)2806 static PyObject *meth_wxListCtrl_GetTopItem(PyObject *sipSelf, PyObject *sipArgs)
2807 {
2808     PyObject *sipParseErr = SIP_NULLPTR;
2809 
2810     {
2811         const  ::wxListCtrl *sipCpp;
2812 
2813         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxListCtrl, &sipCpp))
2814         {
2815             long sipRes;
2816 
2817             PyErr_Clear();
2818 
2819             Py_BEGIN_ALLOW_THREADS
2820             sipRes = sipCpp->GetTopItem();
2821             Py_END_ALLOW_THREADS
2822 
2823             if (PyErr_Occurred())
2824                 return 0;
2825 
2826             return PyLong_FromLong(sipRes);
2827         }
2828     }
2829 
2830     /* Raise an exception if the arguments couldn't be parsed. */
2831     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_GetTopItem, SIP_NULLPTR);
2832 
2833     return SIP_NULLPTR;
2834 }
2835 
2836 
2837 PyDoc_STRVAR(doc_wxListCtrl_GetViewRect, "GetViewRect() -> Rect\n"
2838 "\n"
2839 "Returns the rectangle taken by all items in the control.");
2840 
2841 extern "C" {static PyObject *meth_wxListCtrl_GetViewRect(PyObject *, PyObject *);}
meth_wxListCtrl_GetViewRect(PyObject * sipSelf,PyObject * sipArgs)2842 static PyObject *meth_wxListCtrl_GetViewRect(PyObject *sipSelf, PyObject *sipArgs)
2843 {
2844     PyObject *sipParseErr = SIP_NULLPTR;
2845 
2846     {
2847         const  ::wxListCtrl *sipCpp;
2848 
2849         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxListCtrl, &sipCpp))
2850         {
2851              ::wxRect*sipRes;
2852 
2853             PyErr_Clear();
2854 
2855             Py_BEGIN_ALLOW_THREADS
2856             sipRes = new  ::wxRect(sipCpp->GetViewRect());
2857             Py_END_ALLOW_THREADS
2858 
2859             if (PyErr_Occurred())
2860                 return 0;
2861 
2862             return sipConvertFromNewType(sipRes,sipType_wxRect,SIP_NULLPTR);
2863         }
2864     }
2865 
2866     /* Raise an exception if the arguments couldn't be parsed. */
2867     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_GetViewRect, SIP_NULLPTR);
2868 
2869     return SIP_NULLPTR;
2870 }
2871 
2872 
2873 PyDoc_STRVAR(doc_wxListCtrl_SetAlternateRowColour, "SetAlternateRowColour(colour)\n"
2874 "\n"
2875 "Set the alternative row background colour to a specific colour.");
2876 
2877 extern "C" {static PyObject *meth_wxListCtrl_SetAlternateRowColour(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_SetAlternateRowColour(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2878 static PyObject *meth_wxListCtrl_SetAlternateRowColour(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2879 {
2880     PyObject *sipParseErr = SIP_NULLPTR;
2881 
2882     {
2883         const  ::wxColour* colour;
2884         int colourState = 0;
2885          ::wxListCtrl *sipCpp;
2886 
2887         static const char *sipKwdList[] = {
2888             sipName_colour,
2889         };
2890 
2891         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxListCtrl, &sipCpp, sipType_wxColour, &colour, &colourState))
2892         {
2893             PyErr_Clear();
2894 
2895             Py_BEGIN_ALLOW_THREADS
2896             sipCpp->SetAlternateRowColour(*colour);
2897             Py_END_ALLOW_THREADS
2898             sipReleaseType(const_cast< ::wxColour *>(colour),sipType_wxColour,colourState);
2899 
2900             if (PyErr_Occurred())
2901                 return 0;
2902 
2903             Py_INCREF(Py_None);
2904             return Py_None;
2905         }
2906     }
2907 
2908     /* Raise an exception if the arguments couldn't be parsed. */
2909     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_SetAlternateRowColour, SIP_NULLPTR);
2910 
2911     return SIP_NULLPTR;
2912 }
2913 
2914 
2915 PyDoc_STRVAR(doc_wxListCtrl_HitTest, "HitTest(point) -> (long, flags)\n"
2916 "\n"
2917 "Determines which item (if any) is at the specified point, giving\n"
2918 "details in flags.");
2919 
2920 extern "C" {static PyObject *meth_wxListCtrl_HitTest(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_HitTest(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2921 static PyObject *meth_wxListCtrl_HitTest(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2922 {
2923     PyObject *sipParseErr = SIP_NULLPTR;
2924 
2925     {
2926         const  ::wxPoint* point;
2927         int pointState = 0;
2928         int flags;
2929         const  ::wxListCtrl *sipCpp;
2930 
2931         static const char *sipKwdList[] = {
2932             sipName_point,
2933         };
2934 
2935         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxListCtrl, &sipCpp, sipType_wxPoint, &point, &pointState))
2936         {
2937             long sipRes;
2938 
2939             PyErr_Clear();
2940 
2941             Py_BEGIN_ALLOW_THREADS
2942             sipRes = sipCpp->HitTest(*point,flags);
2943             Py_END_ALLOW_THREADS
2944             sipReleaseType(const_cast< ::wxPoint *>(point),sipType_wxPoint,pointState);
2945 
2946             if (PyErr_Occurred())
2947                 return 0;
2948 
2949             return sipBuildResult(0,"(li)",sipRes,flags);
2950         }
2951     }
2952 
2953     /* Raise an exception if the arguments couldn't be parsed. */
2954     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_HitTest, SIP_NULLPTR);
2955 
2956     return SIP_NULLPTR;
2957 }
2958 
2959 
2960 PyDoc_STRVAR(doc_wxListCtrl_InReportView, "InReportView() -> bool\n"
2961 "\n"
2962 "Returns true if the control is currently using wxLC_REPORT style.");
2963 
2964 extern "C" {static PyObject *meth_wxListCtrl_InReportView(PyObject *, PyObject *);}
meth_wxListCtrl_InReportView(PyObject * sipSelf,PyObject * sipArgs)2965 static PyObject *meth_wxListCtrl_InReportView(PyObject *sipSelf, PyObject *sipArgs)
2966 {
2967     PyObject *sipParseErr = SIP_NULLPTR;
2968 
2969     {
2970         const  ::wxListCtrl *sipCpp;
2971 
2972         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxListCtrl, &sipCpp))
2973         {
2974             bool sipRes;
2975 
2976             PyErr_Clear();
2977 
2978             Py_BEGIN_ALLOW_THREADS
2979             sipRes = sipCpp->InReportView();
2980             Py_END_ALLOW_THREADS
2981 
2982             if (PyErr_Occurred())
2983                 return 0;
2984 
2985             return PyBool_FromLong(sipRes);
2986         }
2987     }
2988 
2989     /* Raise an exception if the arguments couldn't be parsed. */
2990     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_InReportView, SIP_NULLPTR);
2991 
2992     return SIP_NULLPTR;
2993 }
2994 
2995 
2996 PyDoc_STRVAR(doc_wxListCtrl_InsertColumn, "InsertColumn(col, info) -> long\n"
2997 "InsertColumn(col, heading, format=LIST_FORMAT_LEFT, width=LIST_AUTOSIZE) -> long\n"
2998 "\n"
2999 "For report view mode (only), inserts a column.\n"
3000 "");
3001 
3002 extern "C" {static PyObject *meth_wxListCtrl_InsertColumn(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_InsertColumn(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)3003 static PyObject *meth_wxListCtrl_InsertColumn(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
3004 {
3005     PyObject *sipParseErr = SIP_NULLPTR;
3006 
3007     {
3008         long col;
3009         const  ::wxListItem* info;
3010          ::wxListCtrl *sipCpp;
3011 
3012         static const char *sipKwdList[] = {
3013             sipName_col,
3014             sipName_info,
3015         };
3016 
3017         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BlJ9", &sipSelf, sipType_wxListCtrl, &sipCpp, &col, sipType_wxListItem, &info))
3018         {
3019             long sipRes;
3020 
3021             PyErr_Clear();
3022 
3023             Py_BEGIN_ALLOW_THREADS
3024             sipRes = sipCpp->InsertColumn(col,*info);
3025             Py_END_ALLOW_THREADS
3026 
3027             if (PyErr_Occurred())
3028                 return 0;
3029 
3030             return PyLong_FromLong(sipRes);
3031         }
3032     }
3033 
3034     {
3035         long col;
3036         const  ::wxString* heading;
3037         int headingState = 0;
3038         int format = wxLIST_FORMAT_LEFT;
3039         int width = wxLIST_AUTOSIZE;
3040          ::wxListCtrl *sipCpp;
3041 
3042         static const char *sipKwdList[] = {
3043             sipName_col,
3044             sipName_heading,
3045             sipName_format,
3046             sipName_width,
3047         };
3048 
3049         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BlJ1|ii", &sipSelf, sipType_wxListCtrl, &sipCpp, &col, sipType_wxString,&heading, &headingState, &format, &width))
3050         {
3051             long sipRes;
3052 
3053             PyErr_Clear();
3054 
3055             Py_BEGIN_ALLOW_THREADS
3056             sipRes = sipCpp->InsertColumn(col,*heading,format,width);
3057             Py_END_ALLOW_THREADS
3058             sipReleaseType(const_cast< ::wxString *>(heading),sipType_wxString,headingState);
3059 
3060             if (PyErr_Occurred())
3061                 return 0;
3062 
3063             return PyLong_FromLong(sipRes);
3064         }
3065     }
3066 
3067     /* Raise an exception if the arguments couldn't be parsed. */
3068     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_InsertColumn, SIP_NULLPTR);
3069 
3070     return SIP_NULLPTR;
3071 }
3072 
3073 
3074 PyDoc_STRVAR(doc_wxListCtrl_InsertItem, "InsertItem(info) -> long\n"
3075 "InsertItem(index, label) -> long\n"
3076 "InsertItem(index, imageIndex) -> long\n"
3077 "InsertItem(index, label, imageIndex) -> long\n"
3078 "\n"
3079 "Inserts an item, returning the index of the new item if successful, -1\n"
3080 "otherwise.\n"
3081 "\n"
3082 "\n"
3083 "");
3084 
3085 extern "C" {static PyObject *meth_wxListCtrl_InsertItem(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_InsertItem(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)3086 static PyObject *meth_wxListCtrl_InsertItem(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
3087 {
3088     PyObject *sipParseErr = SIP_NULLPTR;
3089 
3090     {
3091          ::wxListItem* info;
3092          ::wxListCtrl *sipCpp;
3093 
3094         static const char *sipKwdList[] = {
3095             sipName_info,
3096         };
3097 
3098         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxListCtrl, &sipCpp, sipType_wxListItem, &info))
3099         {
3100             long sipRes;
3101 
3102             PyErr_Clear();
3103 
3104             Py_BEGIN_ALLOW_THREADS
3105             sipRes = sipCpp->InsertItem(*info);
3106             Py_END_ALLOW_THREADS
3107 
3108             if (PyErr_Occurred())
3109                 return 0;
3110 
3111             return PyLong_FromLong(sipRes);
3112         }
3113     }
3114 
3115     {
3116         long index;
3117         const  ::wxString* label;
3118         int labelState = 0;
3119          ::wxListCtrl *sipCpp;
3120 
3121         static const char *sipKwdList[] = {
3122             sipName_index,
3123             sipName_label,
3124         };
3125 
3126         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BlJ1", &sipSelf, sipType_wxListCtrl, &sipCpp, &index, sipType_wxString,&label, &labelState))
3127         {
3128             long sipRes;
3129 
3130             PyErr_Clear();
3131 
3132             Py_BEGIN_ALLOW_THREADS
3133             sipRes = sipCpp->InsertItem(index,*label);
3134             Py_END_ALLOW_THREADS
3135             sipReleaseType(const_cast< ::wxString *>(label),sipType_wxString,labelState);
3136 
3137             if (PyErr_Occurred())
3138                 return 0;
3139 
3140             return PyLong_FromLong(sipRes);
3141         }
3142     }
3143 
3144     {
3145         long index;
3146         int imageIndex;
3147          ::wxListCtrl *sipCpp;
3148 
3149         static const char *sipKwdList[] = {
3150             sipName_index,
3151             sipName_imageIndex,
3152         };
3153 
3154         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bli", &sipSelf, sipType_wxListCtrl, &sipCpp, &index, &imageIndex))
3155         {
3156             long sipRes;
3157 
3158             PyErr_Clear();
3159 
3160             Py_BEGIN_ALLOW_THREADS
3161             sipRes = sipCpp->InsertItem(index,imageIndex);
3162             Py_END_ALLOW_THREADS
3163 
3164             if (PyErr_Occurred())
3165                 return 0;
3166 
3167             return PyLong_FromLong(sipRes);
3168         }
3169     }
3170 
3171     {
3172         long index;
3173         const  ::wxString* label;
3174         int labelState = 0;
3175         int imageIndex;
3176          ::wxListCtrl *sipCpp;
3177 
3178         static const char *sipKwdList[] = {
3179             sipName_index,
3180             sipName_label,
3181             sipName_imageIndex,
3182         };
3183 
3184         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BlJ1i", &sipSelf, sipType_wxListCtrl, &sipCpp, &index, sipType_wxString,&label, &labelState, &imageIndex))
3185         {
3186             long sipRes;
3187 
3188             PyErr_Clear();
3189 
3190             Py_BEGIN_ALLOW_THREADS
3191             sipRes = sipCpp->InsertItem(index,*label,imageIndex);
3192             Py_END_ALLOW_THREADS
3193             sipReleaseType(const_cast< ::wxString *>(label),sipType_wxString,labelState);
3194 
3195             if (PyErr_Occurred())
3196                 return 0;
3197 
3198             return PyLong_FromLong(sipRes);
3199         }
3200     }
3201 
3202     /* Raise an exception if the arguments couldn't be parsed. */
3203     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_InsertItem, SIP_NULLPTR);
3204 
3205     return SIP_NULLPTR;
3206 }
3207 
3208 
3209 PyDoc_STRVAR(doc_wxListCtrl_IsVirtual, "IsVirtual() -> bool\n"
3210 "\n"
3211 "Returns true if the control is currently in virtual report view.");
3212 
3213 extern "C" {static PyObject *meth_wxListCtrl_IsVirtual(PyObject *, PyObject *);}
meth_wxListCtrl_IsVirtual(PyObject * sipSelf,PyObject * sipArgs)3214 static PyObject *meth_wxListCtrl_IsVirtual(PyObject *sipSelf, PyObject *sipArgs)
3215 {
3216     PyObject *sipParseErr = SIP_NULLPTR;
3217 
3218     {
3219         const  ::wxListCtrl *sipCpp;
3220 
3221         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxListCtrl, &sipCpp))
3222         {
3223             bool sipRes;
3224 
3225             PyErr_Clear();
3226 
3227             Py_BEGIN_ALLOW_THREADS
3228             sipRes = sipCpp->IsVirtual();
3229             Py_END_ALLOW_THREADS
3230 
3231             if (PyErr_Occurred())
3232                 return 0;
3233 
3234             return PyBool_FromLong(sipRes);
3235         }
3236     }
3237 
3238     /* Raise an exception if the arguments couldn't be parsed. */
3239     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_IsVirtual, SIP_NULLPTR);
3240 
3241     return SIP_NULLPTR;
3242 }
3243 
3244 
3245 PyDoc_STRVAR(doc_wxListCtrl_RefreshItem, "RefreshItem(item)\n"
3246 "\n"
3247 "Redraws the given item.");
3248 
3249 extern "C" {static PyObject *meth_wxListCtrl_RefreshItem(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_RefreshItem(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)3250 static PyObject *meth_wxListCtrl_RefreshItem(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
3251 {
3252     PyObject *sipParseErr = SIP_NULLPTR;
3253 
3254     {
3255         long item;
3256          ::wxListCtrl *sipCpp;
3257 
3258         static const char *sipKwdList[] = {
3259             sipName_item,
3260         };
3261 
3262         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bl", &sipSelf, sipType_wxListCtrl, &sipCpp, &item))
3263         {
3264             PyErr_Clear();
3265 
3266             Py_BEGIN_ALLOW_THREADS
3267             sipCpp->RefreshItem(item);
3268             Py_END_ALLOW_THREADS
3269 
3270             if (PyErr_Occurred())
3271                 return 0;
3272 
3273             Py_INCREF(Py_None);
3274             return Py_None;
3275         }
3276     }
3277 
3278     /* Raise an exception if the arguments couldn't be parsed. */
3279     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_RefreshItem, SIP_NULLPTR);
3280 
3281     return SIP_NULLPTR;
3282 }
3283 
3284 
3285 PyDoc_STRVAR(doc_wxListCtrl_RefreshItems, "RefreshItems(itemFrom, itemTo)\n"
3286 "\n"
3287 "Redraws the items between itemFrom and itemTo.");
3288 
3289 extern "C" {static PyObject *meth_wxListCtrl_RefreshItems(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_RefreshItems(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)3290 static PyObject *meth_wxListCtrl_RefreshItems(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
3291 {
3292     PyObject *sipParseErr = SIP_NULLPTR;
3293 
3294     {
3295         long itemFrom;
3296         long itemTo;
3297          ::wxListCtrl *sipCpp;
3298 
3299         static const char *sipKwdList[] = {
3300             sipName_itemFrom,
3301             sipName_itemTo,
3302         };
3303 
3304         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bll", &sipSelf, sipType_wxListCtrl, &sipCpp, &itemFrom, &itemTo))
3305         {
3306             PyErr_Clear();
3307 
3308             Py_BEGIN_ALLOW_THREADS
3309             sipCpp->RefreshItems(itemFrom,itemTo);
3310             Py_END_ALLOW_THREADS
3311 
3312             if (PyErr_Occurred())
3313                 return 0;
3314 
3315             Py_INCREF(Py_None);
3316             return Py_None;
3317         }
3318     }
3319 
3320     /* Raise an exception if the arguments couldn't be parsed. */
3321     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_RefreshItems, SIP_NULLPTR);
3322 
3323     return SIP_NULLPTR;
3324 }
3325 
3326 
3327 PyDoc_STRVAR(doc_wxListCtrl_ScrollList, "ScrollList(dx, dy) -> bool\n"
3328 "\n"
3329 "Scrolls the list control.");
3330 
3331 extern "C" {static PyObject *meth_wxListCtrl_ScrollList(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_ScrollList(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)3332 static PyObject *meth_wxListCtrl_ScrollList(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
3333 {
3334     PyObject *sipParseErr = SIP_NULLPTR;
3335 
3336     {
3337         int dx;
3338         int dy;
3339          ::wxListCtrl *sipCpp;
3340 
3341         static const char *sipKwdList[] = {
3342             sipName_dx,
3343             sipName_dy,
3344         };
3345 
3346         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bii", &sipSelf, sipType_wxListCtrl, &sipCpp, &dx, &dy))
3347         {
3348             bool sipRes;
3349 
3350             PyErr_Clear();
3351 
3352             Py_BEGIN_ALLOW_THREADS
3353             sipRes = sipCpp->ScrollList(dx,dy);
3354             Py_END_ALLOW_THREADS
3355 
3356             if (PyErr_Occurred())
3357                 return 0;
3358 
3359             return PyBool_FromLong(sipRes);
3360         }
3361     }
3362 
3363     /* Raise an exception if the arguments couldn't be parsed. */
3364     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_ScrollList, SIP_NULLPTR);
3365 
3366     return SIP_NULLPTR;
3367 }
3368 
3369 
3370 PyDoc_STRVAR(doc_wxListCtrl_SetBackgroundColour, "SetBackgroundColour(col) -> bool\n"
3371 "\n"
3372 "Sets the background colour.");
3373 
3374 extern "C" {static PyObject *meth_wxListCtrl_SetBackgroundColour(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_SetBackgroundColour(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)3375 static PyObject *meth_wxListCtrl_SetBackgroundColour(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
3376 {
3377     PyObject *sipParseErr = SIP_NULLPTR;
3378 
3379     {
3380         const  ::wxColour* col;
3381         int colState = 0;
3382          ::wxListCtrl *sipCpp;
3383 
3384         static const char *sipKwdList[] = {
3385             sipName_col,
3386         };
3387 
3388         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxListCtrl, &sipCpp, sipType_wxColour, &col, &colState))
3389         {
3390             bool sipRes;
3391 
3392             PyErr_Clear();
3393 
3394             Py_BEGIN_ALLOW_THREADS
3395             sipRes = sipCpp->SetBackgroundColour(*col);
3396             Py_END_ALLOW_THREADS
3397             sipReleaseType(const_cast< ::wxColour *>(col),sipType_wxColour,colState);
3398 
3399             if (PyErr_Occurred())
3400                 return 0;
3401 
3402             return PyBool_FromLong(sipRes);
3403         }
3404     }
3405 
3406     /* Raise an exception if the arguments couldn't be parsed. */
3407     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_SetBackgroundColour, SIP_NULLPTR);
3408 
3409     return SIP_NULLPTR;
3410 }
3411 
3412 
3413 PyDoc_STRVAR(doc_wxListCtrl_SetColumn, "SetColumn(col, item) -> bool\n"
3414 "\n"
3415 "Sets information about this column.");
3416 
3417 extern "C" {static PyObject *meth_wxListCtrl_SetColumn(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_SetColumn(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)3418 static PyObject *meth_wxListCtrl_SetColumn(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
3419 {
3420     PyObject *sipParseErr = SIP_NULLPTR;
3421 
3422     {
3423         int col;
3424          ::wxListItem* item;
3425          ::wxListCtrl *sipCpp;
3426 
3427         static const char *sipKwdList[] = {
3428             sipName_col,
3429             sipName_item,
3430         };
3431 
3432         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BiJ9", &sipSelf, sipType_wxListCtrl, &sipCpp, &col, sipType_wxListItem, &item))
3433         {
3434             bool sipRes;
3435 
3436             PyErr_Clear();
3437 
3438             Py_BEGIN_ALLOW_THREADS
3439             sipRes = sipCpp->SetColumn(col,*item);
3440             Py_END_ALLOW_THREADS
3441 
3442             if (PyErr_Occurred())
3443                 return 0;
3444 
3445             return PyBool_FromLong(sipRes);
3446         }
3447     }
3448 
3449     /* Raise an exception if the arguments couldn't be parsed. */
3450     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_SetColumn, SIP_NULLPTR);
3451 
3452     return SIP_NULLPTR;
3453 }
3454 
3455 
3456 PyDoc_STRVAR(doc_wxListCtrl_SetColumnWidth, "SetColumnWidth(col, width) -> bool\n"
3457 "\n"
3458 "Sets the column width.");
3459 
3460 extern "C" {static PyObject *meth_wxListCtrl_SetColumnWidth(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_SetColumnWidth(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)3461 static PyObject *meth_wxListCtrl_SetColumnWidth(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
3462 {
3463     PyObject *sipParseErr = SIP_NULLPTR;
3464 
3465     {
3466         int col;
3467         int width;
3468          ::wxListCtrl *sipCpp;
3469 
3470         static const char *sipKwdList[] = {
3471             sipName_col,
3472             sipName_width,
3473         };
3474 
3475         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bii", &sipSelf, sipType_wxListCtrl, &sipCpp, &col, &width))
3476         {
3477             bool sipRes;
3478 
3479             PyErr_Clear();
3480 
3481             Py_BEGIN_ALLOW_THREADS
3482             sipRes = sipCpp->SetColumnWidth(col,width);
3483             Py_END_ALLOW_THREADS
3484 
3485             if (PyErr_Occurred())
3486                 return 0;
3487 
3488             return PyBool_FromLong(sipRes);
3489         }
3490     }
3491 
3492     /* Raise an exception if the arguments couldn't be parsed. */
3493     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_SetColumnWidth, SIP_NULLPTR);
3494 
3495     return SIP_NULLPTR;
3496 }
3497 
3498 
3499 PyDoc_STRVAR(doc_wxListCtrl_SetColumnsOrder, "SetColumnsOrder(orders) -> bool\n"
3500 "\n"
3501 "Changes the order in which the columns are shown.");
3502 
3503 extern "C" {static PyObject *meth_wxListCtrl_SetColumnsOrder(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_SetColumnsOrder(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)3504 static PyObject *meth_wxListCtrl_SetColumnsOrder(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
3505 {
3506     PyObject *sipParseErr = SIP_NULLPTR;
3507 
3508     {
3509         const  ::wxArrayInt* orders;
3510         int ordersState = 0;
3511          ::wxListCtrl *sipCpp;
3512 
3513         static const char *sipKwdList[] = {
3514             sipName_orders,
3515         };
3516 
3517         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxListCtrl, &sipCpp, sipType_wxArrayInt,&orders, &ordersState))
3518         {
3519             bool sipRes = 0;
3520             int sipIsErr = 0;
3521 
3522         PyErr_Clear();
3523         Py_BEGIN_ALLOW_THREADS
3524         sipRes = _wxListCtrl_SetColumnsOrder(sipCpp, orders);
3525         Py_END_ALLOW_THREADS
3526         if (PyErr_Occurred()) sipIsErr = 1;
3527             sipReleaseType(const_cast< ::wxArrayInt *>(orders),sipType_wxArrayInt,ordersState);
3528 
3529             if (sipIsErr)
3530                 return 0;
3531 
3532             return PyBool_FromLong(sipRes);
3533         }
3534     }
3535 
3536     /* Raise an exception if the arguments couldn't be parsed. */
3537     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_SetColumnsOrder, SIP_NULLPTR);
3538 
3539     return SIP_NULLPTR;
3540 }
3541 
3542 
3543 PyDoc_STRVAR(doc_wxListCtrl_SetImageList, "SetImageList(imageList, which)\n"
3544 "\n"
3545 "Sets the image list associated with the control.");
3546 
3547 extern "C" {static PyObject *meth_wxListCtrl_SetImageList(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_SetImageList(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)3548 static PyObject *meth_wxListCtrl_SetImageList(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
3549 {
3550     PyObject *sipParseErr = SIP_NULLPTR;
3551 
3552     {
3553          ::wxImageList* imageList;
3554         int which;
3555          ::wxListCtrl *sipCpp;
3556 
3557         static const char *sipKwdList[] = {
3558             sipName_imageList,
3559             sipName_which,
3560         };
3561 
3562         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8i", &sipSelf, sipType_wxListCtrl, &sipCpp, sipType_wxImageList, &imageList, &which))
3563         {
3564             PyErr_Clear();
3565 
3566             Py_BEGIN_ALLOW_THREADS
3567             sipCpp->SetImageList(imageList,which);
3568             Py_END_ALLOW_THREADS
3569 
3570             if (PyErr_Occurred())
3571                 return 0;
3572 
3573             Py_INCREF(Py_None);
3574             return Py_None;
3575         }
3576     }
3577 
3578     /* Raise an exception if the arguments couldn't be parsed. */
3579     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_SetImageList, SIP_NULLPTR);
3580 
3581     return SIP_NULLPTR;
3582 }
3583 
3584 
3585 PyDoc_STRVAR(doc_wxListCtrl_SetItem, "SetItem(info) -> bool\n"
3586 "SetItem(index, column, label, imageId=-1) -> long\n"
3587 "\n"
3588 "Sets the data of an item.\n"
3589 "");
3590 
3591 extern "C" {static PyObject *meth_wxListCtrl_SetItem(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_SetItem(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)3592 static PyObject *meth_wxListCtrl_SetItem(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
3593 {
3594     PyObject *sipParseErr = SIP_NULLPTR;
3595 
3596     {
3597          ::wxListItem* info;
3598          ::wxListCtrl *sipCpp;
3599 
3600         static const char *sipKwdList[] = {
3601             sipName_info,
3602         };
3603 
3604         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxListCtrl, &sipCpp, sipType_wxListItem, &info))
3605         {
3606             bool sipRes;
3607 
3608             PyErr_Clear();
3609 
3610             Py_BEGIN_ALLOW_THREADS
3611             sipRes = sipCpp->SetItem(*info);
3612             Py_END_ALLOW_THREADS
3613 
3614             if (PyErr_Occurred())
3615                 return 0;
3616 
3617             return PyBool_FromLong(sipRes);
3618         }
3619     }
3620 
3621     {
3622         long index;
3623         int column;
3624         const  ::wxString* label;
3625         int labelState = 0;
3626         int imageId = -1;
3627          ::wxListCtrl *sipCpp;
3628 
3629         static const char *sipKwdList[] = {
3630             sipName_index,
3631             sipName_column,
3632             sipName_label,
3633             sipName_imageId,
3634         };
3635 
3636         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BliJ1|i", &sipSelf, sipType_wxListCtrl, &sipCpp, &index, &column, sipType_wxString,&label, &labelState, &imageId))
3637         {
3638             long sipRes;
3639 
3640             PyErr_Clear();
3641 
3642             Py_BEGIN_ALLOW_THREADS
3643             sipRes = sipCpp->SetItem(index,column,*label,imageId);
3644             Py_END_ALLOW_THREADS
3645             sipReleaseType(const_cast< ::wxString *>(label),sipType_wxString,labelState);
3646 
3647             if (PyErr_Occurred())
3648                 return 0;
3649 
3650             return PyLong_FromLong(sipRes);
3651         }
3652     }
3653 
3654     /* Raise an exception if the arguments couldn't be parsed. */
3655     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_SetItem, SIP_NULLPTR);
3656 
3657     return SIP_NULLPTR;
3658 }
3659 
3660 
3661 PyDoc_STRVAR(doc_wxListCtrl_SetItemBackgroundColour, "SetItemBackgroundColour(item, col)\n"
3662 "\n"
3663 "Sets the background colour for this item.");
3664 
3665 extern "C" {static PyObject *meth_wxListCtrl_SetItemBackgroundColour(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_SetItemBackgroundColour(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)3666 static PyObject *meth_wxListCtrl_SetItemBackgroundColour(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
3667 {
3668     PyObject *sipParseErr = SIP_NULLPTR;
3669 
3670     {
3671         long item;
3672         const  ::wxColour* col;
3673         int colState = 0;
3674          ::wxListCtrl *sipCpp;
3675 
3676         static const char *sipKwdList[] = {
3677             sipName_item,
3678             sipName_col,
3679         };
3680 
3681         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BlJ1", &sipSelf, sipType_wxListCtrl, &sipCpp, &item, sipType_wxColour, &col, &colState))
3682         {
3683             PyErr_Clear();
3684 
3685             Py_BEGIN_ALLOW_THREADS
3686             sipCpp->SetItemBackgroundColour(item,*col);
3687             Py_END_ALLOW_THREADS
3688             sipReleaseType(const_cast< ::wxColour *>(col),sipType_wxColour,colState);
3689 
3690             if (PyErr_Occurred())
3691                 return 0;
3692 
3693             Py_INCREF(Py_None);
3694             return Py_None;
3695         }
3696     }
3697 
3698     /* Raise an exception if the arguments couldn't be parsed. */
3699     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_SetItemBackgroundColour, SIP_NULLPTR);
3700 
3701     return SIP_NULLPTR;
3702 }
3703 
3704 
3705 PyDoc_STRVAR(doc_wxListCtrl_SetItemColumnImage, "SetItemColumnImage(item, column, image) -> bool\n"
3706 "\n"
3707 "Sets the image associated with the item.");
3708 
3709 extern "C" {static PyObject *meth_wxListCtrl_SetItemColumnImage(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_SetItemColumnImage(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)3710 static PyObject *meth_wxListCtrl_SetItemColumnImage(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
3711 {
3712     PyObject *sipParseErr = SIP_NULLPTR;
3713 
3714     {
3715         long item;
3716         long column;
3717         int image;
3718          ::wxListCtrl *sipCpp;
3719 
3720         static const char *sipKwdList[] = {
3721             sipName_item,
3722             sipName_column,
3723             sipName_image,
3724         };
3725 
3726         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Blli", &sipSelf, sipType_wxListCtrl, &sipCpp, &item, &column, &image))
3727         {
3728             bool sipRes;
3729 
3730             PyErr_Clear();
3731 
3732             Py_BEGIN_ALLOW_THREADS
3733             sipRes = sipCpp->SetItemColumnImage(item,column,image);
3734             Py_END_ALLOW_THREADS
3735 
3736             if (PyErr_Occurred())
3737                 return 0;
3738 
3739             return PyBool_FromLong(sipRes);
3740         }
3741     }
3742 
3743     /* Raise an exception if the arguments couldn't be parsed. */
3744     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_SetItemColumnImage, SIP_NULLPTR);
3745 
3746     return SIP_NULLPTR;
3747 }
3748 
3749 
3750 PyDoc_STRVAR(doc_wxListCtrl_SetItemCount, "SetItemCount(count)\n"
3751 "\n"
3752 "This method can only be used with virtual list controls.");
3753 
3754 extern "C" {static PyObject *meth_wxListCtrl_SetItemCount(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_SetItemCount(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)3755 static PyObject *meth_wxListCtrl_SetItemCount(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
3756 {
3757     PyObject *sipParseErr = SIP_NULLPTR;
3758 
3759     {
3760         long count;
3761          ::wxListCtrl *sipCpp;
3762 
3763         static const char *sipKwdList[] = {
3764             sipName_count,
3765         };
3766 
3767         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bl", &sipSelf, sipType_wxListCtrl, &sipCpp, &count))
3768         {
3769             PyErr_Clear();
3770 
3771             Py_BEGIN_ALLOW_THREADS
3772             sipCpp->SetItemCount(count);
3773             Py_END_ALLOW_THREADS
3774 
3775             if (PyErr_Occurred())
3776                 return 0;
3777 
3778             Py_INCREF(Py_None);
3779             return Py_None;
3780         }
3781     }
3782 
3783     /* Raise an exception if the arguments couldn't be parsed. */
3784     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_SetItemCount, SIP_NULLPTR);
3785 
3786     return SIP_NULLPTR;
3787 }
3788 
3789 
3790 PyDoc_STRVAR(doc_wxListCtrl_SetItemData, "SetItemData(item, data) -> bool\n"
3791 "\n"
3792 "Associates application-defined data with this item.");
3793 
3794 extern "C" {static PyObject *meth_wxListCtrl_SetItemData(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_SetItemData(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)3795 static PyObject *meth_wxListCtrl_SetItemData(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
3796 {
3797     PyObject *sipParseErr = SIP_NULLPTR;
3798 
3799     {
3800         long item;
3801         long data;
3802          ::wxListCtrl *sipCpp;
3803 
3804         static const char *sipKwdList[] = {
3805             sipName_item,
3806             sipName_data,
3807         };
3808 
3809         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bll", &sipSelf, sipType_wxListCtrl, &sipCpp, &item, &data))
3810         {
3811             bool sipRes;
3812 
3813             PyErr_Clear();
3814 
3815             Py_BEGIN_ALLOW_THREADS
3816             sipRes = sipCpp->SetItemData(item,data);
3817             Py_END_ALLOW_THREADS
3818 
3819             if (PyErr_Occurred())
3820                 return 0;
3821 
3822             return PyBool_FromLong(sipRes);
3823         }
3824     }
3825 
3826     /* Raise an exception if the arguments couldn't be parsed. */
3827     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_SetItemData, SIP_NULLPTR);
3828 
3829     return SIP_NULLPTR;
3830 }
3831 
3832 
3833 PyDoc_STRVAR(doc_wxListCtrl_SetItemFont, "SetItemFont(item, font)\n"
3834 "\n"
3835 "Sets the item's font.");
3836 
3837 extern "C" {static PyObject *meth_wxListCtrl_SetItemFont(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_SetItemFont(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)3838 static PyObject *meth_wxListCtrl_SetItemFont(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
3839 {
3840     PyObject *sipParseErr = SIP_NULLPTR;
3841 
3842     {
3843         long item;
3844         const  ::wxFont* font;
3845          ::wxListCtrl *sipCpp;
3846 
3847         static const char *sipKwdList[] = {
3848             sipName_item,
3849             sipName_font,
3850         };
3851 
3852         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BlJ9", &sipSelf, sipType_wxListCtrl, &sipCpp, &item, sipType_wxFont, &font))
3853         {
3854             PyErr_Clear();
3855 
3856             Py_BEGIN_ALLOW_THREADS
3857             sipCpp->SetItemFont(item,*font);
3858             Py_END_ALLOW_THREADS
3859 
3860             if (PyErr_Occurred())
3861                 return 0;
3862 
3863             Py_INCREF(Py_None);
3864             return Py_None;
3865         }
3866     }
3867 
3868     /* Raise an exception if the arguments couldn't be parsed. */
3869     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_SetItemFont, SIP_NULLPTR);
3870 
3871     return SIP_NULLPTR;
3872 }
3873 
3874 
3875 PyDoc_STRVAR(doc_wxListCtrl_SetItemImage, "SetItemImage(item, image, selImage=-1) -> bool\n"
3876 "\n"
3877 "Sets the unselected and selected images associated with the item.");
3878 
3879 extern "C" {static PyObject *meth_wxListCtrl_SetItemImage(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_SetItemImage(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)3880 static PyObject *meth_wxListCtrl_SetItemImage(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
3881 {
3882     PyObject *sipParseErr = SIP_NULLPTR;
3883 
3884     {
3885         long item;
3886         int image;
3887         int selImage = -1;
3888          ::wxListCtrl *sipCpp;
3889 
3890         static const char *sipKwdList[] = {
3891             sipName_item,
3892             sipName_image,
3893             sipName_selImage,
3894         };
3895 
3896         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bli|i", &sipSelf, sipType_wxListCtrl, &sipCpp, &item, &image, &selImage))
3897         {
3898             bool sipRes;
3899 
3900             PyErr_Clear();
3901 
3902             Py_BEGIN_ALLOW_THREADS
3903             sipRes = sipCpp->SetItemImage(item,image,selImage);
3904             Py_END_ALLOW_THREADS
3905 
3906             if (PyErr_Occurred())
3907                 return 0;
3908 
3909             return PyBool_FromLong(sipRes);
3910         }
3911     }
3912 
3913     /* Raise an exception if the arguments couldn't be parsed. */
3914     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_SetItemImage, SIP_NULLPTR);
3915 
3916     return SIP_NULLPTR;
3917 }
3918 
3919 
3920 PyDoc_STRVAR(doc_wxListCtrl_SetItemPosition, "SetItemPosition(item, pos) -> bool\n"
3921 "\n"
3922 "Sets the position of the item, in icon or small icon view.");
3923 
3924 extern "C" {static PyObject *meth_wxListCtrl_SetItemPosition(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_SetItemPosition(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)3925 static PyObject *meth_wxListCtrl_SetItemPosition(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
3926 {
3927     PyObject *sipParseErr = SIP_NULLPTR;
3928 
3929     {
3930         long item;
3931         const  ::wxPoint* pos;
3932         int posState = 0;
3933          ::wxListCtrl *sipCpp;
3934 
3935         static const char *sipKwdList[] = {
3936             sipName_item,
3937             sipName_pos,
3938         };
3939 
3940         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BlJ1", &sipSelf, sipType_wxListCtrl, &sipCpp, &item, sipType_wxPoint, &pos, &posState))
3941         {
3942             bool sipRes;
3943 
3944             PyErr_Clear();
3945 
3946             Py_BEGIN_ALLOW_THREADS
3947             sipRes = sipCpp->SetItemPosition(item,*pos);
3948             Py_END_ALLOW_THREADS
3949             sipReleaseType(const_cast< ::wxPoint *>(pos),sipType_wxPoint,posState);
3950 
3951             if (PyErr_Occurred())
3952                 return 0;
3953 
3954             return PyBool_FromLong(sipRes);
3955         }
3956     }
3957 
3958     /* Raise an exception if the arguments couldn't be parsed. */
3959     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_SetItemPosition, SIP_NULLPTR);
3960 
3961     return SIP_NULLPTR;
3962 }
3963 
3964 
3965 PyDoc_STRVAR(doc_wxListCtrl_SetItemState, "SetItemState(item, state, stateMask) -> bool\n"
3966 "\n"
3967 "Sets the item state.");
3968 
3969 extern "C" {static PyObject *meth_wxListCtrl_SetItemState(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_SetItemState(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)3970 static PyObject *meth_wxListCtrl_SetItemState(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
3971 {
3972     PyObject *sipParseErr = SIP_NULLPTR;
3973 
3974     {
3975         long item;
3976         long state;
3977         long stateMask;
3978          ::wxListCtrl *sipCpp;
3979 
3980         static const char *sipKwdList[] = {
3981             sipName_item,
3982             sipName_state,
3983             sipName_stateMask,
3984         };
3985 
3986         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Blll", &sipSelf, sipType_wxListCtrl, &sipCpp, &item, &state, &stateMask))
3987         {
3988             bool sipRes;
3989 
3990             PyErr_Clear();
3991 
3992             Py_BEGIN_ALLOW_THREADS
3993             sipRes = sipCpp->SetItemState(item,state,stateMask);
3994             Py_END_ALLOW_THREADS
3995 
3996             if (PyErr_Occurred())
3997                 return 0;
3998 
3999             return PyBool_FromLong(sipRes);
4000         }
4001     }
4002 
4003     /* Raise an exception if the arguments couldn't be parsed. */
4004     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_SetItemState, SIP_NULLPTR);
4005 
4006     return SIP_NULLPTR;
4007 }
4008 
4009 
4010 PyDoc_STRVAR(doc_wxListCtrl_SetItemText, "SetItemText(item, text)\n"
4011 "\n"
4012 "Sets the item text for this item.");
4013 
4014 extern "C" {static PyObject *meth_wxListCtrl_SetItemText(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_SetItemText(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)4015 static PyObject *meth_wxListCtrl_SetItemText(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
4016 {
4017     PyObject *sipParseErr = SIP_NULLPTR;
4018 
4019     {
4020         long item;
4021         const  ::wxString* text;
4022         int textState = 0;
4023          ::wxListCtrl *sipCpp;
4024 
4025         static const char *sipKwdList[] = {
4026             sipName_item,
4027             sipName_text,
4028         };
4029 
4030         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BlJ1", &sipSelf, sipType_wxListCtrl, &sipCpp, &item, sipType_wxString,&text, &textState))
4031         {
4032             PyErr_Clear();
4033 
4034             Py_BEGIN_ALLOW_THREADS
4035             sipCpp->SetItemText(item,*text);
4036             Py_END_ALLOW_THREADS
4037             sipReleaseType(const_cast< ::wxString *>(text),sipType_wxString,textState);
4038 
4039             if (PyErr_Occurred())
4040                 return 0;
4041 
4042             Py_INCREF(Py_None);
4043             return Py_None;
4044         }
4045     }
4046 
4047     /* Raise an exception if the arguments couldn't be parsed. */
4048     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_SetItemText, SIP_NULLPTR);
4049 
4050     return SIP_NULLPTR;
4051 }
4052 
4053 
4054 PyDoc_STRVAR(doc_wxListCtrl_SetItemTextColour, "SetItemTextColour(item, col)\n"
4055 "\n"
4056 "Sets the colour for this item.");
4057 
4058 extern "C" {static PyObject *meth_wxListCtrl_SetItemTextColour(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_SetItemTextColour(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)4059 static PyObject *meth_wxListCtrl_SetItemTextColour(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
4060 {
4061     PyObject *sipParseErr = SIP_NULLPTR;
4062 
4063     {
4064         long item;
4065         const  ::wxColour* col;
4066         int colState = 0;
4067          ::wxListCtrl *sipCpp;
4068 
4069         static const char *sipKwdList[] = {
4070             sipName_item,
4071             sipName_col,
4072         };
4073 
4074         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BlJ1", &sipSelf, sipType_wxListCtrl, &sipCpp, &item, sipType_wxColour, &col, &colState))
4075         {
4076             PyErr_Clear();
4077 
4078             Py_BEGIN_ALLOW_THREADS
4079             sipCpp->SetItemTextColour(item,*col);
4080             Py_END_ALLOW_THREADS
4081             sipReleaseType(const_cast< ::wxColour *>(col),sipType_wxColour,colState);
4082 
4083             if (PyErr_Occurred())
4084                 return 0;
4085 
4086             Py_INCREF(Py_None);
4087             return Py_None;
4088         }
4089     }
4090 
4091     /* Raise an exception if the arguments couldn't be parsed. */
4092     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_SetItemTextColour, SIP_NULLPTR);
4093 
4094     return SIP_NULLPTR;
4095 }
4096 
4097 
4098 PyDoc_STRVAR(doc_wxListCtrl_SetSingleStyle, "SetSingleStyle(style, add=True)\n"
4099 "\n"
4100 "Adds or removes a single window style.");
4101 
4102 extern "C" {static PyObject *meth_wxListCtrl_SetSingleStyle(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_SetSingleStyle(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)4103 static PyObject *meth_wxListCtrl_SetSingleStyle(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
4104 {
4105     PyObject *sipParseErr = SIP_NULLPTR;
4106 
4107     {
4108         long style;
4109         bool add = 1;
4110          ::wxListCtrl *sipCpp;
4111 
4112         static const char *sipKwdList[] = {
4113             sipName_style,
4114             sipName_add,
4115         };
4116 
4117         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bl|b", &sipSelf, sipType_wxListCtrl, &sipCpp, &style, &add))
4118         {
4119             PyErr_Clear();
4120 
4121             Py_BEGIN_ALLOW_THREADS
4122             sipCpp->SetSingleStyle(style,add);
4123             Py_END_ALLOW_THREADS
4124 
4125             if (PyErr_Occurred())
4126                 return 0;
4127 
4128             Py_INCREF(Py_None);
4129             return Py_None;
4130         }
4131     }
4132 
4133     /* Raise an exception if the arguments couldn't be parsed. */
4134     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_SetSingleStyle, SIP_NULLPTR);
4135 
4136     return SIP_NULLPTR;
4137 }
4138 
4139 
4140 PyDoc_STRVAR(doc_wxListCtrl_SetTextColour, "SetTextColour(col)\n"
4141 "\n"
4142 "Sets the text colour of the list control.");
4143 
4144 extern "C" {static PyObject *meth_wxListCtrl_SetTextColour(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_SetTextColour(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)4145 static PyObject *meth_wxListCtrl_SetTextColour(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
4146 {
4147     PyObject *sipParseErr = SIP_NULLPTR;
4148 
4149     {
4150         const  ::wxColour* col;
4151         int colState = 0;
4152          ::wxListCtrl *sipCpp;
4153 
4154         static const char *sipKwdList[] = {
4155             sipName_col,
4156         };
4157 
4158         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxListCtrl, &sipCpp, sipType_wxColour, &col, &colState))
4159         {
4160             PyErr_Clear();
4161 
4162             Py_BEGIN_ALLOW_THREADS
4163             sipCpp->SetTextColour(*col);
4164             Py_END_ALLOW_THREADS
4165             sipReleaseType(const_cast< ::wxColour *>(col),sipType_wxColour,colState);
4166 
4167             if (PyErr_Occurred())
4168                 return 0;
4169 
4170             Py_INCREF(Py_None);
4171             return Py_None;
4172         }
4173     }
4174 
4175     /* Raise an exception if the arguments couldn't be parsed. */
4176     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_SetTextColour, SIP_NULLPTR);
4177 
4178     return SIP_NULLPTR;
4179 }
4180 
4181 
4182 PyDoc_STRVAR(doc_wxListCtrl_SetWindowStyleFlag, "SetWindowStyleFlag(style)\n"
4183 "\n"
4184 "Sets the whole window style, deleting all items.");
4185 
4186 extern "C" {static PyObject *meth_wxListCtrl_SetWindowStyleFlag(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_SetWindowStyleFlag(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)4187 static PyObject *meth_wxListCtrl_SetWindowStyleFlag(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
4188 {
4189     PyObject *sipParseErr = SIP_NULLPTR;
4190 
4191     {
4192         long style;
4193          ::wxListCtrl *sipCpp;
4194 
4195         static const char *sipKwdList[] = {
4196             sipName_style,
4197         };
4198 
4199         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bl", &sipSelf, sipType_wxListCtrl, &sipCpp, &style))
4200         {
4201             PyErr_Clear();
4202 
4203             Py_BEGIN_ALLOW_THREADS
4204             sipCpp->SetWindowStyleFlag(style);
4205             Py_END_ALLOW_THREADS
4206 
4207             if (PyErr_Occurred())
4208                 return 0;
4209 
4210             Py_INCREF(Py_None);
4211             return Py_None;
4212         }
4213     }
4214 
4215     /* Raise an exception if the arguments couldn't be parsed. */
4216     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_SetWindowStyleFlag, SIP_NULLPTR);
4217 
4218     return SIP_NULLPTR;
4219 }
4220 
4221 
4222 PyDoc_STRVAR(doc_wxListCtrl_SortItems, "SortItems(fnSortCallBack) -> bool\n"
4223 "\n"
4224 "Call this function to sort the items in the list control.");
4225 
4226 extern "C" {static PyObject *meth_wxListCtrl_SortItems(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_SortItems(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)4227 static PyObject *meth_wxListCtrl_SortItems(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
4228 {
4229     PyObject *sipParseErr = SIP_NULLPTR;
4230 
4231     {
4232         PyObject * fnSortCallBack;
4233          ::wxListCtrl *sipCpp;
4234 
4235         static const char *sipKwdList[] = {
4236             sipName_fnSortCallBack,
4237         };
4238 
4239         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BP0", &sipSelf, sipType_wxListCtrl, &sipCpp, &fnSortCallBack))
4240         {
4241             bool sipRes = 0;
4242             int sipIsErr = 0;
4243 
4244         PyErr_Clear();
4245         Py_BEGIN_ALLOW_THREADS
4246         sipRes = _wxListCtrl_SortItems(sipCpp, fnSortCallBack);
4247         Py_END_ALLOW_THREADS
4248         if (PyErr_Occurred()) sipIsErr = 1;
4249 
4250             if (sipIsErr)
4251                 return 0;
4252 
4253             return PyBool_FromLong(sipRes);
4254         }
4255     }
4256 
4257     /* Raise an exception if the arguments couldn't be parsed. */
4258     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_SortItems, SIP_NULLPTR);
4259 
4260     return SIP_NULLPTR;
4261 }
4262 
4263 
4264 PyDoc_STRVAR(doc_wxListCtrl_GetClientAreaOrigin, "GetClientAreaOrigin(self) -> Point");
4265 
4266 extern "C" {static PyObject *meth_wxListCtrl_GetClientAreaOrigin(PyObject *, PyObject *);}
meth_wxListCtrl_GetClientAreaOrigin(PyObject * sipSelf,PyObject * sipArgs)4267 static PyObject *meth_wxListCtrl_GetClientAreaOrigin(PyObject *sipSelf, PyObject *sipArgs)
4268 {
4269     PyObject *sipParseErr = SIP_NULLPTR;
4270     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4271 
4272     {
4273         const  ::wxListCtrl *sipCpp;
4274 
4275         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxListCtrl, &sipCpp))
4276         {
4277              ::wxPoint*sipRes;
4278 
4279             PyErr_Clear();
4280 
4281             Py_BEGIN_ALLOW_THREADS
4282             sipRes = new  ::wxPoint((sipSelfWasArg ? sipCpp-> ::wxListCtrl::GetClientAreaOrigin() : sipCpp->GetClientAreaOrigin()));
4283             Py_END_ALLOW_THREADS
4284 
4285             if (PyErr_Occurred())
4286                 return 0;
4287 
4288             return sipConvertFromNewType(sipRes,sipType_wxPoint,SIP_NULLPTR);
4289         }
4290     }
4291 
4292     /* Raise an exception if the arguments couldn't be parsed. */
4293     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_GetClientAreaOrigin, doc_wxListCtrl_GetClientAreaOrigin);
4294 
4295     return SIP_NULLPTR;
4296 }
4297 
4298 
4299 PyDoc_STRVAR(doc_wxListCtrl_Validate, "Validate(self) -> bool");
4300 
4301 extern "C" {static PyObject *meth_wxListCtrl_Validate(PyObject *, PyObject *);}
meth_wxListCtrl_Validate(PyObject * sipSelf,PyObject * sipArgs)4302 static PyObject *meth_wxListCtrl_Validate(PyObject *sipSelf, PyObject *sipArgs)
4303 {
4304     PyObject *sipParseErr = SIP_NULLPTR;
4305     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4306 
4307     {
4308          ::wxListCtrl *sipCpp;
4309 
4310         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxListCtrl, &sipCpp))
4311         {
4312             bool sipRes;
4313 
4314             PyErr_Clear();
4315 
4316             Py_BEGIN_ALLOW_THREADS
4317             sipRes = (sipSelfWasArg ? sipCpp-> ::wxListCtrl::Validate() : sipCpp->Validate());
4318             Py_END_ALLOW_THREADS
4319 
4320             if (PyErr_Occurred())
4321                 return 0;
4322 
4323             return PyBool_FromLong(sipRes);
4324         }
4325     }
4326 
4327     /* Raise an exception if the arguments couldn't be parsed. */
4328     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_Validate, doc_wxListCtrl_Validate);
4329 
4330     return SIP_NULLPTR;
4331 }
4332 
4333 
4334 PyDoc_STRVAR(doc_wxListCtrl_TransferDataToWindow, "TransferDataToWindow(self) -> bool");
4335 
4336 extern "C" {static PyObject *meth_wxListCtrl_TransferDataToWindow(PyObject *, PyObject *);}
meth_wxListCtrl_TransferDataToWindow(PyObject * sipSelf,PyObject * sipArgs)4337 static PyObject *meth_wxListCtrl_TransferDataToWindow(PyObject *sipSelf, PyObject *sipArgs)
4338 {
4339     PyObject *sipParseErr = SIP_NULLPTR;
4340     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4341 
4342     {
4343          ::wxListCtrl *sipCpp;
4344 
4345         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxListCtrl, &sipCpp))
4346         {
4347             bool sipRes;
4348 
4349             PyErr_Clear();
4350 
4351             Py_BEGIN_ALLOW_THREADS
4352             sipRes = (sipSelfWasArg ? sipCpp-> ::wxListCtrl::TransferDataToWindow() : sipCpp->TransferDataToWindow());
4353             Py_END_ALLOW_THREADS
4354 
4355             if (PyErr_Occurred())
4356                 return 0;
4357 
4358             return PyBool_FromLong(sipRes);
4359         }
4360     }
4361 
4362     /* Raise an exception if the arguments couldn't be parsed. */
4363     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_TransferDataToWindow, doc_wxListCtrl_TransferDataToWindow);
4364 
4365     return SIP_NULLPTR;
4366 }
4367 
4368 
4369 PyDoc_STRVAR(doc_wxListCtrl_TransferDataFromWindow, "TransferDataFromWindow(self) -> bool");
4370 
4371 extern "C" {static PyObject *meth_wxListCtrl_TransferDataFromWindow(PyObject *, PyObject *);}
meth_wxListCtrl_TransferDataFromWindow(PyObject * sipSelf,PyObject * sipArgs)4372 static PyObject *meth_wxListCtrl_TransferDataFromWindow(PyObject *sipSelf, PyObject *sipArgs)
4373 {
4374     PyObject *sipParseErr = SIP_NULLPTR;
4375     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4376 
4377     {
4378          ::wxListCtrl *sipCpp;
4379 
4380         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxListCtrl, &sipCpp))
4381         {
4382             bool sipRes;
4383 
4384             PyErr_Clear();
4385 
4386             Py_BEGIN_ALLOW_THREADS
4387             sipRes = (sipSelfWasArg ? sipCpp-> ::wxListCtrl::TransferDataFromWindow() : sipCpp->TransferDataFromWindow());
4388             Py_END_ALLOW_THREADS
4389 
4390             if (PyErr_Occurred())
4391                 return 0;
4392 
4393             return PyBool_FromLong(sipRes);
4394         }
4395     }
4396 
4397     /* Raise an exception if the arguments couldn't be parsed. */
4398     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_TransferDataFromWindow, doc_wxListCtrl_TransferDataFromWindow);
4399 
4400     return SIP_NULLPTR;
4401 }
4402 
4403 
4404 PyDoc_STRVAR(doc_wxListCtrl_InitDialog, "InitDialog(self)");
4405 
4406 extern "C" {static PyObject *meth_wxListCtrl_InitDialog(PyObject *, PyObject *);}
meth_wxListCtrl_InitDialog(PyObject * sipSelf,PyObject * sipArgs)4407 static PyObject *meth_wxListCtrl_InitDialog(PyObject *sipSelf, PyObject *sipArgs)
4408 {
4409     PyObject *sipParseErr = SIP_NULLPTR;
4410     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4411 
4412     {
4413          ::wxListCtrl *sipCpp;
4414 
4415         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxListCtrl, &sipCpp))
4416         {
4417             PyErr_Clear();
4418 
4419             Py_BEGIN_ALLOW_THREADS
4420             (sipSelfWasArg ? sipCpp-> ::wxListCtrl::InitDialog() : sipCpp->InitDialog());
4421             Py_END_ALLOW_THREADS
4422 
4423             if (PyErr_Occurred())
4424                 return 0;
4425 
4426             Py_INCREF(Py_None);
4427             return Py_None;
4428         }
4429     }
4430 
4431     /* Raise an exception if the arguments couldn't be parsed. */
4432     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_InitDialog, doc_wxListCtrl_InitDialog);
4433 
4434     return SIP_NULLPTR;
4435 }
4436 
4437 
4438 PyDoc_STRVAR(doc_wxListCtrl_AcceptsFocus, "AcceptsFocus(self) -> bool");
4439 
4440 extern "C" {static PyObject *meth_wxListCtrl_AcceptsFocus(PyObject *, PyObject *);}
meth_wxListCtrl_AcceptsFocus(PyObject * sipSelf,PyObject * sipArgs)4441 static PyObject *meth_wxListCtrl_AcceptsFocus(PyObject *sipSelf, PyObject *sipArgs)
4442 {
4443     PyObject *sipParseErr = SIP_NULLPTR;
4444     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4445 
4446     {
4447         const  ::wxListCtrl *sipCpp;
4448 
4449         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxListCtrl, &sipCpp))
4450         {
4451             bool sipRes;
4452 
4453             PyErr_Clear();
4454 
4455             Py_BEGIN_ALLOW_THREADS
4456             sipRes = (sipSelfWasArg ? sipCpp-> ::wxListCtrl::AcceptsFocus() : sipCpp->AcceptsFocus());
4457             Py_END_ALLOW_THREADS
4458 
4459             if (PyErr_Occurred())
4460                 return 0;
4461 
4462             return PyBool_FromLong(sipRes);
4463         }
4464     }
4465 
4466     /* Raise an exception if the arguments couldn't be parsed. */
4467     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_AcceptsFocus, doc_wxListCtrl_AcceptsFocus);
4468 
4469     return SIP_NULLPTR;
4470 }
4471 
4472 
4473 PyDoc_STRVAR(doc_wxListCtrl_AcceptsFocusRecursively, "AcceptsFocusRecursively(self) -> bool");
4474 
4475 extern "C" {static PyObject *meth_wxListCtrl_AcceptsFocusRecursively(PyObject *, PyObject *);}
meth_wxListCtrl_AcceptsFocusRecursively(PyObject * sipSelf,PyObject * sipArgs)4476 static PyObject *meth_wxListCtrl_AcceptsFocusRecursively(PyObject *sipSelf, PyObject *sipArgs)
4477 {
4478     PyObject *sipParseErr = SIP_NULLPTR;
4479     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4480 
4481     {
4482         const  ::wxListCtrl *sipCpp;
4483 
4484         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxListCtrl, &sipCpp))
4485         {
4486             bool sipRes;
4487 
4488             PyErr_Clear();
4489 
4490             Py_BEGIN_ALLOW_THREADS
4491             sipRes = (sipSelfWasArg ? sipCpp-> ::wxListCtrl::AcceptsFocusRecursively() : sipCpp->AcceptsFocusRecursively());
4492             Py_END_ALLOW_THREADS
4493 
4494             if (PyErr_Occurred())
4495                 return 0;
4496 
4497             return PyBool_FromLong(sipRes);
4498         }
4499     }
4500 
4501     /* Raise an exception if the arguments couldn't be parsed. */
4502     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_AcceptsFocusRecursively, doc_wxListCtrl_AcceptsFocusRecursively);
4503 
4504     return SIP_NULLPTR;
4505 }
4506 
4507 
4508 PyDoc_STRVAR(doc_wxListCtrl_AcceptsFocusFromKeyboard, "AcceptsFocusFromKeyboard(self) -> bool");
4509 
4510 extern "C" {static PyObject *meth_wxListCtrl_AcceptsFocusFromKeyboard(PyObject *, PyObject *);}
meth_wxListCtrl_AcceptsFocusFromKeyboard(PyObject * sipSelf,PyObject * sipArgs)4511 static PyObject *meth_wxListCtrl_AcceptsFocusFromKeyboard(PyObject *sipSelf, PyObject *sipArgs)
4512 {
4513     PyObject *sipParseErr = SIP_NULLPTR;
4514     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4515 
4516     {
4517         const  ::wxListCtrl *sipCpp;
4518 
4519         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxListCtrl, &sipCpp))
4520         {
4521             bool sipRes;
4522 
4523             PyErr_Clear();
4524 
4525             Py_BEGIN_ALLOW_THREADS
4526             sipRes = (sipSelfWasArg ? sipCpp-> ::wxListCtrl::AcceptsFocusFromKeyboard() : sipCpp->AcceptsFocusFromKeyboard());
4527             Py_END_ALLOW_THREADS
4528 
4529             if (PyErr_Occurred())
4530                 return 0;
4531 
4532             return PyBool_FromLong(sipRes);
4533         }
4534     }
4535 
4536     /* Raise an exception if the arguments couldn't be parsed. */
4537     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_AcceptsFocusFromKeyboard, doc_wxListCtrl_AcceptsFocusFromKeyboard);
4538 
4539     return SIP_NULLPTR;
4540 }
4541 
4542 
4543 PyDoc_STRVAR(doc_wxListCtrl_AddChild, "AddChild(self, child: WindowBase)");
4544 
4545 extern "C" {static PyObject *meth_wxListCtrl_AddChild(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_AddChild(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)4546 static PyObject *meth_wxListCtrl_AddChild(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
4547 {
4548     PyObject *sipParseErr = SIP_NULLPTR;
4549     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4550 
4551     {
4552          ::wxWindowBase* child;
4553          ::wxListCtrl *sipCpp;
4554 
4555         static const char *sipKwdList[] = {
4556             sipName_child,
4557         };
4558 
4559         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8", &sipSelf, sipType_wxListCtrl, &sipCpp, sipType_wxWindowBase, &child))
4560         {
4561             PyErr_Clear();
4562 
4563             Py_BEGIN_ALLOW_THREADS
4564             (sipSelfWasArg ? sipCpp-> ::wxListCtrl::AddChild(child) : sipCpp->AddChild(child));
4565             Py_END_ALLOW_THREADS
4566 
4567             if (PyErr_Occurred())
4568                 return 0;
4569 
4570             Py_INCREF(Py_None);
4571             return Py_None;
4572         }
4573     }
4574 
4575     /* Raise an exception if the arguments couldn't be parsed. */
4576     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_AddChild, doc_wxListCtrl_AddChild);
4577 
4578     return SIP_NULLPTR;
4579 }
4580 
4581 
4582 PyDoc_STRVAR(doc_wxListCtrl_RemoveChild, "RemoveChild(self, child: WindowBase)");
4583 
4584 extern "C" {static PyObject *meth_wxListCtrl_RemoveChild(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_RemoveChild(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)4585 static PyObject *meth_wxListCtrl_RemoveChild(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
4586 {
4587     PyObject *sipParseErr = SIP_NULLPTR;
4588     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4589 
4590     {
4591          ::wxWindowBase* child;
4592          ::wxListCtrl *sipCpp;
4593 
4594         static const char *sipKwdList[] = {
4595             sipName_child,
4596         };
4597 
4598         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8", &sipSelf, sipType_wxListCtrl, &sipCpp, sipType_wxWindowBase, &child))
4599         {
4600             PyErr_Clear();
4601 
4602             Py_BEGIN_ALLOW_THREADS
4603             (sipSelfWasArg ? sipCpp-> ::wxListCtrl::RemoveChild(child) : sipCpp->RemoveChild(child));
4604             Py_END_ALLOW_THREADS
4605 
4606             if (PyErr_Occurred())
4607                 return 0;
4608 
4609             Py_INCREF(Py_None);
4610             return Py_None;
4611         }
4612     }
4613 
4614     /* Raise an exception if the arguments couldn't be parsed. */
4615     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_RemoveChild, doc_wxListCtrl_RemoveChild);
4616 
4617     return SIP_NULLPTR;
4618 }
4619 
4620 
4621 PyDoc_STRVAR(doc_wxListCtrl_InheritAttributes, "InheritAttributes(self)");
4622 
4623 extern "C" {static PyObject *meth_wxListCtrl_InheritAttributes(PyObject *, PyObject *);}
meth_wxListCtrl_InheritAttributes(PyObject * sipSelf,PyObject * sipArgs)4624 static PyObject *meth_wxListCtrl_InheritAttributes(PyObject *sipSelf, PyObject *sipArgs)
4625 {
4626     PyObject *sipParseErr = SIP_NULLPTR;
4627     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4628 
4629     {
4630          ::wxListCtrl *sipCpp;
4631 
4632         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxListCtrl, &sipCpp))
4633         {
4634             PyErr_Clear();
4635 
4636             Py_BEGIN_ALLOW_THREADS
4637             (sipSelfWasArg ? sipCpp-> ::wxListCtrl::InheritAttributes() : sipCpp->InheritAttributes());
4638             Py_END_ALLOW_THREADS
4639 
4640             if (PyErr_Occurred())
4641                 return 0;
4642 
4643             Py_INCREF(Py_None);
4644             return Py_None;
4645         }
4646     }
4647 
4648     /* Raise an exception if the arguments couldn't be parsed. */
4649     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_InheritAttributes, doc_wxListCtrl_InheritAttributes);
4650 
4651     return SIP_NULLPTR;
4652 }
4653 
4654 
4655 PyDoc_STRVAR(doc_wxListCtrl_ShouldInheritColours, "ShouldInheritColours(self) -> bool");
4656 
4657 extern "C" {static PyObject *meth_wxListCtrl_ShouldInheritColours(PyObject *, PyObject *);}
meth_wxListCtrl_ShouldInheritColours(PyObject * sipSelf,PyObject * sipArgs)4658 static PyObject *meth_wxListCtrl_ShouldInheritColours(PyObject *sipSelf, PyObject *sipArgs)
4659 {
4660     PyObject *sipParseErr = SIP_NULLPTR;
4661     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4662 
4663     {
4664         const  ::wxListCtrl *sipCpp;
4665 
4666         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxListCtrl, &sipCpp))
4667         {
4668             bool sipRes;
4669 
4670             PyErr_Clear();
4671 
4672             Py_BEGIN_ALLOW_THREADS
4673             sipRes = (sipSelfWasArg ? sipCpp-> ::wxListCtrl::ShouldInheritColours() : sipCpp->ShouldInheritColours());
4674             Py_END_ALLOW_THREADS
4675 
4676             if (PyErr_Occurred())
4677                 return 0;
4678 
4679             return PyBool_FromLong(sipRes);
4680         }
4681     }
4682 
4683     /* Raise an exception if the arguments couldn't be parsed. */
4684     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_ShouldInheritColours, doc_wxListCtrl_ShouldInheritColours);
4685 
4686     return SIP_NULLPTR;
4687 }
4688 
4689 
4690 PyDoc_STRVAR(doc_wxListCtrl_OnInternalIdle, "OnInternalIdle(self)");
4691 
4692 extern "C" {static PyObject *meth_wxListCtrl_OnInternalIdle(PyObject *, PyObject *);}
meth_wxListCtrl_OnInternalIdle(PyObject * sipSelf,PyObject * sipArgs)4693 static PyObject *meth_wxListCtrl_OnInternalIdle(PyObject *sipSelf, PyObject *sipArgs)
4694 {
4695     PyObject *sipParseErr = SIP_NULLPTR;
4696     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4697 
4698     {
4699          ::wxListCtrl *sipCpp;
4700 
4701         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxListCtrl, &sipCpp))
4702         {
4703             PyErr_Clear();
4704 
4705             Py_BEGIN_ALLOW_THREADS
4706             (sipSelfWasArg ? sipCpp-> ::wxListCtrl::OnInternalIdle() : sipCpp->OnInternalIdle());
4707             Py_END_ALLOW_THREADS
4708 
4709             if (PyErr_Occurred())
4710                 return 0;
4711 
4712             Py_INCREF(Py_None);
4713             return Py_None;
4714         }
4715     }
4716 
4717     /* Raise an exception if the arguments couldn't be parsed. */
4718     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_OnInternalIdle, doc_wxListCtrl_OnInternalIdle);
4719 
4720     return SIP_NULLPTR;
4721 }
4722 
4723 
4724 PyDoc_STRVAR(doc_wxListCtrl_GetMainWindowOfCompositeControl, "GetMainWindowOfCompositeControl(self) -> Window");
4725 
4726 extern "C" {static PyObject *meth_wxListCtrl_GetMainWindowOfCompositeControl(PyObject *, PyObject *);}
meth_wxListCtrl_GetMainWindowOfCompositeControl(PyObject * sipSelf,PyObject * sipArgs)4727 static PyObject *meth_wxListCtrl_GetMainWindowOfCompositeControl(PyObject *sipSelf, PyObject *sipArgs)
4728 {
4729     PyObject *sipParseErr = SIP_NULLPTR;
4730     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4731 
4732     {
4733          ::wxListCtrl *sipCpp;
4734 
4735         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxListCtrl, &sipCpp))
4736         {
4737              ::wxWindow*sipRes;
4738 
4739             PyErr_Clear();
4740 
4741             Py_BEGIN_ALLOW_THREADS
4742             sipRes = (sipSelfWasArg ? sipCpp-> ::wxListCtrl::GetMainWindowOfCompositeControl() : sipCpp->GetMainWindowOfCompositeControl());
4743             Py_END_ALLOW_THREADS
4744 
4745             if (PyErr_Occurred())
4746                 return 0;
4747 
4748             return sipConvertFromType(sipRes,sipType_wxWindow,SIP_NULLPTR);
4749         }
4750     }
4751 
4752     /* Raise an exception if the arguments couldn't be parsed. */
4753     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_GetMainWindowOfCompositeControl, doc_wxListCtrl_GetMainWindowOfCompositeControl);
4754 
4755     return SIP_NULLPTR;
4756 }
4757 
4758 
4759 PyDoc_STRVAR(doc_wxListCtrl_InformFirstDirection, "InformFirstDirection(self, direction: int, size: int, availableOtherDir: int) -> bool");
4760 
4761 extern "C" {static PyObject *meth_wxListCtrl_InformFirstDirection(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_InformFirstDirection(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)4762 static PyObject *meth_wxListCtrl_InformFirstDirection(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
4763 {
4764     PyObject *sipParseErr = SIP_NULLPTR;
4765     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4766 
4767     {
4768         int direction;
4769         int size;
4770         int availableOtherDir;
4771          ::wxListCtrl *sipCpp;
4772 
4773         static const char *sipKwdList[] = {
4774             sipName_direction,
4775             sipName_size,
4776             sipName_availableOtherDir,
4777         };
4778 
4779         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biii", &sipSelf, sipType_wxListCtrl, &sipCpp, &direction, &size, &availableOtherDir))
4780         {
4781             bool sipRes;
4782 
4783             PyErr_Clear();
4784 
4785             Py_BEGIN_ALLOW_THREADS
4786             sipRes = (sipSelfWasArg ? sipCpp-> ::wxListCtrl::InformFirstDirection(direction,size,availableOtherDir) : sipCpp->InformFirstDirection(direction,size,availableOtherDir));
4787             Py_END_ALLOW_THREADS
4788 
4789             if (PyErr_Occurred())
4790                 return 0;
4791 
4792             return PyBool_FromLong(sipRes);
4793         }
4794     }
4795 
4796     /* Raise an exception if the arguments couldn't be parsed. */
4797     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_InformFirstDirection, doc_wxListCtrl_InformFirstDirection);
4798 
4799     return SIP_NULLPTR;
4800 }
4801 
4802 
4803 PyDoc_STRVAR(doc_wxListCtrl_SetCanFocus, "SetCanFocus(self, canFocus: bool)");
4804 
4805 extern "C" {static PyObject *meth_wxListCtrl_SetCanFocus(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_SetCanFocus(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)4806 static PyObject *meth_wxListCtrl_SetCanFocus(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
4807 {
4808     PyObject *sipParseErr = SIP_NULLPTR;
4809     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4810 
4811     {
4812         bool canFocus;
4813          ::wxListCtrl *sipCpp;
4814 
4815         static const char *sipKwdList[] = {
4816             sipName_canFocus,
4817         };
4818 
4819         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bb", &sipSelf, sipType_wxListCtrl, &sipCpp, &canFocus))
4820         {
4821             PyErr_Clear();
4822 
4823             Py_BEGIN_ALLOW_THREADS
4824             (sipSelfWasArg ? sipCpp-> ::wxListCtrl::SetCanFocus(canFocus) : sipCpp->SetCanFocus(canFocus));
4825             Py_END_ALLOW_THREADS
4826 
4827             if (PyErr_Occurred())
4828                 return 0;
4829 
4830             Py_INCREF(Py_None);
4831             return Py_None;
4832         }
4833     }
4834 
4835     /* Raise an exception if the arguments couldn't be parsed. */
4836     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_SetCanFocus, doc_wxListCtrl_SetCanFocus);
4837 
4838     return SIP_NULLPTR;
4839 }
4840 
4841 
4842 PyDoc_STRVAR(doc_wxListCtrl_Destroy, "Destroy(self) -> bool");
4843 
4844 extern "C" {static PyObject *meth_wxListCtrl_Destroy(PyObject *, PyObject *);}
meth_wxListCtrl_Destroy(PyObject * sipSelf,PyObject * sipArgs)4845 static PyObject *meth_wxListCtrl_Destroy(PyObject *sipSelf, PyObject *sipArgs)
4846 {
4847     PyObject *sipParseErr = SIP_NULLPTR;
4848     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4849 
4850     {
4851          ::wxListCtrl *sipCpp;
4852 
4853         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxListCtrl, &sipCpp))
4854         {
4855             bool sipRes;
4856 
4857             PyErr_Clear();
4858 
4859             Py_BEGIN_ALLOW_THREADS
4860             sipRes = (sipSelfWasArg ? sipCpp-> ::wxListCtrl::Destroy() : sipCpp->Destroy());
4861             Py_END_ALLOW_THREADS
4862 
4863             if (PyErr_Occurred())
4864                 return 0;
4865 
4866             return PyBool_FromLong(sipRes);
4867         }
4868     }
4869 
4870     /* Raise an exception if the arguments couldn't be parsed. */
4871     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_Destroy, doc_wxListCtrl_Destroy);
4872 
4873     return SIP_NULLPTR;
4874 }
4875 
4876 
4877 PyDoc_STRVAR(doc_wxListCtrl_SetValidator, "SetValidator(self, validator: Validator)");
4878 
4879 extern "C" {static PyObject *meth_wxListCtrl_SetValidator(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_SetValidator(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)4880 static PyObject *meth_wxListCtrl_SetValidator(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
4881 {
4882     PyObject *sipParseErr = SIP_NULLPTR;
4883     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4884 
4885     {
4886         const  ::wxValidator* validator;
4887          ::wxListCtrl *sipCpp;
4888 
4889         static const char *sipKwdList[] = {
4890             sipName_validator,
4891         };
4892 
4893         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxListCtrl, &sipCpp, sipType_wxValidator, &validator))
4894         {
4895             PyErr_Clear();
4896 
4897             Py_BEGIN_ALLOW_THREADS
4898             (sipSelfWasArg ? sipCpp-> ::wxListCtrl::SetValidator(*validator) : sipCpp->SetValidator(*validator));
4899             Py_END_ALLOW_THREADS
4900 
4901             if (PyErr_Occurred())
4902                 return 0;
4903 
4904             Py_INCREF(Py_None);
4905             return Py_None;
4906         }
4907     }
4908 
4909     /* Raise an exception if the arguments couldn't be parsed. */
4910     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_SetValidator, doc_wxListCtrl_SetValidator);
4911 
4912     return SIP_NULLPTR;
4913 }
4914 
4915 
4916 PyDoc_STRVAR(doc_wxListCtrl_GetValidator, "GetValidator(self) -> Validator");
4917 
4918 extern "C" {static PyObject *meth_wxListCtrl_GetValidator(PyObject *, PyObject *);}
meth_wxListCtrl_GetValidator(PyObject * sipSelf,PyObject * sipArgs)4919 static PyObject *meth_wxListCtrl_GetValidator(PyObject *sipSelf, PyObject *sipArgs)
4920 {
4921     PyObject *sipParseErr = SIP_NULLPTR;
4922     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4923 
4924     {
4925          ::wxListCtrl *sipCpp;
4926 
4927         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxListCtrl, &sipCpp))
4928         {
4929              ::wxValidator*sipRes;
4930 
4931             PyErr_Clear();
4932 
4933             Py_BEGIN_ALLOW_THREADS
4934             sipRes = (sipSelfWasArg ? sipCpp-> ::wxListCtrl::GetValidator() : sipCpp->GetValidator());
4935             Py_END_ALLOW_THREADS
4936 
4937             if (PyErr_Occurred())
4938                 return 0;
4939 
4940             return sipConvertFromType(sipRes,sipType_wxValidator,SIP_NULLPTR);
4941         }
4942     }
4943 
4944     /* Raise an exception if the arguments couldn't be parsed. */
4945     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_GetValidator, doc_wxListCtrl_GetValidator);
4946 
4947     return SIP_NULLPTR;
4948 }
4949 
4950 
4951 PyDoc_STRVAR(doc_wxListCtrl_ProcessEvent, "ProcessEvent(self, event: Event) -> bool");
4952 
4953 extern "C" {static PyObject *meth_wxListCtrl_ProcessEvent(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_ProcessEvent(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)4954 static PyObject *meth_wxListCtrl_ProcessEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
4955 {
4956     PyObject *sipParseErr = SIP_NULLPTR;
4957     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4958 
4959     {
4960          ::wxEvent* event;
4961         sipwxListCtrl *sipCpp;
4962 
4963         static const char *sipKwdList[] = {
4964             sipName_event,
4965         };
4966 
4967         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxListCtrl, &sipCpp, sipType_wxEvent, &event))
4968         {
4969             bool sipRes;
4970 
4971             PyErr_Clear();
4972 
4973             Py_BEGIN_ALLOW_THREADS
4974             sipRes = sipCpp->sipProtectVirt_ProcessEvent(sipSelfWasArg,*event);
4975             Py_END_ALLOW_THREADS
4976 
4977             if (PyErr_Occurred())
4978                 return 0;
4979 
4980             return PyBool_FromLong(sipRes);
4981         }
4982     }
4983 
4984     /* Raise an exception if the arguments couldn't be parsed. */
4985     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_ProcessEvent, doc_wxListCtrl_ProcessEvent);
4986 
4987     return SIP_NULLPTR;
4988 }
4989 
4990 
4991 PyDoc_STRVAR(doc_wxListCtrl_DoEnable, "DoEnable(self, enable: bool)");
4992 
4993 extern "C" {static PyObject *meth_wxListCtrl_DoEnable(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_DoEnable(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)4994 static PyObject *meth_wxListCtrl_DoEnable(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
4995 {
4996     PyObject *sipParseErr = SIP_NULLPTR;
4997     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
4998 
4999     {
5000         bool enable;
5001         sipwxListCtrl *sipCpp;
5002 
5003         static const char *sipKwdList[] = {
5004             sipName_enable,
5005         };
5006 
5007         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bb", &sipSelf, sipType_wxListCtrl, &sipCpp, &enable))
5008         {
5009             PyErr_Clear();
5010 
5011             Py_BEGIN_ALLOW_THREADS
5012             sipCpp->sipProtectVirt_DoEnable(sipSelfWasArg,enable);
5013             Py_END_ALLOW_THREADS
5014 
5015             if (PyErr_Occurred())
5016                 return 0;
5017 
5018             Py_INCREF(Py_None);
5019             return Py_None;
5020         }
5021     }
5022 
5023     /* Raise an exception if the arguments couldn't be parsed. */
5024     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_DoEnable, doc_wxListCtrl_DoEnable);
5025 
5026     return SIP_NULLPTR;
5027 }
5028 
5029 
5030 PyDoc_STRVAR(doc_wxListCtrl_DoGetPosition, "DoGetPosition(self) -> Tuple[int, int]");
5031 
5032 extern "C" {static PyObject *meth_wxListCtrl_DoGetPosition(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_DoGetPosition(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)5033 static PyObject *meth_wxListCtrl_DoGetPosition(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
5034 {
5035     PyObject *sipParseErr = SIP_NULLPTR;
5036     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
5037 
5038     {
5039         int x;
5040         int y;
5041         const sipwxListCtrl *sipCpp;
5042 
5043         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "B", &sipSelf, sipType_wxListCtrl, &sipCpp))
5044         {
5045             PyErr_Clear();
5046 
5047             Py_BEGIN_ALLOW_THREADS
5048             sipCpp->sipProtectVirt_DoGetPosition(sipSelfWasArg,&x,&y);
5049             Py_END_ALLOW_THREADS
5050 
5051             if (PyErr_Occurred())
5052                 return 0;
5053 
5054             return sipBuildResult(0,"(ii)",x,y);
5055         }
5056     }
5057 
5058     /* Raise an exception if the arguments couldn't be parsed. */
5059     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_DoGetPosition, doc_wxListCtrl_DoGetPosition);
5060 
5061     return SIP_NULLPTR;
5062 }
5063 
5064 
5065 PyDoc_STRVAR(doc_wxListCtrl_DoGetSize, "DoGetSize(self) -> Tuple[int, int]");
5066 
5067 extern "C" {static PyObject *meth_wxListCtrl_DoGetSize(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_DoGetSize(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)5068 static PyObject *meth_wxListCtrl_DoGetSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
5069 {
5070     PyObject *sipParseErr = SIP_NULLPTR;
5071     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
5072 
5073     {
5074         int width;
5075         int height;
5076         const sipwxListCtrl *sipCpp;
5077 
5078         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "B", &sipSelf, sipType_wxListCtrl, &sipCpp))
5079         {
5080             PyErr_Clear();
5081 
5082             Py_BEGIN_ALLOW_THREADS
5083             sipCpp->sipProtectVirt_DoGetSize(sipSelfWasArg,&width,&height);
5084             Py_END_ALLOW_THREADS
5085 
5086             if (PyErr_Occurred())
5087                 return 0;
5088 
5089             return sipBuildResult(0,"(ii)",width,height);
5090         }
5091     }
5092 
5093     /* Raise an exception if the arguments couldn't be parsed. */
5094     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_DoGetSize, doc_wxListCtrl_DoGetSize);
5095 
5096     return SIP_NULLPTR;
5097 }
5098 
5099 
5100 PyDoc_STRVAR(doc_wxListCtrl_DoGetClientSize, "DoGetClientSize(self) -> Tuple[int, int]");
5101 
5102 extern "C" {static PyObject *meth_wxListCtrl_DoGetClientSize(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_DoGetClientSize(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)5103 static PyObject *meth_wxListCtrl_DoGetClientSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
5104 {
5105     PyObject *sipParseErr = SIP_NULLPTR;
5106     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
5107 
5108     {
5109         int width;
5110         int height;
5111         const sipwxListCtrl *sipCpp;
5112 
5113         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "B", &sipSelf, sipType_wxListCtrl, &sipCpp))
5114         {
5115             PyErr_Clear();
5116 
5117             Py_BEGIN_ALLOW_THREADS
5118             sipCpp->sipProtectVirt_DoGetClientSize(sipSelfWasArg,&width,&height);
5119             Py_END_ALLOW_THREADS
5120 
5121             if (PyErr_Occurred())
5122                 return 0;
5123 
5124             return sipBuildResult(0,"(ii)",width,height);
5125         }
5126     }
5127 
5128     /* Raise an exception if the arguments couldn't be parsed. */
5129     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_DoGetClientSize, doc_wxListCtrl_DoGetClientSize);
5130 
5131     return SIP_NULLPTR;
5132 }
5133 
5134 
5135 PyDoc_STRVAR(doc_wxListCtrl_DoGetBestSize, "DoGetBestSize(self) -> Size");
5136 
5137 extern "C" {static PyObject *meth_wxListCtrl_DoGetBestSize(PyObject *, PyObject *);}
meth_wxListCtrl_DoGetBestSize(PyObject * sipSelf,PyObject * sipArgs)5138 static PyObject *meth_wxListCtrl_DoGetBestSize(PyObject *sipSelf, PyObject *sipArgs)
5139 {
5140     PyObject *sipParseErr = SIP_NULLPTR;
5141     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
5142 
5143     {
5144         const sipwxListCtrl *sipCpp;
5145 
5146         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxListCtrl, &sipCpp))
5147         {
5148              ::wxSize*sipRes;
5149 
5150             PyErr_Clear();
5151 
5152             Py_BEGIN_ALLOW_THREADS
5153             sipRes = new  ::wxSize(sipCpp->sipProtectVirt_DoGetBestSize(sipSelfWasArg));
5154             Py_END_ALLOW_THREADS
5155 
5156             if (PyErr_Occurred())
5157                 return 0;
5158 
5159             return sipConvertFromNewType(sipRes,sipType_wxSize,SIP_NULLPTR);
5160         }
5161     }
5162 
5163     /* Raise an exception if the arguments couldn't be parsed. */
5164     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_DoGetBestSize, doc_wxListCtrl_DoGetBestSize);
5165 
5166     return SIP_NULLPTR;
5167 }
5168 
5169 
5170 PyDoc_STRVAR(doc_wxListCtrl_DoGetBestClientSize, "DoGetBestClientSize(self) -> Size");
5171 
5172 extern "C" {static PyObject *meth_wxListCtrl_DoGetBestClientSize(PyObject *, PyObject *);}
meth_wxListCtrl_DoGetBestClientSize(PyObject * sipSelf,PyObject * sipArgs)5173 static PyObject *meth_wxListCtrl_DoGetBestClientSize(PyObject *sipSelf, PyObject *sipArgs)
5174 {
5175     PyObject *sipParseErr = SIP_NULLPTR;
5176     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
5177 
5178     {
5179         const sipwxListCtrl *sipCpp;
5180 
5181         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxListCtrl, &sipCpp))
5182         {
5183              ::wxSize*sipRes;
5184 
5185             PyErr_Clear();
5186 
5187             Py_BEGIN_ALLOW_THREADS
5188             sipRes = new  ::wxSize(sipCpp->sipProtectVirt_DoGetBestClientSize(sipSelfWasArg));
5189             Py_END_ALLOW_THREADS
5190 
5191             if (PyErr_Occurred())
5192                 return 0;
5193 
5194             return sipConvertFromNewType(sipRes,sipType_wxSize,SIP_NULLPTR);
5195         }
5196     }
5197 
5198     /* Raise an exception if the arguments couldn't be parsed. */
5199     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_DoGetBestClientSize, doc_wxListCtrl_DoGetBestClientSize);
5200 
5201     return SIP_NULLPTR;
5202 }
5203 
5204 
5205 PyDoc_STRVAR(doc_wxListCtrl_DoSetSize, "DoSetSize(self, x: int, y: int, width: int, height: int, sizeFlags: int)");
5206 
5207 extern "C" {static PyObject *meth_wxListCtrl_DoSetSize(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_DoSetSize(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)5208 static PyObject *meth_wxListCtrl_DoSetSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
5209 {
5210     PyObject *sipParseErr = SIP_NULLPTR;
5211     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
5212 
5213     {
5214         int x;
5215         int y;
5216         int width;
5217         int height;
5218         int sizeFlags;
5219         sipwxListCtrl *sipCpp;
5220 
5221         static const char *sipKwdList[] = {
5222             sipName_x,
5223             sipName_y,
5224             sipName_width,
5225             sipName_height,
5226             sipName_sizeFlags,
5227         };
5228 
5229         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biiiii", &sipSelf, sipType_wxListCtrl, &sipCpp, &x, &y, &width, &height, &sizeFlags))
5230         {
5231             PyErr_Clear();
5232 
5233             Py_BEGIN_ALLOW_THREADS
5234             sipCpp->sipProtectVirt_DoSetSize(sipSelfWasArg,x,y,width,height,sizeFlags);
5235             Py_END_ALLOW_THREADS
5236 
5237             if (PyErr_Occurred())
5238                 return 0;
5239 
5240             Py_INCREF(Py_None);
5241             return Py_None;
5242         }
5243     }
5244 
5245     /* Raise an exception if the arguments couldn't be parsed. */
5246     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_DoSetSize, doc_wxListCtrl_DoSetSize);
5247 
5248     return SIP_NULLPTR;
5249 }
5250 
5251 
5252 PyDoc_STRVAR(doc_wxListCtrl_DoSetClientSize, "DoSetClientSize(self, width: int, height: int)");
5253 
5254 extern "C" {static PyObject *meth_wxListCtrl_DoSetClientSize(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_DoSetClientSize(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)5255 static PyObject *meth_wxListCtrl_DoSetClientSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
5256 {
5257     PyObject *sipParseErr = SIP_NULLPTR;
5258     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
5259 
5260     {
5261         int width;
5262         int height;
5263         sipwxListCtrl *sipCpp;
5264 
5265         static const char *sipKwdList[] = {
5266             sipName_width,
5267             sipName_height,
5268         };
5269 
5270         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bii", &sipSelf, sipType_wxListCtrl, &sipCpp, &width, &height))
5271         {
5272             PyErr_Clear();
5273 
5274             Py_BEGIN_ALLOW_THREADS
5275             sipCpp->sipProtectVirt_DoSetClientSize(sipSelfWasArg,width,height);
5276             Py_END_ALLOW_THREADS
5277 
5278             if (PyErr_Occurred())
5279                 return 0;
5280 
5281             Py_INCREF(Py_None);
5282             return Py_None;
5283         }
5284     }
5285 
5286     /* Raise an exception if the arguments couldn't be parsed. */
5287     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_DoSetClientSize, doc_wxListCtrl_DoSetClientSize);
5288 
5289     return SIP_NULLPTR;
5290 }
5291 
5292 
5293 PyDoc_STRVAR(doc_wxListCtrl_DoSetSizeHints, "DoSetSizeHints(self, minW: int, minH: int, maxW: int, maxH: int, incW: int, incH: int)");
5294 
5295 extern "C" {static PyObject *meth_wxListCtrl_DoSetSizeHints(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_DoSetSizeHints(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)5296 static PyObject *meth_wxListCtrl_DoSetSizeHints(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
5297 {
5298     PyObject *sipParseErr = SIP_NULLPTR;
5299     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
5300 
5301     {
5302         int minW;
5303         int minH;
5304         int maxW;
5305         int maxH;
5306         int incW;
5307         int incH;
5308         sipwxListCtrl *sipCpp;
5309 
5310         static const char *sipKwdList[] = {
5311             sipName_minW,
5312             sipName_minH,
5313             sipName_maxW,
5314             sipName_maxH,
5315             sipName_incW,
5316             sipName_incH,
5317         };
5318 
5319         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biiiiii", &sipSelf, sipType_wxListCtrl, &sipCpp, &minW, &minH, &maxW, &maxH, &incW, &incH))
5320         {
5321             PyErr_Clear();
5322 
5323             Py_BEGIN_ALLOW_THREADS
5324             sipCpp->sipProtectVirt_DoSetSizeHints(sipSelfWasArg,minW,minH,maxW,maxH,incW,incH);
5325             Py_END_ALLOW_THREADS
5326 
5327             if (PyErr_Occurred())
5328                 return 0;
5329 
5330             Py_INCREF(Py_None);
5331             return Py_None;
5332         }
5333     }
5334 
5335     /* Raise an exception if the arguments couldn't be parsed. */
5336     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_DoSetSizeHints, doc_wxListCtrl_DoSetSizeHints);
5337 
5338     return SIP_NULLPTR;
5339 }
5340 
5341 
5342 PyDoc_STRVAR(doc_wxListCtrl_DoGetBorderSize, "DoGetBorderSize(self) -> Size");
5343 
5344 extern "C" {static PyObject *meth_wxListCtrl_DoGetBorderSize(PyObject *, PyObject *);}
meth_wxListCtrl_DoGetBorderSize(PyObject * sipSelf,PyObject * sipArgs)5345 static PyObject *meth_wxListCtrl_DoGetBorderSize(PyObject *sipSelf, PyObject *sipArgs)
5346 {
5347     PyObject *sipParseErr = SIP_NULLPTR;
5348     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
5349 
5350     {
5351         const sipwxListCtrl *sipCpp;
5352 
5353         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxListCtrl, &sipCpp))
5354         {
5355              ::wxSize*sipRes;
5356 
5357             PyErr_Clear();
5358 
5359             Py_BEGIN_ALLOW_THREADS
5360             sipRes = new  ::wxSize(sipCpp->sipProtectVirt_DoGetBorderSize(sipSelfWasArg));
5361             Py_END_ALLOW_THREADS
5362 
5363             if (PyErr_Occurred())
5364                 return 0;
5365 
5366             return sipConvertFromNewType(sipRes,sipType_wxSize,SIP_NULLPTR);
5367         }
5368     }
5369 
5370     /* Raise an exception if the arguments couldn't be parsed. */
5371     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_DoGetBorderSize, doc_wxListCtrl_DoGetBorderSize);
5372 
5373     return SIP_NULLPTR;
5374 }
5375 
5376 
5377 PyDoc_STRVAR(doc_wxListCtrl_DoMoveWindow, "DoMoveWindow(self, x: int, y: int, width: int, height: int)");
5378 
5379 extern "C" {static PyObject *meth_wxListCtrl_DoMoveWindow(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_DoMoveWindow(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)5380 static PyObject *meth_wxListCtrl_DoMoveWindow(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
5381 {
5382     PyObject *sipParseErr = SIP_NULLPTR;
5383     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
5384 
5385     {
5386         int x;
5387         int y;
5388         int width;
5389         int height;
5390         sipwxListCtrl *sipCpp;
5391 
5392         static const char *sipKwdList[] = {
5393             sipName_x,
5394             sipName_y,
5395             sipName_width,
5396             sipName_height,
5397         };
5398 
5399         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biiii", &sipSelf, sipType_wxListCtrl, &sipCpp, &x, &y, &width, &height))
5400         {
5401             PyErr_Clear();
5402 
5403             Py_BEGIN_ALLOW_THREADS
5404             sipCpp->sipProtectVirt_DoMoveWindow(sipSelfWasArg,x,y,width,height);
5405             Py_END_ALLOW_THREADS
5406 
5407             if (PyErr_Occurred())
5408                 return 0;
5409 
5410             Py_INCREF(Py_None);
5411             return Py_None;
5412         }
5413     }
5414 
5415     /* Raise an exception if the arguments couldn't be parsed. */
5416     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_DoMoveWindow, doc_wxListCtrl_DoMoveWindow);
5417 
5418     return SIP_NULLPTR;
5419 }
5420 
5421 
5422 PyDoc_STRVAR(doc_wxListCtrl_DoSetWindowVariant, "DoSetWindowVariant(self, variant: WindowVariant)");
5423 
5424 extern "C" {static PyObject *meth_wxListCtrl_DoSetWindowVariant(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_DoSetWindowVariant(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)5425 static PyObject *meth_wxListCtrl_DoSetWindowVariant(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
5426 {
5427     PyObject *sipParseErr = SIP_NULLPTR;
5428     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
5429 
5430     {
5431          ::wxWindowVariant variant;
5432         sipwxListCtrl *sipCpp;
5433 
5434         static const char *sipKwdList[] = {
5435             sipName_variant,
5436         };
5437 
5438         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BE", &sipSelf, sipType_wxListCtrl, &sipCpp, sipType_wxWindowVariant, &variant))
5439         {
5440             PyErr_Clear();
5441 
5442             Py_BEGIN_ALLOW_THREADS
5443             sipCpp->sipProtectVirt_DoSetWindowVariant(sipSelfWasArg,variant);
5444             Py_END_ALLOW_THREADS
5445 
5446             if (PyErr_Occurred())
5447                 return 0;
5448 
5449             Py_INCREF(Py_None);
5450             return Py_None;
5451         }
5452     }
5453 
5454     /* Raise an exception if the arguments couldn't be parsed. */
5455     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_DoSetWindowVariant, doc_wxListCtrl_DoSetWindowVariant);
5456 
5457     return SIP_NULLPTR;
5458 }
5459 
5460 
5461 PyDoc_STRVAR(doc_wxListCtrl_GetDefaultBorder, "GetDefaultBorder(self) -> Border");
5462 
5463 extern "C" {static PyObject *meth_wxListCtrl_GetDefaultBorder(PyObject *, PyObject *);}
meth_wxListCtrl_GetDefaultBorder(PyObject * sipSelf,PyObject * sipArgs)5464 static PyObject *meth_wxListCtrl_GetDefaultBorder(PyObject *sipSelf, PyObject *sipArgs)
5465 {
5466     PyObject *sipParseErr = SIP_NULLPTR;
5467     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
5468 
5469     {
5470         const sipwxListCtrl *sipCpp;
5471 
5472         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxListCtrl, &sipCpp))
5473         {
5474              ::wxBorder sipRes;
5475 
5476             PyErr_Clear();
5477 
5478             Py_BEGIN_ALLOW_THREADS
5479             sipRes = sipCpp->sipProtectVirt_GetDefaultBorder(sipSelfWasArg);
5480             Py_END_ALLOW_THREADS
5481 
5482             if (PyErr_Occurred())
5483                 return 0;
5484 
5485             return sipConvertFromEnum(static_cast<int>(sipRes), sipType_wxBorder);
5486         }
5487     }
5488 
5489     /* Raise an exception if the arguments couldn't be parsed. */
5490     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_GetDefaultBorder, doc_wxListCtrl_GetDefaultBorder);
5491 
5492     return SIP_NULLPTR;
5493 }
5494 
5495 
5496 PyDoc_STRVAR(doc_wxListCtrl_GetDefaultBorderForControl, "GetDefaultBorderForControl(self) -> Border");
5497 
5498 extern "C" {static PyObject *meth_wxListCtrl_GetDefaultBorderForControl(PyObject *, PyObject *);}
meth_wxListCtrl_GetDefaultBorderForControl(PyObject * sipSelf,PyObject * sipArgs)5499 static PyObject *meth_wxListCtrl_GetDefaultBorderForControl(PyObject *sipSelf, PyObject *sipArgs)
5500 {
5501     PyObject *sipParseErr = SIP_NULLPTR;
5502     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
5503 
5504     {
5505         const sipwxListCtrl *sipCpp;
5506 
5507         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxListCtrl, &sipCpp))
5508         {
5509              ::wxBorder sipRes;
5510 
5511             PyErr_Clear();
5512 
5513             Py_BEGIN_ALLOW_THREADS
5514             sipRes = sipCpp->sipProtectVirt_GetDefaultBorderForControl(sipSelfWasArg);
5515             Py_END_ALLOW_THREADS
5516 
5517             if (PyErr_Occurred())
5518                 return 0;
5519 
5520             return sipConvertFromEnum(static_cast<int>(sipRes), sipType_wxBorder);
5521         }
5522     }
5523 
5524     /* Raise an exception if the arguments couldn't be parsed. */
5525     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_GetDefaultBorderForControl, doc_wxListCtrl_GetDefaultBorderForControl);
5526 
5527     return SIP_NULLPTR;
5528 }
5529 
5530 
5531 PyDoc_STRVAR(doc_wxListCtrl_DoFreeze, "DoFreeze(self)");
5532 
5533 extern "C" {static PyObject *meth_wxListCtrl_DoFreeze(PyObject *, PyObject *);}
meth_wxListCtrl_DoFreeze(PyObject * sipSelf,PyObject * sipArgs)5534 static PyObject *meth_wxListCtrl_DoFreeze(PyObject *sipSelf, PyObject *sipArgs)
5535 {
5536     PyObject *sipParseErr = SIP_NULLPTR;
5537     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
5538 
5539     {
5540         sipwxListCtrl *sipCpp;
5541 
5542         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxListCtrl, &sipCpp))
5543         {
5544             PyErr_Clear();
5545 
5546             Py_BEGIN_ALLOW_THREADS
5547             sipCpp->sipProtectVirt_DoFreeze(sipSelfWasArg);
5548             Py_END_ALLOW_THREADS
5549 
5550             if (PyErr_Occurred())
5551                 return 0;
5552 
5553             Py_INCREF(Py_None);
5554             return Py_None;
5555         }
5556     }
5557 
5558     /* Raise an exception if the arguments couldn't be parsed. */
5559     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_DoFreeze, doc_wxListCtrl_DoFreeze);
5560 
5561     return SIP_NULLPTR;
5562 }
5563 
5564 
5565 PyDoc_STRVAR(doc_wxListCtrl_DoThaw, "DoThaw(self)");
5566 
5567 extern "C" {static PyObject *meth_wxListCtrl_DoThaw(PyObject *, PyObject *);}
meth_wxListCtrl_DoThaw(PyObject * sipSelf,PyObject * sipArgs)5568 static PyObject *meth_wxListCtrl_DoThaw(PyObject *sipSelf, PyObject *sipArgs)
5569 {
5570     PyObject *sipParseErr = SIP_NULLPTR;
5571     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
5572 
5573     {
5574         sipwxListCtrl *sipCpp;
5575 
5576         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxListCtrl, &sipCpp))
5577         {
5578             PyErr_Clear();
5579 
5580             Py_BEGIN_ALLOW_THREADS
5581             sipCpp->sipProtectVirt_DoThaw(sipSelfWasArg);
5582             Py_END_ALLOW_THREADS
5583 
5584             if (PyErr_Occurred())
5585                 return 0;
5586 
5587             Py_INCREF(Py_None);
5588             return Py_None;
5589         }
5590     }
5591 
5592     /* Raise an exception if the arguments couldn't be parsed. */
5593     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_DoThaw, doc_wxListCtrl_DoThaw);
5594 
5595     return SIP_NULLPTR;
5596 }
5597 
5598 
5599 PyDoc_STRVAR(doc_wxListCtrl_HasTransparentBackground, "HasTransparentBackground(self) -> bool");
5600 
5601 extern "C" {static PyObject *meth_wxListCtrl_HasTransparentBackground(PyObject *, PyObject *);}
meth_wxListCtrl_HasTransparentBackground(PyObject * sipSelf,PyObject * sipArgs)5602 static PyObject *meth_wxListCtrl_HasTransparentBackground(PyObject *sipSelf, PyObject *sipArgs)
5603 {
5604     PyObject *sipParseErr = SIP_NULLPTR;
5605     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
5606 
5607     {
5608         sipwxListCtrl *sipCpp;
5609 
5610         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxListCtrl, &sipCpp))
5611         {
5612             bool sipRes;
5613 
5614             PyErr_Clear();
5615 
5616             Py_BEGIN_ALLOW_THREADS
5617             sipRes = sipCpp->sipProtectVirt_HasTransparentBackground(sipSelfWasArg);
5618             Py_END_ALLOW_THREADS
5619 
5620             if (PyErr_Occurred())
5621                 return 0;
5622 
5623             return PyBool_FromLong(sipRes);
5624         }
5625     }
5626 
5627     /* Raise an exception if the arguments couldn't be parsed. */
5628     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_HasTransparentBackground, doc_wxListCtrl_HasTransparentBackground);
5629 
5630     return SIP_NULLPTR;
5631 }
5632 
5633 
5634 PyDoc_STRVAR(doc_wxListCtrl_TryBefore, "TryBefore(self, event: Event) -> bool");
5635 
5636 extern "C" {static PyObject *meth_wxListCtrl_TryBefore(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_TryBefore(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)5637 static PyObject *meth_wxListCtrl_TryBefore(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
5638 {
5639     PyObject *sipParseErr = SIP_NULLPTR;
5640     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
5641 
5642     {
5643          ::wxEvent* event;
5644         sipwxListCtrl *sipCpp;
5645 
5646         static const char *sipKwdList[] = {
5647             sipName_event,
5648         };
5649 
5650         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxListCtrl, &sipCpp, sipType_wxEvent, &event))
5651         {
5652             bool sipRes;
5653 
5654             PyErr_Clear();
5655 
5656             Py_BEGIN_ALLOW_THREADS
5657             sipRes = sipCpp->sipProtectVirt_TryBefore(sipSelfWasArg,*event);
5658             Py_END_ALLOW_THREADS
5659 
5660             if (PyErr_Occurred())
5661                 return 0;
5662 
5663             return PyBool_FromLong(sipRes);
5664         }
5665     }
5666 
5667     /* Raise an exception if the arguments couldn't be parsed. */
5668     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_TryBefore, doc_wxListCtrl_TryBefore);
5669 
5670     return SIP_NULLPTR;
5671 }
5672 
5673 
5674 PyDoc_STRVAR(doc_wxListCtrl_TryAfter, "TryAfter(self, event: Event) -> bool");
5675 
5676 extern "C" {static PyObject *meth_wxListCtrl_TryAfter(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_TryAfter(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)5677 static PyObject *meth_wxListCtrl_TryAfter(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
5678 {
5679     PyObject *sipParseErr = SIP_NULLPTR;
5680     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
5681 
5682     {
5683          ::wxEvent* event;
5684         sipwxListCtrl *sipCpp;
5685 
5686         static const char *sipKwdList[] = {
5687             sipName_event,
5688         };
5689 
5690         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxListCtrl, &sipCpp, sipType_wxEvent, &event))
5691         {
5692             bool sipRes;
5693 
5694             PyErr_Clear();
5695 
5696             Py_BEGIN_ALLOW_THREADS
5697             sipRes = sipCpp->sipProtectVirt_TryAfter(sipSelfWasArg,*event);
5698             Py_END_ALLOW_THREADS
5699 
5700             if (PyErr_Occurred())
5701                 return 0;
5702 
5703             return PyBool_FromLong(sipRes);
5704         }
5705     }
5706 
5707     /* Raise an exception if the arguments couldn't be parsed. */
5708     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_TryAfter, doc_wxListCtrl_TryAfter);
5709 
5710     return SIP_NULLPTR;
5711 }
5712 
5713 
5714 PyDoc_STRVAR(doc_wxListCtrl_GetClassDefaultAttributes, "GetClassDefaultAttributes(variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes");
5715 
5716 extern "C" {static PyObject *meth_wxListCtrl_GetClassDefaultAttributes(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_GetClassDefaultAttributes(PyObject *,PyObject * sipArgs,PyObject * sipKwds)5717 static PyObject *meth_wxListCtrl_GetClassDefaultAttributes(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
5718 {
5719     PyObject *sipParseErr = SIP_NULLPTR;
5720 
5721     {
5722          ::wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL;
5723 
5724         static const char *sipKwdList[] = {
5725             sipName_variant,
5726         };
5727 
5728         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "|E", sipType_wxWindowVariant, &variant))
5729         {
5730              ::wxVisualAttributes*sipRes;
5731 
5732         if (!wxPyCheckForApp()) return NULL;
5733 
5734             PyErr_Clear();
5735 
5736             Py_BEGIN_ALLOW_THREADS
5737             sipRes = new  ::wxVisualAttributes( ::wxListCtrl::GetClassDefaultAttributes(variant));
5738             Py_END_ALLOW_THREADS
5739 
5740             if (PyErr_Occurred())
5741                 return 0;
5742 
5743             return sipConvertFromNewType(sipRes,sipType_wxVisualAttributes,SIP_NULLPTR);
5744         }
5745     }
5746 
5747     /* Raise an exception if the arguments couldn't be parsed. */
5748     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_GetClassDefaultAttributes, SIP_NULLPTR);
5749 
5750     return SIP_NULLPTR;
5751 }
5752 
5753 
5754 PyDoc_STRVAR(doc_wxListCtrl_HitTestSubItem, "HitTestSubItemHitTestSubItem(point) -> (item, flags, subitem)\n"
5755 "\n"
5756 "Determines which item (if any) is at the specified point, giving\n"
5757 "details in flags.");
5758 
5759 extern "C" {static PyObject *meth_wxListCtrl_HitTestSubItem(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_HitTestSubItem(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)5760 static PyObject *meth_wxListCtrl_HitTestSubItem(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
5761 {
5762     PyObject *sipParseErr = SIP_NULLPTR;
5763 
5764     {
5765         const  ::wxPoint* point;
5766         int pointState = 0;
5767          ::wxListCtrl *sipCpp;
5768 
5769         static const char *sipKwdList[] = {
5770             sipName_point,
5771         };
5772 
5773         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ1", &sipSelf, sipType_wxListCtrl, &sipCpp, sipType_wxPoint, &point, &pointState))
5774         {
5775             PyObject * sipRes = SIP_NULLPTR;
5776             int sipIsErr = 0;
5777 
5778         PyErr_Clear();
5779         Py_BEGIN_ALLOW_THREADS
5780         sipRes = _wxListCtrl_HitTestSubItem(sipCpp, point);
5781         Py_END_ALLOW_THREADS
5782         if (PyErr_Occurred()) sipIsErr = 1;
5783             sipReleaseType(const_cast< ::wxPoint *>(point),sipType_wxPoint,pointState);
5784 
5785             if (sipIsErr)
5786                 return 0;
5787 
5788             return sipRes;
5789         }
5790     }
5791 
5792     /* Raise an exception if the arguments couldn't be parsed. */
5793     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_HitTestSubItem, SIP_NULLPTR);
5794 
5795     return SIP_NULLPTR;
5796 }
5797 
5798 
5799 PyDoc_STRVAR(doc_wxListCtrl_HasColumnOrderSupport, "HasColumnOrderSupport() -> bool");
5800 
5801 extern "C" {static PyObject *meth_wxListCtrl_HasColumnOrderSupport(PyObject *, PyObject *);}
meth_wxListCtrl_HasColumnOrderSupport(PyObject * sipSelf,PyObject * sipArgs)5802 static PyObject *meth_wxListCtrl_HasColumnOrderSupport(PyObject *sipSelf, PyObject *sipArgs)
5803 {
5804     PyObject *sipParseErr = SIP_NULLPTR;
5805 
5806     {
5807          ::wxListCtrl *sipCpp;
5808 
5809         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxListCtrl, &sipCpp))
5810         {
5811             bool sipRes = 0;
5812             int sipIsErr = 0;
5813 
5814         PyErr_Clear();
5815         Py_BEGIN_ALLOW_THREADS
5816         sipRes = _wxListCtrl_HasColumnOrderSupport(sipCpp);
5817         Py_END_ALLOW_THREADS
5818         if (PyErr_Occurred()) sipIsErr = 1;
5819 
5820             if (sipIsErr)
5821                 return 0;
5822 
5823             return PyBool_FromLong(sipRes);
5824         }
5825     }
5826 
5827     /* Raise an exception if the arguments couldn't be parsed. */
5828     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_HasColumnOrderSupport, SIP_NULLPTR);
5829 
5830     return SIP_NULLPTR;
5831 }
5832 
5833 
5834 PyDoc_STRVAR(doc_wxListCtrl_GetMainWindow, "GetMainWindow() -> Window");
5835 
5836 extern "C" {static PyObject *meth_wxListCtrl_GetMainWindow(PyObject *, PyObject *);}
meth_wxListCtrl_GetMainWindow(PyObject * sipSelf,PyObject * sipArgs)5837 static PyObject *meth_wxListCtrl_GetMainWindow(PyObject *sipSelf, PyObject *sipArgs)
5838 {
5839     PyObject *sipParseErr = SIP_NULLPTR;
5840 
5841     {
5842          ::wxListCtrl *sipCpp;
5843 
5844         if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxListCtrl, &sipCpp))
5845         {
5846              ::wxWindow*sipRes = 0;
5847             int sipIsErr = 0;
5848 
5849         PyErr_Clear();
5850         Py_BEGIN_ALLOW_THREADS
5851         sipRes = _wxListCtrl_GetMainWindow(sipCpp);
5852         Py_END_ALLOW_THREADS
5853         if (PyErr_Occurred()) sipIsErr = 1;
5854 
5855             if (sipIsErr)
5856                 return 0;
5857 
5858             return sipConvertFromType(sipRes,sipType_wxWindow,SIP_NULLPTR);
5859         }
5860     }
5861 
5862     /* Raise an exception if the arguments couldn't be parsed. */
5863     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_GetMainWindow, SIP_NULLPTR);
5864 
5865     return SIP_NULLPTR;
5866 }
5867 
5868 
5869 PyDoc_STRVAR(doc_wxListCtrl_OnGetItemAttr, "OnGetItemAttr(item) -> ListItemAttr\n"
5870 "\n"
5871 "This function may be overridden in the derived class for a control\n"
5872 "with wxLC_VIRTUAL style.");
5873 
5874 extern "C" {static PyObject *meth_wxListCtrl_OnGetItemAttr(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_OnGetItemAttr(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)5875 static PyObject *meth_wxListCtrl_OnGetItemAttr(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
5876 {
5877     PyObject *sipParseErr = SIP_NULLPTR;
5878     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
5879 
5880     {
5881         long item;
5882         const sipwxListCtrl *sipCpp;
5883 
5884         static const char *sipKwdList[] = {
5885             sipName_item,
5886         };
5887 
5888         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bl", &sipSelf, sipType_wxListCtrl, &sipCpp, &item))
5889         {
5890              ::wxListItemAttr*sipRes;
5891 
5892             PyErr_Clear();
5893 
5894             Py_BEGIN_ALLOW_THREADS
5895             sipRes = sipCpp->sipProtectVirt_OnGetItemAttr(sipSelfWasArg,item);
5896             Py_END_ALLOW_THREADS
5897 
5898             if (PyErr_Occurred())
5899                 return 0;
5900 
5901             return sipConvertFromType(sipRes,sipType_wxListItemAttr,SIP_NULLPTR);
5902         }
5903     }
5904 
5905     /* Raise an exception if the arguments couldn't be parsed. */
5906     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_OnGetItemAttr, SIP_NULLPTR);
5907 
5908     return SIP_NULLPTR;
5909 }
5910 
5911 
5912 PyDoc_STRVAR(doc_wxListCtrl_OnGetItemColumnImage, "OnGetItemColumnImage(item, column) -> int\n"
5913 "\n"
5914 "Override this function in the derived class for a control with\n"
5915 "wxLC_VIRTUAL and wxLC_REPORT styles in order to specify the image\n"
5916 "index for the given line and column.");
5917 
5918 extern "C" {static PyObject *meth_wxListCtrl_OnGetItemColumnImage(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_OnGetItemColumnImage(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)5919 static PyObject *meth_wxListCtrl_OnGetItemColumnImage(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
5920 {
5921     PyObject *sipParseErr = SIP_NULLPTR;
5922     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
5923 
5924     {
5925         long item;
5926         long column;
5927         const sipwxListCtrl *sipCpp;
5928 
5929         static const char *sipKwdList[] = {
5930             sipName_item,
5931             sipName_column,
5932         };
5933 
5934         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bll", &sipSelf, sipType_wxListCtrl, &sipCpp, &item, &column))
5935         {
5936             int sipRes;
5937 
5938             PyErr_Clear();
5939 
5940             Py_BEGIN_ALLOW_THREADS
5941             sipRes = sipCpp->sipProtectVirt_OnGetItemColumnImage(sipSelfWasArg,item,column);
5942             Py_END_ALLOW_THREADS
5943 
5944             if (PyErr_Occurred())
5945                 return 0;
5946 
5947             return SIPLong_FromLong(sipRes);
5948         }
5949     }
5950 
5951     /* Raise an exception if the arguments couldn't be parsed. */
5952     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_OnGetItemColumnImage, SIP_NULLPTR);
5953 
5954     return SIP_NULLPTR;
5955 }
5956 
5957 
5958 PyDoc_STRVAR(doc_wxListCtrl_OnGetItemImage, "OnGetItemImage(item) -> int\n"
5959 "\n"
5960 "This function must be overridden in the derived class for a control\n"
5961 "with wxLC_VIRTUAL style having an \"image list\" (see SetImageList(); if\n"
5962 "the control doesn't have an image list, it is not necessary to\n"
5963 "override it).");
5964 
5965 extern "C" {static PyObject *meth_wxListCtrl_OnGetItemImage(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_OnGetItemImage(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)5966 static PyObject *meth_wxListCtrl_OnGetItemImage(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
5967 {
5968     PyObject *sipParseErr = SIP_NULLPTR;
5969     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
5970 
5971     {
5972         long item;
5973         const sipwxListCtrl *sipCpp;
5974 
5975         static const char *sipKwdList[] = {
5976             sipName_item,
5977         };
5978 
5979         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bl", &sipSelf, sipType_wxListCtrl, &sipCpp, &item))
5980         {
5981             int sipRes;
5982 
5983             PyErr_Clear();
5984 
5985             Py_BEGIN_ALLOW_THREADS
5986             sipRes = sipCpp->sipProtectVirt_OnGetItemImage(sipSelfWasArg,item);
5987             Py_END_ALLOW_THREADS
5988 
5989             if (PyErr_Occurred())
5990                 return 0;
5991 
5992             return SIPLong_FromLong(sipRes);
5993         }
5994     }
5995 
5996     /* Raise an exception if the arguments couldn't be parsed. */
5997     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_OnGetItemImage, SIP_NULLPTR);
5998 
5999     return SIP_NULLPTR;
6000 }
6001 
6002 
6003 PyDoc_STRVAR(doc_wxListCtrl_OnGetItemText, "OnGetItemText(item, column) -> String\n"
6004 "\n"
6005 "This function must be overridden in the derived class for a control\n"
6006 "with wxLC_VIRTUAL style.");
6007 
6008 extern "C" {static PyObject *meth_wxListCtrl_OnGetItemText(PyObject *, PyObject *, PyObject *);}
meth_wxListCtrl_OnGetItemText(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)6009 static PyObject *meth_wxListCtrl_OnGetItemText(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
6010 {
6011     PyObject *sipParseErr = SIP_NULLPTR;
6012     bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
6013 
6014     {
6015         long item;
6016         long column;
6017         const sipwxListCtrl *sipCpp;
6018 
6019         static const char *sipKwdList[] = {
6020             sipName_item,
6021             sipName_column,
6022         };
6023 
6024         if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bll", &sipSelf, sipType_wxListCtrl, &sipCpp, &item, &column))
6025         {
6026              ::wxString*sipRes;
6027 
6028             PyErr_Clear();
6029 
6030             Py_BEGIN_ALLOW_THREADS
6031             sipRes = new  ::wxString(sipCpp->sipProtectVirt_OnGetItemText(sipSelfWasArg,item,column));
6032             Py_END_ALLOW_THREADS
6033 
6034             if (PyErr_Occurred())
6035                 return 0;
6036 
6037             return sipConvertFromNewType(sipRes,sipType_wxString,SIP_NULLPTR);
6038         }
6039     }
6040 
6041     /* Raise an exception if the arguments couldn't be parsed. */
6042     sipNoMethod(sipParseErr, sipName_ListCtrl, sipName_OnGetItemText, SIP_NULLPTR);
6043 
6044     return SIP_NULLPTR;
6045 }
6046 
6047 
6048 /* Cast a pointer to a type somewhere in its inheritance hierarchy. */
6049 extern "C" {static void *cast_wxListCtrl(void *, const sipTypeDef *);}
cast_wxListCtrl(void * sipCppV,const sipTypeDef * targetType)6050 static void *cast_wxListCtrl(void *sipCppV, const sipTypeDef *targetType)
6051 {
6052      ::wxListCtrl *sipCpp = reinterpret_cast< ::wxListCtrl *>(sipCppV);
6053 
6054     if (targetType == sipType_wxControl)
6055         return static_cast< ::wxControl *>(sipCpp);
6056 
6057     if (targetType == sipType_wxWindow)
6058         return static_cast< ::wxWindow *>(sipCpp);
6059 
6060     if (targetType == sipType_wxWindowBase)
6061         return static_cast< ::wxWindowBase *>(sipCpp);
6062 
6063     if (targetType == sipType_wxEvtHandler)
6064         return static_cast< ::wxEvtHandler *>(sipCpp);
6065 
6066     if (targetType == sipType_wxObject)
6067         return static_cast< ::wxObject *>(sipCpp);
6068 
6069     if (targetType == sipType_wxTrackable)
6070         return static_cast< ::wxTrackable *>(sipCpp);
6071 
6072     return sipCppV;
6073 }
6074 
6075 
6076 /* Call the instance's destructor. */
6077 extern "C" {static void release_wxListCtrl(void *, int);}
release_wxListCtrl(void * sipCppV,int sipState)6078 static void release_wxListCtrl(void *sipCppV, int sipState)
6079 {
6080     Py_BEGIN_ALLOW_THREADS
6081 
6082     if (sipState & SIP_DERIVED_CLASS)
6083         delete reinterpret_cast<sipwxListCtrl *>(sipCppV);
6084     else
6085         delete reinterpret_cast< ::wxListCtrl *>(sipCppV);
6086 
6087     Py_END_ALLOW_THREADS
6088 }
6089 
6090 
6091 extern "C" {static void dealloc_wxListCtrl(sipSimpleWrapper *);}
dealloc_wxListCtrl(sipSimpleWrapper * sipSelf)6092 static void dealloc_wxListCtrl(sipSimpleWrapper *sipSelf)
6093 {
6094     if (sipIsDerivedClass(sipSelf))
6095         reinterpret_cast<sipwxListCtrl *>(sipGetAddress(sipSelf))->sipPySelf = SIP_NULLPTR;
6096 
6097     if (sipIsOwnedByPython(sipSelf))
6098     {
6099         release_wxListCtrl(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
6100     }
6101 }
6102 
6103 
6104 extern "C" {static void *init_type_wxListCtrl(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
init_type_wxListCtrl(sipSimpleWrapper * sipSelf,PyObject * sipArgs,PyObject * sipKwds,PyObject ** sipUnused,PyObject ** sipOwner,PyObject ** sipParseErr)6105 static void *init_type_wxListCtrl(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
6106 {
6107     sipwxListCtrl *sipCpp = SIP_NULLPTR;
6108 
6109     {
6110         if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, ""))
6111         {
6112 
6113         if (!wxPyCheckForApp()) return NULL;
6114 
6115             PyErr_Clear();
6116 
6117             Py_BEGIN_ALLOW_THREADS
6118             sipCpp = new sipwxListCtrl();
6119             Py_END_ALLOW_THREADS
6120 
6121             if (PyErr_Occurred())
6122             {
6123                 delete sipCpp;
6124                 return SIP_NULLPTR;
6125             }
6126 
6127             sipCpp->sipPySelf = sipSelf;
6128 
6129             return sipCpp;
6130         }
6131     }
6132 
6133     {
6134          ::wxWindow* parent;
6135          ::wxWindowID id = wxID_ANY;
6136         const  ::wxPoint& posdef = wxDefaultPosition;
6137         const  ::wxPoint* pos = &posdef;
6138         int posState = 0;
6139         const  ::wxSize& sizedef = wxDefaultSize;
6140         const  ::wxSize* size = &sizedef;
6141         int sizeState = 0;
6142         long style = wxLC_ICON;
6143         const  ::wxValidator& validatordef = wxDefaultValidator;
6144         const  ::wxValidator* validator = &validatordef;
6145         const  ::wxString& namedef = wxListCtrlNameStr;
6146         const  ::wxString* name = &namedef;
6147         int nameState = 0;
6148 
6149         static const char *sipKwdList[] = {
6150             sipName_parent,
6151             sipName_id,
6152             sipName_pos,
6153             sipName_size,
6154             sipName_style,
6155             sipName_validator,
6156             sipName_name,
6157         };
6158 
6159         if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "JH|iJ1J1lJ9J1", sipType_wxWindow, &parent, sipOwner, &id, sipType_wxPoint, &pos, &posState, sipType_wxSize, &size, &sizeState, &style, sipType_wxValidator, &validator, sipType_wxString,&name, &nameState))
6160         {
6161 
6162         if (!wxPyCheckForApp()) return NULL;
6163 
6164             PyErr_Clear();
6165 
6166             Py_BEGIN_ALLOW_THREADS
6167             sipCpp = new sipwxListCtrl(parent,id,*pos,*size,style,*validator,*name);
6168             Py_END_ALLOW_THREADS
6169             sipReleaseType(const_cast< ::wxPoint *>(pos),sipType_wxPoint,posState);
6170             sipReleaseType(const_cast< ::wxSize *>(size),sipType_wxSize,sizeState);
6171             sipReleaseType(const_cast< ::wxString *>(name),sipType_wxString,nameState);
6172 
6173             if (PyErr_Occurred())
6174             {
6175                 delete sipCpp;
6176                 return SIP_NULLPTR;
6177             }
6178 
6179             sipCpp->sipPySelf = sipSelf;
6180 
6181             return sipCpp;
6182         }
6183     }
6184 
6185     return SIP_NULLPTR;
6186 }
6187 
6188 
6189 /* Define this type's super-types. */
6190 static sipEncodedTypeDef supers_wxListCtrl[] = {{89, 255, 1}};
6191 
6192 
6193 static PyMethodDef methods_wxListCtrl[] = {
6194     {SIP_MLNAME_CAST(sipName_AcceptsFocus), meth_wxListCtrl_AcceptsFocus, METH_VARARGS, SIP_MLDOC_CAST(doc_wxListCtrl_AcceptsFocus)},
6195     {SIP_MLNAME_CAST(sipName_AcceptsFocusFromKeyboard), meth_wxListCtrl_AcceptsFocusFromKeyboard, METH_VARARGS, SIP_MLDOC_CAST(doc_wxListCtrl_AcceptsFocusFromKeyboard)},
6196     {SIP_MLNAME_CAST(sipName_AcceptsFocusRecursively), meth_wxListCtrl_AcceptsFocusRecursively, METH_VARARGS, SIP_MLDOC_CAST(doc_wxListCtrl_AcceptsFocusRecursively)},
6197     {SIP_MLNAME_CAST(sipName_AddChild), SIP_MLMETH_CAST(meth_wxListCtrl_AddChild), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_AddChild)},
6198     {SIP_MLNAME_CAST(sipName_AppendColumn), SIP_MLMETH_CAST(meth_wxListCtrl_AppendColumn), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_AppendColumn)},
6199     {SIP_MLNAME_CAST(sipName_Arrange), SIP_MLMETH_CAST(meth_wxListCtrl_Arrange), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_Arrange)},
6200     {SIP_MLNAME_CAST(sipName_AssignImageList), SIP_MLMETH_CAST(meth_wxListCtrl_AssignImageList), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_AssignImageList)},
6201     {SIP_MLNAME_CAST(sipName_ClearAll), meth_wxListCtrl_ClearAll, METH_VARARGS, SIP_MLDOC_CAST(doc_wxListCtrl_ClearAll)},
6202     {SIP_MLNAME_CAST(sipName_Create), SIP_MLMETH_CAST(meth_wxListCtrl_Create), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_Create)},
6203     {SIP_MLNAME_CAST(sipName_DeleteAllColumns), meth_wxListCtrl_DeleteAllColumns, METH_VARARGS, SIP_MLDOC_CAST(doc_wxListCtrl_DeleteAllColumns)},
6204     {SIP_MLNAME_CAST(sipName_DeleteAllItems), meth_wxListCtrl_DeleteAllItems, METH_VARARGS, SIP_MLDOC_CAST(doc_wxListCtrl_DeleteAllItems)},
6205     {SIP_MLNAME_CAST(sipName_DeleteColumn), SIP_MLMETH_CAST(meth_wxListCtrl_DeleteColumn), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_DeleteColumn)},
6206     {SIP_MLNAME_CAST(sipName_DeleteItem), SIP_MLMETH_CAST(meth_wxListCtrl_DeleteItem), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_DeleteItem)},
6207     {SIP_MLNAME_CAST(sipName_Destroy), meth_wxListCtrl_Destroy, METH_VARARGS, SIP_MLDOC_CAST(doc_wxListCtrl_Destroy)},
6208     {SIP_MLNAME_CAST(sipName_DoEnable), SIP_MLMETH_CAST(meth_wxListCtrl_DoEnable), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_DoEnable)},
6209     {SIP_MLNAME_CAST(sipName_DoFreeze), meth_wxListCtrl_DoFreeze, METH_VARARGS, SIP_MLDOC_CAST(doc_wxListCtrl_DoFreeze)},
6210     {SIP_MLNAME_CAST(sipName_DoGetBestClientSize), meth_wxListCtrl_DoGetBestClientSize, METH_VARARGS, SIP_MLDOC_CAST(doc_wxListCtrl_DoGetBestClientSize)},
6211     {SIP_MLNAME_CAST(sipName_DoGetBestSize), meth_wxListCtrl_DoGetBestSize, METH_VARARGS, SIP_MLDOC_CAST(doc_wxListCtrl_DoGetBestSize)},
6212     {SIP_MLNAME_CAST(sipName_DoGetBorderSize), meth_wxListCtrl_DoGetBorderSize, METH_VARARGS, SIP_MLDOC_CAST(doc_wxListCtrl_DoGetBorderSize)},
6213     {SIP_MLNAME_CAST(sipName_DoGetClientSize), SIP_MLMETH_CAST(meth_wxListCtrl_DoGetClientSize), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_DoGetClientSize)},
6214     {SIP_MLNAME_CAST(sipName_DoGetPosition), SIP_MLMETH_CAST(meth_wxListCtrl_DoGetPosition), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_DoGetPosition)},
6215     {SIP_MLNAME_CAST(sipName_DoGetSize), SIP_MLMETH_CAST(meth_wxListCtrl_DoGetSize), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_DoGetSize)},
6216     {SIP_MLNAME_CAST(sipName_DoMoveWindow), SIP_MLMETH_CAST(meth_wxListCtrl_DoMoveWindow), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_DoMoveWindow)},
6217     {SIP_MLNAME_CAST(sipName_DoSetClientSize), SIP_MLMETH_CAST(meth_wxListCtrl_DoSetClientSize), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_DoSetClientSize)},
6218     {SIP_MLNAME_CAST(sipName_DoSetSize), SIP_MLMETH_CAST(meth_wxListCtrl_DoSetSize), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_DoSetSize)},
6219     {SIP_MLNAME_CAST(sipName_DoSetSizeHints), SIP_MLMETH_CAST(meth_wxListCtrl_DoSetSizeHints), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_DoSetSizeHints)},
6220     {SIP_MLNAME_CAST(sipName_DoSetWindowVariant), SIP_MLMETH_CAST(meth_wxListCtrl_DoSetWindowVariant), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_DoSetWindowVariant)},
6221     {SIP_MLNAME_CAST(sipName_DoThaw), meth_wxListCtrl_DoThaw, METH_VARARGS, SIP_MLDOC_CAST(doc_wxListCtrl_DoThaw)},
6222     {SIP_MLNAME_CAST(sipName_EditLabel), SIP_MLMETH_CAST(meth_wxListCtrl_EditLabel), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_EditLabel)},
6223     {SIP_MLNAME_CAST(sipName_EnableAlternateRowColours), SIP_MLMETH_CAST(meth_wxListCtrl_EnableAlternateRowColours), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_EnableAlternateRowColours)},
6224     {SIP_MLNAME_CAST(sipName_EnableBellOnNoMatch), SIP_MLMETH_CAST(meth_wxListCtrl_EnableBellOnNoMatch), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_EnableBellOnNoMatch)},
6225     {SIP_MLNAME_CAST(sipName_EnsureVisible), SIP_MLMETH_CAST(meth_wxListCtrl_EnsureVisible), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_EnsureVisible)},
6226     {SIP_MLNAME_CAST(sipName_FindItem), SIP_MLMETH_CAST(meth_wxListCtrl_FindItem), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_FindItem)},
6227     {SIP_MLNAME_CAST(sipName_GetClassDefaultAttributes), SIP_MLMETH_CAST(meth_wxListCtrl_GetClassDefaultAttributes), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_GetClassDefaultAttributes)},
6228     {SIP_MLNAME_CAST(sipName_GetClientAreaOrigin), meth_wxListCtrl_GetClientAreaOrigin, METH_VARARGS, SIP_MLDOC_CAST(doc_wxListCtrl_GetClientAreaOrigin)},
6229     {SIP_MLNAME_CAST(sipName_GetColumn), SIP_MLMETH_CAST(meth_wxListCtrl_GetColumn), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_GetColumn)},
6230     {SIP_MLNAME_CAST(sipName_GetColumnCount), meth_wxListCtrl_GetColumnCount, METH_VARARGS, SIP_MLDOC_CAST(doc_wxListCtrl_GetColumnCount)},
6231     {SIP_MLNAME_CAST(sipName_GetColumnIndexFromOrder), SIP_MLMETH_CAST(meth_wxListCtrl_GetColumnIndexFromOrder), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_GetColumnIndexFromOrder)},
6232     {SIP_MLNAME_CAST(sipName_GetColumnOrder), SIP_MLMETH_CAST(meth_wxListCtrl_GetColumnOrder), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_GetColumnOrder)},
6233     {SIP_MLNAME_CAST(sipName_GetColumnWidth), SIP_MLMETH_CAST(meth_wxListCtrl_GetColumnWidth), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_GetColumnWidth)},
6234     {SIP_MLNAME_CAST(sipName_GetColumnsOrder), meth_wxListCtrl_GetColumnsOrder, METH_VARARGS, SIP_MLDOC_CAST(doc_wxListCtrl_GetColumnsOrder)},
6235     {SIP_MLNAME_CAST(sipName_GetCountPerPage), meth_wxListCtrl_GetCountPerPage, METH_VARARGS, SIP_MLDOC_CAST(doc_wxListCtrl_GetCountPerPage)},
6236     {SIP_MLNAME_CAST(sipName_GetDefaultBorder), meth_wxListCtrl_GetDefaultBorder, METH_VARARGS, SIP_MLDOC_CAST(doc_wxListCtrl_GetDefaultBorder)},
6237     {SIP_MLNAME_CAST(sipName_GetDefaultBorderForControl), meth_wxListCtrl_GetDefaultBorderForControl, METH_VARARGS, SIP_MLDOC_CAST(doc_wxListCtrl_GetDefaultBorderForControl)},
6238     {SIP_MLNAME_CAST(sipName_GetEditControl), meth_wxListCtrl_GetEditControl, METH_VARARGS, SIP_MLDOC_CAST(doc_wxListCtrl_GetEditControl)},
6239     {SIP_MLNAME_CAST(sipName_GetImageList), SIP_MLMETH_CAST(meth_wxListCtrl_GetImageList), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_GetImageList)},
6240     {SIP_MLNAME_CAST(sipName_GetItem), SIP_MLMETH_CAST(meth_wxListCtrl_GetItem), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_GetItem)},
6241     {SIP_MLNAME_CAST(sipName_GetItemBackgroundColour), SIP_MLMETH_CAST(meth_wxListCtrl_GetItemBackgroundColour), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_GetItemBackgroundColour)},
6242     {SIP_MLNAME_CAST(sipName_GetItemCount), meth_wxListCtrl_GetItemCount, METH_VARARGS, SIP_MLDOC_CAST(doc_wxListCtrl_GetItemCount)},
6243     {SIP_MLNAME_CAST(sipName_GetItemData), SIP_MLMETH_CAST(meth_wxListCtrl_GetItemData), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_GetItemData)},
6244     {SIP_MLNAME_CAST(sipName_GetItemFont), SIP_MLMETH_CAST(meth_wxListCtrl_GetItemFont), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_GetItemFont)},
6245     {SIP_MLNAME_CAST(sipName_GetItemPosition), SIP_MLMETH_CAST(meth_wxListCtrl_GetItemPosition), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_GetItemPosition)},
6246     {SIP_MLNAME_CAST(sipName_GetItemRect), SIP_MLMETH_CAST(meth_wxListCtrl_GetItemRect), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_GetItemRect)},
6247     {SIP_MLNAME_CAST(sipName_GetItemSpacing), meth_wxListCtrl_GetItemSpacing, METH_VARARGS, SIP_MLDOC_CAST(doc_wxListCtrl_GetItemSpacing)},
6248     {SIP_MLNAME_CAST(sipName_GetItemState), SIP_MLMETH_CAST(meth_wxListCtrl_GetItemState), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_GetItemState)},
6249     {SIP_MLNAME_CAST(sipName_GetItemText), SIP_MLMETH_CAST(meth_wxListCtrl_GetItemText), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_GetItemText)},
6250     {SIP_MLNAME_CAST(sipName_GetItemTextColour), SIP_MLMETH_CAST(meth_wxListCtrl_GetItemTextColour), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_GetItemTextColour)},
6251     {SIP_MLNAME_CAST(sipName_GetMainWindow), meth_wxListCtrl_GetMainWindow, METH_VARARGS, SIP_MLDOC_CAST(doc_wxListCtrl_GetMainWindow)},
6252     {SIP_MLNAME_CAST(sipName_GetMainWindowOfCompositeControl), meth_wxListCtrl_GetMainWindowOfCompositeControl, METH_VARARGS, SIP_MLDOC_CAST(doc_wxListCtrl_GetMainWindowOfCompositeControl)},
6253     {SIP_MLNAME_CAST(sipName_GetNextItem), SIP_MLMETH_CAST(meth_wxListCtrl_GetNextItem), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_GetNextItem)},
6254     {SIP_MLNAME_CAST(sipName_GetSelectedItemCount), meth_wxListCtrl_GetSelectedItemCount, METH_VARARGS, SIP_MLDOC_CAST(doc_wxListCtrl_GetSelectedItemCount)},
6255     {SIP_MLNAME_CAST(sipName_GetSubItemRect), SIP_MLMETH_CAST(meth_wxListCtrl_GetSubItemRect), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_GetSubItemRect)},
6256     {SIP_MLNAME_CAST(sipName_GetTextColour), meth_wxListCtrl_GetTextColour, METH_VARARGS, SIP_MLDOC_CAST(doc_wxListCtrl_GetTextColour)},
6257     {SIP_MLNAME_CAST(sipName_GetTopItem), meth_wxListCtrl_GetTopItem, METH_VARARGS, SIP_MLDOC_CAST(doc_wxListCtrl_GetTopItem)},
6258     {SIP_MLNAME_CAST(sipName_GetValidator), meth_wxListCtrl_GetValidator, METH_VARARGS, SIP_MLDOC_CAST(doc_wxListCtrl_GetValidator)},
6259     {SIP_MLNAME_CAST(sipName_GetViewRect), meth_wxListCtrl_GetViewRect, METH_VARARGS, SIP_MLDOC_CAST(doc_wxListCtrl_GetViewRect)},
6260     {SIP_MLNAME_CAST(sipName_HasColumnOrderSupport), meth_wxListCtrl_HasColumnOrderSupport, METH_VARARGS, SIP_MLDOC_CAST(doc_wxListCtrl_HasColumnOrderSupport)},
6261     {SIP_MLNAME_CAST(sipName_HasTransparentBackground), meth_wxListCtrl_HasTransparentBackground, METH_VARARGS, SIP_MLDOC_CAST(doc_wxListCtrl_HasTransparentBackground)},
6262     {SIP_MLNAME_CAST(sipName_HitTest), SIP_MLMETH_CAST(meth_wxListCtrl_HitTest), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_HitTest)},
6263     {SIP_MLNAME_CAST(sipName_HitTestSubItem), SIP_MLMETH_CAST(meth_wxListCtrl_HitTestSubItem), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_HitTestSubItem)},
6264     {SIP_MLNAME_CAST(sipName_InReportView), meth_wxListCtrl_InReportView, METH_VARARGS, SIP_MLDOC_CAST(doc_wxListCtrl_InReportView)},
6265     {SIP_MLNAME_CAST(sipName_InformFirstDirection), SIP_MLMETH_CAST(meth_wxListCtrl_InformFirstDirection), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_InformFirstDirection)},
6266     {SIP_MLNAME_CAST(sipName_InheritAttributes), meth_wxListCtrl_InheritAttributes, METH_VARARGS, SIP_MLDOC_CAST(doc_wxListCtrl_InheritAttributes)},
6267     {SIP_MLNAME_CAST(sipName_InitDialog), meth_wxListCtrl_InitDialog, METH_VARARGS, SIP_MLDOC_CAST(doc_wxListCtrl_InitDialog)},
6268     {SIP_MLNAME_CAST(sipName_InsertColumn), SIP_MLMETH_CAST(meth_wxListCtrl_InsertColumn), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_InsertColumn)},
6269     {SIP_MLNAME_CAST(sipName_InsertItem), SIP_MLMETH_CAST(meth_wxListCtrl_InsertItem), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_InsertItem)},
6270     {SIP_MLNAME_CAST(sipName_IsVirtual), meth_wxListCtrl_IsVirtual, METH_VARARGS, SIP_MLDOC_CAST(doc_wxListCtrl_IsVirtual)},
6271     {SIP_MLNAME_CAST(sipName_OnGetItemAttr), SIP_MLMETH_CAST(meth_wxListCtrl_OnGetItemAttr), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_OnGetItemAttr)},
6272     {SIP_MLNAME_CAST(sipName_OnGetItemColumnImage), SIP_MLMETH_CAST(meth_wxListCtrl_OnGetItemColumnImage), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_OnGetItemColumnImage)},
6273     {SIP_MLNAME_CAST(sipName_OnGetItemImage), SIP_MLMETH_CAST(meth_wxListCtrl_OnGetItemImage), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_OnGetItemImage)},
6274     {SIP_MLNAME_CAST(sipName_OnGetItemText), SIP_MLMETH_CAST(meth_wxListCtrl_OnGetItemText), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_OnGetItemText)},
6275     {SIP_MLNAME_CAST(sipName_OnInternalIdle), meth_wxListCtrl_OnInternalIdle, METH_VARARGS, SIP_MLDOC_CAST(doc_wxListCtrl_OnInternalIdle)},
6276     {SIP_MLNAME_CAST(sipName_ProcessEvent), SIP_MLMETH_CAST(meth_wxListCtrl_ProcessEvent), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_ProcessEvent)},
6277     {SIP_MLNAME_CAST(sipName_RefreshItem), SIP_MLMETH_CAST(meth_wxListCtrl_RefreshItem), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_RefreshItem)},
6278     {SIP_MLNAME_CAST(sipName_RefreshItems), SIP_MLMETH_CAST(meth_wxListCtrl_RefreshItems), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_RefreshItems)},
6279     {SIP_MLNAME_CAST(sipName_RemoveChild), SIP_MLMETH_CAST(meth_wxListCtrl_RemoveChild), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_RemoveChild)},
6280     {SIP_MLNAME_CAST(sipName_ScrollList), SIP_MLMETH_CAST(meth_wxListCtrl_ScrollList), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_ScrollList)},
6281     {SIP_MLNAME_CAST(sipName_SendDestroyEvent), meth_wxListCtrl_SendDestroyEvent, METH_VARARGS, SIP_NULLPTR},
6282     {SIP_MLNAME_CAST(sipName_SetAlternateRowColour), SIP_MLMETH_CAST(meth_wxListCtrl_SetAlternateRowColour), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_SetAlternateRowColour)},
6283     {SIP_MLNAME_CAST(sipName_SetBackgroundColour), SIP_MLMETH_CAST(meth_wxListCtrl_SetBackgroundColour), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_SetBackgroundColour)},
6284     {SIP_MLNAME_CAST(sipName_SetCanFocus), SIP_MLMETH_CAST(meth_wxListCtrl_SetCanFocus), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_SetCanFocus)},
6285     {SIP_MLNAME_CAST(sipName_SetColumn), SIP_MLMETH_CAST(meth_wxListCtrl_SetColumn), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_SetColumn)},
6286     {SIP_MLNAME_CAST(sipName_SetColumnWidth), SIP_MLMETH_CAST(meth_wxListCtrl_SetColumnWidth), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_SetColumnWidth)},
6287     {SIP_MLNAME_CAST(sipName_SetColumnsOrder), SIP_MLMETH_CAST(meth_wxListCtrl_SetColumnsOrder), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_SetColumnsOrder)},
6288     {SIP_MLNAME_CAST(sipName_SetImageList), SIP_MLMETH_CAST(meth_wxListCtrl_SetImageList), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_SetImageList)},
6289     {SIP_MLNAME_CAST(sipName_SetItem), SIP_MLMETH_CAST(meth_wxListCtrl_SetItem), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_SetItem)},
6290     {SIP_MLNAME_CAST(sipName_SetItemBackgroundColour), SIP_MLMETH_CAST(meth_wxListCtrl_SetItemBackgroundColour), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_SetItemBackgroundColour)},
6291     {SIP_MLNAME_CAST(sipName_SetItemColumnImage), SIP_MLMETH_CAST(meth_wxListCtrl_SetItemColumnImage), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_SetItemColumnImage)},
6292     {SIP_MLNAME_CAST(sipName_SetItemCount), SIP_MLMETH_CAST(meth_wxListCtrl_SetItemCount), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_SetItemCount)},
6293     {SIP_MLNAME_CAST(sipName_SetItemData), SIP_MLMETH_CAST(meth_wxListCtrl_SetItemData), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_SetItemData)},
6294     {SIP_MLNAME_CAST(sipName_SetItemFont), SIP_MLMETH_CAST(meth_wxListCtrl_SetItemFont), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_SetItemFont)},
6295     {SIP_MLNAME_CAST(sipName_SetItemImage), SIP_MLMETH_CAST(meth_wxListCtrl_SetItemImage), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_SetItemImage)},
6296     {SIP_MLNAME_CAST(sipName_SetItemPosition), SIP_MLMETH_CAST(meth_wxListCtrl_SetItemPosition), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_SetItemPosition)},
6297     {SIP_MLNAME_CAST(sipName_SetItemState), SIP_MLMETH_CAST(meth_wxListCtrl_SetItemState), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_SetItemState)},
6298     {SIP_MLNAME_CAST(sipName_SetItemText), SIP_MLMETH_CAST(meth_wxListCtrl_SetItemText), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_SetItemText)},
6299     {SIP_MLNAME_CAST(sipName_SetItemTextColour), SIP_MLMETH_CAST(meth_wxListCtrl_SetItemTextColour), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_SetItemTextColour)},
6300     {SIP_MLNAME_CAST(sipName_SetSingleStyle), SIP_MLMETH_CAST(meth_wxListCtrl_SetSingleStyle), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_SetSingleStyle)},
6301     {SIP_MLNAME_CAST(sipName_SetTextColour), SIP_MLMETH_CAST(meth_wxListCtrl_SetTextColour), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_SetTextColour)},
6302     {SIP_MLNAME_CAST(sipName_SetValidator), SIP_MLMETH_CAST(meth_wxListCtrl_SetValidator), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_SetValidator)},
6303     {SIP_MLNAME_CAST(sipName_SetWindowStyleFlag), SIP_MLMETH_CAST(meth_wxListCtrl_SetWindowStyleFlag), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_SetWindowStyleFlag)},
6304     {SIP_MLNAME_CAST(sipName_ShouldInheritColours), meth_wxListCtrl_ShouldInheritColours, METH_VARARGS, SIP_MLDOC_CAST(doc_wxListCtrl_ShouldInheritColours)},
6305     {SIP_MLNAME_CAST(sipName_SortItems), SIP_MLMETH_CAST(meth_wxListCtrl_SortItems), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_SortItems)},
6306     {SIP_MLNAME_CAST(sipName_TransferDataFromWindow), meth_wxListCtrl_TransferDataFromWindow, METH_VARARGS, SIP_MLDOC_CAST(doc_wxListCtrl_TransferDataFromWindow)},
6307     {SIP_MLNAME_CAST(sipName_TransferDataToWindow), meth_wxListCtrl_TransferDataToWindow, METH_VARARGS, SIP_MLDOC_CAST(doc_wxListCtrl_TransferDataToWindow)},
6308     {SIP_MLNAME_CAST(sipName_TryAfter), SIP_MLMETH_CAST(meth_wxListCtrl_TryAfter), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_TryAfter)},
6309     {SIP_MLNAME_CAST(sipName_TryBefore), SIP_MLMETH_CAST(meth_wxListCtrl_TryBefore), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxListCtrl_TryBefore)},
6310     {SIP_MLNAME_CAST(sipName_Validate), meth_wxListCtrl_Validate, METH_VARARGS, SIP_MLDOC_CAST(doc_wxListCtrl_Validate)}
6311 };
6312 
6313 sipVariableDef variables_wxListCtrl[] = {
6314     {PropertyVariable, sipName_ViewRect, &methods_wxListCtrl[65], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
6315     {PropertyVariable, sipName_TopItem, &methods_wxListCtrl[63], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
6316     {PropertyVariable, sipName_TextColour, &methods_wxListCtrl[62], &methods_wxListCtrl[107], SIP_NULLPTR, SIP_NULLPTR},
6317     {PropertyVariable, sipName_SelectedItemCount, &methods_wxListCtrl[60], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
6318     {PropertyVariable, sipName_MainWindow, &methods_wxListCtrl[57], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
6319     {PropertyVariable, sipName_ItemSpacing, &methods_wxListCtrl[53], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
6320     {PropertyVariable, sipName_ItemRect, &methods_wxListCtrl[52], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
6321     {PropertyVariable, sipName_ItemPosition, &methods_wxListCtrl[51], &methods_wxListCtrl[102], SIP_NULLPTR, SIP_NULLPTR},
6322     {PropertyVariable, sipName_ItemCount, &methods_wxListCtrl[48], &methods_wxListCtrl[98], SIP_NULLPTR, SIP_NULLPTR},
6323     {PropertyVariable, sipName_Item, &methods_wxListCtrl[46], &methods_wxListCtrl[95], SIP_NULLPTR, SIP_NULLPTR},
6324     {PropertyVariable, sipName_EditControl, &methods_wxListCtrl[44], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
6325     {PropertyVariable, sipName_CountPerPage, &methods_wxListCtrl[41], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
6326     {PropertyVariable, sipName_ColumnsOrder, &methods_wxListCtrl[40], &methods_wxListCtrl[93], SIP_NULLPTR, SIP_NULLPTR},
6327     {PropertyVariable, sipName_ColumnCount, &methods_wxListCtrl[36], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
6328     {PropertyVariable, sipName_Column, &methods_wxListCtrl[35], &methods_wxListCtrl[91], SIP_NULLPTR, SIP_NULLPTR},
6329 };
6330 
6331 PyDoc_STRVAR(doc_wxListCtrl, "ListCtrl()\n"
6332 "ListCtrl(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=LC_ICON, validator=DefaultValidator, name=ListCtrlNameStr)\n"
6333 "\n"
6334 "A list control presents lists in a number of formats: list view,\n"
6335 "report view, icon view and small icon view.");
6336 
6337 
6338 sipClassTypeDef sipTypeDef__core_wxListCtrl = {
6339     {
6340         -1,
6341         SIP_NULLPTR,
6342         SIP_NULLPTR,
6343         SIP_TYPE_SCC|SIP_TYPE_CLASS,
6344         sipNameNr_wxListCtrl,
6345         {SIP_NULLPTR},
6346         SIP_NULLPTR
6347     },
6348     {
6349         sipNameNr_ListCtrl,
6350         {0, 0, 1},
6351         117, methods_wxListCtrl,
6352         0, SIP_NULLPTR,
6353         15, variables_wxListCtrl,
6354         {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
6355     },
6356     doc_wxListCtrl,
6357     -1,
6358     -1,
6359     supers_wxListCtrl,
6360     SIP_NULLPTR,
6361     init_type_wxListCtrl,
6362     SIP_NULLPTR,
6363     SIP_NULLPTR,
6364 #if PY_MAJOR_VERSION >= 3
6365     SIP_NULLPTR,
6366     SIP_NULLPTR,
6367 #else
6368     SIP_NULLPTR,
6369     SIP_NULLPTR,
6370     SIP_NULLPTR,
6371     SIP_NULLPTR,
6372 #endif
6373     dealloc_wxListCtrl,
6374     SIP_NULLPTR,
6375     SIP_NULLPTR,
6376     SIP_NULLPTR,
6377     release_wxListCtrl,
6378     cast_wxListCtrl,
6379     SIP_NULLPTR,
6380     SIP_NULLPTR,
6381     SIP_NULLPTR,
6382     SIP_NULLPTR,
6383     SIP_NULLPTR,
6384     SIP_NULLPTR
6385 };
6386