]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/controls2.cpp
Got dialog sizing to work, downsized fonts a bit (though it always returns
[wxWidgets.git] / wxPython / src / msw / controls2.cpp
CommitLineData
8ab979d7 1/*
c368d904 2 * FILE : src/msw/controls2.cpp
8ab979d7
RD
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
185d7c3e 6 * Version 1.1 (Build 883)
8ab979d7
RD
7 *
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
12 *
13 * Do not make changes to this file--changes will be lost!
14 *
15 */
16
17
18#define SWIGCODE
19/* Implementation : PYTHON */
20
21#define SWIGPYTHON
22#include <string.h>
23#include <stdlib.h>
24/* Definitions for Windows/Unix exporting */
25#if defined(__WIN32__)
26# if defined(_MSC_VER)
1d99702e 27# define SWIGEXPORT(a) __declspec(dllexport) a
8ab979d7
RD
28# else
29# if defined(__BORLANDC__)
c368d904 30# define SWIGEXPORT(a) a _export
8ab979d7 31# else
c368d904 32# define SWIGEXPORT(a) a
8ab979d7
RD
33# endif
34# endif
35#else
c368d904 36# define SWIGEXPORT(a) a
8ab979d7
RD
37#endif
38
c368d904
RD
39#include "Python.h"
40
8ab979d7
RD
41#ifdef __cplusplus
42extern "C" {
43#endif
185d7c3e 44
8ab979d7
RD
45extern void SWIG_MakePtr(char *, void *, char *);
46extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47extern char *SWIG_GetPtr(char *, void **, char *);
1d99702e 48extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
8ab979d7
RD
49extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
50extern PyObject *SWIG_newvarlink(void);
51#ifdef __cplusplus
52}
53#endif
8ab979d7
RD
54#define SWIG_init initcontrols2c
55
56#define SWIG_name "controls2c"
57
58#include "helpers.h"
2f90df85
RD
59#ifdef __WXMSW__
60#include <windows.h>
61#endif
8ab979d7
RD
62#include <wx/listctrl.h>
63#include <wx/treectrl.h>
9416aa89 64#include <wx/imaglist.h>
68320e40 65#include <wx/dirctrl.h>
8ab979d7 66
8ab979d7
RD
67
68static PyObject* t_output_helper(PyObject* target, PyObject* o) {
69 PyObject* o2;
70 PyObject* o3;
71
e0672e2f 72 if (!target) {
8ab979d7 73 target = o;
e0672e2f 74 } else if (target == Py_None) {
8ab979d7
RD
75 Py_DECREF(Py_None);
76 target = o;
e0672e2f 77 } else {
8ab979d7
RD
78 if (!PyTuple_Check(target)) {
79 o2 = target;
80 target = PyTuple_New(1);
81 PyTuple_SetItem(target, 0, o2);
82 }
e0672e2f
RD
83 o3 = PyTuple_New(1);
84 PyTuple_SetItem(o3, 0, o);
8ab979d7
RD
85
86 o2 = target;
e0672e2f
RD
87 target = PySequence_Concat(o2, o3);
88 Py_DECREF(o2);
8ab979d7
RD
89 Py_DECREF(o3);
90 }
91 return target;
92}
93
794c5cb1
RD
94#if PYTHON_API_VERSION >= 1009
95 static char* wxStringErrorMsg = "String or Unicode type required";
96#else
0122b7e3 97 static char* wxStringErrorMsg = "String type required";
794c5cb1 98#endif
09f3d4e6 99 // C++ Version of a Python aware class
c7e7022c
RD
100class wxPyListCtrl : public wxListCtrl {
101 DECLARE_ABSTRACT_CLASS(wxPyListCtrl);
102public:
09f3d4e6 103 wxPyListCtrl() : wxListCtrl() {}
c7e7022c
RD
104 wxPyListCtrl(wxWindow* parent, wxWindowID id,
105 const wxPoint& pos,
106 const wxSize& size,
107 long style,
108 const wxValidator& validator,
109 char* name) :
110 wxListCtrl(parent, id, pos, size, style, validator, name) {}
111
09f3d4e6
RD
112 bool Create(wxWindow* parent, wxWindowID id,
113 const wxPoint& pos,
114 const wxSize& size,
115 long style,
116 const wxValidator& validator,
117 char* name) {
118 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
119 }
120
c7e7022c
RD
121 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
122 DEC_PYCALLBACK_INT_LONG(OnGetItemImage);
123 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
124
125 PYPRIVATE;
126};
127
128IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
129
130IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
131IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage);
132IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
6d19860f 133 // Python aware sorting function for wxPyListCtrl
f6bcfd97 134 int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
dcd38683
RD
135 int retval = 0;
136 PyObject* func = (PyObject*)funcPtr;
4268f798 137 wxPyBeginBlockThreads();
dcd38683
RD
138
139 PyObject* args = Py_BuildValue("(ii)", item1, item2);
140 PyObject* result = PyEval_CallObject(func, args);
141 Py_DECREF(args);
142 if (result) {
143 retval = PyInt_AsLong(result);
144 Py_DECREF(result);
145 }
146
4268f798 147 wxPyEndBlockThreads();
dcd38683
RD
148 return retval;
149 }
150
151
cf694132
RD
152class wxPyTreeItemData : public wxTreeItemData {
153public:
154 wxPyTreeItemData(PyObject* obj = NULL) {
c368d904 155 if (obj == NULL)
cf694132 156 obj = Py_None;
c368d904
RD
157 Py_INCREF(obj);
158 m_obj = obj;
cf694132
RD
159 }
160
161 ~wxPyTreeItemData() {
4268f798 162 wxPyBeginBlockThreads();
c368d904 163 Py_DECREF(m_obj);
4268f798 164 wxPyEndBlockThreads();
cf694132
RD
165 }
166
167 PyObject* GetData() {
168 Py_INCREF(m_obj);
169 return m_obj;
170 }
171
172 void SetData(PyObject* obj) {
4268f798 173 wxPyBeginBlockThreads();
cf694132 174 Py_DECREF(m_obj);
4268f798 175 wxPyEndBlockThreads();
cf694132
RD
176 m_obj = obj;
177 Py_INCREF(obj);
178 }
179
180 PyObject* m_obj;
181};
09f3d4e6 182 // C++ version of Python aware wxTreeCtrl
f6bcfd97 183class wxPyTreeCtrl : public wxTreeCtrl {
3b36695d 184 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl);
f6bcfd97 185public:
09f3d4e6 186 wxPyTreeCtrl() : wxTreeCtrl() {}
f6bcfd97
BP
187 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
188 const wxPoint& pos,
189 const wxSize& size,
190 long style,
191 const wxValidator& validator,
192 char* name) :
193 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
194
09f3d4e6
RD
195 bool Create(wxWindow *parent, wxWindowID id,
196 const wxPoint& pos,
197 const wxSize& size,
198 long style,
199 const wxValidator& validator,
200 char* name) {
201 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
202 }
203
204
f6bcfd97
BP
205 int OnCompareItems(const wxTreeItemId& item1,
206 const wxTreeItemId& item2) {
207 int rval = 0;
19a97bd6 208 bool found;
4268f798 209 wxPyBeginBlockThreads();
19a97bd6 210 if ((found = m_myInst.findCallback("OnCompareItems")))
f6bcfd97
BP
211 rval = m_myInst.callCallback(Py_BuildValue(
212 "(OO)",
213 wxPyConstructObject((void*)&item1, "wxTreeItemId"),
214 wxPyConstructObject((void*)&item2, "wxTreeItemId")));
4268f798 215 wxPyEndBlockThreads();
19a97bd6 216 if (! found)
f6bcfd97 217 rval = wxTreeCtrl::OnCompareItems(item1, item2);
f6bcfd97
BP
218 return rval;
219 }
220 PYPRIVATE;
221};
222
3b36695d
RD
223IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
224
1d99702e
RD
225#ifdef __cplusplus
226extern "C" {
227#endif
c7e7022c 228#define new_wxListItemAttr(_swigarg0,_swigarg1,_swigarg2) (new wxListItemAttr(_swigarg0,_swigarg1,_swigarg2))
f6bcfd97 229static PyObject *_wrap_new_wxListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
af309447 230 PyObject * _resultobj;
f6bcfd97 231 wxListItemAttr * _result;
c7e7022c
RD
232 wxColour * _arg0 = (wxColour *) &wxNullColour;
233 wxColour * _arg1 = (wxColour *) &wxNullColour;
234 wxFont * _arg2 = (wxFont *) &wxNullFont;
235 wxColour temp;
236 PyObject * _obj0 = 0;
237 wxColour temp0;
238 PyObject * _obj1 = 0;
239 PyObject * _argo2 = 0;
240 char *_kwnames[] = { "colText","colBack","font", NULL };
f6bcfd97 241 char _ptemp[128];
af309447
RD
242
243 self = self;
c7e7022c
RD
244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxListItemAttr",_kwnames,&_obj0,&_obj1,&_argo2))
245 return NULL;
246 if (_obj0)
247{
248 _arg0 = &temp;
249 if (! wxColour_helper(_obj0, &_arg0))
250 return NULL;
251}
252 if (_obj1)
253{
254 _arg1 = &temp0;
255 if (! wxColour_helper(_obj1, &_arg1))
256 return NULL;
257}
258 if (_argo2) {
259 if (_argo2 == Py_None) { _arg2 = NULL; }
260 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) {
261 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxListItemAttr. Expected _wxFont_p.");
af309447 262 return NULL;
c7e7022c
RD
263 }
264 }
cf694132 265{
4268f798 266 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c 267 _result = (wxListItemAttr *)new_wxListItemAttr(*_arg0,*_arg1,*_arg2);
cf694132 268
4268f798 269 wxPyEndAllowThreads(__tstate);
493f1553 270 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
271} if (_result) {
272 SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p");
273 _resultobj = Py_BuildValue("s",_ptemp);
274 } else {
275 Py_INCREF(Py_None);
276 _resultobj = Py_None;
277 }
af309447
RD
278 return _resultobj;
279}
280
f6bcfd97
BP
281#define wxListItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0))
282static PyObject *_wrap_wxListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 283 PyObject * _resultobj;
f6bcfd97
BP
284 wxListItemAttr * _arg0;
285 wxColour * _arg1;
1d99702e 286 PyObject * _argo0 = 0;
f6bcfd97
BP
287 wxColour temp;
288 PyObject * _obj1 = 0;
289 char *_kwnames[] = { "self","colText", NULL };
8ab979d7
RD
290
291 self = self;
f6bcfd97 292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1))
8ab979d7 293 return NULL;
1d99702e
RD
294 if (_argo0) {
295 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
296 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) {
297 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetTextColour. Expected _wxListItemAttr_p.");
8ab979d7
RD
298 return NULL;
299 }
300 }
f6bcfd97
BP
301{
302 _arg1 = &temp;
303 if (! wxColour_helper(_obj1, &_arg1))
304 return NULL;
305}
cf694132 306{
4268f798 307 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97 308 wxListItemAttr_SetTextColour(_arg0,*_arg1);
cf694132 309
4268f798 310 wxPyEndAllowThreads(__tstate);
493f1553 311 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
312} Py_INCREF(Py_None);
313 _resultobj = Py_None;
8ab979d7
RD
314 return _resultobj;
315}
316
f6bcfd97
BP
317#define wxListItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
318static PyObject *_wrap_wxListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
af309447 319 PyObject * _resultobj;
f6bcfd97
BP
320 wxListItemAttr * _arg0;
321 wxColour * _arg1;
1d99702e 322 PyObject * _argo0 = 0;
f6bcfd97
BP
323 wxColour temp;
324 PyObject * _obj1 = 0;
325 char *_kwnames[] = { "self","colBack", NULL };
af309447
RD
326
327 self = self;
f6bcfd97 328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1))
af309447 329 return NULL;
1d99702e
RD
330 if (_argo0) {
331 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
332 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) {
333 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetBackgroundColour. Expected _wxListItemAttr_p.");
af309447
RD
334 return NULL;
335 }
336 }
f6bcfd97
BP
337{
338 _arg1 = &temp;
339 if (! wxColour_helper(_obj1, &_arg1))
340 return NULL;
341}
cf694132 342{
4268f798 343 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97 344 wxListItemAttr_SetBackgroundColour(_arg0,*_arg1);
cf694132 345
4268f798 346 wxPyEndAllowThreads(__tstate);
493f1553 347 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
348} Py_INCREF(Py_None);
349 _resultobj = Py_None;
af309447
RD
350 return _resultobj;
351}
352
f6bcfd97
BP
353#define wxListItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
354static PyObject *_wrap_wxListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 355 PyObject * _resultobj;
f6bcfd97
BP
356 wxListItemAttr * _arg0;
357 wxFont * _arg1;
1d99702e 358 PyObject * _argo0 = 0;
f6bcfd97
BP
359 PyObject * _argo1 = 0;
360 char *_kwnames[] = { "self","font", NULL };
8ab979d7
RD
361
362 self = self;
f6bcfd97 363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetFont",_kwnames,&_argo0,&_argo1))
8ab979d7 364 return NULL;
1d99702e
RD
365 if (_argo0) {
366 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
367 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) {
368 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetFont. Expected _wxListItemAttr_p.");
369 return NULL;
370 }
371 }
372 if (_argo1) {
373 if (_argo1 == Py_None) { _arg1 = NULL; }
374 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
375 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItemAttr_SetFont. Expected _wxFont_p.");
8ab979d7
RD
376 return NULL;
377 }
378 }
cf694132 379{
4268f798 380 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97 381 wxListItemAttr_SetFont(_arg0,*_arg1);
cf694132 382
4268f798 383 wxPyEndAllowThreads(__tstate);
493f1553 384 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
385} Py_INCREF(Py_None);
386 _resultobj = Py_None;
8ab979d7
RD
387 return _resultobj;
388}
389
f6bcfd97
BP
390#define wxListItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour())
391static PyObject *_wrap_wxListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
af309447 392 PyObject * _resultobj;
f6bcfd97
BP
393 bool _result;
394 wxListItemAttr * _arg0;
1d99702e 395 PyObject * _argo0 = 0;
f6bcfd97 396 char *_kwnames[] = { "self", NULL };
af309447
RD
397
398 self = self;
f6bcfd97 399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasTextColour",_kwnames,&_argo0))
af309447 400 return NULL;
1d99702e
RD
401 if (_argo0) {
402 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
403 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) {
404 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasTextColour. Expected _wxListItemAttr_p.");
af309447
RD
405 return NULL;
406 }
407 }
cf694132 408{
4268f798 409 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97 410 _result = (bool )wxListItemAttr_HasTextColour(_arg0);
cf694132 411
4268f798 412 wxPyEndAllowThreads(__tstate);
493f1553 413 if (PyErr_Occurred()) return NULL;
cf694132 414} _resultobj = Py_BuildValue("i",_result);
af309447
RD
415 return _resultobj;
416}
417
f6bcfd97
BP
418#define wxListItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour())
419static PyObject *_wrap_wxListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 420 PyObject * _resultobj;
f6bcfd97
BP
421 bool _result;
422 wxListItemAttr * _arg0;
1d99702e 423 PyObject * _argo0 = 0;
efc5f224 424 char *_kwnames[] = { "self", NULL };
8ab979d7
RD
425
426 self = self;
f6bcfd97 427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasBackgroundColour",_kwnames,&_argo0))
8ab979d7 428 return NULL;
1d99702e
RD
429 if (_argo0) {
430 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
431 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) {
432 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasBackgroundColour. Expected _wxListItemAttr_p.");
8ab979d7
RD
433 return NULL;
434 }
435 }
cf694132 436{
4268f798 437 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97 438 _result = (bool )wxListItemAttr_HasBackgroundColour(_arg0);
cf694132 439
4268f798 440 wxPyEndAllowThreads(__tstate);
493f1553 441 if (PyErr_Occurred()) return NULL;
cf694132 442} _resultobj = Py_BuildValue("i",_result);
8ab979d7
RD
443 return _resultobj;
444}
445
f6bcfd97
BP
446#define wxListItemAttr_HasFont(_swigobj) (_swigobj->HasFont())
447static PyObject *_wrap_wxListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) {
af309447 448 PyObject * _resultobj;
f6bcfd97
BP
449 bool _result;
450 wxListItemAttr * _arg0;
1d99702e 451 PyObject * _argo0 = 0;
f6bcfd97 452 char *_kwnames[] = { "self", NULL };
af309447
RD
453
454 self = self;
f6bcfd97 455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasFont",_kwnames,&_argo0))
af309447 456 return NULL;
1d99702e
RD
457 if (_argo0) {
458 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
459 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) {
460 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasFont. Expected _wxListItemAttr_p.");
af309447
RD
461 return NULL;
462 }
463 }
cf694132 464{
4268f798 465 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97 466 _result = (bool )wxListItemAttr_HasFont(_arg0);
cf694132 467
4268f798 468 wxPyEndAllowThreads(__tstate);
493f1553 469 if (PyErr_Occurred()) return NULL;
f6bcfd97 470} _resultobj = Py_BuildValue("i",_result);
af309447
RD
471 return _resultobj;
472}
473
f6bcfd97
BP
474#define wxListItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour())
475static PyObject *_wrap_wxListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 476 PyObject * _resultobj;
f6bcfd97
BP
477 wxColour * _result;
478 wxListItemAttr * _arg0;
1d99702e 479 PyObject * _argo0 = 0;
efc5f224 480 char *_kwnames[] = { "self", NULL };
f6bcfd97 481 char _ptemp[128];
8ab979d7
RD
482
483 self = self;
f6bcfd97 484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetTextColour",_kwnames,&_argo0))
8ab979d7 485 return NULL;
1d99702e
RD
486 if (_argo0) {
487 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
488 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) {
489 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetTextColour. Expected _wxListItemAttr_p.");
8ab979d7
RD
490 return NULL;
491 }
492 }
cf694132 493{
4268f798 494 PyThreadState* __tstate = wxPyBeginAllowThreads();
c5943253 495 _result = new wxColour (wxListItemAttr_GetTextColour(_arg0));
cf694132 496
4268f798 497 wxPyEndAllowThreads(__tstate);
493f1553 498 if (PyErr_Occurred()) return NULL;
c5943253
RD
499} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
500 _resultobj = Py_BuildValue("s",_ptemp);
8ab979d7
RD
501 return _resultobj;
502}
503
f6bcfd97
BP
504#define wxListItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour())
505static PyObject *_wrap_wxListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
af309447 506 PyObject * _resultobj;
f6bcfd97
BP
507 wxColour * _result;
508 wxListItemAttr * _arg0;
1d99702e 509 PyObject * _argo0 = 0;
f6bcfd97
BP
510 char *_kwnames[] = { "self", NULL };
511 char _ptemp[128];
af309447
RD
512
513 self = self;
f6bcfd97 514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetBackgroundColour",_kwnames,&_argo0))
af309447 515 return NULL;
1d99702e
RD
516 if (_argo0) {
517 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
518 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) {
519 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetBackgroundColour. Expected _wxListItemAttr_p.");
af309447
RD
520 return NULL;
521 }
522 }
cf694132 523{
4268f798 524 PyThreadState* __tstate = wxPyBeginAllowThreads();
c5943253 525 _result = new wxColour (wxListItemAttr_GetBackgroundColour(_arg0));
cf694132 526
4268f798 527 wxPyEndAllowThreads(__tstate);
493f1553 528 if (PyErr_Occurred()) return NULL;
c5943253
RD
529} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
530 _resultobj = Py_BuildValue("s",_ptemp);
af309447
RD
531 return _resultobj;
532}
533
f6bcfd97
BP
534#define wxListItemAttr_GetFont(_swigobj) (_swigobj->GetFont())
535static PyObject *_wrap_wxListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 536 PyObject * _resultobj;
f6bcfd97
BP
537 wxFont * _result;
538 wxListItemAttr * _arg0;
1d99702e 539 PyObject * _argo0 = 0;
efc5f224 540 char *_kwnames[] = { "self", NULL };
f6bcfd97 541 char _ptemp[128];
8ab979d7
RD
542
543 self = self;
f6bcfd97 544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetFont",_kwnames,&_argo0))
8ab979d7 545 return NULL;
1d99702e
RD
546 if (_argo0) {
547 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
548 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) {
549 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetFont. Expected _wxListItemAttr_p.");
8ab979d7
RD
550 return NULL;
551 }
552 }
cf694132 553{
4268f798 554 PyThreadState* __tstate = wxPyBeginAllowThreads();
c5943253 555 _result = new wxFont (wxListItemAttr_GetFont(_arg0));
cf694132 556
4268f798 557 wxPyEndAllowThreads(__tstate);
493f1553 558 if (PyErr_Occurred()) return NULL;
c5943253
RD
559} SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p");
560 _resultobj = Py_BuildValue("s",_ptemp);
8ab979d7
RD
561 return _resultobj;
562}
563
9416aa89
RD
564static void *SwigwxListItemTowxObject(void *ptr) {
565 wxListItem *src;
566 wxObject *dest;
567 src = (wxListItem *) ptr;
568 dest = (wxObject *) src;
569 return (void *) dest;
570}
571
f6bcfd97
BP
572#define new_wxListItem() (new wxListItem())
573static PyObject *_wrap_new_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) {
af309447 574 PyObject * _resultobj;
f6bcfd97
BP
575 wxListItem * _result;
576 char *_kwnames[] = { NULL };
577 char _ptemp[128];
af309447
RD
578
579 self = self;
f6bcfd97 580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxListItem",_kwnames))
af309447 581 return NULL;
af309447 582{
4268f798 583 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97 584 _result = (wxListItem *)new_wxListItem();
cf694132 585
4268f798 586 wxPyEndAllowThreads(__tstate);
493f1553 587 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
588} if (_result) {
589 SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p");
590 _resultobj = Py_BuildValue("s",_ptemp);
591 } else {
592 Py_INCREF(Py_None);
593 _resultobj = Py_None;
594 }
af309447
RD
595 return _resultobj;
596}
597
f6bcfd97
BP
598#define delete_wxListItem(_swigobj) (delete _swigobj)
599static PyObject *_wrap_delete_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 600 PyObject * _resultobj;
8ab979d7 601 wxListItem * _arg0;
1d99702e 602 PyObject * _argo0 = 0;
efc5f224 603 char *_kwnames[] = { "self", NULL };
8ab979d7
RD
604
605 self = self;
f6bcfd97 606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxListItem",_kwnames,&_argo0))
8ab979d7 607 return NULL;
1d99702e
RD
608 if (_argo0) {
609 if (_argo0 == Py_None) { _arg0 = NULL; }
610 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
f6bcfd97 611 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxListItem. Expected _wxListItem_p.");
8ab979d7
RD
612 return NULL;
613 }
614 }
8ab979d7 615{
4268f798 616 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97 617 delete_wxListItem(_arg0);
cf694132 618
4268f798 619 wxPyEndAllowThreads(__tstate);
493f1553 620 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
621} Py_INCREF(Py_None);
622 _resultobj = Py_None;
8ab979d7
RD
623 return _resultobj;
624}
625
f6bcfd97
BP
626#define wxListItem_Clear(_swigobj) (_swigobj->Clear())
627static PyObject *_wrap_wxListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
af309447 628 PyObject * _resultobj;
af309447 629 wxListItem * _arg0;
1d99702e 630 PyObject * _argo0 = 0;
f6bcfd97 631 char *_kwnames[] = { "self", NULL };
af309447
RD
632
633 self = self;
f6bcfd97 634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_Clear",_kwnames,&_argo0))
af309447 635 return NULL;
1d99702e
RD
636 if (_argo0) {
637 if (_argo0 == Py_None) { _arg0 = NULL; }
638 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
f6bcfd97 639 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_Clear. Expected _wxListItem_p.");
af309447
RD
640 return NULL;
641 }
642 }
cf694132 643{
4268f798 644 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97 645 wxListItem_Clear(_arg0);
cf694132 646
4268f798 647 wxPyEndAllowThreads(__tstate);
493f1553 648 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
649} Py_INCREF(Py_None);
650 _resultobj = Py_None;
af309447
RD
651 return _resultobj;
652}
653
f6bcfd97
BP
654#define wxListItem_ClearAttributes(_swigobj) (_swigobj->ClearAttributes())
655static PyObject *_wrap_wxListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 656 PyObject * _resultobj;
8ab979d7 657 wxListItem * _arg0;
1d99702e 658 PyObject * _argo0 = 0;
efc5f224 659 char *_kwnames[] = { "self", NULL };
8ab979d7
RD
660
661 self = self;
f6bcfd97 662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_ClearAttributes",_kwnames,&_argo0))
8ab979d7 663 return NULL;
1d99702e
RD
664 if (_argo0) {
665 if (_argo0 == Py_None) { _arg0 = NULL; }
666 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
f6bcfd97 667 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_ClearAttributes. Expected _wxListItem_p.");
8ab979d7
RD
668 return NULL;
669 }
670 }
cf694132 671{
4268f798 672 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97 673 wxListItem_ClearAttributes(_arg0);
cf694132 674
4268f798 675 wxPyEndAllowThreads(__tstate);
493f1553 676 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
677} Py_INCREF(Py_None);
678 _resultobj = Py_None;
679 return _resultobj;
680}
681
682#define wxListItem_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
683static PyObject *_wrap_wxListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
684 PyObject * _resultobj;
685 wxListItem * _arg0;
686 long _arg1;
687 PyObject * _argo0 = 0;
688 char *_kwnames[] = { "self","mask", NULL };
689
690 self = self;
691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetMask",_kwnames,&_argo0,&_arg1))
692 return NULL;
693 if (_argo0) {
694 if (_argo0 == Py_None) { _arg0 = NULL; }
695 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
696 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetMask. Expected _wxListItem_p.");
697 return NULL;
698 }
699 }
700{
4268f798 701 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
702 wxListItem_SetMask(_arg0,_arg1);
703
4268f798 704 wxPyEndAllowThreads(__tstate);
493f1553 705 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
706} Py_INCREF(Py_None);
707 _resultobj = Py_None;
708 return _resultobj;
709}
710
711#define wxListItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
712static PyObject *_wrap_wxListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
713 PyObject * _resultobj;
714 wxListItem * _arg0;
715 long _arg1;
716 PyObject * _argo0 = 0;
717 char *_kwnames[] = { "self","id", NULL };
718
719 self = self;
720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetId",_kwnames,&_argo0,&_arg1))
721 return NULL;
722 if (_argo0) {
723 if (_argo0 == Py_None) { _arg0 = NULL; }
724 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
725 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetId. Expected _wxListItem_p.");
726 return NULL;
727 }
728 }
729{
4268f798 730 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
731 wxListItem_SetId(_arg0,_arg1);
732
4268f798 733 wxPyEndAllowThreads(__tstate);
493f1553 734 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
735} Py_INCREF(Py_None);
736 _resultobj = Py_None;
737 return _resultobj;
738}
739
740#define wxListItem_SetColumn(_swigobj,_swigarg0) (_swigobj->SetColumn(_swigarg0))
741static PyObject *_wrap_wxListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
742 PyObject * _resultobj;
743 wxListItem * _arg0;
744 int _arg1;
745 PyObject * _argo0 = 0;
746 char *_kwnames[] = { "self","col", NULL };
747
748 self = self;
749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetColumn",_kwnames,&_argo0,&_arg1))
750 return NULL;
751 if (_argo0) {
752 if (_argo0 == Py_None) { _arg0 = NULL; }
753 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
754 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetColumn. Expected _wxListItem_p.");
755 return NULL;
756 }
757 }
758{
4268f798 759 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
760 wxListItem_SetColumn(_arg0,_arg1);
761
4268f798 762 wxPyEndAllowThreads(__tstate);
493f1553 763 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
764} Py_INCREF(Py_None);
765 _resultobj = Py_None;
766 return _resultobj;
767}
768
769#define wxListItem_SetState(_swigobj,_swigarg0) (_swigobj->SetState(_swigarg0))
770static PyObject *_wrap_wxListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) {
771 PyObject * _resultobj;
772 wxListItem * _arg0;
773 long _arg1;
774 PyObject * _argo0 = 0;
775 char *_kwnames[] = { "self","state", NULL };
776
777 self = self;
778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetState",_kwnames,&_argo0,&_arg1))
779 return NULL;
780 if (_argo0) {
781 if (_argo0 == Py_None) { _arg0 = NULL; }
782 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
783 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetState. Expected _wxListItem_p.");
784 return NULL;
785 }
786 }
787{
4268f798 788 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
789 wxListItem_SetState(_arg0,_arg1);
790
4268f798 791 wxPyEndAllowThreads(__tstate);
493f1553 792 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
793} Py_INCREF(Py_None);
794 _resultobj = Py_None;
795 return _resultobj;
796}
797
798#define wxListItem_SetStateMask(_swigobj,_swigarg0) (_swigobj->SetStateMask(_swigarg0))
799static PyObject *_wrap_wxListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) {
800 PyObject * _resultobj;
801 wxListItem * _arg0;
802 long _arg1;
803 PyObject * _argo0 = 0;
804 char *_kwnames[] = { "self","stateMask", NULL };
805
806 self = self;
807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetStateMask",_kwnames,&_argo0,&_arg1))
808 return NULL;
809 if (_argo0) {
810 if (_argo0 == Py_None) { _arg0 = NULL; }
811 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
812 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetStateMask. Expected _wxListItem_p.");
813 return NULL;
814 }
815 }
816{
4268f798 817 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
818 wxListItem_SetStateMask(_arg0,_arg1);
819
4268f798 820 wxPyEndAllowThreads(__tstate);
493f1553 821 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
822} Py_INCREF(Py_None);
823 _resultobj = Py_None;
824 return _resultobj;
825}
826
827#define wxListItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0))
828static PyObject *_wrap_wxListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
829 PyObject * _resultobj;
830 wxListItem * _arg0;
831 wxString * _arg1;
832 PyObject * _argo0 = 0;
833 PyObject * _obj1 = 0;
834 char *_kwnames[] = { "self","text", NULL };
835
836 self = self;
837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetText",_kwnames,&_argo0,&_obj1))
838 return NULL;
839 if (_argo0) {
840 if (_argo0 == Py_None) { _arg0 = NULL; }
841 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
842 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetText. Expected _wxListItem_p.");
843 return NULL;
844 }
845 }
846{
185d7c3e
RD
847#if PYTHON_API_VERSION >= 1009
848 char* tmpPtr; int tmpSize;
849 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
794c5cb1 850 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
185d7c3e
RD
851 return NULL;
852 }
853 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
854 return NULL;
855 _arg1 = new wxString(tmpPtr, tmpSize);
856#else
f6bcfd97
BP
857 if (!PyString_Check(_obj1)) {
858 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
859 return NULL;
860 }
185d7c3e
RD
861 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
862#endif
f6bcfd97
BP
863}
864{
4268f798 865 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
866 wxListItem_SetText(_arg0,*_arg1);
867
4268f798 868 wxPyEndAllowThreads(__tstate);
493f1553 869 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
870} Py_INCREF(Py_None);
871 _resultobj = Py_None;
872{
873 if (_obj1)
874 delete _arg1;
875}
876 return _resultobj;
877}
878
879#define wxListItem_SetImage(_swigobj,_swigarg0) (_swigobj->SetImage(_swigarg0))
880static PyObject *_wrap_wxListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) {
881 PyObject * _resultobj;
882 wxListItem * _arg0;
883 int _arg1;
884 PyObject * _argo0 = 0;
885 char *_kwnames[] = { "self","image", NULL };
886
887 self = self;
888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetImage",_kwnames,&_argo0,&_arg1))
889 return NULL;
890 if (_argo0) {
891 if (_argo0 == Py_None) { _arg0 = NULL; }
892 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
893 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetImage. Expected _wxListItem_p.");
894 return NULL;
895 }
896 }
897{
4268f798 898 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
899 wxListItem_SetImage(_arg0,_arg1);
900
4268f798 901 wxPyEndAllowThreads(__tstate);
493f1553 902 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
903} Py_INCREF(Py_None);
904 _resultobj = Py_None;
905 return _resultobj;
906}
907
908#define wxListItem_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0))
909static PyObject *_wrap_wxListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
910 PyObject * _resultobj;
911 wxListItem * _arg0;
912 long _arg1;
913 PyObject * _argo0 = 0;
914 char *_kwnames[] = { "self","data", NULL };
915
916 self = self;
917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetData",_kwnames,&_argo0,&_arg1))
918 return NULL;
919 if (_argo0) {
920 if (_argo0 == Py_None) { _arg0 = NULL; }
921 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
922 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetData. Expected _wxListItem_p.");
923 return NULL;
924 }
925 }
926{
4268f798 927 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
928 wxListItem_SetData(_arg0,_arg1);
929
4268f798 930 wxPyEndAllowThreads(__tstate);
493f1553 931 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
932} Py_INCREF(Py_None);
933 _resultobj = Py_None;
934 return _resultobj;
935}
936
937#define wxListItem_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
938static PyObject *_wrap_wxListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
939 PyObject * _resultobj;
940 wxListItem * _arg0;
941 int _arg1;
942 PyObject * _argo0 = 0;
943 char *_kwnames[] = { "self","width", NULL };
944
945 self = self;
946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetWidth",_kwnames,&_argo0,&_arg1))
947 return NULL;
948 if (_argo0) {
949 if (_argo0 == Py_None) { _arg0 = NULL; }
950 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
951 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetWidth. Expected _wxListItem_p.");
952 return NULL;
953 }
954 }
955{
4268f798 956 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
957 wxListItem_SetWidth(_arg0,_arg1);
958
4268f798 959 wxPyEndAllowThreads(__tstate);
493f1553 960 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
961} Py_INCREF(Py_None);
962 _resultobj = Py_None;
963 return _resultobj;
964}
965
966#define wxListItem_SetAlign(_swigobj,_swigarg0) (_swigobj->SetAlign(_swigarg0))
967static PyObject *_wrap_wxListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) {
968 PyObject * _resultobj;
969 wxListItem * _arg0;
970 wxListColumnFormat _arg1;
971 PyObject * _argo0 = 0;
972 char *_kwnames[] = { "self","align", NULL };
973
974 self = self;
975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetAlign",_kwnames,&_argo0,&_arg1))
976 return NULL;
977 if (_argo0) {
978 if (_argo0 == Py_None) { _arg0 = NULL; }
979 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
980 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetAlign. Expected _wxListItem_p.");
981 return NULL;
982 }
983 }
984{
4268f798 985 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
986 wxListItem_SetAlign(_arg0,_arg1);
987
4268f798 988 wxPyEndAllowThreads(__tstate);
493f1553 989 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
990} Py_INCREF(Py_None);
991 _resultobj = Py_None;
992 return _resultobj;
993}
994
995#define wxListItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0))
996static PyObject *_wrap_wxListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
997 PyObject * _resultobj;
998 wxListItem * _arg0;
999 wxColour * _arg1;
1000 PyObject * _argo0 = 0;
1001 wxColour temp;
1002 PyObject * _obj1 = 0;
1003 char *_kwnames[] = { "self","colText", NULL };
1004
1005 self = self;
1006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetTextColour",_kwnames,&_argo0,&_obj1))
1007 return NULL;
1008 if (_argo0) {
1009 if (_argo0 == Py_None) { _arg0 = NULL; }
1010 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1011 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetTextColour. Expected _wxListItem_p.");
1012 return NULL;
1013 }
1014 }
1015{
1016 _arg1 = &temp;
1017 if (! wxColour_helper(_obj1, &_arg1))
1018 return NULL;
1019}
1020{
4268f798 1021 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
1022 wxListItem_SetTextColour(_arg0,*_arg1);
1023
4268f798 1024 wxPyEndAllowThreads(__tstate);
493f1553 1025 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1026} Py_INCREF(Py_None);
1027 _resultobj = Py_None;
1028 return _resultobj;
1029}
1030
1031#define wxListItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
1032static PyObject *_wrap_wxListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1033 PyObject * _resultobj;
1034 wxListItem * _arg0;
1035 wxColour * _arg1;
1036 PyObject * _argo0 = 0;
1037 wxColour temp;
1038 PyObject * _obj1 = 0;
1039 char *_kwnames[] = { "self","colBack", NULL };
1040
1041 self = self;
1042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetBackgroundColour",_kwnames,&_argo0,&_obj1))
1043 return NULL;
1044 if (_argo0) {
1045 if (_argo0 == Py_None) { _arg0 = NULL; }
1046 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1047 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetBackgroundColour. Expected _wxListItem_p.");
1048 return NULL;
1049 }
1050 }
1051{
1052 _arg1 = &temp;
1053 if (! wxColour_helper(_obj1, &_arg1))
1054 return NULL;
1055}
1056{
4268f798 1057 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
1058 wxListItem_SetBackgroundColour(_arg0,*_arg1);
1059
4268f798 1060 wxPyEndAllowThreads(__tstate);
493f1553 1061 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1062} Py_INCREF(Py_None);
1063 _resultobj = Py_None;
1064 return _resultobj;
1065}
1066
1067#define wxListItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
1068static PyObject *_wrap_wxListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
1069 PyObject * _resultobj;
1070 wxListItem * _arg0;
1071 wxFont * _arg1;
1072 PyObject * _argo0 = 0;
1073 PyObject * _argo1 = 0;
1074 char *_kwnames[] = { "self","font", NULL };
1075
1076 self = self;
1077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetFont",_kwnames,&_argo0,&_argo1))
1078 return NULL;
1079 if (_argo0) {
1080 if (_argo0 == Py_None) { _arg0 = NULL; }
1081 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1082 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetFont. Expected _wxListItem_p.");
1083 return NULL;
1084 }
1085 }
1086 if (_argo1) {
1087 if (_argo1 == Py_None) { _arg1 = NULL; }
1088 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
1089 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItem_SetFont. Expected _wxFont_p.");
1090 return NULL;
1091 }
1092 }
1093{
4268f798 1094 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
1095 wxListItem_SetFont(_arg0,*_arg1);
1096
4268f798 1097 wxPyEndAllowThreads(__tstate);
493f1553 1098 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1099} Py_INCREF(Py_None);
1100 _resultobj = Py_None;
1101 return _resultobj;
1102}
1103
1104#define wxListItem_GetMask(_swigobj) (_swigobj->GetMask())
1105static PyObject *_wrap_wxListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
1106 PyObject * _resultobj;
1107 long _result;
1108 wxListItem * _arg0;
1109 PyObject * _argo0 = 0;
1110 char *_kwnames[] = { "self", NULL };
1111
1112 self = self;
1113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetMask",_kwnames,&_argo0))
1114 return NULL;
1115 if (_argo0) {
1116 if (_argo0 == Py_None) { _arg0 = NULL; }
1117 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1118 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetMask. Expected _wxListItem_p.");
1119 return NULL;
1120 }
1121 }
1122{
4268f798 1123 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
1124 _result = (long )wxListItem_GetMask(_arg0);
1125
4268f798 1126 wxPyEndAllowThreads(__tstate);
493f1553 1127 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1128} _resultobj = Py_BuildValue("l",_result);
1129 return _resultobj;
1130}
1131
1132#define wxListItem_GetId(_swigobj) (_swigobj->GetId())
1133static PyObject *_wrap_wxListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
1134 PyObject * _resultobj;
1135 long _result;
1136 wxListItem * _arg0;
1137 PyObject * _argo0 = 0;
1138 char *_kwnames[] = { "self", NULL };
1139
1140 self = self;
1141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetId",_kwnames,&_argo0))
1142 return NULL;
1143 if (_argo0) {
1144 if (_argo0 == Py_None) { _arg0 = NULL; }
1145 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1146 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetId. Expected _wxListItem_p.");
1147 return NULL;
1148 }
1149 }
1150{
4268f798 1151 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
1152 _result = (long )wxListItem_GetId(_arg0);
1153
4268f798 1154 wxPyEndAllowThreads(__tstate);
493f1553 1155 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1156} _resultobj = Py_BuildValue("l",_result);
1157 return _resultobj;
1158}
1159
1160#define wxListItem_GetColumn(_swigobj) (_swigobj->GetColumn())
1161static PyObject *_wrap_wxListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
1162 PyObject * _resultobj;
1163 int _result;
1164 wxListItem * _arg0;
1165 PyObject * _argo0 = 0;
1166 char *_kwnames[] = { "self", NULL };
1167
1168 self = self;
1169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetColumn",_kwnames,&_argo0))
1170 return NULL;
1171 if (_argo0) {
1172 if (_argo0 == Py_None) { _arg0 = NULL; }
1173 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1174 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetColumn. Expected _wxListItem_p.");
1175 return NULL;
1176 }
1177 }
1178{
4268f798 1179 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
1180 _result = (int )wxListItem_GetColumn(_arg0);
1181
4268f798 1182 wxPyEndAllowThreads(__tstate);
493f1553 1183 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1184} _resultobj = Py_BuildValue("i",_result);
1185 return _resultobj;
1186}
1187
1188#define wxListItem_GetState(_swigobj) (_swigobj->GetState())
1189static PyObject *_wrap_wxListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) {
1190 PyObject * _resultobj;
1191 long _result;
1192 wxListItem * _arg0;
1193 PyObject * _argo0 = 0;
1194 char *_kwnames[] = { "self", NULL };
1195
1196 self = self;
1197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetState",_kwnames,&_argo0))
1198 return NULL;
1199 if (_argo0) {
1200 if (_argo0 == Py_None) { _arg0 = NULL; }
1201 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1202 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetState. Expected _wxListItem_p.");
1203 return NULL;
1204 }
1205 }
1206{
4268f798 1207 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
1208 _result = (long )wxListItem_GetState(_arg0);
1209
4268f798 1210 wxPyEndAllowThreads(__tstate);
493f1553 1211 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1212} _resultobj = Py_BuildValue("l",_result);
1213 return _resultobj;
1214}
1215
1216#define wxListItem_GetText(_swigobj) (_swigobj->GetText())
1217static PyObject *_wrap_wxListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
1218 PyObject * _resultobj;
1219 wxString * _result;
1220 wxListItem * _arg0;
1221 PyObject * _argo0 = 0;
1222 char *_kwnames[] = { "self", NULL };
1223
1224 self = self;
1225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetText",_kwnames,&_argo0))
1226 return NULL;
1227 if (_argo0) {
1228 if (_argo0 == Py_None) { _arg0 = NULL; }
1229 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1230 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetText. Expected _wxListItem_p.");
1231 return NULL;
1232 }
1233 }
1234{
4268f798 1235 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
1236 const wxString & _result_ref = wxListItem_GetText(_arg0);
1237 _result = (wxString *) &_result_ref;
1238
4268f798 1239 wxPyEndAllowThreads(__tstate);
493f1553 1240 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1241}{
1242 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
1243}
1244 return _resultobj;
1245}
1246
1247#define wxListItem_GetImage(_swigobj) (_swigobj->GetImage())
1248static PyObject *_wrap_wxListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) {
1249 PyObject * _resultobj;
1250 int _result;
1251 wxListItem * _arg0;
1252 PyObject * _argo0 = 0;
1253 char *_kwnames[] = { "self", NULL };
1254
1255 self = self;
1256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetImage",_kwnames,&_argo0))
1257 return NULL;
1258 if (_argo0) {
1259 if (_argo0 == Py_None) { _arg0 = NULL; }
1260 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1261 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetImage. Expected _wxListItem_p.");
1262 return NULL;
1263 }
1264 }
1265{
4268f798 1266 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
1267 _result = (int )wxListItem_GetImage(_arg0);
1268
4268f798 1269 wxPyEndAllowThreads(__tstate);
493f1553 1270 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1271} _resultobj = Py_BuildValue("i",_result);
1272 return _resultobj;
1273}
1274
1275#define wxListItem_GetData(_swigobj) (_swigobj->GetData())
1276static PyObject *_wrap_wxListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
1277 PyObject * _resultobj;
1278 long _result;
1279 wxListItem * _arg0;
1280 PyObject * _argo0 = 0;
1281 char *_kwnames[] = { "self", NULL };
1282
1283 self = self;
1284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetData",_kwnames,&_argo0))
1285 return NULL;
1286 if (_argo0) {
1287 if (_argo0 == Py_None) { _arg0 = NULL; }
1288 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1289 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetData. Expected _wxListItem_p.");
1290 return NULL;
1291 }
1292 }
1293{
4268f798 1294 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
1295 _result = (long )wxListItem_GetData(_arg0);
1296
4268f798 1297 wxPyEndAllowThreads(__tstate);
493f1553 1298 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1299} _resultobj = Py_BuildValue("l",_result);
1300 return _resultobj;
1301}
1302
1303#define wxListItem_GetWidth(_swigobj) (_swigobj->GetWidth())
1304static PyObject *_wrap_wxListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1305 PyObject * _resultobj;
1306 int _result;
1307 wxListItem * _arg0;
1308 PyObject * _argo0 = 0;
1309 char *_kwnames[] = { "self", NULL };
1310
1311 self = self;
1312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetWidth",_kwnames,&_argo0))
1313 return NULL;
1314 if (_argo0) {
1315 if (_argo0 == Py_None) { _arg0 = NULL; }
1316 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1317 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetWidth. Expected _wxListItem_p.");
1318 return NULL;
1319 }
1320 }
1321{
4268f798 1322 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
1323 _result = (int )wxListItem_GetWidth(_arg0);
1324
4268f798 1325 wxPyEndAllowThreads(__tstate);
493f1553 1326 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1327} _resultobj = Py_BuildValue("i",_result);
1328 return _resultobj;
1329}
1330
1331#define wxListItem_GetAlign(_swigobj) (_swigobj->GetAlign())
1332static PyObject *_wrap_wxListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) {
1333 PyObject * _resultobj;
1334 wxListColumnFormat _result;
1335 wxListItem * _arg0;
1336 PyObject * _argo0 = 0;
1337 char *_kwnames[] = { "self", NULL };
1338
1339 self = self;
1340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAlign",_kwnames,&_argo0))
1341 return NULL;
1342 if (_argo0) {
1343 if (_argo0 == Py_None) { _arg0 = NULL; }
1344 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1345 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAlign. Expected _wxListItem_p.");
1346 return NULL;
1347 }
1348 }
1349{
4268f798 1350 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
1351 _result = (wxListColumnFormat )wxListItem_GetAlign(_arg0);
1352
4268f798 1353 wxPyEndAllowThreads(__tstate);
493f1553 1354 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1355} _resultobj = Py_BuildValue("i",_result);
1356 return _resultobj;
1357}
1358
1359#define wxListItem_GetAttributes(_swigobj) (_swigobj->GetAttributes())
1360static PyObject *_wrap_wxListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
1361 PyObject * _resultobj;
1362 wxListItemAttr * _result;
1363 wxListItem * _arg0;
1364 PyObject * _argo0 = 0;
1365 char *_kwnames[] = { "self", NULL };
1366 char _ptemp[128];
1367
1368 self = self;
1369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAttributes",_kwnames,&_argo0))
1370 return NULL;
1371 if (_argo0) {
1372 if (_argo0 == Py_None) { _arg0 = NULL; }
1373 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1374 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAttributes. Expected _wxListItem_p.");
1375 return NULL;
1376 }
1377 }
1378{
4268f798 1379 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
1380 _result = (wxListItemAttr *)wxListItem_GetAttributes(_arg0);
1381
4268f798 1382 wxPyEndAllowThreads(__tstate);
493f1553 1383 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1384} if (_result) {
1385 SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p");
1386 _resultobj = Py_BuildValue("s",_ptemp);
1387 } else {
1388 Py_INCREF(Py_None);
1389 _resultobj = Py_None;
1390 }
1391 return _resultobj;
1392}
1393
1394#define wxListItem_HasAttributes(_swigobj) (_swigobj->HasAttributes())
1395static PyObject *_wrap_wxListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
1396 PyObject * _resultobj;
1397 bool _result;
1398 wxListItem * _arg0;
1399 PyObject * _argo0 = 0;
1400 char *_kwnames[] = { "self", NULL };
1401
1402 self = self;
1403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_HasAttributes",_kwnames,&_argo0))
1404 return NULL;
1405 if (_argo0) {
1406 if (_argo0 == Py_None) { _arg0 = NULL; }
1407 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1408 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_HasAttributes. Expected _wxListItem_p.");
1409 return NULL;
1410 }
1411 }
1412{
4268f798 1413 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
1414 _result = (bool )wxListItem_HasAttributes(_arg0);
1415
4268f798 1416 wxPyEndAllowThreads(__tstate);
493f1553 1417 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1418} _resultobj = Py_BuildValue("i",_result);
1419 return _resultobj;
1420}
1421
1422#define wxListItem_GetTextColour(_swigobj) (_swigobj->GetTextColour())
1423static PyObject *_wrap_wxListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1424 PyObject * _resultobj;
1425 wxColour * _result;
1426 wxListItem * _arg0;
1427 PyObject * _argo0 = 0;
1428 char *_kwnames[] = { "self", NULL };
1429 char _ptemp[128];
1430
1431 self = self;
1432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetTextColour",_kwnames,&_argo0))
1433 return NULL;
1434 if (_argo0) {
1435 if (_argo0 == Py_None) { _arg0 = NULL; }
1436 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1437 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetTextColour. Expected _wxListItem_p.");
1438 return NULL;
1439 }
1440 }
1441{
4268f798 1442 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
1443 _result = new wxColour (wxListItem_GetTextColour(_arg0));
1444
4268f798 1445 wxPyEndAllowThreads(__tstate);
493f1553 1446 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1447} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
1448 _resultobj = Py_BuildValue("s",_ptemp);
1449 return _resultobj;
1450}
1451
1452#define wxListItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour())
1453static PyObject *_wrap_wxListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1454 PyObject * _resultobj;
1455 wxColour * _result;
1456 wxListItem * _arg0;
1457 PyObject * _argo0 = 0;
1458 char *_kwnames[] = { "self", NULL };
1459 char _ptemp[128];
1460
1461 self = self;
1462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetBackgroundColour",_kwnames,&_argo0))
1463 return NULL;
1464 if (_argo0) {
1465 if (_argo0 == Py_None) { _arg0 = NULL; }
1466 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1467 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetBackgroundColour. Expected _wxListItem_p.");
1468 return NULL;
1469 }
1470 }
1471{
4268f798 1472 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
1473 _result = new wxColour (wxListItem_GetBackgroundColour(_arg0));
1474
4268f798 1475 wxPyEndAllowThreads(__tstate);
493f1553 1476 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1477} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
1478 _resultobj = Py_BuildValue("s",_ptemp);
1479 return _resultobj;
1480}
1481
1482#define wxListItem_GetFont(_swigobj) (_swigobj->GetFont())
1483static PyObject *_wrap_wxListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
1484 PyObject * _resultobj;
1485 wxFont * _result;
1486 wxListItem * _arg0;
1487 PyObject * _argo0 = 0;
1488 char *_kwnames[] = { "self", NULL };
1489 char _ptemp[128];
1490
1491 self = self;
1492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetFont",_kwnames,&_argo0))
1493 return NULL;
1494 if (_argo0) {
1495 if (_argo0 == Py_None) { _arg0 = NULL; }
1496 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1497 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetFont. Expected _wxListItem_p.");
1498 return NULL;
1499 }
1500 }
1501{
4268f798 1502 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
1503 _result = new wxFont (wxListItem_GetFont(_arg0));
1504
4268f798 1505 wxPyEndAllowThreads(__tstate);
493f1553 1506 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1507} SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p");
1508 _resultobj = Py_BuildValue("s",_ptemp);
1509 return _resultobj;
1510}
1511
1512#define wxListItem_m_mask_set(_swigobj,_swigval) (_swigobj->m_mask = _swigval,_swigval)
1513static PyObject *_wrap_wxListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) {
1514 PyObject * _resultobj;
1515 long _result;
1516 wxListItem * _arg0;
1517 long _arg1;
1518 PyObject * _argo0 = 0;
1519 char *_kwnames[] = { "self","m_mask", NULL };
1520
1521 self = self;
1522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_mask_set",_kwnames,&_argo0,&_arg1))
1523 return NULL;
1524 if (_argo0) {
1525 if (_argo0 == Py_None) { _arg0 = NULL; }
1526 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1527 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_set. Expected _wxListItem_p.");
1528 return NULL;
1529 }
1530 }
1531{
4268f798 1532 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
1533 _result = (long )wxListItem_m_mask_set(_arg0,_arg1);
1534
4268f798 1535 wxPyEndAllowThreads(__tstate);
493f1553 1536 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1537} _resultobj = Py_BuildValue("l",_result);
1538 return _resultobj;
1539}
1540
1541#define wxListItem_m_mask_get(_swigobj) ((long ) _swigobj->m_mask)
1542static PyObject *_wrap_wxListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) {
1543 PyObject * _resultobj;
1544 long _result;
1545 wxListItem * _arg0;
1546 PyObject * _argo0 = 0;
1547 char *_kwnames[] = { "self", NULL };
1548
1549 self = self;
1550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_mask_get",_kwnames,&_argo0))
1551 return NULL;
1552 if (_argo0) {
1553 if (_argo0 == Py_None) { _arg0 = NULL; }
1554 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1555 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_get. Expected _wxListItem_p.");
1556 return NULL;
1557 }
1558 }
1559{
4268f798 1560 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
1561 _result = (long )wxListItem_m_mask_get(_arg0);
1562
4268f798 1563 wxPyEndAllowThreads(__tstate);
493f1553 1564 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1565} _resultobj = Py_BuildValue("l",_result);
1566 return _resultobj;
1567}
1568
1569#define wxListItem_m_itemId_set(_swigobj,_swigval) (_swigobj->m_itemId = _swigval,_swigval)
1570static PyObject *_wrap_wxListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) {
1571 PyObject * _resultobj;
1572 long _result;
1573 wxListItem * _arg0;
1574 long _arg1;
1575 PyObject * _argo0 = 0;
1576 char *_kwnames[] = { "self","m_itemId", NULL };
1577
1578 self = self;
1579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_itemId_set",_kwnames,&_argo0,&_arg1))
1580 return NULL;
1581 if (_argo0) {
1582 if (_argo0 == Py_None) { _arg0 = NULL; }
1583 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1584 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_set. Expected _wxListItem_p.");
1585 return NULL;
1586 }
1587 }
1588{
4268f798 1589 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
1590 _result = (long )wxListItem_m_itemId_set(_arg0,_arg1);
1591
4268f798 1592 wxPyEndAllowThreads(__tstate);
493f1553 1593 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1594} _resultobj = Py_BuildValue("l",_result);
1595 return _resultobj;
1596}
1597
1598#define wxListItem_m_itemId_get(_swigobj) ((long ) _swigobj->m_itemId)
1599static PyObject *_wrap_wxListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) {
1600 PyObject * _resultobj;
1601 long _result;
1602 wxListItem * _arg0;
1603 PyObject * _argo0 = 0;
1604 char *_kwnames[] = { "self", NULL };
1605
1606 self = self;
1607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_itemId_get",_kwnames,&_argo0))
1608 return NULL;
1609 if (_argo0) {
1610 if (_argo0 == Py_None) { _arg0 = NULL; }
1611 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1612 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_get. Expected _wxListItem_p.");
1613 return NULL;
1614 }
1615 }
1616{
4268f798 1617 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
1618 _result = (long )wxListItem_m_itemId_get(_arg0);
1619
4268f798 1620 wxPyEndAllowThreads(__tstate);
493f1553 1621 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1622} _resultobj = Py_BuildValue("l",_result);
1623 return _resultobj;
1624}
1625
1626#define wxListItem_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval)
1627static PyObject *_wrap_wxListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) {
1628 PyObject * _resultobj;
1629 int _result;
1630 wxListItem * _arg0;
1631 int _arg1;
1632 PyObject * _argo0 = 0;
1633 char *_kwnames[] = { "self","m_col", NULL };
1634
1635 self = self;
1636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_col_set",_kwnames,&_argo0,&_arg1))
1637 return NULL;
1638 if (_argo0) {
1639 if (_argo0 == Py_None) { _arg0 = NULL; }
1640 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1641 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_set. Expected _wxListItem_p.");
1642 return NULL;
1643 }
1644 }
1645{
4268f798 1646 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
1647 _result = (int )wxListItem_m_col_set(_arg0,_arg1);
1648
4268f798 1649 wxPyEndAllowThreads(__tstate);
493f1553 1650 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1651} _resultobj = Py_BuildValue("i",_result);
1652 return _resultobj;
1653}
1654
1655#define wxListItem_m_col_get(_swigobj) ((int ) _swigobj->m_col)
1656static PyObject *_wrap_wxListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) {
1657 PyObject * _resultobj;
1658 int _result;
1659 wxListItem * _arg0;
1660 PyObject * _argo0 = 0;
1661 char *_kwnames[] = { "self", NULL };
1662
1663 self = self;
1664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_col_get",_kwnames,&_argo0))
1665 return NULL;
1666 if (_argo0) {
1667 if (_argo0 == Py_None) { _arg0 = NULL; }
1668 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1669 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_get. Expected _wxListItem_p.");
1670 return NULL;
1671 }
1672 }
1673{
4268f798 1674 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
1675 _result = (int )wxListItem_m_col_get(_arg0);
1676
4268f798 1677 wxPyEndAllowThreads(__tstate);
493f1553 1678 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1679} _resultobj = Py_BuildValue("i",_result);
1680 return _resultobj;
1681}
1682
1683#define wxListItem_m_state_set(_swigobj,_swigval) (_swigobj->m_state = _swigval,_swigval)
1684static PyObject *_wrap_wxListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) {
1685 PyObject * _resultobj;
1686 long _result;
1687 wxListItem * _arg0;
1688 long _arg1;
1689 PyObject * _argo0 = 0;
1690 char *_kwnames[] = { "self","m_state", NULL };
1691
1692 self = self;
1693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_state_set",_kwnames,&_argo0,&_arg1))
1694 return NULL;
1695 if (_argo0) {
1696 if (_argo0 == Py_None) { _arg0 = NULL; }
1697 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1698 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_set. Expected _wxListItem_p.");
1699 return NULL;
1700 }
1701 }
1702{
4268f798 1703 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
1704 _result = (long )wxListItem_m_state_set(_arg0,_arg1);
1705
4268f798 1706 wxPyEndAllowThreads(__tstate);
493f1553 1707 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1708} _resultobj = Py_BuildValue("l",_result);
1709 return _resultobj;
1710}
1711
1712#define wxListItem_m_state_get(_swigobj) ((long ) _swigobj->m_state)
1713static PyObject *_wrap_wxListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) {
1714 PyObject * _resultobj;
1715 long _result;
1716 wxListItem * _arg0;
1717 PyObject * _argo0 = 0;
1718 char *_kwnames[] = { "self", NULL };
1719
1720 self = self;
1721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_state_get",_kwnames,&_argo0))
1722 return NULL;
1723 if (_argo0) {
1724 if (_argo0 == Py_None) { _arg0 = NULL; }
1725 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1726 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_get. Expected _wxListItem_p.");
1727 return NULL;
1728 }
1729 }
1730{
4268f798 1731 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
1732 _result = (long )wxListItem_m_state_get(_arg0);
1733
4268f798 1734 wxPyEndAllowThreads(__tstate);
493f1553 1735 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1736} _resultobj = Py_BuildValue("l",_result);
1737 return _resultobj;
1738}
1739
1740#define wxListItem_m_stateMask_set(_swigobj,_swigval) (_swigobj->m_stateMask = _swigval,_swigval)
1741static PyObject *_wrap_wxListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) {
1742 PyObject * _resultobj;
1743 long _result;
1744 wxListItem * _arg0;
1745 long _arg1;
1746 PyObject * _argo0 = 0;
1747 char *_kwnames[] = { "self","m_stateMask", NULL };
1748
1749 self = self;
1750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_stateMask_set",_kwnames,&_argo0,&_arg1))
1751 return NULL;
1752 if (_argo0) {
1753 if (_argo0 == Py_None) { _arg0 = NULL; }
1754 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1755 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_set. Expected _wxListItem_p.");
1756 return NULL;
1757 }
1758 }
1759{
4268f798 1760 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
1761 _result = (long )wxListItem_m_stateMask_set(_arg0,_arg1);
1762
4268f798 1763 wxPyEndAllowThreads(__tstate);
493f1553 1764 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1765} _resultobj = Py_BuildValue("l",_result);
1766 return _resultobj;
1767}
1768
1769#define wxListItem_m_stateMask_get(_swigobj) ((long ) _swigobj->m_stateMask)
1770static PyObject *_wrap_wxListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) {
1771 PyObject * _resultobj;
1772 long _result;
1773 wxListItem * _arg0;
1774 PyObject * _argo0 = 0;
1775 char *_kwnames[] = { "self", NULL };
1776
1777 self = self;
1778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_stateMask_get",_kwnames,&_argo0))
1779 return NULL;
1780 if (_argo0) {
1781 if (_argo0 == Py_None) { _arg0 = NULL; }
1782 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1783 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_get. Expected _wxListItem_p.");
1784 return NULL;
1785 }
1786 }
1787{
4268f798 1788 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
1789 _result = (long )wxListItem_m_stateMask_get(_arg0);
1790
4268f798 1791 wxPyEndAllowThreads(__tstate);
493f1553 1792 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1793} _resultobj = Py_BuildValue("l",_result);
1794 return _resultobj;
1795}
1796
1797#define wxListItem_m_text_set(_swigobj,_swigval) (_swigobj->m_text = *(_swigval),_swigval)
1798static PyObject *_wrap_wxListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) {
1799 PyObject * _resultobj;
1800 wxString * _result;
1801 wxListItem * _arg0;
1802 wxString * _arg1;
1803 PyObject * _argo0 = 0;
1804 PyObject * _obj1 = 0;
1805 char *_kwnames[] = { "self","m_text", NULL };
1806
1807 self = self;
1808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_m_text_set",_kwnames,&_argo0,&_obj1))
1809 return NULL;
1810 if (_argo0) {
1811 if (_argo0 == Py_None) { _arg0 = NULL; }
1812 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1813 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_set. Expected _wxListItem_p.");
1814 return NULL;
1815 }
1816 }
1817{
185d7c3e
RD
1818#if PYTHON_API_VERSION >= 1009
1819 char* tmpPtr; int tmpSize;
1820 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
794c5cb1 1821 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
185d7c3e
RD
1822 return NULL;
1823 }
1824 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1825 return NULL;
1826 _arg1 = new wxString(tmpPtr, tmpSize);
1827#else
f6bcfd97
BP
1828 if (!PyString_Check(_obj1)) {
1829 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1830 return NULL;
1831 }
185d7c3e
RD
1832 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1833#endif
f6bcfd97
BP
1834}
1835{
4268f798 1836 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
1837 _result = (wxString *)wxListItem_m_text_set(_arg0,_arg1);
1838
4268f798 1839 wxPyEndAllowThreads(__tstate);
493f1553 1840 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1841}{
1842 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
1843}
1844{
1845 if (_obj1)
1846 delete _arg1;
1847}
1848 return _resultobj;
1849}
1850
1851#define wxListItem_m_text_get(_swigobj) (&_swigobj->m_text)
1852static PyObject *_wrap_wxListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) {
1853 PyObject * _resultobj;
1854 wxString * _result;
1855 wxListItem * _arg0;
1856 PyObject * _argo0 = 0;
1857 char *_kwnames[] = { "self", NULL };
1858
1859 self = self;
1860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_text_get",_kwnames,&_argo0))
1861 return NULL;
1862 if (_argo0) {
1863 if (_argo0 == Py_None) { _arg0 = NULL; }
1864 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1865 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_get. Expected _wxListItem_p.");
1866 return NULL;
1867 }
1868 }
1869{
4268f798 1870 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
1871 _result = (wxString *)wxListItem_m_text_get(_arg0);
1872
4268f798 1873 wxPyEndAllowThreads(__tstate);
493f1553 1874 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1875}{
1876 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
1877}
1878 return _resultobj;
1879}
1880
1881#define wxListItem_m_image_set(_swigobj,_swigval) (_swigobj->m_image = _swigval,_swigval)
1882static PyObject *_wrap_wxListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) {
1883 PyObject * _resultobj;
1884 int _result;
1885 wxListItem * _arg0;
1886 int _arg1;
1887 PyObject * _argo0 = 0;
1888 char *_kwnames[] = { "self","m_image", NULL };
1889
1890 self = self;
1891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_image_set",_kwnames,&_argo0,&_arg1))
1892 return NULL;
1893 if (_argo0) {
1894 if (_argo0 == Py_None) { _arg0 = NULL; }
1895 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1896 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_set. Expected _wxListItem_p.");
1897 return NULL;
1898 }
1899 }
1900{
4268f798 1901 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
1902 _result = (int )wxListItem_m_image_set(_arg0,_arg1);
1903
4268f798 1904 wxPyEndAllowThreads(__tstate);
493f1553 1905 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1906} _resultobj = Py_BuildValue("i",_result);
1907 return _resultobj;
1908}
1909
1910#define wxListItem_m_image_get(_swigobj) ((int ) _swigobj->m_image)
1911static PyObject *_wrap_wxListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) {
1912 PyObject * _resultobj;
1913 int _result;
1914 wxListItem * _arg0;
1915 PyObject * _argo0 = 0;
1916 char *_kwnames[] = { "self", NULL };
1917
1918 self = self;
1919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_image_get",_kwnames,&_argo0))
1920 return NULL;
1921 if (_argo0) {
1922 if (_argo0 == Py_None) { _arg0 = NULL; }
1923 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1924 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_get. Expected _wxListItem_p.");
1925 return NULL;
1926 }
1927 }
1928{
4268f798 1929 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
1930 _result = (int )wxListItem_m_image_get(_arg0);
1931
4268f798 1932 wxPyEndAllowThreads(__tstate);
493f1553 1933 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1934} _resultobj = Py_BuildValue("i",_result);
1935 return _resultobj;
1936}
1937
1938#define wxListItem_m_data_set(_swigobj,_swigval) (_swigobj->m_data = _swigval,_swigval)
1939static PyObject *_wrap_wxListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) {
1940 PyObject * _resultobj;
1941 long _result;
1942 wxListItem * _arg0;
1943 long _arg1;
1944 PyObject * _argo0 = 0;
1945 char *_kwnames[] = { "self","m_data", NULL };
1946
1947 self = self;
1948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_data_set",_kwnames,&_argo0,&_arg1))
1949 return NULL;
1950 if (_argo0) {
1951 if (_argo0 == Py_None) { _arg0 = NULL; }
1952 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1953 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_set. Expected _wxListItem_p.");
1954 return NULL;
1955 }
1956 }
1957{
4268f798 1958 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
1959 _result = (long )wxListItem_m_data_set(_arg0,_arg1);
1960
4268f798 1961 wxPyEndAllowThreads(__tstate);
493f1553 1962 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1963} _resultobj = Py_BuildValue("l",_result);
1964 return _resultobj;
1965}
1966
1967#define wxListItem_m_data_get(_swigobj) ((long ) _swigobj->m_data)
1968static PyObject *_wrap_wxListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) {
1969 PyObject * _resultobj;
1970 long _result;
1971 wxListItem * _arg0;
1972 PyObject * _argo0 = 0;
1973 char *_kwnames[] = { "self", NULL };
1974
1975 self = self;
1976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_data_get",_kwnames,&_argo0))
1977 return NULL;
1978 if (_argo0) {
1979 if (_argo0 == Py_None) { _arg0 = NULL; }
1980 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
1981 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_get. Expected _wxListItem_p.");
1982 return NULL;
1983 }
1984 }
1985{
4268f798 1986 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
1987 _result = (long )wxListItem_m_data_get(_arg0);
1988
4268f798 1989 wxPyEndAllowThreads(__tstate);
493f1553 1990 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
1991} _resultobj = Py_BuildValue("l",_result);
1992 return _resultobj;
1993}
1994
1995#define wxListItem_m_format_set(_swigobj,_swigval) (_swigobj->m_format = _swigval,_swigval)
1996static PyObject *_wrap_wxListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) {
1997 PyObject * _resultobj;
1998 int _result;
1999 wxListItem * _arg0;
2000 int _arg1;
2001 PyObject * _argo0 = 0;
2002 char *_kwnames[] = { "self","m_format", NULL };
2003
2004 self = self;
2005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_format_set",_kwnames,&_argo0,&_arg1))
2006 return NULL;
2007 if (_argo0) {
2008 if (_argo0 == Py_None) { _arg0 = NULL; }
2009 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
2010 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_set. Expected _wxListItem_p.");
2011 return NULL;
2012 }
2013 }
2014{
4268f798 2015 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
2016 _result = (int )wxListItem_m_format_set(_arg0,_arg1);
2017
4268f798 2018 wxPyEndAllowThreads(__tstate);
493f1553 2019 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2020} _resultobj = Py_BuildValue("i",_result);
2021 return _resultobj;
2022}
2023
2024#define wxListItem_m_format_get(_swigobj) ((int ) _swigobj->m_format)
2025static PyObject *_wrap_wxListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) {
2026 PyObject * _resultobj;
2027 int _result;
2028 wxListItem * _arg0;
2029 PyObject * _argo0 = 0;
2030 char *_kwnames[] = { "self", NULL };
2031
2032 self = self;
2033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_format_get",_kwnames,&_argo0))
2034 return NULL;
2035 if (_argo0) {
2036 if (_argo0 == Py_None) { _arg0 = NULL; }
2037 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
2038 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_get. Expected _wxListItem_p.");
2039 return NULL;
2040 }
2041 }
2042{
4268f798 2043 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
2044 _result = (int )wxListItem_m_format_get(_arg0);
2045
4268f798 2046 wxPyEndAllowThreads(__tstate);
493f1553 2047 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2048} _resultobj = Py_BuildValue("i",_result);
2049 return _resultobj;
8ab979d7
RD
2050}
2051
f6bcfd97
BP
2052#define wxListItem_m_width_set(_swigobj,_swigval) (_swigobj->m_width = _swigval,_swigval)
2053static PyObject *_wrap_wxListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) {
af309447 2054 PyObject * _resultobj;
f6bcfd97 2055 int _result;
af309447 2056 wxListItem * _arg0;
f6bcfd97 2057 int _arg1;
1d99702e 2058 PyObject * _argo0 = 0;
f6bcfd97 2059 char *_kwnames[] = { "self","m_width", NULL };
af309447
RD
2060
2061 self = self;
f6bcfd97 2062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_width_set",_kwnames,&_argo0,&_arg1))
af309447 2063 return NULL;
1d99702e
RD
2064 if (_argo0) {
2065 if (_argo0 == Py_None) { _arg0 = NULL; }
2066 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
f6bcfd97 2067 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_set. Expected _wxListItem_p.");
af309447
RD
2068 return NULL;
2069 }
2070 }
cf694132 2071{
4268f798 2072 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97 2073 _result = (int )wxListItem_m_width_set(_arg0,_arg1);
cf694132 2074
4268f798 2075 wxPyEndAllowThreads(__tstate);
493f1553 2076 if (PyErr_Occurred()) return NULL;
f6bcfd97 2077} _resultobj = Py_BuildValue("i",_result);
af309447
RD
2078 return _resultobj;
2079}
2080
f6bcfd97
BP
2081#define wxListItem_m_width_get(_swigobj) ((int ) _swigobj->m_width)
2082static PyObject *_wrap_wxListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 2083 PyObject * _resultobj;
f6bcfd97 2084 int _result;
8ab979d7 2085 wxListItem * _arg0;
1d99702e 2086 PyObject * _argo0 = 0;
efc5f224 2087 char *_kwnames[] = { "self", NULL };
8ab979d7
RD
2088
2089 self = self;
f6bcfd97 2090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_width_get",_kwnames,&_argo0))
8ab979d7 2091 return NULL;
1d99702e
RD
2092 if (_argo0) {
2093 if (_argo0 == Py_None) { _arg0 = NULL; }
2094 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
f6bcfd97
BP
2095 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_get. Expected _wxListItem_p.");
2096 return NULL;
2097 }
2098 }
2099{
4268f798 2100 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
2101 _result = (int )wxListItem_m_width_get(_arg0);
2102
4268f798 2103 wxPyEndAllowThreads(__tstate);
493f1553 2104 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2105} _resultobj = Py_BuildValue("i",_result);
2106 return _resultobj;
2107}
2108
c368d904
RD
2109static void *SwigwxListEventTowxNotifyEvent(void *ptr) {
2110 wxListEvent *src;
2111 wxNotifyEvent *dest;
2112 src = (wxListEvent *) ptr;
2113 dest = (wxNotifyEvent *) src;
2114 return (void *) dest;
2115}
2116
f6bcfd97
BP
2117static void *SwigwxListEventTowxCommandEvent(void *ptr) {
2118 wxListEvent *src;
2119 wxCommandEvent *dest;
2120 src = (wxListEvent *) ptr;
2121 dest = (wxCommandEvent *) src;
2122 return (void *) dest;
2123}
2124
2125static void *SwigwxListEventTowxEvent(void *ptr) {
2126 wxListEvent *src;
2127 wxEvent *dest;
2128 src = (wxListEvent *) ptr;
2129 dest = (wxEvent *) src;
2130 return (void *) dest;
2131}
2132
9416aa89
RD
2133static void *SwigwxListEventTowxObject(void *ptr) {
2134 wxListEvent *src;
2135 wxObject *dest;
2136 src = (wxListEvent *) ptr;
2137 dest = (wxObject *) src;
2138 return (void *) dest;
2139}
2140
6d19860f
RD
2141#define new_wxListEvent(_swigarg0,_swigarg1) (new wxListEvent(_swigarg0,_swigarg1))
2142static PyObject *_wrap_new_wxListEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
2143 PyObject * _resultobj;
2144 wxListEvent * _result;
2145 wxEventType _arg0 = (wxEventType ) wxEVT_NULL;
2146 int _arg1 = (int ) 0;
2147 char *_kwnames[] = { "commandType","id", NULL };
2148 char _ptemp[128];
2149
2150 self = self;
2151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxListEvent",_kwnames,&_arg0,&_arg1))
2152 return NULL;
2153{
4268f798 2154 PyThreadState* __tstate = wxPyBeginAllowThreads();
6d19860f
RD
2155 _result = (wxListEvent *)new_wxListEvent(_arg0,_arg1);
2156
4268f798 2157 wxPyEndAllowThreads(__tstate);
6d19860f
RD
2158 if (PyErr_Occurred()) return NULL;
2159} if (_result) {
2160 SWIG_MakePtr(_ptemp, (char *) _result,"_wxListEvent_p");
2161 _resultobj = Py_BuildValue("s",_ptemp);
2162 } else {
2163 Py_INCREF(Py_None);
2164 _resultobj = Py_None;
2165 }
2166 return _resultobj;
2167}
2168
f6bcfd97
BP
2169#define wxListEvent_m_code_set(_swigobj,_swigval) (_swigobj->m_code = _swigval,_swigval)
2170static PyObject *_wrap_wxListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) {
2171 PyObject * _resultobj;
2172 int _result;
2173 wxListEvent * _arg0;
2174 int _arg1;
2175 PyObject * _argo0 = 0;
2176 char *_kwnames[] = { "self","m_code", NULL };
2177
2178 self = self;
2179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_code_set",_kwnames,&_argo0,&_arg1))
2180 return NULL;
2181 if (_argo0) {
2182 if (_argo0 == Py_None) { _arg0 = NULL; }
2183 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2184 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_code_set. Expected _wxListEvent_p.");
2185 return NULL;
2186 }
2187 }
2188{
4268f798 2189 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
2190 _result = (int )wxListEvent_m_code_set(_arg0,_arg1);
2191
4268f798 2192 wxPyEndAllowThreads(__tstate);
493f1553 2193 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2194} _resultobj = Py_BuildValue("i",_result);
2195 return _resultobj;
2196}
2197
2198#define wxListEvent_m_code_get(_swigobj) ((int ) _swigobj->m_code)
2199static PyObject *_wrap_wxListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) {
2200 PyObject * _resultobj;
2201 int _result;
2202 wxListEvent * _arg0;
2203 PyObject * _argo0 = 0;
2204 char *_kwnames[] = { "self", NULL };
2205
2206 self = self;
2207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_code_get",_kwnames,&_argo0))
2208 return NULL;
2209 if (_argo0) {
2210 if (_argo0 == Py_None) { _arg0 = NULL; }
2211 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2212 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_code_get. Expected _wxListEvent_p.");
2213 return NULL;
2214 }
2215 }
2216{
4268f798 2217 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
2218 _result = (int )wxListEvent_m_code_get(_arg0);
2219
4268f798 2220 wxPyEndAllowThreads(__tstate);
493f1553 2221 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2222} _resultobj = Py_BuildValue("i",_result);
2223 return _resultobj;
2224}
2225
ebf4302c
RD
2226#define wxListEvent_m_oldItemIndex_set(_swigobj,_swigval) (_swigobj->m_oldItemIndex = _swigval,_swigval)
2227static PyObject *_wrap_wxListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) {
f6bcfd97
BP
2228 PyObject * _resultobj;
2229 long _result;
2230 wxListEvent * _arg0;
2231 long _arg1;
2232 PyObject * _argo0 = 0;
ebf4302c 2233 char *_kwnames[] = { "self","m_oldItemIndex", NULL };
f6bcfd97
BP
2234
2235 self = self;
ebf4302c 2236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListEvent_m_oldItemIndex_set",_kwnames,&_argo0,&_arg1))
f6bcfd97
BP
2237 return NULL;
2238 if (_argo0) {
2239 if (_argo0 == Py_None) { _arg0 = NULL; }
2240 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
ebf4302c 2241 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_set. Expected _wxListEvent_p.");
f6bcfd97
BP
2242 return NULL;
2243 }
2244 }
2245{
4268f798 2246 PyThreadState* __tstate = wxPyBeginAllowThreads();
ebf4302c 2247 _result = (long )wxListEvent_m_oldItemIndex_set(_arg0,_arg1);
f6bcfd97 2248
4268f798 2249 wxPyEndAllowThreads(__tstate);
493f1553 2250 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2251} _resultobj = Py_BuildValue("l",_result);
2252 return _resultobj;
2253}
2254
ebf4302c
RD
2255#define wxListEvent_m_oldItemIndex_get(_swigobj) ((long ) _swigobj->m_oldItemIndex)
2256static PyObject *_wrap_wxListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) {
f6bcfd97
BP
2257 PyObject * _resultobj;
2258 long _result;
2259 wxListEvent * _arg0;
2260 PyObject * _argo0 = 0;
2261 char *_kwnames[] = { "self", NULL };
2262
2263 self = self;
ebf4302c 2264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_oldItemIndex_get",_kwnames,&_argo0))
f6bcfd97
BP
2265 return NULL;
2266 if (_argo0) {
2267 if (_argo0 == Py_None) { _arg0 = NULL; }
2268 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
ebf4302c 2269 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_get. Expected _wxListEvent_p.");
f6bcfd97
BP
2270 return NULL;
2271 }
2272 }
2273{
4268f798 2274 PyThreadState* __tstate = wxPyBeginAllowThreads();
ebf4302c 2275 _result = (long )wxListEvent_m_oldItemIndex_get(_arg0);
f6bcfd97 2276
4268f798 2277 wxPyEndAllowThreads(__tstate);
493f1553 2278 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2279} _resultobj = Py_BuildValue("l",_result);
2280 return _resultobj;
2281}
2282
ebf4302c
RD
2283#define wxListEvent_m_itemIndex_set(_swigobj,_swigval) (_swigobj->m_itemIndex = _swigval,_swigval)
2284static PyObject *_wrap_wxListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) {
f6bcfd97 2285 PyObject * _resultobj;
ebf4302c 2286 long _result;
f6bcfd97 2287 wxListEvent * _arg0;
ebf4302c 2288 long _arg1;
f6bcfd97 2289 PyObject * _argo0 = 0;
ebf4302c 2290 char *_kwnames[] = { "self","m_itemIndex", NULL };
f6bcfd97
BP
2291
2292 self = self;
ebf4302c 2293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListEvent_m_itemIndex_set",_kwnames,&_argo0,&_arg1))
f6bcfd97
BP
2294 return NULL;
2295 if (_argo0) {
2296 if (_argo0 == Py_None) { _arg0 = NULL; }
2297 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
ebf4302c 2298 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_set. Expected _wxListEvent_p.");
8ab979d7
RD
2299 return NULL;
2300 }
2301 }
cf694132 2302{
4268f798 2303 PyThreadState* __tstate = wxPyBeginAllowThreads();
ebf4302c 2304 _result = (long )wxListEvent_m_itemIndex_set(_arg0,_arg1);
cf694132 2305
4268f798 2306 wxPyEndAllowThreads(__tstate);
493f1553 2307 if (PyErr_Occurred()) return NULL;
ebf4302c 2308} _resultobj = Py_BuildValue("l",_result);
8ab979d7
RD
2309 return _resultobj;
2310}
2311
ebf4302c
RD
2312#define wxListEvent_m_itemIndex_get(_swigobj) ((long ) _swigobj->m_itemIndex)
2313static PyObject *_wrap_wxListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) {
af309447 2314 PyObject * _resultobj;
ebf4302c 2315 long _result;
f6bcfd97 2316 wxListEvent * _arg0;
1d99702e 2317 PyObject * _argo0 = 0;
f6bcfd97 2318 char *_kwnames[] = { "self", NULL };
af309447
RD
2319
2320 self = self;
ebf4302c 2321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_itemIndex_get",_kwnames,&_argo0))
af309447 2322 return NULL;
1d99702e
RD
2323 if (_argo0) {
2324 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97 2325 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
ebf4302c 2326 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_get. Expected _wxListEvent_p.");
af309447
RD
2327 return NULL;
2328 }
2329 }
cf694132 2330{
4268f798 2331 PyThreadState* __tstate = wxPyBeginAllowThreads();
ebf4302c 2332 _result = (long )wxListEvent_m_itemIndex_get(_arg0);
cf694132 2333
4268f798 2334 wxPyEndAllowThreads(__tstate);
493f1553 2335 if (PyErr_Occurred()) return NULL;
ebf4302c 2336} _resultobj = Py_BuildValue("l",_result);
af309447
RD
2337 return _resultobj;
2338}
2339
ebf4302c
RD
2340#define wxListEvent_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval)
2341static PyObject *_wrap_wxListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 2342 PyObject * _resultobj;
ebf4302c 2343 int _result;
f6bcfd97 2344 wxListEvent * _arg0;
ebf4302c 2345 int _arg1;
1d99702e 2346 PyObject * _argo0 = 0;
ebf4302c 2347 char *_kwnames[] = { "self","m_col", NULL };
8ab979d7
RD
2348
2349 self = self;
ebf4302c 2350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_col_set",_kwnames,&_argo0,&_arg1))
8ab979d7 2351 return NULL;
1d99702e
RD
2352 if (_argo0) {
2353 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97 2354 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
ebf4302c 2355 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_set. Expected _wxListEvent_p.");
8ab979d7
RD
2356 return NULL;
2357 }
2358 }
cf694132 2359{
4268f798 2360 PyThreadState* __tstate = wxPyBeginAllowThreads();
ebf4302c 2361 _result = (int )wxListEvent_m_col_set(_arg0,_arg1);
cf694132 2362
4268f798 2363 wxPyEndAllowThreads(__tstate);
493f1553 2364 if (PyErr_Occurred()) return NULL;
cf694132 2365} _resultobj = Py_BuildValue("i",_result);
8ab979d7
RD
2366 return _resultobj;
2367}
2368
ebf4302c
RD
2369#define wxListEvent_m_col_get(_swigobj) ((int ) _swigobj->m_col)
2370static PyObject *_wrap_wxListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) {
af309447 2371 PyObject * _resultobj;
ebf4302c 2372 int _result;
f6bcfd97 2373 wxListEvent * _arg0;
1d99702e 2374 PyObject * _argo0 = 0;
f6bcfd97 2375 char *_kwnames[] = { "self", NULL };
af309447
RD
2376
2377 self = self;
ebf4302c 2378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_col_get",_kwnames,&_argo0))
af309447 2379 return NULL;
1d99702e
RD
2380 if (_argo0) {
2381 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97 2382 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
ebf4302c 2383 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_get. Expected _wxListEvent_p.");
af309447
RD
2384 return NULL;
2385 }
2386 }
cf694132 2387{
4268f798 2388 PyThreadState* __tstate = wxPyBeginAllowThreads();
ebf4302c 2389 _result = (int )wxListEvent_m_col_get(_arg0);
cf694132 2390
4268f798 2391 wxPyEndAllowThreads(__tstate);
493f1553 2392 if (PyErr_Occurred()) return NULL;
cf694132 2393} _resultobj = Py_BuildValue("i",_result);
af309447
RD
2394 return _resultobj;
2395}
2396
f6bcfd97
BP
2397#define wxListEvent_m_pointDrag_set(_swigobj,_swigval) (_swigobj->m_pointDrag = *(_swigval),_swigval)
2398static PyObject *_wrap_wxListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 2399 PyObject * _resultobj;
f6bcfd97
BP
2400 wxPoint * _result;
2401 wxListEvent * _arg0;
2402 wxPoint * _arg1;
1d99702e 2403 PyObject * _argo0 = 0;
f6bcfd97
BP
2404 wxPoint temp;
2405 PyObject * _obj1 = 0;
2406 char *_kwnames[] = { "self","m_pointDrag", NULL };
2407 char _ptemp[128];
8ab979d7
RD
2408
2409 self = self;
f6bcfd97 2410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListEvent_m_pointDrag_set",_kwnames,&_argo0,&_obj1))
8ab979d7 2411 return NULL;
1d99702e
RD
2412 if (_argo0) {
2413 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
2414 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2415 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_set. Expected _wxListEvent_p.");
8ab979d7
RD
2416 return NULL;
2417 }
2418 }
f6bcfd97
BP
2419{
2420 _arg1 = &temp;
2421 if (! wxPoint_helper(_obj1, &_arg1))
2422 return NULL;
2423}
cf694132 2424{
4268f798 2425 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97 2426 _result = (wxPoint *)wxListEvent_m_pointDrag_set(_arg0,_arg1);
cf694132 2427
4268f798 2428 wxPyEndAllowThreads(__tstate);
493f1553 2429 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2430} if (_result) {
2431 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p");
2432 _resultobj = Py_BuildValue("s",_ptemp);
2433 } else {
2434 Py_INCREF(Py_None);
2435 _resultobj = Py_None;
2436 }
8ab979d7
RD
2437 return _resultobj;
2438}
2439
f6bcfd97
BP
2440#define wxListEvent_m_pointDrag_get(_swigobj) (&_swigobj->m_pointDrag)
2441static PyObject *_wrap_wxListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 2442 PyObject * _resultobj;
f6bcfd97
BP
2443 wxPoint * _result;
2444 wxListEvent * _arg0;
2445 PyObject * _argo0 = 0;
2446 char *_kwnames[] = { "self", NULL };
8ab979d7
RD
2447 char _ptemp[128];
2448
2449 self = self;
f6bcfd97
BP
2450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_pointDrag_get",_kwnames,&_argo0))
2451 return NULL;
2452 if (_argo0) {
2453 if (_argo0 == Py_None) { _arg0 = NULL; }
2454 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2455 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_get. Expected _wxListEvent_p.");
8ab979d7 2456 return NULL;
f6bcfd97
BP
2457 }
2458 }
cf694132 2459{
4268f798 2460 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97 2461 _result = (wxPoint *)wxListEvent_m_pointDrag_get(_arg0);
cf694132 2462
4268f798 2463 wxPyEndAllowThreads(__tstate);
493f1553 2464 if (PyErr_Occurred()) return NULL;
1d99702e 2465} if (_result) {
f6bcfd97 2466 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p");
1d99702e
RD
2467 _resultobj = Py_BuildValue("s",_ptemp);
2468 } else {
2469 Py_INCREF(Py_None);
2470 _resultobj = Py_None;
2471 }
8ab979d7
RD
2472 return _resultobj;
2473}
2474
f6bcfd97
BP
2475#define wxListEvent_m_item_set(_swigobj,_swigval) (_swigobj->m_item = *(_swigval),_swigval)
2476static PyObject *_wrap_wxListEvent_m_item_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 2477 PyObject * _resultobj;
f6bcfd97
BP
2478 wxListItem * _result;
2479 wxListEvent * _arg0;
2480 wxListItem * _arg1;
1d99702e 2481 PyObject * _argo0 = 0;
f6bcfd97
BP
2482 PyObject * _argo1 = 0;
2483 char *_kwnames[] = { "self","m_item", NULL };
8ab979d7
RD
2484
2485 self = self;
f6bcfd97 2486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListEvent_m_item_set",_kwnames,&_argo0,&_argo1))
8ab979d7 2487 return NULL;
1d99702e
RD
2488 if (_argo0) {
2489 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
2490 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2491 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_set. Expected _wxListEvent_p.");
2492 return NULL;
2493 }
2494 }
2495 if (_argo1) {
2496 if (_argo1 == Py_None) { _arg1 = NULL; }
2497 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) {
2498 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListEvent_m_item_set. Expected _wxListItem_p.");
8ab979d7
RD
2499 return NULL;
2500 }
2501 }
cf694132 2502{
4268f798 2503 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97 2504 _result = (wxListItem *)wxListEvent_m_item_set(_arg0,_arg1);
cf694132 2505
4268f798 2506 wxPyEndAllowThreads(__tstate);
493f1553 2507 if (PyErr_Occurred()) return NULL;
9416aa89 2508}{ _resultobj = wxPyMake_wxObject(_result); }
8ab979d7
RD
2509 return _resultobj;
2510}
2511
f6bcfd97
BP
2512#define wxListEvent_m_item_get(_swigobj) (&_swigobj->m_item)
2513static PyObject *_wrap_wxListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) {
af309447 2514 PyObject * _resultobj;
f6bcfd97 2515 wxListItem * _result;
af309447 2516 wxListEvent * _arg0;
1d99702e 2517 PyObject * _argo0 = 0;
f6bcfd97 2518 char *_kwnames[] = { "self", NULL };
af309447
RD
2519
2520 self = self;
f6bcfd97 2521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_item_get",_kwnames,&_argo0))
af309447 2522 return NULL;
1d99702e
RD
2523 if (_argo0) {
2524 if (_argo0 == Py_None) { _arg0 = NULL; }
2525 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
f6bcfd97 2526 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_get. Expected _wxListEvent_p.");
af309447
RD
2527 return NULL;
2528 }
2529 }
cf694132 2530{
4268f798 2531 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97 2532 _result = (wxListItem *)wxListEvent_m_item_get(_arg0);
cf694132 2533
4268f798 2534 wxPyEndAllowThreads(__tstate);
493f1553 2535 if (PyErr_Occurred()) return NULL;
9416aa89 2536}{ _resultobj = wxPyMake_wxObject(_result); }
af309447
RD
2537 return _resultobj;
2538}
2539
f6bcfd97
BP
2540#define wxListEvent_GetCode(_swigobj) (_swigobj->GetCode())
2541static PyObject *_wrap_wxListEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7
RD
2542 PyObject * _resultobj;
2543 int _result;
2544 wxListEvent * _arg0;
1d99702e 2545 PyObject * _argo0 = 0;
efc5f224 2546 char *_kwnames[] = { "self", NULL };
8ab979d7
RD
2547
2548 self = self;
f6bcfd97 2549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCode",_kwnames,&_argo0))
8ab979d7 2550 return NULL;
1d99702e
RD
2551 if (_argo0) {
2552 if (_argo0 == Py_None) { _arg0 = NULL; }
2553 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
f6bcfd97 2554 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCode. Expected _wxListEvent_p.");
8ab979d7
RD
2555 return NULL;
2556 }
2557 }
cf694132 2558{
4268f798 2559 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97 2560 _result = (int )wxListEvent_GetCode(_arg0);
cf694132 2561
4268f798 2562 wxPyEndAllowThreads(__tstate);
493f1553 2563 if (PyErr_Occurred()) return NULL;
cf694132 2564} _resultobj = Py_BuildValue("i",_result);
8ab979d7
RD
2565 return _resultobj;
2566}
2567
f6bcfd97
BP
2568#define wxListEvent_GetIndex(_swigobj) (_swigobj->GetIndex())
2569static PyObject *_wrap_wxListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
af309447
RD
2570 PyObject * _resultobj;
2571 long _result;
2572 wxListEvent * _arg0;
1d99702e 2573 PyObject * _argo0 = 0;
f6bcfd97 2574 char *_kwnames[] = { "self", NULL };
af309447
RD
2575
2576 self = self;
f6bcfd97 2577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetIndex",_kwnames,&_argo0))
af309447 2578 return NULL;
1d99702e
RD
2579 if (_argo0) {
2580 if (_argo0 == Py_None) { _arg0 = NULL; }
2581 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
f6bcfd97 2582 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetIndex. Expected _wxListEvent_p.");
af309447
RD
2583 return NULL;
2584 }
2585 }
cf694132 2586{
4268f798 2587 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97 2588 _result = (long )wxListEvent_GetIndex(_arg0);
cf694132 2589
4268f798 2590 wxPyEndAllowThreads(__tstate);
493f1553 2591 if (PyErr_Occurred()) return NULL;
cf694132 2592} _resultobj = Py_BuildValue("l",_result);
af309447
RD
2593 return _resultobj;
2594}
2595
f6bcfd97
BP
2596#define wxListEvent_GetColumn(_swigobj) (_swigobj->GetColumn())
2597static PyObject *_wrap_wxListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 2598 PyObject * _resultobj;
f6bcfd97 2599 int _result;
8ab979d7 2600 wxListEvent * _arg0;
1d99702e 2601 PyObject * _argo0 = 0;
efc5f224 2602 char *_kwnames[] = { "self", NULL };
8ab979d7
RD
2603
2604 self = self;
f6bcfd97 2605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetColumn",_kwnames,&_argo0))
8ab979d7 2606 return NULL;
1d99702e
RD
2607 if (_argo0) {
2608 if (_argo0 == Py_None) { _arg0 = NULL; }
2609 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
f6bcfd97 2610 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetColumn. Expected _wxListEvent_p.");
8ab979d7
RD
2611 return NULL;
2612 }
2613 }
cf694132 2614{
4268f798 2615 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97 2616 _result = (int )wxListEvent_GetColumn(_arg0);
cf694132 2617
4268f798 2618 wxPyEndAllowThreads(__tstate);
493f1553 2619 if (PyErr_Occurred()) return NULL;
f6bcfd97 2620} _resultobj = Py_BuildValue("i",_result);
8ab979d7
RD
2621 return _resultobj;
2622}
2623
f6bcfd97
BP
2624#define wxListEvent_GetPoint(_swigobj) (_swigobj->GetPoint())
2625static PyObject *_wrap_wxListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 2626 PyObject * _resultobj;
f6bcfd97 2627 wxPoint * _result;
8ab979d7 2628 wxListEvent * _arg0;
1d99702e 2629 PyObject * _argo0 = 0;
efc5f224 2630 char *_kwnames[] = { "self", NULL };
f6bcfd97 2631 char _ptemp[128];
8ab979d7
RD
2632
2633 self = self;
f6bcfd97 2634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetPoint",_kwnames,&_argo0))
8ab979d7 2635 return NULL;
1d99702e
RD
2636 if (_argo0) {
2637 if (_argo0 == Py_None) { _arg0 = NULL; }
2638 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
f6bcfd97 2639 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetPoint. Expected _wxListEvent_p.");
8ab979d7
RD
2640 return NULL;
2641 }
2642 }
cf694132 2643{
4268f798 2644 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97 2645 _result = new wxPoint (wxListEvent_GetPoint(_arg0));
cf694132 2646
4268f798 2647 wxPyEndAllowThreads(__tstate);
493f1553 2648 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2649} SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
2650 _resultobj = Py_BuildValue("s",_ptemp);
8ab979d7
RD
2651 return _resultobj;
2652}
2653
f6bcfd97
BP
2654#define wxListEvent_GetLabel(_swigobj) (_swigobj->GetLabel())
2655static PyObject *_wrap_wxListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
af309447 2656 PyObject * _resultobj;
f6bcfd97 2657 wxString * _result;
af309447 2658 wxListEvent * _arg0;
1d99702e 2659 PyObject * _argo0 = 0;
f6bcfd97 2660 char *_kwnames[] = { "self", NULL };
af309447
RD
2661
2662 self = self;
f6bcfd97 2663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetLabel",_kwnames,&_argo0))
af309447 2664 return NULL;
1d99702e
RD
2665 if (_argo0) {
2666 if (_argo0 == Py_None) { _arg0 = NULL; }
2667 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
f6bcfd97 2668 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetLabel. Expected _wxListEvent_p.");
af309447
RD
2669 return NULL;
2670 }
2671 }
cf694132 2672{
4268f798 2673 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
2674 const wxString & _result_ref = wxListEvent_GetLabel(_arg0);
2675 _result = (wxString *) &_result_ref;
cf694132 2676
4268f798 2677 wxPyEndAllowThreads(__tstate);
493f1553 2678 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2679}{
2680 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2681}
af309447
RD
2682 return _resultobj;
2683}
2684
f6bcfd97
BP
2685#define wxListEvent_GetText(_swigobj) (_swigobj->GetText())
2686static PyObject *_wrap_wxListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 2687 PyObject * _resultobj;
f6bcfd97 2688 wxString * _result;
8ab979d7 2689 wxListEvent * _arg0;
1d99702e 2690 PyObject * _argo0 = 0;
efc5f224 2691 char *_kwnames[] = { "self", NULL };
8ab979d7
RD
2692
2693 self = self;
f6bcfd97 2694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetText",_kwnames,&_argo0))
8ab979d7 2695 return NULL;
1d99702e
RD
2696 if (_argo0) {
2697 if (_argo0 == Py_None) { _arg0 = NULL; }
2698 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
f6bcfd97 2699 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetText. Expected _wxListEvent_p.");
8ab979d7
RD
2700 return NULL;
2701 }
2702 }
cf694132 2703{
4268f798 2704 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
2705 const wxString & _result_ref = wxListEvent_GetText(_arg0);
2706 _result = (wxString *) &_result_ref;
cf694132 2707
4268f798 2708 wxPyEndAllowThreads(__tstate);
493f1553 2709 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
2710}{
2711 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2712}
8ab979d7
RD
2713 return _resultobj;
2714}
2715
f6bcfd97
BP
2716#define wxListEvent_GetImage(_swigobj) (_swigobj->GetImage())
2717static PyObject *_wrap_wxListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) {
af309447 2718 PyObject * _resultobj;
f6bcfd97 2719 int _result;
af309447 2720 wxListEvent * _arg0;
1d99702e 2721 PyObject * _argo0 = 0;
f6bcfd97 2722 char *_kwnames[] = { "self", NULL };
af309447
RD
2723
2724 self = self;
f6bcfd97 2725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetImage",_kwnames,&_argo0))
af309447 2726 return NULL;
1d99702e
RD
2727 if (_argo0) {
2728 if (_argo0 == Py_None) { _arg0 = NULL; }
2729 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
f6bcfd97 2730 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetImage. Expected _wxListEvent_p.");
af309447
RD
2731 return NULL;
2732 }
2733 }
cf694132 2734{
4268f798 2735 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97 2736 _result = (int )wxListEvent_GetImage(_arg0);
cf694132 2737
4268f798 2738 wxPyEndAllowThreads(__tstate);
493f1553 2739 if (PyErr_Occurred()) return NULL;
f6bcfd97 2740} _resultobj = Py_BuildValue("i",_result);
af309447
RD
2741 return _resultobj;
2742}
2743
f6bcfd97
BP
2744#define wxListEvent_GetData(_swigobj) (_swigobj->GetData())
2745static PyObject *_wrap_wxListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 2746 PyObject * _resultobj;
f6bcfd97 2747 long _result;
8ab979d7 2748 wxListEvent * _arg0;
1d99702e 2749 PyObject * _argo0 = 0;
efc5f224 2750 char *_kwnames[] = { "self", NULL };
8ab979d7
RD
2751
2752 self = self;
f6bcfd97 2753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetData",_kwnames,&_argo0))
8ab979d7 2754 return NULL;
1d99702e
RD
2755 if (_argo0) {
2756 if (_argo0 == Py_None) { _arg0 = NULL; }
2757 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
f6bcfd97 2758 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetData. Expected _wxListEvent_p.");
8ab979d7
RD
2759 return NULL;
2760 }
2761 }
cf694132 2762{
4268f798 2763 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97 2764 _result = (long )wxListEvent_GetData(_arg0);
cf694132 2765
4268f798 2766 wxPyEndAllowThreads(__tstate);
493f1553 2767 if (PyErr_Occurred()) return NULL;
f6bcfd97 2768} _resultobj = Py_BuildValue("l",_result);
8ab979d7
RD
2769 return _resultobj;
2770}
2771
f6bcfd97
BP
2772#define wxListEvent_GetMask(_swigobj) (_swigobj->GetMask())
2773static PyObject *_wrap_wxListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
af309447 2774 PyObject * _resultobj;
f6bcfd97 2775 long _result;
af309447 2776 wxListEvent * _arg0;
1d99702e 2777 PyObject * _argo0 = 0;
f6bcfd97 2778 char *_kwnames[] = { "self", NULL };
af309447
RD
2779
2780 self = self;
f6bcfd97 2781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetMask",_kwnames,&_argo0))
af309447 2782 return NULL;
1d99702e
RD
2783 if (_argo0) {
2784 if (_argo0 == Py_None) { _arg0 = NULL; }
2785 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
f6bcfd97 2786 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetMask. Expected _wxListEvent_p.");
af309447
RD
2787 return NULL;
2788 }
2789 }
cf694132 2790{
4268f798 2791 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97 2792 _result = (long )wxListEvent_GetMask(_arg0);
cf694132 2793
4268f798 2794 wxPyEndAllowThreads(__tstate);
493f1553 2795 if (PyErr_Occurred()) return NULL;
f6bcfd97 2796} _resultobj = Py_BuildValue("l",_result);
af309447
RD
2797 return _resultobj;
2798}
2799
f6bcfd97
BP
2800#define wxListEvent_GetItem(_swigobj) (_swigobj->GetItem())
2801static PyObject *_wrap_wxListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7
RD
2802 PyObject * _resultobj;
2803 wxListItem * _result;
2804 wxListEvent * _arg0;
1d99702e 2805 PyObject * _argo0 = 0;
efc5f224 2806 char *_kwnames[] = { "self", NULL };
8ab979d7
RD
2807
2808 self = self;
f6bcfd97 2809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetItem",_kwnames,&_argo0))
8ab979d7 2810 return NULL;
1d99702e
RD
2811 if (_argo0) {
2812 if (_argo0 == Py_None) { _arg0 = NULL; }
2813 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
f6bcfd97 2814 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetItem. Expected _wxListEvent_p.");
8ab979d7
RD
2815 return NULL;
2816 }
2817 }
cf694132 2818{
4268f798 2819 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
2820 const wxListItem & _result_ref = wxListEvent_GetItem(_arg0);
2821 _result = (wxListItem *) &_result_ref;
cf694132 2822
4268f798 2823 wxPyEndAllowThreads(__tstate);
493f1553 2824 if (PyErr_Occurred()) return NULL;
9416aa89 2825}{ _resultobj = wxPyMake_wxObject(_result); }
8ab979d7
RD
2826 return _resultobj;
2827}
2828
6d19860f
RD
2829#define wxListEvent_GetCacheFrom(_swigobj) (_swigobj->GetCacheFrom())
2830static PyObject *_wrap_wxListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) {
2831 PyObject * _resultobj;
2832 long _result;
2833 wxListEvent * _arg0;
2834 PyObject * _argo0 = 0;
2835 char *_kwnames[] = { "self", NULL };
2836
2837 self = self;
2838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCacheFrom",_kwnames,&_argo0))
2839 return NULL;
2840 if (_argo0) {
2841 if (_argo0 == Py_None) { _arg0 = NULL; }
2842 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2843 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCacheFrom. Expected _wxListEvent_p.");
2844 return NULL;
2845 }
2846 }
2847{
4268f798 2848 PyThreadState* __tstate = wxPyBeginAllowThreads();
6d19860f
RD
2849 _result = (long )wxListEvent_GetCacheFrom(_arg0);
2850
4268f798 2851 wxPyEndAllowThreads(__tstate);
6d19860f
RD
2852 if (PyErr_Occurred()) return NULL;
2853} _resultobj = Py_BuildValue("l",_result);
2854 return _resultobj;
2855}
2856
2857#define wxListEvent_GetCacheTo(_swigobj) (_swigobj->GetCacheTo())
2858static PyObject *_wrap_wxListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) {
2859 PyObject * _resultobj;
2860 long _result;
2861 wxListEvent * _arg0;
2862 PyObject * _argo0 = 0;
2863 char *_kwnames[] = { "self", NULL };
2864
2865 self = self;
2866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCacheTo",_kwnames,&_argo0))
2867 return NULL;
2868 if (_argo0) {
2869 if (_argo0 == Py_None) { _arg0 = NULL; }
2870 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
2871 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCacheTo. Expected _wxListEvent_p.");
2872 return NULL;
2873 }
2874 }
2875{
4268f798 2876 PyThreadState* __tstate = wxPyBeginAllowThreads();
6d19860f
RD
2877 _result = (long )wxListEvent_GetCacheTo(_arg0);
2878
4268f798 2879 wxPyEndAllowThreads(__tstate);
6d19860f
RD
2880 if (PyErr_Occurred()) return NULL;
2881} _resultobj = Py_BuildValue("l",_result);
2882 return _resultobj;
2883}
2884
c7e7022c
RD
2885static void *SwigwxPyListCtrlTowxControl(void *ptr) {
2886 wxPyListCtrl *src;
8ab979d7 2887 wxControl *dest;
c7e7022c 2888 src = (wxPyListCtrl *) ptr;
8ab979d7
RD
2889 dest = (wxControl *) src;
2890 return (void *) dest;
2891}
2892
c7e7022c
RD
2893static void *SwigwxPyListCtrlTowxWindow(void *ptr) {
2894 wxPyListCtrl *src;
8ab979d7 2895 wxWindow *dest;
c7e7022c 2896 src = (wxPyListCtrl *) ptr;
8ab979d7
RD
2897 dest = (wxWindow *) src;
2898 return (void *) dest;
2899}
2900
c7e7022c
RD
2901static void *SwigwxPyListCtrlTowxEvtHandler(void *ptr) {
2902 wxPyListCtrl *src;
8ab979d7 2903 wxEvtHandler *dest;
c7e7022c 2904 src = (wxPyListCtrl *) ptr;
8ab979d7
RD
2905 dest = (wxEvtHandler *) src;
2906 return (void *) dest;
2907}
2908
c7e7022c
RD
2909static void *SwigwxPyListCtrlTowxObject(void *ptr) {
2910 wxPyListCtrl *src;
9416aa89 2911 wxObject *dest;
c7e7022c 2912 src = (wxPyListCtrl *) ptr;
9416aa89
RD
2913 dest = (wxObject *) src;
2914 return (void *) dest;
2915}
2916
c7e7022c 2917#define new_wxListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
efc5f224 2918static PyObject *_wrap_new_wxListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 2919 PyObject * _resultobj;
c7e7022c 2920 wxPyListCtrl * _result;
8ab979d7 2921 wxWindow * _arg0;
c7e7022c 2922 wxWindowID _arg1 = (wxWindowID ) -1;
e508a2b6
RD
2923 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
2924 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
0adbc166 2925 long _arg4 = (long ) (wxLC_ICON);
e508a2b6 2926 wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator;
1d99702e
RD
2927 char * _arg6 = (char *) "listCtrl";
2928 PyObject * _argo0 = 0;
2f90df85
RD
2929 wxPoint temp;
2930 PyObject * _obj2 = 0;
2931 wxSize temp0;
2932 PyObject * _obj3 = 0;
1d99702e 2933 PyObject * _argo5 = 0;
efc5f224 2934 char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL };
8ab979d7
RD
2935 char _ptemp[128];
2936
2937 self = self;
c7e7022c 2938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6))
8ab979d7 2939 return NULL;
1d99702e
RD
2940 if (_argo0) {
2941 if (_argo0 == Py_None) { _arg0 = NULL; }
2942 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
8ab979d7
RD
2943 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListCtrl. Expected _wxWindow_p.");
2944 return NULL;
2945 }
2946 }
2f90df85
RD
2947 if (_obj2)
2948{
2949 _arg2 = &temp;
2950 if (! wxPoint_helper(_obj2, &_arg2))
8ab979d7 2951 return NULL;
2f90df85
RD
2952}
2953 if (_obj3)
2954{
2955 _arg3 = &temp0;
2956 if (! wxSize_helper(_obj3, &_arg3))
8ab979d7 2957 return NULL;
2f90df85 2958}
1d99702e
RD
2959 if (_argo5) {
2960 if (_argo5 == Py_None) { _arg5 = NULL; }
2961 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) {
8ab979d7
RD
2962 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListCtrl. Expected _wxValidator_p.");
2963 return NULL;
2964 }
2965 }
cf694132 2966{
4268f798 2967 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c 2968 _result = (wxPyListCtrl *)new_wxListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6);
cf694132 2969
4268f798 2970 wxPyEndAllowThreads(__tstate);
493f1553 2971 if (PyErr_Occurred()) return NULL;
1d99702e 2972} if (_result) {
c7e7022c 2973 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyListCtrl_p");
1d99702e
RD
2974 _resultobj = Py_BuildValue("s",_ptemp);
2975 } else {
2976 Py_INCREF(Py_None);
2977 _resultobj = Py_None;
2978 }
8ab979d7
RD
2979 return _resultobj;
2980}
2981
09f3d4e6
RD
2982#define new_wxPreListCtrl() (new wxPyListCtrl())
2983static PyObject *_wrap_new_wxPreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
2984 PyObject * _resultobj;
2985 wxPyListCtrl * _result;
2986 char *_kwnames[] = { NULL };
2987 char _ptemp[128];
2988
2989 self = self;
2990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListCtrl",_kwnames))
2991 return NULL;
2992{
4268f798 2993 PyThreadState* __tstate = wxPyBeginAllowThreads();
09f3d4e6
RD
2994 _result = (wxPyListCtrl *)new_wxPreListCtrl();
2995
4268f798 2996 wxPyEndAllowThreads(__tstate);
09f3d4e6
RD
2997 if (PyErr_Occurred()) return NULL;
2998} if (_result) {
2999 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyListCtrl_p");
3000 _resultobj = Py_BuildValue("s",_ptemp);
3001 } else {
3002 Py_INCREF(Py_None);
3003 _resultobj = Py_None;
3004 }
3005 return _resultobj;
3006}
3007
3008#define wxListCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
3009static PyObject *_wrap_wxListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
3010 PyObject * _resultobj;
3011 bool _result;
3012 wxPyListCtrl * _arg0;
3013 wxWindow * _arg1;
3014 wxWindowID _arg2 = (wxWindowID ) -1;
3015 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
3016 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
3017 long _arg5 = (long ) (wxLC_ICON);
3018 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
3019 char * _arg7 = (char *) "listCtrl";
3020 PyObject * _argo0 = 0;
3021 PyObject * _argo1 = 0;
3022 wxPoint temp;
3023 PyObject * _obj3 = 0;
3024 wxSize temp0;
3025 PyObject * _obj4 = 0;
3026 PyObject * _argo6 = 0;
3027 char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL };
3028
3029 self = self;
3030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOs:wxListCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7))
3031 return NULL;
3032 if (_argo0) {
3033 if (_argo0 == Py_None) { _arg0 = NULL; }
3034 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3035 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Create. Expected _wxPyListCtrl_p.");
3036 return NULL;
3037 }
3038 }
3039 if (_argo1) {
3040 if (_argo1 == Py_None) { _arg1 = NULL; }
3041 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
3042 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_Create. Expected _wxWindow_p.");
3043 return NULL;
3044 }
3045 }
3046 if (_obj3)
3047{
3048 _arg3 = &temp;
3049 if (! wxPoint_helper(_obj3, &_arg3))
3050 return NULL;
3051}
3052 if (_obj4)
3053{
3054 _arg4 = &temp0;
3055 if (! wxSize_helper(_obj4, &_arg4))
3056 return NULL;
3057}
3058 if (_argo6) {
3059 if (_argo6 == Py_None) { _arg6 = NULL; }
3060 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
3061 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxListCtrl_Create. Expected _wxValidator_p.");
3062 return NULL;
3063 }
3064 }
3065{
4268f798 3066 PyThreadState* __tstate = wxPyBeginAllowThreads();
09f3d4e6
RD
3067 _result = (bool )wxListCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7);
3068
4268f798 3069 wxPyEndAllowThreads(__tstate);
09f3d4e6
RD
3070 if (PyErr_Occurred()) return NULL;
3071} _resultobj = Py_BuildValue("i",_result);
3072 return _resultobj;
3073}
3074
0122b7e3
RD
3075#define wxListCtrl__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
3076static PyObject *_wrap_wxListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 3077 PyObject * _resultobj;
c7e7022c
RD
3078 wxPyListCtrl * _arg0;
3079 PyObject * _arg1;
3080 PyObject * _arg2;
1d99702e 3081 PyObject * _argo0 = 0;
c7e7022c
RD
3082 PyObject * _obj1 = 0;
3083 PyObject * _obj2 = 0;
3084 char *_kwnames[] = { "self","self","_class", NULL };
8ab979d7
RD
3085
3086 self = self;
0122b7e3 3087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxListCtrl__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2))
8ab979d7 3088 return NULL;
1d99702e
RD
3089 if (_argo0) {
3090 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c 3091 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
0122b7e3 3092 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl__setCallbackInfo. Expected _wxPyListCtrl_p.");
8ab979d7
RD
3093 return NULL;
3094 }
3095 }
c7e7022c
RD
3096{
3097 _arg1 = _obj1;
3098}
3099{
3100 _arg2 = _obj2;
3101}
cf694132 3102{
4268f798 3103 PyThreadState* __tstate = wxPyBeginAllowThreads();
0122b7e3 3104 wxListCtrl__setCallbackInfo(_arg0,_arg1,_arg2);
cf694132 3105
4268f798 3106 wxPyEndAllowThreads(__tstate);
493f1553 3107 if (PyErr_Occurred()) return NULL;
c7e7022c
RD
3108} Py_INCREF(Py_None);
3109 _resultobj = Py_None;
8ab979d7
RD
3110 return _resultobj;
3111}
3112
c7e7022c
RD
3113#define wxListCtrl_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0))
3114static PyObject *_wrap_wxListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1b62f00d 3115 PyObject * _resultobj;
c7e7022c
RD
3116 bool _result;
3117 wxPyListCtrl * _arg0;
3118 wxColour * _arg1;
1b62f00d 3119 PyObject * _argo0 = 0;
c7e7022c
RD
3120 wxColour temp;
3121 PyObject * _obj1 = 0;
3122 char *_kwnames[] = { "self","col", NULL };
1b62f00d
RD
3123
3124 self = self;
c7e7022c 3125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetForegroundColour",_kwnames,&_argo0,&_obj1))
1b62f00d
RD
3126 return NULL;
3127 if (_argo0) {
3128 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
3129 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3130 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetForegroundColour. Expected _wxPyListCtrl_p.");
1b62f00d
RD
3131 return NULL;
3132 }
3133 }
c7e7022c
RD
3134{
3135 _arg1 = &temp;
3136 if (! wxColour_helper(_obj1, &_arg1))
1b62f00d 3137 return NULL;
c7e7022c 3138}
1b62f00d 3139{
4268f798 3140 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c 3141 _result = (bool )wxListCtrl_SetForegroundColour(_arg0,*_arg1);
1b62f00d 3142
4268f798 3143 wxPyEndAllowThreads(__tstate);
493f1553 3144 if (PyErr_Occurred()) return NULL;
c7e7022c 3145} _resultobj = Py_BuildValue("i",_result);
1b62f00d
RD
3146 return _resultobj;
3147}
3148
c7e7022c
RD
3149#define wxListCtrl_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
3150static PyObject *_wrap_wxListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7
RD
3151 PyObject * _resultobj;
3152 bool _result;
c7e7022c
RD
3153 wxPyListCtrl * _arg0;
3154 wxColour * _arg1;
1d99702e 3155 PyObject * _argo0 = 0;
c7e7022c
RD
3156 wxColour temp;
3157 PyObject * _obj1 = 0;
3158 char *_kwnames[] = { "self","col", NULL };
8ab979d7
RD
3159
3160 self = self;
c7e7022c 3161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetBackgroundColour",_kwnames,&_argo0,&_obj1))
8ab979d7 3162 return NULL;
1d99702e
RD
3163 if (_argo0) {
3164 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
3165 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3166 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetBackgroundColour. Expected _wxPyListCtrl_p.");
8ab979d7
RD
3167 return NULL;
3168 }
3169 }
c7e7022c
RD
3170{
3171 _arg1 = &temp;
3172 if (! wxColour_helper(_obj1, &_arg1))
3173 return NULL;
3174}
cf694132 3175{
4268f798 3176 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c 3177 _result = (bool )wxListCtrl_SetBackgroundColour(_arg0,*_arg1);
cf694132 3178
4268f798 3179 wxPyEndAllowThreads(__tstate);
493f1553 3180 if (PyErr_Occurred()) return NULL;
cf694132 3181} _resultobj = Py_BuildValue("i",_result);
8ab979d7
RD
3182 return _resultobj;
3183}
3184
14afa2cb
RD
3185static wxListItem * wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col) {
3186 wxListItem item;
3187 if (self->GetColumn(col, item))
3188 return new wxListItem(item);
3189 else
3190 return NULL;
3191 }
c7e7022c 3192static PyObject *_wrap_wxListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 3193 PyObject * _resultobj;
14afa2cb 3194 wxListItem * _result;
c7e7022c
RD
3195 wxPyListCtrl * _arg0;
3196 int _arg1;
1d99702e 3197 PyObject * _argo0 = 0;
14afa2cb 3198 char *_kwnames[] = { "self","col", NULL };
8ab979d7
RD
3199
3200 self = self;
14afa2cb 3201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetColumn",_kwnames,&_argo0,&_arg1))
8ab979d7 3202 return NULL;
1d99702e
RD
3203 if (_argo0) {
3204 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
3205 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3206 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumn. Expected _wxPyListCtrl_p.");
3207 return NULL;
3208 }
3209 }
cf694132 3210{
4268f798 3211 PyThreadState* __tstate = wxPyBeginAllowThreads();
14afa2cb 3212 _result = (wxListItem *)wxPyListCtrl_GetColumn(_arg0,_arg1);
cf694132 3213
4268f798 3214 wxPyEndAllowThreads(__tstate);
493f1553 3215 if (PyErr_Occurred()) return NULL;
14afa2cb 3216}{ _resultobj = wxPyMake_wxObject(_result); }
8ab979d7
RD
3217 return _resultobj;
3218}
3219
c7e7022c
RD
3220#define wxListCtrl_SetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumn(_swigarg0,_swigarg1))
3221static PyObject *_wrap_wxListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7
RD
3222 PyObject * _resultobj;
3223 bool _result;
c7e7022c 3224 wxPyListCtrl * _arg0;
8ab979d7 3225 int _arg1;
c7e7022c 3226 wxListItem * _arg2;
1d99702e 3227 PyObject * _argo0 = 0;
c7e7022c
RD
3228 PyObject * _argo2 = 0;
3229 char *_kwnames[] = { "self","col","item", NULL };
8ab979d7
RD
3230
3231 self = self;
c7e7022c 3232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_SetColumn",_kwnames,&_argo0,&_arg1,&_argo2))
8ab979d7 3233 return NULL;
1d99702e
RD
3234 if (_argo0) {
3235 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
3236 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3237 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumn. Expected _wxPyListCtrl_p.");
3238 return NULL;
3239 }
3240 }
3241 if (_argo2) {
3242 if (_argo2 == Py_None) { _arg2 = NULL; }
3243 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) {
3244 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_SetColumn. Expected _wxListItem_p.");
8ab979d7
RD
3245 return NULL;
3246 }
3247 }
cf694132 3248{
4268f798 3249 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c 3250 _result = (bool )wxListCtrl_SetColumn(_arg0,_arg1,*_arg2);
cf694132 3251
4268f798 3252 wxPyEndAllowThreads(__tstate);
493f1553 3253 if (PyErr_Occurred()) return NULL;
cf694132 3254} _resultobj = Py_BuildValue("i",_result);
8ab979d7
RD
3255 return _resultobj;
3256}
3257
c7e7022c
RD
3258#define wxListCtrl_GetColumnWidth(_swigobj,_swigarg0) (_swigobj->GetColumnWidth(_swigarg0))
3259static PyObject *_wrap_wxListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 3260 PyObject * _resultobj;
c7e7022c
RD
3261 int _result;
3262 wxPyListCtrl * _arg0;
3263 int _arg1;
1d99702e 3264 PyObject * _argo0 = 0;
c7e7022c 3265 char *_kwnames[] = { "self","col", NULL };
8ab979d7
RD
3266
3267 self = self;
c7e7022c 3268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetColumnWidth",_kwnames,&_argo0,&_arg1))
8ab979d7 3269 return NULL;
1d99702e
RD
3270 if (_argo0) {
3271 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
3272 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3273 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnWidth. Expected _wxPyListCtrl_p.");
8ab979d7
RD
3274 return NULL;
3275 }
3276 }
cf694132 3277{
4268f798 3278 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c 3279 _result = (int )wxListCtrl_GetColumnWidth(_arg0,_arg1);
cf694132 3280
4268f798 3281 wxPyEndAllowThreads(__tstate);
493f1553 3282 if (PyErr_Occurred()) return NULL;
cf694132 3283} _resultobj = Py_BuildValue("i",_result);
8ab979d7
RD
3284 return _resultobj;
3285}
3286
c7e7022c
RD
3287#define wxListCtrl_SetColumnWidth(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnWidth(_swigarg0,_swigarg1))
3288static PyObject *_wrap_wxListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 3289 PyObject * _resultobj;
c7e7022c
RD
3290 bool _result;
3291 wxPyListCtrl * _arg0;
3292 int _arg1;
3293 int _arg2;
1d99702e 3294 PyObject * _argo0 = 0;
c7e7022c 3295 char *_kwnames[] = { "self","col","width", NULL };
8ab979d7
RD
3296
3297 self = self;
c7e7022c 3298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_SetColumnWidth",_kwnames,&_argo0,&_arg1,&_arg2))
8ab979d7 3299 return NULL;
1d99702e
RD
3300 if (_argo0) {
3301 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
3302 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3303 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumnWidth. Expected _wxPyListCtrl_p.");
8ab979d7
RD
3304 return NULL;
3305 }
3306 }
cf694132 3307{
4268f798 3308 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c 3309 _result = (bool )wxListCtrl_SetColumnWidth(_arg0,_arg1,_arg2);
cf694132 3310
4268f798 3311 wxPyEndAllowThreads(__tstate);
493f1553 3312 if (PyErr_Occurred()) return NULL;
c7e7022c 3313} _resultobj = Py_BuildValue("i",_result);
8ab979d7
RD
3314 return _resultobj;
3315}
3316
c7e7022c
RD
3317#define wxListCtrl_GetCountPerPage(_swigobj) (_swigobj->GetCountPerPage())
3318static PyObject *_wrap_wxListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 3319 PyObject * _resultobj;
c7e7022c
RD
3320 int _result;
3321 wxPyListCtrl * _arg0;
1d99702e 3322 PyObject * _argo0 = 0;
c7e7022c 3323 char *_kwnames[] = { "self", NULL };
8ab979d7
RD
3324
3325 self = self;
c7e7022c 3326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetCountPerPage",_kwnames,&_argo0))
8ab979d7 3327 return NULL;
1d99702e
RD
3328 if (_argo0) {
3329 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
3330 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3331 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetCountPerPage. Expected _wxPyListCtrl_p.");
8ab979d7
RD
3332 return NULL;
3333 }
3334 }
cf694132 3335{
4268f798 3336 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c 3337 _result = (int )wxListCtrl_GetCountPerPage(_arg0);
cf694132 3338
4268f798 3339 wxPyEndAllowThreads(__tstate);
493f1553 3340 if (PyErr_Occurred()) return NULL;
c7e7022c 3341} _resultobj = Py_BuildValue("i",_result);
8ab979d7
RD
3342 return _resultobj;
3343}
3344
c7e7022c
RD
3345#define wxListCtrl_GetEditControl(_swigobj) (_swigobj->GetEditControl())
3346static PyObject *_wrap_wxListCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 3347 PyObject * _resultobj;
c7e7022c
RD
3348 wxTextCtrl * _result;
3349 wxPyListCtrl * _arg0;
1d99702e 3350 PyObject * _argo0 = 0;
c7e7022c 3351 char *_kwnames[] = { "self", NULL };
8ab979d7
RD
3352
3353 self = self;
c7e7022c 3354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetEditControl",_kwnames,&_argo0))
8ab979d7 3355 return NULL;
1d99702e
RD
3356 if (_argo0) {
3357 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
3358 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3359 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetEditControl. Expected _wxPyListCtrl_p.");
8ab979d7
RD
3360 return NULL;
3361 }
3362 }
cf694132 3363{
4268f798 3364 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c 3365 _result = (wxTextCtrl *)wxListCtrl_GetEditControl(_arg0);
cf694132 3366
4268f798 3367 wxPyEndAllowThreads(__tstate);
493f1553 3368 if (PyErr_Occurred()) return NULL;
c7e7022c 3369}{ _resultobj = wxPyMake_wxObject(_result); }
8ab979d7
RD
3370 return _resultobj;
3371}
3372
c7e7022c
RD
3373static wxListItem * wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col) {
3374 wxListItem* info = new wxListItem;
3375 info->m_itemId = itemId;
3376 info->m_col = col;
3377 info->m_mask = 0xFFFF;
3378 self->GetItem(*info);
3379 return info;
3380 }
3381static PyObject *_wrap_wxListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
be4d9c1f 3382 PyObject * _resultobj;
c7e7022c
RD
3383 wxListItem * _result;
3384 wxPyListCtrl * _arg0;
3385 long _arg1;
3386 int _arg2 = (int ) 0;
1d99702e 3387 PyObject * _argo0 = 0;
c7e7022c 3388 char *_kwnames[] = { "self","itemId","col", NULL };
be4d9c1f
RD
3389
3390 self = self;
c7e7022c 3391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItem",_kwnames,&_argo0,&_arg1,&_arg2))
be4d9c1f 3392 return NULL;
1d99702e
RD
3393 if (_argo0) {
3394 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
3395 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3396 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItem. Expected _wxPyListCtrl_p.");
be4d9c1f
RD
3397 return NULL;
3398 }
3399 }
cf694132 3400{
4268f798 3401 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c 3402 _result = (wxListItem *)wxPyListCtrl_GetItem(_arg0,_arg1,_arg2);
cf694132 3403
4268f798 3404 wxPyEndAllowThreads(__tstate);
493f1553 3405 if (PyErr_Occurred()) return NULL;
9416aa89 3406}{ _resultobj = wxPyMake_wxObject(_result); }
be4d9c1f
RD
3407 return _resultobj;
3408}
3409
c7e7022c
RD
3410#define wxListCtrl_SetItem(_swigobj,_swigarg0) (_swigobj->SetItem(_swigarg0))
3411static PyObject *_wrap_wxListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7
RD
3412 PyObject * _resultobj;
3413 bool _result;
c7e7022c
RD
3414 wxPyListCtrl * _arg0;
3415 wxListItem * _arg1;
1d99702e 3416 PyObject * _argo0 = 0;
c7e7022c
RD
3417 PyObject * _argo1 = 0;
3418 char *_kwnames[] = { "self","info", NULL };
8ab979d7
RD
3419
3420 self = self;
c7e7022c 3421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetItem",_kwnames,&_argo0,&_argo1))
8ab979d7 3422 return NULL;
1d99702e
RD
3423 if (_argo0) {
3424 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
3425 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3426 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItem. Expected _wxPyListCtrl_p.");
3427 return NULL;
3428 }
3429 }
3430 if (_argo1) {
3431 if (_argo1 == Py_None) { _arg1 = NULL; }
3432 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) {
3433 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetItem. Expected _wxListItem_p.");
8ab979d7
RD
3434 return NULL;
3435 }
3436 }
cf694132 3437{
4268f798 3438 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c 3439 _result = (bool )wxListCtrl_SetItem(_arg0,*_arg1);
cf694132 3440
4268f798 3441 wxPyEndAllowThreads(__tstate);
493f1553 3442 if (PyErr_Occurred()) return NULL;
cf694132 3443} _resultobj = Py_BuildValue("i",_result);
8ab979d7
RD
3444 return _resultobj;
3445}
3446
c7e7022c
RD
3447#define wxListCtrl_SetStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
3448static PyObject *_wrap_wxListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7
RD
3449 PyObject * _resultobj;
3450 long _result;
c7e7022c 3451 wxPyListCtrl * _arg0;
8ab979d7 3452 long _arg1;
c7e7022c
RD
3453 int _arg2;
3454 wxString * _arg3;
3455 int _arg4 = (int ) -1;
1d99702e 3456 PyObject * _argo0 = 0;
c7e7022c
RD
3457 PyObject * _obj3 = 0;
3458 char *_kwnames[] = { "self","index","col","label","imageId", NULL };
8ab979d7
RD
3459
3460 self = self;
c7e7022c 3461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OliO|i:wxListCtrl_SetStringItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4))
8ab979d7 3462 return NULL;
1d99702e
RD
3463 if (_argo0) {
3464 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
3465 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3466 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetStringItem. Expected _wxPyListCtrl_p.");
8ab979d7
RD
3467 return NULL;
3468 }
3469 }
3470{
185d7c3e
RD
3471#if PYTHON_API_VERSION >= 1009
3472 char* tmpPtr; int tmpSize;
c7e7022c 3473 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
794c5cb1 3474 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
185d7c3e
RD
3475 return NULL;
3476 }
c7e7022c 3477 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
185d7c3e 3478 return NULL;
c7e7022c 3479 _arg3 = new wxString(tmpPtr, tmpSize);
185d7c3e 3480#else
c7e7022c 3481 if (!PyString_Check(_obj3)) {
8ab979d7
RD
3482 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3483 return NULL;
3484 }
c7e7022c 3485 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
185d7c3e 3486#endif
8ab979d7 3487}
cf694132 3488{
4268f798 3489 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c 3490 _result = (long )wxListCtrl_SetStringItem(_arg0,_arg1,_arg2,*_arg3,_arg4);
cf694132 3491
4268f798 3492 wxPyEndAllowThreads(__tstate);
493f1553 3493 if (PyErr_Occurred()) return NULL;
cf694132 3494} _resultobj = Py_BuildValue("l",_result);
8ab979d7 3495{
c7e7022c
RD
3496 if (_obj3)
3497 delete _arg3;
8ab979d7
RD
3498}
3499 return _resultobj;
3500}
3501
c7e7022c
RD
3502#define wxListCtrl_GetItemState(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemState(_swigarg0,_swigarg1))
3503static PyObject *_wrap_wxListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 3504 PyObject * _resultobj;
c7e7022c
RD
3505 int _result;
3506 wxPyListCtrl * _arg0;
8ab979d7
RD
3507 long _arg1;
3508 long _arg2;
1d99702e 3509 PyObject * _argo0 = 0;
c7e7022c 3510 char *_kwnames[] = { "self","item","stateMask", NULL };
8ab979d7
RD
3511
3512 self = self;
c7e7022c 3513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_GetItemState",_kwnames,&_argo0,&_arg1,&_arg2))
8ab979d7 3514 return NULL;
1d99702e
RD
3515 if (_argo0) {
3516 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
3517 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3518 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemState. Expected _wxPyListCtrl_p.");
8ab979d7
RD
3519 return NULL;
3520 }
3521 }
cf694132 3522{
4268f798 3523 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c 3524 _result = (int )wxListCtrl_GetItemState(_arg0,_arg1,_arg2);
cf694132 3525
4268f798 3526 wxPyEndAllowThreads(__tstate);
493f1553 3527 if (PyErr_Occurred()) return NULL;
c7e7022c 3528} _resultobj = Py_BuildValue("i",_result);
8ab979d7
RD
3529 return _resultobj;
3530}
3531
c7e7022c
RD
3532#define wxListCtrl_SetItemState(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemState(_swigarg0,_swigarg1,_swigarg2))
3533static PyObject *_wrap_wxListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 3534 PyObject * _resultobj;
c7e7022c
RD
3535 bool _result;
3536 wxPyListCtrl * _arg0;
8ab979d7 3537 long _arg1;
c7e7022c
RD
3538 long _arg2;
3539 long _arg3;
1d99702e 3540 PyObject * _argo0 = 0;
c7e7022c 3541 char *_kwnames[] = { "self","item","state","stateMask", NULL };
8ab979d7
RD
3542
3543 self = self;
c7e7022c 3544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxListCtrl_SetItemState",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
8ab979d7 3545 return NULL;
1d99702e
RD
3546 if (_argo0) {
3547 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
3548 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3549 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemState. Expected _wxPyListCtrl_p.");
8ab979d7
RD
3550 return NULL;
3551 }
3552 }
cf694132 3553{
4268f798 3554 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c 3555 _result = (bool )wxListCtrl_SetItemState(_arg0,_arg1,_arg2,_arg3);
cf694132 3556
4268f798 3557 wxPyEndAllowThreads(__tstate);
493f1553 3558 if (PyErr_Occurred()) return NULL;
c7e7022c 3559} _resultobj = Py_BuildValue("i",_result);
8ab979d7
RD
3560 return _resultobj;
3561}
3562
c7e7022c
RD
3563#define wxListCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2))
3564static PyObject *_wrap_wxListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7
RD
3565 PyObject * _resultobj;
3566 bool _result;
c7e7022c
RD
3567 wxPyListCtrl * _arg0;
3568 long _arg1;
3569 int _arg2;
3570 int _arg3;
1d99702e 3571 PyObject * _argo0 = 0;
c7e7022c 3572 char *_kwnames[] = { "self","item","image","selImage", NULL };
8ab979d7
RD
3573
3574 self = self;
c7e7022c 3575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olii:wxListCtrl_SetItemImage",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
8ab979d7 3576 return NULL;
1d99702e
RD
3577 if (_argo0) {
3578 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
3579 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3580 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemImage. Expected _wxPyListCtrl_p.");
8ab979d7
RD
3581 return NULL;
3582 }
3583 }
cf694132 3584{
4268f798 3585 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c 3586 _result = (bool )wxListCtrl_SetItemImage(_arg0,_arg1,_arg2,_arg3);
cf694132 3587
4268f798 3588 wxPyEndAllowThreads(__tstate);
493f1553 3589 if (PyErr_Occurred()) return NULL;
cf694132 3590} _resultobj = Py_BuildValue("i",_result);
8ab979d7
RD
3591 return _resultobj;
3592}
3593
c7e7022c
RD
3594#define wxListCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0))
3595static PyObject *_wrap_wxListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 3596 PyObject * _resultobj;
c7e7022c
RD
3597 wxString * _result;
3598 wxPyListCtrl * _arg0;
3599 long _arg1;
1d99702e 3600 PyObject * _argo0 = 0;
c7e7022c 3601 char *_kwnames[] = { "self","item", NULL };
8ab979d7
RD
3602
3603 self = self;
c7e7022c 3604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemText",_kwnames,&_argo0,&_arg1))
8ab979d7 3605 return NULL;
1d99702e
RD
3606 if (_argo0) {
3607 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
3608 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3609 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemText. Expected _wxPyListCtrl_p.");
8ab979d7
RD
3610 return NULL;
3611 }
3612 }
cf694132 3613{
4268f798 3614 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c 3615 _result = new wxString (wxListCtrl_GetItemText(_arg0,_arg1));
cf694132 3616
4268f798 3617 wxPyEndAllowThreads(__tstate);
493f1553 3618 if (PyErr_Occurred()) return NULL;
c7e7022c
RD
3619}{
3620 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3621}
3622{
3623 delete _result;
3624}
8ab979d7
RD
3625 return _resultobj;
3626}
3627
c7e7022c
RD
3628#define wxListCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1))
3629static PyObject *_wrap_wxListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 3630 PyObject * _resultobj;
c7e7022c
RD
3631 wxPyListCtrl * _arg0;
3632 long _arg1;
3633 wxString * _arg2;
1d99702e 3634 PyObject * _argo0 = 0;
c7e7022c
RD
3635 PyObject * _obj2 = 0;
3636 char *_kwnames[] = { "self","item","str", NULL };
8ab979d7
RD
3637
3638 self = self;
c7e7022c 3639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemText",_kwnames,&_argo0,&_arg1,&_obj2))
8ab979d7 3640 return NULL;
1d99702e
RD
3641 if (_argo0) {
3642 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
3643 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3644 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemText. Expected _wxPyListCtrl_p.");
8ab979d7
RD
3645 return NULL;
3646 }
3647 }
cf694132 3648{
c7e7022c
RD
3649#if PYTHON_API_VERSION >= 1009
3650 char* tmpPtr; int tmpSize;
3651 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
3652 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8ab979d7 3653 return NULL;
c7e7022c
RD
3654 }
3655 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
3656 return NULL;
3657 _arg2 = new wxString(tmpPtr, tmpSize);
3658#else
3659 if (!PyString_Check(_obj2)) {
3660 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8ab979d7 3661 return NULL;
8ab979d7 3662 }
c7e7022c
RD
3663 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
3664#endif
3665}
cf694132 3666{
4268f798 3667 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c 3668 wxListCtrl_SetItemText(_arg0,_arg1,*_arg2);
cf694132 3669
4268f798 3670 wxPyEndAllowThreads(__tstate);
493f1553 3671 if (PyErr_Occurred()) return NULL;
c7e7022c
RD
3672} Py_INCREF(Py_None);
3673 _resultobj = Py_None;
3674{
3675 if (_obj2)
3676 delete _arg2;
3677}
8ab979d7
RD
3678 return _resultobj;
3679}
3680
3681#define wxListCtrl_GetItemData(_swigobj,_swigarg0) (_swigobj->GetItemData(_swigarg0))
efc5f224 3682static PyObject *_wrap_wxListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7
RD
3683 PyObject * _resultobj;
3684 long _result;
c7e7022c 3685 wxPyListCtrl * _arg0;
8ab979d7 3686 long _arg1;
1d99702e 3687 PyObject * _argo0 = 0;
efc5f224 3688 char *_kwnames[] = { "self","item", NULL };
8ab979d7
RD
3689
3690 self = self;
efc5f224 3691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemData",_kwnames,&_argo0,&_arg1))
8ab979d7 3692 return NULL;
1d99702e
RD
3693 if (_argo0) {
3694 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
3695 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3696 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemData. Expected _wxPyListCtrl_p.");
8ab979d7
RD
3697 return NULL;
3698 }
3699 }
cf694132 3700{
4268f798 3701 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
3702 _result = (long )wxListCtrl_GetItemData(_arg0,_arg1);
3703
4268f798 3704 wxPyEndAllowThreads(__tstate);
493f1553 3705 if (PyErr_Occurred()) return NULL;
cf694132 3706} _resultobj = Py_BuildValue("l",_result);
8ab979d7
RD
3707 return _resultobj;
3708}
3709
c7e7022c
RD
3710#define wxListCtrl_SetItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemData(_swigarg0,_swigarg1))
3711static PyObject *_wrap_wxListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 3712 PyObject * _resultobj;
c7e7022c
RD
3713 bool _result;
3714 wxPyListCtrl * _arg0;
0699c864 3715 long _arg1;
c7e7022c 3716 long _arg2;
1d99702e 3717 PyObject * _argo0 = 0;
c7e7022c 3718 char *_kwnames[] = { "self","item","data", NULL };
8ab979d7
RD
3719
3720 self = self;
c7e7022c 3721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_SetItemData",_kwnames,&_argo0,&_arg1,&_arg2))
8ab979d7 3722 return NULL;
1d99702e
RD
3723 if (_argo0) {
3724 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
3725 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3726 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemData. Expected _wxPyListCtrl_p.");
8ab979d7
RD
3727 return NULL;
3728 }
3729 }
cf694132 3730{
4268f798 3731 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c 3732 _result = (bool )wxListCtrl_SetItemData(_arg0,_arg1,_arg2);
cf694132 3733
4268f798 3734 wxPyEndAllowThreads(__tstate);
493f1553 3735 if (PyErr_Occurred()) return NULL;
c7e7022c 3736} _resultobj = Py_BuildValue("i",_result);
8ab979d7
RD
3737 return _resultobj;
3738}
3739
c7e7022c 3740static wxPoint * wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item) {
8ab979d7
RD
3741 wxPoint* pos = new wxPoint;
3742 self->GetItemPosition(item, *pos);
3743 return pos;
3744 }
efc5f224 3745static PyObject *_wrap_wxListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7
RD
3746 PyObject * _resultobj;
3747 wxPoint * _result;
c7e7022c 3748 wxPyListCtrl * _arg0;
8ab979d7 3749 long _arg1;
1d99702e 3750 PyObject * _argo0 = 0;
efc5f224 3751 char *_kwnames[] = { "self","item", NULL };
8ab979d7
RD
3752 char _ptemp[128];
3753
3754 self = self;
efc5f224 3755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemPosition",_kwnames,&_argo0,&_arg1))
8ab979d7 3756 return NULL;
1d99702e
RD
3757 if (_argo0) {
3758 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
3759 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3760 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemPosition. Expected _wxPyListCtrl_p.");
8ab979d7
RD
3761 return NULL;
3762 }
3763 }
cf694132 3764{
4268f798 3765 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c 3766 _result = (wxPoint *)wxPyListCtrl_GetItemPosition(_arg0,_arg1);
cf694132 3767
4268f798 3768 wxPyEndAllowThreads(__tstate);
493f1553 3769 if (PyErr_Occurred()) return NULL;
1d99702e
RD
3770} if (_result) {
3771 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p");
3772 _resultobj = Py_BuildValue("s",_ptemp);
3773 } else {
3774 Py_INCREF(Py_None);
3775 _resultobj = Py_None;
3776 }
8ab979d7
RD
3777 return _resultobj;
3778}
3779
c7e7022c 3780static wxRect * wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code) {
8ab979d7
RD
3781 wxRect* rect= new wxRect;
3782 self->GetItemRect(item, *rect, code);
3783 return rect;
3784 }
efc5f224 3785static PyObject *_wrap_wxListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7
RD
3786 PyObject * _resultobj;
3787 wxRect * _result;
c7e7022c 3788 wxPyListCtrl * _arg0;
8ab979d7 3789 long _arg1;
1d99702e
RD
3790 int _arg2 = (int ) (wxLIST_RECT_BOUNDS);
3791 PyObject * _argo0 = 0;
efc5f224 3792 char *_kwnames[] = { "self","item","code", NULL };
8ab979d7
RD
3793 char _ptemp[128];
3794
3795 self = self;
efc5f224 3796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItemRect",_kwnames,&_argo0,&_arg1,&_arg2))
8ab979d7 3797 return NULL;
1d99702e
RD
3798 if (_argo0) {
3799 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
3800 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3801 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemRect. Expected _wxPyListCtrl_p.");
8ab979d7
RD
3802 return NULL;
3803 }
3804 }
cf694132 3805{
4268f798 3806 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c 3807 _result = (wxRect *)wxPyListCtrl_GetItemRect(_arg0,_arg1,_arg2);
cf694132 3808
4268f798 3809 wxPyEndAllowThreads(__tstate);
493f1553 3810 if (PyErr_Occurred()) return NULL;
1d99702e
RD
3811} if (_result) {
3812 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRect_p");
3813 _resultobj = Py_BuildValue("s",_ptemp);
3814 } else {
3815 Py_INCREF(Py_None);
3816 _resultobj = Py_None;
3817 }
8ab979d7
RD
3818 return _resultobj;
3819}
3820
c7e7022c
RD
3821#define wxListCtrl_SetItemPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemPosition(_swigarg0,_swigarg1))
3822static PyObject *_wrap_wxListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 3823 PyObject * _resultobj;
c7e7022c
RD
3824 bool _result;
3825 wxPyListCtrl * _arg0;
8ab979d7 3826 long _arg1;
c7e7022c 3827 wxPoint * _arg2;
1d99702e 3828 PyObject * _argo0 = 0;
c7e7022c
RD
3829 wxPoint temp;
3830 PyObject * _obj2 = 0;
3831 char *_kwnames[] = { "self","item","pos", NULL };
8ab979d7
RD
3832
3833 self = self;
c7e7022c 3834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemPosition",_kwnames,&_argo0,&_arg1,&_obj2))
8ab979d7 3835 return NULL;
1d99702e
RD
3836 if (_argo0) {
3837 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
3838 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3839 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemPosition. Expected _wxPyListCtrl_p.");
8ab979d7
RD
3840 return NULL;
3841 }
3842 }
c7e7022c
RD
3843{
3844 _arg2 = &temp;
3845 if (! wxPoint_helper(_obj2, &_arg2))
3846 return NULL;
3847}
cf694132 3848{
4268f798 3849 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c 3850 _result = (bool )wxListCtrl_SetItemPosition(_arg0,_arg1,*_arg2);
cf694132 3851
4268f798 3852 wxPyEndAllowThreads(__tstate);
493f1553 3853 if (PyErr_Occurred()) return NULL;
cf694132 3854} _resultobj = Py_BuildValue("i",_result);
8ab979d7
RD
3855 return _resultobj;
3856}
3857
3858#define wxListCtrl_GetItemCount(_swigobj) (_swigobj->GetItemCount())
efc5f224 3859static PyObject *_wrap_wxListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7
RD
3860 PyObject * _resultobj;
3861 int _result;
c7e7022c 3862 wxPyListCtrl * _arg0;
1d99702e 3863 PyObject * _argo0 = 0;
efc5f224 3864 char *_kwnames[] = { "self", NULL };
8ab979d7
RD
3865
3866 self = self;
efc5f224 3867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetItemCount",_kwnames,&_argo0))
8ab979d7 3868 return NULL;
1d99702e
RD
3869 if (_argo0) {
3870 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
3871 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3872 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemCount. Expected _wxPyListCtrl_p.");
8ab979d7
RD
3873 return NULL;
3874 }
3875 }
cf694132 3876{
4268f798 3877 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
3878 _result = (int )wxListCtrl_GetItemCount(_arg0);
3879
4268f798 3880 wxPyEndAllowThreads(__tstate);
493f1553 3881 if (PyErr_Occurred()) return NULL;
cf694132 3882} _resultobj = Py_BuildValue("i",_result);
8ab979d7
RD
3883 return _resultobj;
3884}
3885
c7e7022c
RD
3886#define wxListCtrl_GetColumnCount(_swigobj) (_swigobj->GetColumnCount())
3887static PyObject *_wrap_wxListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7
RD
3888 PyObject * _resultobj;
3889 int _result;
c7e7022c 3890 wxPyListCtrl * _arg0;
1d99702e 3891 PyObject * _argo0 = 0;
c7e7022c 3892 char *_kwnames[] = { "self", NULL };
8ab979d7
RD
3893
3894 self = self;
c7e7022c 3895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetColumnCount",_kwnames,&_argo0))
8ab979d7 3896 return NULL;
1d99702e
RD
3897 if (_argo0) {
3898 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
3899 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3900 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnCount. Expected _wxPyListCtrl_p.");
8ab979d7
RD
3901 return NULL;
3902 }
3903 }
cf694132 3904{
4268f798 3905 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c 3906 _result = (int )wxListCtrl_GetColumnCount(_arg0);
cf694132 3907
4268f798 3908 wxPyEndAllowThreads(__tstate);
493f1553 3909 if (PyErr_Occurred()) return NULL;
cf694132 3910} _resultobj = Py_BuildValue("i",_result);
8ab979d7
RD
3911 return _resultobj;
3912}
3913
c7e7022c
RD
3914#define wxListCtrl_GetItemSpacing(_swigobj,_swigarg0) (_swigobj->GetItemSpacing(_swigarg0))
3915static PyObject *_wrap_wxListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 3916 PyObject * _resultobj;
c7e7022c
RD
3917 int _result;
3918 wxPyListCtrl * _arg0;
3919 bool _arg1;
1d99702e 3920 PyObject * _argo0 = 0;
c7e7022c
RD
3921 int tempbool1;
3922 char *_kwnames[] = { "self","isSmall", NULL };
8ab979d7
RD
3923
3924 self = self;
c7e7022c 3925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetItemSpacing",_kwnames,&_argo0,&tempbool1))
8ab979d7 3926 return NULL;
1d99702e
RD
3927 if (_argo0) {
3928 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
3929 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3930 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemSpacing. Expected _wxPyListCtrl_p.");
8ab979d7
RD
3931 return NULL;
3932 }
3933 }
c7e7022c 3934 _arg1 = (bool ) tempbool1;
8ab979d7 3935{
4268f798 3936 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c 3937 _result = (int )wxListCtrl_GetItemSpacing(_arg0,_arg1);
cf694132 3938
4268f798 3939 wxPyEndAllowThreads(__tstate);
493f1553 3940 if (PyErr_Occurred()) return NULL;
c7e7022c 3941} _resultobj = Py_BuildValue("i",_result);
8ab979d7
RD
3942 return _resultobj;
3943}
3944
c7e7022c
RD
3945#define wxListCtrl_GetSelectedItemCount(_swigobj) (_swigobj->GetSelectedItemCount())
3946static PyObject *_wrap_wxListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 3947 PyObject * _resultobj;
c7e7022c
RD
3948 int _result;
3949 wxPyListCtrl * _arg0;
1d99702e 3950 PyObject * _argo0 = 0;
c7e7022c 3951 char *_kwnames[] = { "self", NULL };
8ab979d7
RD
3952
3953 self = self;
c7e7022c 3954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetSelectedItemCount",_kwnames,&_argo0))
8ab979d7 3955 return NULL;
1d99702e
RD
3956 if (_argo0) {
3957 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
3958 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3959 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetSelectedItemCount. Expected _wxPyListCtrl_p.");
8ab979d7
RD
3960 return NULL;
3961 }
3962 }
cf694132 3963{
4268f798 3964 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c 3965 _result = (int )wxListCtrl_GetSelectedItemCount(_arg0);
cf694132 3966
4268f798 3967 wxPyEndAllowThreads(__tstate);
493f1553 3968 if (PyErr_Occurred()) return NULL;
c7e7022c 3969} _resultobj = Py_BuildValue("i",_result);
8ab979d7
RD
3970 return _resultobj;
3971}
3972
c7e7022c
RD
3973#define wxListCtrl_GetTextColour(_swigobj) (_swigobj->GetTextColour())
3974static PyObject *_wrap_wxListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 3975 PyObject * _resultobj;
c7e7022c
RD
3976 wxColour * _result;
3977 wxPyListCtrl * _arg0;
1d99702e 3978 PyObject * _argo0 = 0;
efc5f224 3979 char *_kwnames[] = { "self", NULL };
c7e7022c 3980 char _ptemp[128];
8ab979d7
RD
3981
3982 self = self;
c7e7022c 3983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTextColour",_kwnames,&_argo0))
8ab979d7 3984 return NULL;
1d99702e
RD
3985 if (_argo0) {
3986 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
3987 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
3988 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTextColour. Expected _wxPyListCtrl_p.");
8ab979d7
RD
3989 return NULL;
3990 }
3991 }
cf694132 3992{
4268f798 3993 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
3994 _result = new wxColour (wxListCtrl_GetTextColour(_arg0));
3995
4268f798 3996 wxPyEndAllowThreads(__tstate);
493f1553 3997 if (PyErr_Occurred()) return NULL;
cf694132 3998} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
8ab979d7
RD
3999 _resultobj = Py_BuildValue("s",_ptemp);
4000 return _resultobj;
4001}
4002
be4d9c1f 4003#define wxListCtrl_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0))
efc5f224 4004static PyObject *_wrap_wxListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
be4d9c1f 4005 PyObject * _resultobj;
c7e7022c 4006 wxPyListCtrl * _arg0;
be4d9c1f 4007 wxColour * _arg1;
1d99702e 4008 PyObject * _argo0 = 0;
f6bcfd97
BP
4009 wxColour temp;
4010 PyObject * _obj1 = 0;
efc5f224 4011 char *_kwnames[] = { "self","col", NULL };
be4d9c1f
RD
4012
4013 self = self;
f6bcfd97 4014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetTextColour",_kwnames,&_argo0,&_obj1))
be4d9c1f 4015 return NULL;
1d99702e
RD
4016 if (_argo0) {
4017 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
4018 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4019 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetTextColour. Expected _wxPyListCtrl_p.");
be4d9c1f
RD
4020 return NULL;
4021 }
4022 }
f6bcfd97
BP
4023{
4024 _arg1 = &temp;
4025 if (! wxColour_helper(_obj1, &_arg1))
be4d9c1f 4026 return NULL;
f6bcfd97 4027}
cf694132 4028{
4268f798 4029 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
4030 wxListCtrl_SetTextColour(_arg0,*_arg1);
4031
4268f798 4032 wxPyEndAllowThreads(__tstate);
493f1553 4033 if (PyErr_Occurred()) return NULL;
cf694132 4034} Py_INCREF(Py_None);
be4d9c1f
RD
4035 _resultobj = Py_None;
4036 return _resultobj;
4037}
4038
8ab979d7 4039#define wxListCtrl_GetTopItem(_swigobj) (_swigobj->GetTopItem())
efc5f224 4040static PyObject *_wrap_wxListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7
RD
4041 PyObject * _resultobj;
4042 long _result;
c7e7022c 4043 wxPyListCtrl * _arg0;
1d99702e 4044 PyObject * _argo0 = 0;
efc5f224 4045 char *_kwnames[] = { "self", NULL };
8ab979d7
RD
4046
4047 self = self;
efc5f224 4048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTopItem",_kwnames,&_argo0))
8ab979d7 4049 return NULL;
1d99702e
RD
4050 if (_argo0) {
4051 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
4052 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4053 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTopItem. Expected _wxPyListCtrl_p.");
8ab979d7
RD
4054 return NULL;
4055 }
4056 }
cf694132 4057{
4268f798 4058 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
4059 _result = (long )wxListCtrl_GetTopItem(_arg0);
4060
4268f798 4061 wxPyEndAllowThreads(__tstate);
493f1553 4062 if (PyErr_Occurred()) return NULL;
cf694132 4063} _resultobj = Py_BuildValue("l",_result);
8ab979d7
RD
4064 return _resultobj;
4065}
4066
c7e7022c
RD
4067#define wxListCtrl_SetSingleStyle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSingleStyle(_swigarg0,_swigarg1))
4068static PyObject *_wrap_wxListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 4069 PyObject * _resultobj;
c7e7022c
RD
4070 wxPyListCtrl * _arg0;
4071 long _arg1;
4072 bool _arg2 = (bool ) TRUE;
1d99702e 4073 PyObject * _argo0 = 0;
c7e7022c
RD
4074 int tempbool2 = (int) TRUE;
4075 char *_kwnames[] = { "self","style","add", NULL };
8ab979d7
RD
4076
4077 self = self;
c7e7022c 4078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_SetSingleStyle",_kwnames,&_argo0,&_arg1,&tempbool2))
8ab979d7 4079 return NULL;
1d99702e
RD
4080 if (_argo0) {
4081 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
4082 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4083 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetSingleStyle. Expected _wxPyListCtrl_p.");
8ab979d7
RD
4084 return NULL;
4085 }
4086 }
c7e7022c 4087 _arg2 = (bool ) tempbool2;
cf694132 4088{
4268f798 4089 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c 4090 wxListCtrl_SetSingleStyle(_arg0,_arg1,_arg2);
cf694132 4091
4268f798 4092 wxPyEndAllowThreads(__tstate);
493f1553 4093 if (PyErr_Occurred()) return NULL;
c7e7022c
RD
4094} Py_INCREF(Py_None);
4095 _resultobj = Py_None;
8ab979d7
RD
4096 return _resultobj;
4097}
4098
c7e7022c
RD
4099#define wxListCtrl_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0))
4100static PyObject *_wrap_wxListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 4101 PyObject * _resultobj;
c7e7022c 4102 wxPyListCtrl * _arg0;
8ab979d7 4103 long _arg1;
1d99702e 4104 PyObject * _argo0 = 0;
c7e7022c 4105 char *_kwnames[] = { "self","style", NULL };
8ab979d7
RD
4106
4107 self = self;
c7e7022c 4108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1))
8ab979d7 4109 return NULL;
1d99702e
RD
4110 if (_argo0) {
4111 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
4112 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4113 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetWindowStyleFlag. Expected _wxPyListCtrl_p.");
8ab979d7
RD
4114 return NULL;
4115 }
4116 }
cf694132 4117{
4268f798 4118 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c 4119 wxListCtrl_SetWindowStyleFlag(_arg0,_arg1);
cf694132 4120
4268f798 4121 wxPyEndAllowThreads(__tstate);
493f1553 4122 if (PyErr_Occurred()) return NULL;
c7e7022c
RD
4123} Py_INCREF(Py_None);
4124 _resultobj = Py_None;
8ab979d7
RD
4125 return _resultobj;
4126}
4127
c7e7022c
RD
4128#define wxListCtrl_GetNextItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetNextItem(_swigarg0,_swigarg1,_swigarg2))
4129static PyObject *_wrap_wxListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7
RD
4130 PyObject * _resultobj;
4131 long _result;
c7e7022c 4132 wxPyListCtrl * _arg0;
8ab979d7 4133 long _arg1;
c7e7022c
RD
4134 int _arg2 = (int ) (wxLIST_NEXT_ALL);
4135 int _arg3 = (int ) (wxLIST_STATE_DONTCARE);
1d99702e 4136 PyObject * _argo0 = 0;
c7e7022c 4137 char *_kwnames[] = { "self","item","geometry","state", NULL };
8ab979d7
RD
4138
4139 self = self;
c7e7022c 4140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:wxListCtrl_GetNextItem",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
8ab979d7 4141 return NULL;
1d99702e
RD
4142 if (_argo0) {
4143 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
4144 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4145 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetNextItem. Expected _wxPyListCtrl_p.");
8ab979d7
RD
4146 return NULL;
4147 }
4148 }
4149{
4268f798 4150 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c
RD
4151 _result = (long )wxListCtrl_GetNextItem(_arg0,_arg1,_arg2,_arg3);
4152
4268f798 4153 wxPyEndAllowThreads(__tstate);
c7e7022c
RD
4154 if (PyErr_Occurred()) return NULL;
4155} _resultobj = Py_BuildValue("l",_result);
4156 return _resultobj;
4157}
4158
4159#define wxListCtrl_GetImageList(_swigobj,_swigarg0) (_swigobj->GetImageList(_swigarg0))
4160static PyObject *_wrap_wxListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
4161 PyObject * _resultobj;
4162 wxImageList * _result;
4163 wxPyListCtrl * _arg0;
4164 int _arg1;
4165 PyObject * _argo0 = 0;
4166 char *_kwnames[] = { "self","which", NULL };
4167
4168 self = self;
4169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetImageList",_kwnames,&_argo0,&_arg1))
185d7c3e 4170 return NULL;
c7e7022c
RD
4171 if (_argo0) {
4172 if (_argo0 == Py_None) { _arg0 = NULL; }
4173 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4174 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetImageList. Expected _wxPyListCtrl_p.");
8ab979d7 4175 return NULL;
c7e7022c 4176 }
8ab979d7 4177 }
cf694132 4178{
4268f798 4179 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c 4180 _result = (wxImageList *)wxListCtrl_GetImageList(_arg0,_arg1);
cf694132 4181
4268f798 4182 wxPyEndAllowThreads(__tstate);
493f1553 4183 if (PyErr_Occurred()) return NULL;
c7e7022c 4184}{ _resultobj = wxPyMake_wxObject(_result); }
8ab979d7
RD
4185 return _resultobj;
4186}
4187
c7e7022c
RD
4188#define wxListCtrl_SetImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetImageList(_swigarg0,_swigarg1))
4189static PyObject *_wrap_wxListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 4190 PyObject * _resultobj;
c7e7022c
RD
4191 wxPyListCtrl * _arg0;
4192 wxImageList * _arg1;
4193 int _arg2;
1d99702e
RD
4194 PyObject * _argo0 = 0;
4195 PyObject * _argo1 = 0;
c7e7022c 4196 char *_kwnames[] = { "self","imageList","which", NULL };
8ab979d7
RD
4197
4198 self = self;
c7e7022c 4199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_SetImageList",_kwnames,&_argo0,&_argo1,&_arg2))
8ab979d7 4200 return NULL;
1d99702e
RD
4201 if (_argo0) {
4202 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
4203 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4204 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetImageList. Expected _wxPyListCtrl_p.");
8ab979d7
RD
4205 return NULL;
4206 }
4207 }
1d99702e
RD
4208 if (_argo1) {
4209 if (_argo1 == Py_None) { _arg1 = NULL; }
c7e7022c
RD
4210 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
4211 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetImageList. Expected _wxImageList_p.");
8ab979d7
RD
4212 return NULL;
4213 }
4214 }
cf694132 4215{
4268f798 4216 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c 4217 wxListCtrl_SetImageList(_arg0,_arg1,_arg2);
cf694132 4218
4268f798 4219 wxPyEndAllowThreads(__tstate);
493f1553 4220 if (PyErr_Occurred()) return NULL;
c7e7022c
RD
4221} Py_INCREF(Py_None);
4222 _resultobj = Py_None;
8ab979d7
RD
4223 return _resultobj;
4224}
4225
c7e7022c
RD
4226#define wxListCtrl_AssignImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->AssignImageList(_swigarg0,_swigarg1))
4227static PyObject *_wrap_wxListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 4228 PyObject * _resultobj;
c7e7022c
RD
4229 wxPyListCtrl * _arg0;
4230 wxImageList * _arg1;
4231 int _arg2;
1d99702e 4232 PyObject * _argo0 = 0;
c7e7022c
RD
4233 PyObject * _argo1 = 0;
4234 char *_kwnames[] = { "self","imageList","which", NULL };
8ab979d7
RD
4235
4236 self = self;
c7e7022c 4237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_AssignImageList",_kwnames,&_argo0,&_argo1,&_arg2))
8ab979d7 4238 return NULL;
1d99702e
RD
4239 if (_argo0) {
4240 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
4241 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4242 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_AssignImageList. Expected _wxPyListCtrl_p.");
8ab979d7
RD
4243 return NULL;
4244 }
4245 }
c7e7022c
RD
4246 if (_argo1) {
4247 if (_argo1 == Py_None) { _arg1 = NULL; }
4248 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
4249 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_AssignImageList. Expected _wxImageList_p.");
8ab979d7 4250 return NULL;
c7e7022c 4251 }
8ab979d7 4252 }
cf694132 4253{
4268f798 4254 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c 4255 wxListCtrl_AssignImageList(_arg0,_arg1,_arg2);
cf694132 4256
4268f798 4257 wxPyEndAllowThreads(__tstate);
493f1553 4258 if (PyErr_Occurred()) return NULL;
c7e7022c
RD
4259} Py_INCREF(Py_None);
4260 _resultobj = Py_None;
8ab979d7
RD
4261 return _resultobj;
4262}
4263
c7e7022c
RD
4264#define wxListCtrl_IsVirtual(_swigobj) (_swigobj->IsVirtual())
4265static PyObject *_wrap_wxListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 4266 PyObject * _resultobj;
c7e7022c
RD
4267 bool _result;
4268 wxPyListCtrl * _arg0;
1d99702e 4269 PyObject * _argo0 = 0;
c7e7022c 4270 char *_kwnames[] = { "self", NULL };
8ab979d7
RD
4271
4272 self = self;
c7e7022c 4273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_IsVirtual",_kwnames,&_argo0))
8ab979d7 4274 return NULL;
1d99702e
RD
4275 if (_argo0) {
4276 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
4277 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4278 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_IsVirtual. Expected _wxPyListCtrl_p.");
8ab979d7
RD
4279 return NULL;
4280 }
4281 }
cf694132 4282{
4268f798 4283 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c 4284 _result = (bool )wxListCtrl_IsVirtual(_arg0);
cf694132 4285
4268f798 4286 wxPyEndAllowThreads(__tstate);
493f1553 4287 if (PyErr_Occurred()) return NULL;
c7e7022c 4288} _resultobj = Py_BuildValue("i",_result);
8ab979d7
RD
4289 return _resultobj;
4290}
4291
c7e7022c
RD
4292#define wxListCtrl_RefreshItem(_swigobj,_swigarg0) (_swigobj->RefreshItem(_swigarg0))
4293static PyObject *_wrap_wxListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 4294 PyObject * _resultobj;
c7e7022c 4295 wxPyListCtrl * _arg0;
8ab979d7 4296 long _arg1;
1d99702e 4297 PyObject * _argo0 = 0;
c7e7022c 4298 char *_kwnames[] = { "self","item", NULL };
8ab979d7
RD
4299
4300 self = self;
c7e7022c 4301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_RefreshItem",_kwnames,&_argo0,&_arg1))
8ab979d7 4302 return NULL;
1d99702e
RD
4303 if (_argo0) {
4304 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
4305 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4306 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItem. Expected _wxPyListCtrl_p.");
8ab979d7
RD
4307 return NULL;
4308 }
4309 }
cf694132 4310{
4268f798 4311 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c 4312 wxListCtrl_RefreshItem(_arg0,_arg1);
cf694132 4313
4268f798 4314 wxPyEndAllowThreads(__tstate);
493f1553 4315 if (PyErr_Occurred()) return NULL;
c7e7022c
RD
4316} Py_INCREF(Py_None);
4317 _resultobj = Py_None;
8ab979d7
RD
4318 return _resultobj;
4319}
4320
c7e7022c
RD
4321#define wxListCtrl_RefreshItems(_swigobj,_swigarg0,_swigarg1) (_swigobj->RefreshItems(_swigarg0,_swigarg1))
4322static PyObject *_wrap_wxListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 4323 PyObject * _resultobj;
c7e7022c
RD
4324 wxPyListCtrl * _arg0;
4325 long _arg1;
4326 long _arg2;
1d99702e 4327 PyObject * _argo0 = 0;
c7e7022c 4328 char *_kwnames[] = { "self","itemFrom","itemTo", NULL };
8ab979d7
RD
4329
4330 self = self;
c7e7022c 4331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_RefreshItems",_kwnames,&_argo0,&_arg1,&_arg2))
8ab979d7 4332 return NULL;
1d99702e
RD
4333 if (_argo0) {
4334 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
4335 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4336 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItems. Expected _wxPyListCtrl_p.");
8ab979d7
RD
4337 return NULL;
4338 }
4339 }
cf694132 4340{
4268f798 4341 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c 4342 wxListCtrl_RefreshItems(_arg0,_arg1,_arg2);
cf694132 4343
4268f798 4344 wxPyEndAllowThreads(__tstate);
493f1553 4345 if (PyErr_Occurred()) return NULL;
c7e7022c
RD
4346} Py_INCREF(Py_None);
4347 _resultobj = Py_None;
8ab979d7
RD
4348 return _resultobj;
4349}
4350
c7e7022c
RD
4351#define wxListCtrl_Arrange(_swigobj,_swigarg0) (_swigobj->Arrange(_swigarg0))
4352static PyObject *_wrap_wxListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 4353 PyObject * _resultobj;
c7e7022c
RD
4354 bool _result;
4355 wxPyListCtrl * _arg0;
4356 int _arg1 = (int ) (wxLIST_ALIGN_DEFAULT);
1d99702e 4357 PyObject * _argo0 = 0;
c7e7022c 4358 char *_kwnames[] = { "self","flag", NULL };
8ab979d7
RD
4359
4360 self = self;
c7e7022c 4361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxListCtrl_Arrange",_kwnames,&_argo0,&_arg1))
8ab979d7 4362 return NULL;
1d99702e
RD
4363 if (_argo0) {
4364 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
4365 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4366 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Arrange. Expected _wxPyListCtrl_p.");
8ab979d7
RD
4367 return NULL;
4368 }
4369 }
cf694132 4370{
4268f798 4371 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c 4372 _result = (bool )wxListCtrl_Arrange(_arg0,_arg1);
cf694132 4373
4268f798 4374 wxPyEndAllowThreads(__tstate);
493f1553 4375 if (PyErr_Occurred()) return NULL;
c7e7022c 4376} _resultobj = Py_BuildValue("i",_result);
8ab979d7
RD
4377 return _resultobj;
4378}
4379
c7e7022c
RD
4380#define wxListCtrl_DeleteItem(_swigobj,_swigarg0) (_swigobj->DeleteItem(_swigarg0))
4381static PyObject *_wrap_wxListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7
RD
4382 PyObject * _resultobj;
4383 bool _result;
c7e7022c
RD
4384 wxPyListCtrl * _arg0;
4385 long _arg1;
1d99702e 4386 PyObject * _argo0 = 0;
c7e7022c 4387 char *_kwnames[] = { "self","item", NULL };
8ab979d7
RD
4388
4389 self = self;
c7e7022c 4390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_DeleteItem",_kwnames,&_argo0,&_arg1))
8ab979d7 4391 return NULL;
1d99702e
RD
4392 if (_argo0) {
4393 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
4394 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4395 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteItem. Expected _wxPyListCtrl_p.");
8ab979d7
RD
4396 return NULL;
4397 }
4398 }
c7e7022c 4399{
4268f798 4400 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c
RD
4401 _result = (bool )wxListCtrl_DeleteItem(_arg0,_arg1);
4402
4268f798 4403 wxPyEndAllowThreads(__tstate);
c7e7022c
RD
4404 if (PyErr_Occurred()) return NULL;
4405} _resultobj = Py_BuildValue("i",_result);
4406 return _resultobj;
4407}
4408
4409#define wxListCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems())
4410static PyObject *_wrap_wxListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) {
4411 PyObject * _resultobj;
4412 bool _result;
4413 wxPyListCtrl * _arg0;
4414 PyObject * _argo0 = 0;
4415 char *_kwnames[] = { "self", NULL };
4416
4417 self = self;
4418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllItems",_kwnames,&_argo0))
4419 return NULL;
4420 if (_argo0) {
4421 if (_argo0 == Py_None) { _arg0 = NULL; }
4422 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4423 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllItems. Expected _wxPyListCtrl_p.");
8ab979d7
RD
4424 return NULL;
4425 }
4426 }
cf694132 4427{
4268f798 4428 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c 4429 _result = (bool )wxListCtrl_DeleteAllItems(_arg0);
cf694132 4430
4268f798 4431 wxPyEndAllowThreads(__tstate);
493f1553 4432 if (PyErr_Occurred()) return NULL;
cf694132 4433} _resultobj = Py_BuildValue("i",_result);
8ab979d7
RD
4434 return _resultobj;
4435}
4436
c7e7022c
RD
4437#define wxListCtrl_DeleteColumn(_swigobj,_swigarg0) (_swigobj->DeleteColumn(_swigarg0))
4438static PyObject *_wrap_wxListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7
RD
4439 PyObject * _resultobj;
4440 bool _result;
c7e7022c 4441 wxPyListCtrl * _arg0;
8ab979d7 4442 int _arg1;
1d99702e 4443 PyObject * _argo0 = 0;
c7e7022c 4444 char *_kwnames[] = { "self","col", NULL };
8ab979d7
RD
4445
4446 self = self;
c7e7022c 4447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_DeleteColumn",_kwnames,&_argo0,&_arg1))
8ab979d7 4448 return NULL;
1d99702e
RD
4449 if (_argo0) {
4450 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
4451 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4452 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteColumn. Expected _wxPyListCtrl_p.");
8ab979d7
RD
4453 return NULL;
4454 }
4455 }
cf694132 4456{
4268f798 4457 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c 4458 _result = (bool )wxListCtrl_DeleteColumn(_arg0,_arg1);
cf694132 4459
4268f798 4460 wxPyEndAllowThreads(__tstate);
493f1553 4461 if (PyErr_Occurred()) return NULL;
cf694132 4462} _resultobj = Py_BuildValue("i",_result);
8ab979d7
RD
4463 return _resultobj;
4464}
4465
c7e7022c
RD
4466#define wxListCtrl_DeleteAllColumns(_swigobj) (_swigobj->DeleteAllColumns())
4467static PyObject *_wrap_wxListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 4468 PyObject * _resultobj;
c7e7022c
RD
4469 bool _result;
4470 wxPyListCtrl * _arg0;
1d99702e 4471 PyObject * _argo0 = 0;
c7e7022c 4472 char *_kwnames[] = { "self", NULL };
8ab979d7
RD
4473
4474 self = self;
c7e7022c 4475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllColumns",_kwnames,&_argo0))
8ab979d7 4476 return NULL;
1d99702e
RD
4477 if (_argo0) {
4478 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
4479 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4480 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllColumns. Expected _wxPyListCtrl_p.");
8ab979d7
RD
4481 return NULL;
4482 }
4483 }
c7e7022c 4484{
4268f798 4485 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c
RD
4486 _result = (bool )wxListCtrl_DeleteAllColumns(_arg0);
4487
4268f798 4488 wxPyEndAllowThreads(__tstate);
c7e7022c
RD
4489 if (PyErr_Occurred()) return NULL;
4490} _resultobj = Py_BuildValue("i",_result);
4491 return _resultobj;
4492}
4493
4494#define wxListCtrl_ClearAll(_swigobj) (_swigobj->ClearAll())
4495static PyObject *_wrap_wxListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) {
4496 PyObject * _resultobj;
4497 wxPyListCtrl * _arg0;
4498 PyObject * _argo0 = 0;
4499 char *_kwnames[] = { "self", NULL };
4500
4501 self = self;
4502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_ClearAll",_kwnames,&_argo0))
4503 return NULL;
4504 if (_argo0) {
4505 if (_argo0 == Py_None) { _arg0 = NULL; }
4506 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4507 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ClearAll. Expected _wxPyListCtrl_p.");
8ab979d7
RD
4508 return NULL;
4509 }
4510 }
cf694132 4511{
4268f798 4512 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c 4513 wxListCtrl_ClearAll(_arg0);
cf694132 4514
4268f798 4515 wxPyEndAllowThreads(__tstate);
493f1553 4516 if (PyErr_Occurred()) return NULL;
cf694132 4517} Py_INCREF(Py_None);
8ab979d7
RD
4518 _resultobj = Py_None;
4519 return _resultobj;
4520}
4521
c7e7022c
RD
4522#define wxListCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0))
4523static PyObject *_wrap_wxListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
4524 PyObject * _resultobj;
4525 wxTextCtrl * _result;
4526 wxPyListCtrl * _arg0;
4527 long _arg1;
4528 PyObject * _argo0 = 0;
4529 char *_kwnames[] = { "self","item", NULL };
4530
4531 self = self;
4532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EditLabel",_kwnames,&_argo0,&_arg1))
4533 return NULL;
4534 if (_argo0) {
4535 if (_argo0 == Py_None) { _arg0 = NULL; }
4536 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4537 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EditLabel. Expected _wxPyListCtrl_p.");
4538 return NULL;
4539 }
4540 }
4541{
4268f798 4542 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c
RD
4543 _result = (wxTextCtrl *)wxListCtrl_EditLabel(_arg0,_arg1);
4544
4268f798 4545 wxPyEndAllowThreads(__tstate);
c7e7022c
RD
4546 if (PyErr_Occurred()) return NULL;
4547}{ _resultobj = wxPyMake_wxObject(_result); }
4548 return _resultobj;
4549}
4550
4551#define wxListCtrl_EndEditLabel(_swigobj,_swigarg0) (_swigobj->EndEditLabel(_swigarg0))
4552static PyObject *_wrap_wxListCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7
RD
4553 PyObject * _resultobj;
4554 bool _result;
c7e7022c
RD
4555 wxPyListCtrl * _arg0;
4556 bool _arg1;
1d99702e 4557 PyObject * _argo0 = 0;
c7e7022c
RD
4558 int tempbool1;
4559 char *_kwnames[] = { "self","cancel", NULL };
8ab979d7
RD
4560
4561 self = self;
c7e7022c 4562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_EndEditLabel",_kwnames,&_argo0,&tempbool1))
8ab979d7 4563 return NULL;
1d99702e
RD
4564 if (_argo0) {
4565 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
4566 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4567 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EndEditLabel. Expected _wxPyListCtrl_p.");
8ab979d7
RD
4568 return NULL;
4569 }
4570 }
c7e7022c
RD
4571 _arg1 = (bool ) tempbool1;
4572{
4268f798 4573 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c
RD
4574 _result = (bool )wxListCtrl_EndEditLabel(_arg0,_arg1);
4575
4268f798 4576 wxPyEndAllowThreads(__tstate);
c7e7022c
RD
4577 if (PyErr_Occurred()) return NULL;
4578} _resultobj = Py_BuildValue("i",_result);
4579 return _resultobj;
4580}
4581
4582#define wxListCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0))
4583static PyObject *_wrap_wxListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
4584 PyObject * _resultobj;
4585 bool _result;
4586 wxPyListCtrl * _arg0;
4587 long _arg1;
4588 PyObject * _argo0 = 0;
4589 char *_kwnames[] = { "self","item", NULL };
4590
4591 self = self;
4592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EnsureVisible",_kwnames,&_argo0,&_arg1))
4593 return NULL;
4594 if (_argo0) {
4595 if (_argo0 == Py_None) { _arg0 = NULL; }
4596 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4597 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EnsureVisible. Expected _wxPyListCtrl_p.");
8ab979d7
RD
4598 return NULL;
4599 }
4600 }
cf694132 4601{
4268f798 4602 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c 4603 _result = (bool )wxListCtrl_EnsureVisible(_arg0,_arg1);
cf694132 4604
4268f798 4605 wxPyEndAllowThreads(__tstate);
493f1553 4606 if (PyErr_Occurred()) return NULL;
cf694132 4607} _resultobj = Py_BuildValue("i",_result);
8ab979d7
RD
4608 return _resultobj;
4609}
4610
c7e7022c
RD
4611#define wxListCtrl_FindItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2))
4612static PyObject *_wrap_wxListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7
RD
4613 PyObject * _resultobj;
4614 long _result;
c7e7022c 4615 wxPyListCtrl * _arg0;
8ab979d7 4616 long _arg1;
c7e7022c
RD
4617 wxString * _arg2;
4618 bool _arg3 = (bool ) FALSE;
1d99702e 4619 PyObject * _argo0 = 0;
c7e7022c
RD
4620 PyObject * _obj2 = 0;
4621 int tempbool3 = (int) FALSE;
4622 char *_kwnames[] = { "self","start","str","partial", NULL };
8ab979d7
RD
4623
4624 self = self;
c7e7022c 4625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|i:wxListCtrl_FindItem",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3))
8ab979d7 4626 return NULL;
1d99702e
RD
4627 if (_argo0) {
4628 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
4629 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4630 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItem. Expected _wxPyListCtrl_p.");
8ab979d7
RD
4631 return NULL;
4632 }
4633 }
4634{
185d7c3e
RD
4635#if PYTHON_API_VERSION >= 1009
4636 char* tmpPtr; int tmpSize;
c7e7022c 4637 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
794c5cb1 4638 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
185d7c3e
RD
4639 return NULL;
4640 }
c7e7022c 4641 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
185d7c3e 4642 return NULL;
c7e7022c 4643 _arg2 = new wxString(tmpPtr, tmpSize);
185d7c3e 4644#else
c7e7022c 4645 if (!PyString_Check(_obj2)) {
8ab979d7
RD
4646 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4647 return NULL;
4648 }
c7e7022c 4649 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
185d7c3e 4650#endif
8ab979d7 4651}
c7e7022c 4652 _arg3 = (bool ) tempbool3;
cf694132 4653{
4268f798 4654 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c 4655 _result = (long )wxListCtrl_FindItem(_arg0,_arg1,*_arg2,_arg3);
cf694132 4656
4268f798 4657 wxPyEndAllowThreads(__tstate);
493f1553 4658 if (PyErr_Occurred()) return NULL;
cf694132 4659} _resultobj = Py_BuildValue("l",_result);
8ab979d7 4660{
c7e7022c
RD
4661 if (_obj2)
4662 delete _arg2;
8ab979d7
RD
4663}
4664 return _resultobj;
4665}
4666
c7e7022c
RD
4667#define wxListCtrl_FindItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindItem(_swigarg0,_swigarg1))
4668static PyObject *_wrap_wxListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 4669 PyObject * _resultobj;
c7e7022c
RD
4670 long _result;
4671 wxPyListCtrl * _arg0;
8ab979d7
RD
4672 long _arg1;
4673 long _arg2;
1d99702e 4674 PyObject * _argo0 = 0;
c7e7022c 4675 char *_kwnames[] = { "self","start","data", NULL };
8ab979d7
RD
4676
4677 self = self;
c7e7022c 4678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_FindItemData",_kwnames,&_argo0,&_arg1,&_arg2))
8ab979d7 4679 return NULL;
1d99702e
RD
4680 if (_argo0) {
4681 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
4682 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4683 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemData. Expected _wxPyListCtrl_p.");
8ab979d7
RD
4684 return NULL;
4685 }
4686 }
cf694132 4687{
4268f798 4688 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c 4689 _result = (long )wxListCtrl_FindItemData(_arg0,_arg1,_arg2);
cf694132 4690
4268f798 4691 wxPyEndAllowThreads(__tstate);
493f1553 4692 if (PyErr_Occurred()) return NULL;
c7e7022c 4693} _resultobj = Py_BuildValue("l",_result);
8ab979d7
RD
4694 return _resultobj;
4695}
4696
c7e7022c
RD
4697#define wxListCtrl_FindItemAtPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2))
4698static PyObject *_wrap_wxListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 4699 PyObject * _resultobj;
c7e7022c
RD
4700 long _result;
4701 wxPyListCtrl * _arg0;
4702 long _arg1;
4703 wxPoint * _arg2;
4704 int _arg3;
4705 PyObject * _argo0 = 0;
4706 wxPoint temp;
4707 PyObject * _obj2 = 0;
4708 char *_kwnames[] = { "self","start","pt","direction", NULL };
4709
4710 self = self;
4711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_FindItemAtPos",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3))
4712 return NULL;
4713 if (_argo0) {
4714 if (_argo0 == Py_None) { _arg0 = NULL; }
4715 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4716 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemAtPos. Expected _wxPyListCtrl_p.");
4717 return NULL;
4718 }
4719 }
4720{
4721 _arg2 = &temp;
4722 if (! wxPoint_helper(_obj2, &_arg2))
4723 return NULL;
4724}
4725{
4268f798 4726 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c
RD
4727 _result = (long )wxListCtrl_FindItemAtPos(_arg0,_arg1,*_arg2,_arg3);
4728
4268f798 4729 wxPyEndAllowThreads(__tstate);
c7e7022c
RD
4730 if (PyErr_Occurred()) return NULL;
4731} _resultobj = Py_BuildValue("l",_result);
4732 return _resultobj;
4733}
4734
4735#define wxListCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1))
4736static PyObject *_wrap_wxListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
4737 PyObject * _resultobj;
4738 long _result;
4739 wxPyListCtrl * _arg0;
4740 wxPoint * _arg1;
4741 int * _arg2;
4742 int temp;
4743 PyObject * _argo0 = 0;
4744 wxPoint temp0;
4745 PyObject * _obj1 = 0;
4746 char *_kwnames[] = { "self","point", NULL };
4747
4748 self = self;
4749{
4750 _arg2 = &temp;
4751}
4752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_HitTest",_kwnames,&_argo0,&_obj1))
4753 return NULL;
4754 if (_argo0) {
4755 if (_argo0 == Py_None) { _arg0 = NULL; }
4756 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4757 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_HitTest. Expected _wxPyListCtrl_p.");
4758 return NULL;
4759 }
4760 }
4761{
4762 _arg1 = &temp0;
4763 if (! wxPoint_helper(_obj1, &_arg1))
4764 return NULL;
4765}
4766{
4268f798 4767 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c
RD
4768 _result = (long )wxListCtrl_HitTest(_arg0,*_arg1,*_arg2);
4769
4268f798 4770 wxPyEndAllowThreads(__tstate);
c7e7022c
RD
4771 if (PyErr_Occurred()) return NULL;
4772} _resultobj = Py_BuildValue("l",_result);
4773{
4774 PyObject *o;
4775 o = PyInt_FromLong((long) (*_arg2));
4776 _resultobj = t_output_helper(_resultobj, o);
4777}
4778 return _resultobj;
4779}
4780
4781#define wxListCtrl_InsertItem(_swigobj,_swigarg0) (_swigobj->InsertItem(_swigarg0))
4782static PyObject *_wrap_wxListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4783 PyObject * _resultobj;
4784 long _result;
4785 wxPyListCtrl * _arg0;
4786 wxListItem * _arg1;
4787 PyObject * _argo0 = 0;
4788 PyObject * _argo1 = 0;
4789 char *_kwnames[] = { "self","info", NULL };
4790
4791 self = self;
4792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_InsertItem",_kwnames,&_argo0,&_argo1))
4793 return NULL;
4794 if (_argo0) {
4795 if (_argo0 == Py_None) { _arg0 = NULL; }
4796 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4797 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertItem. Expected _wxPyListCtrl_p.");
4798 return NULL;
4799 }
4800 }
4801 if (_argo1) {
4802 if (_argo1 == Py_None) { _arg1 = NULL; }
4803 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) {
4804 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_InsertItem. Expected _wxListItem_p.");
4805 return NULL;
4806 }
4807 }
4808{
4268f798 4809 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c
RD
4810 _result = (long )wxListCtrl_InsertItem(_arg0,*_arg1);
4811
4268f798 4812 wxPyEndAllowThreads(__tstate);
c7e7022c
RD
4813 if (PyErr_Occurred()) return NULL;
4814} _resultobj = Py_BuildValue("l",_result);
4815 return _resultobj;
4816}
4817
4818#define wxListCtrl_InsertStringItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1))
4819static PyObject *_wrap_wxListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4820 PyObject * _resultobj;
4821 long _result;
4822 wxPyListCtrl * _arg0;
4823 long _arg1;
4824 wxString * _arg2;
4825 PyObject * _argo0 = 0;
4826 PyObject * _obj2 = 0;
4827 char *_kwnames[] = { "self","index","label", NULL };
4828
4829 self = self;
4830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertStringItem",_kwnames,&_argo0,&_arg1,&_obj2))
4831 return NULL;
4832 if (_argo0) {
4833 if (_argo0 == Py_None) { _arg0 = NULL; }
4834 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4835 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertStringItem. Expected _wxPyListCtrl_p.");
4836 return NULL;
4837 }
4838 }
4839{
4840#if PYTHON_API_VERSION >= 1009
4841 char* tmpPtr; int tmpSize;
4842 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
4843 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4844 return NULL;
4845 }
4846 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
4847 return NULL;
4848 _arg2 = new wxString(tmpPtr, tmpSize);
4849#else
4850 if (!PyString_Check(_obj2)) {
4851 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4852 return NULL;
4853 }
4854 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
4855#endif
4856}
4857{
4268f798 4858 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c
RD
4859 _result = (long )wxListCtrl_InsertStringItem(_arg0,_arg1,*_arg2);
4860
4268f798 4861 wxPyEndAllowThreads(__tstate);
c7e7022c
RD
4862 if (PyErr_Occurred()) return NULL;
4863} _resultobj = Py_BuildValue("l",_result);
4864{
4865 if (_obj2)
4866 delete _arg2;
4867}
4868 return _resultobj;
4869}
4870
4871#define wxListCtrl_InsertImageItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1))
4872static PyObject *_wrap_wxListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) {
4873 PyObject * _resultobj;
4874 long _result;
4875 wxPyListCtrl * _arg0;
8ab979d7
RD
4876 long _arg1;
4877 int _arg2;
1d99702e 4878 PyObject * _argo0 = 0;
c7e7022c 4879 char *_kwnames[] = { "self","index","imageIndex", NULL };
8ab979d7
RD
4880
4881 self = self;
c7e7022c 4882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oli:wxListCtrl_InsertImageItem",_kwnames,&_argo0,&_arg1,&_arg2))
8ab979d7 4883 return NULL;
1d99702e
RD
4884 if (_argo0) {
4885 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
4886 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4887 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageItem. Expected _wxPyListCtrl_p.");
8ab979d7
RD
4888 return NULL;
4889 }
4890 }
cf694132 4891{
4268f798 4892 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c 4893 _result = (long )wxListCtrl_InsertImageItem(_arg0,_arg1,_arg2);
cf694132 4894
4268f798 4895 wxPyEndAllowThreads(__tstate);
493f1553 4896 if (PyErr_Occurred()) return NULL;
c7e7022c 4897} _resultobj = Py_BuildValue("l",_result);
8ab979d7
RD
4898 return _resultobj;
4899}
4900
c7e7022c
RD
4901#define wxListCtrl_InsertImageStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2))
4902static PyObject *_wrap_wxListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 4903 PyObject * _resultobj;
c7e7022c
RD
4904 long _result;
4905 wxPyListCtrl * _arg0;
8ab979d7 4906 long _arg1;
c7e7022c
RD
4907 wxString * _arg2;
4908 int _arg3;
1d99702e 4909 PyObject * _argo0 = 0;
2f90df85 4910 PyObject * _obj2 = 0;
c7e7022c 4911 char *_kwnames[] = { "self","index","label","imageIndex", NULL };
8ab979d7
RD
4912
4913 self = self;
c7e7022c 4914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_InsertImageStringItem",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3))
8ab979d7 4915 return NULL;
1d99702e
RD
4916 if (_argo0) {
4917 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
4918 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4919 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageStringItem. Expected _wxPyListCtrl_p.");
8ab979d7
RD
4920 return NULL;
4921 }
4922 }
2f90df85 4923{
c7e7022c
RD
4924#if PYTHON_API_VERSION >= 1009
4925 char* tmpPtr; int tmpSize;
4926 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
4927 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4928 return NULL;
4929 }
4930 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
4931 return NULL;
4932 _arg2 = new wxString(tmpPtr, tmpSize);
4933#else
4934 if (!PyString_Check(_obj2)) {
4935 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8ab979d7 4936 return NULL;
c7e7022c
RD
4937 }
4938 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
4939#endif
2f90df85 4940}
cf694132 4941{
4268f798 4942 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c 4943 _result = (long )wxListCtrl_InsertImageStringItem(_arg0,_arg1,*_arg2,_arg3);
cf694132 4944
4268f798 4945 wxPyEndAllowThreads(__tstate);
493f1553 4946 if (PyErr_Occurred()) return NULL;
c7e7022c
RD
4947} _resultobj = Py_BuildValue("l",_result);
4948{
4949 if (_obj2)
4950 delete _arg2;
4951}
8ab979d7
RD
4952 return _resultobj;
4953}
4954
c7e7022c
RD
4955#define wxListCtrl_InsertColumnInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertColumn(_swigarg0,_swigarg1))
4956static PyObject *_wrap_wxListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 4957 PyObject * _resultobj;
c7e7022c
RD
4958 long _result;
4959 wxPyListCtrl * _arg0;
8ab979d7 4960 long _arg1;
c7e7022c 4961 wxListItem * _arg2;
1d99702e 4962 PyObject * _argo0 = 0;
c7e7022c
RD
4963 PyObject * _argo2 = 0;
4964 char *_kwnames[] = { "self","col","info", NULL };
8ab979d7
RD
4965
4966 self = self;
c7e7022c 4967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertColumnInfo",_kwnames,&_argo0,&_arg1,&_argo2))
8ab979d7 4968 return NULL;
1d99702e
RD
4969 if (_argo0) {
4970 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
4971 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
4972 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumnInfo. Expected _wxPyListCtrl_p.");
4973 return NULL;
4974 }
4975 }
4976 if (_argo2) {
4977 if (_argo2 == Py_None) { _arg2 = NULL; }
4978 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) {
4979 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_InsertColumnInfo. Expected _wxListItem_p.");
8ab979d7
RD
4980 return NULL;
4981 }
4982 }
cf694132 4983{
4268f798 4984 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c 4985 _result = (long )wxListCtrl_InsertColumnInfo(_arg0,_arg1,*_arg2);
cf694132 4986
4268f798 4987 wxPyEndAllowThreads(__tstate);
493f1553 4988 if (PyErr_Occurred()) return NULL;
c7e7022c 4989} _resultobj = Py_BuildValue("l",_result);
8ab979d7
RD
4990 return _resultobj;
4991}
4992
c7e7022c
RD
4993#define wxListCtrl_InsertColumn(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertColumn(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
4994static PyObject *_wrap_wxListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 4995 PyObject * _resultobj;
c7e7022c
RD
4996 long _result;
4997 wxPyListCtrl * _arg0;
8ab979d7
RD
4998 long _arg1;
4999 wxString * _arg2;
c7e7022c
RD
5000 int _arg3 = (int ) (wxLIST_FORMAT_LEFT);
5001 int _arg4 = (int ) -1;
1d99702e 5002 PyObject * _argo0 = 0;
8ab979d7 5003 PyObject * _obj2 = 0;
c7e7022c 5004 char *_kwnames[] = { "self","col","heading","format","width", NULL };
8ab979d7
RD
5005
5006 self = self;
c7e7022c 5007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|ii:wxListCtrl_InsertColumn",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3,&_arg4))
8ab979d7 5008 return NULL;
1d99702e
RD
5009 if (_argo0) {
5010 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
5011 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
5012 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumn. Expected _wxPyListCtrl_p.");
8ab979d7
RD
5013 return NULL;
5014 }
5015 }
5016{
185d7c3e
RD
5017#if PYTHON_API_VERSION >= 1009
5018 char* tmpPtr; int tmpSize;
5019 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
794c5cb1 5020 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
185d7c3e
RD
5021 return NULL;
5022 }
5023 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
5024 return NULL;
5025 _arg2 = new wxString(tmpPtr, tmpSize);
5026#else
8ab979d7
RD
5027 if (!PyString_Check(_obj2)) {
5028 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5029 return NULL;
5030 }
185d7c3e
RD
5031 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
5032#endif
8ab979d7 5033}
cf694132 5034{
4268f798 5035 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c 5036 _result = (long )wxListCtrl_InsertColumn(_arg0,_arg1,*_arg2,_arg3,_arg4);
cf694132 5037
4268f798 5038 wxPyEndAllowThreads(__tstate);
493f1553 5039 if (PyErr_Occurred()) return NULL;
c7e7022c 5040} _resultobj = Py_BuildValue("l",_result);
8ab979d7
RD
5041{
5042 if (_obj2)
5043 delete _arg2;
5044}
5045 return _resultobj;
5046}
5047
c7e7022c
RD
5048#define wxListCtrl_SetItemCount(_swigobj,_swigarg0) (_swigobj->SetItemCount(_swigarg0))
5049static PyObject *_wrap_wxListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 5050 PyObject * _resultobj;
c7e7022c 5051 wxPyListCtrl * _arg0;
8ab979d7 5052 long _arg1;
1d99702e 5053 PyObject * _argo0 = 0;
c7e7022c 5054 char *_kwnames[] = { "self","count", NULL };
8ab979d7
RD
5055
5056 self = self;
c7e7022c 5057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetItemCount",_kwnames,&_argo0,&_arg1))
8ab979d7 5058 return NULL;
1d99702e
RD
5059 if (_argo0) {
5060 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
5061 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
5062 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemCount. Expected _wxPyListCtrl_p.");
8ab979d7
RD
5063 return NULL;
5064 }
5065 }
cf694132 5066{
4268f798 5067 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c 5068 wxListCtrl_SetItemCount(_arg0,_arg1);
cf694132 5069
4268f798 5070 wxPyEndAllowThreads(__tstate);
493f1553 5071 if (PyErr_Occurred()) return NULL;
cf694132 5072} Py_INCREF(Py_None);
8ab979d7
RD
5073 _resultobj = Py_None;
5074 return _resultobj;
5075}
5076
c7e7022c
RD
5077#define wxListCtrl_ScrollList(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScrollList(_swigarg0,_swigarg1))
5078static PyObject *_wrap_wxListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 5079 PyObject * _resultobj;
c7e7022c
RD
5080 bool _result;
5081 wxPyListCtrl * _arg0;
5082 int _arg1;
5083 int _arg2;
1d99702e 5084 PyObject * _argo0 = 0;
c7e7022c 5085 char *_kwnames[] = { "self","dx","dy", NULL };
8ab979d7
RD
5086
5087 self = self;
c7e7022c 5088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_ScrollList",_kwnames,&_argo0,&_arg1,&_arg2))
8ab979d7 5089 return NULL;
1d99702e
RD
5090 if (_argo0) {
5091 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
5092 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
5093 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ScrollList. Expected _wxPyListCtrl_p.");
8ab979d7
RD
5094 return NULL;
5095 }
5096 }
cf694132 5097{
4268f798 5098 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c 5099 _result = (bool )wxListCtrl_ScrollList(_arg0,_arg1,_arg2);
cf694132 5100
4268f798 5101 wxPyEndAllowThreads(__tstate);
493f1553 5102 if (PyErr_Occurred()) return NULL;
c7e7022c 5103} _resultobj = Py_BuildValue("i",_result);
8ab979d7
RD
5104 return _resultobj;
5105}
5106
c7e7022c 5107static bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject * func) {
dcd38683
RD
5108 if (!PyCallable_Check(func))
5109 return FALSE;
f6bcfd97 5110 return self->SortItems(wxPyListCtrl_SortItems, (long)func);
dcd38683
RD
5111 }
5112static PyObject *_wrap_wxListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) {
5113 PyObject * _resultobj;
5114 bool _result;
c7e7022c 5115 wxPyListCtrl * _arg0;
dcd38683
RD
5116 PyObject * _arg1;
5117 PyObject * _argo0 = 0;
5118 PyObject * _obj1 = 0;
5119 char *_kwnames[] = { "self","func", NULL };
5120
5121 self = self;
5122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SortItems",_kwnames,&_argo0,&_obj1))
5123 return NULL;
5124 if (_argo0) {
5125 if (_argo0 == Py_None) { _arg0 = NULL; }
c7e7022c
RD
5126 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) {
5127 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SortItems. Expected _wxPyListCtrl_p.");
dcd38683
RD
5128 return NULL;
5129 }
5130 }
5131{
5132 _arg1 = _obj1;
5133}
5134{
4268f798 5135 PyThreadState* __tstate = wxPyBeginAllowThreads();
c7e7022c 5136 _result = (bool )wxPyListCtrl_SortItems(_arg0,_arg1);
dcd38683 5137
4268f798 5138 wxPyEndAllowThreads(__tstate);
493f1553 5139 if (PyErr_Occurred()) return NULL;
dcd38683
RD
5140} _resultobj = Py_BuildValue("i",_result);
5141 return _resultobj;
5142}
5143
6d19860f
RD
5144static void *SwigwxListViewTowxPyListCtrl(void *ptr) {
5145 wxListView *src;
5146 wxPyListCtrl *dest;
5147 src = (wxListView *) ptr;
5148 dest = (wxPyListCtrl *) src;
5149 return (void *) dest;
5150}
5151
5152static void *SwigwxListViewTowxControl(void *ptr) {
5153 wxListView *src;
5154 wxControl *dest;
5155 src = (wxListView *) ptr;
5156 dest = (wxControl *) src;
5157 return (void *) dest;
5158}
5159
5160static void *SwigwxListViewTowxWindow(void *ptr) {
5161 wxListView *src;
5162 wxWindow *dest;
5163 src = (wxListView *) ptr;
5164 dest = (wxWindow *) src;
5165 return (void *) dest;
5166}
5167
5168static void *SwigwxListViewTowxEvtHandler(void *ptr) {
5169 wxListView *src;
5170 wxEvtHandler *dest;
5171 src = (wxListView *) ptr;
5172 dest = (wxEvtHandler *) src;
5173 return (void *) dest;
5174}
5175
5176static void *SwigwxListViewTowxObject(void *ptr) {
5177 wxListView *src;
5178 wxObject *dest;
5179 src = (wxListView *) ptr;
5180 dest = (wxObject *) src;
5181 return (void *) dest;
5182}
5183
5184#define new_wxListView(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxListView(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
5185static PyObject *_wrap_new_wxListView(PyObject *self, PyObject *args, PyObject *kwargs) {
5186 PyObject * _resultobj;
5187 wxListView * _result;
5188 wxWindow * _arg0;
5189 wxWindowID _arg1 = (wxWindowID ) -1;
5190 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
5191 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
5192 long _arg4 = (long ) (wxLC_REPORT);
5193 wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator;
5194 wxString * _arg6 = (wxString *) &"listctrl";
5195 PyObject * _argo0 = 0;
5196 wxPoint temp;
5197 PyObject * _obj2 = 0;
5198 wxSize temp0;
5199 PyObject * _obj3 = 0;
5200 PyObject * _argo5 = 0;
5201 PyObject * _obj6 = 0;
5202 char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL };
5203 char _ptemp[128];
5204
5205 self = self;
5206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxListView",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6))
5207 return NULL;
5208 if (_argo0) {
5209 if (_argo0 == Py_None) { _arg0 = NULL; }
5210 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
5211 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListView. Expected _wxWindow_p.");
5212 return NULL;
5213 }
5214 }
5215 if (_obj2)
5216{
5217 _arg2 = &temp;
5218 if (! wxPoint_helper(_obj2, &_arg2))
5219 return NULL;
5220}
5221 if (_obj3)
5222{
5223 _arg3 = &temp0;
5224 if (! wxSize_helper(_obj3, &_arg3))
5225 return NULL;
5226}
5227 if (_argo5) {
5228 if (_argo5 == Py_None) { _arg5 = NULL; }
5229 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) {
5230 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListView. Expected _wxValidator_p.");
5231 return NULL;
5232 }
5233 }
5234 if (_obj6)
5235{
5236#if PYTHON_API_VERSION >= 1009
5237 char* tmpPtr; int tmpSize;
5238 if (!PyString_Check(_obj6) && !PyUnicode_Check(_obj6)) {
5239 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5240 return NULL;
5241 }
5242 if (PyString_AsStringAndSize(_obj6, &tmpPtr, &tmpSize) == -1)
5243 return NULL;
5244 _arg6 = new wxString(tmpPtr, tmpSize);
5245#else
5246 if (!PyString_Check(_obj6)) {
5247 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5248 return NULL;
5249 }
5250 _arg6 = new wxString(PyString_AS_STRING(_obj6), PyString_GET_SIZE(_obj6));
5251#endif
5252}
5253{
4268f798 5254 PyThreadState* __tstate = wxPyBeginAllowThreads();
6d19860f
RD
5255 _result = (wxListView *)new_wxListView(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6);
5256
4268f798 5257 wxPyEndAllowThreads(__tstate);
6d19860f
RD
5258 if (PyErr_Occurred()) return NULL;
5259} if (_result) {
5260 SWIG_MakePtr(_ptemp, (char *) _result,"_wxListView_p");
5261 _resultobj = Py_BuildValue("s",_ptemp);
5262 } else {
5263 Py_INCREF(Py_None);
5264 _resultobj = Py_None;
5265 }
5266{
5267 if (_obj6)
5268 delete _arg6;
5269}
5270 return _resultobj;
5271}
5272
5273#define new_wxPreListView() (new wxListView())
5274static PyObject *_wrap_new_wxPreListView(PyObject *self, PyObject *args, PyObject *kwargs) {
5275 PyObject * _resultobj;
5276 wxListView * _result;
5277 char *_kwnames[] = { NULL };
5278 char _ptemp[128];
5279
5280 self = self;
5281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListView",_kwnames))
5282 return NULL;
5283{
4268f798 5284 PyThreadState* __tstate = wxPyBeginAllowThreads();
6d19860f
RD
5285 _result = (wxListView *)new_wxPreListView();
5286
4268f798 5287 wxPyEndAllowThreads(__tstate);
6d19860f
RD
5288 if (PyErr_Occurred()) return NULL;
5289} if (_result) {
5290 SWIG_MakePtr(_ptemp, (char *) _result,"_wxListView_p");
5291 _resultobj = Py_BuildValue("s",_ptemp);
5292 } else {
5293 Py_INCREF(Py_None);
5294 _resultobj = Py_None;
5295 }
5296 return _resultobj;
5297}
5298
5299#define wxListView_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
5300static PyObject *_wrap_wxListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
5301 PyObject * _resultobj;
5302 bool _result;
5303 wxListView * _arg0;
5304 wxWindow * _arg1;
5305 wxWindowID _arg2 = (wxWindowID ) -1;
5306 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
5307 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
5308 long _arg5 = (long ) (wxLC_REPORT);
5309 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
5310 wxString * _arg7 = (wxString *) &"listctrl";
5311 PyObject * _argo0 = 0;
5312 PyObject * _argo1 = 0;
5313 wxPoint temp;
5314 PyObject * _obj3 = 0;
5315 wxSize temp0;
5316 PyObject * _obj4 = 0;
5317 PyObject * _argo6 = 0;
5318 PyObject * _obj7 = 0;
5319 char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL };
5320
5321 self = self;
5322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxListView_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7))
5323 return NULL;
5324 if (_argo0) {
5325 if (_argo0 == Py_None) { _arg0 = NULL; }
5326 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) {
5327 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Create. Expected _wxListView_p.");
5328 return NULL;
5329 }
5330 }
5331 if (_argo1) {
5332 if (_argo1 == Py_None) { _arg1 = NULL; }
5333 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
5334 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListView_Create. Expected _wxWindow_p.");
5335 return NULL;
5336 }
5337 }
5338 if (_obj3)
5339{
5340 _arg3 = &temp;
5341 if (! wxPoint_helper(_obj3, &_arg3))
5342 return NULL;
5343}
5344 if (_obj4)
5345{
5346 _arg4 = &temp0;
5347 if (! wxSize_helper(_obj4, &_arg4))
5348 return NULL;
5349}
5350 if (_argo6) {
5351 if (_argo6 == Py_None) { _arg6 = NULL; }
5352 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
5353 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxListView_Create. Expected _wxValidator_p.");
5354 return NULL;
5355 }
5356 }
5357 if (_obj7)
5358{
5359#if PYTHON_API_VERSION >= 1009
5360 char* tmpPtr; int tmpSize;
5361 if (!PyString_Check(_obj7) && !PyUnicode_Check(_obj7)) {
5362 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5363 return NULL;
5364 }
5365 if (PyString_AsStringAndSize(_obj7, &tmpPtr, &tmpSize) == -1)
5366 return NULL;
5367 _arg7 = new wxString(tmpPtr, tmpSize);
5368#else
5369 if (!PyString_Check(_obj7)) {
5370 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5371 return NULL;
5372 }
5373 _arg7 = new wxString(PyString_AS_STRING(_obj7), PyString_GET_SIZE(_obj7));
5374#endif
5375}
5376{
4268f798 5377 PyThreadState* __tstate = wxPyBeginAllowThreads();
6d19860f
RD
5378 _result = (bool )wxListView_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7);
5379
4268f798 5380 wxPyEndAllowThreads(__tstate);
6d19860f
RD
5381 if (PyErr_Occurred()) return NULL;
5382} _resultobj = Py_BuildValue("i",_result);
5383{
5384 if (_obj7)
5385 delete _arg7;
5386}
5387 return _resultobj;
5388}
5389
5390#define wxListView_Select(_swigobj,_swigarg0,_swigarg1) (_swigobj->Select(_swigarg0,_swigarg1))
5391static PyObject *_wrap_wxListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) {
5392 PyObject * _resultobj;
5393 wxListView * _arg0;
5394 long _arg1;
5395 bool _arg2 = (bool ) TRUE;
5396 PyObject * _argo0 = 0;
5397 int tempbool2 = (int) TRUE;
5398 char *_kwnames[] = { "self","n","on", NULL };
5399
5400 self = self;
5401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListView_Select",_kwnames,&_argo0,&_arg1,&tempbool2))
5402 return NULL;
5403 if (_argo0) {
5404 if (_argo0 == Py_None) { _arg0 = NULL; }
5405 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) {
5406 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Select. Expected _wxListView_p.");
5407 return NULL;
5408 }
5409 }
5410 _arg2 = (bool ) tempbool2;
5411{
4268f798 5412 PyThreadState* __tstate = wxPyBeginAllowThreads();
6d19860f
RD
5413 wxListView_Select(_arg0,_arg1,_arg2);
5414
4268f798 5415 wxPyEndAllowThreads(__tstate);
6d19860f
RD
5416 if (PyErr_Occurred()) return NULL;
5417} Py_INCREF(Py_None);
5418 _resultobj = Py_None;
5419 return _resultobj;
5420}
5421
5422#define wxListView_Focus(_swigobj,_swigarg0) (_swigobj->Focus(_swigarg0))
5423static PyObject *_wrap_wxListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) {
5424 PyObject * _resultobj;
5425 wxListView * _arg0;
5426 long _arg1;
5427 PyObject * _argo0 = 0;
5428 char *_kwnames[] = { "self","index", NULL };
5429
5430 self = self;
5431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_Focus",_kwnames,&_argo0,&_arg1))
5432 return NULL;
5433 if (_argo0) {
5434 if (_argo0 == Py_None) { _arg0 = NULL; }
5435 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) {
5436 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Focus. Expected _wxListView_p.");
5437 return NULL;
5438 }
5439 }
5440{
4268f798 5441 PyThreadState* __tstate = wxPyBeginAllowThreads();
6d19860f
RD
5442 wxListView_Focus(_arg0,_arg1);
5443
4268f798 5444 wxPyEndAllowThreads(__tstate);
6d19860f
RD
5445 if (PyErr_Occurred()) return NULL;
5446} Py_INCREF(Py_None);
5447 _resultobj = Py_None;
5448 return _resultobj;
5449}
5450
5451#define wxListView_GetFocusedItem(_swigobj) (_swigobj->GetFocusedItem())
5452static PyObject *_wrap_wxListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) {
5453 PyObject * _resultobj;
5454 long _result;
5455 wxListView * _arg0;
5456 PyObject * _argo0 = 0;
5457 char *_kwnames[] = { "self", NULL };
5458
5459 self = self;
5460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListView_GetFocusedItem",_kwnames,&_argo0))
5461 return NULL;
5462 if (_argo0) {
5463 if (_argo0 == Py_None) { _arg0 = NULL; }
5464 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) {
5465 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetFocusedItem. Expected _wxListView_p.");
5466 return NULL;
5467 }
5468 }
5469{
4268f798 5470 PyThreadState* __tstate = wxPyBeginAllowThreads();
6d19860f
RD
5471 _result = (long )wxListView_GetFocusedItem(_arg0);
5472
4268f798 5473 wxPyEndAllowThreads(__tstate);
6d19860f
RD
5474 if (PyErr_Occurred()) return NULL;
5475} _resultobj = Py_BuildValue("l",_result);
5476 return _resultobj;
5477}
5478
5479#define wxListView_GetNextSelected(_swigobj,_swigarg0) (_swigobj->GetNextSelected(_swigarg0))
5480static PyObject *_wrap_wxListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
5481 PyObject * _resultobj;
5482 long _result;
5483 wxListView * _arg0;
5484 long _arg1;
5485 PyObject * _argo0 = 0;
5486 char *_kwnames[] = { "self","item", NULL };
5487
5488 self = self;
5489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_GetNextSelected",_kwnames,&_argo0,&_arg1))
5490 return NULL;
5491 if (_argo0) {
5492 if (_argo0 == Py_None) { _arg0 = NULL; }
5493 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) {
5494 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetNextSelected. Expected _wxListView_p.");
5495 return NULL;
5496 }
5497 }
5498{
4268f798 5499 PyThreadState* __tstate = wxPyBeginAllowThreads();
6d19860f
RD
5500 _result = (long )wxListView_GetNextSelected(_arg0,_arg1);
5501
4268f798 5502 wxPyEndAllowThreads(__tstate);
6d19860f
RD
5503 if (PyErr_Occurred()) return NULL;
5504} _resultobj = Py_BuildValue("l",_result);
5505 return _resultobj;
5506}
5507
5508#define wxListView_GetFirstSelected(_swigobj) (_swigobj->GetFirstSelected())
5509static PyObject *_wrap_wxListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
5510 PyObject * _resultobj;
5511 long _result;
5512 wxListView * _arg0;
5513 PyObject * _argo0 = 0;
5514 char *_kwnames[] = { "self", NULL };
5515
5516 self = self;
5517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListView_GetFirstSelected",_kwnames,&_argo0))
5518 return NULL;
5519 if (_argo0) {
5520 if (_argo0 == Py_None) { _arg0 = NULL; }
5521 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) {
5522 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetFirstSelected. Expected _wxListView_p.");
5523 return NULL;
5524 }
5525 }
5526{
4268f798 5527 PyThreadState* __tstate = wxPyBeginAllowThreads();
6d19860f
RD
5528 _result = (long )wxListView_GetFirstSelected(_arg0);
5529
4268f798 5530 wxPyEndAllowThreads(__tstate);
6d19860f
RD
5531 if (PyErr_Occurred()) return NULL;
5532} _resultobj = Py_BuildValue("l",_result);
5533 return _resultobj;
5534}
5535
5536#define wxListView_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0))
5537static PyObject *_wrap_wxListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
5538 PyObject * _resultobj;
5539 bool _result;
5540 wxListView * _arg0;
5541 long _arg1;
5542 PyObject * _argo0 = 0;
5543 char *_kwnames[] = { "self","index", NULL };
5544
5545 self = self;
5546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_IsSelected",_kwnames,&_argo0,&_arg1))
5547 return NULL;
5548 if (_argo0) {
5549 if (_argo0 == Py_None) { _arg0 = NULL; }
5550 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) {
5551 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_IsSelected. Expected _wxListView_p.");
5552 return NULL;
5553 }
5554 }
5555{
4268f798 5556 PyThreadState* __tstate = wxPyBeginAllowThreads();
6d19860f
RD
5557 _result = (bool )wxListView_IsSelected(_arg0,_arg1);
5558
4268f798 5559 wxPyEndAllowThreads(__tstate);
6d19860f
RD
5560 if (PyErr_Occurred()) return NULL;
5561} _resultobj = Py_BuildValue("i",_result);
5562 return _resultobj;
5563}
5564
5565#define wxListView_SetColumnImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnImage(_swigarg0,_swigarg1))
5566static PyObject *_wrap_wxListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) {
5567 PyObject * _resultobj;
5568 wxListView * _arg0;
5569 int _arg1;
5570 int _arg2;
5571 PyObject * _argo0 = 0;
5572 char *_kwnames[] = { "self","col","image", NULL };
5573
5574 self = self;
5575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListView_SetColumnImage",_kwnames,&_argo0,&_arg1,&_arg2))
5576 return NULL;
5577 if (_argo0) {
5578 if (_argo0 == Py_None) { _arg0 = NULL; }
5579 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) {
5580 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_SetColumnImage. Expected _wxListView_p.");
5581 return NULL;
5582 }
5583 }
5584{
4268f798 5585 PyThreadState* __tstate = wxPyBeginAllowThreads();
6d19860f
RD
5586 wxListView_SetColumnImage(_arg0,_arg1,_arg2);
5587
4268f798 5588 wxPyEndAllowThreads(__tstate);
6d19860f
RD
5589 if (PyErr_Occurred()) return NULL;
5590} Py_INCREF(Py_None);
5591 _resultobj = Py_None;
5592 return _resultobj;
5593}
5594
5595#define wxListView_ClearColumnImage(_swigobj,_swigarg0) (_swigobj->ClearColumnImage(_swigarg0))
5596static PyObject *_wrap_wxListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) {
5597 PyObject * _resultobj;
5598 wxListView * _arg0;
5599 int _arg1;
5600 PyObject * _argo0 = 0;
5601 char *_kwnames[] = { "self","col", NULL };
5602
5603 self = self;
5604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListView_ClearColumnImage",_kwnames,&_argo0,&_arg1))
5605 return NULL;
5606 if (_argo0) {
5607 if (_argo0 == Py_None) { _arg0 = NULL; }
5608 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) {
5609 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_ClearColumnImage. Expected _wxListView_p.");
5610 return NULL;
5611 }
5612 }
5613{
4268f798 5614 PyThreadState* __tstate = wxPyBeginAllowThreads();
6d19860f
RD
5615 wxListView_ClearColumnImage(_arg0,_arg1);
5616
4268f798 5617 wxPyEndAllowThreads(__tstate);
6d19860f
RD
5618 if (PyErr_Occurred()) return NULL;
5619} Py_INCREF(Py_None);
5620 _resultobj = Py_None;
5621 return _resultobj;
5622}
5623
00b6c4e3
RD
5624#define new_wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2) (new wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2))
5625static PyObject *_wrap_new_wxTreeItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) {
5626 PyObject * _resultobj;
5627 wxTreeItemAttr * _result;
5628 wxColour * _arg0 = (wxColour *) &wxNullColour;
5629 wxColour * _arg1 = (wxColour *) &wxNullColour;
5630 wxFont * _arg2 = (wxFont *) &wxNullFont;
5631 wxColour temp;
5632 PyObject * _obj0 = 0;
5633 wxColour temp0;
5634 PyObject * _obj1 = 0;
5635 PyObject * _argo2 = 0;
5636 char *_kwnames[] = { "colText","colBack","font", NULL };
5637 char _ptemp[128];
5638
5639 self = self;
5640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxTreeItemAttr",_kwnames,&_obj0,&_obj1,&_argo2))
5641 return NULL;
5642 if (_obj0)
5643{
5644 _arg0 = &temp;
5645 if (! wxColour_helper(_obj0, &_arg0))
5646 return NULL;
5647}
5648 if (_obj1)
5649{
5650 _arg1 = &temp0;
5651 if (! wxColour_helper(_obj1, &_arg1))
5652 return NULL;
5653}
5654 if (_argo2) {
5655 if (_argo2 == Py_None) { _arg2 = NULL; }
5656 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) {
5657 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxTreeItemAttr. Expected _wxFont_p.");
5658 return NULL;
5659 }
5660 }
5661{
4268f798 5662 PyThreadState* __tstate = wxPyBeginAllowThreads();
00b6c4e3
RD
5663 _result = (wxTreeItemAttr *)new_wxTreeItemAttr(*_arg0,*_arg1,*_arg2);
5664
4268f798 5665 wxPyEndAllowThreads(__tstate);
00b6c4e3
RD
5666 if (PyErr_Occurred()) return NULL;
5667} if (_result) {
5668 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemAttr_p");
5669 _resultobj = Py_BuildValue("s",_ptemp);
5670 } else {
5671 Py_INCREF(Py_None);
5672 _resultobj = Py_None;
5673 }
5674 return _resultobj;
5675}
5676
5677#define wxTreeItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0))
5678static PyObject *_wrap_wxTreeItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5679 PyObject * _resultobj;
5680 wxTreeItemAttr * _arg0;
5681 wxColour * _arg1;
5682 PyObject * _argo0 = 0;
5683 wxColour temp;
5684 PyObject * _obj1 = 0;
5685 char *_kwnames[] = { "self","colText", NULL };
5686
5687 self = self;
5688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1))
5689 return NULL;
5690 if (_argo0) {
5691 if (_argo0 == Py_None) { _arg0 = NULL; }
5692 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) {
5693 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetTextColour. Expected _wxTreeItemAttr_p.");
5694 return NULL;
5695 }
5696 }
5697{
5698 _arg1 = &temp;
5699 if (! wxColour_helper(_obj1, &_arg1))
5700 return NULL;
5701}
5702{
4268f798 5703 PyThreadState* __tstate = wxPyBeginAllowThreads();
00b6c4e3
RD
5704 wxTreeItemAttr_SetTextColour(_arg0,*_arg1);
5705
4268f798 5706 wxPyEndAllowThreads(__tstate);
00b6c4e3
RD
5707 if (PyErr_Occurred()) return NULL;
5708} Py_INCREF(Py_None);
5709 _resultobj = Py_None;
5710 return _resultobj;
5711}
5712
5713#define wxTreeItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
5714static PyObject *_wrap_wxTreeItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5715 PyObject * _resultobj;
5716 wxTreeItemAttr * _arg0;
5717 wxColour * _arg1;
5718 PyObject * _argo0 = 0;
5719 wxColour temp;
5720 PyObject * _obj1 = 0;
5721 char *_kwnames[] = { "self","colBack", NULL };
5722
5723 self = self;
5724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1))
5725 return NULL;
5726 if (_argo0) {
5727 if (_argo0 == Py_None) { _arg0 = NULL; }
5728 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) {
5729 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetBackgroundColour. Expected _wxTreeItemAttr_p.");
5730 return NULL;
5731 }
5732 }
5733{
5734 _arg1 = &temp;
5735 if (! wxColour_helper(_obj1, &_arg1))
5736 return NULL;
5737}
5738{
4268f798 5739 PyThreadState* __tstate = wxPyBeginAllowThreads();
00b6c4e3
RD
5740 wxTreeItemAttr_SetBackgroundColour(_arg0,*_arg1);
5741
4268f798 5742 wxPyEndAllowThreads(__tstate);
00b6c4e3
RD
5743 if (PyErr_Occurred()) return NULL;
5744} Py_INCREF(Py_None);
5745 _resultobj = Py_None;
5746 return _resultobj;
5747}
5748
5749#define wxTreeItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
5750static PyObject *_wrap_wxTreeItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5751 PyObject * _resultobj;
5752 wxTreeItemAttr * _arg0;
5753 wxFont * _arg1;
5754 PyObject * _argo0 = 0;
5755 PyObject * _argo1 = 0;
5756 char *_kwnames[] = { "self","font", NULL };
5757
5758 self = self;
5759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetFont",_kwnames,&_argo0,&_argo1))
5760 return NULL;
5761 if (_argo0) {
5762 if (_argo0 == Py_None) { _arg0 = NULL; }
5763 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) {
5764 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetFont. Expected _wxTreeItemAttr_p.");
5765 return NULL;
5766 }
5767 }
5768 if (_argo1) {
5769 if (_argo1 == Py_None) { _arg1 = NULL; }
5770 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
5771 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemAttr_SetFont. Expected _wxFont_p.");
5772 return NULL;
5773 }
5774 }
5775{
4268f798 5776 PyThreadState* __tstate = wxPyBeginAllowThreads();
00b6c4e3
RD
5777 wxTreeItemAttr_SetFont(_arg0,*_arg1);
5778
4268f798 5779 wxPyEndAllowThreads(__tstate);
00b6c4e3
RD
5780 if (PyErr_Occurred()) return NULL;
5781} Py_INCREF(Py_None);
5782 _resultobj = Py_None;
5783 return _resultobj;
5784}
5785
5786#define wxTreeItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour())
5787static PyObject *_wrap_wxTreeItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5788 PyObject * _resultobj;
5789 bool _result;
5790 wxTreeItemAttr * _arg0;
5791 PyObject * _argo0 = 0;
5792 char *_kwnames[] = { "self", NULL };
5793
5794 self = self;
5795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasTextColour",_kwnames,&_argo0))
5796 return NULL;
5797 if (_argo0) {
5798 if (_argo0 == Py_None) { _arg0 = NULL; }
5799 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) {
5800 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasTextColour. Expected _wxTreeItemAttr_p.");
5801 return NULL;
5802 }
5803 }
5804{
4268f798 5805 PyThreadState* __tstate = wxPyBeginAllowThreads();
00b6c4e3
RD
5806 _result = (bool )wxTreeItemAttr_HasTextColour(_arg0);
5807
4268f798 5808 wxPyEndAllowThreads(__tstate);
00b6c4e3
RD
5809 if (PyErr_Occurred()) return NULL;
5810} _resultobj = Py_BuildValue("i",_result);
5811 return _resultobj;
5812}
5813
5814#define wxTreeItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour())
5815static PyObject *_wrap_wxTreeItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5816 PyObject * _resultobj;
5817 bool _result;
5818 wxTreeItemAttr * _arg0;
5819 PyObject * _argo0 = 0;
5820 char *_kwnames[] = { "self", NULL };
5821
5822 self = self;
5823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasBackgroundColour",_kwnames,&_argo0))
5824 return NULL;
5825 if (_argo0) {
5826 if (_argo0 == Py_None) { _arg0 = NULL; }
5827 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) {
5828 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasBackgroundColour. Expected _wxTreeItemAttr_p.");
5829 return NULL;
5830 }
5831 }
5832{
4268f798 5833 PyThreadState* __tstate = wxPyBeginAllowThreads();
00b6c4e3
RD
5834 _result = (bool )wxTreeItemAttr_HasBackgroundColour(_arg0);
5835
4268f798 5836 wxPyEndAllowThreads(__tstate);
00b6c4e3
RD
5837 if (PyErr_Occurred()) return NULL;
5838} _resultobj = Py_BuildValue("i",_result);
5839 return _resultobj;
5840}
5841
5842#define wxTreeItemAttr_HasFont(_swigobj) (_swigobj->HasFont())
5843static PyObject *_wrap_wxTreeItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5844 PyObject * _resultobj;
5845 bool _result;
5846 wxTreeItemAttr * _arg0;
5847 PyObject * _argo0 = 0;
5848 char *_kwnames[] = { "self", NULL };
5849
5850 self = self;
5851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasFont",_kwnames,&_argo0))
5852 return NULL;
5853 if (_argo0) {
5854 if (_argo0 == Py_None) { _arg0 = NULL; }
5855 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) {
5856 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasFont. Expected _wxTreeItemAttr_p.");
5857 return NULL;
5858 }
5859 }
5860{
4268f798 5861 PyThreadState* __tstate = wxPyBeginAllowThreads();
00b6c4e3
RD
5862 _result = (bool )wxTreeItemAttr_HasFont(_arg0);
5863
4268f798 5864 wxPyEndAllowThreads(__tstate);
00b6c4e3
RD
5865 if (PyErr_Occurred()) return NULL;
5866} _resultobj = Py_BuildValue("i",_result);
5867 return _resultobj;
5868}
5869
5870#define wxTreeItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour())
5871static PyObject *_wrap_wxTreeItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5872 PyObject * _resultobj;
5873 wxColour * _result;
5874 wxTreeItemAttr * _arg0;
5875 PyObject * _argo0 = 0;
5876 char *_kwnames[] = { "self", NULL };
5877 char _ptemp[128];
5878
5879 self = self;
5880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetTextColour",_kwnames,&_argo0))
5881 return NULL;
5882 if (_argo0) {
5883 if (_argo0 == Py_None) { _arg0 = NULL; }
5884 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) {
5885 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetTextColour. Expected _wxTreeItemAttr_p.");
5886 return NULL;
5887 }
5888 }
5889{
4268f798 5890 PyThreadState* __tstate = wxPyBeginAllowThreads();
c5943253 5891 _result = new wxColour (wxTreeItemAttr_GetTextColour(_arg0));
00b6c4e3 5892
4268f798 5893 wxPyEndAllowThreads(__tstate);
00b6c4e3 5894 if (PyErr_Occurred()) return NULL;
c5943253
RD
5895} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
5896 _resultobj = Py_BuildValue("s",_ptemp);
00b6c4e3
RD
5897 return _resultobj;
5898}
5899
5900#define wxTreeItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour())
5901static PyObject *_wrap_wxTreeItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5902 PyObject * _resultobj;
5903 wxColour * _result;
5904 wxTreeItemAttr * _arg0;
5905 PyObject * _argo0 = 0;
5906 char *_kwnames[] = { "self", NULL };
5907 char _ptemp[128];
5908
5909 self = self;
5910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetBackgroundColour",_kwnames,&_argo0))
5911 return NULL;
5912 if (_argo0) {
5913 if (_argo0 == Py_None) { _arg0 = NULL; }
5914 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) {
5915 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetBackgroundColour. Expected _wxTreeItemAttr_p.");
5916 return NULL;
5917 }
5918 }
5919{
4268f798 5920 PyThreadState* __tstate = wxPyBeginAllowThreads();
c5943253 5921 _result = new wxColour (wxTreeItemAttr_GetBackgroundColour(_arg0));
00b6c4e3 5922
4268f798 5923 wxPyEndAllowThreads(__tstate);
00b6c4e3 5924 if (PyErr_Occurred()) return NULL;
c5943253
RD
5925} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
5926 _resultobj = Py_BuildValue("s",_ptemp);
00b6c4e3
RD
5927 return _resultobj;
5928}
5929
5930#define wxTreeItemAttr_GetFont(_swigobj) (_swigobj->GetFont())
5931static PyObject *_wrap_wxTreeItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5932 PyObject * _resultobj;
5933 wxFont * _result;
5934 wxTreeItemAttr * _arg0;
5935 PyObject * _argo0 = 0;
5936 char *_kwnames[] = { "self", NULL };
5937 char _ptemp[128];
5938
5939 self = self;
5940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetFont",_kwnames,&_argo0))
5941 return NULL;
5942 if (_argo0) {
5943 if (_argo0 == Py_None) { _arg0 = NULL; }
5944 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) {
5945 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetFont. Expected _wxTreeItemAttr_p.");
5946 return NULL;
5947 }
5948 }
5949{
4268f798 5950 PyThreadState* __tstate = wxPyBeginAllowThreads();
c5943253 5951 _result = new wxFont (wxTreeItemAttr_GetFont(_arg0));
00b6c4e3 5952
4268f798 5953 wxPyEndAllowThreads(__tstate);
00b6c4e3 5954 if (PyErr_Occurred()) return NULL;
c5943253
RD
5955} SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p");
5956 _resultobj = Py_BuildValue("s",_ptemp);
00b6c4e3
RD
5957 return _resultobj;
5958}
5959
d5c9047a 5960#define new_wxTreeItemId() (new wxTreeItemId())
efc5f224 5961static PyObject *_wrap_new_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 5962 PyObject * _resultobj;
d5c9047a 5963 wxTreeItemId * _result;
efc5f224 5964 char *_kwnames[] = { NULL };
d5c9047a 5965 char _ptemp[128];
8ab979d7
RD
5966
5967 self = self;
efc5f224 5968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxTreeItemId",_kwnames))
8ab979d7 5969 return NULL;
cf694132 5970{
4268f798 5971 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
5972 _result = (wxTreeItemId *)new_wxTreeItemId();
5973
4268f798 5974 wxPyEndAllowThreads(__tstate);
493f1553 5975 if (PyErr_Occurred()) return NULL;
1d99702e
RD
5976} if (_result) {
5977 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p");
5978 _resultobj = Py_BuildValue("s",_ptemp);
5979 } else {
5980 Py_INCREF(Py_None);
5981 _resultobj = Py_None;
5982 }
8ab979d7
RD
5983 return _resultobj;
5984}
5985
d5c9047a 5986#define delete_wxTreeItemId(_swigobj) (delete _swigobj)
efc5f224 5987static PyObject *_wrap_delete_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 5988 PyObject * _resultobj;
d5c9047a 5989 wxTreeItemId * _arg0;
1d99702e 5990 PyObject * _argo0 = 0;
efc5f224 5991 char *_kwnames[] = { "self", NULL };
8ab979d7
RD
5992
5993 self = self;
efc5f224 5994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTreeItemId",_kwnames,&_argo0))
8ab979d7 5995 return NULL;
1d99702e
RD
5996 if (_argo0) {
5997 if (_argo0 == Py_None) { _arg0 = NULL; }
5998 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) {
d5c9047a 5999 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTreeItemId. Expected _wxTreeItemId_p.");
8ab979d7
RD
6000 return NULL;
6001 }
6002 }
cf694132 6003{
4268f798 6004 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
6005 delete_wxTreeItemId(_arg0);
6006
4268f798 6007 wxPyEndAllowThreads(__tstate);
493f1553 6008 if (PyErr_Occurred()) return NULL;
cf694132 6009} Py_INCREF(Py_None);
d5c9047a 6010 _resultobj = Py_None;
8ab979d7
RD
6011 return _resultobj;
6012}
6013
d5c9047a 6014#define wxTreeItemId_IsOk(_swigobj) (_swigobj->IsOk())
efc5f224 6015static PyObject *_wrap_wxTreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 6016 PyObject * _resultobj;
d5c9047a
RD
6017 bool _result;
6018 wxTreeItemId * _arg0;
1d99702e 6019 PyObject * _argo0 = 0;
efc5f224 6020 char *_kwnames[] = { "self", NULL };
8ab979d7
RD
6021
6022 self = self;
efc5f224 6023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemId_IsOk",_kwnames,&_argo0))
8ab979d7 6024 return NULL;
1d99702e
RD
6025 if (_argo0) {
6026 if (_argo0 == Py_None) { _arg0 = NULL; }
6027 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) {
d5c9047a 6028 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId_IsOk. Expected _wxTreeItemId_p.");
8ab979d7
RD
6029 return NULL;
6030 }
6031 }
cf694132 6032{
4268f798 6033 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
6034 _result = (bool )wxTreeItemId_IsOk(_arg0);
6035
4268f798 6036 wxPyEndAllowThreads(__tstate);
493f1553 6037 if (PyErr_Occurred()) return NULL;
cf694132 6038} _resultobj = Py_BuildValue("i",_result);
8ab979d7
RD
6039 return _resultobj;
6040}
6041
f6bcfd97 6042static int wxTreeItemId___cmp__(wxTreeItemId *self,wxTreeItemId * other) {
c368d904 6043 if (! other) return -1;
f6bcfd97
BP
6044 return *self != *other;
6045 }
6046static PyObject *_wrap_wxTreeItemId___cmp__(PyObject *self, PyObject *args, PyObject *kwargs) {
6047 PyObject * _resultobj;
6048 int _result;
6049 wxTreeItemId * _arg0;
6050 wxTreeItemId * _arg1;
6051 PyObject * _argo0 = 0;
6052 PyObject * _argo1 = 0;
6053 char *_kwnames[] = { "self","other", NULL };
6054
6055 self = self;
6056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemId___cmp__",_kwnames,&_argo0,&_argo1))
6057 return NULL;
6058 if (_argo0) {
6059 if (_argo0 == Py_None) { _arg0 = NULL; }
6060 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) {
6061 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p.");
6062 return NULL;
6063 }
6064 }
6065 if (_argo1) {
6066 if (_argo1 == Py_None) { _arg1 = NULL; }
6067 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
6068 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p.");
6069 return NULL;
6070 }
6071 }
6072{
4268f798 6073 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
6074 _result = (int )wxTreeItemId___cmp__(_arg0,_arg1);
6075
4268f798 6076 wxPyEndAllowThreads(__tstate);
493f1553 6077 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
6078} _resultobj = Py_BuildValue("i",_result);
6079 return _resultobj;
6080}
6081
9416aa89
RD
6082static void *SwigwxPyTreeItemDataTowxObject(void *ptr) {
6083 wxPyTreeItemData *src;
6084 wxObject *dest;
6085 src = (wxPyTreeItemData *) ptr;
6086 dest = (wxObject *) src;
6087 return (void *) dest;
6088}
6089
cf694132 6090#define new_wxTreeItemData(_swigarg0) (new wxPyTreeItemData(_swigarg0))
efc5f224 6091static PyObject *_wrap_new_wxTreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 6092 PyObject * _resultobj;
cf694132 6093 wxPyTreeItemData * _result;
1d99702e 6094 PyObject * _arg0 = (PyObject *) NULL;
cf694132 6095 PyObject * _obj0 = 0;
efc5f224 6096 char *_kwnames[] = { "obj", NULL };
d5c9047a 6097 char _ptemp[128];
8ab979d7
RD
6098
6099 self = self;
efc5f224 6100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxTreeItemData",_kwnames,&_obj0))
8ab979d7 6101 return NULL;
cf694132
RD
6102 if (_obj0)
6103{
6104 _arg0 = _obj0;
6105}
6106{
4268f798 6107 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
6108 _result = (wxPyTreeItemData *)new_wxTreeItemData(_arg0);
6109
4268f798 6110 wxPyEndAllowThreads(__tstate);
493f1553 6111 if (PyErr_Occurred()) return NULL;
1d99702e
RD
6112} if (_result) {
6113 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p");
6114 _resultobj = Py_BuildValue("s",_ptemp);
6115 } else {
6116 Py_INCREF(Py_None);
6117 _resultobj = Py_None;
6118 }
8ab979d7
RD
6119 return _resultobj;
6120}
6121
cf694132 6122#define wxTreeItemData_GetData(_swigobj) (_swigobj->GetData())
efc5f224 6123static PyObject *_wrap_wxTreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132
RD
6124 PyObject * _resultobj;
6125 PyObject * _result;
6126 wxPyTreeItemData * _arg0;
1d99702e 6127 PyObject * _argo0 = 0;
efc5f224 6128 char *_kwnames[] = { "self", NULL };
cf694132
RD
6129
6130 self = self;
efc5f224 6131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetData",_kwnames,&_argo0))
cf694132 6132 return NULL;
1d99702e
RD
6133 if (_argo0) {
6134 if (_argo0 == Py_None) { _arg0 = NULL; }
6135 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) {
cf694132
RD
6136 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetData. Expected _wxPyTreeItemData_p.");
6137 return NULL;
6138 }
6139 }
6140{
4268f798 6141 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
6142 _result = (PyObject *)wxTreeItemData_GetData(_arg0);
6143
4268f798 6144 wxPyEndAllowThreads(__tstate);
493f1553 6145 if (PyErr_Occurred()) return NULL;
cf694132
RD
6146}{
6147 _resultobj = _result;
6148}
6149 return _resultobj;
6150}
6151
6152#define wxTreeItemData_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0))
efc5f224 6153static PyObject *_wrap_wxTreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 6154 PyObject * _resultobj;
cf694132
RD
6155 wxPyTreeItemData * _arg0;
6156 PyObject * _arg1;
1d99702e 6157 PyObject * _argo0 = 0;
cf694132 6158 PyObject * _obj1 = 0;
efc5f224 6159 char *_kwnames[] = { "self","obj", NULL };
8ab979d7
RD
6160
6161 self = self;
efc5f224 6162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetData",_kwnames,&_argo0,&_obj1))
8ab979d7 6163 return NULL;
1d99702e
RD
6164 if (_argo0) {
6165 if (_argo0 == Py_None) { _arg0 = NULL; }
6166 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) {
cf694132 6167 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetData. Expected _wxPyTreeItemData_p.");
8ab979d7
RD
6168 return NULL;
6169 }
6170 }
cf694132
RD
6171{
6172 _arg1 = _obj1;
6173}
6174{
4268f798 6175 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
6176 wxTreeItemData_SetData(_arg0,_arg1);
6177
4268f798 6178 wxPyEndAllowThreads(__tstate);
493f1553 6179 if (PyErr_Occurred()) return NULL;
cf694132 6180} Py_INCREF(Py_None);
d5c9047a 6181 _resultobj = Py_None;
8ab979d7
RD
6182 return _resultobj;
6183}
6184
630d84f2 6185#define wxTreeItemData_GetId(_swigobj) (_swigobj->GetId())
efc5f224 6186static PyObject *_wrap_wxTreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 6187 PyObject * _resultobj;
d5c9047a 6188 wxTreeItemId * _result;
cf694132 6189 wxPyTreeItemData * _arg0;
1d99702e 6190 PyObject * _argo0 = 0;
efc5f224 6191 char *_kwnames[] = { "self", NULL };
8ab979d7
RD
6192 char _ptemp[128];
6193
6194 self = self;
efc5f224 6195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetId",_kwnames,&_argo0))
8ab979d7 6196 return NULL;
1d99702e
RD
6197 if (_argo0) {
6198 if (_argo0 == Py_None) { _arg0 = NULL; }
6199 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) {
cf694132 6200 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetId. Expected _wxPyTreeItemData_p.");
8ab979d7
RD
6201 return NULL;
6202 }
6203 }
cf694132 6204{
4268f798 6205 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132 6206 const wxTreeItemId & _result_ref = wxTreeItemData_GetId(_arg0);
d5c9047a 6207 _result = (wxTreeItemId *) &_result_ref;
cf694132 6208
4268f798 6209 wxPyEndAllowThreads(__tstate);
493f1553 6210 if (PyErr_Occurred()) return NULL;
1d99702e
RD
6211} if (_result) {
6212 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p");
6213 _resultobj = Py_BuildValue("s",_ptemp);
6214 } else {
6215 Py_INCREF(Py_None);
6216 _resultobj = Py_None;
6217 }
8ab979d7
RD
6218 return _resultobj;
6219}
6220
630d84f2 6221#define wxTreeItemData_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
efc5f224 6222static PyObject *_wrap_wxTreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
630d84f2 6223 PyObject * _resultobj;
cf694132 6224 wxPyTreeItemData * _arg0;
630d84f2 6225 wxTreeItemId * _arg1;
1d99702e
RD
6226 PyObject * _argo0 = 0;
6227 PyObject * _argo1 = 0;
efc5f224 6228 char *_kwnames[] = { "self","id", NULL };
630d84f2
RD
6229
6230 self = self;
efc5f224 6231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetId",_kwnames,&_argo0,&_argo1))
630d84f2 6232 return NULL;
1d99702e
RD
6233 if (_argo0) {
6234 if (_argo0 == Py_None) { _arg0 = NULL; }
6235 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) {
cf694132 6236 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetId. Expected _wxPyTreeItemData_p.");
630d84f2
RD
6237 return NULL;
6238 }
6239 }
1d99702e
RD
6240 if (_argo1) {
6241 if (_argo1 == Py_None) { _arg1 = NULL; }
6242 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
630d84f2
RD
6243 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemData_SetId. Expected _wxTreeItemId_p.");
6244 return NULL;
6245 }
6246 }
cf694132 6247{
4268f798 6248 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
6249 wxTreeItemData_SetId(_arg0,*_arg1);
6250
4268f798 6251 wxPyEndAllowThreads(__tstate);
493f1553 6252 if (PyErr_Occurred()) return NULL;
cf694132 6253} Py_INCREF(Py_None);
630d84f2
RD
6254 _resultobj = Py_None;
6255 return _resultobj;
6256}
6257
8bf5d46e
RD
6258static void *SwigwxTreeEventTowxNotifyEvent(void *ptr) {
6259 wxTreeEvent *src;
6260 wxNotifyEvent *dest;
6261 src = (wxTreeEvent *) ptr;
6262 dest = (wxNotifyEvent *) src;
6263 return (void *) dest;
6264}
6265
8ab979d7
RD
6266static void *SwigwxTreeEventTowxCommandEvent(void *ptr) {
6267 wxTreeEvent *src;
6268 wxCommandEvent *dest;
6269 src = (wxTreeEvent *) ptr;
6270 dest = (wxCommandEvent *) src;
6271 return (void *) dest;
6272}
6273
6274static void *SwigwxTreeEventTowxEvent(void *ptr) {
6275 wxTreeEvent *src;
6276 wxEvent *dest;
6277 src = (wxTreeEvent *) ptr;
6278 dest = (wxEvent *) src;
6279 return (void *) dest;
6280}
6281
9416aa89
RD
6282static void *SwigwxTreeEventTowxObject(void *ptr) {
6283 wxTreeEvent *src;
6284 wxObject *dest;
6285 src = (wxTreeEvent *) ptr;
6286 dest = (wxObject *) src;
6287 return (void *) dest;
6288}
6289
00b6c4e3
RD
6290#define new_wxTreeEvent(_swigarg0,_swigarg1) (new wxTreeEvent(_swigarg0,_swigarg1))
6291static PyObject *_wrap_new_wxTreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
6292 PyObject * _resultobj;
6293 wxTreeEvent * _result;
6294 wxEventType _arg0 = (wxEventType ) wxEVT_NULL;
6295 int _arg1 = (int ) 0;
6296 char *_kwnames[] = { "commandType","id", NULL };
6297 char _ptemp[128];
6298
6299 self = self;
6300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxTreeEvent",_kwnames,&_arg0,&_arg1))
6301 return NULL;
6302{
4268f798 6303 PyThreadState* __tstate = wxPyBeginAllowThreads();
00b6c4e3
RD
6304 _result = (wxTreeEvent *)new_wxTreeEvent(_arg0,_arg1);
6305
4268f798 6306 wxPyEndAllowThreads(__tstate);
00b6c4e3
RD
6307 if (PyErr_Occurred()) return NULL;
6308} if (_result) {
6309 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeEvent_p");
6310 _resultobj = Py_BuildValue("s",_ptemp);
6311 } else {
6312 Py_INCREF(Py_None);
6313 _resultobj = Py_None;
6314 }
6315 return _resultobj;
6316}
6317
d5c9047a 6318#define wxTreeEvent_GetItem(_swigobj) (_swigobj->GetItem())
efc5f224 6319static PyObject *_wrap_wxTreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 6320 PyObject * _resultobj;
d5c9047a 6321 wxTreeItemId * _result;
8ab979d7 6322 wxTreeEvent * _arg0;
1d99702e 6323 PyObject * _argo0 = 0;
efc5f224 6324 char *_kwnames[] = { "self", NULL };
d5c9047a 6325 char _ptemp[128];
8ab979d7
RD
6326
6327 self = self;
efc5f224 6328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetItem",_kwnames,&_argo0))
8ab979d7 6329 return NULL;
1d99702e
RD
6330 if (_argo0) {
6331 if (_argo0 == Py_None) { _arg0 = NULL; }
6332 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) {
d5c9047a 6333 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetItem. Expected _wxTreeEvent_p.");
8ab979d7
RD
6334 return NULL;
6335 }
6336 }
cf694132 6337{
4268f798 6338 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
6339 _result = new wxTreeItemId (wxTreeEvent_GetItem(_arg0));
6340
4268f798 6341 wxPyEndAllowThreads(__tstate);
493f1553 6342 if (PyErr_Occurred()) return NULL;
cf694132 6343} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
d5c9047a 6344 _resultobj = Py_BuildValue("s",_ptemp);
8ab979d7
RD
6345 return _resultobj;
6346}
6347
d5c9047a 6348#define wxTreeEvent_GetOldItem(_swigobj) (_swigobj->GetOldItem())
efc5f224 6349static PyObject *_wrap_wxTreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 6350 PyObject * _resultobj;
d5c9047a 6351 wxTreeItemId * _result;
8ab979d7 6352 wxTreeEvent * _arg0;
1d99702e 6353 PyObject * _argo0 = 0;
efc5f224 6354 char *_kwnames[] = { "self", NULL };
8ab979d7
RD
6355 char _ptemp[128];
6356
6357 self = self;
efc5f224 6358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetOldItem",_kwnames,&_argo0))
8ab979d7 6359 return NULL;
1d99702e
RD
6360 if (_argo0) {
6361 if (_argo0 == Py_None) { _arg0 = NULL; }
6362 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) {
d5c9047a 6363 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetOldItem. Expected _wxTreeEvent_p.");
8ab979d7
RD
6364 return NULL;
6365 }
6366 }
cf694132 6367{
4268f798 6368 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
6369 _result = new wxTreeItemId (wxTreeEvent_GetOldItem(_arg0));
6370
4268f798 6371 wxPyEndAllowThreads(__tstate);
493f1553 6372 if (PyErr_Occurred()) return NULL;
cf694132 6373} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
8ab979d7
RD
6374 _resultobj = Py_BuildValue("s",_ptemp);
6375 return _resultobj;
6376}
6377
d5c9047a 6378#define wxTreeEvent_GetPoint(_swigobj) (_swigobj->GetPoint())
efc5f224 6379static PyObject *_wrap_wxTreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 6380 PyObject * _resultobj;
d5c9047a 6381 wxPoint * _result;
8ab979d7 6382 wxTreeEvent * _arg0;
1d99702e 6383 PyObject * _argo0 = 0;
efc5f224 6384 char *_kwnames[] = { "self", NULL };
d5c9047a 6385 char _ptemp[128];
8ab979d7
RD
6386
6387 self = self;
efc5f224 6388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetPoint",_kwnames,&_argo0))
8ab979d7 6389 return NULL;
1d99702e
RD
6390 if (_argo0) {
6391 if (_argo0 == Py_None) { _arg0 = NULL; }
6392 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) {
d5c9047a 6393 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetPoint. Expected _wxTreeEvent_p.");
8ab979d7
RD
6394 return NULL;
6395 }
6396 }
cf694132 6397{
4268f798 6398 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
6399 _result = new wxPoint (wxTreeEvent_GetPoint(_arg0));
6400
4268f798 6401 wxPyEndAllowThreads(__tstate);
493f1553 6402 if (PyErr_Occurred()) return NULL;
cf694132 6403} SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
d5c9047a 6404 _resultobj = Py_BuildValue("s",_ptemp);
8ab979d7
RD
6405 return _resultobj;
6406}
6407
ecc08ead
RD
6408#define wxTreeEvent_GetKeyEvent(_swigobj) (_swigobj->GetKeyEvent())
6409static PyObject *_wrap_wxTreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
6410 PyObject * _resultobj;
6411 wxKeyEvent * _result;
6412 wxTreeEvent * _arg0;
6413 PyObject * _argo0 = 0;
6414 char *_kwnames[] = { "self", NULL };
6415 char _ptemp[128];
6416
6417 self = self;
6418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetKeyEvent",_kwnames,&_argo0))
6419 return NULL;
6420 if (_argo0) {
6421 if (_argo0 == Py_None) { _arg0 = NULL; }
6422 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) {
6423 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetKeyEvent. Expected _wxTreeEvent_p.");
6424 return NULL;
6425 }
6426 }
6427{
4268f798 6428 PyThreadState* __tstate = wxPyBeginAllowThreads();
ecc08ead
RD
6429 const wxKeyEvent & _result_ref = wxTreeEvent_GetKeyEvent(_arg0);
6430 _result = (wxKeyEvent *) &_result_ref;
6431
4268f798 6432 wxPyEndAllowThreads(__tstate);
ecc08ead
RD
6433 if (PyErr_Occurred()) return NULL;
6434} if (_result) {
6435 SWIG_MakePtr(_ptemp, (char *) _result,"_wxKeyEvent_p");
6436 _resultobj = Py_BuildValue("s",_ptemp);
6437 } else {
6438 Py_INCREF(Py_None);
6439 _resultobj = Py_None;
6440 }
6441 return _resultobj;
6442}
6443
d5c9047a 6444#define wxTreeEvent_GetCode(_swigobj) (_swigobj->GetCode())
efc5f224 6445static PyObject *_wrap_wxTreeEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 6446 PyObject * _resultobj;
d5c9047a 6447 int _result;
8ab979d7 6448 wxTreeEvent * _arg0;
1d99702e 6449 PyObject * _argo0 = 0;
efc5f224 6450 char *_kwnames[] = { "self", NULL };
8ab979d7
RD
6451
6452 self = self;
efc5f224 6453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetCode",_kwnames,&_argo0))
8ab979d7 6454 return NULL;
1d99702e
RD
6455 if (_argo0) {
6456 if (_argo0 == Py_None) { _arg0 = NULL; }
6457 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) {
d5c9047a 6458 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetCode. Expected _wxTreeEvent_p.");
8ab979d7
RD
6459 return NULL;
6460 }
6461 }
cf694132 6462{
4268f798 6463 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
6464 _result = (int )wxTreeEvent_GetCode(_arg0);
6465
4268f798 6466 wxPyEndAllowThreads(__tstate);
493f1553 6467 if (PyErr_Occurred()) return NULL;
cf694132 6468} _resultobj = Py_BuildValue("i",_result);
d5c9047a
RD
6469 return _resultobj;
6470}
6471
8bf5d46e 6472#define wxTreeEvent_GetLabel(_swigobj) (_swigobj->GetLabel())
efc5f224 6473static PyObject *_wrap_wxTreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
d5c9047a 6474 PyObject * _resultobj;
8bf5d46e 6475 wxString * _result;
d5c9047a 6476 wxTreeEvent * _arg0;
1d99702e 6477 PyObject * _argo0 = 0;
efc5f224 6478 char *_kwnames[] = { "self", NULL };
d5c9047a
RD
6479
6480 self = self;
efc5f224 6481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetLabel",_kwnames,&_argo0))
d5c9047a 6482 return NULL;
1d99702e
RD
6483 if (_argo0) {
6484 if (_argo0 == Py_None) { _arg0 = NULL; }
6485 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) {
8bf5d46e 6486 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetLabel. Expected _wxTreeEvent_p.");
d5c9047a
RD
6487 return NULL;
6488 }
6489 }
cf694132 6490{
4268f798 6491 PyThreadState* __tstate = wxPyBeginAllowThreads();
8bf5d46e
RD
6492 const wxString & _result_ref = wxTreeEvent_GetLabel(_arg0);
6493 _result = (wxString *) &_result_ref;
cf694132 6494
4268f798 6495 wxPyEndAllowThreads(__tstate);
493f1553 6496 if (PyErr_Occurred()) return NULL;
8bf5d46e 6497}{
eec92d76 6498 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
8bf5d46e 6499}
8ab979d7
RD
6500 return _resultobj;
6501}
6502
f6bcfd97
BP
6503static void *SwigwxPyTreeCtrlTowxControl(void *ptr) {
6504 wxPyTreeCtrl *src;
8ab979d7 6505 wxControl *dest;
f6bcfd97 6506 src = (wxPyTreeCtrl *) ptr;
8ab979d7
RD
6507 dest = (wxControl *) src;
6508 return (void *) dest;
6509}
6510
f6bcfd97
BP
6511static void *SwigwxPyTreeCtrlTowxWindow(void *ptr) {
6512 wxPyTreeCtrl *src;
8ab979d7 6513 wxWindow *dest;
f6bcfd97 6514 src = (wxPyTreeCtrl *) ptr;
8ab979d7
RD
6515 dest = (wxWindow *) src;
6516 return (void *) dest;
6517}
6518
f6bcfd97
BP
6519static void *SwigwxPyTreeCtrlTowxEvtHandler(void *ptr) {
6520 wxPyTreeCtrl *src;
8ab979d7 6521 wxEvtHandler *dest;
f6bcfd97 6522 src = (wxPyTreeCtrl *) ptr;
8ab979d7
RD
6523 dest = (wxEvtHandler *) src;
6524 return (void *) dest;
6525}
6526
9416aa89
RD
6527static void *SwigwxPyTreeCtrlTowxObject(void *ptr) {
6528 wxPyTreeCtrl *src;
6529 wxObject *dest;
6530 src = (wxPyTreeCtrl *) ptr;
6531 dest = (wxObject *) src;
6532 return (void *) dest;
6533}
6534
f6bcfd97 6535#define new_wxTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
efc5f224 6536static PyObject *_wrap_new_wxTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 6537 PyObject * _resultobj;
f6bcfd97 6538 wxPyTreeCtrl * _result;
8ab979d7 6539 wxWindow * _arg0;
1d99702e 6540 wxWindowID _arg1 = (wxWindowID ) -1;
e508a2b6
RD
6541 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
6542 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
00b6c4e3 6543 long _arg4 = (long ) (wxTR_HAS_BUTTONS)|(wxTR_LINES_AT_ROOT);
e508a2b6 6544 wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator;
1d99702e
RD
6545 char * _arg6 = (char *) "wxTreeCtrl";
6546 PyObject * _argo0 = 0;
2f90df85
RD
6547 wxPoint temp;
6548 PyObject * _obj2 = 0;
6549 wxSize temp0;
6550 PyObject * _obj3 = 0;
1d99702e 6551 PyObject * _argo5 = 0;
efc5f224 6552 char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL };
8ab979d7
RD
6553 char _ptemp[128];
6554
6555 self = self;
2f90df85 6556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxTreeCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6))
8ab979d7 6557 return NULL;
1d99702e
RD
6558 if (_argo0) {
6559 if (_argo0 == Py_None) { _arg0 = NULL; }
6560 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
8ab979d7
RD
6561 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTreeCtrl. Expected _wxWindow_p.");
6562 return NULL;
6563 }
6564 }
2f90df85
RD
6565 if (_obj2)
6566{
6567 _arg2 = &temp;
6568 if (! wxPoint_helper(_obj2, &_arg2))
8ab979d7 6569 return NULL;
2f90df85
RD
6570}
6571 if (_obj3)
6572{
6573 _arg3 = &temp0;
6574 if (! wxSize_helper(_obj3, &_arg3))
8ab979d7 6575 return NULL;
2f90df85 6576}
1d99702e
RD
6577 if (_argo5) {
6578 if (_argo5 == Py_None) { _arg5 = NULL; }
6579 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) {
8ab979d7
RD
6580 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxTreeCtrl. Expected _wxValidator_p.");
6581 return NULL;
6582 }
6583 }
cf694132 6584{
4268f798 6585 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97 6586 _result = (wxPyTreeCtrl *)new_wxTreeCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6);
cf694132 6587
4268f798 6588 wxPyEndAllowThreads(__tstate);
493f1553 6589 if (PyErr_Occurred()) return NULL;
1d99702e 6590} if (_result) {
f6bcfd97 6591 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p");
1d99702e
RD
6592 _resultobj = Py_BuildValue("s",_ptemp);
6593 } else {
6594 Py_INCREF(Py_None);
6595 _resultobj = Py_None;
6596 }
8ab979d7
RD
6597 return _resultobj;
6598}
6599
09f3d4e6
RD
6600#define new_wxPreTreeCtrl() (new wxPyTreeCtrl())
6601static PyObject *_wrap_new_wxPreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
6602 PyObject * _resultobj;
6603 wxPyTreeCtrl * _result;
6604 char *_kwnames[] = { NULL };
6605 char _ptemp[128];
6606
6607 self = self;
6608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreTreeCtrl",_kwnames))
6609 return NULL;
6610{
4268f798 6611 PyThreadState* __tstate = wxPyBeginAllowThreads();
09f3d4e6
RD
6612 _result = (wxPyTreeCtrl *)new_wxPreTreeCtrl();
6613
4268f798 6614 wxPyEndAllowThreads(__tstate);
09f3d4e6
RD
6615 if (PyErr_Occurred()) return NULL;
6616} if (_result) {
6617 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p");
6618 _resultobj = Py_BuildValue("s",_ptemp);
6619 } else {
6620 Py_INCREF(Py_None);
6621 _resultobj = Py_None;
6622 }
6623 return _resultobj;
6624}
6625
6626#define wxTreeCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
6627static PyObject *_wrap_wxTreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
6628 PyObject * _resultobj;
6629 bool _result;
6630 wxPyTreeCtrl * _arg0;
6631 wxWindow * _arg1;
6632 wxWindowID _arg2 = (wxWindowID ) -1;
6633 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
6634 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
6635 long _arg5 = (long ) (wxTR_HAS_BUTTONS)|(wxTR_LINES_AT_ROOT);
6636 wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator;
6637 char * _arg7 = (char *) "wxTreeCtrl";
6638 PyObject * _argo0 = 0;
6639 PyObject * _argo1 = 0;
6640 wxPoint temp;
6641 PyObject * _obj3 = 0;
6642 wxSize temp0;
6643 PyObject * _obj4 = 0;
6644 PyObject * _argo6 = 0;
6645 char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL };
6646
6647 self = self;
6648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOs:wxTreeCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7))
6649 return NULL;
6650 if (_argo0) {
6651 if (_argo0 == Py_None) { _arg0 = NULL; }
6652 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6653 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Create. Expected _wxPyTreeCtrl_p.");
6654 return NULL;
6655 }
6656 }
6657 if (_argo1) {
6658 if (_argo1 == Py_None) { _arg1 = NULL; }
6659 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
6660 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Create. Expected _wxWindow_p.");
6661 return NULL;
6662 }
6663 }
6664 if (_obj3)
6665{
6666 _arg3 = &temp;
6667 if (! wxPoint_helper(_obj3, &_arg3))
6668 return NULL;
6669}
6670 if (_obj4)
6671{
6672 _arg4 = &temp0;
6673 if (! wxSize_helper(_obj4, &_arg4))
6674 return NULL;
6675}
6676 if (_argo6) {
6677 if (_argo6 == Py_None) { _arg6 = NULL; }
6678 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) {
6679 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_Create. Expected _wxValidator_p.");
6680 return NULL;
6681 }
6682 }
6683{
4268f798 6684 PyThreadState* __tstate = wxPyBeginAllowThreads();
09f3d4e6
RD
6685 _result = (bool )wxTreeCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7);
6686
4268f798 6687 wxPyEndAllowThreads(__tstate);
09f3d4e6
RD
6688 if (PyErr_Occurred()) return NULL;
6689} _resultobj = Py_BuildValue("i",_result);
6690 return _resultobj;
6691}
6692
0122b7e3
RD
6693#define wxTreeCtrl__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
6694static PyObject *_wrap_wxTreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
f6bcfd97
BP
6695 PyObject * _resultobj;
6696 wxPyTreeCtrl * _arg0;
6697 PyObject * _arg1;
6698 PyObject * _arg2;
6699 PyObject * _argo0 = 0;
6700 PyObject * _obj1 = 0;
6701 PyObject * _obj2 = 0;
6702 char *_kwnames[] = { "self","self","_class", NULL };
6703
6704 self = self;
0122b7e3 6705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2))
f6bcfd97
BP
6706 return NULL;
6707 if (_argo0) {
6708 if (_argo0 == Py_None) { _arg0 = NULL; }
6709 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
0122b7e3 6710 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl__setCallbackInfo. Expected _wxPyTreeCtrl_p.");
f6bcfd97
BP
6711 return NULL;
6712 }
6713 }
6714{
6715 _arg1 = _obj1;
6716}
6717{
6718 _arg2 = _obj2;
6719}
6720{
4268f798 6721 PyThreadState* __tstate = wxPyBeginAllowThreads();
0122b7e3 6722 wxTreeCtrl__setCallbackInfo(_arg0,_arg1,_arg2);
f6bcfd97 6723
4268f798 6724 wxPyEndAllowThreads(__tstate);
493f1553 6725 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
6726} Py_INCREF(Py_None);
6727 _resultobj = Py_None;
6728 return _resultobj;
6729}
6730
d5c9047a 6731#define wxTreeCtrl_GetCount(_swigobj) (_swigobj->GetCount())
efc5f224 6732static PyObject *_wrap_wxTreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 6733 PyObject * _resultobj;
c127177f 6734 size_t _result;
f6bcfd97 6735 wxPyTreeCtrl * _arg0;
1d99702e 6736 PyObject * _argo0 = 0;
efc5f224 6737 char *_kwnames[] = { "self", NULL };
8ab979d7
RD
6738
6739 self = self;
efc5f224 6740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetCount",_kwnames,&_argo0))
8ab979d7 6741 return NULL;
1d99702e
RD
6742 if (_argo0) {
6743 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
6744 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6745 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetCount. Expected _wxPyTreeCtrl_p.");
8ab979d7
RD
6746 return NULL;
6747 }
6748 }
cf694132 6749{
4268f798 6750 PyThreadState* __tstate = wxPyBeginAllowThreads();
c127177f 6751 _result = (size_t )wxTreeCtrl_GetCount(_arg0);
cf694132 6752
4268f798 6753 wxPyEndAllowThreads(__tstate);
493f1553 6754 if (PyErr_Occurred()) return NULL;
c127177f 6755} _resultobj = Py_BuildValue("i",_result);
8ab979d7
RD
6756 return _resultobj;
6757}
6758
d5c9047a 6759#define wxTreeCtrl_GetIndent(_swigobj) (_swigobj->GetIndent())
efc5f224 6760static PyObject *_wrap_wxTreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 6761 PyObject * _resultobj;
d5c9047a 6762 unsigned int _result;
f6bcfd97 6763 wxPyTreeCtrl * _arg0;
1d99702e 6764 PyObject * _argo0 = 0;
efc5f224 6765 char *_kwnames[] = { "self", NULL };
8ab979d7
RD
6766
6767 self = self;
efc5f224 6768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetIndent",_kwnames,&_argo0))
8ab979d7 6769 return NULL;
1d99702e
RD
6770 if (_argo0) {
6771 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
6772 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6773 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetIndent. Expected _wxPyTreeCtrl_p.");
8ab979d7
RD
6774 return NULL;
6775 }
6776 }
cf694132 6777{
4268f798 6778 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
6779 _result = (unsigned int )wxTreeCtrl_GetIndent(_arg0);
6780
4268f798 6781 wxPyEndAllowThreads(__tstate);
493f1553 6782 if (PyErr_Occurred()) return NULL;
cf694132 6783} _resultobj = Py_BuildValue("i",_result);
8ab979d7
RD
6784 return _resultobj;
6785}
6786
d5c9047a 6787#define wxTreeCtrl_SetIndent(_swigobj,_swigarg0) (_swigobj->SetIndent(_swigarg0))
efc5f224 6788static PyObject *_wrap_wxTreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 6789 PyObject * _resultobj;
f6bcfd97 6790 wxPyTreeCtrl * _arg0;
d5c9047a 6791 unsigned int _arg1;
1d99702e 6792 PyObject * _argo0 = 0;
efc5f224 6793 char *_kwnames[] = { "self","indent", NULL };
8ab979d7
RD
6794
6795 self = self;
efc5f224 6796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetIndent",_kwnames,&_argo0,&_arg1))
8ab979d7 6797 return NULL;
1d99702e
RD
6798 if (_argo0) {
6799 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
6800 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6801 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetIndent. Expected _wxPyTreeCtrl_p.");
8ab979d7
RD
6802 return NULL;
6803 }
6804 }
cf694132 6805{
4268f798 6806 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
6807 wxTreeCtrl_SetIndent(_arg0,_arg1);
6808
4268f798 6809 wxPyEndAllowThreads(__tstate);
493f1553 6810 if (PyErr_Occurred()) return NULL;
cf694132 6811} Py_INCREF(Py_None);
d5c9047a 6812 _resultobj = Py_None;
8ab979d7
RD
6813 return _resultobj;
6814}
6815
d5c9047a 6816#define wxTreeCtrl_GetImageList(_swigobj) (_swigobj->GetImageList())
efc5f224 6817static PyObject *_wrap_wxTreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 6818 PyObject * _resultobj;
d5c9047a 6819 wxImageList * _result;
f6bcfd97 6820 wxPyTreeCtrl * _arg0;
1d99702e 6821 PyObject * _argo0 = 0;
efc5f224 6822 char *_kwnames[] = { "self", NULL };
8ab979d7
RD
6823
6824 self = self;
efc5f224 6825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetImageList",_kwnames,&_argo0))
8ab979d7 6826 return NULL;
1d99702e
RD
6827 if (_argo0) {
6828 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
6829 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6830 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetImageList. Expected _wxPyTreeCtrl_p.");
8ab979d7
RD
6831 return NULL;
6832 }
6833 }
cf694132 6834{
4268f798 6835 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
6836 _result = (wxImageList *)wxTreeCtrl_GetImageList(_arg0);
6837
4268f798 6838 wxPyEndAllowThreads(__tstate);
493f1553 6839 if (PyErr_Occurred()) return NULL;
9416aa89 6840}{ _resultobj = wxPyMake_wxObject(_result); }
8ab979d7
RD
6841 return _resultobj;
6842}
6843
d5c9047a 6844#define wxTreeCtrl_GetStateImageList(_swigobj) (_swigobj->GetStateImageList())
efc5f224 6845static PyObject *_wrap_wxTreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 6846 PyObject * _resultobj;
d5c9047a 6847 wxImageList * _result;
f6bcfd97 6848 wxPyTreeCtrl * _arg0;
1d99702e 6849 PyObject * _argo0 = 0;
efc5f224 6850 char *_kwnames[] = { "self", NULL };
8ab979d7
RD
6851
6852 self = self;
efc5f224 6853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetStateImageList",_kwnames,&_argo0))
8ab979d7 6854 return NULL;
1d99702e
RD
6855 if (_argo0) {
6856 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
6857 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6858 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetStateImageList. Expected _wxPyTreeCtrl_p.");
8ab979d7
RD
6859 return NULL;
6860 }
6861 }
cf694132 6862{
4268f798 6863 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
6864 _result = (wxImageList *)wxTreeCtrl_GetStateImageList(_arg0);
6865
4268f798 6866 wxPyEndAllowThreads(__tstate);
493f1553 6867 if (PyErr_Occurred()) return NULL;
9416aa89 6868}{ _resultobj = wxPyMake_wxObject(_result); }
8ab979d7
RD
6869 return _resultobj;
6870}
6871
d5c9047a 6872#define wxTreeCtrl_SetImageList(_swigobj,_swigarg0) (_swigobj->SetImageList(_swigarg0))
efc5f224 6873static PyObject *_wrap_wxTreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 6874 PyObject * _resultobj;
f6bcfd97 6875 wxPyTreeCtrl * _arg0;
d5c9047a 6876 wxImageList * _arg1;
1d99702e
RD
6877 PyObject * _argo0 = 0;
6878 PyObject * _argo1 = 0;
efc5f224 6879 char *_kwnames[] = { "self","imageList", NULL };
8ab979d7
RD
6880
6881 self = self;
efc5f224 6882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetImageList",_kwnames,&_argo0,&_argo1))
8ab979d7 6883 return NULL;
1d99702e
RD
6884 if (_argo0) {
6885 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
6886 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6887 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetImageList. Expected _wxPyTreeCtrl_p.");
8ab979d7
RD
6888 return NULL;
6889 }
6890 }
1d99702e
RD
6891 if (_argo1) {
6892 if (_argo1 == Py_None) { _arg1 = NULL; }
6893 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
d5c9047a
RD
6894 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetImageList. Expected _wxImageList_p.");
6895 return NULL;
6896 }
6897 }
cf694132 6898{
4268f798 6899 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
6900 wxTreeCtrl_SetImageList(_arg0,_arg1);
6901
4268f798 6902 wxPyEndAllowThreads(__tstate);
493f1553 6903 if (PyErr_Occurred()) return NULL;
cf694132 6904} Py_INCREF(Py_None);
d5c9047a 6905 _resultobj = Py_None;
8ab979d7
RD
6906 return _resultobj;
6907}
6908
d5c9047a 6909#define wxTreeCtrl_SetStateImageList(_swigobj,_swigarg0) (_swigobj->SetStateImageList(_swigarg0))
efc5f224 6910static PyObject *_wrap_wxTreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 6911 PyObject * _resultobj;
f6bcfd97 6912 wxPyTreeCtrl * _arg0;
d5c9047a 6913 wxImageList * _arg1;
1d99702e
RD
6914 PyObject * _argo0 = 0;
6915 PyObject * _argo1 = 0;
efc5f224 6916 char *_kwnames[] = { "self","imageList", NULL };
8ab979d7
RD
6917
6918 self = self;
efc5f224 6919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetStateImageList",_kwnames,&_argo0,&_argo1))
8ab979d7 6920 return NULL;
1d99702e
RD
6921 if (_argo0) {
6922 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
6923 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6924 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetStateImageList. Expected _wxPyTreeCtrl_p.");
8ab979d7
RD
6925 return NULL;
6926 }
6927 }
1d99702e
RD
6928 if (_argo1) {
6929 if (_argo1 == Py_None) { _arg1 = NULL; }
6930 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
d5c9047a
RD
6931 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetStateImageList. Expected _wxImageList_p.");
6932 return NULL;
6933 }
6934 }
cf694132 6935{
4268f798 6936 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
6937 wxTreeCtrl_SetStateImageList(_arg0,_arg1);
6938
4268f798 6939 wxPyEndAllowThreads(__tstate);
493f1553 6940 if (PyErr_Occurred()) return NULL;
cf694132 6941} Py_INCREF(Py_None);
d5c9047a 6942 _resultobj = Py_None;
8ab979d7
RD
6943 return _resultobj;
6944}
6945
00b6c4e3
RD
6946#define wxTreeCtrl_AssignImageList(_swigobj,_swigarg0) (_swigobj->AssignImageList(_swigarg0))
6947static PyObject *_wrap_wxTreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
6948 PyObject * _resultobj;
6949 wxPyTreeCtrl * _arg0;
6950 wxImageList * _arg1;
6951 PyObject * _argo0 = 0;
6952 PyObject * _argo1 = 0;
6953 char *_kwnames[] = { "self","imageList", NULL };
6954
6955 self = self;
6956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignImageList",_kwnames,&_argo0,&_argo1))
6957 return NULL;
6958 if (_argo0) {
6959 if (_argo0 == Py_None) { _arg0 = NULL; }
6960 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6961 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignImageList. Expected _wxPyTreeCtrl_p.");
6962 return NULL;
6963 }
6964 }
6965 if (_argo1) {
6966 if (_argo1 == Py_None) { _arg1 = NULL; }
6967 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
6968 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignImageList. Expected _wxImageList_p.");
6969 return NULL;
6970 }
6971 }
6972{
4268f798 6973 PyThreadState* __tstate = wxPyBeginAllowThreads();
00b6c4e3
RD
6974 wxTreeCtrl_AssignImageList(_arg0,_arg1);
6975
4268f798 6976 wxPyEndAllowThreads(__tstate);
00b6c4e3
RD
6977 if (PyErr_Occurred()) return NULL;
6978} Py_INCREF(Py_None);
6979 _resultobj = Py_None;
6980 return _resultobj;
6981}
6982
6983#define wxTreeCtrl_AssignStateImageList(_swigobj,_swigarg0) (_swigobj->AssignStateImageList(_swigarg0))
6984static PyObject *_wrap_wxTreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
6985 PyObject * _resultobj;
6986 wxPyTreeCtrl * _arg0;
6987 wxImageList * _arg1;
6988 PyObject * _argo0 = 0;
6989 PyObject * _argo1 = 0;
6990 char *_kwnames[] = { "self","imageList", NULL };
6991
6992 self = self;
6993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignStateImageList",_kwnames,&_argo0,&_argo1))
6994 return NULL;
6995 if (_argo0) {
6996 if (_argo0 == Py_None) { _arg0 = NULL; }
6997 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
6998 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignStateImageList. Expected _wxPyTreeCtrl_p.");
6999 return NULL;
7000 }
7001 }
7002 if (_argo1) {
7003 if (_argo1 == Py_None) { _arg1 = NULL; }
7004 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
7005 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignStateImageList. Expected _wxImageList_p.");
7006 return NULL;
7007 }
7008 }
7009{
4268f798 7010 PyThreadState* __tstate = wxPyBeginAllowThreads();
00b6c4e3
RD
7011 wxTreeCtrl_AssignStateImageList(_arg0,_arg1);
7012
4268f798 7013 wxPyEndAllowThreads(__tstate);
00b6c4e3
RD
7014 if (PyErr_Occurred()) return NULL;
7015} Py_INCREF(Py_None);
7016 _resultobj = Py_None;
7017 return _resultobj;
7018}
7019
b1462dfa
RD
7020#define wxTreeCtrl_GetSpacing(_swigobj) (_swigobj->GetSpacing())
7021static PyObject *_wrap_wxTreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
7022 PyObject * _resultobj;
7023 unsigned int _result;
f6bcfd97 7024 wxPyTreeCtrl * _arg0;
b1462dfa
RD
7025 PyObject * _argo0 = 0;
7026 char *_kwnames[] = { "self", NULL };
7027
7028 self = self;
7029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSpacing",_kwnames,&_argo0))
7030 return NULL;
7031 if (_argo0) {
7032 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
7033 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7034 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSpacing. Expected _wxPyTreeCtrl_p.");
b1462dfa
RD
7035 return NULL;
7036 }
7037 }
7038{
4268f798 7039 PyThreadState* __tstate = wxPyBeginAllowThreads();
b1462dfa
RD
7040 _result = (unsigned int )wxTreeCtrl_GetSpacing(_arg0);
7041
4268f798 7042 wxPyEndAllowThreads(__tstate);
493f1553 7043 if (PyErr_Occurred()) return NULL;
b1462dfa
RD
7044} _resultobj = Py_BuildValue("i",_result);
7045 return _resultobj;
7046}
7047
7048#define wxTreeCtrl_SetSpacing(_swigobj,_swigarg0) (_swigobj->SetSpacing(_swigarg0))
7049static PyObject *_wrap_wxTreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) {
7050 PyObject * _resultobj;
f6bcfd97 7051 wxPyTreeCtrl * _arg0;
b1462dfa
RD
7052 unsigned int _arg1;
7053 PyObject * _argo0 = 0;
7054 char *_kwnames[] = { "self","spacing", NULL };
7055
7056 self = self;
7057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetSpacing",_kwnames,&_argo0,&_arg1))
7058 return NULL;
7059 if (_argo0) {
7060 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
7061 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7062 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetSpacing. Expected _wxPyTreeCtrl_p.");
b1462dfa
RD
7063 return NULL;
7064 }
7065 }
7066{
4268f798 7067 PyThreadState* __tstate = wxPyBeginAllowThreads();
b1462dfa
RD
7068 wxTreeCtrl_SetSpacing(_arg0,_arg1);
7069
4268f798 7070 wxPyEndAllowThreads(__tstate);
493f1553 7071 if (PyErr_Occurred()) return NULL;
b1462dfa
RD
7072} Py_INCREF(Py_None);
7073 _resultobj = Py_None;
7074 return _resultobj;
7075}
7076
d5c9047a 7077#define wxTreeCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0))
efc5f224 7078static PyObject *_wrap_wxTreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 7079 PyObject * _resultobj;
d5c9047a 7080 wxString * _result;
f6bcfd97 7081 wxPyTreeCtrl * _arg0;
d5c9047a 7082 wxTreeItemId * _arg1;
1d99702e
RD
7083 PyObject * _argo0 = 0;
7084 PyObject * _argo1 = 0;
efc5f224 7085 char *_kwnames[] = { "self","item", NULL };
8ab979d7
RD
7086
7087 self = self;
efc5f224 7088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemText",_kwnames,&_argo0,&_argo1))
8ab979d7 7089 return NULL;
1d99702e
RD
7090 if (_argo0) {
7091 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
7092 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7093 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemText. Expected _wxPyTreeCtrl_p.");
8ab979d7
RD
7094 return NULL;
7095 }
7096 }
1d99702e
RD
7097 if (_argo1) {
7098 if (_argo1 == Py_None) { _arg1 = NULL; }
7099 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
d5c9047a
RD
7100 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemText. Expected _wxTreeItemId_p.");
7101 return NULL;
7102 }
7103 }
d5c9047a 7104{
4268f798 7105 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
7106 _result = new wxString (wxTreeCtrl_GetItemText(_arg0,*_arg1));
7107
4268f798 7108 wxPyEndAllowThreads(__tstate);
493f1553 7109 if (PyErr_Occurred()) return NULL;
cf694132 7110}{
eec92d76 7111 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
d5c9047a
RD
7112}
7113{
7114 delete _result;
7115}
8ab979d7
RD
7116 return _resultobj;
7117}
7118
694759cf 7119#define wxTreeCtrl_GetItemImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemImage(_swigarg0,_swigarg1))
efc5f224 7120static PyObject *_wrap_wxTreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 7121 PyObject * _resultobj;
d5c9047a 7122 int _result;
f6bcfd97 7123 wxPyTreeCtrl * _arg0;
d5c9047a 7124 wxTreeItemId * _arg1;
694759cf 7125 wxTreeItemIcon _arg2 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal);
1d99702e
RD
7126 PyObject * _argo0 = 0;
7127 PyObject * _argo1 = 0;
694759cf 7128 char *_kwnames[] = { "self","item","which", NULL };
8ab979d7
RD
7129
7130 self = self;
694759cf 7131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetItemImage",_kwnames,&_argo0,&_argo1,&_arg2))
8ab979d7 7132 return NULL;
1d99702e
RD
7133 if (_argo0) {
7134 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
7135 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7136 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemImage. Expected _wxPyTreeCtrl_p.");
8ab979d7
RD
7137 return NULL;
7138 }
7139 }
1d99702e
RD
7140 if (_argo1) {
7141 if (_argo1 == Py_None) { _arg1 = NULL; }
7142 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
d5c9047a
RD
7143 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemImage. Expected _wxTreeItemId_p.");
7144 return NULL;
7145 }
7146 }
cf694132 7147{
4268f798 7148 PyThreadState* __tstate = wxPyBeginAllowThreads();
694759cf 7149 _result = (int )wxTreeCtrl_GetItemImage(_arg0,*_arg1,_arg2);
cf694132 7150
4268f798 7151 wxPyEndAllowThreads(__tstate);
493f1553 7152 if (PyErr_Occurred()) return NULL;
cf694132 7153} _resultobj = Py_BuildValue("i",_result);
8ab979d7
RD
7154 return _resultobj;
7155}
7156
d5c9047a 7157#define wxTreeCtrl_GetItemSelectedImage(_swigobj,_swigarg0) (_swigobj->GetItemSelectedImage(_swigarg0))
efc5f224 7158static PyObject *_wrap_wxTreeCtrl_GetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 7159 PyObject * _resultobj;
d5c9047a 7160 int _result;
f6bcfd97 7161 wxPyTreeCtrl * _arg0;
d5c9047a 7162 wxTreeItemId * _arg1;
1d99702e
RD
7163 PyObject * _argo0 = 0;
7164 PyObject * _argo1 = 0;
efc5f224 7165 char *_kwnames[] = { "self","item", NULL };
8ab979d7
RD
7166
7167 self = self;
efc5f224 7168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemSelectedImage",_kwnames,&_argo0,&_argo1))
8ab979d7 7169 return NULL;
1d99702e
RD
7170 if (_argo0) {
7171 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
7172 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7173 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemSelectedImage. Expected _wxPyTreeCtrl_p.");
8ab979d7
RD
7174 return NULL;
7175 }
7176 }
1d99702e
RD
7177 if (_argo1) {
7178 if (_argo1 == Py_None) { _arg1 = NULL; }
7179 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
d5c9047a
RD
7180 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemSelectedImage. Expected _wxTreeItemId_p.");
7181 return NULL;
7182 }
7183 }
cf694132 7184{
4268f798 7185 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132 7186 _result = (int )wxTreeCtrl_GetItemSelectedImage(_arg0,*_arg1);
8ab979d7 7187
4268f798 7188 wxPyEndAllowThreads(__tstate);
493f1553 7189 if (PyErr_Occurred()) return NULL;
cf694132 7190} _resultobj = Py_BuildValue("i",_result);
8ab979d7
RD
7191 return _resultobj;
7192}
7193
d5c9047a 7194#define wxTreeCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1))
efc5f224 7195static PyObject *_wrap_wxTreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 7196 PyObject * _resultobj;
f6bcfd97 7197 wxPyTreeCtrl * _arg0;
d5c9047a
RD
7198 wxTreeItemId * _arg1;
7199 wxString * _arg2;
1d99702e
RD
7200 PyObject * _argo0 = 0;
7201 PyObject * _argo1 = 0;
d5c9047a 7202 PyObject * _obj2 = 0;
efc5f224 7203 char *_kwnames[] = { "self","item","text", NULL };
8ab979d7
RD
7204
7205 self = self;
efc5f224 7206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemText",_kwnames,&_argo0,&_argo1,&_obj2))
8ab979d7 7207 return NULL;
1d99702e
RD
7208 if (_argo0) {
7209 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
7210 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7211 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemText. Expected _wxPyTreeCtrl_p.");
8ab979d7
RD
7212 return NULL;
7213 }
7214 }
1d99702e
RD
7215 if (_argo1) {
7216 if (_argo1 == Py_None) { _arg1 = NULL; }
7217 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
d5c9047a
RD
7218 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemText. Expected _wxTreeItemId_p.");
7219 return NULL;
7220 }
7221 }
7222{
185d7c3e
RD
7223#if PYTHON_API_VERSION >= 1009
7224 char* tmpPtr; int tmpSize;
7225 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
794c5cb1 7226 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
185d7c3e
RD
7227 return NULL;
7228 }
7229 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
7230 return NULL;
7231 _arg2 = new wxString(tmpPtr, tmpSize);
7232#else
d5c9047a
RD
7233 if (!PyString_Check(_obj2)) {
7234 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7235 return NULL;
7236 }
185d7c3e
RD
7237 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
7238#endif
d5c9047a 7239}
cf694132 7240{
4268f798 7241 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
7242 wxTreeCtrl_SetItemText(_arg0,*_arg1,*_arg2);
7243
4268f798 7244 wxPyEndAllowThreads(__tstate);
493f1553 7245 if (PyErr_Occurred()) return NULL;
cf694132 7246} Py_INCREF(Py_None);
d5c9047a
RD
7247 _resultobj = Py_None;
7248{
7249 if (_obj2)
7250 delete _arg2;
7251}
8ab979d7
RD
7252 return _resultobj;
7253}
7254
694759cf 7255#define wxTreeCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2))
efc5f224 7256static PyObject *_wrap_wxTreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 7257 PyObject * _resultobj;
f6bcfd97 7258 wxPyTreeCtrl * _arg0;
d5c9047a
RD
7259 wxTreeItemId * _arg1;
7260 int _arg2;
694759cf 7261 wxTreeItemIcon _arg3 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal);
1d99702e
RD
7262 PyObject * _argo0 = 0;
7263 PyObject * _argo1 = 0;
694759cf 7264 char *_kwnames[] = { "self","item","image","which", NULL };
8ab979d7
RD
7265
7266 self = self;
694759cf 7267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|i:wxTreeCtrl_SetItemImage",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3))
8ab979d7 7268 return NULL;
1d99702e
RD
7269 if (_argo0) {
7270 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
7271 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7272 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemImage. Expected _wxPyTreeCtrl_p.");
8ab979d7
RD
7273 return NULL;
7274 }
7275 }
1d99702e
RD
7276 if (_argo1) {
7277 if (_argo1 == Py_None) { _arg1 = NULL; }
7278 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
d5c9047a
RD
7279 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemImage. Expected _wxTreeItemId_p.");
7280 return NULL;
7281 }
7282 }
cf694132 7283{
4268f798 7284 PyThreadState* __tstate = wxPyBeginAllowThreads();
694759cf 7285 wxTreeCtrl_SetItemImage(_arg0,*_arg1,_arg2,_arg3);
cf694132 7286
4268f798 7287 wxPyEndAllowThreads(__tstate);
493f1553 7288 if (PyErr_Occurred()) return NULL;
cf694132 7289} Py_INCREF(Py_None);
d5c9047a 7290 _resultobj = Py_None;
8ab979d7
RD
7291 return _resultobj;
7292}
7293
d5c9047a 7294#define wxTreeCtrl_SetItemSelectedImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemSelectedImage(_swigarg0,_swigarg1))
efc5f224 7295static PyObject *_wrap_wxTreeCtrl_SetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 7296 PyObject * _resultobj;
f6bcfd97 7297 wxPyTreeCtrl * _arg0;
d5c9047a
RD
7298 wxTreeItemId * _arg1;
7299 int _arg2;
1d99702e
RD
7300 PyObject * _argo0 = 0;
7301 PyObject * _argo1 = 0;
efc5f224 7302 char *_kwnames[] = { "self","item","image", NULL };
8ab979d7
RD
7303
7304 self = self;
efc5f224 7305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxTreeCtrl_SetItemSelectedImage",_kwnames,&_argo0,&_argo1,&_arg2))
8ab979d7 7306 return NULL;
1d99702e
RD
7307 if (_argo0) {
7308 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
7309 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7310 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemSelectedImage. Expected _wxPyTreeCtrl_p.");
8ab979d7
RD
7311 return NULL;
7312 }
7313 }
1d99702e
RD
7314 if (_argo1) {
7315 if (_argo1 == Py_None) { _arg1 = NULL; }
7316 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
d5c9047a
RD
7317 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemSelectedImage. Expected _wxTreeItemId_p.");
7318 return NULL;
7319 }
7320 }
cf694132 7321{
4268f798 7322 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
7323 wxTreeCtrl_SetItemSelectedImage(_arg0,*_arg1,_arg2);
7324
4268f798 7325 wxPyEndAllowThreads(__tstate);
493f1553 7326 if (PyErr_Occurred()) return NULL;
cf694132
RD
7327} Py_INCREF(Py_None);
7328 _resultobj = Py_None;
7329 return _resultobj;
7330}
7331
7332#define wxTreeCtrl_SetItemHasChildren(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemHasChildren(_swigarg0,_swigarg1))
efc5f224 7333static PyObject *_wrap_wxTreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132 7334 PyObject * _resultobj;
f6bcfd97 7335 wxPyTreeCtrl * _arg0;
cf694132 7336 wxTreeItemId * _arg1;
1d99702e
RD
7337 bool _arg2 = (bool ) TRUE;
7338 PyObject * _argo0 = 0;
7339 PyObject * _argo1 = 0;
7340 int tempbool2 = (int) TRUE;
efc5f224 7341 char *_kwnames[] = { "self","item","hasChildren", NULL };
cf694132
RD
7342
7343 self = self;
efc5f224 7344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemHasChildren",_kwnames,&_argo0,&_argo1,&tempbool2))
cf694132 7345 return NULL;
1d99702e
RD
7346 if (_argo0) {
7347 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
7348 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7349 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemHasChildren. Expected _wxPyTreeCtrl_p.");
cf694132
RD
7350 return NULL;
7351 }
7352 }
1d99702e
RD
7353 if (_argo1) {
7354 if (_argo1 == Py_None) { _arg1 = NULL; }
7355 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
cf694132
RD
7356 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemHasChildren. Expected _wxTreeItemId_p.");
7357 return NULL;
7358 }
7359 }
7360 _arg2 = (bool ) tempbool2;
7361{
4268f798 7362 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
7363 wxTreeCtrl_SetItemHasChildren(_arg0,*_arg1,_arg2);
7364
4268f798 7365 wxPyEndAllowThreads(__tstate);
493f1553 7366 if (PyErr_Occurred()) return NULL;
cf694132 7367} Py_INCREF(Py_None);
d5c9047a 7368 _resultobj = Py_None;
8ab979d7
RD
7369 return _resultobj;
7370}
7371
f6bcfd97 7372static wxPyTreeItemData * wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item) {
cf694132
RD
7373 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
7374 if (data == NULL) {
7375 data = new wxPyTreeItemData();
f6bcfd97 7376 data->SetId(item); // set the id
cf694132
RD
7377 self->SetItemData(item, data);
7378 }
7379 return data;
7380 }
efc5f224 7381static PyObject *_wrap_wxTreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132
RD
7382 PyObject * _resultobj;
7383 wxPyTreeItemData * _result;
f6bcfd97 7384 wxPyTreeCtrl * _arg0;
cf694132 7385 wxTreeItemId * _arg1;
1d99702e
RD
7386 PyObject * _argo0 = 0;
7387 PyObject * _argo1 = 0;
efc5f224 7388 char *_kwnames[] = { "self","item", NULL };
cf694132
RD
7389 char _ptemp[128];
7390
7391 self = self;
efc5f224 7392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemData",_kwnames,&_argo0,&_argo1))
cf694132 7393 return NULL;
1d99702e
RD
7394 if (_argo0) {
7395 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
7396 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7397 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemData. Expected _wxPyTreeCtrl_p.");
cf694132
RD
7398 return NULL;
7399 }
7400 }
1d99702e
RD
7401 if (_argo1) {
7402 if (_argo1 == Py_None) { _arg1 = NULL; }
7403 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
cf694132
RD
7404 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemData. Expected _wxTreeItemId_p.");
7405 return NULL;
7406 }
7407 }
7408{
4268f798 7409 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97 7410 _result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(_arg0,*_arg1);
cf694132 7411
4268f798 7412 wxPyEndAllowThreads(__tstate);
493f1553 7413 if (PyErr_Occurred()) return NULL;
1d99702e
RD
7414} if (_result) {
7415 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p");
7416 _resultobj = Py_BuildValue("s",_ptemp);
7417 } else {
7418 Py_INCREF(Py_None);
7419 _resultobj = Py_None;
7420 }
cf694132
RD
7421 return _resultobj;
7422}
7423
f6bcfd97
BP
7424static void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item,wxPyTreeItemData * data) {
7425 data->SetId(item); // set the id
7426 self->SetItemData(item, data);
c368d904 7427 }
efc5f224 7428static PyObject *_wrap_wxTreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 7429 PyObject * _resultobj;
f6bcfd97 7430 wxPyTreeCtrl * _arg0;
d5c9047a 7431 wxTreeItemId * _arg1;
cf694132 7432 wxPyTreeItemData * _arg2;
1d99702e
RD
7433 PyObject * _argo0 = 0;
7434 PyObject * _argo1 = 0;
7435 PyObject * _argo2 = 0;
efc5f224 7436 char *_kwnames[] = { "self","item","data", NULL };
8ab979d7
RD
7437
7438 self = self;
efc5f224 7439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemData",_kwnames,&_argo0,&_argo1,&_argo2))
8ab979d7 7440 return NULL;
1d99702e
RD
7441 if (_argo0) {
7442 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
7443 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7444 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemData. Expected _wxPyTreeCtrl_p.");
8ab979d7
RD
7445 return NULL;
7446 }
7447 }
1d99702e
RD
7448 if (_argo1) {
7449 if (_argo1 == Py_None) { _arg1 = NULL; }
7450 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
d5c9047a
RD
7451 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemData. Expected _wxTreeItemId_p.");
7452 return NULL;
7453 }
7454 }
1d99702e
RD
7455 if (_argo2) {
7456 if (_argo2 == Py_None) { _arg2 = NULL; }
7457 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyTreeItemData_p")) {
cf694132 7458 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemData. Expected _wxPyTreeItemData_p.");
d5c9047a
RD
7459 return NULL;
7460 }
7461 }
cf694132 7462{
4268f798 7463 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97 7464 wxPyTreeCtrl_SetItemData(_arg0,*_arg1,_arg2);
cf694132 7465
4268f798 7466 wxPyEndAllowThreads(__tstate);
493f1553 7467 if (PyErr_Occurred()) return NULL;
cf694132 7468} Py_INCREF(Py_None);
d5c9047a 7469 _resultobj = Py_None;
8ab979d7
RD
7470 return _resultobj;
7471}
7472
f6bcfd97 7473static PyObject * wxPyTreeCtrl_GetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item) {
cf694132
RD
7474 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
7475 if (data == NULL) {
7476 data = new wxPyTreeItemData();
f6bcfd97 7477 data->SetId(item); // set the id
cf694132
RD
7478 self->SetItemData(item, data);
7479 }
7480 return data->GetData();
c368d904 7481 }
efc5f224 7482static PyObject *_wrap_wxTreeCtrl_GetPyData(PyObject *self, PyObject *args, PyObject *kwargs) {
08127323 7483 PyObject * _resultobj;
cf694132 7484 PyObject * _result;
f6bcfd97 7485 wxPyTreeCtrl * _arg0;
08127323 7486 wxTreeItemId * _arg1;
1d99702e
RD
7487 PyObject * _argo0 = 0;
7488 PyObject * _argo1 = 0;
efc5f224 7489 char *_kwnames[] = { "self","item", NULL };
08127323
RD
7490
7491 self = self;
efc5f224 7492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPyData",_kwnames,&_argo0,&_argo1))
08127323 7493 return NULL;
1d99702e
RD
7494 if (_argo0) {
7495 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
7496 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7497 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPyData. Expected _wxPyTreeCtrl_p.");
08127323
RD
7498 return NULL;
7499 }
7500 }
1d99702e
RD
7501 if (_argo1) {
7502 if (_argo1 == Py_None) { _arg1 = NULL; }
7503 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
cf694132 7504 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPyData. Expected _wxTreeItemId_p.");
08127323
RD
7505 return NULL;
7506 }
7507 }
cf694132 7508{
4268f798 7509 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97 7510 _result = (PyObject *)wxPyTreeCtrl_GetPyData(_arg0,*_arg1);
cf694132 7511
4268f798 7512 wxPyEndAllowThreads(__tstate);
493f1553 7513 if (PyErr_Occurred()) return NULL;
cf694132
RD
7514}{
7515 _resultobj = _result;
7516}
7517 return _resultobj;
7518}
7519
f6bcfd97 7520static void wxPyTreeCtrl_SetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item,PyObject * obj) {
cf694132
RD
7521 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
7522 if (data == NULL) {
7523 data = new wxPyTreeItemData(obj);
f6bcfd97 7524 data->SetId(item); // set the id
cf694132
RD
7525 self->SetItemData(item, data);
7526 } else
7527 data->SetData(obj);
c368d904 7528 }
efc5f224 7529static PyObject *_wrap_wxTreeCtrl_SetPyData(PyObject *self, PyObject *args, PyObject *kwargs) {
cf694132 7530 PyObject * _resultobj;
f6bcfd97 7531 wxPyTreeCtrl * _arg0;
cf694132
RD
7532 wxTreeItemId * _arg1;
7533 PyObject * _arg2;
1d99702e
RD
7534 PyObject * _argo0 = 0;
7535 PyObject * _argo1 = 0;
cf694132 7536 PyObject * _obj2 = 0;
efc5f224 7537 char *_kwnames[] = { "self","item","obj", NULL };
cf694132
RD
7538
7539 self = self;
efc5f224 7540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetPyData",_kwnames,&_argo0,&_argo1,&_obj2))
cf694132 7541 return NULL;
1d99702e
RD
7542 if (_argo0) {
7543 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
7544 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7545 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetPyData. Expected _wxPyTreeCtrl_p.");
cf694132
RD
7546 return NULL;
7547 }
7548 }
1d99702e
RD
7549 if (_argo1) {
7550 if (_argo1 == Py_None) { _arg1 = NULL; }
7551 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
cf694132
RD
7552 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetPyData. Expected _wxTreeItemId_p.");
7553 return NULL;
7554 }
7555 }
7556{
7557 _arg2 = _obj2;
7558}
7559{
4268f798 7560 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97 7561 wxPyTreeCtrl_SetPyData(_arg0,*_arg1,_arg2);
cf694132 7562
4268f798 7563 wxPyEndAllowThreads(__tstate);
493f1553 7564 if (PyErr_Occurred()) return NULL;
cf694132 7565} Py_INCREF(Py_None);
08127323
RD
7566 _resultobj = Py_None;
7567 return _resultobj;
7568}
7569
d5c9047a 7570#define wxTreeCtrl_IsVisible(_swigobj,_swigarg0) (_swigobj->IsVisible(_swigarg0))
efc5f224 7571static PyObject *_wrap_wxTreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 7572 PyObject * _resultobj;
d5c9047a 7573 bool _result;
f6bcfd97 7574 wxPyTreeCtrl * _arg0;
d5c9047a 7575 wxTreeItemId * _arg1;
1d99702e
RD
7576 PyObject * _argo0 = 0;
7577 PyObject * _argo1 = 0;
efc5f224 7578 char *_kwnames[] = { "self","item", NULL };
8ab979d7
RD
7579
7580 self = self;
efc5f224 7581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsVisible",_kwnames,&_argo0,&_argo1))
8ab979d7 7582 return NULL;
1d99702e
RD
7583 if (_argo0) {
7584 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
7585 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7586 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsVisible. Expected _wxPyTreeCtrl_p.");
8ab979d7
RD
7587 return NULL;
7588 }
7589 }
1d99702e
RD
7590 if (_argo1) {
7591 if (_argo1 == Py_None) { _arg1 = NULL; }
7592 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
d5c9047a
RD
7593 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsVisible. Expected _wxTreeItemId_p.");
7594 return NULL;
7595 }
7596 }
cf694132 7597{
4268f798 7598 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
7599 _result = (bool )wxTreeCtrl_IsVisible(_arg0,*_arg1);
7600
4268f798 7601 wxPyEndAllowThreads(__tstate);
493f1553 7602 if (PyErr_Occurred()) return NULL;
cf694132 7603} _resultobj = Py_BuildValue("i",_result);
8ab979d7
RD
7604 return _resultobj;
7605}
7606
d5c9047a 7607#define wxTreeCtrl_ItemHasChildren(_swigobj,_swigarg0) (_swigobj->ItemHasChildren(_swigarg0))
efc5f224 7608static PyObject *_wrap_wxTreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 7609 PyObject * _resultobj;
d5c9047a 7610 bool _result;
f6bcfd97 7611 wxPyTreeCtrl * _arg0;
d5c9047a 7612 wxTreeItemId * _arg1;
1d99702e
RD
7613 PyObject * _argo0 = 0;
7614 PyObject * _argo1 = 0;
efc5f224 7615 char *_kwnames[] = { "self","item", NULL };
8ab979d7
RD
7616
7617 self = self;
efc5f224 7618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ItemHasChildren",_kwnames,&_argo0,&_argo1))
8ab979d7 7619 return NULL;
1d99702e
RD
7620 if (_argo0) {
7621 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
7622 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7623 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ItemHasChildren. Expected _wxPyTreeCtrl_p.");
8ab979d7
RD
7624 return NULL;
7625 }
7626 }
1d99702e
RD
7627 if (_argo1) {
7628 if (_argo1 == Py_None) { _arg1 = NULL; }
7629 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
d5c9047a
RD
7630 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ItemHasChildren. Expected _wxTreeItemId_p.");
7631 return NULL;
7632 }
7633 }
cf694132 7634{
4268f798 7635 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
7636 _result = (bool )wxTreeCtrl_ItemHasChildren(_arg0,*_arg1);
7637
4268f798 7638 wxPyEndAllowThreads(__tstate);
493f1553 7639 if (PyErr_Occurred()) return NULL;
cf694132 7640} _resultobj = Py_BuildValue("i",_result);
8ab979d7
RD
7641 return _resultobj;
7642}
7643
d5c9047a 7644#define wxTreeCtrl_IsExpanded(_swigobj,_swigarg0) (_swigobj->IsExpanded(_swigarg0))
efc5f224 7645static PyObject *_wrap_wxTreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 7646 PyObject * _resultobj;
d5c9047a 7647 bool _result;
f6bcfd97 7648 wxPyTreeCtrl * _arg0;
d5c9047a 7649 wxTreeItemId * _arg1;
1d99702e
RD
7650 PyObject * _argo0 = 0;
7651 PyObject * _argo1 = 0;
efc5f224 7652 char *_kwnames[] = { "self","item", NULL };
8ab979d7
RD
7653
7654 self = self;
efc5f224 7655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsExpanded",_kwnames,&_argo0,&_argo1))
8ab979d7 7656 return NULL;
1d99702e
RD
7657 if (_argo0) {
7658 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
7659 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7660 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsExpanded. Expected _wxPyTreeCtrl_p.");
8ab979d7
RD
7661 return NULL;
7662 }
7663 }
1d99702e
RD
7664 if (_argo1) {
7665 if (_argo1 == Py_None) { _arg1 = NULL; }
7666 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
d5c9047a
RD
7667 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsExpanded. Expected _wxTreeItemId_p.");
7668 return NULL;
7669 }
7670 }
cf694132 7671{
4268f798 7672 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
7673 _result = (bool )wxTreeCtrl_IsExpanded(_arg0,*_arg1);
7674
4268f798 7675 wxPyEndAllowThreads(__tstate);
493f1553 7676 if (PyErr_Occurred()) return NULL;
cf694132 7677} _resultobj = Py_BuildValue("i",_result);
8ab979d7
RD
7678 return _resultobj;
7679}
7680
d5c9047a 7681#define wxTreeCtrl_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0))
efc5f224 7682static PyObject *_wrap_wxTreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 7683 PyObject * _resultobj;
d5c9047a 7684 bool _result;
f6bcfd97 7685 wxPyTreeCtrl * _arg0;
d5c9047a 7686 wxTreeItemId * _arg1;
1d99702e
RD
7687 PyObject * _argo0 = 0;
7688 PyObject * _argo1 = 0;
efc5f224 7689 char *_kwnames[] = { "self","item", NULL };
8ab979d7
RD
7690
7691 self = self;
efc5f224 7692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsSelected",_kwnames,&_argo0,&_argo1))
8ab979d7 7693 return NULL;
1d99702e
RD
7694 if (_argo0) {
7695 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
7696 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7697 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsSelected. Expected _wxPyTreeCtrl_p.");
8ab979d7
RD
7698 return NULL;
7699 }
7700 }
1d99702e
RD
7701 if (_argo1) {
7702 if (_argo1 == Py_None) { _arg1 = NULL; }
7703 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
d5c9047a
RD
7704 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsSelected. Expected _wxTreeItemId_p.");
7705 return NULL;
7706 }
7707 }
cf694132 7708{
4268f798 7709 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
7710 _result = (bool )wxTreeCtrl_IsSelected(_arg0,*_arg1);
7711
4268f798 7712 wxPyEndAllowThreads(__tstate);
493f1553 7713 if (PyErr_Occurred()) return NULL;
cf694132 7714} _resultobj = Py_BuildValue("i",_result);
8ab979d7
RD
7715 return _resultobj;
7716}
7717
7718#define wxTreeCtrl_GetRootItem(_swigobj) (_swigobj->GetRootItem())
efc5f224 7719static PyObject *_wrap_wxTreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 7720 PyObject * _resultobj;
d5c9047a 7721 wxTreeItemId * _result;
f6bcfd97 7722 wxPyTreeCtrl * _arg0;
1d99702e 7723 PyObject * _argo0 = 0;
efc5f224 7724 char *_kwnames[] = { "self", NULL };
d5c9047a 7725 char _ptemp[128];
8ab979d7
RD
7726
7727 self = self;
efc5f224 7728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetRootItem",_kwnames,&_argo0))
8ab979d7 7729 return NULL;
1d99702e
RD
7730 if (_argo0) {
7731 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
7732 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7733 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetRootItem. Expected _wxPyTreeCtrl_p.");
8ab979d7
RD
7734 return NULL;
7735 }
7736 }
cf694132 7737{
4268f798 7738 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
7739 _result = new wxTreeItemId (wxTreeCtrl_GetRootItem(_arg0));
7740
4268f798 7741 wxPyEndAllowThreads(__tstate);
493f1553 7742 if (PyErr_Occurred()) return NULL;
cf694132 7743} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
d5c9047a 7744 _resultobj = Py_BuildValue("s",_ptemp);
8ab979d7
RD
7745 return _resultobj;
7746}
7747
7748#define wxTreeCtrl_GetSelection(_swigobj) (_swigobj->GetSelection())
efc5f224 7749static PyObject *_wrap_wxTreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 7750 PyObject * _resultobj;
d5c9047a 7751 wxTreeItemId * _result;
f6bcfd97 7752 wxPyTreeCtrl * _arg0;
1d99702e 7753 PyObject * _argo0 = 0;
efc5f224 7754 char *_kwnames[] = { "self", NULL };
d5c9047a 7755 char _ptemp[128];
8ab979d7
RD
7756
7757 self = self;
efc5f224 7758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelection",_kwnames,&_argo0))
8ab979d7 7759 return NULL;
1d99702e
RD
7760 if (_argo0) {
7761 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
7762 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7763 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelection. Expected _wxPyTreeCtrl_p.");
8ab979d7
RD
7764 return NULL;
7765 }
7766 }
cf694132 7767{
4268f798 7768 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
7769 _result = new wxTreeItemId (wxTreeCtrl_GetSelection(_arg0));
7770
4268f798 7771 wxPyEndAllowThreads(__tstate);
493f1553 7772 if (PyErr_Occurred()) return NULL;
cf694132 7773} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
d5c9047a 7774 _resultobj = Py_BuildValue("s",_ptemp);
8ab979d7
RD
7775 return _resultobj;
7776}
7777
eb715945
RD
7778#define wxTreeCtrl_GetItemParent(_swigobj,_swigarg0) (_swigobj->GetParent(_swigarg0))
7779static PyObject *_wrap_wxTreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 7780 PyObject * _resultobj;
d5c9047a 7781 wxTreeItemId * _result;
f6bcfd97 7782 wxPyTreeCtrl * _arg0;
d5c9047a 7783 wxTreeItemId * _arg1;
1d99702e
RD
7784 PyObject * _argo0 = 0;
7785 PyObject * _argo1 = 0;
efc5f224 7786 char *_kwnames[] = { "self","item", NULL };
d5c9047a 7787 char _ptemp[128];
8ab979d7
RD
7788
7789 self = self;
eb715945 7790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemParent",_kwnames,&_argo0,&_argo1))
8ab979d7 7791 return NULL;
1d99702e
RD
7792 if (_argo0) {
7793 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
7794 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7795 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemParent. Expected _wxPyTreeCtrl_p.");
8ab979d7
RD
7796 return NULL;
7797 }
7798 }
1d99702e
RD
7799 if (_argo1) {
7800 if (_argo1 == Py_None) { _arg1 = NULL; }
7801 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
eb715945 7802 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemParent. Expected _wxTreeItemId_p.");
8ab979d7
RD
7803 return NULL;
7804 }
7805 }
cf694132 7806{
4268f798 7807 PyThreadState* __tstate = wxPyBeginAllowThreads();
eb715945 7808 _result = new wxTreeItemId (wxTreeCtrl_GetItemParent(_arg0,*_arg1));
cf694132 7809
4268f798 7810 wxPyEndAllowThreads(__tstate);
493f1553 7811 if (PyErr_Occurred()) return NULL;
cf694132 7812} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
d5c9047a 7813 _resultobj = Py_BuildValue("s",_ptemp);
8ab979d7
RD
7814 return _resultobj;
7815}
7816
f6bcfd97 7817static PyObject * wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self) {
4268f798 7818 wxPyBeginBlockThreads();
d426c97e
RD
7819 PyObject* rval = PyList_New(0);
7820 wxArrayTreeItemIds array;
7821 size_t num, x;
7822 num = self->GetSelections(array);
7823 for (x=0; x < num; x++) {
c368d904
RD
7824 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
7825 PyObject* item = wxPyConstructObject((void*)tii, "wxTreeItemId", TRUE);
d426c97e
RD
7826 PyList_Append(rval, item);
7827 }
4268f798 7828 wxPyEndBlockThreads();
d426c97e
RD
7829 return rval;
7830 }
7831static PyObject *_wrap_wxTreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) {
7832 PyObject * _resultobj;
7833 PyObject * _result;
f6bcfd97 7834 wxPyTreeCtrl * _arg0;
d426c97e
RD
7835 PyObject * _argo0 = 0;
7836 char *_kwnames[] = { "self", NULL };
7837
7838 self = self;
7839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelections",_kwnames,&_argo0))
7840 return NULL;
7841 if (_argo0) {
7842 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
7843 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7844 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelections. Expected _wxPyTreeCtrl_p.");
d426c97e
RD
7845 return NULL;
7846 }
7847 }
7848{
4268f798 7849 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97 7850 _result = (PyObject *)wxPyTreeCtrl_GetSelections(_arg0);
d426c97e 7851
4268f798 7852 wxPyEndAllowThreads(__tstate);
493f1553 7853 if (PyErr_Occurred()) return NULL;
d426c97e
RD
7854}{
7855 _resultobj = _result;
7856}
7857 return _resultobj;
7858}
7859
bb0054cd 7860#define wxTreeCtrl_GetChildrenCount(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetChildrenCount(_swigarg0,_swigarg1))
efc5f224 7861static PyObject *_wrap_wxTreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) {
bb0054cd
RD
7862 PyObject * _resultobj;
7863 size_t _result;
f6bcfd97 7864 wxPyTreeCtrl * _arg0;
bb0054cd 7865 wxTreeItemId * _arg1;
1d99702e
RD
7866 bool _arg2 = (bool ) TRUE;
7867 PyObject * _argo0 = 0;
7868 PyObject * _argo1 = 0;
7869 int tempbool2 = (int) TRUE;
efc5f224 7870 char *_kwnames[] = { "self","item","recursively", NULL };
bb0054cd
RD
7871
7872 self = self;
efc5f224 7873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetChildrenCount",_kwnames,&_argo0,&_argo1,&tempbool2))
bb0054cd 7874 return NULL;
1d99702e
RD
7875 if (_argo0) {
7876 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
7877 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7878 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetChildrenCount. Expected _wxPyTreeCtrl_p.");
bb0054cd
RD
7879 return NULL;
7880 }
7881 }
1d99702e
RD
7882 if (_argo1) {
7883 if (_argo1 == Py_None) { _arg1 = NULL; }
7884 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
bb0054cd
RD
7885 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetChildrenCount. Expected _wxTreeItemId_p.");
7886 return NULL;
7887 }
7888 }
7889 _arg2 = (bool ) tempbool2;
7890{
4268f798 7891 PyThreadState* __tstate = wxPyBeginAllowThreads();
bb0054cd
RD
7892 _result = (size_t )wxTreeCtrl_GetChildrenCount(_arg0,*_arg1,_arg2);
7893
4268f798 7894 wxPyEndAllowThreads(__tstate);
493f1553 7895 if (PyErr_Occurred()) return NULL;
bb0054cd
RD
7896} _resultobj = Py_BuildValue("i",_result);
7897 return _resultobj;
7898}
7899
d5c9047a 7900#define wxTreeCtrl_GetFirstChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetFirstChild(_swigarg0,_swigarg1))
efc5f224 7901static PyObject *_wrap_wxTreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 7902 PyObject * _resultobj;
d5c9047a 7903 wxTreeItemId * _result;
f6bcfd97 7904 wxPyTreeCtrl * _arg0;
d5c9047a
RD
7905 wxTreeItemId * _arg1;
7906 long * _arg2;
1d99702e
RD
7907 PyObject * _argo0 = 0;
7908 PyObject * _argo1 = 0;
d5c9047a
RD
7909 long temp;
7910 PyObject * _obj2 = 0;
efc5f224 7911 char *_kwnames[] = { "self","item","INOUT", NULL };
d5c9047a 7912 char _ptemp[128];
8ab979d7
RD
7913
7914 self = self;
efc5f224 7915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetFirstChild",_kwnames,&_argo0,&_argo1,&_obj2))
8ab979d7 7916 return NULL;
1d99702e
RD
7917 if (_argo0) {
7918 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
7919 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7920 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstChild. Expected _wxPyTreeCtrl_p.");
8ab979d7
RD
7921 return NULL;
7922 }
7923 }
1d99702e
RD
7924 if (_argo1) {
7925 if (_argo1 == Py_None) { _arg1 = NULL; }
7926 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
d5c9047a 7927 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetFirstChild. Expected _wxTreeItemId_p.");
8ab979d7
RD
7928 return NULL;
7929 }
7930 }
d5c9047a
RD
7931{
7932 temp = (long) PyInt_AsLong(_obj2);
7933 _arg2 = &temp;
7934}
cf694132 7935{
4268f798 7936 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
7937 _result = new wxTreeItemId (wxTreeCtrl_GetFirstChild(_arg0,*_arg1,*_arg2));
7938
4268f798 7939 wxPyEndAllowThreads(__tstate);
493f1553 7940 if (PyErr_Occurred()) return NULL;
cf694132 7941} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
d5c9047a
RD
7942 _resultobj = Py_BuildValue("s",_ptemp);
7943{
7944 PyObject *o;
7945 o = PyInt_FromLong((long) (*_arg2));
7946 _resultobj = t_output_helper(_resultobj, o);
7947}
8ab979d7
RD
7948 return _resultobj;
7949}
7950
d5c9047a 7951#define wxTreeCtrl_GetNextChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetNextChild(_swigarg0,_swigarg1))
efc5f224 7952static PyObject *_wrap_wxTreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 7953 PyObject * _resultobj;
d5c9047a 7954 wxTreeItemId * _result;
f6bcfd97 7955 wxPyTreeCtrl * _arg0;
d5c9047a
RD
7956 wxTreeItemId * _arg1;
7957 long * _arg2;
1d99702e
RD
7958 PyObject * _argo0 = 0;
7959 PyObject * _argo1 = 0;
d5c9047a 7960 long temp;
8ab979d7 7961 PyObject * _obj2 = 0;
efc5f224 7962 char *_kwnames[] = { "self","item","INOUT", NULL };
d5c9047a 7963 char _ptemp[128];
8ab979d7
RD
7964
7965 self = self;
efc5f224 7966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetNextChild",_kwnames,&_argo0,&_argo1,&_obj2))
8ab979d7 7967 return NULL;
1d99702e
RD
7968 if (_argo0) {
7969 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
7970 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
7971 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextChild. Expected _wxPyTreeCtrl_p.");
8ab979d7
RD
7972 return NULL;
7973 }
7974 }
1d99702e
RD
7975 if (_argo1) {
7976 if (_argo1 == Py_None) { _arg1 = NULL; }
7977 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
d5c9047a 7978 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextChild. Expected _wxTreeItemId_p.");
8ab979d7 7979 return NULL;
d5c9047a 7980 }
8ab979d7 7981 }
d5c9047a
RD
7982{
7983 temp = (long) PyInt_AsLong(_obj2);
7984 _arg2 = &temp;
8ab979d7 7985}
cf694132 7986{
4268f798 7987 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
7988 _result = new wxTreeItemId (wxTreeCtrl_GetNextChild(_arg0,*_arg1,*_arg2));
7989
4268f798 7990 wxPyEndAllowThreads(__tstate);
493f1553 7991 if (PyErr_Occurred()) return NULL;
cf694132 7992} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
d5c9047a 7993 _resultobj = Py_BuildValue("s",_ptemp);
8ab979d7 7994{
d5c9047a
RD
7995 PyObject *o;
7996 o = PyInt_FromLong((long) (*_arg2));
7997 _resultobj = t_output_helper(_resultobj, o);
8ab979d7
RD
7998}
7999 return _resultobj;
8000}
8001
d5c9047a 8002#define wxTreeCtrl_GetNextSibling(_swigobj,_swigarg0) (_swigobj->GetNextSibling(_swigarg0))
efc5f224 8003static PyObject *_wrap_wxTreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 8004 PyObject * _resultobj;
d5c9047a 8005 wxTreeItemId * _result;
f6bcfd97 8006 wxPyTreeCtrl * _arg0;
d5c9047a 8007 wxTreeItemId * _arg1;
1d99702e
RD
8008 PyObject * _argo0 = 0;
8009 PyObject * _argo1 = 0;
efc5f224 8010 char *_kwnames[] = { "self","item", NULL };
d5c9047a 8011 char _ptemp[128];
8ab979d7
RD
8012
8013 self = self;
efc5f224 8014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextSibling",_kwnames,&_argo0,&_argo1))
8ab979d7 8015 return NULL;
1d99702e
RD
8016 if (_argo0) {
8017 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
8018 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8019 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextSibling. Expected _wxPyTreeCtrl_p.");
8ab979d7
RD
8020 return NULL;
8021 }
8022 }
1d99702e
RD
8023 if (_argo1) {
8024 if (_argo1 == Py_None) { _arg1 = NULL; }
8025 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
d5c9047a
RD
8026 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextSibling. Expected _wxTreeItemId_p.");
8027 return NULL;
8028 }
8029 }
cf694132 8030{
4268f798 8031 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
8032 _result = new wxTreeItemId (wxTreeCtrl_GetNextSibling(_arg0,*_arg1));
8033
4268f798 8034 wxPyEndAllowThreads(__tstate);
493f1553 8035 if (PyErr_Occurred()) return NULL;
cf694132 8036} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
d5c9047a 8037 _resultobj = Py_BuildValue("s",_ptemp);
8ab979d7
RD
8038 return _resultobj;
8039}
8040
d5c9047a 8041#define wxTreeCtrl_GetPrevSibling(_swigobj,_swigarg0) (_swigobj->GetPrevSibling(_swigarg0))
efc5f224 8042static PyObject *_wrap_wxTreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 8043 PyObject * _resultobj;
d5c9047a 8044 wxTreeItemId * _result;
f6bcfd97 8045 wxPyTreeCtrl * _arg0;
d5c9047a 8046 wxTreeItemId * _arg1;
1d99702e
RD
8047 PyObject * _argo0 = 0;
8048 PyObject * _argo1 = 0;
efc5f224 8049 char *_kwnames[] = { "self","item", NULL };
d5c9047a 8050 char _ptemp[128];
8ab979d7
RD
8051
8052 self = self;
efc5f224 8053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevSibling",_kwnames,&_argo0,&_argo1))
8ab979d7 8054 return NULL;
1d99702e
RD
8055 if (_argo0) {
8056 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
8057 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8058 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevSibling. Expected _wxPyTreeCtrl_p.");
8ab979d7
RD
8059 return NULL;
8060 }
8061 }
1d99702e
RD
8062 if (_argo1) {
8063 if (_argo1 == Py_None) { _arg1 = NULL; }
8064 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
d5c9047a
RD
8065 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevSibling. Expected _wxTreeItemId_p.");
8066 return NULL;
8067 }
8068 }
cf694132 8069{
4268f798 8070 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
8071 _result = new wxTreeItemId (wxTreeCtrl_GetPrevSibling(_arg0,*_arg1));
8072
4268f798 8073 wxPyEndAllowThreads(__tstate);
493f1553 8074 if (PyErr_Occurred()) return NULL;
cf694132 8075} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
d5c9047a 8076 _resultobj = Py_BuildValue("s",_ptemp);
8ab979d7
RD
8077 return _resultobj;
8078}
8079
d5c9047a 8080#define wxTreeCtrl_GetFirstVisibleItem(_swigobj) (_swigobj->GetFirstVisibleItem())
efc5f224 8081static PyObject *_wrap_wxTreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 8082 PyObject * _resultobj;
d5c9047a 8083 wxTreeItemId * _result;
f6bcfd97 8084 wxPyTreeCtrl * _arg0;
1d99702e 8085 PyObject * _argo0 = 0;
efc5f224 8086 char *_kwnames[] = { "self", NULL };
d5c9047a 8087 char _ptemp[128];
8ab979d7
RD
8088
8089 self = self;
efc5f224 8090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetFirstVisibleItem",_kwnames,&_argo0))
8ab979d7 8091 return NULL;
1d99702e
RD
8092 if (_argo0) {
8093 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
8094 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8095 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstVisibleItem. Expected _wxPyTreeCtrl_p.");
8ab979d7
RD
8096 return NULL;
8097 }
8098 }
cf694132 8099{
4268f798 8100 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
8101 _result = new wxTreeItemId (wxTreeCtrl_GetFirstVisibleItem(_arg0));
8102
4268f798 8103 wxPyEndAllowThreads(__tstate);
493f1553 8104 if (PyErr_Occurred()) return NULL;
cf694132 8105} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
d5c9047a 8106 _resultobj = Py_BuildValue("s",_ptemp);
8ab979d7
RD
8107 return _resultobj;
8108}
8109
d5c9047a 8110#define wxTreeCtrl_GetNextVisible(_swigobj,_swigarg0) (_swigobj->GetNextVisible(_swigarg0))
efc5f224 8111static PyObject *_wrap_wxTreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 8112 PyObject * _resultobj;
d5c9047a 8113 wxTreeItemId * _result;
f6bcfd97 8114 wxPyTreeCtrl * _arg0;
d5c9047a 8115 wxTreeItemId * _arg1;
1d99702e
RD
8116 PyObject * _argo0 = 0;
8117 PyObject * _argo1 = 0;
efc5f224 8118 char *_kwnames[] = { "self","item", NULL };
d5c9047a 8119 char _ptemp[128];
8ab979d7
RD
8120
8121 self = self;
efc5f224 8122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextVisible",_kwnames,&_argo0,&_argo1))
8ab979d7 8123 return NULL;
1d99702e
RD
8124 if (_argo0) {
8125 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
8126 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8127 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextVisible. Expected _wxPyTreeCtrl_p.");
8ab979d7
RD
8128 return NULL;
8129 }
8130 }
1d99702e
RD
8131 if (_argo1) {
8132 if (_argo1 == Py_None) { _arg1 = NULL; }
8133 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
d5c9047a
RD
8134 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextVisible. Expected _wxTreeItemId_p.");
8135 return NULL;
8136 }
8137 }
cf694132 8138{
4268f798 8139 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
8140 _result = new wxTreeItemId (wxTreeCtrl_GetNextVisible(_arg0,*_arg1));
8141
4268f798 8142 wxPyEndAllowThreads(__tstate);
493f1553 8143 if (PyErr_Occurred()) return NULL;
cf694132 8144} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
d5c9047a 8145 _resultobj = Py_BuildValue("s",_ptemp);
8ab979d7
RD
8146 return _resultobj;
8147}
8148
d5c9047a 8149#define wxTreeCtrl_GetPrevVisible(_swigobj,_swigarg0) (_swigobj->GetPrevVisible(_swigarg0))
efc5f224 8150static PyObject *_wrap_wxTreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 8151 PyObject * _resultobj;
d5c9047a 8152 wxTreeItemId * _result;
f6bcfd97 8153 wxPyTreeCtrl * _arg0;
d5c9047a 8154 wxTreeItemId * _arg1;
1d99702e
RD
8155 PyObject * _argo0 = 0;
8156 PyObject * _argo1 = 0;
efc5f224 8157 char *_kwnames[] = { "self","item", NULL };
d5c9047a 8158 char _ptemp[128];
8ab979d7
RD
8159
8160 self = self;
efc5f224 8161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevVisible",_kwnames,&_argo0,&_argo1))
8ab979d7 8162 return NULL;
1d99702e
RD
8163 if (_argo0) {
8164 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
8165 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8166 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevVisible. Expected _wxPyTreeCtrl_p.");
8ab979d7
RD
8167 return NULL;
8168 }
8169 }
1d99702e
RD
8170 if (_argo1) {
8171 if (_argo1 == Py_None) { _arg1 = NULL; }
8172 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
d5c9047a 8173 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevVisible. Expected _wxTreeItemId_p.");
8ab979d7
RD
8174 return NULL;
8175 }
8176 }
cf694132 8177{
4268f798 8178 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
8179 _result = new wxTreeItemId (wxTreeCtrl_GetPrevVisible(_arg0,*_arg1));
8180
4268f798 8181 wxPyEndAllowThreads(__tstate);
493f1553 8182 if (PyErr_Occurred()) return NULL;
cf694132 8183} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
d5c9047a 8184 _resultobj = Py_BuildValue("s",_ptemp);
8ab979d7
RD
8185 return _resultobj;
8186}
8187
d426c97e
RD
8188#define wxTreeCtrl_GetLastChild(_swigobj,_swigarg0) (_swigobj->GetLastChild(_swigarg0))
8189static PyObject *_wrap_wxTreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) {
8190 PyObject * _resultobj;
8191 wxTreeItemId * _result;
f6bcfd97 8192 wxPyTreeCtrl * _arg0;
d426c97e
RD
8193 wxTreeItemId * _arg1;
8194 PyObject * _argo0 = 0;
8195 PyObject * _argo1 = 0;
8196 char *_kwnames[] = { "self","item", NULL };
8197 char _ptemp[128];
8198
8199 self = self;
8200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetLastChild",_kwnames,&_argo0,&_argo1))
8201 return NULL;
8202 if (_argo0) {
8203 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
8204 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8205 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetLastChild. Expected _wxPyTreeCtrl_p.");
d426c97e
RD
8206 return NULL;
8207 }
8208 }
8209 if (_argo1) {
8210 if (_argo1 == Py_None) { _arg1 = NULL; }
8211 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8212 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetLastChild. Expected _wxTreeItemId_p.");
8213 return NULL;
8214 }
8215 }
8216{
4268f798 8217 PyThreadState* __tstate = wxPyBeginAllowThreads();
d426c97e
RD
8218 _result = new wxTreeItemId (wxTreeCtrl_GetLastChild(_arg0,*_arg1));
8219
4268f798 8220 wxPyEndAllowThreads(__tstate);
493f1553 8221 if (PyErr_Occurred()) return NULL;
d426c97e
RD
8222} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
8223 _resultobj = Py_BuildValue("s",_ptemp);
8224 return _resultobj;
8225}
8226
d5c9047a 8227#define wxTreeCtrl_AddRoot(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->AddRoot(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
efc5f224 8228static PyObject *_wrap_wxTreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 8229 PyObject * _resultobj;
d5c9047a 8230 wxTreeItemId * _result;
f6bcfd97 8231 wxPyTreeCtrl * _arg0;
d5c9047a 8232 wxString * _arg1;
1d99702e
RD
8233 int _arg2 = (int ) -1;
8234 int _arg3 = (int ) -1;
8235 wxPyTreeItemData * _arg4 = (wxPyTreeItemData *) NULL;
8236 PyObject * _argo0 = 0;
d5c9047a 8237 PyObject * _obj1 = 0;
1d99702e 8238 PyObject * _argo4 = 0;
efc5f224 8239 char *_kwnames[] = { "self","text","image","selectedImage","data", NULL };
d5c9047a 8240 char _ptemp[128];
8ab979d7
RD
8241
8242 self = self;
efc5f224 8243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iiO:wxTreeCtrl_AddRoot",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_argo4))
8ab979d7 8244 return NULL;
1d99702e
RD
8245 if (_argo0) {
8246 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
8247 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8248 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AddRoot. Expected _wxPyTreeCtrl_p.");
8ab979d7
RD
8249 return NULL;
8250 }
8251 }
d5c9047a 8252{
185d7c3e
RD
8253#if PYTHON_API_VERSION >= 1009
8254 char* tmpPtr; int tmpSize;
8255 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
794c5cb1 8256 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
185d7c3e
RD
8257 return NULL;
8258 }
8259 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
8260 return NULL;
8261 _arg1 = new wxString(tmpPtr, tmpSize);
8262#else
d5c9047a
RD
8263 if (!PyString_Check(_obj1)) {
8264 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8265 return NULL;
8266 }
185d7c3e
RD
8267 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
8268#endif
d5c9047a 8269}
1d99702e
RD
8270 if (_argo4) {
8271 if (_argo4 == Py_None) { _arg4 = NULL; }
8272 else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxPyTreeItemData_p")) {
cf694132 8273 PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxTreeCtrl_AddRoot. Expected _wxPyTreeItemData_p.");
8ab979d7
RD
8274 return NULL;
8275 }
8276 }
cf694132 8277{
4268f798 8278 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
8279 _result = new wxTreeItemId (wxTreeCtrl_AddRoot(_arg0,*_arg1,_arg2,_arg3,_arg4));
8280
4268f798 8281 wxPyEndAllowThreads(__tstate);
493f1553 8282 if (PyErr_Occurred()) return NULL;
cf694132 8283} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
d5c9047a
RD
8284 _resultobj = Py_BuildValue("s",_ptemp);
8285{
8286 if (_obj1)
8287 delete _arg1;
8288}
8ab979d7
RD
8289 return _resultobj;
8290}
8291
d5c9047a 8292#define wxTreeCtrl_PrependItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->PrependItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
efc5f224 8293static PyObject *_wrap_wxTreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 8294 PyObject * _resultobj;
d5c9047a 8295 wxTreeItemId * _result;
f6bcfd97 8296 wxPyTreeCtrl * _arg0;
d5c9047a
RD
8297 wxTreeItemId * _arg1;
8298 wxString * _arg2;
1d99702e
RD
8299 int _arg3 = (int ) -1;
8300 int _arg4 = (int ) -1;
8301 wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL;
8302 PyObject * _argo0 = 0;
8303 PyObject * _argo1 = 0;
d5c9047a 8304 PyObject * _obj2 = 0;
1d99702e 8305 PyObject * _argo5 = 0;
efc5f224 8306 char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL };
d5c9047a 8307 char _ptemp[128];
8ab979d7
RD
8308
8309 self = self;
efc5f224 8310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_PrependItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5))
8ab979d7 8311 return NULL;
1d99702e
RD
8312 if (_argo0) {
8313 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
8314 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8315 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_PrependItem. Expected _wxPyTreeCtrl_p.");
8ab979d7
RD
8316 return NULL;
8317 }
8318 }
1d99702e
RD
8319 if (_argo1) {
8320 if (_argo1 == Py_None) { _arg1 = NULL; }
8321 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
d5c9047a
RD
8322 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_PrependItem. Expected _wxTreeItemId_p.");
8323 return NULL;
8324 }
8325 }
8326{
185d7c3e
RD
8327#if PYTHON_API_VERSION >= 1009
8328 char* tmpPtr; int tmpSize;
8329 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
794c5cb1 8330 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
185d7c3e
RD
8331 return NULL;
8332 }
8333 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
8334 return NULL;
8335 _arg2 = new wxString(tmpPtr, tmpSize);
8336#else
d5c9047a
RD
8337 if (!PyString_Check(_obj2)) {
8338 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8339 return NULL;
8340 }
185d7c3e
RD
8341 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
8342#endif
d5c9047a 8343}
1d99702e
RD
8344 if (_argo5) {
8345 if (_argo5 == Py_None) { _arg5 = NULL; }
8346 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) {
cf694132 8347 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_PrependItem. Expected _wxPyTreeItemData_p.");
d5c9047a
RD
8348 return NULL;
8349 }
8350 }
cf694132 8351{
4268f798 8352 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
8353 _result = new wxTreeItemId (wxTreeCtrl_PrependItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5));
8354
4268f798 8355 wxPyEndAllowThreads(__tstate);
493f1553 8356 if (PyErr_Occurred()) return NULL;
cf694132 8357} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
d5c9047a
RD
8358 _resultobj = Py_BuildValue("s",_ptemp);
8359{
8360 if (_obj2)
8361 delete _arg2;
8362}
8ab979d7
RD
8363 return _resultobj;
8364}
8365
d5c9047a 8366#define wxTreeCtrl_InsertItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
efc5f224 8367static PyObject *_wrap_wxTreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 8368 PyObject * _resultobj;
d5c9047a 8369 wxTreeItemId * _result;
f6bcfd97 8370 wxPyTreeCtrl * _arg0;
d5c9047a
RD
8371 wxTreeItemId * _arg1;
8372 wxTreeItemId * _arg2;
8373 wxString * _arg3;
1d99702e
RD
8374 int _arg4 = (int ) -1;
8375 int _arg5 = (int ) -1;
8376 wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL;
8377 PyObject * _argo0 = 0;
8378 PyObject * _argo1 = 0;
8379 PyObject * _argo2 = 0;
d5c9047a 8380 PyObject * _obj3 = 0;
1d99702e 8381 PyObject * _argo6 = 0;
efc5f224 8382 char *_kwnames[] = { "self","parent","idPrevious","text","image","selectedImage","data", NULL };
d5c9047a 8383 char _ptemp[128];
8ab979d7
RD
8384
8385 self = self;
efc5f224 8386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|iiO:wxTreeCtrl_InsertItem",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3,&_arg4,&_arg5,&_argo6))
8ab979d7 8387 return NULL;
1d99702e
RD
8388 if (_argo0) {
8389 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
8390 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8391 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItem. Expected _wxPyTreeCtrl_p.");
8ab979d7
RD
8392 return NULL;
8393 }
8394 }
1d99702e
RD
8395 if (_argo1) {
8396 if (_argo1 == Py_None) { _arg1 = NULL; }
8397 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
d5c9047a
RD
8398 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p.");
8399 return NULL;
8400 }
8401 }
1d99702e
RD
8402 if (_argo2) {
8403 if (_argo2 == Py_None) { _arg2 = NULL; }
8404 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTreeItemId_p")) {
d5c9047a
RD
8405 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p.");
8406 return NULL;
8407 }
8408 }
8409{
185d7c3e
RD
8410#if PYTHON_API_VERSION >= 1009
8411 char* tmpPtr; int tmpSize;
8412 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
794c5cb1 8413 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
185d7c3e
RD
8414 return NULL;
8415 }
8416 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
8417 return NULL;
8418 _arg3 = new wxString(tmpPtr, tmpSize);
8419#else
d5c9047a
RD
8420 if (!PyString_Check(_obj3)) {
8421 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8422 return NULL;
8423 }
185d7c3e
RD
8424 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
8425#endif
d5c9047a 8426}
1d99702e
RD
8427 if (_argo6) {
8428 if (_argo6 == Py_None) { _arg6 = NULL; }
8429 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) {
cf694132 8430 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItem. Expected _wxPyTreeItemData_p.");
d5c9047a
RD
8431 return NULL;
8432 }
8433 }
cf694132 8434{
4268f798 8435 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
8436 _result = new wxTreeItemId (wxTreeCtrl_InsertItem(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6));
8437
4268f798 8438 wxPyEndAllowThreads(__tstate);
493f1553 8439 if (PyErr_Occurred()) return NULL;
cf694132 8440} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
d5c9047a
RD
8441 _resultobj = Py_BuildValue("s",_ptemp);
8442{
8443 if (_obj3)
8444 delete _arg3;
8445}
8ab979d7
RD
8446 return _resultobj;
8447}
8448
f6bcfd97
BP
8449#define wxTreeCtrl_InsertItemBefore(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
8450static PyObject *_wrap_wxTreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) {
8451 PyObject * _resultobj;
8452 wxTreeItemId * _result;
8453 wxPyTreeCtrl * _arg0;
8454 wxTreeItemId * _arg1;
8455 size_t _arg2;
8456 wxString * _arg3;
8457 int _arg4 = (int ) -1;
8458 int _arg5 = (int ) -1;
8459 wxTreeItemData * _arg6 = (wxTreeItemData *) NULL;
8460 PyObject * _argo0 = 0;
8461 PyObject * _argo1 = 0;
8462 PyObject * _obj3 = 0;
8463 PyObject * _argo6 = 0;
8464 char *_kwnames[] = { "self","parent","before","text","image","selectedImage","data", NULL };
8465 char _ptemp[128];
8466
8467 self = self;
8468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|iiO:wxTreeCtrl_InsertItemBefore",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_arg4,&_arg5,&_argo6))
8469 return NULL;
8470 if (_argo0) {
8471 if (_argo0 == Py_None) { _arg0 = NULL; }
8472 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8473 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItemBefore. Expected _wxPyTreeCtrl_p.");
8474 return NULL;
8475 }
8476 }
8477 if (_argo1) {
8478 if (_argo1 == Py_None) { _arg1 = NULL; }
8479 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
8480 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemId_p.");
8481 return NULL;
8482 }
8483 }
8484{
185d7c3e
RD
8485#if PYTHON_API_VERSION >= 1009
8486 char* tmpPtr; int tmpSize;
8487 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
794c5cb1 8488 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
185d7c3e
RD
8489 return NULL;
8490 }
8491 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
8492 return NULL;
8493 _arg3 = new wxString(tmpPtr, tmpSize);
8494#else
f6bcfd97
BP
8495 if (!PyString_Check(_obj3)) {
8496 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8497 return NULL;
8498 }
185d7c3e
RD
8499 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
8500#endif
f6bcfd97
BP
8501}
8502 if (_argo6) {
8503 if (_argo6 == Py_None) { _arg6 = NULL; }
8504 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxTreeItemData_p")) {
8505 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemData_p.");
8506 return NULL;
8507 }
8508 }
8509{
4268f798 8510 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97
BP
8511 _result = new wxTreeItemId (wxTreeCtrl_InsertItemBefore(_arg0,*_arg1,_arg2,*_arg3,_arg4,_arg5,_arg6));
8512
4268f798 8513 wxPyEndAllowThreads(__tstate);
493f1553 8514 if (PyErr_Occurred()) return NULL;
f6bcfd97
BP
8515} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
8516 _resultobj = Py_BuildValue("s",_ptemp);
8517{
8518 if (_obj3)
8519 delete _arg3;
8520}
8521 return _resultobj;
8522}
8523
d5c9047a 8524#define wxTreeCtrl_AppendItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->AppendItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
efc5f224 8525static PyObject *_wrap_wxTreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 8526 PyObject * _resultobj;
d5c9047a 8527 wxTreeItemId * _result;
f6bcfd97 8528 wxPyTreeCtrl * _arg0;
d5c9047a 8529 wxTreeItemId * _arg1;
8ab979d7 8530 wxString * _arg2;
1d99702e
RD
8531 int _arg3 = (int ) -1;
8532 int _arg4 = (int ) -1;
8533 wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL;
8534 PyObject * _argo0 = 0;
8535 PyObject * _argo1 = 0;
8ab979d7 8536 PyObject * _obj2 = 0;
1d99702e 8537 PyObject * _argo5 = 0;
efc5f224 8538 char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL };
d5c9047a 8539 char _ptemp[128];
8ab979d7
RD
8540
8541 self = self;
efc5f224 8542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_AppendItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5))
8ab979d7 8543 return NULL;
1d99702e
RD
8544 if (_argo0) {
8545 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
8546 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8547 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AppendItem. Expected _wxPyTreeCtrl_p.");
d5c9047a
RD
8548 return NULL;
8549 }
8550 }
1d99702e
RD
8551 if (_argo1) {
8552 if (_argo1 == Py_None) { _arg1 = NULL; }
8553 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
d5c9047a 8554 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AppendItem. Expected _wxTreeItemId_p.");
8ab979d7
RD
8555 return NULL;
8556 }
8557 }
8558{
185d7c3e
RD
8559#if PYTHON_API_VERSION >= 1009
8560 char* tmpPtr; int tmpSize;
8561 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
794c5cb1 8562 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
185d7c3e
RD
8563 return NULL;
8564 }
8565 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
8566 return NULL;
8567 _arg2 = new wxString(tmpPtr, tmpSize);
8568#else
8ab979d7
RD
8569 if (!PyString_Check(_obj2)) {
8570 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8571 return NULL;
8572 }
185d7c3e
RD
8573 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
8574#endif
8ab979d7 8575}
1d99702e
RD
8576 if (_argo5) {
8577 if (_argo5 == Py_None) { _arg5 = NULL; }
8578 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) {
cf694132 8579 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_AppendItem. Expected _wxPyTreeItemData_p.");
d5c9047a
RD
8580 return NULL;
8581 }
8582 }
cf694132 8583{
4268f798 8584 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
8585 _result = new wxTreeItemId (wxTreeCtrl_AppendItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5));
8586
4268f798 8587 wxPyEndAllowThreads(__tstate);
493f1553 8588 if (PyErr_Occurred()) return NULL;
cf694132 8589} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
d5c9047a 8590 _resultobj = Py_BuildValue("s",_ptemp);
8ab979d7
RD
8591{
8592 if (_obj2)
8593 delete _arg2;
8594}
8595 return _resultobj;
8596}
8597
d5c9047a 8598#define wxTreeCtrl_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
efc5f224 8599static PyObject *_wrap_wxTreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
8ab979d7 8600 PyObject * _resultobj;
f6bcfd97 8601 wxPyTreeCtrl * _arg0;
d5c9047a 8602 wxTreeItemId * _arg1;
1d99702e
RD
8603 PyObject * _argo0 = 0;
8604 PyObject * _argo1 = 0;
efc5f224 8605 char *_kwnames[] = { "self","item", NULL };
8ab979d7
RD
8606
8607 self = self;
efc5f224 8608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Delete",_kwnames,&_argo0,&_argo1))
8ab979d7 8609 return NULL;
1d99702e
RD
8610 if (_argo0) {
8611 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
8612 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8613 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Delete. Expected _wxPyTreeCtrl_p.");
8ab979d7
RD
8614 return NULL;
8615 }
8616 }
1d99702e
RD
8617 if (_argo1) {
8618 if (_argo1 == Py_None) { _arg1 = NULL; }
8619 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
d5c9047a
RD
8620 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Delete. Expected _wxTreeItemId_p.");
8621 return NULL;
8622 }
8623 }
cf694132 8624{
4268f798 8625 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
8626 wxTreeCtrl_Delete(_arg0,*_arg1);
8627
4268f798 8628 wxPyEndAllowThreads(__tstate);
493f1553 8629 if (PyErr_Occurred()) return NULL;
cf694132 8630} Py_INCREF(Py_None);
d5c9047a
RD
8631 _resultobj = Py_None;
8632 return _resultobj;
8633}
8634
08127323 8635#define wxTreeCtrl_DeleteChildren(_swigobj,_swigarg0) (_swigobj->DeleteChildren(_swigarg0))
efc5f224 8636static PyObject *_wrap_wxTreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
08127323 8637 PyObject * _resultobj;
f6bcfd97 8638 wxPyTreeCtrl * _arg0;
08127323 8639 wxTreeItemId * _arg1;
1d99702e
RD
8640 PyObject * _argo0 = 0;
8641 PyObject * _argo1 = 0;
efc5f224 8642 char *_kwnames[] = { "self","item", NULL };
08127323
RD
8643
8644 self = self;
efc5f224 8645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_DeleteChildren",_kwnames,&_argo0,&_argo1))
08127323 8646 return NULL;
1d99702e
RD
8647 if (_argo0) {
8648 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
8649 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8650 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteChildren. Expected _wxPyTreeCtrl_p.");
08127323
RD
8651 return NULL;
8652 }
8653 }
1d99702e
RD
8654 if (_argo1) {
8655 if (_argo1 == Py_None) { _arg1 = NULL; }
8656 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
08127323
RD
8657 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_DeleteChildren. Expected _wxTreeItemId_p.");
8658 return NULL;
8659 }
8660 }
cf694132 8661{
4268f798 8662 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
8663 wxTreeCtrl_DeleteChildren(_arg0,*_arg1);
8664
4268f798 8665 wxPyEndAllowThreads(__tstate);
493f1553 8666 if (PyErr_Occurred()) return NULL;
cf694132 8667} Py_INCREF(Py_None);
08127323
RD
8668 _resultobj = Py_None;
8669 return _resultobj;
8670}
8671
d5c9047a 8672#define wxTreeCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems())
efc5f224 8673static PyObject *_wrap_wxTreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) {
d5c9047a 8674 PyObject * _resultobj;
f6bcfd97 8675 wxPyTreeCtrl * _arg0;
1d99702e 8676 PyObject * _argo0 = 0;
efc5f224 8677 char *_kwnames[] = { "self", NULL };
d5c9047a
RD
8678
8679 self = self;
efc5f224 8680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_DeleteAllItems",_kwnames,&_argo0))
d5c9047a 8681 return NULL;
1d99702e
RD
8682 if (_argo0) {
8683 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
8684 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8685 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteAllItems. Expected _wxPyTreeCtrl_p.");
d5c9047a
RD
8686 return NULL;
8687 }
8688 }
cf694132 8689{
4268f798 8690 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
8691 wxTreeCtrl_DeleteAllItems(_arg0);
8692
4268f798 8693 wxPyEndAllowThreads(__tstate);
493f1553 8694 if (PyErr_Occurred()) return NULL;
cf694132 8695} Py_INCREF(Py_None);
d5c9047a
RD
8696 _resultobj = Py_None;
8697 return _resultobj;
8698}
8699
8700#define wxTreeCtrl_Expand(_swigobj,_swigarg0) (_swigobj->Expand(_swigarg0))
efc5f224 8701static PyObject *_wrap_wxTreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) {
d5c9047a 8702 PyObject * _resultobj;
f6bcfd97 8703 wxPyTreeCtrl * _arg0;
d5c9047a 8704 wxTreeItemId * _arg1;
1d99702e
RD
8705 PyObject * _argo0 = 0;
8706 PyObject * _argo1 = 0;
efc5f224 8707 char *_kwnames[] = { "self","item", NULL };
d5c9047a
RD
8708
8709 self = self;
efc5f224 8710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Expand",_kwnames,&_argo0,&_argo1))
d5c9047a 8711 return NULL;
1d99702e
RD
8712 if (_argo0) {
8713 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
8714 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8715 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Expand. Expected _wxPyTreeCtrl_p.");
d5c9047a
RD
8716 return NULL;
8717 }
8718 }
1d99702e
RD
8719 if (_argo1) {
8720 if (_argo1 == Py_None) { _arg1 = NULL; }
8721 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
d5c9047a
RD
8722 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Expand. Expected _wxTreeItemId_p.");
8723 return NULL;
8724 }
8725 }
cf694132 8726{
4268f798 8727 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
8728 wxTreeCtrl_Expand(_arg0,*_arg1);
8729
4268f798 8730 wxPyEndAllowThreads(__tstate);
493f1553 8731 if (PyErr_Occurred()) return NULL;
cf694132 8732} Py_INCREF(Py_None);
d5c9047a
RD
8733 _resultobj = Py_None;
8734 return _resultobj;
8735}
8736
8737#define wxTreeCtrl_Collapse(_swigobj,_swigarg0) (_swigobj->Collapse(_swigarg0))
efc5f224 8738static PyObject *_wrap_wxTreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) {
d5c9047a 8739 PyObject * _resultobj;
f6bcfd97 8740 wxPyTreeCtrl * _arg0;
d5c9047a 8741 wxTreeItemId * _arg1;
1d99702e
RD
8742 PyObject * _argo0 = 0;
8743 PyObject * _argo1 = 0;
efc5f224 8744 char *_kwnames[] = { "self","item", NULL };
d5c9047a
RD
8745
8746 self = self;
efc5f224 8747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Collapse",_kwnames,&_argo0,&_argo1))
d5c9047a 8748 return NULL;
1d99702e
RD
8749 if (_argo0) {
8750 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
8751 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8752 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Collapse. Expected _wxPyTreeCtrl_p.");
d5c9047a
RD
8753 return NULL;
8754 }
8755 }
1d99702e
RD
8756 if (_argo1) {
8757 if (_argo1 == Py_None) { _arg1 = NULL; }
8758 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
d5c9047a
RD
8759 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Collapse. Expected _wxTreeItemId_p.");
8760 return NULL;
8761 }
8762 }
cf694132 8763{
4268f798 8764 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
8765 wxTreeCtrl_Collapse(_arg0,*_arg1);
8766
4268f798 8767 wxPyEndAllowThreads(__tstate);
493f1553 8768 if (PyErr_Occurred()) return NULL;
cf694132 8769} Py_INCREF(Py_None);
d5c9047a
RD
8770 _resultobj = Py_None;
8771 return _resultobj;
8772}
8773
8774#define wxTreeCtrl_CollapseAndReset(_swigobj,_swigarg0) (_swigobj->CollapseAndReset(_swigarg0))
efc5f224 8775static PyObject *_wrap_wxTreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) {
d5c9047a 8776 PyObject * _resultobj;
f6bcfd97 8777 wxPyTreeCtrl * _arg0;
d5c9047a 8778 wxTreeItemId * _arg1;
1d99702e
RD
8779 PyObject * _argo0 = 0;
8780 PyObject * _argo1 = 0;
efc5f224 8781 char *_kwnames[] = { "self","item", NULL };
d5c9047a
RD
8782
8783 self = self;
efc5f224 8784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_CollapseAndReset",_kwnames,&_argo0,&_argo1))
d5c9047a 8785 return NULL;
1d99702e
RD
8786 if (_argo0) {
8787 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
8788 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8789 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_CollapseAndReset. Expected _wxPyTreeCtrl_p.");
d5c9047a
RD
8790 return NULL;
8791 }
8792 }
1d99702e
RD
8793 if (_argo1) {
8794 if (_argo1 == Py_None) { _arg1 = NULL; }
8795 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
d5c9047a
RD
8796 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_CollapseAndReset. Expected _wxTreeItemId_p.");
8797 return NULL;
8798 }
8799 }
cf694132 8800{
4268f798 8801 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
8802 wxTreeCtrl_CollapseAndReset(_arg0,*_arg1);
8803
4268f798 8804 wxPyEndAllowThreads(__tstate);
493f1553 8805 if (PyErr_Occurred()) return NULL;
cf694132 8806} Py_INCREF(Py_None);
d5c9047a
RD
8807 _resultobj = Py_None;
8808 return _resultobj;
8809}
8810
8811#define wxTreeCtrl_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0))
efc5f224 8812static PyObject *_wrap_wxTreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
d5c9047a 8813 PyObject * _resultobj;
f6bcfd97 8814 wxPyTreeCtrl * _arg0;
d5c9047a 8815 wxTreeItemId * _arg1;
1d99702e
RD
8816 PyObject * _argo0 = 0;
8817 PyObject * _argo1 = 0;
efc5f224 8818 char *_kwnames[] = { "self","item", NULL };
d5c9047a
RD
8819
8820 self = self;
efc5f224 8821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Toggle",_kwnames,&_argo0,&_argo1))
d5c9047a 8822 return NULL;
1d99702e
RD
8823 if (_argo0) {
8824 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
8825 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8826 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Toggle. Expected _wxPyTreeCtrl_p.");
d5c9047a
RD
8827 return NULL;
8828 }
8829 }
1d99702e
RD
8830 if (_argo1) {
8831 if (_argo1 == Py_None) { _arg1 = NULL; }
8832 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
d5c9047a
RD
8833 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Toggle. Expected _wxTreeItemId_p.");
8834 return NULL;
8835 }
8836 }
cf694132 8837{
4268f798 8838 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
8839 wxTreeCtrl_Toggle(_arg0,*_arg1);
8840
4268f798 8841 wxPyEndAllowThreads(__tstate);
493f1553 8842 if (PyErr_Occurred()) return NULL;
cf694132 8843} Py_INCREF(Py_None);
d5c9047a
RD
8844 _resultobj = Py_None;
8845 return _resultobj;
8846}
8847
8848#define wxTreeCtrl_Unselect(_swigobj) (_swigobj->Unselect())
efc5f224 8849static PyObject *_wrap_wxTreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) {
d5c9047a 8850 PyObject * _resultobj;
f6bcfd97 8851 wxPyTreeCtrl * _arg0;
1d99702e 8852 PyObject * _argo0 = 0;
efc5f224 8853 char *_kwnames[] = { "self", NULL };
d5c9047a
RD
8854
8855 self = self;
efc5f224 8856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_Unselect",_kwnames,&_argo0))
d5c9047a 8857 return NULL;
1d99702e
RD
8858 if (_argo0) {
8859 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
8860 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8861 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Unselect. Expected _wxPyTreeCtrl_p.");
d5c9047a
RD
8862 return NULL;
8863 }
8864 }
cf694132 8865{
4268f798 8866 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
8867 wxTreeCtrl_Unselect(_arg0);
8868
4268f798 8869 wxPyEndAllowThreads(__tstate);
493f1553 8870 if (PyErr_Occurred()) return NULL;
cf694132 8871} Py_INCREF(Py_None);
d5c9047a
RD
8872 _resultobj = Py_None;
8873 return _resultobj;
8874}
8875
8bf5d46e 8876#define wxTreeCtrl_UnselectAll(_swigobj) (_swigobj->UnselectAll())
efc5f224 8877static PyObject *_wrap_wxTreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) {
8bf5d46e 8878 PyObject * _resultobj;
f6bcfd97 8879 wxPyTreeCtrl * _arg0;
1d99702e 8880 PyObject * _argo0 = 0;
efc5f224 8881 char *_kwnames[] = { "self", NULL };
8bf5d46e
RD
8882
8883 self = self;
efc5f224 8884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_UnselectAll",_kwnames,&_argo0))
8bf5d46e 8885 return NULL;
1d99702e
RD
8886 if (_argo0) {
8887 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
8888 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8889 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_UnselectAll. Expected _wxPyTreeCtrl_p.");
8bf5d46e
RD
8890 return NULL;
8891 }
8892 }
8893{
4268f798 8894 PyThreadState* __tstate = wxPyBeginAllowThreads();
8bf5d46e
RD
8895 wxTreeCtrl_UnselectAll(_arg0);
8896
4268f798 8897 wxPyEndAllowThreads(__tstate);
493f1553 8898 if (PyErr_Occurred()) return NULL;
8bf5d46e
RD
8899} Py_INCREF(Py_None);
8900 _resultobj = Py_None;
8901 return _resultobj;
8902}
8903
d5c9047a 8904#define wxTreeCtrl_SelectItem(_swigobj,_swigarg0) (_swigobj->SelectItem(_swigarg0))
efc5f224 8905static PyObject *_wrap_wxTreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) {
d5c9047a 8906 PyObject * _resultobj;
f6bcfd97 8907 wxPyTreeCtrl * _arg0;
d5c9047a 8908 wxTreeItemId * _arg1;
1d99702e
RD
8909 PyObject * _argo0 = 0;
8910 PyObject * _argo1 = 0;
efc5f224 8911 char *_kwnames[] = { "self","item", NULL };
d5c9047a
RD
8912
8913 self = self;
efc5f224 8914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SelectItem",_kwnames,&_argo0,&_argo1))
d5c9047a 8915 return NULL;
1d99702e
RD
8916 if (_argo0) {
8917 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
8918 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8919 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SelectItem. Expected _wxPyTreeCtrl_p.");
d5c9047a
RD
8920 return NULL;
8921 }
8922 }
1d99702e
RD
8923 if (_argo1) {
8924 if (_argo1 == Py_None) { _arg1 = NULL; }
8925 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
d5c9047a
RD
8926 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SelectItem. Expected _wxTreeItemId_p.");
8927 return NULL;
8928 }
8929 }
cf694132 8930{
4268f798 8931 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
8932 wxTreeCtrl_SelectItem(_arg0,*_arg1);
8933
4268f798 8934 wxPyEndAllowThreads(__tstate);
493f1553 8935 if (PyErr_Occurred()) return NULL;
cf694132 8936} Py_INCREF(Py_None);
d5c9047a
RD
8937 _resultobj = Py_None;
8938 return _resultobj;
8939}
8940
8941#define wxTreeCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0))
efc5f224 8942static PyObject *_wrap_wxTreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
d5c9047a 8943 PyObject * _resultobj;
f6bcfd97 8944 wxPyTreeCtrl * _arg0;
d5c9047a 8945 wxTreeItemId * _arg1;
1d99702e
RD
8946 PyObject * _argo0 = 0;
8947 PyObject * _argo1 = 0;
efc5f224 8948 char *_kwnames[] = { "self","item", NULL };
d5c9047a
RD
8949
8950 self = self;
efc5f224 8951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EnsureVisible",_kwnames,&_argo0,&_argo1))
d5c9047a 8952 return NULL;
1d99702e
RD
8953 if (_argo0) {
8954 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
8955 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8956 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EnsureVisible. Expected _wxPyTreeCtrl_p.");
d5c9047a
RD
8957 return NULL;
8958 }
8959 }
1d99702e
RD
8960 if (_argo1) {
8961 if (_argo1 == Py_None) { _arg1 = NULL; }
8962 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
d5c9047a
RD
8963 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EnsureVisible. Expected _wxTreeItemId_p.");
8964 return NULL;
8965 }
8966 }
cf694132 8967{
4268f798 8968 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
8969 wxTreeCtrl_EnsureVisible(_arg0,*_arg1);
8970
4268f798 8971 wxPyEndAllowThreads(__tstate);
493f1553 8972 if (PyErr_Occurred()) return NULL;
cf694132 8973} Py_INCREF(Py_None);
d5c9047a
RD
8974 _resultobj = Py_None;
8975 return _resultobj;
8976}
8977
8978#define wxTreeCtrl_ScrollTo(_swigobj,_swigarg0) (_swigobj->ScrollTo(_swigarg0))
efc5f224 8979static PyObject *_wrap_wxTreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) {
d5c9047a 8980 PyObject * _resultobj;
f6bcfd97 8981 wxPyTreeCtrl * _arg0;
d5c9047a 8982 wxTreeItemId * _arg1;
1d99702e
RD
8983 PyObject * _argo0 = 0;
8984 PyObject * _argo1 = 0;
efc5f224 8985 char *_kwnames[] = { "self","item", NULL };
d5c9047a
RD
8986
8987 self = self;
efc5f224 8988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ScrollTo",_kwnames,&_argo0,&_argo1))
d5c9047a 8989 return NULL;
1d99702e
RD
8990 if (_argo0) {
8991 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
8992 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
8993 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ScrollTo. Expected _wxPyTreeCtrl_p.");
d5c9047a
RD
8994 return NULL;
8995 }
8996 }
1d99702e
RD
8997 if (_argo1) {
8998 if (_argo1 == Py_None) { _arg1 = NULL; }
8999 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
d5c9047a
RD
9000 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ScrollTo. Expected _wxTreeItemId_p.");
9001 return NULL;
9002 }
9003 }
cf694132 9004{
4268f798 9005 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
9006 wxTreeCtrl_ScrollTo(_arg0,*_arg1);
9007
4268f798 9008 wxPyEndAllowThreads(__tstate);
493f1553 9009 if (PyErr_Occurred()) return NULL;
cf694132 9010} Py_INCREF(Py_None);
d5c9047a
RD
9011 _resultobj = Py_None;
9012 return _resultobj;
9013}
9014
9015#define wxTreeCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0))
efc5f224 9016static PyObject *_wrap_wxTreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
d5c9047a
RD
9017 PyObject * _resultobj;
9018 wxTextCtrl * _result;
f6bcfd97 9019 wxPyTreeCtrl * _arg0;
d5c9047a 9020 wxTreeItemId * _arg1;
1d99702e
RD
9021 PyObject * _argo0 = 0;
9022 PyObject * _argo1 = 0;
efc5f224 9023 char *_kwnames[] = { "self","item", NULL };
d5c9047a
RD
9024
9025 self = self;
efc5f224 9026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EditLabel",_kwnames,&_argo0,&_argo1))
d5c9047a 9027 return NULL;
1d99702e
RD
9028 if (_argo0) {
9029 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
9030 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
9031 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EditLabel. Expected _wxPyTreeCtrl_p.");
d5c9047a
RD
9032 return NULL;
9033 }
9034 }
1d99702e
RD
9035 if (_argo1) {
9036 if (_argo1 == Py_None) { _arg1 = NULL; }
9037 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
d5c9047a
RD
9038 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EditLabel. Expected _wxTreeItemId_p.");
9039 return NULL;
9040 }
9041 }
cf694132 9042{
4268f798 9043 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
9044 _result = (wxTextCtrl *)wxTreeCtrl_EditLabel(_arg0,*_arg1);
9045
4268f798 9046 wxPyEndAllowThreads(__tstate);
493f1553 9047 if (PyErr_Occurred()) return NULL;
9416aa89 9048}{ _resultobj = wxPyMake_wxObject(_result); }
d5c9047a
RD
9049 return _resultobj;
9050}
9051
9052#define wxTreeCtrl_GetEditControl(_swigobj) (_swigobj->GetEditControl())
efc5f224 9053static PyObject *_wrap_wxTreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) {
d5c9047a
RD
9054 PyObject * _resultobj;
9055 wxTextCtrl * _result;
f6bcfd97 9056 wxPyTreeCtrl * _arg0;
1d99702e 9057 PyObject * _argo0 = 0;
efc5f224 9058 char *_kwnames[] = { "self", NULL };
d5c9047a
RD
9059
9060 self = self;
efc5f224 9061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetEditControl",_kwnames,&_argo0))
d5c9047a 9062 return NULL;
1d99702e
RD
9063 if (_argo0) {
9064 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
9065 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
9066 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetEditControl. Expected _wxPyTreeCtrl_p.");
d5c9047a
RD
9067 return NULL;
9068 }
9069 }
cf694132 9070{
4268f798 9071 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
9072 _result = (wxTextCtrl *)wxTreeCtrl_GetEditControl(_arg0);
9073
4268f798 9074 wxPyEndAllowThreads(__tstate);
493f1553 9075 if (PyErr_Occurred()) return NULL;
9416aa89 9076}{ _resultobj = wxPyMake_wxObject(_result); }
d5c9047a
RD
9077 return _resultobj;
9078}
9079
9080#define wxTreeCtrl_EndEditLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->EndEditLabel(_swigarg0,_swigarg1))
efc5f224 9081static PyObject *_wrap_wxTreeCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
d5c9047a 9082 PyObject * _resultobj;
f6bcfd97 9083 wxPyTreeCtrl * _arg0;
d5c9047a 9084 wxTreeItemId * _arg1;
b1462dfa 9085 int _arg2 = (int ) FALSE;
1d99702e
RD
9086 PyObject * _argo0 = 0;
9087 PyObject * _argo1 = 0;
efc5f224 9088 char *_kwnames[] = { "self","item","discardChanges", NULL };
d5c9047a
RD
9089
9090 self = self;
b1462dfa 9091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_EndEditLabel",_kwnames,&_argo0,&_argo1,&_arg2))
d5c9047a 9092 return NULL;
1d99702e
RD
9093 if (_argo0) {
9094 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
9095 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
9096 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EndEditLabel. Expected _wxPyTreeCtrl_p.");
d5c9047a
RD
9097 return NULL;
9098 }
9099 }
1d99702e
RD
9100 if (_argo1) {
9101 if (_argo1 == Py_None) { _arg1 = NULL; }
9102 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
d5c9047a
RD
9103 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EndEditLabel. Expected _wxTreeItemId_p.");
9104 return NULL;
9105 }
9106 }
cf694132 9107{
4268f798 9108 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
9109 wxTreeCtrl_EndEditLabel(_arg0,*_arg1,_arg2);
9110
4268f798 9111 wxPyEndAllowThreads(__tstate);
493f1553 9112 if (PyErr_Occurred()) return NULL;
cf694132 9113} Py_INCREF(Py_None);
d5c9047a 9114 _resultobj = Py_None;
8ab979d7
RD
9115 return _resultobj;
9116}
9117
d426c97e
RD
9118#define wxTreeCtrl_SortChildren(_swigobj,_swigarg0) (_swigobj->SortChildren(_swigarg0))
9119static PyObject *_wrap_wxTreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
9120 PyObject * _resultobj;
f6bcfd97 9121 wxPyTreeCtrl * _arg0;
d426c97e
RD
9122 wxTreeItemId * _arg1;
9123 PyObject * _argo0 = 0;
9124 PyObject * _argo1 = 0;
9125 char *_kwnames[] = { "self","item", NULL };
9126
9127 self = self;
9128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SortChildren",_kwnames,&_argo0,&_argo1))
9129 return NULL;
9130 if (_argo0) {
9131 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
9132 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
9133 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SortChildren. Expected _wxPyTreeCtrl_p.");
d426c97e
RD
9134 return NULL;
9135 }
9136 }
9137 if (_argo1) {
9138 if (_argo1 == Py_None) { _arg1 = NULL; }
9139 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
9140 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SortChildren. Expected _wxTreeItemId_p.");
9141 return NULL;
9142 }
9143 }
9144{
4268f798 9145 PyThreadState* __tstate = wxPyBeginAllowThreads();
d426c97e
RD
9146 wxTreeCtrl_SortChildren(_arg0,*_arg1);
9147
4268f798 9148 wxPyEndAllowThreads(__tstate);
493f1553 9149 if (PyErr_Occurred()) return NULL;
d426c97e
RD
9150} Py_INCREF(Py_None);
9151 _resultobj = Py_None;
9152 return _resultobj;
9153}
9154
b8b8dda7 9155#define wxTreeCtrl_SetItemBold(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBold(_swigarg0,_swigarg1))
efc5f224 9156static PyObject *_wrap_wxTreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) {
b8b8dda7 9157 PyObject * _resultobj;
f6bcfd97 9158 wxPyTreeCtrl * _arg0;
b8b8dda7 9159 wxTreeItemId * _arg1;
b1462dfa 9160 int _arg2 = (int ) TRUE;
1d99702e
RD
9161 PyObject * _argo0 = 0;
9162 PyObject * _argo1 = 0;
efc5f224 9163 char *_kwnames[] = { "self","item","bold", NULL };
b8b8dda7
RD
9164
9165 self = self;
b1462dfa 9166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemBold",_kwnames,&_argo0,&_argo1,&_arg2))
b8b8dda7 9167 return NULL;
1d99702e
RD
9168 if (_argo0) {
9169 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
9170 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
9171 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBold. Expected _wxPyTreeCtrl_p.");
b8b8dda7
RD
9172 return NULL;
9173 }
9174 }
1d99702e
RD
9175 if (_argo1) {
9176 if (_argo1 == Py_None) { _arg1 = NULL; }
9177 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
b8b8dda7
RD
9178 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBold. Expected _wxTreeItemId_p.");
9179 return NULL;
9180 }
9181 }
cf694132 9182{
4268f798 9183 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
9184 wxTreeCtrl_SetItemBold(_arg0,*_arg1,_arg2);
9185
4268f798 9186 wxPyEndAllowThreads(__tstate);
493f1553 9187 if (PyErr_Occurred()) return NULL;
cf694132 9188} Py_INCREF(Py_None);
b8b8dda7
RD
9189 _resultobj = Py_None;
9190 return _resultobj;
9191}
9192
9193#define wxTreeCtrl_IsBold(_swigobj,_swigarg0) (_swigobj->IsBold(_swigarg0))
efc5f224 9194static PyObject *_wrap_wxTreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) {
b8b8dda7
RD
9195 PyObject * _resultobj;
9196 bool _result;
f6bcfd97 9197 wxPyTreeCtrl * _arg0;
b8b8dda7 9198 wxTreeItemId * _arg1;
1d99702e
RD
9199 PyObject * _argo0 = 0;
9200 PyObject * _argo1 = 0;
efc5f224 9201 char *_kwnames[] = { "self","item", NULL };
b8b8dda7
RD
9202
9203 self = self;
efc5f224 9204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsBold",_kwnames,&_argo0,&_argo1))
b8b8dda7 9205 return NULL;
1d99702e
RD
9206 if (_argo0) {
9207 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
9208 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
9209 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsBold. Expected _wxPyTreeCtrl_p.");
b8b8dda7
RD
9210 return NULL;
9211 }
9212 }
1d99702e
RD
9213 if (_argo1) {
9214 if (_argo1 == Py_None) { _arg1 = NULL; }
9215 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
b8b8dda7
RD
9216 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsBold. Expected _wxTreeItemId_p.");
9217 return NULL;
9218 }
9219 }
cf694132 9220{
4268f798 9221 PyThreadState* __tstate = wxPyBeginAllowThreads();
cf694132
RD
9222 _result = (bool )wxTreeCtrl_IsBold(_arg0,*_arg1);
9223
4268f798 9224 wxPyEndAllowThreads(__tstate);
493f1553 9225 if (PyErr_Occurred()) return NULL;
cf694132 9226} _resultobj = Py_BuildValue("i",_result);
b8b8dda7
RD
9227 return _resultobj;
9228}
9229
164b735b 9230#define wxTreeCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1))
efc5f224 9231static PyObject *_wrap_wxTreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
b8b8dda7
RD
9232 PyObject * _resultobj;
9233 wxTreeItemId * _result;
f6bcfd97 9234 wxPyTreeCtrl * _arg0;
b8b8dda7 9235 wxPoint * _arg1;
164b735b
RD
9236 int * _arg2;
9237 int temp;
1d99702e 9238 PyObject * _argo0 = 0;
164b735b 9239 wxPoint temp0;
2f90df85 9240 PyObject * _obj1 = 0;
efc5f224 9241 char *_kwnames[] = { "self","point", NULL };
b8b8dda7
RD
9242 char _ptemp[128];
9243
9244 self = self;
164b735b
RD
9245{
9246 _arg2 = &temp;
9247}
2f90df85 9248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_HitTest",_kwnames,&_argo0,&_obj1))
b8b8dda7 9249 return NULL;
1d99702e
RD
9250 if (_argo0) {
9251 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
9252 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
9253 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_HitTest. Expected _wxPyTreeCtrl_p.");
b8b8dda7
RD
9254 return NULL;
9255 }
9256 }
2f90df85 9257{
164b735b 9258 _arg1 = &temp0;
2f90df85 9259 if (! wxPoint_helper(_obj1, &_arg1))
b8b8dda7 9260 return NULL;
2f90df85 9261}
cf694132 9262{
4268f798 9263 PyThreadState* __tstate = wxPyBeginAllowThreads();
164b735b 9264 _result = new wxTreeItemId (wxTreeCtrl_HitTest(_arg0,*_arg1,*_arg2));
cf694132 9265
4268f798 9266 wxPyEndAllowThreads(__tstate);
493f1553 9267 if (PyErr_Occurred()) return NULL;
cf694132 9268} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
b8b8dda7 9269 _resultobj = Py_BuildValue("s",_ptemp);
164b735b
RD
9270{
9271 PyObject *o;
9272 o = PyInt_FromLong((long) (*_arg2));
9273 _resultobj = t_output_helper(_resultobj, o);
9274}
b8b8dda7
RD
9275 return _resultobj;
9276}
9277
b7e72427
RD
9278#define wxTreeCtrl_SetItemTextColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemTextColour(_swigarg0,_swigarg1))
9279static PyObject *_wrap_wxTreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
9280 PyObject * _resultobj;
f6bcfd97 9281 wxPyTreeCtrl * _arg0;
b7e72427
RD
9282 wxTreeItemId * _arg1;
9283 wxColour * _arg2;
9284 PyObject * _argo0 = 0;
9285 PyObject * _argo1 = 0;
f6bcfd97
BP
9286 wxColour temp;
9287 PyObject * _obj2 = 0;
b7e72427
RD
9288 char *_kwnames[] = { "self","item","col", NULL };
9289
9290 self = self;
f6bcfd97 9291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemTextColour",_kwnames,&_argo0,&_argo1,&_obj2))
b7e72427
RD
9292 return NULL;
9293 if (_argo0) {
9294 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
9295 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
9296 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemTextColour. Expected _wxPyTreeCtrl_p.");
b7e72427
RD
9297 return NULL;
9298 }
9299 }
9300 if (_argo1) {
9301 if (_argo1 == Py_None) { _arg1 = NULL; }
9302 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
9303 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemTextColour. Expected _wxTreeItemId_p.");
9304 return NULL;
9305 }
9306 }
f6bcfd97
BP
9307{
9308 _arg2 = &temp;
9309 if (! wxColour_helper(_obj2, &_arg2))
b7e72427 9310 return NULL;
f6bcfd97 9311}
b7e72427 9312{
4268f798 9313 PyThreadState* __tstate = wxPyBeginAllowThreads();
b7e72427
RD
9314 wxTreeCtrl_SetItemTextColour(_arg0,*_arg1,*_arg2);
9315
4268f798 9316 wxPyEndAllowThreads(__tstate);
493f1553 9317 if (PyErr_Occurred()) return NULL;
b7e72427
RD
9318} Py_INCREF(Py_None);
9319 _resultobj = Py_None;
9320 return _resultobj;
9321}
9322
9323#define wxTreeCtrl_SetItemBackgroundColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBackgroundColour(_swigarg0,_swigarg1))
9324static PyObject *_wrap_wxTreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
9325 PyObject * _resultobj;
f6bcfd97 9326 wxPyTreeCtrl * _arg0;
b7e72427
RD
9327 wxTreeItemId * _arg1;
9328 wxColour * _arg2;
9329 PyObject * _argo0 = 0;
9330 PyObject * _argo1 = 0;
f6bcfd97
BP
9331 wxColour temp;
9332 PyObject * _obj2 = 0;
b7e72427
RD
9333 char *_kwnames[] = { "self","item","col", NULL };
9334
9335 self = self;
f6bcfd97 9336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemBackgroundColour",_kwnames,&_argo0,&_argo1,&_obj2))
b7e72427
RD
9337 return NULL;
9338 if (_argo0) {
9339 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
9340 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
9341 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxPyTreeCtrl_p.");
b7e72427
RD
9342 return NULL;
9343 }
9344 }
9345 if (_argo1) {
9346 if (_argo1 == Py_None) { _arg1 = NULL; }
9347 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
9348 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxTreeItemId_p.");
9349 return NULL;
9350 }
9351 }
f6bcfd97
BP
9352{
9353 _arg2 = &temp;
9354 if (! wxColour_helper(_obj2, &_arg2))
b7e72427 9355 return NULL;
f6bcfd97 9356}
b7e72427 9357{
4268f798 9358 PyThreadState* __tstate = wxPyBeginAllowThreads();
b7e72427
RD
9359 wxTreeCtrl_SetItemBackgroundColour(_arg0,*_arg1,*_arg2);
9360
4268f798 9361 wxPyEndAllowThreads(__tstate);
493f1553 9362 if (PyErr_Occurred()) return NULL;
b7e72427
RD
9363} Py_INCREF(Py_None);
9364 _resultobj = Py_None;
9365 return _resultobj;
9366}
9367
9368#define wxTreeCtrl_SetItemFont(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemFont(_swigarg0,_swigarg1))
9369static PyObject *_wrap_wxTreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) {
9370 PyObject * _resultobj;
f6bcfd97 9371 wxPyTreeCtrl * _arg0;
b7e72427
RD
9372 wxTreeItemId * _arg1;
9373 wxFont * _arg2;
9374 PyObject * _argo0 = 0;
9375 PyObject * _argo1 = 0;
9376 PyObject * _argo2 = 0;
9377 char *_kwnames[] = { "self","item","font", NULL };
9378
9379 self = self;
9380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemFont",_kwnames,&_argo0,&_argo1,&_argo2))
9381 return NULL;
9382 if (_argo0) {
9383 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
9384 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
9385 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemFont. Expected _wxPyTreeCtrl_p.");
b7e72427
RD
9386 return NULL;
9387 }
9388 }
9389 if (_argo1) {
9390 if (_argo1 == Py_None) { _arg1 = NULL; }
9391 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
9392 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemFont. Expected _wxTreeItemId_p.");
9393 return NULL;
9394 }
9395 }
9396 if (_argo2) {
9397 if (_argo2 == Py_None) { _arg2 = NULL; }
9398 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) {
9399 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemFont. Expected _wxFont_p.");
9400 return NULL;
9401 }
9402 }
9403{
4268f798 9404 PyThreadState* __tstate = wxPyBeginAllowThreads();
b7e72427
RD
9405 wxTreeCtrl_SetItemFont(_arg0,*_arg1,*_arg2);
9406
4268f798 9407 wxPyEndAllowThreads(__tstate);
493f1553 9408 if (PyErr_Occurred()) return NULL;
b7e72427
RD
9409} Py_INCREF(Py_None);
9410 _resultobj = Py_None;
9411 return _resultobj;
9412}
9413
b1462dfa
RD
9414#define wxTreeCtrl_SetItemDropHighlight(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemDropHighlight(_swigarg0,_swigarg1))
9415static PyObject *_wrap_wxTreeCtrl_SetItemDropHighlight(PyObject *self, PyObject *args, PyObject *kwargs) {
9416 PyObject * _resultobj;
f6bcfd97 9417 wxPyTreeCtrl * _arg0;
b1462dfa
RD
9418 wxTreeItemId * _arg1;
9419 int _arg2 = (int ) TRUE;
9420 PyObject * _argo0 = 0;
9421 PyObject * _argo1 = 0;
9422 char *_kwnames[] = { "self","item","highlight", NULL };
9423
9424 self = self;
9425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemDropHighlight",_kwnames,&_argo0,&_argo1,&_arg2))
9426 return NULL;
9427 if (_argo0) {
9428 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
9429 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
9430 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemDropHighlight. Expected _wxPyTreeCtrl_p.");
b1462dfa
RD
9431 return NULL;
9432 }
9433 }
9434 if (_argo1) {
9435 if (_argo1 == Py_None) { _arg1 = NULL; }
9436 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
9437 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemDropHighlight. Expected _wxTreeItemId_p.");
9438 return NULL;
9439 }
9440 }
9441{
4268f798 9442 PyThreadState* __tstate = wxPyBeginAllowThreads();
b1462dfa
RD
9443 wxTreeCtrl_SetItemDropHighlight(_arg0,*_arg1,_arg2);
9444
4268f798 9445 wxPyEndAllowThreads(__tstate);
493f1553 9446 if (PyErr_Occurred()) return NULL;
b1462dfa
RD
9447} Py_INCREF(Py_None);
9448 _resultobj = Py_None;
9449 return _resultobj;
9450}
9451
f6bcfd97 9452static PyObject * wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,const wxTreeItemId & item,int textOnly) {
d426c97e 9453 wxRect rect;
164b735b 9454 if (self->GetBoundingRect(item, rect, textOnly)) {
4268f798 9455 wxPyBeginBlockThreads();
164b735b
RD
9456 wxRect* r = new wxRect(rect);
9457 PyObject* val = wxPyConstructObject((void*)r, "wxRect");
4268f798 9458 wxPyEndBlockThreads();
164b735b
RD
9459 return val;
9460 }
d426c97e
RD
9461 else {
9462 Py_INCREF(Py_None);
9463 return Py_None;
9464 }
9465 }
9466static PyObject *_wrap_wxTreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9467 PyObject * _resultobj;
9468 PyObject * _result;
f6bcfd97 9469 wxPyTreeCtrl * _arg0;
d426c97e
RD
9470 wxTreeItemId * _arg1;
9471 int _arg2 = (int ) FALSE;
9472 PyObject * _argo0 = 0;
9473 PyObject * _argo1 = 0;
9474 char *_kwnames[] = { "self","item","textOnly", NULL };
9475
9476 self = self;
9477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetBoundingRect",_kwnames,&_argo0,&_argo1,&_arg2))
9478 return NULL;
9479 if (_argo0) {
9480 if (_argo0 == Py_None) { _arg0 = NULL; }
f6bcfd97
BP
9481 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) {
9482 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetBoundingRect. Expected _wxPyTreeCtrl_p.");
d426c97e
RD
9483 return NULL;
9484 }
9485 }
9486 if (_argo1) {
9487 if (_argo1 == Py_None) { _arg1 = NULL; }
9488 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
9489 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetBoundingRect. Expected _wxTreeItemId_p.");
9490 return NULL;
9491 }
9492 }
9493{
4268f798 9494 PyThreadState* __tstate = wxPyBeginAllowThreads();
f6bcfd97 9495 _result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(_arg0,*_arg1,_arg2);
d426c97e 9496
4268f798 9497 wxPyEndAllowThreads(__tstate);
493f1553 9498 if (PyErr_Occurred()) return NULL;
d426c97e
RD
9499}{
9500 _resultobj = _result;
9501}
9502 return _resultobj;
9503}
9504
68320e40
RD
9505static void *SwigwxDirItemDataTowxObject(void *ptr) {
9506 wxDirItemData *src;
9507 wxObject *dest;
9508 src = (wxDirItemData *) ptr;
9509 dest = (wxObject *) src;
9510 return (void *) dest;
9511}
9512
9513#define new_wxDirItemData(_swigarg0,_swigarg1,_swigarg2) (new wxDirItemData(_swigarg0,_swigarg1,_swigarg2))
9514static PyObject *_wrap_new_wxDirItemData(PyObject *self, PyObject *args, PyObject *kwargs) {
9515 PyObject * _resultobj;
9516 wxDirItemData * _result;
9517 wxString * _arg0;
9518 wxString * _arg1;
9519 bool _arg2;
9520 PyObject * _obj0 = 0;
9521 PyObject * _obj1 = 0;
9522 int tempbool2;
9523 char *_kwnames[] = { "path","name","isDir", NULL };
9524 char _ptemp[128];
9525
9526 self = self;
9527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:new_wxDirItemData",_kwnames,&_obj0,&_obj1,&tempbool2))
9528 return NULL;
9529{
9530#if PYTHON_API_VERSION >= 1009
9531 char* tmpPtr; int tmpSize;
9532 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
9533 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9534 return NULL;
9535 }
9536 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
9537 return NULL;
9538 _arg0 = new wxString(tmpPtr, tmpSize);
9539#else
9540 if (!PyString_Check(_obj0)) {
9541 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9542 return NULL;
9543 }
9544 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
9545#endif
9546}
9547{
9548#if PYTHON_API_VERSION >= 1009
9549 char* tmpPtr; int tmpSize;
9550 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
9551 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9552 return NULL;
9553 }
9554 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
9555 return NULL;
9556 _arg1 = new wxString(tmpPtr, tmpSize);
9557#else
9558 if (!PyString_Check(_obj1)) {
9559 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9560 return NULL;
9561 }
9562 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
9563#endif
9564}
9565 _arg2 = (bool ) tempbool2;
9566{
9567 PyThreadState* __tstate = wxPyBeginAllowThreads();
9568 _result = (wxDirItemData *)new_wxDirItemData(*_arg0,*_arg1,_arg2);
9569
9570 wxPyEndAllowThreads(__tstate);
9571 if (PyErr_Occurred()) return NULL;
9572} if (_result) {
9573 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirItemData_p");
9574 _resultobj = Py_BuildValue("s",_ptemp);
9575 } else {
9576 Py_INCREF(Py_None);
9577 _resultobj = Py_None;
9578 }
9579{
9580 if (_obj0)
9581 delete _arg0;
9582}
9583{
9584 if (_obj1)
9585 delete _arg1;
9586}
9587 return _resultobj;
9588}
9589
9590#define wxDirItemData_SetNewDirName(_swigobj,_swigarg0) (_swigobj->SetNewDirName(_swigarg0))
9591static PyObject *_wrap_wxDirItemData_SetNewDirName(PyObject *self, PyObject *args, PyObject *kwargs) {
9592 PyObject * _resultobj;
9593 wxDirItemData * _arg0;
9594 wxString * _arg1;
9595 PyObject * _argo0 = 0;
9596 PyObject * _obj1 = 0;
9597 char *_kwnames[] = { "self","path", NULL };
9598
9599 self = self;
9600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_SetNewDirName",_kwnames,&_argo0,&_obj1))
9601 return NULL;
9602 if (_argo0) {
9603 if (_argo0 == Py_None) { _arg0 = NULL; }
9604 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) {
9605 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_SetNewDirName. Expected _wxDirItemData_p.");
9606 return NULL;
9607 }
9608 }
9609{
9610#if PYTHON_API_VERSION >= 1009
9611 char* tmpPtr; int tmpSize;
9612 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
9613 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9614 return NULL;
9615 }
9616 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
9617 return NULL;
9618 _arg1 = new wxString(tmpPtr, tmpSize);
9619#else
9620 if (!PyString_Check(_obj1)) {
9621 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9622 return NULL;
9623 }
9624 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
9625#endif
9626}
9627{
9628 PyThreadState* __tstate = wxPyBeginAllowThreads();
9629 wxDirItemData_SetNewDirName(_arg0,*_arg1);
9630
9631 wxPyEndAllowThreads(__tstate);
9632 if (PyErr_Occurred()) return NULL;
9633} Py_INCREF(Py_None);
9634 _resultobj = Py_None;
9635{
9636 if (_obj1)
9637 delete _arg1;
9638}
9639 return _resultobj;
9640}
9641
9642#define wxDirItemData_m_path_set(_swigobj,_swigval) (_swigobj->m_path = *(_swigval),_swigval)
9643static PyObject *_wrap_wxDirItemData_m_path_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9644 PyObject * _resultobj;
9645 wxString * _result;
9646 wxDirItemData * _arg0;
9647 wxString * _arg1;
9648 PyObject * _argo0 = 0;
9649 PyObject * _obj1 = 0;
9650 char *_kwnames[] = { "self","m_path", NULL };
9651
9652 self = self;
9653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_m_path_set",_kwnames,&_argo0,&_obj1))
9654 return NULL;
9655 if (_argo0) {
9656 if (_argo0 == Py_None) { _arg0 = NULL; }
9657 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) {
9658 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_path_set. Expected _wxDirItemData_p.");
9659 return NULL;
9660 }
9661 }
9662{
9663#if PYTHON_API_VERSION >= 1009
9664 char* tmpPtr; int tmpSize;
9665 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
9666 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9667 return NULL;
9668 }
9669 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
9670 return NULL;
9671 _arg1 = new wxString(tmpPtr, tmpSize);
9672#else
9673 if (!PyString_Check(_obj1)) {
9674 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9675 return NULL;
9676 }
9677 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
9678#endif
9679}
9680{
9681 PyThreadState* __tstate = wxPyBeginAllowThreads();
9682 _result = (wxString *)wxDirItemData_m_path_set(_arg0,_arg1);
9683
9684 wxPyEndAllowThreads(__tstate);
9685 if (PyErr_Occurred()) return NULL;
9686}{
9687 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
9688}
9689{
9690 if (_obj1)
9691 delete _arg1;
9692}
9693 return _resultobj;
9694}
9695
9696#define wxDirItemData_m_path_get(_swigobj) (&_swigobj->m_path)
9697static PyObject *_wrap_wxDirItemData_m_path_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9698 PyObject * _resultobj;
9699 wxString * _result;
9700 wxDirItemData * _arg0;
9701 PyObject * _argo0 = 0;
9702 char *_kwnames[] = { "self", NULL };
9703
9704 self = self;
9705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_path_get",_kwnames,&_argo0))
9706 return NULL;
9707 if (_argo0) {
9708 if (_argo0 == Py_None) { _arg0 = NULL; }
9709 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) {
9710 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_path_get. Expected _wxDirItemData_p.");
9711 return NULL;
9712 }
9713 }
9714{
9715 PyThreadState* __tstate = wxPyBeginAllowThreads();
9716 _result = (wxString *)wxDirItemData_m_path_get(_arg0);
9717
9718 wxPyEndAllowThreads(__tstate);
9719 if (PyErr_Occurred()) return NULL;
9720}{
9721 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
9722}
9723 return _resultobj;
9724}
9725
9726#define wxDirItemData_m_name_set(_swigobj,_swigval) (_swigobj->m_name = *(_swigval),_swigval)
9727static PyObject *_wrap_wxDirItemData_m_name_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9728 PyObject * _resultobj;
9729 wxString * _result;
9730 wxDirItemData * _arg0;
9731 wxString * _arg1;
9732 PyObject * _argo0 = 0;
9733 PyObject * _obj1 = 0;
9734 char *_kwnames[] = { "self","m_name", NULL };
9735
9736 self = self;
9737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDirItemData_m_name_set",_kwnames,&_argo0,&_obj1))
9738 return NULL;
9739 if (_argo0) {
9740 if (_argo0 == Py_None) { _arg0 = NULL; }
9741 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) {
9742 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_name_set. Expected _wxDirItemData_p.");
9743 return NULL;
9744 }
9745 }
9746{
9747#if PYTHON_API_VERSION >= 1009
9748 char* tmpPtr; int tmpSize;
9749 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
9750 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9751 return NULL;
9752 }
9753 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
9754 return NULL;
9755 _arg1 = new wxString(tmpPtr, tmpSize);
9756#else
9757 if (!PyString_Check(_obj1)) {
9758 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9759 return NULL;
9760 }
9761 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
9762#endif
9763}
9764{
9765 PyThreadState* __tstate = wxPyBeginAllowThreads();
9766 _result = (wxString *)wxDirItemData_m_name_set(_arg0,_arg1);
9767
9768 wxPyEndAllowThreads(__tstate);
9769 if (PyErr_Occurred()) return NULL;
9770}{
9771 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
9772}
9773{
9774 if (_obj1)
9775 delete _arg1;
9776}
9777 return _resultobj;
9778}
9779
9780#define wxDirItemData_m_name_get(_swigobj) (&_swigobj->m_name)
9781static PyObject *_wrap_wxDirItemData_m_name_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9782 PyObject * _resultobj;
9783 wxString * _result;
9784 wxDirItemData * _arg0;
9785 PyObject * _argo0 = 0;
9786 char *_kwnames[] = { "self", NULL };
9787
9788 self = self;
9789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_name_get",_kwnames,&_argo0))
9790 return NULL;
9791 if (_argo0) {
9792 if (_argo0 == Py_None) { _arg0 = NULL; }
9793 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) {
9794 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_name_get. Expected _wxDirItemData_p.");
9795 return NULL;
9796 }
9797 }
9798{
9799 PyThreadState* __tstate = wxPyBeginAllowThreads();
9800 _result = (wxString *)wxDirItemData_m_name_get(_arg0);
9801
9802 wxPyEndAllowThreads(__tstate);
9803 if (PyErr_Occurred()) return NULL;
9804}{
9805 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
9806}
9807 return _resultobj;
9808}
9809
9810#define wxDirItemData_m_isHidden_set(_swigobj,_swigval) (_swigobj->m_isHidden = _swigval,_swigval)
9811static PyObject *_wrap_wxDirItemData_m_isHidden_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9812 PyObject * _resultobj;
9813 bool _result;
9814 wxDirItemData * _arg0;
9815 bool _arg1;
9816 PyObject * _argo0 = 0;
9817 int tempbool1;
9818 char *_kwnames[] = { "self","m_isHidden", NULL };
9819
9820 self = self;
9821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isHidden_set",_kwnames,&_argo0,&tempbool1))
9822 return NULL;
9823 if (_argo0) {
9824 if (_argo0 == Py_None) { _arg0 = NULL; }
9825 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) {
9826 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isHidden_set. Expected _wxDirItemData_p.");
9827 return NULL;
9828 }
9829 }
9830 _arg1 = (bool ) tempbool1;
9831{
9832 PyThreadState* __tstate = wxPyBeginAllowThreads();
9833 _result = (bool )wxDirItemData_m_isHidden_set(_arg0,_arg1);
9834
9835 wxPyEndAllowThreads(__tstate);
9836 if (PyErr_Occurred()) return NULL;
9837} _resultobj = Py_BuildValue("i",_result);
9838 return _resultobj;
9839}
9840
9841#define wxDirItemData_m_isHidden_get(_swigobj) ((bool ) _swigobj->m_isHidden)
9842static PyObject *_wrap_wxDirItemData_m_isHidden_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9843 PyObject * _resultobj;
9844 bool _result;
9845 wxDirItemData * _arg0;
9846 PyObject * _argo0 = 0;
9847 char *_kwnames[] = { "self", NULL };
9848
9849 self = self;
9850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_isHidden_get",_kwnames,&_argo0))
9851 return NULL;
9852 if (_argo0) {
9853 if (_argo0 == Py_None) { _arg0 = NULL; }
9854 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) {
9855 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isHidden_get. Expected _wxDirItemData_p.");
9856 return NULL;
9857 }
9858 }
9859{
9860 PyThreadState* __tstate = wxPyBeginAllowThreads();
9861 _result = (bool )wxDirItemData_m_isHidden_get(_arg0);
9862
9863 wxPyEndAllowThreads(__tstate);
9864 if (PyErr_Occurred()) return NULL;
9865} _resultobj = Py_BuildValue("i",_result);
9866 return _resultobj;
9867}
9868
9869#define wxDirItemData_m_isExpanded_set(_swigobj,_swigval) (_swigobj->m_isExpanded = _swigval,_swigval)
9870static PyObject *_wrap_wxDirItemData_m_isExpanded_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9871 PyObject * _resultobj;
9872 bool _result;
9873 wxDirItemData * _arg0;
9874 bool _arg1;
9875 PyObject * _argo0 = 0;
9876 int tempbool1;
9877 char *_kwnames[] = { "self","m_isExpanded", NULL };
9878
9879 self = self;
9880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isExpanded_set",_kwnames,&_argo0,&tempbool1))
9881 return NULL;
9882 if (_argo0) {
9883 if (_argo0 == Py_None) { _arg0 = NULL; }
9884 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) {
9885 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isExpanded_set. Expected _wxDirItemData_p.");
9886 return NULL;
9887 }
9888 }
9889 _arg1 = (bool ) tempbool1;
9890{
9891 PyThreadState* __tstate = wxPyBeginAllowThreads();
9892 _result = (bool )wxDirItemData_m_isExpanded_set(_arg0,_arg1);
9893
9894 wxPyEndAllowThreads(__tstate);
9895 if (PyErr_Occurred()) return NULL;
9896} _resultobj = Py_BuildValue("i",_result);
9897 return _resultobj;
9898}
9899
9900#define wxDirItemData_m_isExpanded_get(_swigobj) ((bool ) _swigobj->m_isExpanded)
9901static PyObject *_wrap_wxDirItemData_m_isExpanded_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9902 PyObject * _resultobj;
9903 bool _result;
9904 wxDirItemData * _arg0;
9905 PyObject * _argo0 = 0;
9906 char *_kwnames[] = { "self", NULL };
9907
9908 self = self;
9909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_isExpanded_get",_kwnames,&_argo0))
9910 return NULL;
9911 if (_argo0) {
9912 if (_argo0 == Py_None) { _arg0 = NULL; }
9913 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) {
9914 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isExpanded_get. Expected _wxDirItemData_p.");
9915 return NULL;
9916 }
9917 }
9918{
9919 PyThreadState* __tstate = wxPyBeginAllowThreads();
9920 _result = (bool )wxDirItemData_m_isExpanded_get(_arg0);
9921
9922 wxPyEndAllowThreads(__tstate);
9923 if (PyErr_Occurred()) return NULL;
9924} _resultobj = Py_BuildValue("i",_result);
9925 return _resultobj;
9926}
9927
9928#define wxDirItemData_m_isDir_set(_swigobj,_swigval) (_swigobj->m_isDir = _swigval,_swigval)
9929static PyObject *_wrap_wxDirItemData_m_isDir_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9930 PyObject * _resultobj;
9931 bool _result;
9932 wxDirItemData * _arg0;
9933 bool _arg1;
9934 PyObject * _argo0 = 0;
9935 int tempbool1;
9936 char *_kwnames[] = { "self","m_isDir", NULL };
9937
9938 self = self;
9939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDirItemData_m_isDir_set",_kwnames,&_argo0,&tempbool1))
9940 return NULL;
9941 if (_argo0) {
9942 if (_argo0 == Py_None) { _arg0 = NULL; }
9943 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) {
9944 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isDir_set. Expected _wxDirItemData_p.");
9945 return NULL;
9946 }
9947 }
9948 _arg1 = (bool ) tempbool1;
9949{
9950 PyThreadState* __tstate = wxPyBeginAllowThreads();
9951 _result = (bool )wxDirItemData_m_isDir_set(_arg0,_arg1);
9952
9953 wxPyEndAllowThreads(__tstate);
9954 if (PyErr_Occurred()) return NULL;
9955} _resultobj = Py_BuildValue("i",_result);
9956 return _resultobj;
9957}
9958
9959#define wxDirItemData_m_isDir_get(_swigobj) ((bool ) _swigobj->m_isDir)
9960static PyObject *_wrap_wxDirItemData_m_isDir_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9961 PyObject * _resultobj;
9962 bool _result;
9963 wxDirItemData * _arg0;
9964 PyObject * _argo0 = 0;
9965 char *_kwnames[] = { "self", NULL };
9966
9967 self = self;
9968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDirItemData_m_isDir_get",_kwnames,&_argo0))
9969 return NULL;
9970 if (_argo0) {
9971 if (_argo0 == Py_None) { _arg0 = NULL; }
9972 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirItemData_p")) {
9973 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirItemData_m_isDir_get. Expected _wxDirItemData_p.");
9974 return NULL;
9975 }
9976 }
9977{
9978 PyThreadState* __tstate = wxPyBeginAllowThreads();
9979 _result = (bool )wxDirItemData_m_isDir_get(_arg0);
9980
9981 wxPyEndAllowThreads(__tstate);
9982 if (PyErr_Occurred()) return NULL;
9983} _resultobj = Py_BuildValue("i",_result);
9984 return _resultobj;
9985}
9986
9987static void *SwigwxGenericDirCtrlTowxControl(void *ptr) {
9988 wxGenericDirCtrl *src;
9989 wxControl *dest;
9990 src = (wxGenericDirCtrl *) ptr;
9991 dest = (wxControl *) src;
9992 return (void *) dest;
9993}
9994
9995static void *SwigwxGenericDirCtrlTowxWindow(void *ptr) {
9996 wxGenericDirCtrl *src;
9997 wxWindow *dest;
9998 src = (wxGenericDirCtrl *) ptr;
9999 dest = (wxWindow *) src;
10000 return (void *) dest;
10001}
10002
10003static void *SwigwxGenericDirCtrlTowxEvtHandler(void *ptr) {
10004 wxGenericDirCtrl *src;
10005 wxEvtHandler *dest;
10006 src = (wxGenericDirCtrl *) ptr;
10007 dest = (wxEvtHandler *) src;
10008 return (void *) dest;
10009}
10010
10011static void *SwigwxGenericDirCtrlTowxObject(void *ptr) {
10012 wxGenericDirCtrl *src;
10013 wxObject *dest;
10014 src = (wxGenericDirCtrl *) ptr;
10015 dest = (wxObject *) src;
10016 return (void *) dest;
10017}
10018
10019#define new_wxGenericDirCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (new wxGenericDirCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
10020static PyObject *_wrap_new_wxGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
10021 PyObject * _resultobj;
10022 wxGenericDirCtrl * _result;
10023 wxWindow * _arg0;
10024 wxWindowID _arg1 = (wxWindowID ) -1;
6c5ae2d2 10025 char * _arg2 = (char *) wxDirDialogDefaultFolderStr;
68320e40
RD
10026 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
10027 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
10028 long _arg5 = (long ) (wxDIRCTRL_3D_INTERNAL)|wxSUNKEN_BORDER;
6c5ae2d2 10029 char * _arg6 = (char *) wxEmptyString;
68320e40 10030 int _arg7 = (int ) 0;
ce914f73 10031 char * _arg8 = (char *) "dirCtrl";
68320e40 10032 PyObject * _argo0 = 0;
68320e40
RD
10033 wxPoint temp;
10034 PyObject * _obj3 = 0;
10035 wxSize temp0;
10036 PyObject * _obj4 = 0;
68320e40
RD
10037 char *_kwnames[] = { "parent","id","dir","pos","size","style","filter","defaultFilter","name", NULL };
10038 char _ptemp[128];
10039
10040 self = self;
6c5ae2d2 10041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|isOOlsis:new_wxGenericDirCtrl",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6,&_arg7,&_arg8))
68320e40
RD
10042 return NULL;
10043 if (_argo0) {
10044 if (_argo0 == Py_None) { _arg0 = NULL; }
10045 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
10046 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxGenericDirCtrl. Expected _wxWindow_p.");
10047 return NULL;
10048 }
10049 }
68320e40
RD
10050 if (_obj3)
10051{
10052 _arg3 = &temp;
10053 if (! wxPoint_helper(_obj3, &_arg3))
10054 return NULL;
10055}
10056 if (_obj4)
10057{
10058 _arg4 = &temp0;
10059 if (! wxSize_helper(_obj4, &_arg4))
10060 return NULL;
68320e40
RD
10061}
10062{
10063 PyThreadState* __tstate = wxPyBeginAllowThreads();
6c5ae2d2 10064 _result = (wxGenericDirCtrl *)new_wxGenericDirCtrl(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8);
68320e40
RD
10065
10066 wxPyEndAllowThreads(__tstate);
10067 if (PyErr_Occurred()) return NULL;
10068} if (_result) {
10069 SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDirCtrl_p");
10070 _resultobj = Py_BuildValue("s",_ptemp);
10071 } else {
10072 Py_INCREF(Py_None);
10073 _resultobj = Py_None;
10074 }
68320e40
RD
10075 return _resultobj;
10076}
10077
10078#define new_wxPreGenericDirCtrl() (new wxGenericDirCtrl())
10079static PyObject *_wrap_new_wxPreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
10080 PyObject * _resultobj;
10081 wxGenericDirCtrl * _result;
10082 char *_kwnames[] = { NULL };
10083 char _ptemp[128];
10084
10085 self = self;
10086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreGenericDirCtrl",_kwnames))
10087 return NULL;
10088{
10089 PyThreadState* __tstate = wxPyBeginAllowThreads();
10090 _result = (wxGenericDirCtrl *)new_wxPreGenericDirCtrl();
10091
10092 wxPyEndAllowThreads(__tstate);
10093 if (PyErr_Occurred()) return NULL;
10094} if (_result) {
10095 SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDirCtrl_p");
10096 _resultobj = Py_BuildValue("s",_ptemp);
10097 } else {
10098 Py_INCREF(Py_None);
10099 _resultobj = Py_None;
10100 }
10101 return _resultobj;
10102}
10103
10104#define wxGenericDirCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
10105static PyObject *_wrap_wxGenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
10106 PyObject * _resultobj;
10107 bool _result;
10108 wxGenericDirCtrl * _arg0;
10109 wxWindow * _arg1;
10110 wxWindowID _arg2 = (wxWindowID ) -1;
6c5ae2d2 10111 char * _arg3 = (char *) wxDirDialogDefaultFolderStr;
68320e40
RD
10112 wxPoint * _arg4 = (wxPoint *) &wxDefaultPosition;
10113 wxSize * _arg5 = (wxSize *) &wxDefaultSize;
10114 long _arg6 = (long ) (wxDIRCTRL_3D_INTERNAL)|wxSUNKEN_BORDER;
6c5ae2d2 10115 char * _arg7 = (char *) wxEmptyString;
68320e40 10116 int _arg8 = (int ) 0;
ce914f73 10117 char * _arg9 = (char *) "dirCtrl";
68320e40
RD
10118 PyObject * _argo0 = 0;
10119 PyObject * _argo1 = 0;
68320e40
RD
10120 wxPoint temp;
10121 PyObject * _obj4 = 0;
10122 wxSize temp0;
10123 PyObject * _obj5 = 0;
68320e40
RD
10124 char *_kwnames[] = { "self","parent","id","dir","pos","size","style","filter","defaultFilter","name", NULL };
10125
10126 self = self;
6c5ae2d2 10127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|isOOlsis:wxGenericDirCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_obj4,&_obj5,&_arg6,&_arg7,&_arg8,&_arg9))
68320e40
RD
10128 return NULL;
10129 if (_argo0) {
10130 if (_argo0 == Py_None) { _arg0 = NULL; }
10131 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) {
10132 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_Create. Expected _wxGenericDirCtrl_p.");
10133 return NULL;
10134 }
10135 }
10136 if (_argo1) {
10137 if (_argo1 == Py_None) { _arg1 = NULL; }
10138 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
10139 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxGenericDirCtrl_Create. Expected _wxWindow_p.");
10140 return NULL;
10141 }
10142 }
68320e40
RD
10143 if (_obj4)
10144{
10145 _arg4 = &temp;
10146 if (! wxPoint_helper(_obj4, &_arg4))
10147 return NULL;
10148}
10149 if (_obj5)
10150{
10151 _arg5 = &temp0;
10152 if (! wxSize_helper(_obj5, &_arg5))
10153 return NULL;
68320e40
RD
10154}
10155{
10156 PyThreadState* __tstate = wxPyBeginAllowThreads();
6c5ae2d2 10157 _result = (bool )wxGenericDirCtrl_Create(_arg0,_arg1,_arg2,_arg3,*_arg4,*_arg5,_arg6,_arg7,_arg8,_arg9);
68320e40
RD
10158
10159 wxPyEndAllowThreads(__tstate);
10160 if (PyErr_Occurred()) return NULL;
10161} _resultobj = Py_BuildValue("i",_result);
68320e40
RD
10162 return _resultobj;
10163}
10164
10165#define wxGenericDirCtrl_ExpandPath(_swigobj,_swigarg0) (_swigobj->ExpandPath(_swigarg0))
10166static PyObject *_wrap_wxGenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) {
10167 PyObject * _resultobj;
10168 bool _result;
10169 wxGenericDirCtrl * _arg0;
10170 wxString * _arg1;
10171 PyObject * _argo0 = 0;
10172 PyObject * _obj1 = 0;
10173 char *_kwnames[] = { "self","path", NULL };
10174
10175 self = self;
10176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_ExpandPath",_kwnames,&_argo0,&_obj1))
10177 return NULL;
10178 if (_argo0) {
10179 if (_argo0 == Py_None) { _arg0 = NULL; }
10180 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) {
10181 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_ExpandPath. Expected _wxGenericDirCtrl_p.");
10182 return NULL;
10183 }
10184 }
10185{
10186#if PYTHON_API_VERSION >= 1009
10187 char* tmpPtr; int tmpSize;
10188 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
10189 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
10190 return NULL;
10191 }
10192 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
10193 return NULL;
10194 _arg1 = new wxString(tmpPtr, tmpSize);
10195#else
10196 if (!PyString_Check(_obj1)) {
10197 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
10198 return NULL;
10199 }
10200 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
10201#endif
10202}
10203{
10204 PyThreadState* __tstate = wxPyBeginAllowThreads();
10205 _result = (bool )wxGenericDirCtrl_ExpandPath(_arg0,*_arg1);
10206
10207 wxPyEndAllowThreads(__tstate);
10208 if (PyErr_Occurred()) return NULL;
10209} _resultobj = Py_BuildValue("i",_result);
10210{
10211 if (_obj1)
10212 delete _arg1;
10213}
10214 return _resultobj;
10215}
10216
10217#define wxGenericDirCtrl_GetDefaultPath(_swigobj) (_swigobj->GetDefaultPath())
10218static PyObject *_wrap_wxGenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) {
10219 PyObject * _resultobj;
10220 wxString * _result;
10221 wxGenericDirCtrl * _arg0;
10222 PyObject * _argo0 = 0;
10223 char *_kwnames[] = { "self", NULL };
10224
10225 self = self;
10226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetDefaultPath",_kwnames,&_argo0))
10227 return NULL;
10228 if (_argo0) {
10229 if (_argo0 == Py_None) { _arg0 = NULL; }
10230 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) {
10231 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetDefaultPath. Expected _wxGenericDirCtrl_p.");
10232 return NULL;
10233 }
10234 }
10235{
10236 PyThreadState* __tstate = wxPyBeginAllowThreads();
10237 _result = new wxString (wxGenericDirCtrl_GetDefaultPath(_arg0));
10238
10239 wxPyEndAllowThreads(__tstate);
10240 if (PyErr_Occurred()) return NULL;
10241}{
10242 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
10243}
10244{
10245 delete _result;
10246}
10247 return _resultobj;
10248}
10249
10250#define wxGenericDirCtrl_SetDefaultPath(_swigobj,_swigarg0) (_swigobj->SetDefaultPath(_swigarg0))
10251static PyObject *_wrap_wxGenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) {
10252 PyObject * _resultobj;
10253 wxGenericDirCtrl * _arg0;
10254 wxString * _arg1;
10255 PyObject * _argo0 = 0;
10256 PyObject * _obj1 = 0;
10257 char *_kwnames[] = { "self","path", NULL };
10258
10259 self = self;
10260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetDefaultPath",_kwnames,&_argo0,&_obj1))
10261 return NULL;
10262 if (_argo0) {
10263 if (_argo0 == Py_None) { _arg0 = NULL; }
10264 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) {
10265 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetDefaultPath. Expected _wxGenericDirCtrl_p.");
10266 return NULL;
10267 }
10268 }
10269{
10270#if PYTHON_API_VERSION >= 1009
10271 char* tmpPtr; int tmpSize;
10272 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
10273 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
10274 return NULL;
10275 }
10276 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
10277 return NULL;
10278 _arg1 = new wxString(tmpPtr, tmpSize);
10279#else
10280 if (!PyString_Check(_obj1)) {
10281 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
10282 return NULL;
10283 }
10284 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
10285#endif
10286}
10287{
10288 PyThreadState* __tstate = wxPyBeginAllowThreads();
10289 wxGenericDirCtrl_SetDefaultPath(_arg0,*_arg1);
10290
10291 wxPyEndAllowThreads(__tstate);
10292 if (PyErr_Occurred()) return NULL;
10293} Py_INCREF(Py_None);
10294 _resultobj = Py_None;
10295{
10296 if (_obj1)
10297 delete _arg1;
10298}
10299 return _resultobj;
10300}
10301
10302#define wxGenericDirCtrl_GetPath(_swigobj) (_swigobj->GetPath())
10303static PyObject *_wrap_wxGenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
10304 PyObject * _resultobj;
10305 wxString * _result;
10306 wxGenericDirCtrl * _arg0;
10307 PyObject * _argo0 = 0;
10308 char *_kwnames[] = { "self", NULL };
10309
10310 self = self;
10311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetPath",_kwnames,&_argo0))
10312 return NULL;
10313 if (_argo0) {
10314 if (_argo0 == Py_None) { _arg0 = NULL; }
10315 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) {
10316 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetPath. Expected _wxGenericDirCtrl_p.");
10317 return NULL;
10318 }
10319 }
10320{
10321 PyThreadState* __tstate = wxPyBeginAllowThreads();
10322 _result = new wxString (wxGenericDirCtrl_GetPath(_arg0));
10323
10324 wxPyEndAllowThreads(__tstate);
10325 if (PyErr_Occurred()) return NULL;
10326}{
10327 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
10328}
10329{
10330 delete _result;
10331}
10332 return _resultobj;
10333}
10334
10335#define wxGenericDirCtrl_GetFilePath(_swigobj) (_swigobj->GetFilePath())
10336static PyObject *_wrap_wxGenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) {
10337 PyObject * _resultobj;
10338 wxString * _result;
10339 wxGenericDirCtrl * _arg0;
10340 PyObject * _argo0 = 0;
10341 char *_kwnames[] = { "self", NULL };
10342
10343 self = self;
10344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilePath",_kwnames,&_argo0))
10345 return NULL;
10346 if (_argo0) {
10347 if (_argo0 == Py_None) { _arg0 = NULL; }
10348 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) {
10349 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilePath. Expected _wxGenericDirCtrl_p.");
10350 return NULL;
10351 }
10352 }
10353{
10354 PyThreadState* __tstate = wxPyBeginAllowThreads();
10355 _result = new wxString (wxGenericDirCtrl_GetFilePath(_arg0));
10356
10357 wxPyEndAllowThreads(__tstate);
10358 if (PyErr_Occurred()) return NULL;
10359}{
10360 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
10361}
10362{
10363 delete _result;
10364}
10365 return _resultobj;
10366}
10367
10368#define wxGenericDirCtrl_SetPath(_swigobj,_swigarg0) (_swigobj->SetPath(_swigarg0))
10369static PyObject *_wrap_wxGenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
10370 PyObject * _resultobj;
10371 wxGenericDirCtrl * _arg0;
10372 wxString * _arg1;
10373 PyObject * _argo0 = 0;
10374 PyObject * _obj1 = 0;
10375 char *_kwnames[] = { "self","path", NULL };
10376
10377 self = self;
10378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetPath",_kwnames,&_argo0,&_obj1))
10379 return NULL;
10380 if (_argo0) {
10381 if (_argo0 == Py_None) { _arg0 = NULL; }
10382 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) {
10383 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetPath. Expected _wxGenericDirCtrl_p.");
10384 return NULL;
10385 }
10386 }
10387{
10388#if PYTHON_API_VERSION >= 1009
10389 char* tmpPtr; int tmpSize;
10390 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
10391 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
10392 return NULL;
10393 }
10394 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
10395 return NULL;
10396 _arg1 = new wxString(tmpPtr, tmpSize);
10397#else
10398 if (!PyString_Check(_obj1)) {
10399 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
10400 return NULL;
10401 }
10402 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
10403#endif
10404}
10405{
10406 PyThreadState* __tstate = wxPyBeginAllowThreads();
10407 wxGenericDirCtrl_SetPath(_arg0,*_arg1);
10408
10409 wxPyEndAllowThreads(__tstate);
10410 if (PyErr_Occurred()) return NULL;
10411} Py_INCREF(Py_None);
10412 _resultobj = Py_None;
10413{
10414 if (_obj1)
10415 delete _arg1;
10416}
10417 return _resultobj;
10418}
10419
10420#define wxGenericDirCtrl_ShowHidden(_swigobj,_swigarg0) (_swigobj->ShowHidden(_swigarg0))
10421static PyObject *_wrap_wxGenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) {
10422 PyObject * _resultobj;
10423 wxGenericDirCtrl * _arg0;
10424 bool _arg1;
10425 PyObject * _argo0 = 0;
10426 int tempbool1;
10427 char *_kwnames[] = { "self","show", NULL };
10428
10429 self = self;
10430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGenericDirCtrl_ShowHidden",_kwnames,&_argo0,&tempbool1))
10431 return NULL;
10432 if (_argo0) {
10433 if (_argo0 == Py_None) { _arg0 = NULL; }
10434 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) {
10435 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_ShowHidden. Expected _wxGenericDirCtrl_p.");
10436 return NULL;
10437 }
10438 }
10439 _arg1 = (bool ) tempbool1;
10440{
10441 PyThreadState* __tstate = wxPyBeginAllowThreads();
10442 wxGenericDirCtrl_ShowHidden(_arg0,_arg1);
10443
10444 wxPyEndAllowThreads(__tstate);
10445 if (PyErr_Occurred()) return NULL;
10446} Py_INCREF(Py_None);
10447 _resultobj = Py_None;
10448 return _resultobj;
10449}
10450
10451#define wxGenericDirCtrl_GetShowHidden(_swigobj) (_swigobj->GetShowHidden())
10452static PyObject *_wrap_wxGenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) {
10453 PyObject * _resultobj;
10454 bool _result;
10455 wxGenericDirCtrl * _arg0;
10456 PyObject * _argo0 = 0;
10457 char *_kwnames[] = { "self", NULL };
10458
10459 self = self;
10460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetShowHidden",_kwnames,&_argo0))
10461 return NULL;
10462 if (_argo0) {
10463 if (_argo0 == Py_None) { _arg0 = NULL; }
10464 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) {
10465 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetShowHidden. Expected _wxGenericDirCtrl_p.");
10466 return NULL;
10467 }
10468 }
10469{
10470 PyThreadState* __tstate = wxPyBeginAllowThreads();
10471 _result = (bool )wxGenericDirCtrl_GetShowHidden(_arg0);
10472
10473 wxPyEndAllowThreads(__tstate);
10474 if (PyErr_Occurred()) return NULL;
10475} _resultobj = Py_BuildValue("i",_result);
10476 return _resultobj;
10477}
10478
10479#define wxGenericDirCtrl_GetFilter(_swigobj) (_swigobj->GetFilter())
10480static PyObject *_wrap_wxGenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) {
10481 PyObject * _resultobj;
10482 wxString * _result;
10483 wxGenericDirCtrl * _arg0;
10484 PyObject * _argo0 = 0;
10485 char *_kwnames[] = { "self", NULL };
10486
10487 self = self;
10488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilter",_kwnames,&_argo0))
10489 return NULL;
10490 if (_argo0) {
10491 if (_argo0 == Py_None) { _arg0 = NULL; }
10492 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) {
10493 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilter. Expected _wxGenericDirCtrl_p.");
10494 return NULL;
10495 }
10496 }
10497{
10498 PyThreadState* __tstate = wxPyBeginAllowThreads();
10499 _result = new wxString (wxGenericDirCtrl_GetFilter(_arg0));
10500
10501 wxPyEndAllowThreads(__tstate);
10502 if (PyErr_Occurred()) return NULL;
10503}{
10504 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
10505}
10506{
10507 delete _result;
10508}
10509 return _resultobj;
10510}
10511
10512#define wxGenericDirCtrl_SetFilter(_swigobj,_swigarg0) (_swigobj->SetFilter(_swigarg0))
10513static PyObject *_wrap_wxGenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) {
10514 PyObject * _resultobj;
10515 wxGenericDirCtrl * _arg0;
10516 wxString * _arg1;
10517 PyObject * _argo0 = 0;
10518 PyObject * _obj1 = 0;
10519 char *_kwnames[] = { "self","filter", NULL };
10520
10521 self = self;
10522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxGenericDirCtrl_SetFilter",_kwnames,&_argo0,&_obj1))
10523 return NULL;
10524 if (_argo0) {
10525 if (_argo0 == Py_None) { _arg0 = NULL; }
10526 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) {
10527 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetFilter. Expected _wxGenericDirCtrl_p.");
10528 return NULL;
10529 }
10530 }
10531{
10532#if PYTHON_API_VERSION >= 1009
10533 char* tmpPtr; int tmpSize;
10534 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
10535 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
10536 return NULL;
10537 }
10538 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
10539 return NULL;
10540 _arg1 = new wxString(tmpPtr, tmpSize);
10541#else
10542 if (!PyString_Check(_obj1)) {
10543 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
10544 return NULL;
10545 }
10546 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
10547#endif
10548}
10549{
10550 PyThreadState* __tstate = wxPyBeginAllowThreads();
10551 wxGenericDirCtrl_SetFilter(_arg0,*_arg1);
10552
10553 wxPyEndAllowThreads(__tstate);
10554 if (PyErr_Occurred()) return NULL;
10555} Py_INCREF(Py_None);
10556 _resultobj = Py_None;
10557{
10558 if (_obj1)
10559 delete _arg1;
10560}
10561 return _resultobj;
10562}
10563
10564#define wxGenericDirCtrl_GetFilterIndex(_swigobj) (_swigobj->GetFilterIndex())
10565static PyObject *_wrap_wxGenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
10566 PyObject * _resultobj;
10567 int _result;
10568 wxGenericDirCtrl * _arg0;
10569 PyObject * _argo0 = 0;
10570 char *_kwnames[] = { "self", NULL };
10571
10572 self = self;
10573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilterIndex",_kwnames,&_argo0))
10574 return NULL;
10575 if (_argo0) {
10576 if (_argo0 == Py_None) { _arg0 = NULL; }
10577 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) {
10578 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilterIndex. Expected _wxGenericDirCtrl_p.");
10579 return NULL;
10580 }
10581 }
10582{
10583 PyThreadState* __tstate = wxPyBeginAllowThreads();
10584 _result = (int )wxGenericDirCtrl_GetFilterIndex(_arg0);
10585
10586 wxPyEndAllowThreads(__tstate);
10587 if (PyErr_Occurred()) return NULL;
10588} _resultobj = Py_BuildValue("i",_result);
10589 return _resultobj;
10590}
10591
10592#define wxGenericDirCtrl_SetFilterIndex(_swigobj,_swigarg0) (_swigobj->SetFilterIndex(_swigarg0))
10593static PyObject *_wrap_wxGenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
10594 PyObject * _resultobj;
10595 wxGenericDirCtrl * _arg0;
10596 int _arg1;
10597 PyObject * _argo0 = 0;
10598 char *_kwnames[] = { "self","n", NULL };
10599
10600 self = self;
10601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGenericDirCtrl_SetFilterIndex",_kwnames,&_argo0,&_arg1))
10602 return NULL;
10603 if (_argo0) {
10604 if (_argo0 == Py_None) { _arg0 = NULL; }
10605 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) {
10606 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_SetFilterIndex. Expected _wxGenericDirCtrl_p.");
10607 return NULL;
10608 }
10609 }
10610{
10611 PyThreadState* __tstate = wxPyBeginAllowThreads();
10612 wxGenericDirCtrl_SetFilterIndex(_arg0,_arg1);
10613
10614 wxPyEndAllowThreads(__tstate);
10615 if (PyErr_Occurred()) return NULL;
10616} Py_INCREF(Py_None);
10617 _resultobj = Py_None;
10618 return _resultobj;
10619}
10620
10621#define wxGenericDirCtrl_GetRootId(_swigobj) (_swigobj->GetRootId())
10622static PyObject *_wrap_wxGenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) {
10623 PyObject * _resultobj;
10624 wxTreeItemId * _result;
10625 wxGenericDirCtrl * _arg0;
10626 PyObject * _argo0 = 0;
10627 char *_kwnames[] = { "self", NULL };
10628 char _ptemp[128];
10629
10630 self = self;
10631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetRootId",_kwnames,&_argo0))
10632 return NULL;
10633 if (_argo0) {
10634 if (_argo0 == Py_None) { _arg0 = NULL; }
10635 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) {
10636 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetRootId. Expected _wxGenericDirCtrl_p.");
10637 return NULL;
10638 }
10639 }
10640{
10641 PyThreadState* __tstate = wxPyBeginAllowThreads();
10642 _result = new wxTreeItemId (wxGenericDirCtrl_GetRootId(_arg0));
10643
10644 wxPyEndAllowThreads(__tstate);
10645 if (PyErr_Occurred()) return NULL;
10646} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
10647 _resultobj = Py_BuildValue("s",_ptemp);
10648 return _resultobj;
10649}
10650
10651#define wxGenericDirCtrl_GetTreeCtrl(_swigobj) (_swigobj->GetTreeCtrl())
10652static PyObject *_wrap_wxGenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
10653 PyObject * _resultobj;
10654 wxTreeCtrl * _result;
10655 wxGenericDirCtrl * _arg0;
10656 PyObject * _argo0 = 0;
10657 char *_kwnames[] = { "self", NULL };
10658 char _ptemp[128];
10659
10660 self = self;
10661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetTreeCtrl",_kwnames,&_argo0))
10662 return NULL;
10663 if (_argo0) {
10664 if (_argo0 == Py_None) { _arg0 = NULL; }
10665 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) {
10666 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetTreeCtrl. Expected _wxGenericDirCtrl_p.");
10667 return NULL;
10668 }
10669 }
10670{
10671 PyThreadState* __tstate = wxPyBeginAllowThreads();
10672 _result = (wxTreeCtrl *)wxGenericDirCtrl_GetTreeCtrl(_arg0);
10673
10674 wxPyEndAllowThreads(__tstate);
10675 if (PyErr_Occurred()) return NULL;
10676} if (_result) {
10677 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeCtrl_p");
10678 _resultobj = Py_BuildValue("s",_ptemp);
10679 } else {
10680 Py_INCREF(Py_None);
10681 _resultobj = Py_None;
10682 }
10683 return _resultobj;
10684}
10685
10686#define wxGenericDirCtrl_GetFilterListCtrl(_swigobj) (_swigobj->GetFilterListCtrl())
10687static PyObject *_wrap_wxGenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
10688 PyObject * _resultobj;
10689 wxDirFilterListCtrl * _result;
10690 wxGenericDirCtrl * _arg0;
10691 PyObject * _argo0 = 0;
10692 char *_kwnames[] = { "self", NULL };
10693 char _ptemp[128];
10694
10695 self = self;
10696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericDirCtrl_GetFilterListCtrl",_kwnames,&_argo0))
10697 return NULL;
10698 if (_argo0) {
10699 if (_argo0 == Py_None) { _arg0 = NULL; }
10700 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) {
10701 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGenericDirCtrl_GetFilterListCtrl. Expected _wxGenericDirCtrl_p.");
10702 return NULL;
10703 }
10704 }
10705{
10706 PyThreadState* __tstate = wxPyBeginAllowThreads();
10707 _result = (wxDirFilterListCtrl *)wxGenericDirCtrl_GetFilterListCtrl(_arg0);
10708
10709 wxPyEndAllowThreads(__tstate);
10710 if (PyErr_Occurred()) return NULL;
10711} if (_result) {
10712 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p");
10713 _resultobj = Py_BuildValue("s",_ptemp);
10714 } else {
10715 Py_INCREF(Py_None);
10716 _resultobj = Py_None;
10717 }
10718 return _resultobj;
10719}
10720
10721static void *SwigwxDirFilterListCtrlTowxChoice(void *ptr) {
10722 wxDirFilterListCtrl *src;
10723 wxChoice *dest;
10724 src = (wxDirFilterListCtrl *) ptr;
10725 dest = (wxChoice *) src;
10726 return (void *) dest;
10727}
10728
10729static void *SwigwxDirFilterListCtrlTowxControlWithItems(void *ptr) {
10730 wxDirFilterListCtrl *src;
10731 wxControlWithItems *dest;
10732 src = (wxDirFilterListCtrl *) ptr;
10733 dest = (wxControlWithItems *) src;
10734 return (void *) dest;
10735}
10736
10737static void *SwigwxDirFilterListCtrlTowxControl(void *ptr) {
10738 wxDirFilterListCtrl *src;
10739 wxControl *dest;
10740 src = (wxDirFilterListCtrl *) ptr;
10741 dest = (wxControl *) src;
10742 return (void *) dest;
10743}
10744
10745static void *SwigwxDirFilterListCtrlTowxWindow(void *ptr) {
10746 wxDirFilterListCtrl *src;
10747 wxWindow *dest;
10748 src = (wxDirFilterListCtrl *) ptr;
10749 dest = (wxWindow *) src;
10750 return (void *) dest;
10751}
10752
10753static void *SwigwxDirFilterListCtrlTowxEvtHandler(void *ptr) {
10754 wxDirFilterListCtrl *src;
10755 wxEvtHandler *dest;
10756 src = (wxDirFilterListCtrl *) ptr;
10757 dest = (wxEvtHandler *) src;
10758 return (void *) dest;
10759}
10760
10761static void *SwigwxDirFilterListCtrlTowxObject(void *ptr) {
10762 wxDirFilterListCtrl *src;
10763 wxObject *dest;
10764 src = (wxDirFilterListCtrl *) ptr;
10765 dest = (wxObject *) src;
10766 return (void *) dest;
10767}
10768
10769#define new_wxDirFilterListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (new wxDirFilterListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
10770static PyObject *_wrap_new_wxDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
10771 PyObject * _resultobj;
10772 wxDirFilterListCtrl * _result;
10773 wxGenericDirCtrl * _arg0;
10774 wxWindowID _arg1 = (wxWindowID ) -1;
10775 wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition;
10776 wxSize * _arg3 = (wxSize *) &wxDefaultSize;
10777 long _arg4 = (long ) 0;
10778 PyObject * _argo0 = 0;
10779 wxPoint temp;
10780 PyObject * _obj2 = 0;
10781 wxSize temp0;
10782 PyObject * _obj3 = 0;
10783 char *_kwnames[] = { "parent","id","pos","size","style", NULL };
10784 char _ptemp[128];
10785
10786 self = self;
10787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOl:new_wxDirFilterListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4))
10788 return NULL;
10789 if (_argo0) {
10790 if (_argo0 == Py_None) { _arg0 = NULL; }
10791 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDirCtrl_p")) {
10792 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDirFilterListCtrl. Expected _wxGenericDirCtrl_p.");
10793 return NULL;
10794 }
10795 }
10796 if (_obj2)
10797{
10798 _arg2 = &temp;
10799 if (! wxPoint_helper(_obj2, &_arg2))
10800 return NULL;
10801}
10802 if (_obj3)
10803{
10804 _arg3 = &temp0;
10805 if (! wxSize_helper(_obj3, &_arg3))
10806 return NULL;
10807}
10808{
10809 PyThreadState* __tstate = wxPyBeginAllowThreads();
10810 _result = (wxDirFilterListCtrl *)new_wxDirFilterListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4);
10811
10812 wxPyEndAllowThreads(__tstate);
10813 if (PyErr_Occurred()) return NULL;
10814} if (_result) {
10815 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p");
10816 _resultobj = Py_BuildValue("s",_ptemp);
10817 } else {
10818 Py_INCREF(Py_None);
10819 _resultobj = Py_None;
10820 }
10821 return _resultobj;
10822}
10823
10824#define new_wxPreDirFilterListCtrl() (new wxDirFilterListCtrl())
10825static PyObject *_wrap_new_wxPreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
10826 PyObject * _resultobj;
10827 wxDirFilterListCtrl * _result;
10828 char *_kwnames[] = { NULL };
10829 char _ptemp[128];
10830
10831 self = self;
10832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreDirFilterListCtrl",_kwnames))
10833 return NULL;
10834{
10835 PyThreadState* __tstate = wxPyBeginAllowThreads();
10836 _result = (wxDirFilterListCtrl *)new_wxPreDirFilterListCtrl();
10837
10838 wxPyEndAllowThreads(__tstate);
10839 if (PyErr_Occurred()) return NULL;
10840} if (_result) {
10841 SWIG_MakePtr(_ptemp, (char *) _result,"_wxDirFilterListCtrl_p");
10842 _resultobj = Py_BuildValue("s",_ptemp);
10843 } else {
10844 Py_INCREF(Py_None);
10845 _resultobj = Py_None;
10846 }
10847 return _resultobj;
10848}
10849
10850#define wxDirFilterListCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
10851static PyObject *_wrap_wxDirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
10852 PyObject * _resultobj;
10853 bool _result;
10854 wxDirFilterListCtrl * _arg0;
10855 wxGenericDirCtrl * _arg1;
10856 wxWindowID _arg2 = (wxWindowID ) -1;
10857 wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition;
10858 wxSize * _arg4 = (wxSize *) &wxDefaultSize;
10859 long _arg5 = (long ) 0;
10860 PyObject * _argo0 = 0;
10861 PyObject * _argo1 = 0;
10862 wxPoint temp;
10863 PyObject * _obj3 = 0;
10864 wxSize temp0;
10865 PyObject * _obj4 = 0;
10866 char *_kwnames[] = { "self","parent","id","pos","size","style", NULL };
10867
10868 self = self;
10869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOl:wxDirFilterListCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5))
10870 return NULL;
10871 if (_argo0) {
10872 if (_argo0 == Py_None) { _arg0 = NULL; }
10873 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirFilterListCtrl_p")) {
10874 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirFilterListCtrl_Create. Expected _wxDirFilterListCtrl_p.");
10875 return NULL;
10876 }
10877 }
10878 if (_argo1) {
10879 if (_argo1 == Py_None) { _arg1 = NULL; }
10880 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxGenericDirCtrl_p")) {
10881 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDirFilterListCtrl_Create. Expected _wxGenericDirCtrl_p.");
10882 return NULL;
10883 }
10884 }
10885 if (_obj3)
10886{
10887 _arg3 = &temp;
10888 if (! wxPoint_helper(_obj3, &_arg3))
10889 return NULL;
10890}
10891 if (_obj4)
10892{
10893 _arg4 = &temp0;
10894 if (! wxSize_helper(_obj4, &_arg4))
10895 return NULL;
10896}
10897{
10898 PyThreadState* __tstate = wxPyBeginAllowThreads();
10899 _result = (bool )wxDirFilterListCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5);
10900
10901 wxPyEndAllowThreads(__tstate);
10902 if (PyErr_Occurred()) return NULL;
10903} _resultobj = Py_BuildValue("i",_result);
10904 return _resultobj;
10905}
10906
10907#define wxDirFilterListCtrl_FillFilterList(_swigobj,_swigarg0,_swigarg1) (_swigobj->FillFilterList(_swigarg0,_swigarg1))
10908static PyObject *_wrap_wxDirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) {
10909 PyObject * _resultobj;
10910 wxDirFilterListCtrl * _arg0;
10911 wxString * _arg1;
10912 int _arg2;
10913 PyObject * _argo0 = 0;
10914 PyObject * _obj1 = 0;
10915 char *_kwnames[] = { "self","filter","defaultFilter", NULL };
10916
10917 self = self;
10918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxDirFilterListCtrl_FillFilterList",_kwnames,&_argo0,&_obj1,&_arg2))
10919 return NULL;
10920 if (_argo0) {
10921 if (_argo0 == Py_None) { _arg0 = NULL; }
10922 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDirFilterListCtrl_p")) {
10923 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDirFilterListCtrl_FillFilterList. Expected _wxDirFilterListCtrl_p.");
10924 return NULL;
10925 }
10926 }
10927{
10928#if PYTHON_API_VERSION >= 1009
10929 char* tmpPtr; int tmpSize;
10930 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
10931 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
10932 return NULL;
10933 }
10934 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
10935 return NULL;
10936 _arg1 = new wxString(tmpPtr, tmpSize);
10937#else
10938 if (!PyString_Check(_obj1)) {
10939 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
10940 return NULL;
10941 }
10942 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
10943#endif
10944}
10945{
10946 PyThreadState* __tstate = wxPyBeginAllowThreads();
10947 wxDirFilterListCtrl_FillFilterList(_arg0,*_arg1,_arg2);
10948
10949 wxPyEndAllowThreads(__tstate);
10950 if (PyErr_Occurred()) return NULL;
10951} Py_INCREF(Py_None);
10952 _resultobj = Py_None;
10953{
10954 if (_obj1)
10955 delete _arg1;
10956}
10957 return _resultobj;
10958}
10959
8ab979d7 10960static PyMethodDef controls2cMethods[] = {
68320e40
RD
10961 { "wxDirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_wxDirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS },
10962 { "wxDirFilterListCtrl_Create", (PyCFunction) _wrap_wxDirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS },
10963 { "new_wxPreDirFilterListCtrl", (PyCFunction) _wrap_new_wxPreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS },
10964 { "new_wxDirFilterListCtrl", (PyCFunction) _wrap_new_wxDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS },
10965 { "wxGenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS },
10966 { "wxGenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_wxGenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS },
10967 { "wxGenericDirCtrl_GetRootId", (PyCFunction) _wrap_wxGenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS },
10968 { "wxGenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_wxGenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS },
10969 { "wxGenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS },
10970 { "wxGenericDirCtrl_SetFilter", (PyCFunction) _wrap_wxGenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS },
10971 { "wxGenericDirCtrl_GetFilter", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS },
10972 { "wxGenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_wxGenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS },
10973 { "wxGenericDirCtrl_ShowHidden", (PyCFunction) _wrap_wxGenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS },
10974 { "wxGenericDirCtrl_SetPath", (PyCFunction) _wrap_wxGenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS },
10975 { "wxGenericDirCtrl_GetFilePath", (PyCFunction) _wrap_wxGenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS },
10976 { "wxGenericDirCtrl_GetPath", (PyCFunction) _wrap_wxGenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS },
10977 { "wxGenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_wxGenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS },
10978 { "wxGenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_wxGenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS },
10979 { "wxGenericDirCtrl_ExpandPath", (PyCFunction) _wrap_wxGenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS },
10980 { "wxGenericDirCtrl_Create", (PyCFunction) _wrap_wxGenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS },
10981 { "new_wxPreGenericDirCtrl", (PyCFunction) _wrap_new_wxPreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS },
10982 { "new_wxGenericDirCtrl", (PyCFunction) _wrap_new_wxGenericDirCtrl, METH_VARARGS | METH_KEYWORDS },
10983 { "wxDirItemData_m_isDir_get", (PyCFunction) _wrap_wxDirItemData_m_isDir_get, METH_VARARGS | METH_KEYWORDS },
10984 { "wxDirItemData_m_isDir_set", (PyCFunction) _wrap_wxDirItemData_m_isDir_set, METH_VARARGS | METH_KEYWORDS },
10985 { "wxDirItemData_m_isExpanded_get", (PyCFunction) _wrap_wxDirItemData_m_isExpanded_get, METH_VARARGS | METH_KEYWORDS },
10986 { "wxDirItemData_m_isExpanded_set", (PyCFunction) _wrap_wxDirItemData_m_isExpanded_set, METH_VARARGS | METH_KEYWORDS },
10987 { "wxDirItemData_m_isHidden_get", (PyCFunction) _wrap_wxDirItemData_m_isHidden_get, METH_VARARGS | METH_KEYWORDS },
10988 { "wxDirItemData_m_isHidden_set", (PyCFunction) _wrap_wxDirItemData_m_isHidden_set, METH_VARARGS | METH_KEYWORDS },
10989 { "wxDirItemData_m_name_get", (PyCFunction) _wrap_wxDirItemData_m_name_get, METH_VARARGS | METH_KEYWORDS },
10990 { "wxDirItemData_m_name_set", (PyCFunction) _wrap_wxDirItemData_m_name_set, METH_VARARGS | METH_KEYWORDS },
10991 { "wxDirItemData_m_path_get", (PyCFunction) _wrap_wxDirItemData_m_path_get, METH_VARARGS | METH_KEYWORDS },
10992 { "wxDirItemData_m_path_set", (PyCFunction) _wrap_wxDirItemData_m_path_set, METH_VARARGS | METH_KEYWORDS },
10993 { "wxDirItemData_SetNewDirName", (PyCFunction) _wrap_wxDirItemData_SetNewDirName, METH_VARARGS | METH_KEYWORDS },
10994 { "new_wxDirItemData", (PyCFunction) _wrap_new_wxDirItemData, METH_VARARGS | METH_KEYWORDS },
d426c97e 10995 { "wxTreeCtrl_GetBoundingRect", (PyCFunction) _wrap_wxTreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS },
b1462dfa 10996 { "wxTreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_wxTreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS },
b7e72427
RD
10997 { "wxTreeCtrl_SetItemFont", (PyCFunction) _wrap_wxTreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS },
10998 { "wxTreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS },
10999 { "wxTreeCtrl_SetItemTextColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS },
efc5f224
RD
11000 { "wxTreeCtrl_HitTest", (PyCFunction) _wrap_wxTreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
11001 { "wxTreeCtrl_IsBold", (PyCFunction) _wrap_wxTreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS },
11002 { "wxTreeCtrl_SetItemBold", (PyCFunction) _wrap_wxTreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS },
d426c97e 11003 { "wxTreeCtrl_SortChildren", (PyCFunction) _wrap_wxTreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS },
efc5f224
RD
11004 { "wxTreeCtrl_EndEditLabel", (PyCFunction) _wrap_wxTreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS },
11005 { "wxTreeCtrl_GetEditControl", (PyCFunction) _wrap_wxTreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS },
11006 { "wxTreeCtrl_EditLabel", (PyCFunction) _wrap_wxTreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS },
11007 { "wxTreeCtrl_ScrollTo", (PyCFunction) _wrap_wxTreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS },
11008 { "wxTreeCtrl_EnsureVisible", (PyCFunction) _wrap_wxTreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
11009 { "wxTreeCtrl_SelectItem", (PyCFunction) _wrap_wxTreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS },
11010 { "wxTreeCtrl_UnselectAll", (PyCFunction) _wrap_wxTreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS },
11011 { "wxTreeCtrl_Unselect", (PyCFunction) _wrap_wxTreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS },
11012 { "wxTreeCtrl_Toggle", (PyCFunction) _wrap_wxTreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS },
11013 { "wxTreeCtrl_CollapseAndReset", (PyCFunction) _wrap_wxTreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS },
11014 { "wxTreeCtrl_Collapse", (PyCFunction) _wrap_wxTreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS },
11015 { "wxTreeCtrl_Expand", (PyCFunction) _wrap_wxTreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS },
11016 { "wxTreeCtrl_DeleteAllItems", (PyCFunction) _wrap_wxTreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS },
11017 { "wxTreeCtrl_DeleteChildren", (PyCFunction) _wrap_wxTreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS },
11018 { "wxTreeCtrl_Delete", (PyCFunction) _wrap_wxTreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS },
11019 { "wxTreeCtrl_AppendItem", (PyCFunction) _wrap_wxTreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS },
f6bcfd97 11020 { "wxTreeCtrl_InsertItemBefore", (PyCFunction) _wrap_wxTreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS },
efc5f224
RD
11021 { "wxTreeCtrl_InsertItem", (PyCFunction) _wrap_wxTreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS },
11022 { "wxTreeCtrl_PrependItem", (PyCFunction) _wrap_wxTreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS },
11023 { "wxTreeCtrl_AddRoot", (PyCFunction) _wrap_wxTreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS },
d426c97e 11024 { "wxTreeCtrl_GetLastChild", (PyCFunction) _wrap_wxTreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS },
efc5f224
RD
11025 { "wxTreeCtrl_GetPrevVisible", (PyCFunction) _wrap_wxTreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS },
11026 { "wxTreeCtrl_GetNextVisible", (PyCFunction) _wrap_wxTreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS },
11027 { "wxTreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_wxTreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS },
11028 { "wxTreeCtrl_GetPrevSibling", (PyCFunction) _wrap_wxTreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS },
11029 { "wxTreeCtrl_GetNextSibling", (PyCFunction) _wrap_wxTreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS },
11030 { "wxTreeCtrl_GetNextChild", (PyCFunction) _wrap_wxTreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS },
11031 { "wxTreeCtrl_GetFirstChild", (PyCFunction) _wrap_wxTreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS },
11032 { "wxTreeCtrl_GetChildrenCount", (PyCFunction) _wrap_wxTreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS },
d426c97e 11033 { "wxTreeCtrl_GetSelections", (PyCFunction) _wrap_wxTreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS },
eb715945 11034 { "wxTreeCtrl_GetItemParent", (PyCFunction) _wrap_wxTreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS },
efc5f224
RD
11035 { "wxTreeCtrl_GetSelection", (PyCFunction) _wrap_wxTreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS },
11036 { "wxTreeCtrl_GetRootItem", (PyCFunction) _wrap_wxTreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS },
11037 { "wxTreeCtrl_IsSelected", (PyCFunction) _wrap_wxTreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS },
11038 { "wxTreeCtrl_IsExpanded", (PyCFunction) _wrap_wxTreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS },
11039 { "wxTreeCtrl_ItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS },
11040 { "wxTreeCtrl_IsVisible", (PyCFunction) _wrap_wxTreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS },
11041 { "wxTreeCtrl_SetPyData", (PyCFunction) _wrap_wxTreeCtrl_SetPyData, METH_VARARGS | METH_KEYWORDS },
11042 { "wxTreeCtrl_GetPyData", (PyCFunction) _wrap_wxTreeCtrl_GetPyData, METH_VARARGS | METH_KEYWORDS },
11043 { "wxTreeCtrl_SetItemData", (PyCFunction) _wrap_wxTreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS },
11044 { "wxTreeCtrl_GetItemData", (PyCFunction) _wrap_wxTreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS },
11045 { "wxTreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS },
11046 { "wxTreeCtrl_SetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemSelectedImage, METH_VARARGS | METH_KEYWORDS },
11047 { "wxTreeCtrl_SetItemImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS },
11048 { "wxTreeCtrl_SetItemText", (PyCFunction) _wrap_wxTreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS },
11049 { "wxTreeCtrl_GetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemSelectedImage, METH_VARARGS | METH_KEYWORDS },
11050 { "wxTreeCtrl_GetItemImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS },
11051 { "wxTreeCtrl_GetItemText", (PyCFunction) _wrap_wxTreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS },
b1462dfa
RD
11052 { "wxTreeCtrl_SetSpacing", (PyCFunction) _wrap_wxTreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS },
11053 { "wxTreeCtrl_GetSpacing", (PyCFunction) _wrap_wxTreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS },
00b6c4e3
RD
11054 { "wxTreeCtrl_AssignStateImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS },
11055 { "wxTreeCtrl_AssignImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
efc5f224
RD
11056 { "wxTreeCtrl_SetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS },
11057 { "wxTreeCtrl_SetImageList", (PyCFunction) _wrap_wxTreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
11058 { "wxTreeCtrl_GetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS },
11059 { "wxTreeCtrl_GetImageList", (PyCFunction) _wrap_wxTreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
11060 { "wxTreeCtrl_SetIndent", (PyCFunction) _wrap_wxTreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS },
11061 { "wxTreeCtrl_GetIndent", (PyCFunction) _wrap_wxTreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS },
11062 { "wxTreeCtrl_GetCount", (PyCFunction) _wrap_wxTreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS },
0122b7e3 11063 { "wxTreeCtrl__setCallbackInfo", (PyCFunction) _wrap_wxTreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
09f3d4e6
RD
11064 { "wxTreeCtrl_Create", (PyCFunction) _wrap_wxTreeCtrl_Create, METH_VARARGS | METH_KEYWORDS },
11065 { "new_wxPreTreeCtrl", (PyCFunction) _wrap_new_wxPreTreeCtrl, METH_VARARGS | METH_KEYWORDS },
efc5f224
RD
11066 { "new_wxTreeCtrl", (PyCFunction) _wrap_new_wxTreeCtrl, METH_VARARGS | METH_KEYWORDS },
11067 { "wxTreeEvent_GetLabel", (PyCFunction) _wrap_wxTreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS },
11068 { "wxTreeEvent_GetCode", (PyCFunction) _wrap_wxTreeEvent_GetCode, METH_VARARGS | METH_KEYWORDS },
ecc08ead 11069 { "wxTreeEvent_GetKeyEvent", (PyCFunction) _wrap_wxTreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS },
efc5f224
RD
11070 { "wxTreeEvent_GetPoint", (PyCFunction) _wrap_wxTreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS },
11071 { "wxTreeEvent_GetOldItem", (PyCFunction) _wrap_wxTreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS },
11072 { "wxTreeEvent_GetItem", (PyCFunction) _wrap_wxTreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS },
00b6c4e3 11073 { "new_wxTreeEvent", (PyCFunction) _wrap_new_wxTreeEvent, METH_VARARGS | METH_KEYWORDS },
efc5f224
RD
11074 { "wxTreeItemData_SetId", (PyCFunction) _wrap_wxTreeItemData_SetId, METH_VARARGS | METH_KEYWORDS },
11075 { "wxTreeItemData_GetId", (PyCFunction) _wrap_wxTreeItemData_GetId, METH_VARARGS | METH_KEYWORDS },
11076 { "wxTreeItemData_SetData", (PyCFunction) _wrap_wxTreeItemData_SetData, METH_VARARGS | METH_KEYWORDS },
11077 { "wxTreeItemData_GetData", (PyCFunction) _wrap_wxTreeItemData_GetData, METH_VARARGS | METH_KEYWORDS },
11078 { "new_wxTreeItemData", (PyCFunction) _wrap_new_wxTreeItemData, METH_VARARGS | METH_KEYWORDS },
f6bcfd97 11079 { "wxTreeItemId___cmp__", (PyCFunction) _wrap_wxTreeItemId___cmp__, METH_VARARGS | METH_KEYWORDS },
efc5f224
RD
11080 { "wxTreeItemId_IsOk", (PyCFunction) _wrap_wxTreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS },
11081 { "delete_wxTreeItemId", (PyCFunction) _wrap_delete_wxTreeItemId, METH_VARARGS | METH_KEYWORDS },
11082 { "new_wxTreeItemId", (PyCFunction) _wrap_new_wxTreeItemId, METH_VARARGS | METH_KEYWORDS },
00b6c4e3
RD
11083 { "wxTreeItemAttr_GetFont", (PyCFunction) _wrap_wxTreeItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
11084 { "wxTreeItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
11085 { "wxTreeItemAttr_GetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
11086 { "wxTreeItemAttr_HasFont", (PyCFunction) _wrap_wxTreeItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
11087 { "wxTreeItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
11088 { "wxTreeItemAttr_HasTextColour", (PyCFunction) _wrap_wxTreeItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
11089 { "wxTreeItemAttr_SetFont", (PyCFunction) _wrap_wxTreeItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
11090 { "wxTreeItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
11091 { "wxTreeItemAttr_SetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
11092 { "new_wxTreeItemAttr", (PyCFunction) _wrap_new_wxTreeItemAttr, METH_VARARGS | METH_KEYWORDS },
6d19860f
RD
11093 { "wxListView_ClearColumnImage", (PyCFunction) _wrap_wxListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS },
11094 { "wxListView_SetColumnImage", (PyCFunction) _wrap_wxListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS },
11095 { "wxListView_IsSelected", (PyCFunction) _wrap_wxListView_IsSelected, METH_VARARGS | METH_KEYWORDS },
11096 { "wxListView_GetFirstSelected", (PyCFunction) _wrap_wxListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS },
11097 { "wxListView_GetNextSelected", (PyCFunction) _wrap_wxListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS },
11098 { "wxListView_GetFocusedItem", (PyCFunction) _wrap_wxListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS },
11099 { "wxListView_Focus", (PyCFunction) _wrap_wxListView_Focus, METH_VARARGS | METH_KEYWORDS },
11100 { "wxListView_Select", (PyCFunction) _wrap_wxListView_Select, METH_VARARGS | METH_KEYWORDS },
11101 { "wxListView_Create", (PyCFunction) _wrap_wxListView_Create, METH_VARARGS | METH_KEYWORDS },
11102 { "new_wxPreListView", (PyCFunction) _wrap_new_wxPreListView, METH_VARARGS | METH_KEYWORDS },
11103 { "new_wxListView", (PyCFunction) _wrap_new_wxListView, METH_VARARGS | METH_KEYWORDS },
dcd38683 11104 { "wxListCtrl_SortItems", (PyCFunction) _wrap_wxListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS },
efc5f224 11105 { "wxListCtrl_ScrollList", (PyCFunction) _wrap_wxListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS },
c7e7022c
RD
11106 { "wxListCtrl_SetItemCount", (PyCFunction) _wrap_wxListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS },
11107 { "wxListCtrl_InsertColumn", (PyCFunction) _wrap_wxListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS },
11108 { "wxListCtrl_InsertColumnInfo", (PyCFunction) _wrap_wxListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS },
efc5f224
RD
11109 { "wxListCtrl_InsertImageStringItem", (PyCFunction) _wrap_wxListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS },
11110 { "wxListCtrl_InsertImageItem", (PyCFunction) _wrap_wxListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS },
11111 { "wxListCtrl_InsertStringItem", (PyCFunction) _wrap_wxListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS },
11112 { "wxListCtrl_InsertItem", (PyCFunction) _wrap_wxListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS },
efc5f224 11113 { "wxListCtrl_HitTest", (PyCFunction) _wrap_wxListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS },
efc5f224
RD
11114 { "wxListCtrl_FindItemAtPos", (PyCFunction) _wrap_wxListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS },
11115 { "wxListCtrl_FindItemData", (PyCFunction) _wrap_wxListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS },
11116 { "wxListCtrl_FindItem", (PyCFunction) _wrap_wxListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS },
11117 { "wxListCtrl_EnsureVisible", (PyCFunction) _wrap_wxListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS },
efc5f224
RD
11118 { "wxListCtrl_EndEditLabel", (PyCFunction) _wrap_wxListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS },
11119 { "wxListCtrl_EditLabel", (PyCFunction) _wrap_wxListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS },
11120 { "wxListCtrl_ClearAll", (PyCFunction) _wrap_wxListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS },
11121 { "wxListCtrl_DeleteAllColumns", (PyCFunction) _wrap_wxListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS },
11122 { "wxListCtrl_DeleteColumn", (PyCFunction) _wrap_wxListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS },
11123 { "wxListCtrl_DeleteAllItems", (PyCFunction) _wrap_wxListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS },
11124 { "wxListCtrl_DeleteItem", (PyCFunction) _wrap_wxListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS },
11125 { "wxListCtrl_Arrange", (PyCFunction) _wrap_wxListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS },
c7e7022c
RD
11126 { "wxListCtrl_RefreshItems", (PyCFunction) _wrap_wxListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS },
11127 { "wxListCtrl_RefreshItem", (PyCFunction) _wrap_wxListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS },
11128 { "wxListCtrl_IsVirtual", (PyCFunction) _wrap_wxListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS },
11129 { "wxListCtrl_AssignImageList", (PyCFunction) _wrap_wxListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS },
11130 { "wxListCtrl_SetImageList", (PyCFunction) _wrap_wxListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS },
11131 { "wxListCtrl_GetImageList", (PyCFunction) _wrap_wxListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS },
11132 { "wxListCtrl_GetNextItem", (PyCFunction) _wrap_wxListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS },
11133 { "wxListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_wxListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
11134 { "wxListCtrl_SetSingleStyle", (PyCFunction) _wrap_wxListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS },
11135 { "wxListCtrl_GetTopItem", (PyCFunction) _wrap_wxListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS },
11136 { "wxListCtrl_SetTextColour", (PyCFunction) _wrap_wxListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS },
11137 { "wxListCtrl_GetTextColour", (PyCFunction) _wrap_wxListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS },
11138 { "wxListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_wxListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS },
11139 { "wxListCtrl_GetItemSpacing", (PyCFunction) _wrap_wxListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS },
11140 { "wxListCtrl_GetColumnCount", (PyCFunction) _wrap_wxListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS },
11141 { "wxListCtrl_GetItemCount", (PyCFunction) _wrap_wxListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS },
11142 { "wxListCtrl_SetItemPosition", (PyCFunction) _wrap_wxListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS },
11143 { "wxListCtrl_GetItemRect", (PyCFunction) _wrap_wxListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS },
11144 { "wxListCtrl_GetItemPosition", (PyCFunction) _wrap_wxListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS },
11145 { "wxListCtrl_SetItemData", (PyCFunction) _wrap_wxListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS },
11146 { "wxListCtrl_GetItemData", (PyCFunction) _wrap_wxListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS },
11147 { "wxListCtrl_SetItemText", (PyCFunction) _wrap_wxListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS },
11148 { "wxListCtrl_GetItemText", (PyCFunction) _wrap_wxListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS },
11149 { "wxListCtrl_SetItemImage", (PyCFunction) _wrap_wxListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS },
11150 { "wxListCtrl_SetItemState", (PyCFunction) _wrap_wxListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS },
11151 { "wxListCtrl_GetItemState", (PyCFunction) _wrap_wxListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS },
11152 { "wxListCtrl_SetStringItem", (PyCFunction) _wrap_wxListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS },
11153 { "wxListCtrl_SetItem", (PyCFunction) _wrap_wxListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS },
11154 { "wxListCtrl_GetItem", (PyCFunction) _wrap_wxListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS },
11155 { "wxListCtrl_GetEditControl", (PyCFunction) _wrap_wxListCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS },
11156 { "wxListCtrl_GetCountPerPage", (PyCFunction) _wrap_wxListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS },
11157 { "wxListCtrl_SetColumnWidth", (PyCFunction) _wrap_wxListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS },
11158 { "wxListCtrl_GetColumnWidth", (PyCFunction) _wrap_wxListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS },
11159 { "wxListCtrl_SetColumn", (PyCFunction) _wrap_wxListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS },
11160 { "wxListCtrl_GetColumn", (PyCFunction) _wrap_wxListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS },
11161 { "wxListCtrl_SetBackgroundColour", (PyCFunction) _wrap_wxListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
11162 { "wxListCtrl_SetForegroundColour", (PyCFunction) _wrap_wxListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS },
0122b7e3 11163 { "wxListCtrl__setCallbackInfo", (PyCFunction) _wrap_wxListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
09f3d4e6
RD
11164 { "wxListCtrl_Create", (PyCFunction) _wrap_wxListCtrl_Create, METH_VARARGS | METH_KEYWORDS },
11165 { "new_wxPreListCtrl", (PyCFunction) _wrap_new_wxPreListCtrl, METH_VARARGS | METH_KEYWORDS },
efc5f224 11166 { "new_wxListCtrl", (PyCFunction) _wrap_new_wxListCtrl, METH_VARARGS | METH_KEYWORDS },
6d19860f
RD
11167 { "wxListEvent_GetCacheTo", (PyCFunction) _wrap_wxListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS },
11168 { "wxListEvent_GetCacheFrom", (PyCFunction) _wrap_wxListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS },
f6bcfd97
BP
11169 { "wxListEvent_GetItem", (PyCFunction) _wrap_wxListEvent_GetItem, METH_VARARGS | METH_KEYWORDS },
11170 { "wxListEvent_GetMask", (PyCFunction) _wrap_wxListEvent_GetMask, METH_VARARGS | METH_KEYWORDS },
11171 { "wxListEvent_GetData", (PyCFunction) _wrap_wxListEvent_GetData, METH_VARARGS | METH_KEYWORDS },
11172 { "wxListEvent_GetImage", (PyCFunction) _wrap_wxListEvent_GetImage, METH_VARARGS | METH_KEYWORDS },
11173 { "wxListEvent_GetText", (PyCFunction) _wrap_wxListEvent_GetText, METH_VARARGS | METH_KEYWORDS },
11174 { "wxListEvent_GetLabel", (PyCFunction) _wrap_wxListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS },
11175 { "wxListEvent_GetPoint", (PyCFunction) _wrap_wxListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS },
f6bcfd97 11176 { "wxListEvent_GetColumn", (PyCFunction) _wrap_wxListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS },
f6bcfd97
BP
11177 { "wxListEvent_GetIndex", (PyCFunction) _wrap_wxListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS },
11178 { "wxListEvent_GetCode", (PyCFunction) _wrap_wxListEvent_GetCode, METH_VARARGS | METH_KEYWORDS },
efc5f224
RD
11179 { "wxListEvent_m_item_get", (PyCFunction) _wrap_wxListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS },
11180 { "wxListEvent_m_item_set", (PyCFunction) _wrap_wxListEvent_m_item_set, METH_VARARGS | METH_KEYWORDS },
11181 { "wxListEvent_m_pointDrag_get", (PyCFunction) _wrap_wxListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS },
11182 { "wxListEvent_m_pointDrag_set", (PyCFunction) _wrap_wxListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS },
efc5f224
RD
11183 { "wxListEvent_m_col_get", (PyCFunction) _wrap_wxListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS },
11184 { "wxListEvent_m_col_set", (PyCFunction) _wrap_wxListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS },
efc5f224
RD
11185 { "wxListEvent_m_itemIndex_get", (PyCFunction) _wrap_wxListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS },
11186 { "wxListEvent_m_itemIndex_set", (PyCFunction) _wrap_wxListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS },
ebf4302c
RD
11187 { "wxListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS },
11188 { "wxListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS },
efc5f224
RD
11189 { "wxListEvent_m_code_get", (PyCFunction) _wrap_wxListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS },
11190 { "wxListEvent_m_code_set", (PyCFunction) _wrap_wxListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS },
6d19860f 11191 { "new_wxListEvent", (PyCFunction) _wrap_new_wxListEvent, METH_VARARGS | METH_KEYWORDS },
efc5f224
RD
11192 { "wxListItem_m_width_get", (PyCFunction) _wrap_wxListItem_m_width_get, METH_VARARGS | METH_KEYWORDS },
11193 { "wxListItem_m_width_set", (PyCFunction) _wrap_wxListItem_m_width_set, METH_VARARGS | METH_KEYWORDS },
11194 { "wxListItem_m_format_get", (PyCFunction) _wrap_wxListItem_m_format_get, METH_VARARGS | METH_KEYWORDS },
11195 { "wxListItem_m_format_set", (PyCFunction) _wrap_wxListItem_m_format_set, METH_VARARGS | METH_KEYWORDS },
11196 { "wxListItem_m_data_get", (PyCFunction) _wrap_wxListItem_m_data_get, METH_VARARGS | METH_KEYWORDS },
11197 { "wxListItem_m_data_set", (PyCFunction) _wrap_wxListItem_m_data_set, METH_VARARGS | METH_KEYWORDS },
11198 { "wxListItem_m_image_get", (PyCFunction) _wrap_wxListItem_m_image_get, METH_VARARGS | METH_KEYWORDS },
11199 { "wxListItem_m_image_set", (PyCFunction) _wrap_wxListItem_m_image_set, METH_VARARGS | METH_KEYWORDS },
11200 { "wxListItem_m_text_get", (PyCFunction) _wrap_wxListItem_m_text_get, METH_VARARGS | METH_KEYWORDS },
11201 { "wxListItem_m_text_set", (PyCFunction) _wrap_wxListItem_m_text_set, METH_VARARGS | METH_KEYWORDS },
11202 { "wxListItem_m_stateMask_get", (PyCFunction) _wrap_wxListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS },
11203 { "wxListItem_m_stateMask_set", (PyCFunction) _wrap_wxListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS },
11204 { "wxListItem_m_state_get", (PyCFunction) _wrap_wxListItem_m_state_get, METH_VARARGS | METH_KEYWORDS },
11205 { "wxListItem_m_state_set", (PyCFunction) _wrap_wxListItem_m_state_set, METH_VARARGS | METH_KEYWORDS },
11206 { "wxListItem_m_col_get", (PyCFunction) _wrap_wxListItem_m_col_get, METH_VARARGS | METH_KEYWORDS },
11207 { "wxListItem_m_col_set", (PyCFunction) _wrap_wxListItem_m_col_set, METH_VARARGS | METH_KEYWORDS },
11208 { "wxListItem_m_itemId_get", (PyCFunction) _wrap_wxListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS },
11209 { "wxListItem_m_itemId_set", (PyCFunction) _wrap_wxListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS },
11210 { "wxListItem_m_mask_get", (PyCFunction) _wrap_wxListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS },
11211 { "wxListItem_m_mask_set", (PyCFunction) _wrap_wxListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS },
f6bcfd97
BP
11212 { "wxListItem_GetFont", (PyCFunction) _wrap_wxListItem_GetFont, METH_VARARGS | METH_KEYWORDS },
11213 { "wxListItem_GetBackgroundColour", (PyCFunction) _wrap_wxListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
11214 { "wxListItem_GetTextColour", (PyCFunction) _wrap_wxListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS },
11215 { "wxListItem_HasAttributes", (PyCFunction) _wrap_wxListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS },
11216 { "wxListItem_GetAttributes", (PyCFunction) _wrap_wxListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS },
11217 { "wxListItem_GetAlign", (PyCFunction) _wrap_wxListItem_GetAlign, METH_VARARGS | METH_KEYWORDS },
11218 { "wxListItem_GetWidth", (PyCFunction) _wrap_wxListItem_GetWidth, METH_VARARGS | METH_KEYWORDS },
11219 { "wxListItem_GetData", (PyCFunction) _wrap_wxListItem_GetData, METH_VARARGS | METH_KEYWORDS },
11220 { "wxListItem_GetImage", (PyCFunction) _wrap_wxListItem_GetImage, METH_VARARGS | METH_KEYWORDS },
11221 { "wxListItem_GetText", (PyCFunction) _wrap_wxListItem_GetText, METH_VARARGS | METH_KEYWORDS },
11222 { "wxListItem_GetState", (PyCFunction) _wrap_wxListItem_GetState, METH_VARARGS | METH_KEYWORDS },
11223 { "wxListItem_GetColumn", (PyCFunction) _wrap_wxListItem_GetColumn, METH_VARARGS | METH_KEYWORDS },
11224 { "wxListItem_GetId", (PyCFunction) _wrap_wxListItem_GetId, METH_VARARGS | METH_KEYWORDS },
11225 { "wxListItem_GetMask", (PyCFunction) _wrap_wxListItem_GetMask, METH_VARARGS | METH_KEYWORDS },
11226 { "wxListItem_SetFont", (PyCFunction) _wrap_wxListItem_SetFont, METH_VARARGS | METH_KEYWORDS },
11227 { "wxListItem_SetBackgroundColour", (PyCFunction) _wrap_wxListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
11228 { "wxListItem_SetTextColour", (PyCFunction) _wrap_wxListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS },
11229 { "wxListItem_SetAlign", (PyCFunction) _wrap_wxListItem_SetAlign, METH_VARARGS | METH_KEYWORDS },
11230 { "wxListItem_SetWidth", (PyCFunction) _wrap_wxListItem_SetWidth, METH_VARARGS | METH_KEYWORDS },
11231 { "wxListItem_SetData", (PyCFunction) _wrap_wxListItem_SetData, METH_VARARGS | METH_KEYWORDS },
11232 { "wxListItem_SetImage", (PyCFunction) _wrap_wxListItem_SetImage, METH_VARARGS | METH_KEYWORDS },
11233 { "wxListItem_SetText", (PyCFunction) _wrap_wxListItem_SetText, METH_VARARGS | METH_KEYWORDS },
11234 { "wxListItem_SetStateMask", (PyCFunction) _wrap_wxListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS },
11235 { "wxListItem_SetState", (PyCFunction) _wrap_wxListItem_SetState, METH_VARARGS | METH_KEYWORDS },
11236 { "wxListItem_SetColumn", (PyCFunction) _wrap_wxListItem_SetColumn, METH_VARARGS | METH_KEYWORDS },
11237 { "wxListItem_SetId", (PyCFunction) _wrap_wxListItem_SetId, METH_VARARGS | METH_KEYWORDS },
11238 { "wxListItem_SetMask", (PyCFunction) _wrap_wxListItem_SetMask, METH_VARARGS | METH_KEYWORDS },
11239 { "wxListItem_ClearAttributes", (PyCFunction) _wrap_wxListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS },
11240 { "wxListItem_Clear", (PyCFunction) _wrap_wxListItem_Clear, METH_VARARGS | METH_KEYWORDS },
11241 { "delete_wxListItem", (PyCFunction) _wrap_delete_wxListItem, METH_VARARGS | METH_KEYWORDS },
11242 { "new_wxListItem", (PyCFunction) _wrap_new_wxListItem, METH_VARARGS | METH_KEYWORDS },
11243 { "wxListItemAttr_GetFont", (PyCFunction) _wrap_wxListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS },
11244 { "wxListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
11245 { "wxListItemAttr_GetTextColour", (PyCFunction) _wrap_wxListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS },
11246 { "wxListItemAttr_HasFont", (PyCFunction) _wrap_wxListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS },
11247 { "wxListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS },
11248 { "wxListItemAttr_HasTextColour", (PyCFunction) _wrap_wxListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS },
11249 { "wxListItemAttr_SetFont", (PyCFunction) _wrap_wxListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS },
11250 { "wxListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
11251 { "wxListItemAttr_SetTextColour", (PyCFunction) _wrap_wxListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS },
11252 { "new_wxListItemAttr", (PyCFunction) _wrap_new_wxListItemAttr, METH_VARARGS | METH_KEYWORDS },
8ab979d7
RD
11253 { NULL, NULL }
11254};
1d99702e
RD
11255#ifdef __cplusplus
11256}
11257#endif
11258/*
11259 * This table is used by the pointer type-checker
11260 */
11261static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
1d99702e 11262 { "_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent},
1d99702e 11263 { "_wxEvent","_wxListEvent",SwigwxListEventTowxEvent},
1d99702e 11264 { "_signed_long","_long",0},
b1462dfa 11265 { "_wxPrintQuality","_wxCoord",0},
1d99702e
RD
11266 { "_wxPrintQuality","_int",0},
11267 { "_wxPrintQuality","_signed_int",0},
11268 { "_wxPrintQuality","_unsigned_int",0},
11269 { "_wxPrintQuality","_wxWindowID",0},
11270 { "_wxPrintQuality","_uint",0},
11271 { "_wxPrintQuality","_EBool",0},
11272 { "_wxPrintQuality","_size_t",0},
c368d904 11273 { "_wxPrintQuality","_time_t",0},
1d99702e 11274 { "_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent},
c368d904 11275 { "_wxNotifyEvent","_wxListEvent",SwigwxListEventTowxNotifyEvent},
1d99702e 11276 { "_byte","_unsigned_char",0},
68320e40 11277 { "_wxChoice","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxChoice},
1d99702e
RD
11278 { "_long","_unsigned_long",0},
11279 { "_long","_signed_long",0},
b1462dfa 11280 { "_size_t","_wxCoord",0},
1d99702e 11281 { "_size_t","_wxPrintQuality",0},
c368d904 11282 { "_size_t","_time_t",0},
1d99702e
RD
11283 { "_size_t","_unsigned_int",0},
11284 { "_size_t","_int",0},
11285 { "_size_t","_wxWindowID",0},
11286 { "_size_t","_uint",0},
b1462dfa 11287 { "_uint","_wxCoord",0},
1d99702e 11288 { "_uint","_wxPrintQuality",0},
c368d904 11289 { "_uint","_time_t",0},
1d99702e
RD
11290 { "_uint","_size_t",0},
11291 { "_uint","_unsigned_int",0},
11292 { "_uint","_int",0},
11293 { "_uint","_wxWindowID",0},
f6bcfd97 11294 { "_wxChar","_char",0},
1d99702e 11295 { "_wxCommandEvent","_wxTreeEvent",SwigwxTreeEventTowxCommandEvent},
1d99702e 11296 { "_wxCommandEvent","_wxListEvent",SwigwxListEventTowxCommandEvent},
f6bcfd97 11297 { "_char","_wxChar",0},
cdf14688 11298 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
b1462dfa 11299 { "_EBool","_wxCoord",0},
1d99702e
RD
11300 { "_EBool","_wxPrintQuality",0},
11301 { "_EBool","_signed_int",0},
11302 { "_EBool","_int",0},
11303 { "_EBool","_wxWindowID",0},
1d99702e 11304 { "_unsigned_long","_long",0},
cdf14688 11305 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
b1462dfa 11306 { "_signed_int","_wxCoord",0},
1d99702e
RD
11307 { "_signed_int","_wxPrintQuality",0},
11308 { "_signed_int","_EBool",0},
11309 { "_signed_int","_wxWindowID",0},
11310 { "_signed_int","_int",0},
1d99702e
RD
11311 { "_WXTYPE","_short",0},
11312 { "_WXTYPE","_signed_short",0},
11313 { "_WXTYPE","_unsigned_short",0},
1d99702e
RD
11314 { "_unsigned_short","_WXTYPE",0},
11315 { "_unsigned_short","_short",0},
68320e40
RD
11316 { "_wxObject","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxObject},
11317 { "_wxObject","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxObject},
11318 { "_wxObject","_wxDirItemData",SwigwxDirItemDataTowxObject},
9416aa89 11319 { "_wxObject","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxObject},
9416aa89 11320 { "_wxObject","_wxTreeEvent",SwigwxTreeEventTowxObject},
9416aa89 11321 { "_wxObject","_wxPyTreeItemData",SwigwxPyTreeItemDataTowxObject},
6d19860f 11322 { "_wxObject","_wxListView",SwigwxListViewTowxObject},
c7e7022c 11323 { "_wxObject","_wxPyListCtrl",SwigwxPyListCtrlTowxObject},
9416aa89 11324 { "_wxObject","_wxListEvent",SwigwxListEventTowxObject},
9416aa89 11325 { "_wxObject","_wxListItem",SwigwxListItemTowxObject},
1d99702e
RD
11326 { "_signed_short","_WXTYPE",0},
11327 { "_signed_short","_short",0},
1d99702e 11328 { "_unsigned_char","_byte",0},
68320e40
RD
11329 { "_wxControl","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxControl},
11330 { "_wxControl","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxControl},
f6bcfd97 11331 { "_wxControl","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl},
6d19860f 11332 { "_wxControl","_wxListView",SwigwxListViewTowxControl},
c7e7022c 11333 { "_wxControl","_wxPyListCtrl",SwigwxPyListCtrlTowxControl},
b1462dfa 11334 { "_unsigned_int","_wxCoord",0},
1d99702e 11335 { "_unsigned_int","_wxPrintQuality",0},
c368d904 11336 { "_unsigned_int","_time_t",0},
1d99702e
RD
11337 { "_unsigned_int","_size_t",0},
11338 { "_unsigned_int","_uint",0},
11339 { "_unsigned_int","_wxWindowID",0},
11340 { "_unsigned_int","_int",0},
1d99702e
RD
11341 { "_short","_WXTYPE",0},
11342 { "_short","_unsigned_short",0},
11343 { "_short","_signed_short",0},
68320e40 11344 { "_wxControlWithItems","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxControlWithItems},
b1462dfa 11345 { "_wxWindowID","_wxCoord",0},
1d99702e 11346 { "_wxWindowID","_wxPrintQuality",0},
c368d904 11347 { "_wxWindowID","_time_t",0},
1d99702e
RD
11348 { "_wxWindowID","_size_t",0},
11349 { "_wxWindowID","_EBool",0},
11350 { "_wxWindowID","_uint",0},
11351 { "_wxWindowID","_int",0},
11352 { "_wxWindowID","_signed_int",0},
11353 { "_wxWindowID","_unsigned_int",0},
b1462dfa 11354 { "_int","_wxCoord",0},
1d99702e 11355 { "_int","_wxPrintQuality",0},
c368d904 11356 { "_int","_time_t",0},
1d99702e
RD
11357 { "_int","_size_t",0},
11358 { "_int","_EBool",0},
11359 { "_int","_uint",0},
11360 { "_int","_wxWindowID",0},
11361 { "_int","_unsigned_int",0},
11362 { "_int","_signed_int",0},
c368d904
RD
11363 { "_time_t","_wxCoord",0},
11364 { "_time_t","_wxPrintQuality",0},
11365 { "_time_t","_unsigned_int",0},
11366 { "_time_t","_int",0},
11367 { "_time_t","_wxWindowID",0},
11368 { "_time_t","_uint",0},
11369 { "_time_t","_size_t",0},
b1462dfa
RD
11370 { "_wxCoord","_int",0},
11371 { "_wxCoord","_signed_int",0},
11372 { "_wxCoord","_unsigned_int",0},
11373 { "_wxCoord","_wxWindowID",0},
11374 { "_wxCoord","_uint",0},
11375 { "_wxCoord","_EBool",0},
11376 { "_wxCoord","_size_t",0},
c368d904 11377 { "_wxCoord","_time_t",0},
b1462dfa 11378 { "_wxCoord","_wxPrintQuality",0},
6d19860f 11379 { "_wxPyListCtrl","_wxListView",SwigwxListViewTowxPyListCtrl},
68320e40
RD
11380 { "_wxEvtHandler","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxEvtHandler},
11381 { "_wxEvtHandler","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxEvtHandler},
f6bcfd97 11382 { "_wxEvtHandler","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler},
6d19860f 11383 { "_wxEvtHandler","_wxListView",SwigwxListViewTowxEvtHandler},
c7e7022c 11384 { "_wxEvtHandler","_wxPyListCtrl",SwigwxPyListCtrlTowxEvtHandler},
68320e40
RD
11385 { "_wxWindow","_wxDirFilterListCtrl",SwigwxDirFilterListCtrlTowxWindow},
11386 { "_wxWindow","_wxGenericDirCtrl",SwigwxGenericDirCtrlTowxWindow},
f6bcfd97 11387 { "_wxWindow","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow},
6d19860f 11388 { "_wxWindow","_wxListView",SwigwxListViewTowxWindow},
c7e7022c 11389 { "_wxWindow","_wxPyListCtrl",SwigwxPyListCtrlTowxWindow},
1d99702e
RD
11390{0,0,0}};
11391
8ab979d7
RD
11392static PyObject *SWIG_globals;
11393#ifdef __cplusplus
11394extern "C"
11395#endif
1d99702e 11396SWIGEXPORT(void) initcontrols2c() {
8ab979d7
RD
11397 PyObject *m, *d;
11398 SWIG_globals = SWIG_newvarlink();
11399 m = Py_InitModule("controls2c", controls2cMethods);
11400 d = PyModule_GetDict(m);
c7e7022c
RD
11401 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_DRAG));
11402 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_RDRAG));
11403 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
11404 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_END_LABEL_EDIT));
11405 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ITEM));
11406 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
11407 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_GET_INFO));
11408 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_SET_INFO));
11409 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_SELECTED));
11410 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_DESELECTED));
11411 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_LIST_KEY_DOWN));
11412 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_INSERT_ITEM));
11413 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_CLICK));
11414 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
11415 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
11416 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
11417 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_CACHE_HINT));
6d19860f
RD
11418 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
11419 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
11420 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_DRAGGING));
11421 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_END_DRAG));
d8200036 11422 PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_FOCUSED));
c7e7022c
RD
11423 PyDict_SetItemString(d,"wxLC_VRULES", PyInt_FromLong((long) wxLC_VRULES));
11424 PyDict_SetItemString(d,"wxLC_HRULES", PyInt_FromLong((long) wxLC_HRULES));
11425 PyDict_SetItemString(d,"wxLC_ICON", PyInt_FromLong((long) wxLC_ICON));
11426 PyDict_SetItemString(d,"wxLC_SMALL_ICON", PyInt_FromLong((long) wxLC_SMALL_ICON));
11427 PyDict_SetItemString(d,"wxLC_LIST", PyInt_FromLong((long) wxLC_LIST));
11428 PyDict_SetItemString(d,"wxLC_REPORT", PyInt_FromLong((long) wxLC_REPORT));
11429 PyDict_SetItemString(d,"wxLC_ALIGN_TOP", PyInt_FromLong((long) wxLC_ALIGN_TOP));
11430 PyDict_SetItemString(d,"wxLC_ALIGN_LEFT", PyInt_FromLong((long) wxLC_ALIGN_LEFT));
11431 PyDict_SetItemString(d,"wxLC_AUTOARRANGE", PyInt_FromLong((long) wxLC_AUTOARRANGE));
11432 PyDict_SetItemString(d,"wxLC_VIRTUAL", PyInt_FromLong((long) wxLC_VIRTUAL));
11433 PyDict_SetItemString(d,"wxLC_EDIT_LABELS", PyInt_FromLong((long) wxLC_EDIT_LABELS));
11434 PyDict_SetItemString(d,"wxLC_NO_HEADER", PyInt_FromLong((long) wxLC_NO_HEADER));
11435 PyDict_SetItemString(d,"wxLC_NO_SORT_HEADER", PyInt_FromLong((long) wxLC_NO_SORT_HEADER));
11436 PyDict_SetItemString(d,"wxLC_SINGLE_SEL", PyInt_FromLong((long) wxLC_SINGLE_SEL));
11437 PyDict_SetItemString(d,"wxLC_SORT_ASCENDING", PyInt_FromLong((long) wxLC_SORT_ASCENDING));
11438 PyDict_SetItemString(d,"wxLC_SORT_DESCENDING", PyInt_FromLong((long) wxLC_SORT_DESCENDING));
11439 PyDict_SetItemString(d,"wxLC_MASK_TYPE", PyInt_FromLong((long) wxLC_MASK_TYPE));
11440 PyDict_SetItemString(d,"wxLC_MASK_ALIGN", PyInt_FromLong((long) wxLC_MASK_ALIGN));
11441 PyDict_SetItemString(d,"wxLC_MASK_SORT", PyInt_FromLong((long) wxLC_MASK_SORT));
6d19860f 11442 PyDict_SetItemString(d,"wxLC_USER_TEXT", PyInt_FromLong((long) wxLC_USER_TEXT));
c7e7022c 11443 PyDict_SetItemString(d,"wxLIST_MASK_STATE", PyInt_FromLong((long) wxLIST_MASK_STATE));
af309447
RD
11444 PyDict_SetItemString(d,"wxLIST_MASK_TEXT", PyInt_FromLong((long) wxLIST_MASK_TEXT));
11445 PyDict_SetItemString(d,"wxLIST_MASK_IMAGE", PyInt_FromLong((long) wxLIST_MASK_IMAGE));
11446 PyDict_SetItemString(d,"wxLIST_MASK_DATA", PyInt_FromLong((long) wxLIST_MASK_DATA));
c7e7022c 11447 PyDict_SetItemString(d,"wxLIST_SET_ITEM", PyInt_FromLong((long) wxLIST_SET_ITEM));
af309447
RD
11448 PyDict_SetItemString(d,"wxLIST_MASK_WIDTH", PyInt_FromLong((long) wxLIST_MASK_WIDTH));
11449 PyDict_SetItemString(d,"wxLIST_MASK_FORMAT", PyInt_FromLong((long) wxLIST_MASK_FORMAT));
11450 PyDict_SetItemString(d,"wxLIST_STATE_DONTCARE", PyInt_FromLong((long) wxLIST_STATE_DONTCARE));
11451 PyDict_SetItemString(d,"wxLIST_STATE_DROPHILITED", PyInt_FromLong((long) wxLIST_STATE_DROPHILITED));
11452 PyDict_SetItemString(d,"wxLIST_STATE_FOCUSED", PyInt_FromLong((long) wxLIST_STATE_FOCUSED));
11453 PyDict_SetItemString(d,"wxLIST_STATE_SELECTED", PyInt_FromLong((long) wxLIST_STATE_SELECTED));
11454 PyDict_SetItemString(d,"wxLIST_STATE_CUT", PyInt_FromLong((long) wxLIST_STATE_CUT));
11455 PyDict_SetItemString(d,"wxLIST_HITTEST_ABOVE", PyInt_FromLong((long) wxLIST_HITTEST_ABOVE));
11456 PyDict_SetItemString(d,"wxLIST_HITTEST_BELOW", PyInt_FromLong((long) wxLIST_HITTEST_BELOW));
11457 PyDict_SetItemString(d,"wxLIST_HITTEST_NOWHERE", PyInt_FromLong((long) wxLIST_HITTEST_NOWHERE));
11458 PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMICON));
11459 PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMLABEL));
11460 PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMRIGHT));
11461 PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMSTATEICON));
11462 PyDict_SetItemString(d,"wxLIST_HITTEST_TOLEFT", PyInt_FromLong((long) wxLIST_HITTEST_TOLEFT));
11463 PyDict_SetItemString(d,"wxLIST_HITTEST_TORIGHT", PyInt_FromLong((long) wxLIST_HITTEST_TORIGHT));
11464 PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEM", PyInt_FromLong((long) wxLIST_HITTEST_ONITEM));
11465 PyDict_SetItemString(d,"wxLIST_NEXT_ABOVE", PyInt_FromLong((long) wxLIST_NEXT_ABOVE));
11466 PyDict_SetItemString(d,"wxLIST_NEXT_ALL", PyInt_FromLong((long) wxLIST_NEXT_ALL));
11467 PyDict_SetItemString(d,"wxLIST_NEXT_BELOW", PyInt_FromLong((long) wxLIST_NEXT_BELOW));
11468 PyDict_SetItemString(d,"wxLIST_NEXT_LEFT", PyInt_FromLong((long) wxLIST_NEXT_LEFT));
11469 PyDict_SetItemString(d,"wxLIST_NEXT_RIGHT", PyInt_FromLong((long) wxLIST_NEXT_RIGHT));
11470 PyDict_SetItemString(d,"wxLIST_ALIGN_DEFAULT", PyInt_FromLong((long) wxLIST_ALIGN_DEFAULT));
11471 PyDict_SetItemString(d,"wxLIST_ALIGN_LEFT", PyInt_FromLong((long) wxLIST_ALIGN_LEFT));
11472 PyDict_SetItemString(d,"wxLIST_ALIGN_TOP", PyInt_FromLong((long) wxLIST_ALIGN_TOP));
11473 PyDict_SetItemString(d,"wxLIST_ALIGN_SNAP_TO_GRID", PyInt_FromLong((long) wxLIST_ALIGN_SNAP_TO_GRID));
af309447
RD
11474 PyDict_SetItemString(d,"wxLIST_AUTOSIZE", PyInt_FromLong((long) wxLIST_AUTOSIZE));
11475 PyDict_SetItemString(d,"wxLIST_AUTOSIZE_USEHEADER", PyInt_FromLong((long) wxLIST_AUTOSIZE_USEHEADER));
11476 PyDict_SetItemString(d,"wxLIST_RECT_BOUNDS", PyInt_FromLong((long) wxLIST_RECT_BOUNDS));
11477 PyDict_SetItemString(d,"wxLIST_RECT_ICON", PyInt_FromLong((long) wxLIST_RECT_ICON));
11478 PyDict_SetItemString(d,"wxLIST_RECT_LABEL", PyInt_FromLong((long) wxLIST_RECT_LABEL));
11479 PyDict_SetItemString(d,"wxLIST_FIND_UP", PyInt_FromLong((long) wxLIST_FIND_UP));
11480 PyDict_SetItemString(d,"wxLIST_FIND_DOWN", PyInt_FromLong((long) wxLIST_FIND_DOWN));
11481 PyDict_SetItemString(d,"wxLIST_FIND_LEFT", PyInt_FromLong((long) wxLIST_FIND_LEFT));
11482 PyDict_SetItemString(d,"wxLIST_FIND_RIGHT", PyInt_FromLong((long) wxLIST_FIND_RIGHT));
f6bcfd97
BP
11483 PyDict_SetItemString(d,"wxLIST_FORMAT_LEFT", PyInt_FromLong((long) wxLIST_FORMAT_LEFT));
11484 PyDict_SetItemString(d,"wxLIST_FORMAT_RIGHT", PyInt_FromLong((long) wxLIST_FORMAT_RIGHT));
11485 PyDict_SetItemString(d,"wxLIST_FORMAT_CENTRE", PyInt_FromLong((long) wxLIST_FORMAT_CENTRE));
11486 PyDict_SetItemString(d,"wxLIST_FORMAT_CENTER", PyInt_FromLong((long) wxLIST_FORMAT_CENTER));
00b6c4e3
RD
11487 PyDict_SetItemString(d,"wxTR_NO_BUTTONS", PyInt_FromLong((long) wxTR_NO_BUTTONS));
11488 PyDict_SetItemString(d,"wxTR_HAS_BUTTONS", PyInt_FromLong((long) wxTR_HAS_BUTTONS));
11489 PyDict_SetItemString(d,"wxTR_TWIST_BUTTONS", PyInt_FromLong((long) wxTR_TWIST_BUTTONS));
11490 PyDict_SetItemString(d,"wxTR_NO_LINES", PyInt_FromLong((long) wxTR_NO_LINES));
11491 PyDict_SetItemString(d,"wxTR_MAC_BUTTONS", PyInt_FromLong((long) wxTR_MAC_BUTTONS));
b5a5d647 11492 PyDict_SetItemString(d,"wxTR_AQUA_BUTTONS", PyInt_FromLong((long) wxTR_AQUA_BUTTONS));
00b6c4e3
RD
11493 PyDict_SetItemString(d,"wxTR_SINGLE", PyInt_FromLong((long) wxTR_SINGLE));
11494 PyDict_SetItemString(d,"wxTR_MULTIPLE", PyInt_FromLong((long) wxTR_MULTIPLE));
11495 PyDict_SetItemString(d,"wxTR_EXTENDED", PyInt_FromLong((long) wxTR_EXTENDED));
b5a5d647 11496 PyDict_SetItemString(d,"wxTR_FULL_ROW_HIGHLIGHT", PyInt_FromLong((long) wxTR_FULL_ROW_HIGHLIGHT));
00b6c4e3
RD
11497 PyDict_SetItemString(d,"wxTR_EDIT_LABELS", PyInt_FromLong((long) wxTR_EDIT_LABELS));
11498 PyDict_SetItemString(d,"wxTR_LINES_AT_ROOT", PyInt_FromLong((long) wxTR_LINES_AT_ROOT));
11499 PyDict_SetItemString(d,"wxTR_HIDE_ROOT", PyInt_FromLong((long) wxTR_HIDE_ROOT));
11500 PyDict_SetItemString(d,"wxTR_ROW_LINES", PyInt_FromLong((long) wxTR_ROW_LINES));
11501 PyDict_SetItemString(d,"wxTR_HAS_VARIABLE_ROW_HEIGHT", PyInt_FromLong((long) wxTR_HAS_VARIABLE_ROW_HEIGHT));
11502 PyDict_SetItemString(d,"wxTR_DEFAULT_STYLE", PyInt_FromLong((long) wxTR_DEFAULT_STYLE));
694759cf
RD
11503 PyDict_SetItemString(d,"wxTreeItemIcon_Normal", PyInt_FromLong((long) wxTreeItemIcon_Normal));
11504 PyDict_SetItemString(d,"wxTreeItemIcon_Selected", PyInt_FromLong((long) wxTreeItemIcon_Selected));
11505 PyDict_SetItemString(d,"wxTreeItemIcon_Expanded", PyInt_FromLong((long) wxTreeItemIcon_Expanded));
11506 PyDict_SetItemString(d,"wxTreeItemIcon_SelectedExpanded", PyInt_FromLong((long) wxTreeItemIcon_SelectedExpanded));
11507 PyDict_SetItemString(d,"wxTreeItemIcon_Max", PyInt_FromLong((long) wxTreeItemIcon_Max));
164b735b
RD
11508 PyDict_SetItemString(d,"wxTREE_HITTEST_ABOVE", PyInt_FromLong((long) wxTREE_HITTEST_ABOVE));
11509 PyDict_SetItemString(d,"wxTREE_HITTEST_BELOW", PyInt_FromLong((long) wxTREE_HITTEST_BELOW));
11510 PyDict_SetItemString(d,"wxTREE_HITTEST_NOWHERE", PyInt_FromLong((long) wxTREE_HITTEST_NOWHERE));
11511 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMBUTTON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMBUTTON));
11512 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMICON));
11513 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMINDENT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMINDENT));
11514 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLABEL));
11515 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMRIGHT));
11516 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMSTATEICON));
11517 PyDict_SetItemString(d,"wxTREE_HITTEST_TOLEFT", PyInt_FromLong((long) wxTREE_HITTEST_TOLEFT));
11518 PyDict_SetItemString(d,"wxTREE_HITTEST_TORIGHT", PyInt_FromLong((long) wxTREE_HITTEST_TORIGHT));
11519 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMUPPERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMUPPERPART));
11520 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLOWERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLOWERPART));
11521 PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEM", PyInt_FromLong((long) wxTREE_HITTEST_ONITEM));
1b62f00d
RD
11522 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_DRAG));
11523 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_RDRAG));
11524 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
11525 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_LABEL_EDIT));
11526 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_TREE_DELETE_ITEM));
11527 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_GET_INFO));
11528 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SET_INFO));
11529 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDED));
11530 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDING));
11531 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
11532 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
11533 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGED));
11534 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGING));
11535 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_TREE_KEY_DOWN));
11536 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
11537 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
11538 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
d1679124 11539 PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_DRAG));
68320e40
RD
11540 PyDict_SetItemString(d,"wxDIRCTRL_DIR_ONLY", PyInt_FromLong((long) wxDIRCTRL_DIR_ONLY));
11541 PyDict_SetItemString(d,"wxDIRCTRL_SELECT_FIRST", PyInt_FromLong((long) wxDIRCTRL_SELECT_FIRST));
11542 PyDict_SetItemString(d,"wxDIRCTRL_SHOW_FILTERS", PyInt_FromLong((long) wxDIRCTRL_SHOW_FILTERS));
11543 PyDict_SetItemString(d,"wxDIRCTRL_3D_INTERNAL", PyInt_FromLong((long) wxDIRCTRL_3D_INTERNAL));
9416aa89 11544
a3fbed81 11545 // Map renamed classes back to their common name for OOR
9416aa89
RD
11546 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
11547 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
a3fbed81 11548 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
1d99702e
RD
11549{
11550 int i;
11551 for (i = 0; _swig_mapping[i].n1; i++)
11552 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
11553}
8ab979d7 11554}