]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/msw/controls2.cpp
removed a test value left in by accident
[wxWidgets.git] / utils / wxPython / src / msw / controls2.cpp
1 /*
2 * FILE : msw/controls2.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Patch 6)
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)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
28 # else
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
31 # else
32 # define SWIGEXPORT(a) a
33 # endif
34 # endif
35 #else
36 # define SWIGEXPORT(a) a
37 #endif
38
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
42 #include "Python.h"
43 extern void SWIG_MakePtr(char *, void *, char *);
44 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
45 extern char *SWIG_GetPtr(char *, void **, char *);
46 extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
47 extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
48 extern PyObject *SWIG_newvarlink(void);
49 #ifdef __cplusplus
50 }
51 #endif
52 #define SWIG_init initcontrols2c
53
54 #define SWIG_name "controls2c"
55
56 #include "helpers.h"
57 #include <wx/listctrl.h>
58 #include <wx/treectrl.h>
59
60 static PyObject* l_output_helper(PyObject* target, PyObject* o) {
61 PyObject* o2;
62 PyObject* o3;
63 if (!target) {
64 target = o;
65 } else if (target == Py_None) {
66 Py_DECREF(Py_None);
67 target = o;
68 } else {
69 if (!PyList_Check(target)) {
70 o2 = target;
71 target = PyList_New(0);
72 PyList_Append(target, o2);
73 Py_XDECREF(o2);
74 }
75 PyList_Append(target,o);
76 Py_XDECREF(o);
77 }
78 return target;
79 }
80
81 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
82 PyObject* o2;
83 PyObject* o3;
84
85 if (!target) {
86 target = o;
87 } else if (target == Py_None) {
88 Py_DECREF(Py_None);
89 target = o;
90 } else {
91 if (!PyTuple_Check(target)) {
92 o2 = target;
93 target = PyTuple_New(1);
94 PyTuple_SetItem(target, 0, o2);
95 }
96 o3 = PyTuple_New(1);
97 PyTuple_SetItem(o3, 0, o);
98
99 o2 = target;
100 target = PySequence_Concat(o2, o3);
101 Py_DECREF(o2);
102 Py_DECREF(o3);
103 }
104 return target;
105 }
106
107
108 extern byte* byte_LIST_helper(PyObject* source);
109 extern int* int_LIST_helper(PyObject* source);
110 extern long* long_LIST_helper(PyObject* source);
111 extern char** string_LIST_helper(PyObject* source);
112 extern wxPoint* wxPoint_LIST_helper(PyObject* source);
113 extern wxBitmap** wxBitmap_LIST_helper(PyObject* source);
114 extern wxString* wxString_LIST_helper(PyObject* source);
115 extern wxAcceleratorEntry* wxAcceleratorEntry_LIST_helper(PyObject* source);
116
117
118 static char* wxStringErrorMsg = "string type is required for parameter";
119
120 extern wxValidator wxPyDefaultValidator;
121
122 class wxPyTreeItemData : public wxTreeItemData {
123 public:
124 wxPyTreeItemData(PyObject* obj = NULL) {
125 if (obj == NULL)
126 obj = Py_None;
127 Py_INCREF(obj);
128 m_obj = obj;
129 }
130
131 ~wxPyTreeItemData() {
132 #ifdef WXP_WITH_THREAD
133 PyEval_RestoreThread(wxPyEventThreadState);
134 #endif
135 Py_DECREF(m_obj);
136 #ifdef WXP_WITH_THREAD
137 PyEval_SaveThread();
138 #endif
139 }
140
141 PyObject* GetData() {
142 Py_INCREF(m_obj);
143 return m_obj;
144 }
145
146 void SetData(PyObject* obj) {
147 Py_DECREF(m_obj);
148 m_obj = obj;
149 Py_INCREF(obj);
150 }
151
152 PyObject* m_obj;
153 };
154 #ifdef __cplusplus
155 extern "C" {
156 #endif
157 #define wxListItem_m_mask_set(_swigobj,_swigval) (_swigobj->m_mask = _swigval,_swigval)
158 static PyObject *_wrap_wxListItem_m_mask_set(PyObject *self, PyObject *args) {
159 PyObject * _resultobj;
160 long _result;
161 wxListItem * _arg0;
162 long _arg1;
163 PyObject * _argo0 = 0;
164
165 self = self;
166 if(!PyArg_ParseTuple(args,"Ol:wxListItem_m_mask_set",&_argo0,&_arg1))
167 return NULL;
168 if (_argo0) {
169 if (_argo0 == Py_None) { _arg0 = NULL; }
170 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
171 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_set. Expected _wxListItem_p.");
172 return NULL;
173 }
174 }
175 {
176 wxPy_BEGIN_ALLOW_THREADS;
177 _result = (long )wxListItem_m_mask_set(_arg0,_arg1);
178
179 wxPy_END_ALLOW_THREADS;
180 } _resultobj = Py_BuildValue("l",_result);
181 return _resultobj;
182 }
183
184 #define wxListItem_m_mask_get(_swigobj) ((long ) _swigobj->m_mask)
185 static PyObject *_wrap_wxListItem_m_mask_get(PyObject *self, PyObject *args) {
186 PyObject * _resultobj;
187 long _result;
188 wxListItem * _arg0;
189 PyObject * _argo0 = 0;
190
191 self = self;
192 if(!PyArg_ParseTuple(args,"O:wxListItem_m_mask_get",&_argo0))
193 return NULL;
194 if (_argo0) {
195 if (_argo0 == Py_None) { _arg0 = NULL; }
196 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
197 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_get. Expected _wxListItem_p.");
198 return NULL;
199 }
200 }
201 {
202 wxPy_BEGIN_ALLOW_THREADS;
203 _result = (long )wxListItem_m_mask_get(_arg0);
204
205 wxPy_END_ALLOW_THREADS;
206 } _resultobj = Py_BuildValue("l",_result);
207 return _resultobj;
208 }
209
210 #define wxListItem_m_itemId_set(_swigobj,_swigval) (_swigobj->m_itemId = _swigval,_swigval)
211 static PyObject *_wrap_wxListItem_m_itemId_set(PyObject *self, PyObject *args) {
212 PyObject * _resultobj;
213 long _result;
214 wxListItem * _arg0;
215 long _arg1;
216 PyObject * _argo0 = 0;
217
218 self = self;
219 if(!PyArg_ParseTuple(args,"Ol:wxListItem_m_itemId_set",&_argo0,&_arg1))
220 return NULL;
221 if (_argo0) {
222 if (_argo0 == Py_None) { _arg0 = NULL; }
223 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
224 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_set. Expected _wxListItem_p.");
225 return NULL;
226 }
227 }
228 {
229 wxPy_BEGIN_ALLOW_THREADS;
230 _result = (long )wxListItem_m_itemId_set(_arg0,_arg1);
231
232 wxPy_END_ALLOW_THREADS;
233 } _resultobj = Py_BuildValue("l",_result);
234 return _resultobj;
235 }
236
237 #define wxListItem_m_itemId_get(_swigobj) ((long ) _swigobj->m_itemId)
238 static PyObject *_wrap_wxListItem_m_itemId_get(PyObject *self, PyObject *args) {
239 PyObject * _resultobj;
240 long _result;
241 wxListItem * _arg0;
242 PyObject * _argo0 = 0;
243
244 self = self;
245 if(!PyArg_ParseTuple(args,"O:wxListItem_m_itemId_get",&_argo0))
246 return NULL;
247 if (_argo0) {
248 if (_argo0 == Py_None) { _arg0 = NULL; }
249 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
250 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_get. Expected _wxListItem_p.");
251 return NULL;
252 }
253 }
254 {
255 wxPy_BEGIN_ALLOW_THREADS;
256 _result = (long )wxListItem_m_itemId_get(_arg0);
257
258 wxPy_END_ALLOW_THREADS;
259 } _resultobj = Py_BuildValue("l",_result);
260 return _resultobj;
261 }
262
263 #define wxListItem_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval)
264 static PyObject *_wrap_wxListItem_m_col_set(PyObject *self, PyObject *args) {
265 PyObject * _resultobj;
266 int _result;
267 wxListItem * _arg0;
268 int _arg1;
269 PyObject * _argo0 = 0;
270
271 self = self;
272 if(!PyArg_ParseTuple(args,"Oi:wxListItem_m_col_set",&_argo0,&_arg1))
273 return NULL;
274 if (_argo0) {
275 if (_argo0 == Py_None) { _arg0 = NULL; }
276 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
277 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_set. Expected _wxListItem_p.");
278 return NULL;
279 }
280 }
281 {
282 wxPy_BEGIN_ALLOW_THREADS;
283 _result = (int )wxListItem_m_col_set(_arg0,_arg1);
284
285 wxPy_END_ALLOW_THREADS;
286 } _resultobj = Py_BuildValue("i",_result);
287 return _resultobj;
288 }
289
290 #define wxListItem_m_col_get(_swigobj) ((int ) _swigobj->m_col)
291 static PyObject *_wrap_wxListItem_m_col_get(PyObject *self, PyObject *args) {
292 PyObject * _resultobj;
293 int _result;
294 wxListItem * _arg0;
295 PyObject * _argo0 = 0;
296
297 self = self;
298 if(!PyArg_ParseTuple(args,"O:wxListItem_m_col_get",&_argo0))
299 return NULL;
300 if (_argo0) {
301 if (_argo0 == Py_None) { _arg0 = NULL; }
302 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
303 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_get. Expected _wxListItem_p.");
304 return NULL;
305 }
306 }
307 {
308 wxPy_BEGIN_ALLOW_THREADS;
309 _result = (int )wxListItem_m_col_get(_arg0);
310
311 wxPy_END_ALLOW_THREADS;
312 } _resultobj = Py_BuildValue("i",_result);
313 return _resultobj;
314 }
315
316 #define wxListItem_m_state_set(_swigobj,_swigval) (_swigobj->m_state = _swigval,_swigval)
317 static PyObject *_wrap_wxListItem_m_state_set(PyObject *self, PyObject *args) {
318 PyObject * _resultobj;
319 long _result;
320 wxListItem * _arg0;
321 long _arg1;
322 PyObject * _argo0 = 0;
323
324 self = self;
325 if(!PyArg_ParseTuple(args,"Ol:wxListItem_m_state_set",&_argo0,&_arg1))
326 return NULL;
327 if (_argo0) {
328 if (_argo0 == Py_None) { _arg0 = NULL; }
329 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
330 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_set. Expected _wxListItem_p.");
331 return NULL;
332 }
333 }
334 {
335 wxPy_BEGIN_ALLOW_THREADS;
336 _result = (long )wxListItem_m_state_set(_arg0,_arg1);
337
338 wxPy_END_ALLOW_THREADS;
339 } _resultobj = Py_BuildValue("l",_result);
340 return _resultobj;
341 }
342
343 #define wxListItem_m_state_get(_swigobj) ((long ) _swigobj->m_state)
344 static PyObject *_wrap_wxListItem_m_state_get(PyObject *self, PyObject *args) {
345 PyObject * _resultobj;
346 long _result;
347 wxListItem * _arg0;
348 PyObject * _argo0 = 0;
349
350 self = self;
351 if(!PyArg_ParseTuple(args,"O:wxListItem_m_state_get",&_argo0))
352 return NULL;
353 if (_argo0) {
354 if (_argo0 == Py_None) { _arg0 = NULL; }
355 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
356 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_get. Expected _wxListItem_p.");
357 return NULL;
358 }
359 }
360 {
361 wxPy_BEGIN_ALLOW_THREADS;
362 _result = (long )wxListItem_m_state_get(_arg0);
363
364 wxPy_END_ALLOW_THREADS;
365 } _resultobj = Py_BuildValue("l",_result);
366 return _resultobj;
367 }
368
369 #define wxListItem_m_stateMask_set(_swigobj,_swigval) (_swigobj->m_stateMask = _swigval,_swigval)
370 static PyObject *_wrap_wxListItem_m_stateMask_set(PyObject *self, PyObject *args) {
371 PyObject * _resultobj;
372 long _result;
373 wxListItem * _arg0;
374 long _arg1;
375 PyObject * _argo0 = 0;
376
377 self = self;
378 if(!PyArg_ParseTuple(args,"Ol:wxListItem_m_stateMask_set",&_argo0,&_arg1))
379 return NULL;
380 if (_argo0) {
381 if (_argo0 == Py_None) { _arg0 = NULL; }
382 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
383 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_set. Expected _wxListItem_p.");
384 return NULL;
385 }
386 }
387 {
388 wxPy_BEGIN_ALLOW_THREADS;
389 _result = (long )wxListItem_m_stateMask_set(_arg0,_arg1);
390
391 wxPy_END_ALLOW_THREADS;
392 } _resultobj = Py_BuildValue("l",_result);
393 return _resultobj;
394 }
395
396 #define wxListItem_m_stateMask_get(_swigobj) ((long ) _swigobj->m_stateMask)
397 static PyObject *_wrap_wxListItem_m_stateMask_get(PyObject *self, PyObject *args) {
398 PyObject * _resultobj;
399 long _result;
400 wxListItem * _arg0;
401 PyObject * _argo0 = 0;
402
403 self = self;
404 if(!PyArg_ParseTuple(args,"O:wxListItem_m_stateMask_get",&_argo0))
405 return NULL;
406 if (_argo0) {
407 if (_argo0 == Py_None) { _arg0 = NULL; }
408 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
409 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_get. Expected _wxListItem_p.");
410 return NULL;
411 }
412 }
413 {
414 wxPy_BEGIN_ALLOW_THREADS;
415 _result = (long )wxListItem_m_stateMask_get(_arg0);
416
417 wxPy_END_ALLOW_THREADS;
418 } _resultobj = Py_BuildValue("l",_result);
419 return _resultobj;
420 }
421
422 #define wxListItem_m_text_set(_swigobj,_swigval) (_swigobj->m_text = *(_swigval),_swigval)
423 static PyObject *_wrap_wxListItem_m_text_set(PyObject *self, PyObject *args) {
424 PyObject * _resultobj;
425 wxString * _result;
426 wxListItem * _arg0;
427 wxString * _arg1;
428 PyObject * _argo0 = 0;
429 PyObject * _obj1 = 0;
430
431 self = self;
432 if(!PyArg_ParseTuple(args,"OO:wxListItem_m_text_set",&_argo0,&_obj1))
433 return NULL;
434 if (_argo0) {
435 if (_argo0 == Py_None) { _arg0 = NULL; }
436 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
437 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_set. Expected _wxListItem_p.");
438 return NULL;
439 }
440 }
441 {
442 if (!PyString_Check(_obj1)) {
443 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
444 return NULL;
445 }
446 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
447 }
448 {
449 wxPy_BEGIN_ALLOW_THREADS;
450 _result = (wxString *)wxListItem_m_text_set(_arg0,_arg1);
451
452 wxPy_END_ALLOW_THREADS;
453 }{
454 _resultobj = PyString_FromString(WXSTRINGCAST (*_result));
455 }
456 {
457 if (_obj1)
458 delete _arg1;
459 }
460 return _resultobj;
461 }
462
463 #define wxListItem_m_text_get(_swigobj) (&_swigobj->m_text)
464 static PyObject *_wrap_wxListItem_m_text_get(PyObject *self, PyObject *args) {
465 PyObject * _resultobj;
466 wxString * _result;
467 wxListItem * _arg0;
468 PyObject * _argo0 = 0;
469
470 self = self;
471 if(!PyArg_ParseTuple(args,"O:wxListItem_m_text_get",&_argo0))
472 return NULL;
473 if (_argo0) {
474 if (_argo0 == Py_None) { _arg0 = NULL; }
475 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
476 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_get. Expected _wxListItem_p.");
477 return NULL;
478 }
479 }
480 {
481 wxPy_BEGIN_ALLOW_THREADS;
482 _result = (wxString *)wxListItem_m_text_get(_arg0);
483
484 wxPy_END_ALLOW_THREADS;
485 }{
486 _resultobj = PyString_FromString(WXSTRINGCAST (*_result));
487 }
488 return _resultobj;
489 }
490
491 #define wxListItem_m_image_set(_swigobj,_swigval) (_swigobj->m_image = _swigval,_swigval)
492 static PyObject *_wrap_wxListItem_m_image_set(PyObject *self, PyObject *args) {
493 PyObject * _resultobj;
494 int _result;
495 wxListItem * _arg0;
496 int _arg1;
497 PyObject * _argo0 = 0;
498
499 self = self;
500 if(!PyArg_ParseTuple(args,"Oi:wxListItem_m_image_set",&_argo0,&_arg1))
501 return NULL;
502 if (_argo0) {
503 if (_argo0 == Py_None) { _arg0 = NULL; }
504 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
505 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_set. Expected _wxListItem_p.");
506 return NULL;
507 }
508 }
509 {
510 wxPy_BEGIN_ALLOW_THREADS;
511 _result = (int )wxListItem_m_image_set(_arg0,_arg1);
512
513 wxPy_END_ALLOW_THREADS;
514 } _resultobj = Py_BuildValue("i",_result);
515 return _resultobj;
516 }
517
518 #define wxListItem_m_image_get(_swigobj) ((int ) _swigobj->m_image)
519 static PyObject *_wrap_wxListItem_m_image_get(PyObject *self, PyObject *args) {
520 PyObject * _resultobj;
521 int _result;
522 wxListItem * _arg0;
523 PyObject * _argo0 = 0;
524
525 self = self;
526 if(!PyArg_ParseTuple(args,"O:wxListItem_m_image_get",&_argo0))
527 return NULL;
528 if (_argo0) {
529 if (_argo0 == Py_None) { _arg0 = NULL; }
530 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
531 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_get. Expected _wxListItem_p.");
532 return NULL;
533 }
534 }
535 {
536 wxPy_BEGIN_ALLOW_THREADS;
537 _result = (int )wxListItem_m_image_get(_arg0);
538
539 wxPy_END_ALLOW_THREADS;
540 } _resultobj = Py_BuildValue("i",_result);
541 return _resultobj;
542 }
543
544 #define wxListItem_m_data_set(_swigobj,_swigval) (_swigobj->m_data = _swigval,_swigval)
545 static PyObject *_wrap_wxListItem_m_data_set(PyObject *self, PyObject *args) {
546 PyObject * _resultobj;
547 long _result;
548 wxListItem * _arg0;
549 long _arg1;
550 PyObject * _argo0 = 0;
551
552 self = self;
553 if(!PyArg_ParseTuple(args,"Ol:wxListItem_m_data_set",&_argo0,&_arg1))
554 return NULL;
555 if (_argo0) {
556 if (_argo0 == Py_None) { _arg0 = NULL; }
557 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
558 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_set. Expected _wxListItem_p.");
559 return NULL;
560 }
561 }
562 {
563 wxPy_BEGIN_ALLOW_THREADS;
564 _result = (long )wxListItem_m_data_set(_arg0,_arg1);
565
566 wxPy_END_ALLOW_THREADS;
567 } _resultobj = Py_BuildValue("l",_result);
568 return _resultobj;
569 }
570
571 #define wxListItem_m_data_get(_swigobj) ((long ) _swigobj->m_data)
572 static PyObject *_wrap_wxListItem_m_data_get(PyObject *self, PyObject *args) {
573 PyObject * _resultobj;
574 long _result;
575 wxListItem * _arg0;
576 PyObject * _argo0 = 0;
577
578 self = self;
579 if(!PyArg_ParseTuple(args,"O:wxListItem_m_data_get",&_argo0))
580 return NULL;
581 if (_argo0) {
582 if (_argo0 == Py_None) { _arg0 = NULL; }
583 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
584 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_get. Expected _wxListItem_p.");
585 return NULL;
586 }
587 }
588 {
589 wxPy_BEGIN_ALLOW_THREADS;
590 _result = (long )wxListItem_m_data_get(_arg0);
591
592 wxPy_END_ALLOW_THREADS;
593 } _resultobj = Py_BuildValue("l",_result);
594 return _resultobj;
595 }
596
597 #define wxListItem_m_format_set(_swigobj,_swigval) (_swigobj->m_format = _swigval,_swigval)
598 static PyObject *_wrap_wxListItem_m_format_set(PyObject *self, PyObject *args) {
599 PyObject * _resultobj;
600 int _result;
601 wxListItem * _arg0;
602 int _arg1;
603 PyObject * _argo0 = 0;
604
605 self = self;
606 if(!PyArg_ParseTuple(args,"Oi:wxListItem_m_format_set",&_argo0,&_arg1))
607 return NULL;
608 if (_argo0) {
609 if (_argo0 == Py_None) { _arg0 = NULL; }
610 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
611 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_set. Expected _wxListItem_p.");
612 return NULL;
613 }
614 }
615 {
616 wxPy_BEGIN_ALLOW_THREADS;
617 _result = (int )wxListItem_m_format_set(_arg0,_arg1);
618
619 wxPy_END_ALLOW_THREADS;
620 } _resultobj = Py_BuildValue("i",_result);
621 return _resultobj;
622 }
623
624 #define wxListItem_m_format_get(_swigobj) ((int ) _swigobj->m_format)
625 static PyObject *_wrap_wxListItem_m_format_get(PyObject *self, PyObject *args) {
626 PyObject * _resultobj;
627 int _result;
628 wxListItem * _arg0;
629 PyObject * _argo0 = 0;
630
631 self = self;
632 if(!PyArg_ParseTuple(args,"O:wxListItem_m_format_get",&_argo0))
633 return NULL;
634 if (_argo0) {
635 if (_argo0 == Py_None) { _arg0 = NULL; }
636 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
637 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_get. Expected _wxListItem_p.");
638 return NULL;
639 }
640 }
641 {
642 wxPy_BEGIN_ALLOW_THREADS;
643 _result = (int )wxListItem_m_format_get(_arg0);
644
645 wxPy_END_ALLOW_THREADS;
646 } _resultobj = Py_BuildValue("i",_result);
647 return _resultobj;
648 }
649
650 #define wxListItem_m_width_set(_swigobj,_swigval) (_swigobj->m_width = _swigval,_swigval)
651 static PyObject *_wrap_wxListItem_m_width_set(PyObject *self, PyObject *args) {
652 PyObject * _resultobj;
653 int _result;
654 wxListItem * _arg0;
655 int _arg1;
656 PyObject * _argo0 = 0;
657
658 self = self;
659 if(!PyArg_ParseTuple(args,"Oi:wxListItem_m_width_set",&_argo0,&_arg1))
660 return NULL;
661 if (_argo0) {
662 if (_argo0 == Py_None) { _arg0 = NULL; }
663 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
664 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_set. Expected _wxListItem_p.");
665 return NULL;
666 }
667 }
668 {
669 wxPy_BEGIN_ALLOW_THREADS;
670 _result = (int )wxListItem_m_width_set(_arg0,_arg1);
671
672 wxPy_END_ALLOW_THREADS;
673 } _resultobj = Py_BuildValue("i",_result);
674 return _resultobj;
675 }
676
677 #define wxListItem_m_width_get(_swigobj) ((int ) _swigobj->m_width)
678 static PyObject *_wrap_wxListItem_m_width_get(PyObject *self, PyObject *args) {
679 PyObject * _resultobj;
680 int _result;
681 wxListItem * _arg0;
682 PyObject * _argo0 = 0;
683
684 self = self;
685 if(!PyArg_ParseTuple(args,"O:wxListItem_m_width_get",&_argo0))
686 return NULL;
687 if (_argo0) {
688 if (_argo0 == Py_None) { _arg0 = NULL; }
689 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
690 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_get. Expected _wxListItem_p.");
691 return NULL;
692 }
693 }
694 {
695 wxPy_BEGIN_ALLOW_THREADS;
696 _result = (int )wxListItem_m_width_get(_arg0);
697
698 wxPy_END_ALLOW_THREADS;
699 } _resultobj = Py_BuildValue("i",_result);
700 return _resultobj;
701 }
702
703 #define new_wxListItem() (new wxListItem())
704 static PyObject *_wrap_new_wxListItem(PyObject *self, PyObject *args) {
705 PyObject * _resultobj;
706 wxListItem * _result;
707 char _ptemp[128];
708
709 self = self;
710 if(!PyArg_ParseTuple(args,":new_wxListItem"))
711 return NULL;
712 {
713 wxPy_BEGIN_ALLOW_THREADS;
714 _result = (wxListItem *)new_wxListItem();
715
716 wxPy_END_ALLOW_THREADS;
717 } if (_result) {
718 SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p");
719 _resultobj = Py_BuildValue("s",_ptemp);
720 } else {
721 Py_INCREF(Py_None);
722 _resultobj = Py_None;
723 }
724 return _resultobj;
725 }
726
727 #define delete_wxListItem(_swigobj) (delete _swigobj)
728 static PyObject *_wrap_delete_wxListItem(PyObject *self, PyObject *args) {
729 PyObject * _resultobj;
730 wxListItem * _arg0;
731 PyObject * _argo0 = 0;
732
733 self = self;
734 if(!PyArg_ParseTuple(args,"O:delete_wxListItem",&_argo0))
735 return NULL;
736 if (_argo0) {
737 if (_argo0 == Py_None) { _arg0 = NULL; }
738 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) {
739 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxListItem. Expected _wxListItem_p.");
740 return NULL;
741 }
742 }
743 {
744 wxPy_BEGIN_ALLOW_THREADS;
745 delete_wxListItem(_arg0);
746
747 wxPy_END_ALLOW_THREADS;
748 } Py_INCREF(Py_None);
749 _resultobj = Py_None;
750 return _resultobj;
751 }
752
753 static void *SwigwxListEventTowxCommandEvent(void *ptr) {
754 wxListEvent *src;
755 wxCommandEvent *dest;
756 src = (wxListEvent *) ptr;
757 dest = (wxCommandEvent *) src;
758 return (void *) dest;
759 }
760
761 static void *SwigwxListEventTowxEvent(void *ptr) {
762 wxListEvent *src;
763 wxEvent *dest;
764 src = (wxListEvent *) ptr;
765 dest = (wxEvent *) src;
766 return (void *) dest;
767 }
768
769 #define wxListEvent_m_code_set(_swigobj,_swigval) (_swigobj->m_code = _swigval,_swigval)
770 static PyObject *_wrap_wxListEvent_m_code_set(PyObject *self, PyObject *args) {
771 PyObject * _resultobj;
772 int _result;
773 wxListEvent * _arg0;
774 int _arg1;
775 PyObject * _argo0 = 0;
776
777 self = self;
778 if(!PyArg_ParseTuple(args,"Oi:wxListEvent_m_code_set",&_argo0,&_arg1))
779 return NULL;
780 if (_argo0) {
781 if (_argo0 == Py_None) { _arg0 = NULL; }
782 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
783 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_code_set. Expected _wxListEvent_p.");
784 return NULL;
785 }
786 }
787 {
788 wxPy_BEGIN_ALLOW_THREADS;
789 _result = (int )wxListEvent_m_code_set(_arg0,_arg1);
790
791 wxPy_END_ALLOW_THREADS;
792 } _resultobj = Py_BuildValue("i",_result);
793 return _resultobj;
794 }
795
796 #define wxListEvent_m_code_get(_swigobj) ((int ) _swigobj->m_code)
797 static PyObject *_wrap_wxListEvent_m_code_get(PyObject *self, PyObject *args) {
798 PyObject * _resultobj;
799 int _result;
800 wxListEvent * _arg0;
801 PyObject * _argo0 = 0;
802
803 self = self;
804 if(!PyArg_ParseTuple(args,"O:wxListEvent_m_code_get",&_argo0))
805 return NULL;
806 if (_argo0) {
807 if (_argo0 == Py_None) { _arg0 = NULL; }
808 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
809 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_code_get. Expected _wxListEvent_p.");
810 return NULL;
811 }
812 }
813 {
814 wxPy_BEGIN_ALLOW_THREADS;
815 _result = (int )wxListEvent_m_code_get(_arg0);
816
817 wxPy_END_ALLOW_THREADS;
818 } _resultobj = Py_BuildValue("i",_result);
819 return _resultobj;
820 }
821
822 #define wxListEvent_m_itemIndex_set(_swigobj,_swigval) (_swigobj->m_itemIndex = _swigval,_swigval)
823 static PyObject *_wrap_wxListEvent_m_itemIndex_set(PyObject *self, PyObject *args) {
824 PyObject * _resultobj;
825 long _result;
826 wxListEvent * _arg0;
827 long _arg1;
828 PyObject * _argo0 = 0;
829
830 self = self;
831 if(!PyArg_ParseTuple(args,"Ol:wxListEvent_m_itemIndex_set",&_argo0,&_arg1))
832 return NULL;
833 if (_argo0) {
834 if (_argo0 == Py_None) { _arg0 = NULL; }
835 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
836 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_set. Expected _wxListEvent_p.");
837 return NULL;
838 }
839 }
840 {
841 wxPy_BEGIN_ALLOW_THREADS;
842 _result = (long )wxListEvent_m_itemIndex_set(_arg0,_arg1);
843
844 wxPy_END_ALLOW_THREADS;
845 } _resultobj = Py_BuildValue("l",_result);
846 return _resultobj;
847 }
848
849 #define wxListEvent_m_itemIndex_get(_swigobj) ((long ) _swigobj->m_itemIndex)
850 static PyObject *_wrap_wxListEvent_m_itemIndex_get(PyObject *self, PyObject *args) {
851 PyObject * _resultobj;
852 long _result;
853 wxListEvent * _arg0;
854 PyObject * _argo0 = 0;
855
856 self = self;
857 if(!PyArg_ParseTuple(args,"O:wxListEvent_m_itemIndex_get",&_argo0))
858 return NULL;
859 if (_argo0) {
860 if (_argo0 == Py_None) { _arg0 = NULL; }
861 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
862 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_get. Expected _wxListEvent_p.");
863 return NULL;
864 }
865 }
866 {
867 wxPy_BEGIN_ALLOW_THREADS;
868 _result = (long )wxListEvent_m_itemIndex_get(_arg0);
869
870 wxPy_END_ALLOW_THREADS;
871 } _resultobj = Py_BuildValue("l",_result);
872 return _resultobj;
873 }
874
875 #define wxListEvent_m_oldItemIndex_set(_swigobj,_swigval) (_swigobj->m_oldItemIndex = _swigval,_swigval)
876 static PyObject *_wrap_wxListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args) {
877 PyObject * _resultobj;
878 long _result;
879 wxListEvent * _arg0;
880 long _arg1;
881 PyObject * _argo0 = 0;
882
883 self = self;
884 if(!PyArg_ParseTuple(args,"Ol:wxListEvent_m_oldItemIndex_set",&_argo0,&_arg1))
885 return NULL;
886 if (_argo0) {
887 if (_argo0 == Py_None) { _arg0 = NULL; }
888 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
889 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_set. Expected _wxListEvent_p.");
890 return NULL;
891 }
892 }
893 {
894 wxPy_BEGIN_ALLOW_THREADS;
895 _result = (long )wxListEvent_m_oldItemIndex_set(_arg0,_arg1);
896
897 wxPy_END_ALLOW_THREADS;
898 } _resultobj = Py_BuildValue("l",_result);
899 return _resultobj;
900 }
901
902 #define wxListEvent_m_oldItemIndex_get(_swigobj) ((long ) _swigobj->m_oldItemIndex)
903 static PyObject *_wrap_wxListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args) {
904 PyObject * _resultobj;
905 long _result;
906 wxListEvent * _arg0;
907 PyObject * _argo0 = 0;
908
909 self = self;
910 if(!PyArg_ParseTuple(args,"O:wxListEvent_m_oldItemIndex_get",&_argo0))
911 return NULL;
912 if (_argo0) {
913 if (_argo0 == Py_None) { _arg0 = NULL; }
914 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
915 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_get. Expected _wxListEvent_p.");
916 return NULL;
917 }
918 }
919 {
920 wxPy_BEGIN_ALLOW_THREADS;
921 _result = (long )wxListEvent_m_oldItemIndex_get(_arg0);
922
923 wxPy_END_ALLOW_THREADS;
924 } _resultobj = Py_BuildValue("l",_result);
925 return _resultobj;
926 }
927
928 #define wxListEvent_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval)
929 static PyObject *_wrap_wxListEvent_m_col_set(PyObject *self, PyObject *args) {
930 PyObject * _resultobj;
931 int _result;
932 wxListEvent * _arg0;
933 int _arg1;
934 PyObject * _argo0 = 0;
935
936 self = self;
937 if(!PyArg_ParseTuple(args,"Oi:wxListEvent_m_col_set",&_argo0,&_arg1))
938 return NULL;
939 if (_argo0) {
940 if (_argo0 == Py_None) { _arg0 = NULL; }
941 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
942 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_set. Expected _wxListEvent_p.");
943 return NULL;
944 }
945 }
946 {
947 wxPy_BEGIN_ALLOW_THREADS;
948 _result = (int )wxListEvent_m_col_set(_arg0,_arg1);
949
950 wxPy_END_ALLOW_THREADS;
951 } _resultobj = Py_BuildValue("i",_result);
952 return _resultobj;
953 }
954
955 #define wxListEvent_m_col_get(_swigobj) ((int ) _swigobj->m_col)
956 static PyObject *_wrap_wxListEvent_m_col_get(PyObject *self, PyObject *args) {
957 PyObject * _resultobj;
958 int _result;
959 wxListEvent * _arg0;
960 PyObject * _argo0 = 0;
961
962 self = self;
963 if(!PyArg_ParseTuple(args,"O:wxListEvent_m_col_get",&_argo0))
964 return NULL;
965 if (_argo0) {
966 if (_argo0 == Py_None) { _arg0 = NULL; }
967 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
968 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_get. Expected _wxListEvent_p.");
969 return NULL;
970 }
971 }
972 {
973 wxPy_BEGIN_ALLOW_THREADS;
974 _result = (int )wxListEvent_m_col_get(_arg0);
975
976 wxPy_END_ALLOW_THREADS;
977 } _resultobj = Py_BuildValue("i",_result);
978 return _resultobj;
979 }
980
981 #define wxListEvent_m_cancelled_set(_swigobj,_swigval) (_swigobj->m_cancelled = _swigval,_swigval)
982 static PyObject *_wrap_wxListEvent_m_cancelled_set(PyObject *self, PyObject *args) {
983 PyObject * _resultobj;
984 bool _result;
985 wxListEvent * _arg0;
986 bool _arg1;
987 PyObject * _argo0 = 0;
988 int tempbool1;
989
990 self = self;
991 if(!PyArg_ParseTuple(args,"Oi:wxListEvent_m_cancelled_set",&_argo0,&tempbool1))
992 return NULL;
993 if (_argo0) {
994 if (_argo0 == Py_None) { _arg0 = NULL; }
995 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
996 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_cancelled_set. Expected _wxListEvent_p.");
997 return NULL;
998 }
999 }
1000 _arg1 = (bool ) tempbool1;
1001 {
1002 wxPy_BEGIN_ALLOW_THREADS;
1003 _result = (bool )wxListEvent_m_cancelled_set(_arg0,_arg1);
1004
1005 wxPy_END_ALLOW_THREADS;
1006 } _resultobj = Py_BuildValue("i",_result);
1007 return _resultobj;
1008 }
1009
1010 #define wxListEvent_m_cancelled_get(_swigobj) ((bool ) _swigobj->m_cancelled)
1011 static PyObject *_wrap_wxListEvent_m_cancelled_get(PyObject *self, PyObject *args) {
1012 PyObject * _resultobj;
1013 bool _result;
1014 wxListEvent * _arg0;
1015 PyObject * _argo0 = 0;
1016
1017 self = self;
1018 if(!PyArg_ParseTuple(args,"O:wxListEvent_m_cancelled_get",&_argo0))
1019 return NULL;
1020 if (_argo0) {
1021 if (_argo0 == Py_None) { _arg0 = NULL; }
1022 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
1023 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_cancelled_get. Expected _wxListEvent_p.");
1024 return NULL;
1025 }
1026 }
1027 {
1028 wxPy_BEGIN_ALLOW_THREADS;
1029 _result = (bool )wxListEvent_m_cancelled_get(_arg0);
1030
1031 wxPy_END_ALLOW_THREADS;
1032 } _resultobj = Py_BuildValue("i",_result);
1033 return _resultobj;
1034 }
1035
1036 #define wxListEvent_m_pointDrag_set(_swigobj,_swigval) (_swigobj->m_pointDrag = *(_swigval),_swigval)
1037 static PyObject *_wrap_wxListEvent_m_pointDrag_set(PyObject *self, PyObject *args) {
1038 PyObject * _resultobj;
1039 wxPoint * _result;
1040 wxListEvent * _arg0;
1041 wxPoint * _arg1;
1042 PyObject * _argo0 = 0;
1043 PyObject * _argo1 = 0;
1044 char _ptemp[128];
1045
1046 self = self;
1047 if(!PyArg_ParseTuple(args,"OO:wxListEvent_m_pointDrag_set",&_argo0,&_argo1))
1048 return NULL;
1049 if (_argo0) {
1050 if (_argo0 == Py_None) { _arg0 = NULL; }
1051 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
1052 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_set. Expected _wxListEvent_p.");
1053 return NULL;
1054 }
1055 }
1056 if (_argo1) {
1057 if (_argo1 == Py_None) { _arg1 = NULL; }
1058 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPoint_p")) {
1059 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListEvent_m_pointDrag_set. Expected _wxPoint_p.");
1060 return NULL;
1061 }
1062 }
1063 {
1064 wxPy_BEGIN_ALLOW_THREADS;
1065 _result = (wxPoint *)wxListEvent_m_pointDrag_set(_arg0,_arg1);
1066
1067 wxPy_END_ALLOW_THREADS;
1068 } if (_result) {
1069 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p");
1070 _resultobj = Py_BuildValue("s",_ptemp);
1071 } else {
1072 Py_INCREF(Py_None);
1073 _resultobj = Py_None;
1074 }
1075 return _resultobj;
1076 }
1077
1078 #define wxListEvent_m_pointDrag_get(_swigobj) (&_swigobj->m_pointDrag)
1079 static PyObject *_wrap_wxListEvent_m_pointDrag_get(PyObject *self, PyObject *args) {
1080 PyObject * _resultobj;
1081 wxPoint * _result;
1082 wxListEvent * _arg0;
1083 PyObject * _argo0 = 0;
1084 char _ptemp[128];
1085
1086 self = self;
1087 if(!PyArg_ParseTuple(args,"O:wxListEvent_m_pointDrag_get",&_argo0))
1088 return NULL;
1089 if (_argo0) {
1090 if (_argo0 == Py_None) { _arg0 = NULL; }
1091 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
1092 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_get. Expected _wxListEvent_p.");
1093 return NULL;
1094 }
1095 }
1096 {
1097 wxPy_BEGIN_ALLOW_THREADS;
1098 _result = (wxPoint *)wxListEvent_m_pointDrag_get(_arg0);
1099
1100 wxPy_END_ALLOW_THREADS;
1101 } if (_result) {
1102 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p");
1103 _resultobj = Py_BuildValue("s",_ptemp);
1104 } else {
1105 Py_INCREF(Py_None);
1106 _resultobj = Py_None;
1107 }
1108 return _resultobj;
1109 }
1110
1111 #define wxListEvent_m_item_set(_swigobj,_swigval) (_swigobj->m_item = *(_swigval),_swigval)
1112 static PyObject *_wrap_wxListEvent_m_item_set(PyObject *self, PyObject *args) {
1113 PyObject * _resultobj;
1114 wxListItem * _result;
1115 wxListEvent * _arg0;
1116 wxListItem * _arg1;
1117 PyObject * _argo0 = 0;
1118 PyObject * _argo1 = 0;
1119 char _ptemp[128];
1120
1121 self = self;
1122 if(!PyArg_ParseTuple(args,"OO:wxListEvent_m_item_set",&_argo0,&_argo1))
1123 return NULL;
1124 if (_argo0) {
1125 if (_argo0 == Py_None) { _arg0 = NULL; }
1126 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
1127 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_set. Expected _wxListEvent_p.");
1128 return NULL;
1129 }
1130 }
1131 if (_argo1) {
1132 if (_argo1 == Py_None) { _arg1 = NULL; }
1133 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) {
1134 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListEvent_m_item_set. Expected _wxListItem_p.");
1135 return NULL;
1136 }
1137 }
1138 {
1139 wxPy_BEGIN_ALLOW_THREADS;
1140 _result = (wxListItem *)wxListEvent_m_item_set(_arg0,_arg1);
1141
1142 wxPy_END_ALLOW_THREADS;
1143 } if (_result) {
1144 SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p");
1145 _resultobj = Py_BuildValue("s",_ptemp);
1146 } else {
1147 Py_INCREF(Py_None);
1148 _resultobj = Py_None;
1149 }
1150 return _resultobj;
1151 }
1152
1153 #define wxListEvent_m_item_get(_swigobj) (&_swigobj->m_item)
1154 static PyObject *_wrap_wxListEvent_m_item_get(PyObject *self, PyObject *args) {
1155 PyObject * _resultobj;
1156 wxListItem * _result;
1157 wxListEvent * _arg0;
1158 PyObject * _argo0 = 0;
1159 char _ptemp[128];
1160
1161 self = self;
1162 if(!PyArg_ParseTuple(args,"O:wxListEvent_m_item_get",&_argo0))
1163 return NULL;
1164 if (_argo0) {
1165 if (_argo0 == Py_None) { _arg0 = NULL; }
1166 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) {
1167 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_get. Expected _wxListEvent_p.");
1168 return NULL;
1169 }
1170 }
1171 {
1172 wxPy_BEGIN_ALLOW_THREADS;
1173 _result = (wxListItem *)wxListEvent_m_item_get(_arg0);
1174
1175 wxPy_END_ALLOW_THREADS;
1176 } if (_result) {
1177 SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p");
1178 _resultobj = Py_BuildValue("s",_ptemp);
1179 } else {
1180 Py_INCREF(Py_None);
1181 _resultobj = Py_None;
1182 }
1183 return _resultobj;
1184 }
1185
1186 static void *SwigwxListCtrlTowxControl(void *ptr) {
1187 wxListCtrl *src;
1188 wxControl *dest;
1189 src = (wxListCtrl *) ptr;
1190 dest = (wxControl *) src;
1191 return (void *) dest;
1192 }
1193
1194 static void *SwigwxListCtrlTowxWindow(void *ptr) {
1195 wxListCtrl *src;
1196 wxWindow *dest;
1197 src = (wxListCtrl *) ptr;
1198 dest = (wxWindow *) src;
1199 return (void *) dest;
1200 }
1201
1202 static void *SwigwxListCtrlTowxEvtHandler(void *ptr) {
1203 wxListCtrl *src;
1204 wxEvtHandler *dest;
1205 src = (wxListCtrl *) ptr;
1206 dest = (wxEvtHandler *) src;
1207 return (void *) dest;
1208 }
1209
1210 #define new_wxListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
1211 static PyObject *_wrap_new_wxListCtrl(PyObject *self, PyObject *args) {
1212 PyObject * _resultobj;
1213 wxListCtrl * _result;
1214 wxWindow * _arg0;
1215 wxWindowID _arg1;
1216 wxPoint * _arg2 = (wxPoint *) &wxPyDefaultPosition;
1217 wxSize * _arg3 = (wxSize *) &wxPyDefaultSize;
1218 long _arg4 = (long ) wxLC_ICON;
1219 wxValidator * _arg5 = (wxValidator *) &wxPyDefaultValidator;
1220 char * _arg6 = (char *) "listCtrl";
1221 PyObject * _argo0 = 0;
1222 PyObject * _argo2 = 0;
1223 PyObject * _argo3 = 0;
1224 PyObject * _argo5 = 0;
1225 char _ptemp[128];
1226
1227 self = self;
1228 if(!PyArg_ParseTuple(args,"Oi|OOlOs:new_wxListCtrl",&_argo0,&_arg1,&_argo2,&_argo3,&_arg4,&_argo5,&_arg6))
1229 return NULL;
1230 if (_argo0) {
1231 if (_argo0 == Py_None) { _arg0 = NULL; }
1232 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1233 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListCtrl. Expected _wxWindow_p.");
1234 return NULL;
1235 }
1236 }
1237 if (_argo2) {
1238 if (_argo2 == Py_None) { _arg2 = NULL; }
1239 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPoint_p")) {
1240 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxListCtrl. Expected _wxPoint_p.");
1241 return NULL;
1242 }
1243 }
1244 if (_argo3) {
1245 if (_argo3 == Py_None) { _arg3 = NULL; }
1246 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxSize_p")) {
1247 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of new_wxListCtrl. Expected _wxSize_p.");
1248 return NULL;
1249 }
1250 }
1251 if (_argo5) {
1252 if (_argo5 == Py_None) { _arg5 = NULL; }
1253 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) {
1254 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListCtrl. Expected _wxValidator_p.");
1255 return NULL;
1256 }
1257 }
1258 {
1259 wxPy_BEGIN_ALLOW_THREADS;
1260 _result = (wxListCtrl *)new_wxListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6);
1261
1262 wxPy_END_ALLOW_THREADS;
1263 } if (_result) {
1264 SWIG_MakePtr(_ptemp, (char *) _result,"_wxListCtrl_p");
1265 _resultobj = Py_BuildValue("s",_ptemp);
1266 } else {
1267 Py_INCREF(Py_None);
1268 _resultobj = Py_None;
1269 }
1270 return _resultobj;
1271 }
1272
1273 #define wxListCtrl_Arrange(_swigobj,_swigarg0) (_swigobj->Arrange(_swigarg0))
1274 static PyObject *_wrap_wxListCtrl_Arrange(PyObject *self, PyObject *args) {
1275 PyObject * _resultobj;
1276 bool _result;
1277 wxListCtrl * _arg0;
1278 int _arg1 = (int ) (wxLIST_ALIGN_DEFAULT);
1279 PyObject * _argo0 = 0;
1280
1281 self = self;
1282 if(!PyArg_ParseTuple(args,"O|i:wxListCtrl_Arrange",&_argo0,&_arg1))
1283 return NULL;
1284 if (_argo0) {
1285 if (_argo0 == Py_None) { _arg0 = NULL; }
1286 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
1287 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Arrange. Expected _wxListCtrl_p.");
1288 return NULL;
1289 }
1290 }
1291 {
1292 wxPy_BEGIN_ALLOW_THREADS;
1293 _result = (bool )wxListCtrl_Arrange(_arg0,_arg1);
1294
1295 wxPy_END_ALLOW_THREADS;
1296 } _resultobj = Py_BuildValue("i",_result);
1297 return _resultobj;
1298 }
1299
1300 #define wxListCtrl_DeleteItem(_swigobj,_swigarg0) (_swigobj->DeleteItem(_swigarg0))
1301 static PyObject *_wrap_wxListCtrl_DeleteItem(PyObject *self, PyObject *args) {
1302 PyObject * _resultobj;
1303 bool _result;
1304 wxListCtrl * _arg0;
1305 long _arg1;
1306 PyObject * _argo0 = 0;
1307
1308 self = self;
1309 if(!PyArg_ParseTuple(args,"Ol:wxListCtrl_DeleteItem",&_argo0,&_arg1))
1310 return NULL;
1311 if (_argo0) {
1312 if (_argo0 == Py_None) { _arg0 = NULL; }
1313 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
1314 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteItem. Expected _wxListCtrl_p.");
1315 return NULL;
1316 }
1317 }
1318 {
1319 wxPy_BEGIN_ALLOW_THREADS;
1320 _result = (bool )wxListCtrl_DeleteItem(_arg0,_arg1);
1321
1322 wxPy_END_ALLOW_THREADS;
1323 } _resultobj = Py_BuildValue("i",_result);
1324 return _resultobj;
1325 }
1326
1327 #define wxListCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems())
1328 static PyObject *_wrap_wxListCtrl_DeleteAllItems(PyObject *self, PyObject *args) {
1329 PyObject * _resultobj;
1330 bool _result;
1331 wxListCtrl * _arg0;
1332 PyObject * _argo0 = 0;
1333
1334 self = self;
1335 if(!PyArg_ParseTuple(args,"O:wxListCtrl_DeleteAllItems",&_argo0))
1336 return NULL;
1337 if (_argo0) {
1338 if (_argo0 == Py_None) { _arg0 = NULL; }
1339 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
1340 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllItems. Expected _wxListCtrl_p.");
1341 return NULL;
1342 }
1343 }
1344 {
1345 wxPy_BEGIN_ALLOW_THREADS;
1346 _result = (bool )wxListCtrl_DeleteAllItems(_arg0);
1347
1348 wxPy_END_ALLOW_THREADS;
1349 } _resultobj = Py_BuildValue("i",_result);
1350 return _resultobj;
1351 }
1352
1353 #define wxListCtrl_DeleteColumn(_swigobj,_swigarg0) (_swigobj->DeleteColumn(_swigarg0))
1354 static PyObject *_wrap_wxListCtrl_DeleteColumn(PyObject *self, PyObject *args) {
1355 PyObject * _resultobj;
1356 bool _result;
1357 wxListCtrl * _arg0;
1358 int _arg1;
1359 PyObject * _argo0 = 0;
1360
1361 self = self;
1362 if(!PyArg_ParseTuple(args,"Oi:wxListCtrl_DeleteColumn",&_argo0,&_arg1))
1363 return NULL;
1364 if (_argo0) {
1365 if (_argo0 == Py_None) { _arg0 = NULL; }
1366 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
1367 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteColumn. Expected _wxListCtrl_p.");
1368 return NULL;
1369 }
1370 }
1371 {
1372 wxPy_BEGIN_ALLOW_THREADS;
1373 _result = (bool )wxListCtrl_DeleteColumn(_arg0,_arg1);
1374
1375 wxPy_END_ALLOW_THREADS;
1376 } _resultobj = Py_BuildValue("i",_result);
1377 return _resultobj;
1378 }
1379
1380 #define wxListCtrl_DeleteAllColumns(_swigobj) (_swigobj->DeleteAllColumns())
1381 static PyObject *_wrap_wxListCtrl_DeleteAllColumns(PyObject *self, PyObject *args) {
1382 PyObject * _resultobj;
1383 bool _result;
1384 wxListCtrl * _arg0;
1385 PyObject * _argo0 = 0;
1386
1387 self = self;
1388 if(!PyArg_ParseTuple(args,"O:wxListCtrl_DeleteAllColumns",&_argo0))
1389 return NULL;
1390 if (_argo0) {
1391 if (_argo0 == Py_None) { _arg0 = NULL; }
1392 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
1393 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllColumns. Expected _wxListCtrl_p.");
1394 return NULL;
1395 }
1396 }
1397 {
1398 wxPy_BEGIN_ALLOW_THREADS;
1399 _result = (bool )wxListCtrl_DeleteAllColumns(_arg0);
1400
1401 wxPy_END_ALLOW_THREADS;
1402 } _resultobj = Py_BuildValue("i",_result);
1403 return _resultobj;
1404 }
1405
1406 #define wxListCtrl_ClearAll(_swigobj) (_swigobj->ClearAll())
1407 static PyObject *_wrap_wxListCtrl_ClearAll(PyObject *self, PyObject *args) {
1408 PyObject * _resultobj;
1409 wxListCtrl * _arg0;
1410 PyObject * _argo0 = 0;
1411
1412 self = self;
1413 if(!PyArg_ParseTuple(args,"O:wxListCtrl_ClearAll",&_argo0))
1414 return NULL;
1415 if (_argo0) {
1416 if (_argo0 == Py_None) { _arg0 = NULL; }
1417 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
1418 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ClearAll. Expected _wxListCtrl_p.");
1419 return NULL;
1420 }
1421 }
1422 {
1423 wxPy_BEGIN_ALLOW_THREADS;
1424 wxListCtrl_ClearAll(_arg0);
1425
1426 wxPy_END_ALLOW_THREADS;
1427 } Py_INCREF(Py_None);
1428 _resultobj = Py_None;
1429 return _resultobj;
1430 }
1431
1432 #define wxListCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0))
1433 static PyObject *_wrap_wxListCtrl_EditLabel(PyObject *self, PyObject *args) {
1434 PyObject * _resultobj;
1435 wxTextCtrl * _result;
1436 wxListCtrl * _arg0;
1437 long _arg1;
1438 PyObject * _argo0 = 0;
1439 char _ptemp[128];
1440
1441 self = self;
1442 if(!PyArg_ParseTuple(args,"Ol:wxListCtrl_EditLabel",&_argo0,&_arg1))
1443 return NULL;
1444 if (_argo0) {
1445 if (_argo0 == Py_None) { _arg0 = NULL; }
1446 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
1447 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EditLabel. Expected _wxListCtrl_p.");
1448 return NULL;
1449 }
1450 }
1451 {
1452 wxPy_BEGIN_ALLOW_THREADS;
1453 _result = (wxTextCtrl *)wxListCtrl_EditLabel(_arg0,_arg1);
1454
1455 wxPy_END_ALLOW_THREADS;
1456 } if (_result) {
1457 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p");
1458 _resultobj = Py_BuildValue("s",_ptemp);
1459 } else {
1460 Py_INCREF(Py_None);
1461 _resultobj = Py_None;
1462 }
1463 return _resultobj;
1464 }
1465
1466 #define wxListCtrl_EndEditLabel(_swigobj,_swigarg0) (_swigobj->EndEditLabel(_swigarg0))
1467 static PyObject *_wrap_wxListCtrl_EndEditLabel(PyObject *self, PyObject *args) {
1468 PyObject * _resultobj;
1469 bool _result;
1470 wxListCtrl * _arg0;
1471 bool _arg1;
1472 PyObject * _argo0 = 0;
1473 int tempbool1;
1474
1475 self = self;
1476 if(!PyArg_ParseTuple(args,"Oi:wxListCtrl_EndEditLabel",&_argo0,&tempbool1))
1477 return NULL;
1478 if (_argo0) {
1479 if (_argo0 == Py_None) { _arg0 = NULL; }
1480 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
1481 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EndEditLabel. Expected _wxListCtrl_p.");
1482 return NULL;
1483 }
1484 }
1485 _arg1 = (bool ) tempbool1;
1486 {
1487 wxPy_BEGIN_ALLOW_THREADS;
1488 _result = (bool )wxListCtrl_EndEditLabel(_arg0,_arg1);
1489
1490 wxPy_END_ALLOW_THREADS;
1491 } _resultobj = Py_BuildValue("i",_result);
1492 return _resultobj;
1493 }
1494
1495 #define wxListCtrl_GetEditControl(_swigobj) (_swigobj->GetEditControl())
1496 static PyObject *_wrap_wxListCtrl_GetEditControl(PyObject *self, PyObject *args) {
1497 PyObject * _resultobj;
1498 wxTextCtrl * _result;
1499 wxListCtrl * _arg0;
1500 PyObject * _argo0 = 0;
1501 char _ptemp[128];
1502
1503 self = self;
1504 if(!PyArg_ParseTuple(args,"O:wxListCtrl_GetEditControl",&_argo0))
1505 return NULL;
1506 if (_argo0) {
1507 if (_argo0 == Py_None) { _arg0 = NULL; }
1508 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
1509 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetEditControl. Expected _wxListCtrl_p.");
1510 return NULL;
1511 }
1512 }
1513 {
1514 wxPy_BEGIN_ALLOW_THREADS;
1515 _result = (wxTextCtrl *)wxListCtrl_GetEditControl(_arg0);
1516
1517 wxPy_END_ALLOW_THREADS;
1518 } if (_result) {
1519 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p");
1520 _resultobj = Py_BuildValue("s",_ptemp);
1521 } else {
1522 Py_INCREF(Py_None);
1523 _resultobj = Py_None;
1524 }
1525 return _resultobj;
1526 }
1527
1528 #define wxListCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0))
1529 static PyObject *_wrap_wxListCtrl_EnsureVisible(PyObject *self, PyObject *args) {
1530 PyObject * _resultobj;
1531 bool _result;
1532 wxListCtrl * _arg0;
1533 long _arg1;
1534 PyObject * _argo0 = 0;
1535
1536 self = self;
1537 if(!PyArg_ParseTuple(args,"Ol:wxListCtrl_EnsureVisible",&_argo0,&_arg1))
1538 return NULL;
1539 if (_argo0) {
1540 if (_argo0 == Py_None) { _arg0 = NULL; }
1541 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
1542 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EnsureVisible. Expected _wxListCtrl_p.");
1543 return NULL;
1544 }
1545 }
1546 {
1547 wxPy_BEGIN_ALLOW_THREADS;
1548 _result = (bool )wxListCtrl_EnsureVisible(_arg0,_arg1);
1549
1550 wxPy_END_ALLOW_THREADS;
1551 } _resultobj = Py_BuildValue("i",_result);
1552 return _resultobj;
1553 }
1554
1555 #define wxListCtrl_FindItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2))
1556 static PyObject *_wrap_wxListCtrl_FindItem(PyObject *self, PyObject *args) {
1557 PyObject * _resultobj;
1558 long _result;
1559 wxListCtrl * _arg0;
1560 long _arg1;
1561 wxString * _arg2;
1562 bool _arg3 = (bool ) FALSE;
1563 PyObject * _argo0 = 0;
1564 PyObject * _obj2 = 0;
1565 int tempbool3 = (int) FALSE;
1566
1567 self = self;
1568 if(!PyArg_ParseTuple(args,"OlO|i:wxListCtrl_FindItem",&_argo0,&_arg1,&_obj2,&tempbool3))
1569 return NULL;
1570 if (_argo0) {
1571 if (_argo0 == Py_None) { _arg0 = NULL; }
1572 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
1573 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItem. Expected _wxListCtrl_p.");
1574 return NULL;
1575 }
1576 }
1577 {
1578 if (!PyString_Check(_obj2)) {
1579 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1580 return NULL;
1581 }
1582 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
1583 }
1584 _arg3 = (bool ) tempbool3;
1585 {
1586 wxPy_BEGIN_ALLOW_THREADS;
1587 _result = (long )wxListCtrl_FindItem(_arg0,_arg1,*_arg2,_arg3);
1588
1589 wxPy_END_ALLOW_THREADS;
1590 } _resultobj = Py_BuildValue("l",_result);
1591 {
1592 if (_obj2)
1593 delete _arg2;
1594 }
1595 return _resultobj;
1596 }
1597
1598 #define wxListCtrl_FindItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindItem(_swigarg0,_swigarg1))
1599 static PyObject *_wrap_wxListCtrl_FindItemData(PyObject *self, PyObject *args) {
1600 PyObject * _resultobj;
1601 long _result;
1602 wxListCtrl * _arg0;
1603 long _arg1;
1604 long _arg2;
1605 PyObject * _argo0 = 0;
1606
1607 self = self;
1608 if(!PyArg_ParseTuple(args,"Oll:wxListCtrl_FindItemData",&_argo0,&_arg1,&_arg2))
1609 return NULL;
1610 if (_argo0) {
1611 if (_argo0 == Py_None) { _arg0 = NULL; }
1612 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
1613 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemData. Expected _wxListCtrl_p.");
1614 return NULL;
1615 }
1616 }
1617 {
1618 wxPy_BEGIN_ALLOW_THREADS;
1619 _result = (long )wxListCtrl_FindItemData(_arg0,_arg1,_arg2);
1620
1621 wxPy_END_ALLOW_THREADS;
1622 } _resultobj = Py_BuildValue("l",_result);
1623 return _resultobj;
1624 }
1625
1626 #define wxListCtrl_FindItemAtPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2))
1627 static PyObject *_wrap_wxListCtrl_FindItemAtPos(PyObject *self, PyObject *args) {
1628 PyObject * _resultobj;
1629 long _result;
1630 wxListCtrl * _arg0;
1631 long _arg1;
1632 wxPoint * _arg2;
1633 int _arg3;
1634 PyObject * _argo0 = 0;
1635 PyObject * _argo2 = 0;
1636
1637 self = self;
1638 if(!PyArg_ParseTuple(args,"OlOi:wxListCtrl_FindItemAtPos",&_argo0,&_arg1,&_argo2,&_arg3))
1639 return NULL;
1640 if (_argo0) {
1641 if (_argo0 == Py_None) { _arg0 = NULL; }
1642 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
1643 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemAtPos. Expected _wxListCtrl_p.");
1644 return NULL;
1645 }
1646 }
1647 if (_argo2) {
1648 if (_argo2 == Py_None) { _arg2 = NULL; }
1649 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPoint_p")) {
1650 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_FindItemAtPos. Expected _wxPoint_p.");
1651 return NULL;
1652 }
1653 }
1654 {
1655 wxPy_BEGIN_ALLOW_THREADS;
1656 _result = (long )wxListCtrl_FindItemAtPos(_arg0,_arg1,*_arg2,_arg3);
1657
1658 wxPy_END_ALLOW_THREADS;
1659 } _resultobj = Py_BuildValue("l",_result);
1660 return _resultobj;
1661 }
1662
1663 #define wxListCtrl_GetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetColumn(_swigarg0,_swigarg1))
1664 static PyObject *_wrap_wxListCtrl_GetColumn(PyObject *self, PyObject *args) {
1665 PyObject * _resultobj;
1666 bool _result;
1667 wxListCtrl * _arg0;
1668 int _arg1;
1669 wxListItem * _arg2;
1670 PyObject * _argo0 = 0;
1671 PyObject * _argo2 = 0;
1672
1673 self = self;
1674 if(!PyArg_ParseTuple(args,"OiO:wxListCtrl_GetColumn",&_argo0,&_arg1,&_argo2))
1675 return NULL;
1676 if (_argo0) {
1677 if (_argo0 == Py_None) { _arg0 = NULL; }
1678 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
1679 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumn. Expected _wxListCtrl_p.");
1680 return NULL;
1681 }
1682 }
1683 if (_argo2) {
1684 if (_argo2 == Py_None) { _arg2 = NULL; }
1685 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) {
1686 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_GetColumn. Expected _wxListItem_p.");
1687 return NULL;
1688 }
1689 }
1690 {
1691 wxPy_BEGIN_ALLOW_THREADS;
1692 _result = (bool )wxListCtrl_GetColumn(_arg0,_arg1,*_arg2);
1693
1694 wxPy_END_ALLOW_THREADS;
1695 } _resultobj = Py_BuildValue("i",_result);
1696 return _resultobj;
1697 }
1698
1699 #define wxListCtrl_GetColumnWidth(_swigobj,_swigarg0) (_swigobj->GetColumnWidth(_swigarg0))
1700 static PyObject *_wrap_wxListCtrl_GetColumnWidth(PyObject *self, PyObject *args) {
1701 PyObject * _resultobj;
1702 int _result;
1703 wxListCtrl * _arg0;
1704 int _arg1;
1705 PyObject * _argo0 = 0;
1706
1707 self = self;
1708 if(!PyArg_ParseTuple(args,"Oi:wxListCtrl_GetColumnWidth",&_argo0,&_arg1))
1709 return NULL;
1710 if (_argo0) {
1711 if (_argo0 == Py_None) { _arg0 = NULL; }
1712 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
1713 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnWidth. Expected _wxListCtrl_p.");
1714 return NULL;
1715 }
1716 }
1717 {
1718 wxPy_BEGIN_ALLOW_THREADS;
1719 _result = (int )wxListCtrl_GetColumnWidth(_arg0,_arg1);
1720
1721 wxPy_END_ALLOW_THREADS;
1722 } _resultobj = Py_BuildValue("i",_result);
1723 return _resultobj;
1724 }
1725
1726 #define wxListCtrl_GetCountPerPage(_swigobj) (_swigobj->GetCountPerPage())
1727 static PyObject *_wrap_wxListCtrl_GetCountPerPage(PyObject *self, PyObject *args) {
1728 PyObject * _resultobj;
1729 int _result;
1730 wxListCtrl * _arg0;
1731 PyObject * _argo0 = 0;
1732
1733 self = self;
1734 if(!PyArg_ParseTuple(args,"O:wxListCtrl_GetCountPerPage",&_argo0))
1735 return NULL;
1736 if (_argo0) {
1737 if (_argo0 == Py_None) { _arg0 = NULL; }
1738 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
1739 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetCountPerPage. Expected _wxListCtrl_p.");
1740 return NULL;
1741 }
1742 }
1743 {
1744 wxPy_BEGIN_ALLOW_THREADS;
1745 _result = (int )wxListCtrl_GetCountPerPage(_arg0);
1746
1747 wxPy_END_ALLOW_THREADS;
1748 } _resultobj = Py_BuildValue("i",_result);
1749 return _resultobj;
1750 }
1751
1752 #define wxListCtrl_GetImageList(_swigobj,_swigarg0) (_swigobj->GetImageList(_swigarg0))
1753 static PyObject *_wrap_wxListCtrl_GetImageList(PyObject *self, PyObject *args) {
1754 PyObject * _resultobj;
1755 wxImageList * _result;
1756 wxListCtrl * _arg0;
1757 int _arg1;
1758 PyObject * _argo0 = 0;
1759 char _ptemp[128];
1760
1761 self = self;
1762 if(!PyArg_ParseTuple(args,"Oi:wxListCtrl_GetImageList",&_argo0,&_arg1))
1763 return NULL;
1764 if (_argo0) {
1765 if (_argo0 == Py_None) { _arg0 = NULL; }
1766 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
1767 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetImageList. Expected _wxListCtrl_p.");
1768 return NULL;
1769 }
1770 }
1771 {
1772 wxPy_BEGIN_ALLOW_THREADS;
1773 _result = (wxImageList *)wxListCtrl_GetImageList(_arg0,_arg1);
1774
1775 wxPy_END_ALLOW_THREADS;
1776 } if (_result) {
1777 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p");
1778 _resultobj = Py_BuildValue("s",_ptemp);
1779 } else {
1780 Py_INCREF(Py_None);
1781 _resultobj = Py_None;
1782 }
1783 return _resultobj;
1784 }
1785
1786 #define wxListCtrl_GetItemData(_swigobj,_swigarg0) (_swigobj->GetItemData(_swigarg0))
1787 static PyObject *_wrap_wxListCtrl_GetItemData(PyObject *self, PyObject *args) {
1788 PyObject * _resultobj;
1789 long _result;
1790 wxListCtrl * _arg0;
1791 long _arg1;
1792 PyObject * _argo0 = 0;
1793
1794 self = self;
1795 if(!PyArg_ParseTuple(args,"Ol:wxListCtrl_GetItemData",&_argo0,&_arg1))
1796 return NULL;
1797 if (_argo0) {
1798 if (_argo0 == Py_None) { _arg0 = NULL; }
1799 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
1800 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemData. Expected _wxListCtrl_p.");
1801 return NULL;
1802 }
1803 }
1804 {
1805 wxPy_BEGIN_ALLOW_THREADS;
1806 _result = (long )wxListCtrl_GetItemData(_arg0,_arg1);
1807
1808 wxPy_END_ALLOW_THREADS;
1809 } _resultobj = Py_BuildValue("l",_result);
1810 return _resultobj;
1811 }
1812
1813 static wxListItem * wxListCtrl_GetItem(wxListCtrl *self,long itemId) {
1814 wxListItem* info = new wxListItem;
1815 info->m_itemId = itemId;
1816 self->GetItem(*info);
1817 return info;
1818 }
1819 static PyObject *_wrap_wxListCtrl_GetItem(PyObject *self, PyObject *args) {
1820 PyObject * _resultobj;
1821 wxListItem * _result;
1822 wxListCtrl * _arg0;
1823 long _arg1;
1824 PyObject * _argo0 = 0;
1825 char _ptemp[128];
1826
1827 self = self;
1828 if(!PyArg_ParseTuple(args,"Ol:wxListCtrl_GetItem",&_argo0,&_arg1))
1829 return NULL;
1830 if (_argo0) {
1831 if (_argo0 == Py_None) { _arg0 = NULL; }
1832 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
1833 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItem. Expected _wxListCtrl_p.");
1834 return NULL;
1835 }
1836 }
1837 {
1838 wxPy_BEGIN_ALLOW_THREADS;
1839 _result = (wxListItem *)wxListCtrl_GetItem(_arg0,_arg1);
1840
1841 wxPy_END_ALLOW_THREADS;
1842 } if (_result) {
1843 SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p");
1844 _resultobj = Py_BuildValue("s",_ptemp);
1845 } else {
1846 Py_INCREF(Py_None);
1847 _resultobj = Py_None;
1848 }
1849 return _resultobj;
1850 }
1851
1852 static wxPoint * wxListCtrl_GetItemPosition(wxListCtrl *self,long item) {
1853 wxPoint* pos = new wxPoint;
1854 self->GetItemPosition(item, *pos);
1855 return pos;
1856 }
1857 static PyObject *_wrap_wxListCtrl_GetItemPosition(PyObject *self, PyObject *args) {
1858 PyObject * _resultobj;
1859 wxPoint * _result;
1860 wxListCtrl * _arg0;
1861 long _arg1;
1862 PyObject * _argo0 = 0;
1863 char _ptemp[128];
1864
1865 self = self;
1866 if(!PyArg_ParseTuple(args,"Ol:wxListCtrl_GetItemPosition",&_argo0,&_arg1))
1867 return NULL;
1868 if (_argo0) {
1869 if (_argo0 == Py_None) { _arg0 = NULL; }
1870 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
1871 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemPosition. Expected _wxListCtrl_p.");
1872 return NULL;
1873 }
1874 }
1875 {
1876 wxPy_BEGIN_ALLOW_THREADS;
1877 _result = (wxPoint *)wxListCtrl_GetItemPosition(_arg0,_arg1);
1878
1879 wxPy_END_ALLOW_THREADS;
1880 } if (_result) {
1881 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p");
1882 _resultobj = Py_BuildValue("s",_ptemp);
1883 } else {
1884 Py_INCREF(Py_None);
1885 _resultobj = Py_None;
1886 }
1887 return _resultobj;
1888 }
1889
1890 static wxRect * wxListCtrl_GetItemRect(wxListCtrl *self,long item,int code) {
1891 wxRect* rect= new wxRect;
1892 self->GetItemRect(item, *rect, code);
1893 return rect;
1894 }
1895 static PyObject *_wrap_wxListCtrl_GetItemRect(PyObject *self, PyObject *args) {
1896 PyObject * _resultobj;
1897 wxRect * _result;
1898 wxListCtrl * _arg0;
1899 long _arg1;
1900 int _arg2 = (int ) (wxLIST_RECT_BOUNDS);
1901 PyObject * _argo0 = 0;
1902 char _ptemp[128];
1903
1904 self = self;
1905 if(!PyArg_ParseTuple(args,"Ol|i:wxListCtrl_GetItemRect",&_argo0,&_arg1,&_arg2))
1906 return NULL;
1907 if (_argo0) {
1908 if (_argo0 == Py_None) { _arg0 = NULL; }
1909 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
1910 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemRect. Expected _wxListCtrl_p.");
1911 return NULL;
1912 }
1913 }
1914 {
1915 wxPy_BEGIN_ALLOW_THREADS;
1916 _result = (wxRect *)wxListCtrl_GetItemRect(_arg0,_arg1,_arg2);
1917
1918 wxPy_END_ALLOW_THREADS;
1919 } if (_result) {
1920 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRect_p");
1921 _resultobj = Py_BuildValue("s",_ptemp);
1922 } else {
1923 Py_INCREF(Py_None);
1924 _resultobj = Py_None;
1925 }
1926 return _resultobj;
1927 }
1928
1929 #define wxListCtrl_GetItemState(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemState(_swigarg0,_swigarg1))
1930 static PyObject *_wrap_wxListCtrl_GetItemState(PyObject *self, PyObject *args) {
1931 PyObject * _resultobj;
1932 int _result;
1933 wxListCtrl * _arg0;
1934 long _arg1;
1935 long _arg2;
1936 PyObject * _argo0 = 0;
1937
1938 self = self;
1939 if(!PyArg_ParseTuple(args,"Oll:wxListCtrl_GetItemState",&_argo0,&_arg1,&_arg2))
1940 return NULL;
1941 if (_argo0) {
1942 if (_argo0 == Py_None) { _arg0 = NULL; }
1943 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
1944 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemState. Expected _wxListCtrl_p.");
1945 return NULL;
1946 }
1947 }
1948 {
1949 wxPy_BEGIN_ALLOW_THREADS;
1950 _result = (int )wxListCtrl_GetItemState(_arg0,_arg1,_arg2);
1951
1952 wxPy_END_ALLOW_THREADS;
1953 } _resultobj = Py_BuildValue("i",_result);
1954 return _resultobj;
1955 }
1956
1957 #define wxListCtrl_GetItemCount(_swigobj) (_swigobj->GetItemCount())
1958 static PyObject *_wrap_wxListCtrl_GetItemCount(PyObject *self, PyObject *args) {
1959 PyObject * _resultobj;
1960 int _result;
1961 wxListCtrl * _arg0;
1962 PyObject * _argo0 = 0;
1963
1964 self = self;
1965 if(!PyArg_ParseTuple(args,"O:wxListCtrl_GetItemCount",&_argo0))
1966 return NULL;
1967 if (_argo0) {
1968 if (_argo0 == Py_None) { _arg0 = NULL; }
1969 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
1970 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemCount. Expected _wxListCtrl_p.");
1971 return NULL;
1972 }
1973 }
1974 {
1975 wxPy_BEGIN_ALLOW_THREADS;
1976 _result = (int )wxListCtrl_GetItemCount(_arg0);
1977
1978 wxPy_END_ALLOW_THREADS;
1979 } _resultobj = Py_BuildValue("i",_result);
1980 return _resultobj;
1981 }
1982
1983 #define wxListCtrl_GetItemSpacing(_swigobj,_swigarg0) (_swigobj->GetItemSpacing(_swigarg0))
1984 static PyObject *_wrap_wxListCtrl_GetItemSpacing(PyObject *self, PyObject *args) {
1985 PyObject * _resultobj;
1986 int _result;
1987 wxListCtrl * _arg0;
1988 bool _arg1;
1989 PyObject * _argo0 = 0;
1990 int tempbool1;
1991
1992 self = self;
1993 if(!PyArg_ParseTuple(args,"Oi:wxListCtrl_GetItemSpacing",&_argo0,&tempbool1))
1994 return NULL;
1995 if (_argo0) {
1996 if (_argo0 == Py_None) { _arg0 = NULL; }
1997 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
1998 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemSpacing. Expected _wxListCtrl_p.");
1999 return NULL;
2000 }
2001 }
2002 _arg1 = (bool ) tempbool1;
2003 {
2004 wxPy_BEGIN_ALLOW_THREADS;
2005 _result = (int )wxListCtrl_GetItemSpacing(_arg0,_arg1);
2006
2007 wxPy_END_ALLOW_THREADS;
2008 } _resultobj = Py_BuildValue("i",_result);
2009 return _resultobj;
2010 }
2011
2012 #define wxListCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0))
2013 static PyObject *_wrap_wxListCtrl_GetItemText(PyObject *self, PyObject *args) {
2014 PyObject * _resultobj;
2015 wxString * _result;
2016 wxListCtrl * _arg0;
2017 long _arg1;
2018 PyObject * _argo0 = 0;
2019
2020 self = self;
2021 if(!PyArg_ParseTuple(args,"Ol:wxListCtrl_GetItemText",&_argo0,&_arg1))
2022 return NULL;
2023 if (_argo0) {
2024 if (_argo0 == Py_None) { _arg0 = NULL; }
2025 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2026 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemText. Expected _wxListCtrl_p.");
2027 return NULL;
2028 }
2029 }
2030 {
2031 wxPy_BEGIN_ALLOW_THREADS;
2032 _result = new wxString (wxListCtrl_GetItemText(_arg0,_arg1));
2033
2034 wxPy_END_ALLOW_THREADS;
2035 }{
2036 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
2037 }
2038 {
2039 delete _result;
2040 }
2041 return _resultobj;
2042 }
2043
2044 #define wxListCtrl_GetNextItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetNextItem(_swigarg0,_swigarg1,_swigarg2))
2045 static PyObject *_wrap_wxListCtrl_GetNextItem(PyObject *self, PyObject *args) {
2046 PyObject * _resultobj;
2047 long _result;
2048 wxListCtrl * _arg0;
2049 long _arg1;
2050 int _arg2 = (int ) (wxLIST_NEXT_ALL);
2051 int _arg3 = (int ) (wxLIST_STATE_DONTCARE);
2052 PyObject * _argo0 = 0;
2053
2054 self = self;
2055 if(!PyArg_ParseTuple(args,"Ol|ii:wxListCtrl_GetNextItem",&_argo0,&_arg1,&_arg2,&_arg3))
2056 return NULL;
2057 if (_argo0) {
2058 if (_argo0 == Py_None) { _arg0 = NULL; }
2059 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2060 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetNextItem. Expected _wxListCtrl_p.");
2061 return NULL;
2062 }
2063 }
2064 {
2065 wxPy_BEGIN_ALLOW_THREADS;
2066 _result = (long )wxListCtrl_GetNextItem(_arg0,_arg1,_arg2,_arg3);
2067
2068 wxPy_END_ALLOW_THREADS;
2069 } _resultobj = Py_BuildValue("l",_result);
2070 return _resultobj;
2071 }
2072
2073 #define wxListCtrl_GetSelectedItemCount(_swigobj) (_swigobj->GetSelectedItemCount())
2074 static PyObject *_wrap_wxListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args) {
2075 PyObject * _resultobj;
2076 int _result;
2077 wxListCtrl * _arg0;
2078 PyObject * _argo0 = 0;
2079
2080 self = self;
2081 if(!PyArg_ParseTuple(args,"O:wxListCtrl_GetSelectedItemCount",&_argo0))
2082 return NULL;
2083 if (_argo0) {
2084 if (_argo0 == Py_None) { _arg0 = NULL; }
2085 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2086 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetSelectedItemCount. Expected _wxListCtrl_p.");
2087 return NULL;
2088 }
2089 }
2090 {
2091 wxPy_BEGIN_ALLOW_THREADS;
2092 _result = (int )wxListCtrl_GetSelectedItemCount(_arg0);
2093
2094 wxPy_END_ALLOW_THREADS;
2095 } _resultobj = Py_BuildValue("i",_result);
2096 return _resultobj;
2097 }
2098
2099 #define wxListCtrl_GetTextColour(_swigobj) (_swigobj->GetTextColour())
2100 static PyObject *_wrap_wxListCtrl_GetTextColour(PyObject *self, PyObject *args) {
2101 PyObject * _resultobj;
2102 wxColour * _result;
2103 wxListCtrl * _arg0;
2104 PyObject * _argo0 = 0;
2105 char _ptemp[128];
2106
2107 self = self;
2108 if(!PyArg_ParseTuple(args,"O:wxListCtrl_GetTextColour",&_argo0))
2109 return NULL;
2110 if (_argo0) {
2111 if (_argo0 == Py_None) { _arg0 = NULL; }
2112 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2113 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTextColour. Expected _wxListCtrl_p.");
2114 return NULL;
2115 }
2116 }
2117 {
2118 wxPy_BEGIN_ALLOW_THREADS;
2119 _result = new wxColour (wxListCtrl_GetTextColour(_arg0));
2120
2121 wxPy_END_ALLOW_THREADS;
2122 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
2123 _resultobj = Py_BuildValue("s",_ptemp);
2124 return _resultobj;
2125 }
2126
2127 #define wxListCtrl_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0))
2128 static PyObject *_wrap_wxListCtrl_SetTextColour(PyObject *self, PyObject *args) {
2129 PyObject * _resultobj;
2130 wxListCtrl * _arg0;
2131 wxColour * _arg1;
2132 PyObject * _argo0 = 0;
2133 PyObject * _argo1 = 0;
2134
2135 self = self;
2136 if(!PyArg_ParseTuple(args,"OO:wxListCtrl_SetTextColour",&_argo0,&_argo1))
2137 return NULL;
2138 if (_argo0) {
2139 if (_argo0 == Py_None) { _arg0 = NULL; }
2140 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2141 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetTextColour. Expected _wxListCtrl_p.");
2142 return NULL;
2143 }
2144 }
2145 if (_argo1) {
2146 if (_argo1 == Py_None) { _arg1 = NULL; }
2147 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) {
2148 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetTextColour. Expected _wxColour_p.");
2149 return NULL;
2150 }
2151 }
2152 {
2153 wxPy_BEGIN_ALLOW_THREADS;
2154 wxListCtrl_SetTextColour(_arg0,*_arg1);
2155
2156 wxPy_END_ALLOW_THREADS;
2157 } Py_INCREF(Py_None);
2158 _resultobj = Py_None;
2159 return _resultobj;
2160 }
2161
2162 #define wxListCtrl_GetTopItem(_swigobj) (_swigobj->GetTopItem())
2163 static PyObject *_wrap_wxListCtrl_GetTopItem(PyObject *self, PyObject *args) {
2164 PyObject * _resultobj;
2165 long _result;
2166 wxListCtrl * _arg0;
2167 PyObject * _argo0 = 0;
2168
2169 self = self;
2170 if(!PyArg_ParseTuple(args,"O:wxListCtrl_GetTopItem",&_argo0))
2171 return NULL;
2172 if (_argo0) {
2173 if (_argo0 == Py_None) { _arg0 = NULL; }
2174 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2175 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTopItem. Expected _wxListCtrl_p.");
2176 return NULL;
2177 }
2178 }
2179 {
2180 wxPy_BEGIN_ALLOW_THREADS;
2181 _result = (long )wxListCtrl_GetTopItem(_arg0);
2182
2183 wxPy_END_ALLOW_THREADS;
2184 } _resultobj = Py_BuildValue("l",_result);
2185 return _resultobj;
2186 }
2187
2188 #define wxListCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1))
2189 static PyObject *_wrap_wxListCtrl_HitTest(PyObject *self, PyObject *args) {
2190 PyObject * _resultobj;
2191 long _result;
2192 wxListCtrl * _arg0;
2193 wxPoint * _arg1;
2194 int * _arg2;
2195 int temp;
2196 PyObject * _argo0 = 0;
2197 PyObject * _argo1 = 0;
2198
2199 self = self;
2200 {
2201 _arg2 = &temp;
2202 }
2203 if(!PyArg_ParseTuple(args,"OO:wxListCtrl_HitTest",&_argo0,&_argo1))
2204 return NULL;
2205 if (_argo0) {
2206 if (_argo0 == Py_None) { _arg0 = NULL; }
2207 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2208 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_HitTest. Expected _wxListCtrl_p.");
2209 return NULL;
2210 }
2211 }
2212 if (_argo1) {
2213 if (_argo1 == Py_None) { _arg1 = NULL; }
2214 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPoint_p")) {
2215 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_HitTest. Expected _wxPoint_p.");
2216 return NULL;
2217 }
2218 }
2219 {
2220 wxPy_BEGIN_ALLOW_THREADS;
2221 _result = (long )wxListCtrl_HitTest(_arg0,*_arg1,*_arg2);
2222
2223 wxPy_END_ALLOW_THREADS;
2224 } _resultobj = Py_BuildValue("l",_result);
2225 {
2226 PyObject *o;
2227 o = PyInt_FromLong((long) (*_arg2));
2228 _resultobj = t_output_helper(_resultobj, o);
2229 }
2230 return _resultobj;
2231 }
2232
2233 #define wxListCtrl_InsertColumnWith(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertColumn(_swigarg0,_swigarg1))
2234 static PyObject *_wrap_wxListCtrl_InsertColumnWith(PyObject *self, PyObject *args) {
2235 PyObject * _resultobj;
2236 long _result;
2237 wxListCtrl * _arg0;
2238 long _arg1;
2239 wxListItem * _arg2;
2240 PyObject * _argo0 = 0;
2241 PyObject * _argo2 = 0;
2242
2243 self = self;
2244 if(!PyArg_ParseTuple(args,"OlO:wxListCtrl_InsertColumnWith",&_argo0,&_arg1,&_argo2))
2245 return NULL;
2246 if (_argo0) {
2247 if (_argo0 == Py_None) { _arg0 = NULL; }
2248 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2249 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumnWith. Expected _wxListCtrl_p.");
2250 return NULL;
2251 }
2252 }
2253 if (_argo2) {
2254 if (_argo2 == Py_None) { _arg2 = NULL; }
2255 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) {
2256 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_InsertColumnWith. Expected _wxListItem_p.");
2257 return NULL;
2258 }
2259 }
2260 {
2261 wxPy_BEGIN_ALLOW_THREADS;
2262 _result = (long )wxListCtrl_InsertColumnWith(_arg0,_arg1,*_arg2);
2263
2264 wxPy_END_ALLOW_THREADS;
2265 } _resultobj = Py_BuildValue("l",_result);
2266 return _resultobj;
2267 }
2268
2269 #define wxListCtrl_InsertColumn(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertColumn(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2270 static PyObject *_wrap_wxListCtrl_InsertColumn(PyObject *self, PyObject *args) {
2271 PyObject * _resultobj;
2272 long _result;
2273 wxListCtrl * _arg0;
2274 long _arg1;
2275 wxString * _arg2;
2276 int _arg3 = (int ) (wxLIST_FORMAT_LEFT);
2277 int _arg4 = (int ) -1;
2278 PyObject * _argo0 = 0;
2279 PyObject * _obj2 = 0;
2280
2281 self = self;
2282 if(!PyArg_ParseTuple(args,"OlO|ii:wxListCtrl_InsertColumn",&_argo0,&_arg1,&_obj2,&_arg3,&_arg4))
2283 return NULL;
2284 if (_argo0) {
2285 if (_argo0 == Py_None) { _arg0 = NULL; }
2286 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2287 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumn. Expected _wxListCtrl_p.");
2288 return NULL;
2289 }
2290 }
2291 {
2292 if (!PyString_Check(_obj2)) {
2293 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2294 return NULL;
2295 }
2296 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
2297 }
2298 {
2299 wxPy_BEGIN_ALLOW_THREADS;
2300 _result = (long )wxListCtrl_InsertColumn(_arg0,_arg1,*_arg2,_arg3,_arg4);
2301
2302 wxPy_END_ALLOW_THREADS;
2303 } _resultobj = Py_BuildValue("l",_result);
2304 {
2305 if (_obj2)
2306 delete _arg2;
2307 }
2308 return _resultobj;
2309 }
2310
2311 #define wxListCtrl_InsertItem(_swigobj,_swigarg0) (_swigobj->InsertItem(_swigarg0))
2312 static PyObject *_wrap_wxListCtrl_InsertItem(PyObject *self, PyObject *args) {
2313 PyObject * _resultobj;
2314 long _result;
2315 wxListCtrl * _arg0;
2316 wxListItem * _arg1;
2317 PyObject * _argo0 = 0;
2318 PyObject * _argo1 = 0;
2319
2320 self = self;
2321 if(!PyArg_ParseTuple(args,"OO:wxListCtrl_InsertItem",&_argo0,&_argo1))
2322 return NULL;
2323 if (_argo0) {
2324 if (_argo0 == Py_None) { _arg0 = NULL; }
2325 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2326 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertItem. Expected _wxListCtrl_p.");
2327 return NULL;
2328 }
2329 }
2330 if (_argo1) {
2331 if (_argo1 == Py_None) { _arg1 = NULL; }
2332 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) {
2333 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_InsertItem. Expected _wxListItem_p.");
2334 return NULL;
2335 }
2336 }
2337 {
2338 wxPy_BEGIN_ALLOW_THREADS;
2339 _result = (long )wxListCtrl_InsertItem(_arg0,*_arg1);
2340
2341 wxPy_END_ALLOW_THREADS;
2342 } _resultobj = Py_BuildValue("l",_result);
2343 return _resultobj;
2344 }
2345
2346 #define wxListCtrl_InsertStringItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1))
2347 static PyObject *_wrap_wxListCtrl_InsertStringItem(PyObject *self, PyObject *args) {
2348 PyObject * _resultobj;
2349 long _result;
2350 wxListCtrl * _arg0;
2351 long _arg1;
2352 wxString * _arg2;
2353 PyObject * _argo0 = 0;
2354 PyObject * _obj2 = 0;
2355
2356 self = self;
2357 if(!PyArg_ParseTuple(args,"OlO:wxListCtrl_InsertStringItem",&_argo0,&_arg1,&_obj2))
2358 return NULL;
2359 if (_argo0) {
2360 if (_argo0 == Py_None) { _arg0 = NULL; }
2361 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2362 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertStringItem. Expected _wxListCtrl_p.");
2363 return NULL;
2364 }
2365 }
2366 {
2367 if (!PyString_Check(_obj2)) {
2368 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2369 return NULL;
2370 }
2371 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
2372 }
2373 {
2374 wxPy_BEGIN_ALLOW_THREADS;
2375 _result = (long )wxListCtrl_InsertStringItem(_arg0,_arg1,*_arg2);
2376
2377 wxPy_END_ALLOW_THREADS;
2378 } _resultobj = Py_BuildValue("l",_result);
2379 {
2380 if (_obj2)
2381 delete _arg2;
2382 }
2383 return _resultobj;
2384 }
2385
2386 #define wxListCtrl_InsertImageItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1))
2387 static PyObject *_wrap_wxListCtrl_InsertImageItem(PyObject *self, PyObject *args) {
2388 PyObject * _resultobj;
2389 long _result;
2390 wxListCtrl * _arg0;
2391 long _arg1;
2392 int _arg2;
2393 PyObject * _argo0 = 0;
2394
2395 self = self;
2396 if(!PyArg_ParseTuple(args,"Oli:wxListCtrl_InsertImageItem",&_argo0,&_arg1,&_arg2))
2397 return NULL;
2398 if (_argo0) {
2399 if (_argo0 == Py_None) { _arg0 = NULL; }
2400 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2401 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageItem. Expected _wxListCtrl_p.");
2402 return NULL;
2403 }
2404 }
2405 {
2406 wxPy_BEGIN_ALLOW_THREADS;
2407 _result = (long )wxListCtrl_InsertImageItem(_arg0,_arg1,_arg2);
2408
2409 wxPy_END_ALLOW_THREADS;
2410 } _resultobj = Py_BuildValue("l",_result);
2411 return _resultobj;
2412 }
2413
2414 #define wxListCtrl_InsertImageStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2))
2415 static PyObject *_wrap_wxListCtrl_InsertImageStringItem(PyObject *self, PyObject *args) {
2416 PyObject * _resultobj;
2417 long _result;
2418 wxListCtrl * _arg0;
2419 long _arg1;
2420 wxString * _arg2;
2421 int _arg3;
2422 PyObject * _argo0 = 0;
2423 PyObject * _obj2 = 0;
2424
2425 self = self;
2426 if(!PyArg_ParseTuple(args,"OlOi:wxListCtrl_InsertImageStringItem",&_argo0,&_arg1,&_obj2,&_arg3))
2427 return NULL;
2428 if (_argo0) {
2429 if (_argo0 == Py_None) { _arg0 = NULL; }
2430 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2431 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageStringItem. Expected _wxListCtrl_p.");
2432 return NULL;
2433 }
2434 }
2435 {
2436 if (!PyString_Check(_obj2)) {
2437 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2438 return NULL;
2439 }
2440 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
2441 }
2442 {
2443 wxPy_BEGIN_ALLOW_THREADS;
2444 _result = (long )wxListCtrl_InsertImageStringItem(_arg0,_arg1,*_arg2,_arg3);
2445
2446 wxPy_END_ALLOW_THREADS;
2447 } _resultobj = Py_BuildValue("l",_result);
2448 {
2449 if (_obj2)
2450 delete _arg2;
2451 }
2452 return _resultobj;
2453 }
2454
2455 #define wxListCtrl_ScrollList(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScrollList(_swigarg0,_swigarg1))
2456 static PyObject *_wrap_wxListCtrl_ScrollList(PyObject *self, PyObject *args) {
2457 PyObject * _resultobj;
2458 bool _result;
2459 wxListCtrl * _arg0;
2460 int _arg1;
2461 int _arg2;
2462 PyObject * _argo0 = 0;
2463
2464 self = self;
2465 if(!PyArg_ParseTuple(args,"Oii:wxListCtrl_ScrollList",&_argo0,&_arg1,&_arg2))
2466 return NULL;
2467 if (_argo0) {
2468 if (_argo0 == Py_None) { _arg0 = NULL; }
2469 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2470 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ScrollList. Expected _wxListCtrl_p.");
2471 return NULL;
2472 }
2473 }
2474 {
2475 wxPy_BEGIN_ALLOW_THREADS;
2476 _result = (bool )wxListCtrl_ScrollList(_arg0,_arg1,_arg2);
2477
2478 wxPy_END_ALLOW_THREADS;
2479 } _resultobj = Py_BuildValue("i",_result);
2480 return _resultobj;
2481 }
2482
2483 #define wxListCtrl_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0))
2484 static PyObject *_wrap_wxListCtrl_SetBackgroundColour(PyObject *self, PyObject *args) {
2485 PyObject * _resultobj;
2486 wxListCtrl * _arg0;
2487 wxColour * _arg1;
2488 PyObject * _argo0 = 0;
2489 PyObject * _argo1 = 0;
2490
2491 self = self;
2492 if(!PyArg_ParseTuple(args,"OO:wxListCtrl_SetBackgroundColour",&_argo0,&_argo1))
2493 return NULL;
2494 if (_argo0) {
2495 if (_argo0 == Py_None) { _arg0 = NULL; }
2496 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2497 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetBackgroundColour. Expected _wxListCtrl_p.");
2498 return NULL;
2499 }
2500 }
2501 if (_argo1) {
2502 if (_argo1 == Py_None) { _arg1 = NULL; }
2503 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) {
2504 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetBackgroundColour. Expected _wxColour_p.");
2505 return NULL;
2506 }
2507 }
2508 {
2509 wxPy_BEGIN_ALLOW_THREADS;
2510 wxListCtrl_SetBackgroundColour(_arg0,*_arg1);
2511
2512 wxPy_END_ALLOW_THREADS;
2513 } Py_INCREF(Py_None);
2514 _resultobj = Py_None;
2515 return _resultobj;
2516 }
2517
2518 #define wxListCtrl_SetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumn(_swigarg0,_swigarg1))
2519 static PyObject *_wrap_wxListCtrl_SetColumn(PyObject *self, PyObject *args) {
2520 PyObject * _resultobj;
2521 bool _result;
2522 wxListCtrl * _arg0;
2523 int _arg1;
2524 wxListItem * _arg2;
2525 PyObject * _argo0 = 0;
2526 PyObject * _argo2 = 0;
2527
2528 self = self;
2529 if(!PyArg_ParseTuple(args,"OiO:wxListCtrl_SetColumn",&_argo0,&_arg1,&_argo2))
2530 return NULL;
2531 if (_argo0) {
2532 if (_argo0 == Py_None) { _arg0 = NULL; }
2533 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2534 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumn. Expected _wxListCtrl_p.");
2535 return NULL;
2536 }
2537 }
2538 if (_argo2) {
2539 if (_argo2 == Py_None) { _arg2 = NULL; }
2540 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) {
2541 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_SetColumn. Expected _wxListItem_p.");
2542 return NULL;
2543 }
2544 }
2545 {
2546 wxPy_BEGIN_ALLOW_THREADS;
2547 _result = (bool )wxListCtrl_SetColumn(_arg0,_arg1,*_arg2);
2548
2549 wxPy_END_ALLOW_THREADS;
2550 } _resultobj = Py_BuildValue("i",_result);
2551 return _resultobj;
2552 }
2553
2554 #define wxListCtrl_SetColumnWidth(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnWidth(_swigarg0,_swigarg1))
2555 static PyObject *_wrap_wxListCtrl_SetColumnWidth(PyObject *self, PyObject *args) {
2556 PyObject * _resultobj;
2557 bool _result;
2558 wxListCtrl * _arg0;
2559 int _arg1;
2560 int _arg2;
2561 PyObject * _argo0 = 0;
2562
2563 self = self;
2564 if(!PyArg_ParseTuple(args,"Oii:wxListCtrl_SetColumnWidth",&_argo0,&_arg1,&_arg2))
2565 return NULL;
2566 if (_argo0) {
2567 if (_argo0 == Py_None) { _arg0 = NULL; }
2568 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2569 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumnWidth. Expected _wxListCtrl_p.");
2570 return NULL;
2571 }
2572 }
2573 {
2574 wxPy_BEGIN_ALLOW_THREADS;
2575 _result = (bool )wxListCtrl_SetColumnWidth(_arg0,_arg1,_arg2);
2576
2577 wxPy_END_ALLOW_THREADS;
2578 } _resultobj = Py_BuildValue("i",_result);
2579 return _resultobj;
2580 }
2581
2582 #define wxListCtrl_SetImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetImageList(_swigarg0,_swigarg1))
2583 static PyObject *_wrap_wxListCtrl_SetImageList(PyObject *self, PyObject *args) {
2584 PyObject * _resultobj;
2585 wxListCtrl * _arg0;
2586 wxImageList * _arg1;
2587 int _arg2;
2588 PyObject * _argo0 = 0;
2589 PyObject * _argo1 = 0;
2590
2591 self = self;
2592 if(!PyArg_ParseTuple(args,"OOi:wxListCtrl_SetImageList",&_argo0,&_argo1,&_arg2))
2593 return NULL;
2594 if (_argo0) {
2595 if (_argo0 == Py_None) { _arg0 = NULL; }
2596 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2597 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetImageList. Expected _wxListCtrl_p.");
2598 return NULL;
2599 }
2600 }
2601 if (_argo1) {
2602 if (_argo1 == Py_None) { _arg1 = NULL; }
2603 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
2604 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetImageList. Expected _wxImageList_p.");
2605 return NULL;
2606 }
2607 }
2608 {
2609 wxPy_BEGIN_ALLOW_THREADS;
2610 wxListCtrl_SetImageList(_arg0,_arg1,_arg2);
2611
2612 wxPy_END_ALLOW_THREADS;
2613 } Py_INCREF(Py_None);
2614 _resultobj = Py_None;
2615 return _resultobj;
2616 }
2617
2618 #define wxListCtrl_SetItem(_swigobj,_swigarg0) (_swigobj->SetItem(_swigarg0))
2619 static PyObject *_wrap_wxListCtrl_SetItem(PyObject *self, PyObject *args) {
2620 PyObject * _resultobj;
2621 bool _result;
2622 wxListCtrl * _arg0;
2623 wxListItem * _arg1;
2624 PyObject * _argo0 = 0;
2625 PyObject * _argo1 = 0;
2626
2627 self = self;
2628 if(!PyArg_ParseTuple(args,"OO:wxListCtrl_SetItem",&_argo0,&_argo1))
2629 return NULL;
2630 if (_argo0) {
2631 if (_argo0 == Py_None) { _arg0 = NULL; }
2632 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2633 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItem. Expected _wxListCtrl_p.");
2634 return NULL;
2635 }
2636 }
2637 if (_argo1) {
2638 if (_argo1 == Py_None) { _arg1 = NULL; }
2639 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) {
2640 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetItem. Expected _wxListItem_p.");
2641 return NULL;
2642 }
2643 }
2644 {
2645 wxPy_BEGIN_ALLOW_THREADS;
2646 _result = (bool )wxListCtrl_SetItem(_arg0,*_arg1);
2647
2648 wxPy_END_ALLOW_THREADS;
2649 } _resultobj = Py_BuildValue("i",_result);
2650 return _resultobj;
2651 }
2652
2653 #define wxListCtrl_SetStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2654 static PyObject *_wrap_wxListCtrl_SetStringItem(PyObject *self, PyObject *args) {
2655 PyObject * _resultobj;
2656 long _result;
2657 wxListCtrl * _arg0;
2658 long _arg1;
2659 int _arg2;
2660 wxString * _arg3;
2661 int _arg4 = (int ) -1;
2662 PyObject * _argo0 = 0;
2663 PyObject * _obj3 = 0;
2664
2665 self = self;
2666 if(!PyArg_ParseTuple(args,"OliO|i:wxListCtrl_SetStringItem",&_argo0,&_arg1,&_arg2,&_obj3,&_arg4))
2667 return NULL;
2668 if (_argo0) {
2669 if (_argo0 == Py_None) { _arg0 = NULL; }
2670 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2671 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetStringItem. Expected _wxListCtrl_p.");
2672 return NULL;
2673 }
2674 }
2675 {
2676 if (!PyString_Check(_obj3)) {
2677 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2678 return NULL;
2679 }
2680 _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3));
2681 }
2682 {
2683 wxPy_BEGIN_ALLOW_THREADS;
2684 _result = (long )wxListCtrl_SetStringItem(_arg0,_arg1,_arg2,*_arg3,_arg4);
2685
2686 wxPy_END_ALLOW_THREADS;
2687 } _resultobj = Py_BuildValue("l",_result);
2688 {
2689 if (_obj3)
2690 delete _arg3;
2691 }
2692 return _resultobj;
2693 }
2694
2695 #define wxListCtrl_SetItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemData(_swigarg0,_swigarg1))
2696 static PyObject *_wrap_wxListCtrl_SetItemData(PyObject *self, PyObject *args) {
2697 PyObject * _resultobj;
2698 bool _result;
2699 wxListCtrl * _arg0;
2700 long _arg1;
2701 long _arg2;
2702 PyObject * _argo0 = 0;
2703
2704 self = self;
2705 if(!PyArg_ParseTuple(args,"Oll:wxListCtrl_SetItemData",&_argo0,&_arg1,&_arg2))
2706 return NULL;
2707 if (_argo0) {
2708 if (_argo0 == Py_None) { _arg0 = NULL; }
2709 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2710 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemData. Expected _wxListCtrl_p.");
2711 return NULL;
2712 }
2713 }
2714 {
2715 wxPy_BEGIN_ALLOW_THREADS;
2716 _result = (bool )wxListCtrl_SetItemData(_arg0,_arg1,_arg2);
2717
2718 wxPy_END_ALLOW_THREADS;
2719 } _resultobj = Py_BuildValue("i",_result);
2720 return _resultobj;
2721 }
2722
2723 #define wxListCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2))
2724 static PyObject *_wrap_wxListCtrl_SetItemImage(PyObject *self, PyObject *args) {
2725 PyObject * _resultobj;
2726 bool _result;
2727 wxListCtrl * _arg0;
2728 long _arg1;
2729 int _arg2;
2730 int _arg3;
2731 PyObject * _argo0 = 0;
2732
2733 self = self;
2734 if(!PyArg_ParseTuple(args,"Olii:wxListCtrl_SetItemImage",&_argo0,&_arg1,&_arg2,&_arg3))
2735 return NULL;
2736 if (_argo0) {
2737 if (_argo0 == Py_None) { _arg0 = NULL; }
2738 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2739 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemImage. Expected _wxListCtrl_p.");
2740 return NULL;
2741 }
2742 }
2743 {
2744 wxPy_BEGIN_ALLOW_THREADS;
2745 _result = (bool )wxListCtrl_SetItemImage(_arg0,_arg1,_arg2,_arg3);
2746
2747 wxPy_END_ALLOW_THREADS;
2748 } _resultobj = Py_BuildValue("i",_result);
2749 return _resultobj;
2750 }
2751
2752 #define wxListCtrl_SetItemPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemPosition(_swigarg0,_swigarg1))
2753 static PyObject *_wrap_wxListCtrl_SetItemPosition(PyObject *self, PyObject *args) {
2754 PyObject * _resultobj;
2755 bool _result;
2756 wxListCtrl * _arg0;
2757 long _arg1;
2758 wxPoint * _arg2;
2759 PyObject * _argo0 = 0;
2760 PyObject * _argo2 = 0;
2761
2762 self = self;
2763 if(!PyArg_ParseTuple(args,"OlO:wxListCtrl_SetItemPosition",&_argo0,&_arg1,&_argo2))
2764 return NULL;
2765 if (_argo0) {
2766 if (_argo0 == Py_None) { _arg0 = NULL; }
2767 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2768 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemPosition. Expected _wxListCtrl_p.");
2769 return NULL;
2770 }
2771 }
2772 if (_argo2) {
2773 if (_argo2 == Py_None) { _arg2 = NULL; }
2774 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPoint_p")) {
2775 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_SetItemPosition. Expected _wxPoint_p.");
2776 return NULL;
2777 }
2778 }
2779 {
2780 wxPy_BEGIN_ALLOW_THREADS;
2781 _result = (bool )wxListCtrl_SetItemPosition(_arg0,_arg1,*_arg2);
2782
2783 wxPy_END_ALLOW_THREADS;
2784 } _resultobj = Py_BuildValue("i",_result);
2785 return _resultobj;
2786 }
2787
2788 #define wxListCtrl_SetItemState(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemState(_swigarg0,_swigarg1,_swigarg2))
2789 static PyObject *_wrap_wxListCtrl_SetItemState(PyObject *self, PyObject *args) {
2790 PyObject * _resultobj;
2791 bool _result;
2792 wxListCtrl * _arg0;
2793 long _arg1;
2794 long _arg2;
2795 long _arg3;
2796 PyObject * _argo0 = 0;
2797
2798 self = self;
2799 if(!PyArg_ParseTuple(args,"Olll:wxListCtrl_SetItemState",&_argo0,&_arg1,&_arg2,&_arg3))
2800 return NULL;
2801 if (_argo0) {
2802 if (_argo0 == Py_None) { _arg0 = NULL; }
2803 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2804 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemState. Expected _wxListCtrl_p.");
2805 return NULL;
2806 }
2807 }
2808 {
2809 wxPy_BEGIN_ALLOW_THREADS;
2810 _result = (bool )wxListCtrl_SetItemState(_arg0,_arg1,_arg2,_arg3);
2811
2812 wxPy_END_ALLOW_THREADS;
2813 } _resultobj = Py_BuildValue("i",_result);
2814 return _resultobj;
2815 }
2816
2817 #define wxListCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1))
2818 static PyObject *_wrap_wxListCtrl_SetItemText(PyObject *self, PyObject *args) {
2819 PyObject * _resultobj;
2820 wxListCtrl * _arg0;
2821 long _arg1;
2822 wxString * _arg2;
2823 PyObject * _argo0 = 0;
2824 PyObject * _obj2 = 0;
2825
2826 self = self;
2827 if(!PyArg_ParseTuple(args,"OlO:wxListCtrl_SetItemText",&_argo0,&_arg1,&_obj2))
2828 return NULL;
2829 if (_argo0) {
2830 if (_argo0 == Py_None) { _arg0 = NULL; }
2831 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2832 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemText. Expected _wxListCtrl_p.");
2833 return NULL;
2834 }
2835 }
2836 {
2837 if (!PyString_Check(_obj2)) {
2838 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2839 return NULL;
2840 }
2841 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
2842 }
2843 {
2844 wxPy_BEGIN_ALLOW_THREADS;
2845 wxListCtrl_SetItemText(_arg0,_arg1,*_arg2);
2846
2847 wxPy_END_ALLOW_THREADS;
2848 } Py_INCREF(Py_None);
2849 _resultobj = Py_None;
2850 {
2851 if (_obj2)
2852 delete _arg2;
2853 }
2854 return _resultobj;
2855 }
2856
2857 #define wxListCtrl_SetSingleStyle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSingleStyle(_swigarg0,_swigarg1))
2858 static PyObject *_wrap_wxListCtrl_SetSingleStyle(PyObject *self, PyObject *args) {
2859 PyObject * _resultobj;
2860 wxListCtrl * _arg0;
2861 long _arg1;
2862 bool _arg2 = (bool ) TRUE;
2863 PyObject * _argo0 = 0;
2864 int tempbool2 = (int) TRUE;
2865
2866 self = self;
2867 if(!PyArg_ParseTuple(args,"Ol|i:wxListCtrl_SetSingleStyle",&_argo0,&_arg1,&tempbool2))
2868 return NULL;
2869 if (_argo0) {
2870 if (_argo0 == Py_None) { _arg0 = NULL; }
2871 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2872 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetSingleStyle. Expected _wxListCtrl_p.");
2873 return NULL;
2874 }
2875 }
2876 _arg2 = (bool ) tempbool2;
2877 {
2878 wxPy_BEGIN_ALLOW_THREADS;
2879 wxListCtrl_SetSingleStyle(_arg0,_arg1,_arg2);
2880
2881 wxPy_END_ALLOW_THREADS;
2882 } Py_INCREF(Py_None);
2883 _resultobj = Py_None;
2884 return _resultobj;
2885 }
2886
2887 #define wxListCtrl_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0))
2888 static PyObject *_wrap_wxListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args) {
2889 PyObject * _resultobj;
2890 wxListCtrl * _arg0;
2891 long _arg1;
2892 PyObject * _argo0 = 0;
2893
2894 self = self;
2895 if(!PyArg_ParseTuple(args,"Ol:wxListCtrl_SetWindowStyleFlag",&_argo0,&_arg1))
2896 return NULL;
2897 if (_argo0) {
2898 if (_argo0 == Py_None) { _arg0 = NULL; }
2899 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
2900 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetWindowStyleFlag. Expected _wxListCtrl_p.");
2901 return NULL;
2902 }
2903 }
2904 {
2905 wxPy_BEGIN_ALLOW_THREADS;
2906 wxListCtrl_SetWindowStyleFlag(_arg0,_arg1);
2907
2908 wxPy_END_ALLOW_THREADS;
2909 } Py_INCREF(Py_None);
2910 _resultobj = Py_None;
2911 return _resultobj;
2912 }
2913
2914 #define new_wxTreeItemId() (new wxTreeItemId())
2915 static PyObject *_wrap_new_wxTreeItemId(PyObject *self, PyObject *args) {
2916 PyObject * _resultobj;
2917 wxTreeItemId * _result;
2918 char _ptemp[128];
2919
2920 self = self;
2921 if(!PyArg_ParseTuple(args,":new_wxTreeItemId"))
2922 return NULL;
2923 {
2924 wxPy_BEGIN_ALLOW_THREADS;
2925 _result = (wxTreeItemId *)new_wxTreeItemId();
2926
2927 wxPy_END_ALLOW_THREADS;
2928 } if (_result) {
2929 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p");
2930 _resultobj = Py_BuildValue("s",_ptemp);
2931 } else {
2932 Py_INCREF(Py_None);
2933 _resultobj = Py_None;
2934 }
2935 return _resultobj;
2936 }
2937
2938 #define delete_wxTreeItemId(_swigobj) (delete _swigobj)
2939 static PyObject *_wrap_delete_wxTreeItemId(PyObject *self, PyObject *args) {
2940 PyObject * _resultobj;
2941 wxTreeItemId * _arg0;
2942 PyObject * _argo0 = 0;
2943
2944 self = self;
2945 if(!PyArg_ParseTuple(args,"O:delete_wxTreeItemId",&_argo0))
2946 return NULL;
2947 if (_argo0) {
2948 if (_argo0 == Py_None) { _arg0 = NULL; }
2949 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) {
2950 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTreeItemId. Expected _wxTreeItemId_p.");
2951 return NULL;
2952 }
2953 }
2954 {
2955 wxPy_BEGIN_ALLOW_THREADS;
2956 delete_wxTreeItemId(_arg0);
2957
2958 wxPy_END_ALLOW_THREADS;
2959 } Py_INCREF(Py_None);
2960 _resultobj = Py_None;
2961 return _resultobj;
2962 }
2963
2964 #define wxTreeItemId_IsOk(_swigobj) (_swigobj->IsOk())
2965 static PyObject *_wrap_wxTreeItemId_IsOk(PyObject *self, PyObject *args) {
2966 PyObject * _resultobj;
2967 bool _result;
2968 wxTreeItemId * _arg0;
2969 PyObject * _argo0 = 0;
2970
2971 self = self;
2972 if(!PyArg_ParseTuple(args,"O:wxTreeItemId_IsOk",&_argo0))
2973 return NULL;
2974 if (_argo0) {
2975 if (_argo0 == Py_None) { _arg0 = NULL; }
2976 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) {
2977 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId_IsOk. Expected _wxTreeItemId_p.");
2978 return NULL;
2979 }
2980 }
2981 {
2982 wxPy_BEGIN_ALLOW_THREADS;
2983 _result = (bool )wxTreeItemId_IsOk(_arg0);
2984
2985 wxPy_END_ALLOW_THREADS;
2986 } _resultobj = Py_BuildValue("i",_result);
2987 return _resultobj;
2988 }
2989
2990 #define new_wxTreeItemData(_swigarg0) (new wxPyTreeItemData(_swigarg0))
2991 static PyObject *_wrap_new_wxTreeItemData(PyObject *self, PyObject *args) {
2992 PyObject * _resultobj;
2993 wxPyTreeItemData * _result;
2994 PyObject * _arg0 = (PyObject *) NULL;
2995 PyObject * _obj0 = 0;
2996 char _ptemp[128];
2997
2998 self = self;
2999 if(!PyArg_ParseTuple(args,"|O:new_wxTreeItemData",&_obj0))
3000 return NULL;
3001 if (_obj0)
3002 {
3003 _arg0 = _obj0;
3004 }
3005 {
3006 wxPy_BEGIN_ALLOW_THREADS;
3007 _result = (wxPyTreeItemData *)new_wxTreeItemData(_arg0);
3008
3009 wxPy_END_ALLOW_THREADS;
3010 } if (_result) {
3011 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p");
3012 _resultobj = Py_BuildValue("s",_ptemp);
3013 } else {
3014 Py_INCREF(Py_None);
3015 _resultobj = Py_None;
3016 }
3017 return _resultobj;
3018 }
3019
3020 #define wxTreeItemData_GetData(_swigobj) (_swigobj->GetData())
3021 static PyObject *_wrap_wxTreeItemData_GetData(PyObject *self, PyObject *args) {
3022 PyObject * _resultobj;
3023 PyObject * _result;
3024 wxPyTreeItemData * _arg0;
3025 PyObject * _argo0 = 0;
3026
3027 self = self;
3028 if(!PyArg_ParseTuple(args,"O:wxTreeItemData_GetData",&_argo0))
3029 return NULL;
3030 if (_argo0) {
3031 if (_argo0 == Py_None) { _arg0 = NULL; }
3032 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) {
3033 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetData. Expected _wxPyTreeItemData_p.");
3034 return NULL;
3035 }
3036 }
3037 {
3038 wxPy_BEGIN_ALLOW_THREADS;
3039 _result = (PyObject *)wxTreeItemData_GetData(_arg0);
3040
3041 wxPy_END_ALLOW_THREADS;
3042 }{
3043 _resultobj = _result;
3044 }
3045 return _resultobj;
3046 }
3047
3048 #define wxTreeItemData_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0))
3049 static PyObject *_wrap_wxTreeItemData_SetData(PyObject *self, PyObject *args) {
3050 PyObject * _resultobj;
3051 wxPyTreeItemData * _arg0;
3052 PyObject * _arg1;
3053 PyObject * _argo0 = 0;
3054 PyObject * _obj1 = 0;
3055
3056 self = self;
3057 if(!PyArg_ParseTuple(args,"OO:wxTreeItemData_SetData",&_argo0,&_obj1))
3058 return NULL;
3059 if (_argo0) {
3060 if (_argo0 == Py_None) { _arg0 = NULL; }
3061 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) {
3062 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetData. Expected _wxPyTreeItemData_p.");
3063 return NULL;
3064 }
3065 }
3066 {
3067 _arg1 = _obj1;
3068 }
3069 {
3070 wxPy_BEGIN_ALLOW_THREADS;
3071 wxTreeItemData_SetData(_arg0,_arg1);
3072
3073 wxPy_END_ALLOW_THREADS;
3074 } Py_INCREF(Py_None);
3075 _resultobj = Py_None;
3076 return _resultobj;
3077 }
3078
3079 #define wxTreeItemData_GetId(_swigobj) (_swigobj->GetId())
3080 static PyObject *_wrap_wxTreeItemData_GetId(PyObject *self, PyObject *args) {
3081 PyObject * _resultobj;
3082 wxTreeItemId * _result;
3083 wxPyTreeItemData * _arg0;
3084 PyObject * _argo0 = 0;
3085 char _ptemp[128];
3086
3087 self = self;
3088 if(!PyArg_ParseTuple(args,"O:wxTreeItemData_GetId",&_argo0))
3089 return NULL;
3090 if (_argo0) {
3091 if (_argo0 == Py_None) { _arg0 = NULL; }
3092 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) {
3093 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetId. Expected _wxPyTreeItemData_p.");
3094 return NULL;
3095 }
3096 }
3097 {
3098 wxPy_BEGIN_ALLOW_THREADS;
3099 const wxTreeItemId & _result_ref = wxTreeItemData_GetId(_arg0);
3100 _result = (wxTreeItemId *) &_result_ref;
3101
3102 wxPy_END_ALLOW_THREADS;
3103 } if (_result) {
3104 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p");
3105 _resultobj = Py_BuildValue("s",_ptemp);
3106 } else {
3107 Py_INCREF(Py_None);
3108 _resultobj = Py_None;
3109 }
3110 return _resultobj;
3111 }
3112
3113 #define wxTreeItemData_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0))
3114 static PyObject *_wrap_wxTreeItemData_SetId(PyObject *self, PyObject *args) {
3115 PyObject * _resultobj;
3116 wxPyTreeItemData * _arg0;
3117 wxTreeItemId * _arg1;
3118 PyObject * _argo0 = 0;
3119 PyObject * _argo1 = 0;
3120
3121 self = self;
3122 if(!PyArg_ParseTuple(args,"OO:wxTreeItemData_SetId",&_argo0,&_argo1))
3123 return NULL;
3124 if (_argo0) {
3125 if (_argo0 == Py_None) { _arg0 = NULL; }
3126 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) {
3127 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetId. Expected _wxPyTreeItemData_p.");
3128 return NULL;
3129 }
3130 }
3131 if (_argo1) {
3132 if (_argo1 == Py_None) { _arg1 = NULL; }
3133 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
3134 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemData_SetId. Expected _wxTreeItemId_p.");
3135 return NULL;
3136 }
3137 }
3138 {
3139 wxPy_BEGIN_ALLOW_THREADS;
3140 wxTreeItemData_SetId(_arg0,*_arg1);
3141
3142 wxPy_END_ALLOW_THREADS;
3143 } Py_INCREF(Py_None);
3144 _resultobj = Py_None;
3145 return _resultobj;
3146 }
3147
3148 static void *SwigwxTreeEventTowxNotifyEvent(void *ptr) {
3149 wxTreeEvent *src;
3150 wxNotifyEvent *dest;
3151 src = (wxTreeEvent *) ptr;
3152 dest = (wxNotifyEvent *) src;
3153 return (void *) dest;
3154 }
3155
3156 static void *SwigwxTreeEventTowxCommandEvent(void *ptr) {
3157 wxTreeEvent *src;
3158 wxCommandEvent *dest;
3159 src = (wxTreeEvent *) ptr;
3160 dest = (wxCommandEvent *) src;
3161 return (void *) dest;
3162 }
3163
3164 static void *SwigwxTreeEventTowxEvent(void *ptr) {
3165 wxTreeEvent *src;
3166 wxEvent *dest;
3167 src = (wxTreeEvent *) ptr;
3168 dest = (wxEvent *) src;
3169 return (void *) dest;
3170 }
3171
3172 #define wxTreeEvent_GetItem(_swigobj) (_swigobj->GetItem())
3173 static PyObject *_wrap_wxTreeEvent_GetItem(PyObject *self, PyObject *args) {
3174 PyObject * _resultobj;
3175 wxTreeItemId * _result;
3176 wxTreeEvent * _arg0;
3177 PyObject * _argo0 = 0;
3178 char _ptemp[128];
3179
3180 self = self;
3181 if(!PyArg_ParseTuple(args,"O:wxTreeEvent_GetItem",&_argo0))
3182 return NULL;
3183 if (_argo0) {
3184 if (_argo0 == Py_None) { _arg0 = NULL; }
3185 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) {
3186 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetItem. Expected _wxTreeEvent_p.");
3187 return NULL;
3188 }
3189 }
3190 {
3191 wxPy_BEGIN_ALLOW_THREADS;
3192 _result = new wxTreeItemId (wxTreeEvent_GetItem(_arg0));
3193
3194 wxPy_END_ALLOW_THREADS;
3195 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
3196 _resultobj = Py_BuildValue("s",_ptemp);
3197 return _resultobj;
3198 }
3199
3200 #define wxTreeEvent_GetOldItem(_swigobj) (_swigobj->GetOldItem())
3201 static PyObject *_wrap_wxTreeEvent_GetOldItem(PyObject *self, PyObject *args) {
3202 PyObject * _resultobj;
3203 wxTreeItemId * _result;
3204 wxTreeEvent * _arg0;
3205 PyObject * _argo0 = 0;
3206 char _ptemp[128];
3207
3208 self = self;
3209 if(!PyArg_ParseTuple(args,"O:wxTreeEvent_GetOldItem",&_argo0))
3210 return NULL;
3211 if (_argo0) {
3212 if (_argo0 == Py_None) { _arg0 = NULL; }
3213 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) {
3214 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetOldItem. Expected _wxTreeEvent_p.");
3215 return NULL;
3216 }
3217 }
3218 {
3219 wxPy_BEGIN_ALLOW_THREADS;
3220 _result = new wxTreeItemId (wxTreeEvent_GetOldItem(_arg0));
3221
3222 wxPy_END_ALLOW_THREADS;
3223 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
3224 _resultobj = Py_BuildValue("s",_ptemp);
3225 return _resultobj;
3226 }
3227
3228 #define wxTreeEvent_GetPoint(_swigobj) (_swigobj->GetPoint())
3229 static PyObject *_wrap_wxTreeEvent_GetPoint(PyObject *self, PyObject *args) {
3230 PyObject * _resultobj;
3231 wxPoint * _result;
3232 wxTreeEvent * _arg0;
3233 PyObject * _argo0 = 0;
3234 char _ptemp[128];
3235
3236 self = self;
3237 if(!PyArg_ParseTuple(args,"O:wxTreeEvent_GetPoint",&_argo0))
3238 return NULL;
3239 if (_argo0) {
3240 if (_argo0 == Py_None) { _arg0 = NULL; }
3241 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) {
3242 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetPoint. Expected _wxTreeEvent_p.");
3243 return NULL;
3244 }
3245 }
3246 {
3247 wxPy_BEGIN_ALLOW_THREADS;
3248 _result = new wxPoint (wxTreeEvent_GetPoint(_arg0));
3249
3250 wxPy_END_ALLOW_THREADS;
3251 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
3252 _resultobj = Py_BuildValue("s",_ptemp);
3253 return _resultobj;
3254 }
3255
3256 #define wxTreeEvent_GetCode(_swigobj) (_swigobj->GetCode())
3257 static PyObject *_wrap_wxTreeEvent_GetCode(PyObject *self, PyObject *args) {
3258 PyObject * _resultobj;
3259 int _result;
3260 wxTreeEvent * _arg0;
3261 PyObject * _argo0 = 0;
3262
3263 self = self;
3264 if(!PyArg_ParseTuple(args,"O:wxTreeEvent_GetCode",&_argo0))
3265 return NULL;
3266 if (_argo0) {
3267 if (_argo0 == Py_None) { _arg0 = NULL; }
3268 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) {
3269 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetCode. Expected _wxTreeEvent_p.");
3270 return NULL;
3271 }
3272 }
3273 {
3274 wxPy_BEGIN_ALLOW_THREADS;
3275 _result = (int )wxTreeEvent_GetCode(_arg0);
3276
3277 wxPy_END_ALLOW_THREADS;
3278 } _resultobj = Py_BuildValue("i",_result);
3279 return _resultobj;
3280 }
3281
3282 #define wxTreeEvent_GetLabel(_swigobj) (_swigobj->GetLabel())
3283 static PyObject *_wrap_wxTreeEvent_GetLabel(PyObject *self, PyObject *args) {
3284 PyObject * _resultobj;
3285 wxString * _result;
3286 wxTreeEvent * _arg0;
3287 PyObject * _argo0 = 0;
3288
3289 self = self;
3290 if(!PyArg_ParseTuple(args,"O:wxTreeEvent_GetLabel",&_argo0))
3291 return NULL;
3292 if (_argo0) {
3293 if (_argo0 == Py_None) { _arg0 = NULL; }
3294 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) {
3295 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetLabel. Expected _wxTreeEvent_p.");
3296 return NULL;
3297 }
3298 }
3299 {
3300 wxPy_BEGIN_ALLOW_THREADS;
3301 const wxString & _result_ref = wxTreeEvent_GetLabel(_arg0);
3302 _result = (wxString *) &_result_ref;
3303
3304 wxPy_END_ALLOW_THREADS;
3305 }{
3306 _resultobj = PyString_FromString(WXSTRINGCAST (*_result));
3307 }
3308 return _resultobj;
3309 }
3310
3311 static void *SwigwxTreeCtrlTowxControl(void *ptr) {
3312 wxTreeCtrl *src;
3313 wxControl *dest;
3314 src = (wxTreeCtrl *) ptr;
3315 dest = (wxControl *) src;
3316 return (void *) dest;
3317 }
3318
3319 static void *SwigwxTreeCtrlTowxWindow(void *ptr) {
3320 wxTreeCtrl *src;
3321 wxWindow *dest;
3322 src = (wxTreeCtrl *) ptr;
3323 dest = (wxWindow *) src;
3324 return (void *) dest;
3325 }
3326
3327 static void *SwigwxTreeCtrlTowxEvtHandler(void *ptr) {
3328 wxTreeCtrl *src;
3329 wxEvtHandler *dest;
3330 src = (wxTreeCtrl *) ptr;
3331 dest = (wxEvtHandler *) src;
3332 return (void *) dest;
3333 }
3334
3335 #define new_wxTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
3336 static PyObject *_wrap_new_wxTreeCtrl(PyObject *self, PyObject *args) {
3337 PyObject * _resultobj;
3338 wxTreeCtrl * _result;
3339 wxWindow * _arg0;
3340 wxWindowID _arg1 = (wxWindowID ) -1;
3341 wxPoint * _arg2 = (wxPoint *) &wxPyDefaultPosition;
3342 wxSize * _arg3 = (wxSize *) &wxPyDefaultSize;
3343 long _arg4 = (long ) wxTR_HAS_BUTTONS|wxTR_LINES_AT_ROOT;
3344 wxValidator * _arg5 = (wxValidator *) &wxPyDefaultValidator;
3345 char * _arg6 = (char *) "wxTreeCtrl";
3346 PyObject * _argo0 = 0;
3347 PyObject * _argo2 = 0;
3348 PyObject * _argo3 = 0;
3349 PyObject * _argo5 = 0;
3350 char _ptemp[128];
3351
3352 self = self;
3353 if(!PyArg_ParseTuple(args,"O|iOOlOs:new_wxTreeCtrl",&_argo0,&_arg1,&_argo2,&_argo3,&_arg4,&_argo5,&_arg6))
3354 return NULL;
3355 if (_argo0) {
3356 if (_argo0 == Py_None) { _arg0 = NULL; }
3357 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3358 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTreeCtrl. Expected _wxWindow_p.");
3359 return NULL;
3360 }
3361 }
3362 if (_argo2) {
3363 if (_argo2 == Py_None) { _arg2 = NULL; }
3364 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPoint_p")) {
3365 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxTreeCtrl. Expected _wxPoint_p.");
3366 return NULL;
3367 }
3368 }
3369 if (_argo3) {
3370 if (_argo3 == Py_None) { _arg3 = NULL; }
3371 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxSize_p")) {
3372 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of new_wxTreeCtrl. Expected _wxSize_p.");
3373 return NULL;
3374 }
3375 }
3376 if (_argo5) {
3377 if (_argo5 == Py_None) { _arg5 = NULL; }
3378 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) {
3379 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxTreeCtrl. Expected _wxValidator_p.");
3380 return NULL;
3381 }
3382 }
3383 {
3384 wxPy_BEGIN_ALLOW_THREADS;
3385 _result = (wxTreeCtrl *)new_wxTreeCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6);
3386
3387 wxPy_END_ALLOW_THREADS;
3388 } if (_result) {
3389 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeCtrl_p");
3390 _resultobj = Py_BuildValue("s",_ptemp);
3391 } else {
3392 Py_INCREF(Py_None);
3393 _resultobj = Py_None;
3394 }
3395 return _resultobj;
3396 }
3397
3398 #define wxTreeCtrl_GetCount(_swigobj) (_swigobj->GetCount())
3399 static PyObject *_wrap_wxTreeCtrl_GetCount(PyObject *self, PyObject *args) {
3400 PyObject * _resultobj;
3401 size_t _result;
3402 wxTreeCtrl * _arg0;
3403 PyObject * _argo0 = 0;
3404
3405 self = self;
3406 if(!PyArg_ParseTuple(args,"O:wxTreeCtrl_GetCount",&_argo0))
3407 return NULL;
3408 if (_argo0) {
3409 if (_argo0 == Py_None) { _arg0 = NULL; }
3410 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
3411 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetCount. Expected _wxTreeCtrl_p.");
3412 return NULL;
3413 }
3414 }
3415 {
3416 wxPy_BEGIN_ALLOW_THREADS;
3417 _result = (size_t )wxTreeCtrl_GetCount(_arg0);
3418
3419 wxPy_END_ALLOW_THREADS;
3420 } _resultobj = Py_BuildValue("i",_result);
3421 return _resultobj;
3422 }
3423
3424 #define wxTreeCtrl_GetIndent(_swigobj) (_swigobj->GetIndent())
3425 static PyObject *_wrap_wxTreeCtrl_GetIndent(PyObject *self, PyObject *args) {
3426 PyObject * _resultobj;
3427 unsigned int _result;
3428 wxTreeCtrl * _arg0;
3429 PyObject * _argo0 = 0;
3430
3431 self = self;
3432 if(!PyArg_ParseTuple(args,"O:wxTreeCtrl_GetIndent",&_argo0))
3433 return NULL;
3434 if (_argo0) {
3435 if (_argo0 == Py_None) { _arg0 = NULL; }
3436 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
3437 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetIndent. Expected _wxTreeCtrl_p.");
3438 return NULL;
3439 }
3440 }
3441 {
3442 wxPy_BEGIN_ALLOW_THREADS;
3443 _result = (unsigned int )wxTreeCtrl_GetIndent(_arg0);
3444
3445 wxPy_END_ALLOW_THREADS;
3446 } _resultobj = Py_BuildValue("i",_result);
3447 return _resultobj;
3448 }
3449
3450 #define wxTreeCtrl_SetIndent(_swigobj,_swigarg0) (_swigobj->SetIndent(_swigarg0))
3451 static PyObject *_wrap_wxTreeCtrl_SetIndent(PyObject *self, PyObject *args) {
3452 PyObject * _resultobj;
3453 wxTreeCtrl * _arg0;
3454 unsigned int _arg1;
3455 PyObject * _argo0 = 0;
3456
3457 self = self;
3458 if(!PyArg_ParseTuple(args,"Oi:wxTreeCtrl_SetIndent",&_argo0,&_arg1))
3459 return NULL;
3460 if (_argo0) {
3461 if (_argo0 == Py_None) { _arg0 = NULL; }
3462 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
3463 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetIndent. Expected _wxTreeCtrl_p.");
3464 return NULL;
3465 }
3466 }
3467 {
3468 wxPy_BEGIN_ALLOW_THREADS;
3469 wxTreeCtrl_SetIndent(_arg0,_arg1);
3470
3471 wxPy_END_ALLOW_THREADS;
3472 } Py_INCREF(Py_None);
3473 _resultobj = Py_None;
3474 return _resultobj;
3475 }
3476
3477 #define wxTreeCtrl_GetImageList(_swigobj) (_swigobj->GetImageList())
3478 static PyObject *_wrap_wxTreeCtrl_GetImageList(PyObject *self, PyObject *args) {
3479 PyObject * _resultobj;
3480 wxImageList * _result;
3481 wxTreeCtrl * _arg0;
3482 PyObject * _argo0 = 0;
3483 char _ptemp[128];
3484
3485 self = self;
3486 if(!PyArg_ParseTuple(args,"O:wxTreeCtrl_GetImageList",&_argo0))
3487 return NULL;
3488 if (_argo0) {
3489 if (_argo0 == Py_None) { _arg0 = NULL; }
3490 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
3491 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetImageList. Expected _wxTreeCtrl_p.");
3492 return NULL;
3493 }
3494 }
3495 {
3496 wxPy_BEGIN_ALLOW_THREADS;
3497 _result = (wxImageList *)wxTreeCtrl_GetImageList(_arg0);
3498
3499 wxPy_END_ALLOW_THREADS;
3500 } if (_result) {
3501 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p");
3502 _resultobj = Py_BuildValue("s",_ptemp);
3503 } else {
3504 Py_INCREF(Py_None);
3505 _resultobj = Py_None;
3506 }
3507 return _resultobj;
3508 }
3509
3510 #define wxTreeCtrl_GetStateImageList(_swigobj) (_swigobj->GetStateImageList())
3511 static PyObject *_wrap_wxTreeCtrl_GetStateImageList(PyObject *self, PyObject *args) {
3512 PyObject * _resultobj;
3513 wxImageList * _result;
3514 wxTreeCtrl * _arg0;
3515 PyObject * _argo0 = 0;
3516 char _ptemp[128];
3517
3518 self = self;
3519 if(!PyArg_ParseTuple(args,"O:wxTreeCtrl_GetStateImageList",&_argo0))
3520 return NULL;
3521 if (_argo0) {
3522 if (_argo0 == Py_None) { _arg0 = NULL; }
3523 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
3524 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetStateImageList. Expected _wxTreeCtrl_p.");
3525 return NULL;
3526 }
3527 }
3528 {
3529 wxPy_BEGIN_ALLOW_THREADS;
3530 _result = (wxImageList *)wxTreeCtrl_GetStateImageList(_arg0);
3531
3532 wxPy_END_ALLOW_THREADS;
3533 } if (_result) {
3534 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p");
3535 _resultobj = Py_BuildValue("s",_ptemp);
3536 } else {
3537 Py_INCREF(Py_None);
3538 _resultobj = Py_None;
3539 }
3540 return _resultobj;
3541 }
3542
3543 #define wxTreeCtrl_SetImageList(_swigobj,_swigarg0) (_swigobj->SetImageList(_swigarg0))
3544 static PyObject *_wrap_wxTreeCtrl_SetImageList(PyObject *self, PyObject *args) {
3545 PyObject * _resultobj;
3546 wxTreeCtrl * _arg0;
3547 wxImageList * _arg1;
3548 PyObject * _argo0 = 0;
3549 PyObject * _argo1 = 0;
3550
3551 self = self;
3552 if(!PyArg_ParseTuple(args,"OO:wxTreeCtrl_SetImageList",&_argo0,&_argo1))
3553 return NULL;
3554 if (_argo0) {
3555 if (_argo0 == Py_None) { _arg0 = NULL; }
3556 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
3557 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetImageList. Expected _wxTreeCtrl_p.");
3558 return NULL;
3559 }
3560 }
3561 if (_argo1) {
3562 if (_argo1 == Py_None) { _arg1 = NULL; }
3563 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
3564 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetImageList. Expected _wxImageList_p.");
3565 return NULL;
3566 }
3567 }
3568 {
3569 wxPy_BEGIN_ALLOW_THREADS;
3570 wxTreeCtrl_SetImageList(_arg0,_arg1);
3571
3572 wxPy_END_ALLOW_THREADS;
3573 } Py_INCREF(Py_None);
3574 _resultobj = Py_None;
3575 return _resultobj;
3576 }
3577
3578 #define wxTreeCtrl_SetStateImageList(_swigobj,_swigarg0) (_swigobj->SetStateImageList(_swigarg0))
3579 static PyObject *_wrap_wxTreeCtrl_SetStateImageList(PyObject *self, PyObject *args) {
3580 PyObject * _resultobj;
3581 wxTreeCtrl * _arg0;
3582 wxImageList * _arg1;
3583 PyObject * _argo0 = 0;
3584 PyObject * _argo1 = 0;
3585
3586 self = self;
3587 if(!PyArg_ParseTuple(args,"OO:wxTreeCtrl_SetStateImageList",&_argo0,&_argo1))
3588 return NULL;
3589 if (_argo0) {
3590 if (_argo0 == Py_None) { _arg0 = NULL; }
3591 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
3592 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetStateImageList. Expected _wxTreeCtrl_p.");
3593 return NULL;
3594 }
3595 }
3596 if (_argo1) {
3597 if (_argo1 == Py_None) { _arg1 = NULL; }
3598 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) {
3599 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetStateImageList. Expected _wxImageList_p.");
3600 return NULL;
3601 }
3602 }
3603 {
3604 wxPy_BEGIN_ALLOW_THREADS;
3605 wxTreeCtrl_SetStateImageList(_arg0,_arg1);
3606
3607 wxPy_END_ALLOW_THREADS;
3608 } Py_INCREF(Py_None);
3609 _resultobj = Py_None;
3610 return _resultobj;
3611 }
3612
3613 #define wxTreeCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0))
3614 static PyObject *_wrap_wxTreeCtrl_GetItemText(PyObject *self, PyObject *args) {
3615 PyObject * _resultobj;
3616 wxString * _result;
3617 wxTreeCtrl * _arg0;
3618 wxTreeItemId * _arg1;
3619 PyObject * _argo0 = 0;
3620 PyObject * _argo1 = 0;
3621
3622 self = self;
3623 if(!PyArg_ParseTuple(args,"OO:wxTreeCtrl_GetItemText",&_argo0,&_argo1))
3624 return NULL;
3625 if (_argo0) {
3626 if (_argo0 == Py_None) { _arg0 = NULL; }
3627 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
3628 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemText. Expected _wxTreeCtrl_p.");
3629 return NULL;
3630 }
3631 }
3632 if (_argo1) {
3633 if (_argo1 == Py_None) { _arg1 = NULL; }
3634 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
3635 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemText. Expected _wxTreeItemId_p.");
3636 return NULL;
3637 }
3638 }
3639 {
3640 wxPy_BEGIN_ALLOW_THREADS;
3641 _result = new wxString (wxTreeCtrl_GetItemText(_arg0,*_arg1));
3642
3643 wxPy_END_ALLOW_THREADS;
3644 }{
3645 _resultobj = PyString_FromString(WXSTRINGCAST *(_result));
3646 }
3647 {
3648 delete _result;
3649 }
3650 return _resultobj;
3651 }
3652
3653 #define wxTreeCtrl_GetItemImage(_swigobj,_swigarg0) (_swigobj->GetItemImage(_swigarg0))
3654 static PyObject *_wrap_wxTreeCtrl_GetItemImage(PyObject *self, PyObject *args) {
3655 PyObject * _resultobj;
3656 int _result;
3657 wxTreeCtrl * _arg0;
3658 wxTreeItemId * _arg1;
3659 PyObject * _argo0 = 0;
3660 PyObject * _argo1 = 0;
3661
3662 self = self;
3663 if(!PyArg_ParseTuple(args,"OO:wxTreeCtrl_GetItemImage",&_argo0,&_argo1))
3664 return NULL;
3665 if (_argo0) {
3666 if (_argo0 == Py_None) { _arg0 = NULL; }
3667 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
3668 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemImage. Expected _wxTreeCtrl_p.");
3669 return NULL;
3670 }
3671 }
3672 if (_argo1) {
3673 if (_argo1 == Py_None) { _arg1 = NULL; }
3674 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
3675 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemImage. Expected _wxTreeItemId_p.");
3676 return NULL;
3677 }
3678 }
3679 {
3680 wxPy_BEGIN_ALLOW_THREADS;
3681 _result = (int )wxTreeCtrl_GetItemImage(_arg0,*_arg1);
3682
3683 wxPy_END_ALLOW_THREADS;
3684 } _resultobj = Py_BuildValue("i",_result);
3685 return _resultobj;
3686 }
3687
3688 #define wxTreeCtrl_GetItemSelectedImage(_swigobj,_swigarg0) (_swigobj->GetItemSelectedImage(_swigarg0))
3689 static PyObject *_wrap_wxTreeCtrl_GetItemSelectedImage(PyObject *self, PyObject *args) {
3690 PyObject * _resultobj;
3691 int _result;
3692 wxTreeCtrl * _arg0;
3693 wxTreeItemId * _arg1;
3694 PyObject * _argo0 = 0;
3695 PyObject * _argo1 = 0;
3696
3697 self = self;
3698 if(!PyArg_ParseTuple(args,"OO:wxTreeCtrl_GetItemSelectedImage",&_argo0,&_argo1))
3699 return NULL;
3700 if (_argo0) {
3701 if (_argo0 == Py_None) { _arg0 = NULL; }
3702 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
3703 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemSelectedImage. Expected _wxTreeCtrl_p.");
3704 return NULL;
3705 }
3706 }
3707 if (_argo1) {
3708 if (_argo1 == Py_None) { _arg1 = NULL; }
3709 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
3710 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemSelectedImage. Expected _wxTreeItemId_p.");
3711 return NULL;
3712 }
3713 }
3714 {
3715 wxPy_BEGIN_ALLOW_THREADS;
3716 _result = (int )wxTreeCtrl_GetItemSelectedImage(_arg0,*_arg1);
3717
3718 wxPy_END_ALLOW_THREADS;
3719 } _resultobj = Py_BuildValue("i",_result);
3720 return _resultobj;
3721 }
3722
3723 #define wxTreeCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1))
3724 static PyObject *_wrap_wxTreeCtrl_SetItemText(PyObject *self, PyObject *args) {
3725 PyObject * _resultobj;
3726 wxTreeCtrl * _arg0;
3727 wxTreeItemId * _arg1;
3728 wxString * _arg2;
3729 PyObject * _argo0 = 0;
3730 PyObject * _argo1 = 0;
3731 PyObject * _obj2 = 0;
3732
3733 self = self;
3734 if(!PyArg_ParseTuple(args,"OOO:wxTreeCtrl_SetItemText",&_argo0,&_argo1,&_obj2))
3735 return NULL;
3736 if (_argo0) {
3737 if (_argo0 == Py_None) { _arg0 = NULL; }
3738 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
3739 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemText. Expected _wxTreeCtrl_p.");
3740 return NULL;
3741 }
3742 }
3743 if (_argo1) {
3744 if (_argo1 == Py_None) { _arg1 = NULL; }
3745 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
3746 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemText. Expected _wxTreeItemId_p.");
3747 return NULL;
3748 }
3749 }
3750 {
3751 if (!PyString_Check(_obj2)) {
3752 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3753 return NULL;
3754 }
3755 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
3756 }
3757 {
3758 wxPy_BEGIN_ALLOW_THREADS;
3759 wxTreeCtrl_SetItemText(_arg0,*_arg1,*_arg2);
3760
3761 wxPy_END_ALLOW_THREADS;
3762 } Py_INCREF(Py_None);
3763 _resultobj = Py_None;
3764 {
3765 if (_obj2)
3766 delete _arg2;
3767 }
3768 return _resultobj;
3769 }
3770
3771 #define wxTreeCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemImage(_swigarg0,_swigarg1))
3772 static PyObject *_wrap_wxTreeCtrl_SetItemImage(PyObject *self, PyObject *args) {
3773 PyObject * _resultobj;
3774 wxTreeCtrl * _arg0;
3775 wxTreeItemId * _arg1;
3776 int _arg2;
3777 PyObject * _argo0 = 0;
3778 PyObject * _argo1 = 0;
3779
3780 self = self;
3781 if(!PyArg_ParseTuple(args,"OOi:wxTreeCtrl_SetItemImage",&_argo0,&_argo1,&_arg2))
3782 return NULL;
3783 if (_argo0) {
3784 if (_argo0 == Py_None) { _arg0 = NULL; }
3785 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
3786 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemImage. Expected _wxTreeCtrl_p.");
3787 return NULL;
3788 }
3789 }
3790 if (_argo1) {
3791 if (_argo1 == Py_None) { _arg1 = NULL; }
3792 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
3793 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemImage. Expected _wxTreeItemId_p.");
3794 return NULL;
3795 }
3796 }
3797 {
3798 wxPy_BEGIN_ALLOW_THREADS;
3799 wxTreeCtrl_SetItemImage(_arg0,*_arg1,_arg2);
3800
3801 wxPy_END_ALLOW_THREADS;
3802 } Py_INCREF(Py_None);
3803 _resultobj = Py_None;
3804 return _resultobj;
3805 }
3806
3807 #define wxTreeCtrl_SetItemSelectedImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemSelectedImage(_swigarg0,_swigarg1))
3808 static PyObject *_wrap_wxTreeCtrl_SetItemSelectedImage(PyObject *self, PyObject *args) {
3809 PyObject * _resultobj;
3810 wxTreeCtrl * _arg0;
3811 wxTreeItemId * _arg1;
3812 int _arg2;
3813 PyObject * _argo0 = 0;
3814 PyObject * _argo1 = 0;
3815
3816 self = self;
3817 if(!PyArg_ParseTuple(args,"OOi:wxTreeCtrl_SetItemSelectedImage",&_argo0,&_argo1,&_arg2))
3818 return NULL;
3819 if (_argo0) {
3820 if (_argo0 == Py_None) { _arg0 = NULL; }
3821 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
3822 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemSelectedImage. Expected _wxTreeCtrl_p.");
3823 return NULL;
3824 }
3825 }
3826 if (_argo1) {
3827 if (_argo1 == Py_None) { _arg1 = NULL; }
3828 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
3829 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemSelectedImage. Expected _wxTreeItemId_p.");
3830 return NULL;
3831 }
3832 }
3833 {
3834 wxPy_BEGIN_ALLOW_THREADS;
3835 wxTreeCtrl_SetItemSelectedImage(_arg0,*_arg1,_arg2);
3836
3837 wxPy_END_ALLOW_THREADS;
3838 } Py_INCREF(Py_None);
3839 _resultobj = Py_None;
3840 return _resultobj;
3841 }
3842
3843 #define wxTreeCtrl_SetItemHasChildren(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemHasChildren(_swigarg0,_swigarg1))
3844 static PyObject *_wrap_wxTreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args) {
3845 PyObject * _resultobj;
3846 wxTreeCtrl * _arg0;
3847 wxTreeItemId * _arg1;
3848 bool _arg2 = (bool ) TRUE;
3849 PyObject * _argo0 = 0;
3850 PyObject * _argo1 = 0;
3851 int tempbool2 = (int) TRUE;
3852
3853 self = self;
3854 if(!PyArg_ParseTuple(args,"OO|i:wxTreeCtrl_SetItemHasChildren",&_argo0,&_argo1,&tempbool2))
3855 return NULL;
3856 if (_argo0) {
3857 if (_argo0 == Py_None) { _arg0 = NULL; }
3858 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
3859 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemHasChildren. Expected _wxTreeCtrl_p.");
3860 return NULL;
3861 }
3862 }
3863 if (_argo1) {
3864 if (_argo1 == Py_None) { _arg1 = NULL; }
3865 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
3866 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemHasChildren. Expected _wxTreeItemId_p.");
3867 return NULL;
3868 }
3869 }
3870 _arg2 = (bool ) tempbool2;
3871 {
3872 wxPy_BEGIN_ALLOW_THREADS;
3873 wxTreeCtrl_SetItemHasChildren(_arg0,*_arg1,_arg2);
3874
3875 wxPy_END_ALLOW_THREADS;
3876 } Py_INCREF(Py_None);
3877 _resultobj = Py_None;
3878 return _resultobj;
3879 }
3880
3881 static wxPyTreeItemData * wxTreeCtrl_GetItemData(wxTreeCtrl *self,const wxTreeItemId & item) {
3882 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3883 if (data == NULL) {
3884 data = new wxPyTreeItemData();
3885 self->SetItemData(item, data);
3886 }
3887 return data;
3888 }
3889 static PyObject *_wrap_wxTreeCtrl_GetItemData(PyObject *self, PyObject *args) {
3890 PyObject * _resultobj;
3891 wxPyTreeItemData * _result;
3892 wxTreeCtrl * _arg0;
3893 wxTreeItemId * _arg1;
3894 PyObject * _argo0 = 0;
3895 PyObject * _argo1 = 0;
3896 char _ptemp[128];
3897
3898 self = self;
3899 if(!PyArg_ParseTuple(args,"OO:wxTreeCtrl_GetItemData",&_argo0,&_argo1))
3900 return NULL;
3901 if (_argo0) {
3902 if (_argo0 == Py_None) { _arg0 = NULL; }
3903 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
3904 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemData. Expected _wxTreeCtrl_p.");
3905 return NULL;
3906 }
3907 }
3908 if (_argo1) {
3909 if (_argo1 == Py_None) { _arg1 = NULL; }
3910 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
3911 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemData. Expected _wxTreeItemId_p.");
3912 return NULL;
3913 }
3914 }
3915 {
3916 wxPy_BEGIN_ALLOW_THREADS;
3917 _result = (wxPyTreeItemData *)wxTreeCtrl_GetItemData(_arg0,*_arg1);
3918
3919 wxPy_END_ALLOW_THREADS;
3920 } if (_result) {
3921 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p");
3922 _resultobj = Py_BuildValue("s",_ptemp);
3923 } else {
3924 Py_INCREF(Py_None);
3925 _resultobj = Py_None;
3926 }
3927 return _resultobj;
3928 }
3929
3930 static void wxTreeCtrl_SetItemData(wxTreeCtrl *self,const wxTreeItemId & item,wxPyTreeItemData * data) {
3931 self->SetItemData(item, data);
3932 }
3933 static PyObject *_wrap_wxTreeCtrl_SetItemData(PyObject *self, PyObject *args) {
3934 PyObject * _resultobj;
3935 wxTreeCtrl * _arg0;
3936 wxTreeItemId * _arg1;
3937 wxPyTreeItemData * _arg2;
3938 PyObject * _argo0 = 0;
3939 PyObject * _argo1 = 0;
3940 PyObject * _argo2 = 0;
3941
3942 self = self;
3943 if(!PyArg_ParseTuple(args,"OOO:wxTreeCtrl_SetItemData",&_argo0,&_argo1,&_argo2))
3944 return NULL;
3945 if (_argo0) {
3946 if (_argo0 == Py_None) { _arg0 = NULL; }
3947 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
3948 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemData. Expected _wxTreeCtrl_p.");
3949 return NULL;
3950 }
3951 }
3952 if (_argo1) {
3953 if (_argo1 == Py_None) { _arg1 = NULL; }
3954 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
3955 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemData. Expected _wxTreeItemId_p.");
3956 return NULL;
3957 }
3958 }
3959 if (_argo2) {
3960 if (_argo2 == Py_None) { _arg2 = NULL; }
3961 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyTreeItemData_p")) {
3962 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemData. Expected _wxPyTreeItemData_p.");
3963 return NULL;
3964 }
3965 }
3966 {
3967 wxPy_BEGIN_ALLOW_THREADS;
3968 wxTreeCtrl_SetItemData(_arg0,*_arg1,_arg2);
3969
3970 wxPy_END_ALLOW_THREADS;
3971 } Py_INCREF(Py_None);
3972 _resultobj = Py_None;
3973 return _resultobj;
3974 }
3975
3976 static PyObject * wxTreeCtrl_GetPyData(wxTreeCtrl *self,const wxTreeItemId & item) {
3977 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
3978 if (data == NULL) {
3979 data = new wxPyTreeItemData();
3980 self->SetItemData(item, data);
3981 }
3982 return data->GetData();
3983 }
3984 static PyObject *_wrap_wxTreeCtrl_GetPyData(PyObject *self, PyObject *args) {
3985 PyObject * _resultobj;
3986 PyObject * _result;
3987 wxTreeCtrl * _arg0;
3988 wxTreeItemId * _arg1;
3989 PyObject * _argo0 = 0;
3990 PyObject * _argo1 = 0;
3991
3992 self = self;
3993 if(!PyArg_ParseTuple(args,"OO:wxTreeCtrl_GetPyData",&_argo0,&_argo1))
3994 return NULL;
3995 if (_argo0) {
3996 if (_argo0 == Py_None) { _arg0 = NULL; }
3997 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
3998 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPyData. Expected _wxTreeCtrl_p.");
3999 return NULL;
4000 }
4001 }
4002 if (_argo1) {
4003 if (_argo1 == Py_None) { _arg1 = NULL; }
4004 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
4005 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPyData. Expected _wxTreeItemId_p.");
4006 return NULL;
4007 }
4008 }
4009 {
4010 wxPy_BEGIN_ALLOW_THREADS;
4011 _result = (PyObject *)wxTreeCtrl_GetPyData(_arg0,*_arg1);
4012
4013 wxPy_END_ALLOW_THREADS;
4014 }{
4015 _resultobj = _result;
4016 }
4017 return _resultobj;
4018 }
4019
4020 static void wxTreeCtrl_SetPyData(wxTreeCtrl *self,const wxTreeItemId & item,PyObject * obj) {
4021 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
4022 if (data == NULL) {
4023 data = new wxPyTreeItemData(obj);
4024 self->SetItemData(item, data);
4025 } else
4026 data->SetData(obj);
4027 }
4028 static PyObject *_wrap_wxTreeCtrl_SetPyData(PyObject *self, PyObject *args) {
4029 PyObject * _resultobj;
4030 wxTreeCtrl * _arg0;
4031 wxTreeItemId * _arg1;
4032 PyObject * _arg2;
4033 PyObject * _argo0 = 0;
4034 PyObject * _argo1 = 0;
4035 PyObject * _obj2 = 0;
4036
4037 self = self;
4038 if(!PyArg_ParseTuple(args,"OOO:wxTreeCtrl_SetPyData",&_argo0,&_argo1,&_obj2))
4039 return NULL;
4040 if (_argo0) {
4041 if (_argo0 == Py_None) { _arg0 = NULL; }
4042 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4043 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetPyData. Expected _wxTreeCtrl_p.");
4044 return NULL;
4045 }
4046 }
4047 if (_argo1) {
4048 if (_argo1 == Py_None) { _arg1 = NULL; }
4049 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
4050 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetPyData. Expected _wxTreeItemId_p.");
4051 return NULL;
4052 }
4053 }
4054 {
4055 _arg2 = _obj2;
4056 }
4057 {
4058 wxPy_BEGIN_ALLOW_THREADS;
4059 wxTreeCtrl_SetPyData(_arg0,*_arg1,_arg2);
4060
4061 wxPy_END_ALLOW_THREADS;
4062 } Py_INCREF(Py_None);
4063 _resultobj = Py_None;
4064 return _resultobj;
4065 }
4066
4067 #define wxTreeCtrl_IsVisible(_swigobj,_swigarg0) (_swigobj->IsVisible(_swigarg0))
4068 static PyObject *_wrap_wxTreeCtrl_IsVisible(PyObject *self, PyObject *args) {
4069 PyObject * _resultobj;
4070 bool _result;
4071 wxTreeCtrl * _arg0;
4072 wxTreeItemId * _arg1;
4073 PyObject * _argo0 = 0;
4074 PyObject * _argo1 = 0;
4075
4076 self = self;
4077 if(!PyArg_ParseTuple(args,"OO:wxTreeCtrl_IsVisible",&_argo0,&_argo1))
4078 return NULL;
4079 if (_argo0) {
4080 if (_argo0 == Py_None) { _arg0 = NULL; }
4081 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4082 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsVisible. Expected _wxTreeCtrl_p.");
4083 return NULL;
4084 }
4085 }
4086 if (_argo1) {
4087 if (_argo1 == Py_None) { _arg1 = NULL; }
4088 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
4089 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsVisible. Expected _wxTreeItemId_p.");
4090 return NULL;
4091 }
4092 }
4093 {
4094 wxPy_BEGIN_ALLOW_THREADS;
4095 _result = (bool )wxTreeCtrl_IsVisible(_arg0,*_arg1);
4096
4097 wxPy_END_ALLOW_THREADS;
4098 } _resultobj = Py_BuildValue("i",_result);
4099 return _resultobj;
4100 }
4101
4102 #define wxTreeCtrl_ItemHasChildren(_swigobj,_swigarg0) (_swigobj->ItemHasChildren(_swigarg0))
4103 static PyObject *_wrap_wxTreeCtrl_ItemHasChildren(PyObject *self, PyObject *args) {
4104 PyObject * _resultobj;
4105 bool _result;
4106 wxTreeCtrl * _arg0;
4107 wxTreeItemId * _arg1;
4108 PyObject * _argo0 = 0;
4109 PyObject * _argo1 = 0;
4110
4111 self = self;
4112 if(!PyArg_ParseTuple(args,"OO:wxTreeCtrl_ItemHasChildren",&_argo0,&_argo1))
4113 return NULL;
4114 if (_argo0) {
4115 if (_argo0 == Py_None) { _arg0 = NULL; }
4116 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4117 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ItemHasChildren. Expected _wxTreeCtrl_p.");
4118 return NULL;
4119 }
4120 }
4121 if (_argo1) {
4122 if (_argo1 == Py_None) { _arg1 = NULL; }
4123 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
4124 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ItemHasChildren. Expected _wxTreeItemId_p.");
4125 return NULL;
4126 }
4127 }
4128 {
4129 wxPy_BEGIN_ALLOW_THREADS;
4130 _result = (bool )wxTreeCtrl_ItemHasChildren(_arg0,*_arg1);
4131
4132 wxPy_END_ALLOW_THREADS;
4133 } _resultobj = Py_BuildValue("i",_result);
4134 return _resultobj;
4135 }
4136
4137 #define wxTreeCtrl_IsExpanded(_swigobj,_swigarg0) (_swigobj->IsExpanded(_swigarg0))
4138 static PyObject *_wrap_wxTreeCtrl_IsExpanded(PyObject *self, PyObject *args) {
4139 PyObject * _resultobj;
4140 bool _result;
4141 wxTreeCtrl * _arg0;
4142 wxTreeItemId * _arg1;
4143 PyObject * _argo0 = 0;
4144 PyObject * _argo1 = 0;
4145
4146 self = self;
4147 if(!PyArg_ParseTuple(args,"OO:wxTreeCtrl_IsExpanded",&_argo0,&_argo1))
4148 return NULL;
4149 if (_argo0) {
4150 if (_argo0 == Py_None) { _arg0 = NULL; }
4151 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4152 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsExpanded. Expected _wxTreeCtrl_p.");
4153 return NULL;
4154 }
4155 }
4156 if (_argo1) {
4157 if (_argo1 == Py_None) { _arg1 = NULL; }
4158 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
4159 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsExpanded. Expected _wxTreeItemId_p.");
4160 return NULL;
4161 }
4162 }
4163 {
4164 wxPy_BEGIN_ALLOW_THREADS;
4165 _result = (bool )wxTreeCtrl_IsExpanded(_arg0,*_arg1);
4166
4167 wxPy_END_ALLOW_THREADS;
4168 } _resultobj = Py_BuildValue("i",_result);
4169 return _resultobj;
4170 }
4171
4172 #define wxTreeCtrl_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0))
4173 static PyObject *_wrap_wxTreeCtrl_IsSelected(PyObject *self, PyObject *args) {
4174 PyObject * _resultobj;
4175 bool _result;
4176 wxTreeCtrl * _arg0;
4177 wxTreeItemId * _arg1;
4178 PyObject * _argo0 = 0;
4179 PyObject * _argo1 = 0;
4180
4181 self = self;
4182 if(!PyArg_ParseTuple(args,"OO:wxTreeCtrl_IsSelected",&_argo0,&_argo1))
4183 return NULL;
4184 if (_argo0) {
4185 if (_argo0 == Py_None) { _arg0 = NULL; }
4186 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4187 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsSelected. Expected _wxTreeCtrl_p.");
4188 return NULL;
4189 }
4190 }
4191 if (_argo1) {
4192 if (_argo1 == Py_None) { _arg1 = NULL; }
4193 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
4194 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsSelected. Expected _wxTreeItemId_p.");
4195 return NULL;
4196 }
4197 }
4198 {
4199 wxPy_BEGIN_ALLOW_THREADS;
4200 _result = (bool )wxTreeCtrl_IsSelected(_arg0,*_arg1);
4201
4202 wxPy_END_ALLOW_THREADS;
4203 } _resultobj = Py_BuildValue("i",_result);
4204 return _resultobj;
4205 }
4206
4207 #define wxTreeCtrl_GetRootItem(_swigobj) (_swigobj->GetRootItem())
4208 static PyObject *_wrap_wxTreeCtrl_GetRootItem(PyObject *self, PyObject *args) {
4209 PyObject * _resultobj;
4210 wxTreeItemId * _result;
4211 wxTreeCtrl * _arg0;
4212 PyObject * _argo0 = 0;
4213 char _ptemp[128];
4214
4215 self = self;
4216 if(!PyArg_ParseTuple(args,"O:wxTreeCtrl_GetRootItem",&_argo0))
4217 return NULL;
4218 if (_argo0) {
4219 if (_argo0 == Py_None) { _arg0 = NULL; }
4220 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4221 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetRootItem. Expected _wxTreeCtrl_p.");
4222 return NULL;
4223 }
4224 }
4225 {
4226 wxPy_BEGIN_ALLOW_THREADS;
4227 _result = new wxTreeItemId (wxTreeCtrl_GetRootItem(_arg0));
4228
4229 wxPy_END_ALLOW_THREADS;
4230 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
4231 _resultobj = Py_BuildValue("s",_ptemp);
4232 return _resultobj;
4233 }
4234
4235 #define wxTreeCtrl_GetSelection(_swigobj) (_swigobj->GetSelection())
4236 static PyObject *_wrap_wxTreeCtrl_GetSelection(PyObject *self, PyObject *args) {
4237 PyObject * _resultobj;
4238 wxTreeItemId * _result;
4239 wxTreeCtrl * _arg0;
4240 PyObject * _argo0 = 0;
4241 char _ptemp[128];
4242
4243 self = self;
4244 if(!PyArg_ParseTuple(args,"O:wxTreeCtrl_GetSelection",&_argo0))
4245 return NULL;
4246 if (_argo0) {
4247 if (_argo0 == Py_None) { _arg0 = NULL; }
4248 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4249 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelection. Expected _wxTreeCtrl_p.");
4250 return NULL;
4251 }
4252 }
4253 {
4254 wxPy_BEGIN_ALLOW_THREADS;
4255 _result = new wxTreeItemId (wxTreeCtrl_GetSelection(_arg0));
4256
4257 wxPy_END_ALLOW_THREADS;
4258 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
4259 _resultobj = Py_BuildValue("s",_ptemp);
4260 return _resultobj;
4261 }
4262
4263 #define wxTreeCtrl_GetParent(_swigobj,_swigarg0) (_swigobj->GetParent(_swigarg0))
4264 static PyObject *_wrap_wxTreeCtrl_GetParent(PyObject *self, PyObject *args) {
4265 PyObject * _resultobj;
4266 wxTreeItemId * _result;
4267 wxTreeCtrl * _arg0;
4268 wxTreeItemId * _arg1;
4269 PyObject * _argo0 = 0;
4270 PyObject * _argo1 = 0;
4271 char _ptemp[128];
4272
4273 self = self;
4274 if(!PyArg_ParseTuple(args,"OO:wxTreeCtrl_GetParent",&_argo0,&_argo1))
4275 return NULL;
4276 if (_argo0) {
4277 if (_argo0 == Py_None) { _arg0 = NULL; }
4278 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4279 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetParent. Expected _wxTreeCtrl_p.");
4280 return NULL;
4281 }
4282 }
4283 if (_argo1) {
4284 if (_argo1 == Py_None) { _arg1 = NULL; }
4285 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
4286 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetParent. Expected _wxTreeItemId_p.");
4287 return NULL;
4288 }
4289 }
4290 {
4291 wxPy_BEGIN_ALLOW_THREADS;
4292 _result = new wxTreeItemId (wxTreeCtrl_GetParent(_arg0,*_arg1));
4293
4294 wxPy_END_ALLOW_THREADS;
4295 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
4296 _resultobj = Py_BuildValue("s",_ptemp);
4297 return _resultobj;
4298 }
4299
4300 #define wxTreeCtrl_GetChildrenCount(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetChildrenCount(_swigarg0,_swigarg1))
4301 static PyObject *_wrap_wxTreeCtrl_GetChildrenCount(PyObject *self, PyObject *args) {
4302 PyObject * _resultobj;
4303 size_t _result;
4304 wxTreeCtrl * _arg0;
4305 wxTreeItemId * _arg1;
4306 bool _arg2 = (bool ) TRUE;
4307 PyObject * _argo0 = 0;
4308 PyObject * _argo1 = 0;
4309 int tempbool2 = (int) TRUE;
4310
4311 self = self;
4312 if(!PyArg_ParseTuple(args,"OO|i:wxTreeCtrl_GetChildrenCount",&_argo0,&_argo1,&tempbool2))
4313 return NULL;
4314 if (_argo0) {
4315 if (_argo0 == Py_None) { _arg0 = NULL; }
4316 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4317 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetChildrenCount. Expected _wxTreeCtrl_p.");
4318 return NULL;
4319 }
4320 }
4321 if (_argo1) {
4322 if (_argo1 == Py_None) { _arg1 = NULL; }
4323 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
4324 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetChildrenCount. Expected _wxTreeItemId_p.");
4325 return NULL;
4326 }
4327 }
4328 _arg2 = (bool ) tempbool2;
4329 {
4330 wxPy_BEGIN_ALLOW_THREADS;
4331 _result = (size_t )wxTreeCtrl_GetChildrenCount(_arg0,*_arg1,_arg2);
4332
4333 wxPy_END_ALLOW_THREADS;
4334 } _resultobj = Py_BuildValue("i",_result);
4335 return _resultobj;
4336 }
4337
4338 #define wxTreeCtrl_GetFirstChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetFirstChild(_swigarg0,_swigarg1))
4339 static PyObject *_wrap_wxTreeCtrl_GetFirstChild(PyObject *self, PyObject *args) {
4340 PyObject * _resultobj;
4341 wxTreeItemId * _result;
4342 wxTreeCtrl * _arg0;
4343 wxTreeItemId * _arg1;
4344 long * _arg2;
4345 PyObject * _argo0 = 0;
4346 PyObject * _argo1 = 0;
4347 long temp;
4348 PyObject * _obj2 = 0;
4349 char _ptemp[128];
4350
4351 self = self;
4352 if(!PyArg_ParseTuple(args,"OOO:wxTreeCtrl_GetFirstChild",&_argo0,&_argo1,&_obj2))
4353 return NULL;
4354 if (_argo0) {
4355 if (_argo0 == Py_None) { _arg0 = NULL; }
4356 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4357 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstChild. Expected _wxTreeCtrl_p.");
4358 return NULL;
4359 }
4360 }
4361 if (_argo1) {
4362 if (_argo1 == Py_None) { _arg1 = NULL; }
4363 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
4364 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetFirstChild. Expected _wxTreeItemId_p.");
4365 return NULL;
4366 }
4367 }
4368 {
4369 temp = (long) PyInt_AsLong(_obj2);
4370 _arg2 = &temp;
4371 }
4372 {
4373 wxPy_BEGIN_ALLOW_THREADS;
4374 _result = new wxTreeItemId (wxTreeCtrl_GetFirstChild(_arg0,*_arg1,*_arg2));
4375
4376 wxPy_END_ALLOW_THREADS;
4377 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
4378 _resultobj = Py_BuildValue("s",_ptemp);
4379 {
4380 PyObject *o;
4381 o = PyInt_FromLong((long) (*_arg2));
4382 _resultobj = t_output_helper(_resultobj, o);
4383 }
4384 return _resultobj;
4385 }
4386
4387 #define wxTreeCtrl_GetNextChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetNextChild(_swigarg0,_swigarg1))
4388 static PyObject *_wrap_wxTreeCtrl_GetNextChild(PyObject *self, PyObject *args) {
4389 PyObject * _resultobj;
4390 wxTreeItemId * _result;
4391 wxTreeCtrl * _arg0;
4392 wxTreeItemId * _arg1;
4393 long * _arg2;
4394 PyObject * _argo0 = 0;
4395 PyObject * _argo1 = 0;
4396 long temp;
4397 PyObject * _obj2 = 0;
4398 char _ptemp[128];
4399
4400 self = self;
4401 if(!PyArg_ParseTuple(args,"OOO:wxTreeCtrl_GetNextChild",&_argo0,&_argo1,&_obj2))
4402 return NULL;
4403 if (_argo0) {
4404 if (_argo0 == Py_None) { _arg0 = NULL; }
4405 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4406 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextChild. Expected _wxTreeCtrl_p.");
4407 return NULL;
4408 }
4409 }
4410 if (_argo1) {
4411 if (_argo1 == Py_None) { _arg1 = NULL; }
4412 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
4413 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextChild. Expected _wxTreeItemId_p.");
4414 return NULL;
4415 }
4416 }
4417 {
4418 temp = (long) PyInt_AsLong(_obj2);
4419 _arg2 = &temp;
4420 }
4421 {
4422 wxPy_BEGIN_ALLOW_THREADS;
4423 _result = new wxTreeItemId (wxTreeCtrl_GetNextChild(_arg0,*_arg1,*_arg2));
4424
4425 wxPy_END_ALLOW_THREADS;
4426 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
4427 _resultobj = Py_BuildValue("s",_ptemp);
4428 {
4429 PyObject *o;
4430 o = PyInt_FromLong((long) (*_arg2));
4431 _resultobj = t_output_helper(_resultobj, o);
4432 }
4433 return _resultobj;
4434 }
4435
4436 #define wxTreeCtrl_GetNextSibling(_swigobj,_swigarg0) (_swigobj->GetNextSibling(_swigarg0))
4437 static PyObject *_wrap_wxTreeCtrl_GetNextSibling(PyObject *self, PyObject *args) {
4438 PyObject * _resultobj;
4439 wxTreeItemId * _result;
4440 wxTreeCtrl * _arg0;
4441 wxTreeItemId * _arg1;
4442 PyObject * _argo0 = 0;
4443 PyObject * _argo1 = 0;
4444 char _ptemp[128];
4445
4446 self = self;
4447 if(!PyArg_ParseTuple(args,"OO:wxTreeCtrl_GetNextSibling",&_argo0,&_argo1))
4448 return NULL;
4449 if (_argo0) {
4450 if (_argo0 == Py_None) { _arg0 = NULL; }
4451 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4452 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextSibling. Expected _wxTreeCtrl_p.");
4453 return NULL;
4454 }
4455 }
4456 if (_argo1) {
4457 if (_argo1 == Py_None) { _arg1 = NULL; }
4458 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
4459 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextSibling. Expected _wxTreeItemId_p.");
4460 return NULL;
4461 }
4462 }
4463 {
4464 wxPy_BEGIN_ALLOW_THREADS;
4465 _result = new wxTreeItemId (wxTreeCtrl_GetNextSibling(_arg0,*_arg1));
4466
4467 wxPy_END_ALLOW_THREADS;
4468 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
4469 _resultobj = Py_BuildValue("s",_ptemp);
4470 return _resultobj;
4471 }
4472
4473 #define wxTreeCtrl_GetPrevSibling(_swigobj,_swigarg0) (_swigobj->GetPrevSibling(_swigarg0))
4474 static PyObject *_wrap_wxTreeCtrl_GetPrevSibling(PyObject *self, PyObject *args) {
4475 PyObject * _resultobj;
4476 wxTreeItemId * _result;
4477 wxTreeCtrl * _arg0;
4478 wxTreeItemId * _arg1;
4479 PyObject * _argo0 = 0;
4480 PyObject * _argo1 = 0;
4481 char _ptemp[128];
4482
4483 self = self;
4484 if(!PyArg_ParseTuple(args,"OO:wxTreeCtrl_GetPrevSibling",&_argo0,&_argo1))
4485 return NULL;
4486 if (_argo0) {
4487 if (_argo0 == Py_None) { _arg0 = NULL; }
4488 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4489 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevSibling. Expected _wxTreeCtrl_p.");
4490 return NULL;
4491 }
4492 }
4493 if (_argo1) {
4494 if (_argo1 == Py_None) { _arg1 = NULL; }
4495 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
4496 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevSibling. Expected _wxTreeItemId_p.");
4497 return NULL;
4498 }
4499 }
4500 {
4501 wxPy_BEGIN_ALLOW_THREADS;
4502 _result = new wxTreeItemId (wxTreeCtrl_GetPrevSibling(_arg0,*_arg1));
4503
4504 wxPy_END_ALLOW_THREADS;
4505 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
4506 _resultobj = Py_BuildValue("s",_ptemp);
4507 return _resultobj;
4508 }
4509
4510 #define wxTreeCtrl_GetFirstVisibleItem(_swigobj) (_swigobj->GetFirstVisibleItem())
4511 static PyObject *_wrap_wxTreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args) {
4512 PyObject * _resultobj;
4513 wxTreeItemId * _result;
4514 wxTreeCtrl * _arg0;
4515 PyObject * _argo0 = 0;
4516 char _ptemp[128];
4517
4518 self = self;
4519 if(!PyArg_ParseTuple(args,"O:wxTreeCtrl_GetFirstVisibleItem",&_argo0))
4520 return NULL;
4521 if (_argo0) {
4522 if (_argo0 == Py_None) { _arg0 = NULL; }
4523 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4524 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstVisibleItem. Expected _wxTreeCtrl_p.");
4525 return NULL;
4526 }
4527 }
4528 {
4529 wxPy_BEGIN_ALLOW_THREADS;
4530 _result = new wxTreeItemId (wxTreeCtrl_GetFirstVisibleItem(_arg0));
4531
4532 wxPy_END_ALLOW_THREADS;
4533 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
4534 _resultobj = Py_BuildValue("s",_ptemp);
4535 return _resultobj;
4536 }
4537
4538 #define wxTreeCtrl_GetNextVisible(_swigobj,_swigarg0) (_swigobj->GetNextVisible(_swigarg0))
4539 static PyObject *_wrap_wxTreeCtrl_GetNextVisible(PyObject *self, PyObject *args) {
4540 PyObject * _resultobj;
4541 wxTreeItemId * _result;
4542 wxTreeCtrl * _arg0;
4543 wxTreeItemId * _arg1;
4544 PyObject * _argo0 = 0;
4545 PyObject * _argo1 = 0;
4546 char _ptemp[128];
4547
4548 self = self;
4549 if(!PyArg_ParseTuple(args,"OO:wxTreeCtrl_GetNextVisible",&_argo0,&_argo1))
4550 return NULL;
4551 if (_argo0) {
4552 if (_argo0 == Py_None) { _arg0 = NULL; }
4553 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4554 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextVisible. Expected _wxTreeCtrl_p.");
4555 return NULL;
4556 }
4557 }
4558 if (_argo1) {
4559 if (_argo1 == Py_None) { _arg1 = NULL; }
4560 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
4561 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextVisible. Expected _wxTreeItemId_p.");
4562 return NULL;
4563 }
4564 }
4565 {
4566 wxPy_BEGIN_ALLOW_THREADS;
4567 _result = new wxTreeItemId (wxTreeCtrl_GetNextVisible(_arg0,*_arg1));
4568
4569 wxPy_END_ALLOW_THREADS;
4570 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
4571 _resultobj = Py_BuildValue("s",_ptemp);
4572 return _resultobj;
4573 }
4574
4575 #define wxTreeCtrl_GetPrevVisible(_swigobj,_swigarg0) (_swigobj->GetPrevVisible(_swigarg0))
4576 static PyObject *_wrap_wxTreeCtrl_GetPrevVisible(PyObject *self, PyObject *args) {
4577 PyObject * _resultobj;
4578 wxTreeItemId * _result;
4579 wxTreeCtrl * _arg0;
4580 wxTreeItemId * _arg1;
4581 PyObject * _argo0 = 0;
4582 PyObject * _argo1 = 0;
4583 char _ptemp[128];
4584
4585 self = self;
4586 if(!PyArg_ParseTuple(args,"OO:wxTreeCtrl_GetPrevVisible",&_argo0,&_argo1))
4587 return NULL;
4588 if (_argo0) {
4589 if (_argo0 == Py_None) { _arg0 = NULL; }
4590 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4591 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevVisible. Expected _wxTreeCtrl_p.");
4592 return NULL;
4593 }
4594 }
4595 if (_argo1) {
4596 if (_argo1 == Py_None) { _arg1 = NULL; }
4597 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
4598 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevVisible. Expected _wxTreeItemId_p.");
4599 return NULL;
4600 }
4601 }
4602 {
4603 wxPy_BEGIN_ALLOW_THREADS;
4604 _result = new wxTreeItemId (wxTreeCtrl_GetPrevVisible(_arg0,*_arg1));
4605
4606 wxPy_END_ALLOW_THREADS;
4607 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
4608 _resultobj = Py_BuildValue("s",_ptemp);
4609 return _resultobj;
4610 }
4611
4612 #define wxTreeCtrl_AddRoot(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->AddRoot(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
4613 static PyObject *_wrap_wxTreeCtrl_AddRoot(PyObject *self, PyObject *args) {
4614 PyObject * _resultobj;
4615 wxTreeItemId * _result;
4616 wxTreeCtrl * _arg0;
4617 wxString * _arg1;
4618 int _arg2 = (int ) -1;
4619 int _arg3 = (int ) -1;
4620 wxPyTreeItemData * _arg4 = (wxPyTreeItemData *) NULL;
4621 PyObject * _argo0 = 0;
4622 PyObject * _obj1 = 0;
4623 PyObject * _argo4 = 0;
4624 char _ptemp[128];
4625
4626 self = self;
4627 if(!PyArg_ParseTuple(args,"OO|iiO:wxTreeCtrl_AddRoot",&_argo0,&_obj1,&_arg2,&_arg3,&_argo4))
4628 return NULL;
4629 if (_argo0) {
4630 if (_argo0 == Py_None) { _arg0 = NULL; }
4631 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4632 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AddRoot. Expected _wxTreeCtrl_p.");
4633 return NULL;
4634 }
4635 }
4636 {
4637 if (!PyString_Check(_obj1)) {
4638 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4639 return NULL;
4640 }
4641 _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1));
4642 }
4643 if (_argo4) {
4644 if (_argo4 == Py_None) { _arg4 = NULL; }
4645 else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxPyTreeItemData_p")) {
4646 PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxTreeCtrl_AddRoot. Expected _wxPyTreeItemData_p.");
4647 return NULL;
4648 }
4649 }
4650 {
4651 wxPy_BEGIN_ALLOW_THREADS;
4652 _result = new wxTreeItemId (wxTreeCtrl_AddRoot(_arg0,*_arg1,_arg2,_arg3,_arg4));
4653
4654 wxPy_END_ALLOW_THREADS;
4655 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
4656 _resultobj = Py_BuildValue("s",_ptemp);
4657 {
4658 if (_obj1)
4659 delete _arg1;
4660 }
4661 return _resultobj;
4662 }
4663
4664 #define wxTreeCtrl_PrependItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->PrependItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
4665 static PyObject *_wrap_wxTreeCtrl_PrependItem(PyObject *self, PyObject *args) {
4666 PyObject * _resultobj;
4667 wxTreeItemId * _result;
4668 wxTreeCtrl * _arg0;
4669 wxTreeItemId * _arg1;
4670 wxString * _arg2;
4671 int _arg3 = (int ) -1;
4672 int _arg4 = (int ) -1;
4673 wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL;
4674 PyObject * _argo0 = 0;
4675 PyObject * _argo1 = 0;
4676 PyObject * _obj2 = 0;
4677 PyObject * _argo5 = 0;
4678 char _ptemp[128];
4679
4680 self = self;
4681 if(!PyArg_ParseTuple(args,"OOO|iiO:wxTreeCtrl_PrependItem",&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5))
4682 return NULL;
4683 if (_argo0) {
4684 if (_argo0 == Py_None) { _arg0 = NULL; }
4685 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4686 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_PrependItem. Expected _wxTreeCtrl_p.");
4687 return NULL;
4688 }
4689 }
4690 if (_argo1) {
4691 if (_argo1 == Py_None) { _arg1 = NULL; }
4692 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
4693 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_PrependItem. Expected _wxTreeItemId_p.");
4694 return NULL;
4695 }
4696 }
4697 {
4698 if (!PyString_Check(_obj2)) {
4699 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4700 return NULL;
4701 }
4702 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
4703 }
4704 if (_argo5) {
4705 if (_argo5 == Py_None) { _arg5 = NULL; }
4706 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) {
4707 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_PrependItem. Expected _wxPyTreeItemData_p.");
4708 return NULL;
4709 }
4710 }
4711 {
4712 wxPy_BEGIN_ALLOW_THREADS;
4713 _result = new wxTreeItemId (wxTreeCtrl_PrependItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5));
4714
4715 wxPy_END_ALLOW_THREADS;
4716 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
4717 _resultobj = Py_BuildValue("s",_ptemp);
4718 {
4719 if (_obj2)
4720 delete _arg2;
4721 }
4722 return _resultobj;
4723 }
4724
4725 #define wxTreeCtrl_InsertItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
4726 static PyObject *_wrap_wxTreeCtrl_InsertItem(PyObject *self, PyObject *args) {
4727 PyObject * _resultobj;
4728 wxTreeItemId * _result;
4729 wxTreeCtrl * _arg0;
4730 wxTreeItemId * _arg1;
4731 wxTreeItemId * _arg2;
4732 wxString * _arg3;
4733 int _arg4 = (int ) -1;
4734 int _arg5 = (int ) -1;
4735 wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL;
4736 PyObject * _argo0 = 0;
4737 PyObject * _argo1 = 0;
4738 PyObject * _argo2 = 0;
4739 PyObject * _obj3 = 0;
4740 PyObject * _argo6 = 0;
4741 char _ptemp[128];
4742
4743 self = self;
4744 if(!PyArg_ParseTuple(args,"OOOO|iiO:wxTreeCtrl_InsertItem",&_argo0,&_argo1,&_argo2,&_obj3,&_arg4,&_arg5,&_argo6))
4745 return NULL;
4746 if (_argo0) {
4747 if (_argo0 == Py_None) { _arg0 = NULL; }
4748 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4749 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItem. Expected _wxTreeCtrl_p.");
4750 return NULL;
4751 }
4752 }
4753 if (_argo1) {
4754 if (_argo1 == Py_None) { _arg1 = NULL; }
4755 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
4756 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p.");
4757 return NULL;
4758 }
4759 }
4760 if (_argo2) {
4761 if (_argo2 == Py_None) { _arg2 = NULL; }
4762 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTreeItemId_p")) {
4763 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p.");
4764 return NULL;
4765 }
4766 }
4767 {
4768 if (!PyString_Check(_obj3)) {
4769 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4770 return NULL;
4771 }
4772 _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3));
4773 }
4774 if (_argo6) {
4775 if (_argo6 == Py_None) { _arg6 = NULL; }
4776 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) {
4777 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItem. Expected _wxPyTreeItemData_p.");
4778 return NULL;
4779 }
4780 }
4781 {
4782 wxPy_BEGIN_ALLOW_THREADS;
4783 _result = new wxTreeItemId (wxTreeCtrl_InsertItem(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6));
4784
4785 wxPy_END_ALLOW_THREADS;
4786 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
4787 _resultobj = Py_BuildValue("s",_ptemp);
4788 {
4789 if (_obj3)
4790 delete _arg3;
4791 }
4792 return _resultobj;
4793 }
4794
4795 #define wxTreeCtrl_AppendItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->AppendItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
4796 static PyObject *_wrap_wxTreeCtrl_AppendItem(PyObject *self, PyObject *args) {
4797 PyObject * _resultobj;
4798 wxTreeItemId * _result;
4799 wxTreeCtrl * _arg0;
4800 wxTreeItemId * _arg1;
4801 wxString * _arg2;
4802 int _arg3 = (int ) -1;
4803 int _arg4 = (int ) -1;
4804 wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL;
4805 PyObject * _argo0 = 0;
4806 PyObject * _argo1 = 0;
4807 PyObject * _obj2 = 0;
4808 PyObject * _argo5 = 0;
4809 char _ptemp[128];
4810
4811 self = self;
4812 if(!PyArg_ParseTuple(args,"OOO|iiO:wxTreeCtrl_AppendItem",&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5))
4813 return NULL;
4814 if (_argo0) {
4815 if (_argo0 == Py_None) { _arg0 = NULL; }
4816 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4817 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AppendItem. Expected _wxTreeCtrl_p.");
4818 return NULL;
4819 }
4820 }
4821 if (_argo1) {
4822 if (_argo1 == Py_None) { _arg1 = NULL; }
4823 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
4824 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AppendItem. Expected _wxTreeItemId_p.");
4825 return NULL;
4826 }
4827 }
4828 {
4829 if (!PyString_Check(_obj2)) {
4830 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4831 return NULL;
4832 }
4833 _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2));
4834 }
4835 if (_argo5) {
4836 if (_argo5 == Py_None) { _arg5 = NULL; }
4837 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) {
4838 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_AppendItem. Expected _wxPyTreeItemData_p.");
4839 return NULL;
4840 }
4841 }
4842 {
4843 wxPy_BEGIN_ALLOW_THREADS;
4844 _result = new wxTreeItemId (wxTreeCtrl_AppendItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5));
4845
4846 wxPy_END_ALLOW_THREADS;
4847 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
4848 _resultobj = Py_BuildValue("s",_ptemp);
4849 {
4850 if (_obj2)
4851 delete _arg2;
4852 }
4853 return _resultobj;
4854 }
4855
4856 #define wxTreeCtrl_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0))
4857 static PyObject *_wrap_wxTreeCtrl_Delete(PyObject *self, PyObject *args) {
4858 PyObject * _resultobj;
4859 wxTreeCtrl * _arg0;
4860 wxTreeItemId * _arg1;
4861 PyObject * _argo0 = 0;
4862 PyObject * _argo1 = 0;
4863
4864 self = self;
4865 if(!PyArg_ParseTuple(args,"OO:wxTreeCtrl_Delete",&_argo0,&_argo1))
4866 return NULL;
4867 if (_argo0) {
4868 if (_argo0 == Py_None) { _arg0 = NULL; }
4869 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4870 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Delete. Expected _wxTreeCtrl_p.");
4871 return NULL;
4872 }
4873 }
4874 if (_argo1) {
4875 if (_argo1 == Py_None) { _arg1 = NULL; }
4876 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
4877 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Delete. Expected _wxTreeItemId_p.");
4878 return NULL;
4879 }
4880 }
4881 {
4882 wxPy_BEGIN_ALLOW_THREADS;
4883 wxTreeCtrl_Delete(_arg0,*_arg1);
4884
4885 wxPy_END_ALLOW_THREADS;
4886 } Py_INCREF(Py_None);
4887 _resultobj = Py_None;
4888 return _resultobj;
4889 }
4890
4891 #define wxTreeCtrl_DeleteChildren(_swigobj,_swigarg0) (_swigobj->DeleteChildren(_swigarg0))
4892 static PyObject *_wrap_wxTreeCtrl_DeleteChildren(PyObject *self, PyObject *args) {
4893 PyObject * _resultobj;
4894 wxTreeCtrl * _arg0;
4895 wxTreeItemId * _arg1;
4896 PyObject * _argo0 = 0;
4897 PyObject * _argo1 = 0;
4898
4899 self = self;
4900 if(!PyArg_ParseTuple(args,"OO:wxTreeCtrl_DeleteChildren",&_argo0,&_argo1))
4901 return NULL;
4902 if (_argo0) {
4903 if (_argo0 == Py_None) { _arg0 = NULL; }
4904 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4905 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteChildren. Expected _wxTreeCtrl_p.");
4906 return NULL;
4907 }
4908 }
4909 if (_argo1) {
4910 if (_argo1 == Py_None) { _arg1 = NULL; }
4911 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
4912 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_DeleteChildren. Expected _wxTreeItemId_p.");
4913 return NULL;
4914 }
4915 }
4916 {
4917 wxPy_BEGIN_ALLOW_THREADS;
4918 wxTreeCtrl_DeleteChildren(_arg0,*_arg1);
4919
4920 wxPy_END_ALLOW_THREADS;
4921 } Py_INCREF(Py_None);
4922 _resultobj = Py_None;
4923 return _resultobj;
4924 }
4925
4926 #define wxTreeCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems())
4927 static PyObject *_wrap_wxTreeCtrl_DeleteAllItems(PyObject *self, PyObject *args) {
4928 PyObject * _resultobj;
4929 wxTreeCtrl * _arg0;
4930 PyObject * _argo0 = 0;
4931
4932 self = self;
4933 if(!PyArg_ParseTuple(args,"O:wxTreeCtrl_DeleteAllItems",&_argo0))
4934 return NULL;
4935 if (_argo0) {
4936 if (_argo0 == Py_None) { _arg0 = NULL; }
4937 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4938 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteAllItems. Expected _wxTreeCtrl_p.");
4939 return NULL;
4940 }
4941 }
4942 {
4943 wxPy_BEGIN_ALLOW_THREADS;
4944 wxTreeCtrl_DeleteAllItems(_arg0);
4945
4946 wxPy_END_ALLOW_THREADS;
4947 } Py_INCREF(Py_None);
4948 _resultobj = Py_None;
4949 return _resultobj;
4950 }
4951
4952 #define wxTreeCtrl_Expand(_swigobj,_swigarg0) (_swigobj->Expand(_swigarg0))
4953 static PyObject *_wrap_wxTreeCtrl_Expand(PyObject *self, PyObject *args) {
4954 PyObject * _resultobj;
4955 wxTreeCtrl * _arg0;
4956 wxTreeItemId * _arg1;
4957 PyObject * _argo0 = 0;
4958 PyObject * _argo1 = 0;
4959
4960 self = self;
4961 if(!PyArg_ParseTuple(args,"OO:wxTreeCtrl_Expand",&_argo0,&_argo1))
4962 return NULL;
4963 if (_argo0) {
4964 if (_argo0 == Py_None) { _arg0 = NULL; }
4965 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
4966 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Expand. Expected _wxTreeCtrl_p.");
4967 return NULL;
4968 }
4969 }
4970 if (_argo1) {
4971 if (_argo1 == Py_None) { _arg1 = NULL; }
4972 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
4973 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Expand. Expected _wxTreeItemId_p.");
4974 return NULL;
4975 }
4976 }
4977 {
4978 wxPy_BEGIN_ALLOW_THREADS;
4979 wxTreeCtrl_Expand(_arg0,*_arg1);
4980
4981 wxPy_END_ALLOW_THREADS;
4982 } Py_INCREF(Py_None);
4983 _resultobj = Py_None;
4984 return _resultobj;
4985 }
4986
4987 #define wxTreeCtrl_Collapse(_swigobj,_swigarg0) (_swigobj->Collapse(_swigarg0))
4988 static PyObject *_wrap_wxTreeCtrl_Collapse(PyObject *self, PyObject *args) {
4989 PyObject * _resultobj;
4990 wxTreeCtrl * _arg0;
4991 wxTreeItemId * _arg1;
4992 PyObject * _argo0 = 0;
4993 PyObject * _argo1 = 0;
4994
4995 self = self;
4996 if(!PyArg_ParseTuple(args,"OO:wxTreeCtrl_Collapse",&_argo0,&_argo1))
4997 return NULL;
4998 if (_argo0) {
4999 if (_argo0 == Py_None) { _arg0 = NULL; }
5000 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
5001 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Collapse. Expected _wxTreeCtrl_p.");
5002 return NULL;
5003 }
5004 }
5005 if (_argo1) {
5006 if (_argo1 == Py_None) { _arg1 = NULL; }
5007 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
5008 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Collapse. Expected _wxTreeItemId_p.");
5009 return NULL;
5010 }
5011 }
5012 {
5013 wxPy_BEGIN_ALLOW_THREADS;
5014 wxTreeCtrl_Collapse(_arg0,*_arg1);
5015
5016 wxPy_END_ALLOW_THREADS;
5017 } Py_INCREF(Py_None);
5018 _resultobj = Py_None;
5019 return _resultobj;
5020 }
5021
5022 #define wxTreeCtrl_CollapseAndReset(_swigobj,_swigarg0) (_swigobj->CollapseAndReset(_swigarg0))
5023 static PyObject *_wrap_wxTreeCtrl_CollapseAndReset(PyObject *self, PyObject *args) {
5024 PyObject * _resultobj;
5025 wxTreeCtrl * _arg0;
5026 wxTreeItemId * _arg1;
5027 PyObject * _argo0 = 0;
5028 PyObject * _argo1 = 0;
5029
5030 self = self;
5031 if(!PyArg_ParseTuple(args,"OO:wxTreeCtrl_CollapseAndReset",&_argo0,&_argo1))
5032 return NULL;
5033 if (_argo0) {
5034 if (_argo0 == Py_None) { _arg0 = NULL; }
5035 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
5036 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_CollapseAndReset. Expected _wxTreeCtrl_p.");
5037 return NULL;
5038 }
5039 }
5040 if (_argo1) {
5041 if (_argo1 == Py_None) { _arg1 = NULL; }
5042 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
5043 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_CollapseAndReset. Expected _wxTreeItemId_p.");
5044 return NULL;
5045 }
5046 }
5047 {
5048 wxPy_BEGIN_ALLOW_THREADS;
5049 wxTreeCtrl_CollapseAndReset(_arg0,*_arg1);
5050
5051 wxPy_END_ALLOW_THREADS;
5052 } Py_INCREF(Py_None);
5053 _resultobj = Py_None;
5054 return _resultobj;
5055 }
5056
5057 #define wxTreeCtrl_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0))
5058 static PyObject *_wrap_wxTreeCtrl_Toggle(PyObject *self, PyObject *args) {
5059 PyObject * _resultobj;
5060 wxTreeCtrl * _arg0;
5061 wxTreeItemId * _arg1;
5062 PyObject * _argo0 = 0;
5063 PyObject * _argo1 = 0;
5064
5065 self = self;
5066 if(!PyArg_ParseTuple(args,"OO:wxTreeCtrl_Toggle",&_argo0,&_argo1))
5067 return NULL;
5068 if (_argo0) {
5069 if (_argo0 == Py_None) { _arg0 = NULL; }
5070 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
5071 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Toggle. Expected _wxTreeCtrl_p.");
5072 return NULL;
5073 }
5074 }
5075 if (_argo1) {
5076 if (_argo1 == Py_None) { _arg1 = NULL; }
5077 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
5078 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Toggle. Expected _wxTreeItemId_p.");
5079 return NULL;
5080 }
5081 }
5082 {
5083 wxPy_BEGIN_ALLOW_THREADS;
5084 wxTreeCtrl_Toggle(_arg0,*_arg1);
5085
5086 wxPy_END_ALLOW_THREADS;
5087 } Py_INCREF(Py_None);
5088 _resultobj = Py_None;
5089 return _resultobj;
5090 }
5091
5092 #define wxTreeCtrl_Unselect(_swigobj) (_swigobj->Unselect())
5093 static PyObject *_wrap_wxTreeCtrl_Unselect(PyObject *self, PyObject *args) {
5094 PyObject * _resultobj;
5095 wxTreeCtrl * _arg0;
5096 PyObject * _argo0 = 0;
5097
5098 self = self;
5099 if(!PyArg_ParseTuple(args,"O:wxTreeCtrl_Unselect",&_argo0))
5100 return NULL;
5101 if (_argo0) {
5102 if (_argo0 == Py_None) { _arg0 = NULL; }
5103 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
5104 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Unselect. Expected _wxTreeCtrl_p.");
5105 return NULL;
5106 }
5107 }
5108 {
5109 wxPy_BEGIN_ALLOW_THREADS;
5110 wxTreeCtrl_Unselect(_arg0);
5111
5112 wxPy_END_ALLOW_THREADS;
5113 } Py_INCREF(Py_None);
5114 _resultobj = Py_None;
5115 return _resultobj;
5116 }
5117
5118 #define wxTreeCtrl_UnselectAll(_swigobj) (_swigobj->UnselectAll())
5119 static PyObject *_wrap_wxTreeCtrl_UnselectAll(PyObject *self, PyObject *args) {
5120 PyObject * _resultobj;
5121 wxTreeCtrl * _arg0;
5122 PyObject * _argo0 = 0;
5123
5124 self = self;
5125 if(!PyArg_ParseTuple(args,"O:wxTreeCtrl_UnselectAll",&_argo0))
5126 return NULL;
5127 if (_argo0) {
5128 if (_argo0 == Py_None) { _arg0 = NULL; }
5129 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
5130 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_UnselectAll. Expected _wxTreeCtrl_p.");
5131 return NULL;
5132 }
5133 }
5134 {
5135 wxPy_BEGIN_ALLOW_THREADS;
5136 wxTreeCtrl_UnselectAll(_arg0);
5137
5138 wxPy_END_ALLOW_THREADS;
5139 } Py_INCREF(Py_None);
5140 _resultobj = Py_None;
5141 return _resultobj;
5142 }
5143
5144 #define wxTreeCtrl_SelectItem(_swigobj,_swigarg0) (_swigobj->SelectItem(_swigarg0))
5145 static PyObject *_wrap_wxTreeCtrl_SelectItem(PyObject *self, PyObject *args) {
5146 PyObject * _resultobj;
5147 wxTreeCtrl * _arg0;
5148 wxTreeItemId * _arg1;
5149 PyObject * _argo0 = 0;
5150 PyObject * _argo1 = 0;
5151
5152 self = self;
5153 if(!PyArg_ParseTuple(args,"OO:wxTreeCtrl_SelectItem",&_argo0,&_argo1))
5154 return NULL;
5155 if (_argo0) {
5156 if (_argo0 == Py_None) { _arg0 = NULL; }
5157 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
5158 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SelectItem. Expected _wxTreeCtrl_p.");
5159 return NULL;
5160 }
5161 }
5162 if (_argo1) {
5163 if (_argo1 == Py_None) { _arg1 = NULL; }
5164 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
5165 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SelectItem. Expected _wxTreeItemId_p.");
5166 return NULL;
5167 }
5168 }
5169 {
5170 wxPy_BEGIN_ALLOW_THREADS;
5171 wxTreeCtrl_SelectItem(_arg0,*_arg1);
5172
5173 wxPy_END_ALLOW_THREADS;
5174 } Py_INCREF(Py_None);
5175 _resultobj = Py_None;
5176 return _resultobj;
5177 }
5178
5179 #define wxTreeCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0))
5180 static PyObject *_wrap_wxTreeCtrl_EnsureVisible(PyObject *self, PyObject *args) {
5181 PyObject * _resultobj;
5182 wxTreeCtrl * _arg0;
5183 wxTreeItemId * _arg1;
5184 PyObject * _argo0 = 0;
5185 PyObject * _argo1 = 0;
5186
5187 self = self;
5188 if(!PyArg_ParseTuple(args,"OO:wxTreeCtrl_EnsureVisible",&_argo0,&_argo1))
5189 return NULL;
5190 if (_argo0) {
5191 if (_argo0 == Py_None) { _arg0 = NULL; }
5192 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
5193 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EnsureVisible. Expected _wxTreeCtrl_p.");
5194 return NULL;
5195 }
5196 }
5197 if (_argo1) {
5198 if (_argo1 == Py_None) { _arg1 = NULL; }
5199 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
5200 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EnsureVisible. Expected _wxTreeItemId_p.");
5201 return NULL;
5202 }
5203 }
5204 {
5205 wxPy_BEGIN_ALLOW_THREADS;
5206 wxTreeCtrl_EnsureVisible(_arg0,*_arg1);
5207
5208 wxPy_END_ALLOW_THREADS;
5209 } Py_INCREF(Py_None);
5210 _resultobj = Py_None;
5211 return _resultobj;
5212 }
5213
5214 #define wxTreeCtrl_ScrollTo(_swigobj,_swigarg0) (_swigobj->ScrollTo(_swigarg0))
5215 static PyObject *_wrap_wxTreeCtrl_ScrollTo(PyObject *self, PyObject *args) {
5216 PyObject * _resultobj;
5217 wxTreeCtrl * _arg0;
5218 wxTreeItemId * _arg1;
5219 PyObject * _argo0 = 0;
5220 PyObject * _argo1 = 0;
5221
5222 self = self;
5223 if(!PyArg_ParseTuple(args,"OO:wxTreeCtrl_ScrollTo",&_argo0,&_argo1))
5224 return NULL;
5225 if (_argo0) {
5226 if (_argo0 == Py_None) { _arg0 = NULL; }
5227 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
5228 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ScrollTo. Expected _wxTreeCtrl_p.");
5229 return NULL;
5230 }
5231 }
5232 if (_argo1) {
5233 if (_argo1 == Py_None) { _arg1 = NULL; }
5234 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
5235 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ScrollTo. Expected _wxTreeItemId_p.");
5236 return NULL;
5237 }
5238 }
5239 {
5240 wxPy_BEGIN_ALLOW_THREADS;
5241 wxTreeCtrl_ScrollTo(_arg0,*_arg1);
5242
5243 wxPy_END_ALLOW_THREADS;
5244 } Py_INCREF(Py_None);
5245 _resultobj = Py_None;
5246 return _resultobj;
5247 }
5248
5249 #define wxTreeCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0))
5250 static PyObject *_wrap_wxTreeCtrl_EditLabel(PyObject *self, PyObject *args) {
5251 PyObject * _resultobj;
5252 wxTextCtrl * _result;
5253 wxTreeCtrl * _arg0;
5254 wxTreeItemId * _arg1;
5255 PyObject * _argo0 = 0;
5256 PyObject * _argo1 = 0;
5257 char _ptemp[128];
5258
5259 self = self;
5260 if(!PyArg_ParseTuple(args,"OO:wxTreeCtrl_EditLabel",&_argo0,&_argo1))
5261 return NULL;
5262 if (_argo0) {
5263 if (_argo0 == Py_None) { _arg0 = NULL; }
5264 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
5265 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EditLabel. Expected _wxTreeCtrl_p.");
5266 return NULL;
5267 }
5268 }
5269 if (_argo1) {
5270 if (_argo1 == Py_None) { _arg1 = NULL; }
5271 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
5272 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EditLabel. Expected _wxTreeItemId_p.");
5273 return NULL;
5274 }
5275 }
5276 {
5277 wxPy_BEGIN_ALLOW_THREADS;
5278 _result = (wxTextCtrl *)wxTreeCtrl_EditLabel(_arg0,*_arg1);
5279
5280 wxPy_END_ALLOW_THREADS;
5281 } if (_result) {
5282 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p");
5283 _resultobj = Py_BuildValue("s",_ptemp);
5284 } else {
5285 Py_INCREF(Py_None);
5286 _resultobj = Py_None;
5287 }
5288 return _resultobj;
5289 }
5290
5291 #define wxTreeCtrl_GetEditControl(_swigobj) (_swigobj->GetEditControl())
5292 static PyObject *_wrap_wxTreeCtrl_GetEditControl(PyObject *self, PyObject *args) {
5293 PyObject * _resultobj;
5294 wxTextCtrl * _result;
5295 wxTreeCtrl * _arg0;
5296 PyObject * _argo0 = 0;
5297 char _ptemp[128];
5298
5299 self = self;
5300 if(!PyArg_ParseTuple(args,"O:wxTreeCtrl_GetEditControl",&_argo0))
5301 return NULL;
5302 if (_argo0) {
5303 if (_argo0 == Py_None) { _arg0 = NULL; }
5304 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
5305 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetEditControl. Expected _wxTreeCtrl_p.");
5306 return NULL;
5307 }
5308 }
5309 {
5310 wxPy_BEGIN_ALLOW_THREADS;
5311 _result = (wxTextCtrl *)wxTreeCtrl_GetEditControl(_arg0);
5312
5313 wxPy_END_ALLOW_THREADS;
5314 } if (_result) {
5315 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p");
5316 _resultobj = Py_BuildValue("s",_ptemp);
5317 } else {
5318 Py_INCREF(Py_None);
5319 _resultobj = Py_None;
5320 }
5321 return _resultobj;
5322 }
5323
5324 #define wxTreeCtrl_EndEditLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->EndEditLabel(_swigarg0,_swigarg1))
5325 static PyObject *_wrap_wxTreeCtrl_EndEditLabel(PyObject *self, PyObject *args) {
5326 PyObject * _resultobj;
5327 wxTreeCtrl * _arg0;
5328 wxTreeItemId * _arg1;
5329 bool _arg2 = (bool ) FALSE;
5330 PyObject * _argo0 = 0;
5331 PyObject * _argo1 = 0;
5332 int tempbool2 = (int) FALSE;
5333
5334 self = self;
5335 if(!PyArg_ParseTuple(args,"OO|i:wxTreeCtrl_EndEditLabel",&_argo0,&_argo1,&tempbool2))
5336 return NULL;
5337 if (_argo0) {
5338 if (_argo0 == Py_None) { _arg0 = NULL; }
5339 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
5340 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EndEditLabel. Expected _wxTreeCtrl_p.");
5341 return NULL;
5342 }
5343 }
5344 if (_argo1) {
5345 if (_argo1 == Py_None) { _arg1 = NULL; }
5346 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
5347 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EndEditLabel. Expected _wxTreeItemId_p.");
5348 return NULL;
5349 }
5350 }
5351 _arg2 = (bool ) tempbool2;
5352 {
5353 wxPy_BEGIN_ALLOW_THREADS;
5354 wxTreeCtrl_EndEditLabel(_arg0,*_arg1,_arg2);
5355
5356 wxPy_END_ALLOW_THREADS;
5357 } Py_INCREF(Py_None);
5358 _resultobj = Py_None;
5359 return _resultobj;
5360 }
5361
5362 #define wxTreeCtrl_SetItemBold(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBold(_swigarg0,_swigarg1))
5363 static PyObject *_wrap_wxTreeCtrl_SetItemBold(PyObject *self, PyObject *args) {
5364 PyObject * _resultobj;
5365 wxTreeCtrl * _arg0;
5366 wxTreeItemId * _arg1;
5367 bool _arg2 = (bool ) TRUE;
5368 PyObject * _argo0 = 0;
5369 PyObject * _argo1 = 0;
5370 int tempbool2 = (int) TRUE;
5371
5372 self = self;
5373 if(!PyArg_ParseTuple(args,"OO|i:wxTreeCtrl_SetItemBold",&_argo0,&_argo1,&tempbool2))
5374 return NULL;
5375 if (_argo0) {
5376 if (_argo0 == Py_None) { _arg0 = NULL; }
5377 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
5378 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBold. Expected _wxTreeCtrl_p.");
5379 return NULL;
5380 }
5381 }
5382 if (_argo1) {
5383 if (_argo1 == Py_None) { _arg1 = NULL; }
5384 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
5385 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBold. Expected _wxTreeItemId_p.");
5386 return NULL;
5387 }
5388 }
5389 _arg2 = (bool ) tempbool2;
5390 {
5391 wxPy_BEGIN_ALLOW_THREADS;
5392 wxTreeCtrl_SetItemBold(_arg0,*_arg1,_arg2);
5393
5394 wxPy_END_ALLOW_THREADS;
5395 } Py_INCREF(Py_None);
5396 _resultobj = Py_None;
5397 return _resultobj;
5398 }
5399
5400 #define wxTreeCtrl_IsBold(_swigobj,_swigarg0) (_swigobj->IsBold(_swigarg0))
5401 static PyObject *_wrap_wxTreeCtrl_IsBold(PyObject *self, PyObject *args) {
5402 PyObject * _resultobj;
5403 bool _result;
5404 wxTreeCtrl * _arg0;
5405 wxTreeItemId * _arg1;
5406 PyObject * _argo0 = 0;
5407 PyObject * _argo1 = 0;
5408
5409 self = self;
5410 if(!PyArg_ParseTuple(args,"OO:wxTreeCtrl_IsBold",&_argo0,&_argo1))
5411 return NULL;
5412 if (_argo0) {
5413 if (_argo0 == Py_None) { _arg0 = NULL; }
5414 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
5415 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsBold. Expected _wxTreeCtrl_p.");
5416 return NULL;
5417 }
5418 }
5419 if (_argo1) {
5420 if (_argo1 == Py_None) { _arg1 = NULL; }
5421 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
5422 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsBold. Expected _wxTreeItemId_p.");
5423 return NULL;
5424 }
5425 }
5426 {
5427 wxPy_BEGIN_ALLOW_THREADS;
5428 _result = (bool )wxTreeCtrl_IsBold(_arg0,*_arg1);
5429
5430 wxPy_END_ALLOW_THREADS;
5431 } _resultobj = Py_BuildValue("i",_result);
5432 return _resultobj;
5433 }
5434
5435 #define wxTreeCtrl_HitTest(_swigobj,_swigarg0) (_swigobj->HitTest(_swigarg0))
5436 static PyObject *_wrap_wxTreeCtrl_HitTest(PyObject *self, PyObject *args) {
5437 PyObject * _resultobj;
5438 wxTreeItemId * _result;
5439 wxTreeCtrl * _arg0;
5440 wxPoint * _arg1;
5441 PyObject * _argo0 = 0;
5442 PyObject * _argo1 = 0;
5443 char _ptemp[128];
5444
5445 self = self;
5446 if(!PyArg_ParseTuple(args,"OO:wxTreeCtrl_HitTest",&_argo0,&_argo1))
5447 return NULL;
5448 if (_argo0) {
5449 if (_argo0 == Py_None) { _arg0 = NULL; }
5450 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
5451 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_HitTest. Expected _wxTreeCtrl_p.");
5452 return NULL;
5453 }
5454 }
5455 if (_argo1) {
5456 if (_argo1 == Py_None) { _arg1 = NULL; }
5457 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPoint_p")) {
5458 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_HitTest. Expected _wxPoint_p.");
5459 return NULL;
5460 }
5461 }
5462 {
5463 wxPy_BEGIN_ALLOW_THREADS;
5464 _result = new wxTreeItemId (wxTreeCtrl_HitTest(_arg0,*_arg1));
5465
5466 wxPy_END_ALLOW_THREADS;
5467 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p");
5468 _resultobj = Py_BuildValue("s",_ptemp);
5469 return _resultobj;
5470 }
5471
5472 static PyMethodDef controls2cMethods[] = {
5473 { "wxTreeCtrl_HitTest", _wrap_wxTreeCtrl_HitTest, METH_VARARGS },
5474 { "wxTreeCtrl_IsBold", _wrap_wxTreeCtrl_IsBold, METH_VARARGS },
5475 { "wxTreeCtrl_SetItemBold", _wrap_wxTreeCtrl_SetItemBold, METH_VARARGS },
5476 { "wxTreeCtrl_EndEditLabel", _wrap_wxTreeCtrl_EndEditLabel, METH_VARARGS },
5477 { "wxTreeCtrl_GetEditControl", _wrap_wxTreeCtrl_GetEditControl, METH_VARARGS },
5478 { "wxTreeCtrl_EditLabel", _wrap_wxTreeCtrl_EditLabel, METH_VARARGS },
5479 { "wxTreeCtrl_ScrollTo", _wrap_wxTreeCtrl_ScrollTo, METH_VARARGS },
5480 { "wxTreeCtrl_EnsureVisible", _wrap_wxTreeCtrl_EnsureVisible, METH_VARARGS },
5481 { "wxTreeCtrl_SelectItem", _wrap_wxTreeCtrl_SelectItem, METH_VARARGS },
5482 { "wxTreeCtrl_UnselectAll", _wrap_wxTreeCtrl_UnselectAll, METH_VARARGS },
5483 { "wxTreeCtrl_Unselect", _wrap_wxTreeCtrl_Unselect, METH_VARARGS },
5484 { "wxTreeCtrl_Toggle", _wrap_wxTreeCtrl_Toggle, METH_VARARGS },
5485 { "wxTreeCtrl_CollapseAndReset", _wrap_wxTreeCtrl_CollapseAndReset, METH_VARARGS },
5486 { "wxTreeCtrl_Collapse", _wrap_wxTreeCtrl_Collapse, METH_VARARGS },
5487 { "wxTreeCtrl_Expand", _wrap_wxTreeCtrl_Expand, METH_VARARGS },
5488 { "wxTreeCtrl_DeleteAllItems", _wrap_wxTreeCtrl_DeleteAllItems, METH_VARARGS },
5489 { "wxTreeCtrl_DeleteChildren", _wrap_wxTreeCtrl_DeleteChildren, METH_VARARGS },
5490 { "wxTreeCtrl_Delete", _wrap_wxTreeCtrl_Delete, METH_VARARGS },
5491 { "wxTreeCtrl_AppendItem", _wrap_wxTreeCtrl_AppendItem, METH_VARARGS },
5492 { "wxTreeCtrl_InsertItem", _wrap_wxTreeCtrl_InsertItem, METH_VARARGS },
5493 { "wxTreeCtrl_PrependItem", _wrap_wxTreeCtrl_PrependItem, METH_VARARGS },
5494 { "wxTreeCtrl_AddRoot", _wrap_wxTreeCtrl_AddRoot, METH_VARARGS },
5495 { "wxTreeCtrl_GetPrevVisible", _wrap_wxTreeCtrl_GetPrevVisible, METH_VARARGS },
5496 { "wxTreeCtrl_GetNextVisible", _wrap_wxTreeCtrl_GetNextVisible, METH_VARARGS },
5497 { "wxTreeCtrl_GetFirstVisibleItem", _wrap_wxTreeCtrl_GetFirstVisibleItem, METH_VARARGS },
5498 { "wxTreeCtrl_GetPrevSibling", _wrap_wxTreeCtrl_GetPrevSibling, METH_VARARGS },
5499 { "wxTreeCtrl_GetNextSibling", _wrap_wxTreeCtrl_GetNextSibling, METH_VARARGS },
5500 { "wxTreeCtrl_GetNextChild", _wrap_wxTreeCtrl_GetNextChild, METH_VARARGS },
5501 { "wxTreeCtrl_GetFirstChild", _wrap_wxTreeCtrl_GetFirstChild, METH_VARARGS },
5502 { "wxTreeCtrl_GetChildrenCount", _wrap_wxTreeCtrl_GetChildrenCount, METH_VARARGS },
5503 { "wxTreeCtrl_GetParent", _wrap_wxTreeCtrl_GetParent, METH_VARARGS },
5504 { "wxTreeCtrl_GetSelection", _wrap_wxTreeCtrl_GetSelection, METH_VARARGS },
5505 { "wxTreeCtrl_GetRootItem", _wrap_wxTreeCtrl_GetRootItem, METH_VARARGS },
5506 { "wxTreeCtrl_IsSelected", _wrap_wxTreeCtrl_IsSelected, METH_VARARGS },
5507 { "wxTreeCtrl_IsExpanded", _wrap_wxTreeCtrl_IsExpanded, METH_VARARGS },
5508 { "wxTreeCtrl_ItemHasChildren", _wrap_wxTreeCtrl_ItemHasChildren, METH_VARARGS },
5509 { "wxTreeCtrl_IsVisible", _wrap_wxTreeCtrl_IsVisible, METH_VARARGS },
5510 { "wxTreeCtrl_SetPyData", _wrap_wxTreeCtrl_SetPyData, METH_VARARGS },
5511 { "wxTreeCtrl_GetPyData", _wrap_wxTreeCtrl_GetPyData, METH_VARARGS },
5512 { "wxTreeCtrl_SetItemData", _wrap_wxTreeCtrl_SetItemData, METH_VARARGS },
5513 { "wxTreeCtrl_GetItemData", _wrap_wxTreeCtrl_GetItemData, METH_VARARGS },
5514 { "wxTreeCtrl_SetItemHasChildren", _wrap_wxTreeCtrl_SetItemHasChildren, METH_VARARGS },
5515 { "wxTreeCtrl_SetItemSelectedImage", _wrap_wxTreeCtrl_SetItemSelectedImage, METH_VARARGS },
5516 { "wxTreeCtrl_SetItemImage", _wrap_wxTreeCtrl_SetItemImage, METH_VARARGS },
5517 { "wxTreeCtrl_SetItemText", _wrap_wxTreeCtrl_SetItemText, METH_VARARGS },
5518 { "wxTreeCtrl_GetItemSelectedImage", _wrap_wxTreeCtrl_GetItemSelectedImage, METH_VARARGS },
5519 { "wxTreeCtrl_GetItemImage", _wrap_wxTreeCtrl_GetItemImage, METH_VARARGS },
5520 { "wxTreeCtrl_GetItemText", _wrap_wxTreeCtrl_GetItemText, METH_VARARGS },
5521 { "wxTreeCtrl_SetStateImageList", _wrap_wxTreeCtrl_SetStateImageList, METH_VARARGS },
5522 { "wxTreeCtrl_SetImageList", _wrap_wxTreeCtrl_SetImageList, METH_VARARGS },
5523 { "wxTreeCtrl_GetStateImageList", _wrap_wxTreeCtrl_GetStateImageList, METH_VARARGS },
5524 { "wxTreeCtrl_GetImageList", _wrap_wxTreeCtrl_GetImageList, METH_VARARGS },
5525 { "wxTreeCtrl_SetIndent", _wrap_wxTreeCtrl_SetIndent, METH_VARARGS },
5526 { "wxTreeCtrl_GetIndent", _wrap_wxTreeCtrl_GetIndent, METH_VARARGS },
5527 { "wxTreeCtrl_GetCount", _wrap_wxTreeCtrl_GetCount, METH_VARARGS },
5528 { "new_wxTreeCtrl", _wrap_new_wxTreeCtrl, METH_VARARGS },
5529 { "wxTreeEvent_GetLabel", _wrap_wxTreeEvent_GetLabel, METH_VARARGS },
5530 { "wxTreeEvent_GetCode", _wrap_wxTreeEvent_GetCode, METH_VARARGS },
5531 { "wxTreeEvent_GetPoint", _wrap_wxTreeEvent_GetPoint, METH_VARARGS },
5532 { "wxTreeEvent_GetOldItem", _wrap_wxTreeEvent_GetOldItem, METH_VARARGS },
5533 { "wxTreeEvent_GetItem", _wrap_wxTreeEvent_GetItem, METH_VARARGS },
5534 { "wxTreeItemData_SetId", _wrap_wxTreeItemData_SetId, METH_VARARGS },
5535 { "wxTreeItemData_GetId", _wrap_wxTreeItemData_GetId, METH_VARARGS },
5536 { "wxTreeItemData_SetData", _wrap_wxTreeItemData_SetData, METH_VARARGS },
5537 { "wxTreeItemData_GetData", _wrap_wxTreeItemData_GetData, METH_VARARGS },
5538 { "new_wxTreeItemData", _wrap_new_wxTreeItemData, METH_VARARGS },
5539 { "wxTreeItemId_IsOk", _wrap_wxTreeItemId_IsOk, METH_VARARGS },
5540 { "delete_wxTreeItemId", _wrap_delete_wxTreeItemId, METH_VARARGS },
5541 { "new_wxTreeItemId", _wrap_new_wxTreeItemId, METH_VARARGS },
5542 { "wxListCtrl_SetWindowStyleFlag", _wrap_wxListCtrl_SetWindowStyleFlag, METH_VARARGS },
5543 { "wxListCtrl_SetSingleStyle", _wrap_wxListCtrl_SetSingleStyle, METH_VARARGS },
5544 { "wxListCtrl_SetItemText", _wrap_wxListCtrl_SetItemText, METH_VARARGS },
5545 { "wxListCtrl_SetItemState", _wrap_wxListCtrl_SetItemState, METH_VARARGS },
5546 { "wxListCtrl_SetItemPosition", _wrap_wxListCtrl_SetItemPosition, METH_VARARGS },
5547 { "wxListCtrl_SetItemImage", _wrap_wxListCtrl_SetItemImage, METH_VARARGS },
5548 { "wxListCtrl_SetItemData", _wrap_wxListCtrl_SetItemData, METH_VARARGS },
5549 { "wxListCtrl_SetStringItem", _wrap_wxListCtrl_SetStringItem, METH_VARARGS },
5550 { "wxListCtrl_SetItem", _wrap_wxListCtrl_SetItem, METH_VARARGS },
5551 { "wxListCtrl_SetImageList", _wrap_wxListCtrl_SetImageList, METH_VARARGS },
5552 { "wxListCtrl_SetColumnWidth", _wrap_wxListCtrl_SetColumnWidth, METH_VARARGS },
5553 { "wxListCtrl_SetColumn", _wrap_wxListCtrl_SetColumn, METH_VARARGS },
5554 { "wxListCtrl_SetBackgroundColour", _wrap_wxListCtrl_SetBackgroundColour, METH_VARARGS },
5555 { "wxListCtrl_ScrollList", _wrap_wxListCtrl_ScrollList, METH_VARARGS },
5556 { "wxListCtrl_InsertImageStringItem", _wrap_wxListCtrl_InsertImageStringItem, METH_VARARGS },
5557 { "wxListCtrl_InsertImageItem", _wrap_wxListCtrl_InsertImageItem, METH_VARARGS },
5558 { "wxListCtrl_InsertStringItem", _wrap_wxListCtrl_InsertStringItem, METH_VARARGS },
5559 { "wxListCtrl_InsertItem", _wrap_wxListCtrl_InsertItem, METH_VARARGS },
5560 { "wxListCtrl_InsertColumn", _wrap_wxListCtrl_InsertColumn, METH_VARARGS },
5561 { "wxListCtrl_InsertColumnWith", _wrap_wxListCtrl_InsertColumnWith, METH_VARARGS },
5562 { "wxListCtrl_HitTest", _wrap_wxListCtrl_HitTest, METH_VARARGS },
5563 { "wxListCtrl_GetTopItem", _wrap_wxListCtrl_GetTopItem, METH_VARARGS },
5564 { "wxListCtrl_SetTextColour", _wrap_wxListCtrl_SetTextColour, METH_VARARGS },
5565 { "wxListCtrl_GetTextColour", _wrap_wxListCtrl_GetTextColour, METH_VARARGS },
5566 { "wxListCtrl_GetSelectedItemCount", _wrap_wxListCtrl_GetSelectedItemCount, METH_VARARGS },
5567 { "wxListCtrl_GetNextItem", _wrap_wxListCtrl_GetNextItem, METH_VARARGS },
5568 { "wxListCtrl_GetItemText", _wrap_wxListCtrl_GetItemText, METH_VARARGS },
5569 { "wxListCtrl_GetItemSpacing", _wrap_wxListCtrl_GetItemSpacing, METH_VARARGS },
5570 { "wxListCtrl_GetItemCount", _wrap_wxListCtrl_GetItemCount, METH_VARARGS },
5571 { "wxListCtrl_GetItemState", _wrap_wxListCtrl_GetItemState, METH_VARARGS },
5572 { "wxListCtrl_GetItemRect", _wrap_wxListCtrl_GetItemRect, METH_VARARGS },
5573 { "wxListCtrl_GetItemPosition", _wrap_wxListCtrl_GetItemPosition, METH_VARARGS },
5574 { "wxListCtrl_GetItem", _wrap_wxListCtrl_GetItem, METH_VARARGS },
5575 { "wxListCtrl_GetItemData", _wrap_wxListCtrl_GetItemData, METH_VARARGS },
5576 { "wxListCtrl_GetImageList", _wrap_wxListCtrl_GetImageList, METH_VARARGS },
5577 { "wxListCtrl_GetCountPerPage", _wrap_wxListCtrl_GetCountPerPage, METH_VARARGS },
5578 { "wxListCtrl_GetColumnWidth", _wrap_wxListCtrl_GetColumnWidth, METH_VARARGS },
5579 { "wxListCtrl_GetColumn", _wrap_wxListCtrl_GetColumn, METH_VARARGS },
5580 { "wxListCtrl_FindItemAtPos", _wrap_wxListCtrl_FindItemAtPos, METH_VARARGS },
5581 { "wxListCtrl_FindItemData", _wrap_wxListCtrl_FindItemData, METH_VARARGS },
5582 { "wxListCtrl_FindItem", _wrap_wxListCtrl_FindItem, METH_VARARGS },
5583 { "wxListCtrl_EnsureVisible", _wrap_wxListCtrl_EnsureVisible, METH_VARARGS },
5584 { "wxListCtrl_GetEditControl", _wrap_wxListCtrl_GetEditControl, METH_VARARGS },
5585 { "wxListCtrl_EndEditLabel", _wrap_wxListCtrl_EndEditLabel, METH_VARARGS },
5586 { "wxListCtrl_EditLabel", _wrap_wxListCtrl_EditLabel, METH_VARARGS },
5587 { "wxListCtrl_ClearAll", _wrap_wxListCtrl_ClearAll, METH_VARARGS },
5588 { "wxListCtrl_DeleteAllColumns", _wrap_wxListCtrl_DeleteAllColumns, METH_VARARGS },
5589 { "wxListCtrl_DeleteColumn", _wrap_wxListCtrl_DeleteColumn, METH_VARARGS },
5590 { "wxListCtrl_DeleteAllItems", _wrap_wxListCtrl_DeleteAllItems, METH_VARARGS },
5591 { "wxListCtrl_DeleteItem", _wrap_wxListCtrl_DeleteItem, METH_VARARGS },
5592 { "wxListCtrl_Arrange", _wrap_wxListCtrl_Arrange, METH_VARARGS },
5593 { "new_wxListCtrl", _wrap_new_wxListCtrl, METH_VARARGS },
5594 { "wxListEvent_m_item_get", _wrap_wxListEvent_m_item_get, METH_VARARGS },
5595 { "wxListEvent_m_item_set", _wrap_wxListEvent_m_item_set, METH_VARARGS },
5596 { "wxListEvent_m_pointDrag_get", _wrap_wxListEvent_m_pointDrag_get, METH_VARARGS },
5597 { "wxListEvent_m_pointDrag_set", _wrap_wxListEvent_m_pointDrag_set, METH_VARARGS },
5598 { "wxListEvent_m_cancelled_get", _wrap_wxListEvent_m_cancelled_get, METH_VARARGS },
5599 { "wxListEvent_m_cancelled_set", _wrap_wxListEvent_m_cancelled_set, METH_VARARGS },
5600 { "wxListEvent_m_col_get", _wrap_wxListEvent_m_col_get, METH_VARARGS },
5601 { "wxListEvent_m_col_set", _wrap_wxListEvent_m_col_set, METH_VARARGS },
5602 { "wxListEvent_m_oldItemIndex_get", _wrap_wxListEvent_m_oldItemIndex_get, METH_VARARGS },
5603 { "wxListEvent_m_oldItemIndex_set", _wrap_wxListEvent_m_oldItemIndex_set, METH_VARARGS },
5604 { "wxListEvent_m_itemIndex_get", _wrap_wxListEvent_m_itemIndex_get, METH_VARARGS },
5605 { "wxListEvent_m_itemIndex_set", _wrap_wxListEvent_m_itemIndex_set, METH_VARARGS },
5606 { "wxListEvent_m_code_get", _wrap_wxListEvent_m_code_get, METH_VARARGS },
5607 { "wxListEvent_m_code_set", _wrap_wxListEvent_m_code_set, METH_VARARGS },
5608 { "delete_wxListItem", _wrap_delete_wxListItem, METH_VARARGS },
5609 { "new_wxListItem", _wrap_new_wxListItem, METH_VARARGS },
5610 { "wxListItem_m_width_get", _wrap_wxListItem_m_width_get, METH_VARARGS },
5611 { "wxListItem_m_width_set", _wrap_wxListItem_m_width_set, METH_VARARGS },
5612 { "wxListItem_m_format_get", _wrap_wxListItem_m_format_get, METH_VARARGS },
5613 { "wxListItem_m_format_set", _wrap_wxListItem_m_format_set, METH_VARARGS },
5614 { "wxListItem_m_data_get", _wrap_wxListItem_m_data_get, METH_VARARGS },
5615 { "wxListItem_m_data_set", _wrap_wxListItem_m_data_set, METH_VARARGS },
5616 { "wxListItem_m_image_get", _wrap_wxListItem_m_image_get, METH_VARARGS },
5617 { "wxListItem_m_image_set", _wrap_wxListItem_m_image_set, METH_VARARGS },
5618 { "wxListItem_m_text_get", _wrap_wxListItem_m_text_get, METH_VARARGS },
5619 { "wxListItem_m_text_set", _wrap_wxListItem_m_text_set, METH_VARARGS },
5620 { "wxListItem_m_stateMask_get", _wrap_wxListItem_m_stateMask_get, METH_VARARGS },
5621 { "wxListItem_m_stateMask_set", _wrap_wxListItem_m_stateMask_set, METH_VARARGS },
5622 { "wxListItem_m_state_get", _wrap_wxListItem_m_state_get, METH_VARARGS },
5623 { "wxListItem_m_state_set", _wrap_wxListItem_m_state_set, METH_VARARGS },
5624 { "wxListItem_m_col_get", _wrap_wxListItem_m_col_get, METH_VARARGS },
5625 { "wxListItem_m_col_set", _wrap_wxListItem_m_col_set, METH_VARARGS },
5626 { "wxListItem_m_itemId_get", _wrap_wxListItem_m_itemId_get, METH_VARARGS },
5627 { "wxListItem_m_itemId_set", _wrap_wxListItem_m_itemId_set, METH_VARARGS },
5628 { "wxListItem_m_mask_get", _wrap_wxListItem_m_mask_get, METH_VARARGS },
5629 { "wxListItem_m_mask_set", _wrap_wxListItem_m_mask_set, METH_VARARGS },
5630 { NULL, NULL }
5631 };
5632 #ifdef __cplusplus
5633 }
5634 #endif
5635 /*
5636 * This table is used by the pointer type-checker
5637 */
5638 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
5639 { "_wxAcceleratorTable","_class_wxAcceleratorTable",0},
5640 { "_wxEvent","_class_wxTreeEvent",SwigwxTreeEventTowxEvent},
5641 { "_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent},
5642 { "_wxEvent","_class_wxListEvent",SwigwxListEventTowxEvent},
5643 { "_wxEvent","_wxListEvent",SwigwxListEventTowxEvent},
5644 { "_wxEvent","_class_wxEvent",0},
5645 { "_class_wxActivateEvent","_wxActivateEvent",0},
5646 { "_signed_long","_long",0},
5647 { "_wxMenuEvent","_class_wxMenuEvent",0},
5648 { "_wxPrintQuality","_int",0},
5649 { "_wxPrintQuality","_signed_int",0},
5650 { "_wxPrintQuality","_unsigned_int",0},
5651 { "_wxPrintQuality","_wxWindowID",0},
5652 { "_wxPrintQuality","_uint",0},
5653 { "_wxPrintQuality","_EBool",0},
5654 { "_wxPrintQuality","_size_t",0},
5655 { "_class_wxRegionIterator","_wxRegionIterator",0},
5656 { "_class_wxMenuBar","_wxMenuBar",0},
5657 { "_class_wxPyTreeItemData","_wxPyTreeItemData",0},
5658 { "_class_wxEvtHandler","_class_wxTreeCtrl",SwigwxTreeCtrlTowxEvtHandler},
5659 { "_class_wxEvtHandler","_wxTreeCtrl",SwigwxTreeCtrlTowxEvtHandler},
5660 { "_class_wxEvtHandler","_class_wxListCtrl",SwigwxListCtrlTowxEvtHandler},
5661 { "_class_wxEvtHandler","_wxListCtrl",SwigwxListCtrlTowxEvtHandler},
5662 { "_class_wxEvtHandler","_wxEvtHandler",0},
5663 { "_wxPaintEvent","_class_wxPaintEvent",0},
5664 { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0},
5665 { "_wxCursor","_class_wxCursor",0},
5666 { "_wxNotifyEvent","_class_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent},
5667 { "_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent},
5668 { "_wxNotifyEvent","_class_wxNotifyEvent",0},
5669 { "_class_wxTreeCtrl","_wxTreeCtrl",0},
5670 { "_wxMask","_class_wxMask",0},
5671 { "_wxPen","_class_wxPen",0},
5672 { "_wxUpdateUIEvent","_class_wxUpdateUIEvent",0},
5673 { "_byte","_unsigned_char",0},
5674 { "_wxStaticBox","_class_wxStaticBox",0},
5675 { "_wxChoice","_class_wxChoice",0},
5676 { "_wxSlider","_class_wxSlider",0},
5677 { "_long","_wxDash",0},
5678 { "_long","_unsigned_long",0},
5679 { "_long","_signed_long",0},
5680 { "_wxImageList","_class_wxImageList",0},
5681 { "_wxDropFilesEvent","_class_wxDropFilesEvent",0},
5682 { "_wxBitmapButton","_class_wxBitmapButton",0},
5683 { "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
5684 { "_class_wxGauge","_wxGauge",0},
5685 { "_wxDC","_class_wxDC",0},
5686 { "_wxListEvent","_class_wxListEvent",0},
5687 { "_wxSpinEvent","_class_wxSpinEvent",0},
5688 { "_size_t","_wxPrintQuality",0},
5689 { "_size_t","_unsigned_int",0},
5690 { "_size_t","_int",0},
5691 { "_size_t","_wxWindowID",0},
5692 { "_size_t","_uint",0},
5693 { "_class_wxRealPoint","_wxRealPoint",0},
5694 { "_wxPrinterDC","_class_wxPrinterDC",0},
5695 { "_class_wxMenuItem","_wxMenuItem",0},
5696 { "_class_wxPaintEvent","_wxPaintEvent",0},
5697 { "_wxSysColourChangedEvent","_class_wxSysColourChangedEvent",0},
5698 { "_wxPanel","_class_wxPanel",0},
5699 { "_wxInitDialogEvent","_class_wxInitDialogEvent",0},
5700 { "_wxCheckBox","_class_wxCheckBox",0},
5701 { "_wxPyEvent","_class_wxPyEvent",0},
5702 { "_wxTextCtrl","_class_wxTextCtrl",0},
5703 { "_class_wxMask","_wxMask",0},
5704 { "_class_wxKeyEvent","_wxKeyEvent",0},
5705 { "_wxColour","_class_wxColour",0},
5706 { "_class_wxDialog","_wxDialog",0},
5707 { "_wxIdleEvent","_class_wxIdleEvent",0},
5708 { "_class_wxUpdateUIEvent","_wxUpdateUIEvent",0},
5709 { "_wxStaticLine","_class_wxStaticLine",0},
5710 { "_wxBrush","_class_wxBrush",0},
5711 { "_wxShowEvent","_class_wxShowEvent",0},
5712 { "_uint","_wxPrintQuality",0},
5713 { "_uint","_size_t",0},
5714 { "_uint","_unsigned_int",0},
5715 { "_uint","_int",0},
5716 { "_uint","_wxWindowID",0},
5717 { "_class_wxEvent","_class_wxTreeEvent",SwigwxTreeEventTowxEvent},
5718 { "_class_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent},
5719 { "_class_wxEvent","_class_wxListEvent",SwigwxListEventTowxEvent},
5720 { "_class_wxEvent","_wxListEvent",SwigwxListEventTowxEvent},
5721 { "_class_wxEvent","_wxEvent",0},
5722 { "_wxCheckListBox","_class_wxCheckListBox",0},
5723 { "_wxRect","_class_wxRect",0},
5724 { "_wxCommandEvent","_class_wxTreeEvent",SwigwxTreeEventTowxCommandEvent},
5725 { "_wxCommandEvent","_wxTreeEvent",SwigwxTreeEventTowxCommandEvent},
5726 { "_wxCommandEvent","_class_wxListEvent",SwigwxListEventTowxCommandEvent},
5727 { "_wxCommandEvent","_wxListEvent",SwigwxListEventTowxCommandEvent},
5728 { "_wxCommandEvent","_class_wxCommandEvent",0},
5729 { "_wxSizeEvent","_class_wxSizeEvent",0},
5730 { "_wxPoint","_class_wxPoint",0},
5731 { "_class_wxButton","_wxButton",0},
5732 { "_wxRadioBox","_class_wxRadioBox",0},
5733 { "_wxBitmap","_class_wxBitmap",0},
5734 { "_wxPyTimer","_class_wxPyTimer",0},
5735 { "_wxWindowDC","_class_wxWindowDC",0},
5736 { "_wxScrollBar","_class_wxScrollBar",0},
5737 { "_wxSpinButton","_class_wxSpinButton",0},
5738 { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0},
5739 { "_class_wxNotifyEvent","_class_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent},
5740 { "_class_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent},
5741 { "_class_wxNotifyEvent","_wxNotifyEvent",0},
5742 { "_class_wxPyEvent","_wxPyEvent",0},
5743 { "_class_wxIconizeEvent","_wxIconizeEvent",0},
5744 { "_class_wxStaticBitmap","_wxStaticBitmap",0},
5745 { "_wxListItem","_class_wxListItem",0},
5746 { "_class_wxStaticLine","_wxStaticLine",0},
5747 { "_wxScrollEvent","_class_wxScrollEvent",0},
5748 { "_EBool","_wxPrintQuality",0},
5749 { "_EBool","_signed_int",0},
5750 { "_EBool","_int",0},
5751 { "_EBool","_wxWindowID",0},
5752 { "_class_wxRegion","_wxRegion",0},
5753 { "_class_wxDropFilesEvent","_wxDropFilesEvent",0},
5754 { "_wxStaticText","_class_wxStaticText",0},
5755 { "_wxFont","_class_wxFont",0},
5756 { "_wxCloseEvent","_class_wxCloseEvent",0},
5757 { "_unsigned_long","_wxDash",0},
5758 { "_unsigned_long","_long",0},
5759 { "_class_wxRect","_wxRect",0},
5760 { "_class_wxDC","_wxDC",0},
5761 { "_class_wxTreeEvent","_wxTreeEvent",0},
5762 { "_class_wxPyTimer","_wxPyTimer",0},
5763 { "_wxFocusEvent","_class_wxFocusEvent",0},
5764 { "_wxMaximizeEvent","_class_wxMaximizeEvent",0},
5765 { "_class_wxSpinButton","_wxSpinButton",0},
5766 { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0},
5767 { "_class_wxPanel","_wxPanel",0},
5768 { "_class_wxCheckBox","_wxCheckBox",0},
5769 { "_wxComboBox","_class_wxComboBox",0},
5770 { "_wxRadioButton","_class_wxRadioButton",0},
5771 { "_signed_int","_wxPrintQuality",0},
5772 { "_signed_int","_EBool",0},
5773 { "_signed_int","_wxWindowID",0},
5774 { "_signed_int","_int",0},
5775 { "_class_wxTextCtrl","_wxTextCtrl",0},
5776 { "_wxLayoutConstraints","_class_wxLayoutConstraints",0},
5777 { "_wxMetaFileDC","_class_wxMetaFileDC",0},
5778 { "_wxMenu","_class_wxMenu",0},
5779 { "_class_wxMoveEvent","_wxMoveEvent",0},
5780 { "_wxListBox","_class_wxListBox",0},
5781 { "_wxScreenDC","_class_wxScreenDC",0},
5782 { "_WXTYPE","_short",0},
5783 { "_WXTYPE","_signed_short",0},
5784 { "_WXTYPE","_unsigned_short",0},
5785 { "_class_wxBrush","_wxBrush",0},
5786 { "_unsigned_short","_WXTYPE",0},
5787 { "_unsigned_short","_short",0},
5788 { "_class_wxWindow","_class_wxTreeCtrl",SwigwxTreeCtrlTowxWindow},
5789 { "_class_wxWindow","_wxTreeCtrl",SwigwxTreeCtrlTowxWindow},
5790 { "_class_wxWindow","_class_wxListCtrl",SwigwxListCtrlTowxWindow},
5791 { "_class_wxWindow","_wxListCtrl",SwigwxListCtrlTowxWindow},
5792 { "_class_wxWindow","_wxWindow",0},
5793 { "_class_wxStaticText","_wxStaticText",0},
5794 { "_class_wxFont","_wxFont",0},
5795 { "_class_wxCloseEvent","_wxCloseEvent",0},
5796 { "_class_wxMenuEvent","_wxMenuEvent",0},
5797 { "_wxClientDC","_class_wxClientDC",0},
5798 { "_wxMouseEvent","_class_wxMouseEvent",0},
5799 { "_wxListCtrl","_class_wxListCtrl",0},
5800 { "_class_wxPoint","_wxPoint",0},
5801 { "_wxRealPoint","_class_wxRealPoint",0},
5802 { "_class_wxRadioBox","_wxRadioBox",0},
5803 { "_signed_short","_WXTYPE",0},
5804 { "_signed_short","_short",0},
5805 { "_wxMemoryDC","_class_wxMemoryDC",0},
5806 { "_wxPaintDC","_class_wxPaintDC",0},
5807 { "_class_wxWindowDC","_wxWindowDC",0},
5808 { "_class_wxFocusEvent","_wxFocusEvent",0},
5809 { "_class_wxMaximizeEvent","_wxMaximizeEvent",0},
5810 { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0},
5811 { "_class_wxCursor","_wxCursor",0},
5812 { "_wxScrolledWindow","_class_wxScrolledWindow",0},
5813 { "_wxTreeItemId","_class_wxTreeItemId",0},
5814 { "_unsigned_char","_byte",0},
5815 { "_class_wxMetaFileDC","_wxMetaFileDC",0},
5816 { "_class_wxMenu","_wxMenu",0},
5817 { "_wxControl","_class_wxTreeCtrl",SwigwxTreeCtrlTowxControl},
5818 { "_wxControl","_wxTreeCtrl",SwigwxTreeCtrlTowxControl},
5819 { "_wxControl","_class_wxListCtrl",SwigwxListCtrlTowxControl},
5820 { "_wxControl","_wxListCtrl",SwigwxListCtrlTowxControl},
5821 { "_wxControl","_class_wxControl",0},
5822 { "_class_wxListBox","_wxListBox",0},
5823 { "_unsigned_int","_wxPrintQuality",0},
5824 { "_unsigned_int","_size_t",0},
5825 { "_unsigned_int","_uint",0},
5826 { "_unsigned_int","_wxWindowID",0},
5827 { "_unsigned_int","_int",0},
5828 { "_wxIcon","_class_wxIcon",0},
5829 { "_wxDialog","_class_wxDialog",0},
5830 { "_class_wxListItem","_wxListItem",0},
5831 { "_class_wxPen","_wxPen",0},
5832 { "_short","_WXTYPE",0},
5833 { "_short","_unsigned_short",0},
5834 { "_short","_signed_short",0},
5835 { "_class_wxStaticBox","_wxStaticBox",0},
5836 { "_class_wxScrollEvent","_wxScrollEvent",0},
5837 { "_wxJoystickEvent","_class_wxJoystickEvent",0},
5838 { "_class_wxChoice","_wxChoice",0},
5839 { "_class_wxSlider","_wxSlider",0},
5840 { "_class_wxImageList","_wxImageList",0},
5841 { "_class_wxBitmapButton","_wxBitmapButton",0},
5842 { "_wxWindowID","_wxPrintQuality",0},
5843 { "_wxWindowID","_size_t",0},
5844 { "_wxWindowID","_EBool",0},
5845 { "_wxWindowID","_uint",0},
5846 { "_wxWindowID","_int",0},
5847 { "_wxWindowID","_signed_int",0},
5848 { "_wxWindowID","_unsigned_int",0},
5849 { "_int","_wxPrintQuality",0},
5850 { "_int","_size_t",0},
5851 { "_int","_EBool",0},
5852 { "_int","_uint",0},
5853 { "_int","_wxWindowID",0},
5854 { "_int","_unsigned_int",0},
5855 { "_int","_signed_int",0},
5856 { "_class_wxMouseEvent","_wxMouseEvent",0},
5857 { "_class_wxListEvent","_wxListEvent",0},
5858 { "_class_wxSpinEvent","_wxSpinEvent",0},
5859 { "_wxButton","_class_wxButton",0},
5860 { "_wxSize","_class_wxSize",0},
5861 { "_wxRegionIterator","_class_wxRegionIterator",0},
5862 { "_class_wxPrinterDC","_wxPrinterDC",0},
5863 { "_wxPyTreeItemData","_class_wxPyTreeItemData",0},
5864 { "_class_wxPaintDC","_wxPaintDC",0},
5865 { "_class_wxSysColourChangedEvent","_wxSysColourChangedEvent",0},
5866 { "_class_wxInitDialogEvent","_wxInitDialogEvent",0},
5867 { "_class_wxComboBox","_wxComboBox",0},
5868 { "_class_wxRadioButton","_wxRadioButton",0},
5869 { "_class_wxTreeItemId","_wxTreeItemId",0},
5870 { "_wxTreeCtrl","_class_wxTreeCtrl",0},
5871 { "_class_wxLayoutConstraints","_wxLayoutConstraints",0},
5872 { "_wxIconizeEvent","_class_wxIconizeEvent",0},
5873 { "_class_wxControl","_class_wxTreeCtrl",SwigwxTreeCtrlTowxControl},
5874 { "_class_wxControl","_wxTreeCtrl",SwigwxTreeCtrlTowxControl},
5875 { "_class_wxControl","_class_wxListCtrl",SwigwxListCtrlTowxControl},
5876 { "_class_wxControl","_wxListCtrl",SwigwxListCtrlTowxControl},
5877 { "_class_wxControl","_wxControl",0},
5878 { "_wxStaticBitmap","_class_wxStaticBitmap",0},
5879 { "_class_wxIcon","_wxIcon",0},
5880 { "_class_wxColour","_wxColour",0},
5881 { "_class_wxScreenDC","_wxScreenDC",0},
5882 { "_wxPalette","_class_wxPalette",0},
5883 { "_class_wxIdleEvent","_wxIdleEvent",0},
5884 { "_wxEraseEvent","_class_wxEraseEvent",0},
5885 { "_class_wxJoystickEvent","_wxJoystickEvent",0},
5886 { "_wxRegion","_class_wxRegion",0},
5887 { "_class_wxShowEvent","_wxShowEvent",0},
5888 { "_wxActivateEvent","_class_wxActivateEvent",0},
5889 { "_wxGauge","_class_wxGauge",0},
5890 { "_class_wxCheckListBox","_wxCheckListBox",0},
5891 { "_class_wxCommandEvent","_class_wxTreeEvent",SwigwxTreeEventTowxCommandEvent},
5892 { "_class_wxCommandEvent","_wxTreeEvent",SwigwxTreeEventTowxCommandEvent},
5893 { "_class_wxCommandEvent","_class_wxListEvent",SwigwxListEventTowxCommandEvent},
5894 { "_class_wxCommandEvent","_wxListEvent",SwigwxListEventTowxCommandEvent},
5895 { "_class_wxCommandEvent","_wxCommandEvent",0},
5896 { "_class_wxClientDC","_wxClientDC",0},
5897 { "_class_wxSizeEvent","_wxSizeEvent",0},
5898 { "_class_wxListCtrl","_wxListCtrl",0},
5899 { "_class_wxSize","_wxSize",0},
5900 { "_class_wxBitmap","_wxBitmap",0},
5901 { "_class_wxMemoryDC","_wxMemoryDC",0},
5902 { "_wxMenuBar","_class_wxMenuBar",0},
5903 { "_wxTreeEvent","_class_wxTreeEvent",0},
5904 { "_wxEvtHandler","_class_wxTreeCtrl",SwigwxTreeCtrlTowxEvtHandler},
5905 { "_wxEvtHandler","_wxTreeCtrl",SwigwxTreeCtrlTowxEvtHandler},
5906 { "_wxEvtHandler","_class_wxListCtrl",SwigwxListCtrlTowxEvtHandler},
5907 { "_wxEvtHandler","_wxListCtrl",SwigwxListCtrlTowxEvtHandler},
5908 { "_wxEvtHandler","_class_wxEvtHandler",0},
5909 { "_wxMenuItem","_class_wxMenuItem",0},
5910 { "_class_wxScrollBar","_wxScrollBar",0},
5911 { "_wxDash","_unsigned_long",0},
5912 { "_wxDash","_long",0},
5913 { "_class_wxScrolledWindow","_wxScrolledWindow",0},
5914 { "_wxKeyEvent","_class_wxKeyEvent",0},
5915 { "_wxMoveEvent","_class_wxMoveEvent",0},
5916 { "_class_wxPalette","_wxPalette",0},
5917 { "_class_wxEraseEvent","_wxEraseEvent",0},
5918 { "_wxWindow","_class_wxTreeCtrl",SwigwxTreeCtrlTowxWindow},
5919 { "_wxWindow","_wxTreeCtrl",SwigwxTreeCtrlTowxWindow},
5920 { "_wxWindow","_class_wxListCtrl",SwigwxListCtrlTowxWindow},
5921 { "_wxWindow","_wxListCtrl",SwigwxListCtrlTowxWindow},
5922 { "_wxWindow","_class_wxWindow",0},
5923 {0,0,0}};
5924
5925 static PyObject *SWIG_globals;
5926 #ifdef __cplusplus
5927 extern "C"
5928 #endif
5929 SWIGEXPORT(void) initcontrols2c() {
5930 PyObject *m, *d;
5931 SWIG_globals = SWIG_newvarlink();
5932 m = Py_InitModule("controls2c", controls2cMethods);
5933 d = PyModule_GetDict(m);
5934 PyDict_SetItemString(d,"wxLIST_MASK_TEXT", PyInt_FromLong((long) wxLIST_MASK_TEXT));
5935 PyDict_SetItemString(d,"wxLIST_MASK_IMAGE", PyInt_FromLong((long) wxLIST_MASK_IMAGE));
5936 PyDict_SetItemString(d,"wxLIST_MASK_DATA", PyInt_FromLong((long) wxLIST_MASK_DATA));
5937 PyDict_SetItemString(d,"wxLIST_MASK_WIDTH", PyInt_FromLong((long) wxLIST_MASK_WIDTH));
5938 PyDict_SetItemString(d,"wxLIST_MASK_FORMAT", PyInt_FromLong((long) wxLIST_MASK_FORMAT));
5939 PyDict_SetItemString(d,"wxLIST_MASK_STATE", PyInt_FromLong((long) wxLIST_MASK_STATE));
5940 PyDict_SetItemString(d,"wxLIST_STATE_DONTCARE", PyInt_FromLong((long) wxLIST_STATE_DONTCARE));
5941 PyDict_SetItemString(d,"wxLIST_STATE_DROPHILITED", PyInt_FromLong((long) wxLIST_STATE_DROPHILITED));
5942 PyDict_SetItemString(d,"wxLIST_STATE_FOCUSED", PyInt_FromLong((long) wxLIST_STATE_FOCUSED));
5943 PyDict_SetItemString(d,"wxLIST_STATE_SELECTED", PyInt_FromLong((long) wxLIST_STATE_SELECTED));
5944 PyDict_SetItemString(d,"wxLIST_STATE_CUT", PyInt_FromLong((long) wxLIST_STATE_CUT));
5945 PyDict_SetItemString(d,"wxLIST_HITTEST_ABOVE", PyInt_FromLong((long) wxLIST_HITTEST_ABOVE));
5946 PyDict_SetItemString(d,"wxLIST_HITTEST_BELOW", PyInt_FromLong((long) wxLIST_HITTEST_BELOW));
5947 PyDict_SetItemString(d,"wxLIST_HITTEST_NOWHERE", PyInt_FromLong((long) wxLIST_HITTEST_NOWHERE));
5948 PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMICON));
5949 PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMLABEL));
5950 PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMRIGHT));
5951 PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMSTATEICON));
5952 PyDict_SetItemString(d,"wxLIST_HITTEST_TOLEFT", PyInt_FromLong((long) wxLIST_HITTEST_TOLEFT));
5953 PyDict_SetItemString(d,"wxLIST_HITTEST_TORIGHT", PyInt_FromLong((long) wxLIST_HITTEST_TORIGHT));
5954 PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEM", PyInt_FromLong((long) wxLIST_HITTEST_ONITEM));
5955 PyDict_SetItemString(d,"wxLIST_NEXT_ABOVE", PyInt_FromLong((long) wxLIST_NEXT_ABOVE));
5956 PyDict_SetItemString(d,"wxLIST_NEXT_ALL", PyInt_FromLong((long) wxLIST_NEXT_ALL));
5957 PyDict_SetItemString(d,"wxLIST_NEXT_BELOW", PyInt_FromLong((long) wxLIST_NEXT_BELOW));
5958 PyDict_SetItemString(d,"wxLIST_NEXT_LEFT", PyInt_FromLong((long) wxLIST_NEXT_LEFT));
5959 PyDict_SetItemString(d,"wxLIST_NEXT_RIGHT", PyInt_FromLong((long) wxLIST_NEXT_RIGHT));
5960 PyDict_SetItemString(d,"wxLIST_ALIGN_DEFAULT", PyInt_FromLong((long) wxLIST_ALIGN_DEFAULT));
5961 PyDict_SetItemString(d,"wxLIST_ALIGN_LEFT", PyInt_FromLong((long) wxLIST_ALIGN_LEFT));
5962 PyDict_SetItemString(d,"wxLIST_ALIGN_TOP", PyInt_FromLong((long) wxLIST_ALIGN_TOP));
5963 PyDict_SetItemString(d,"wxLIST_ALIGN_SNAP_TO_GRID", PyInt_FromLong((long) wxLIST_ALIGN_SNAP_TO_GRID));
5964 PyDict_SetItemString(d,"wxLIST_FORMAT_LEFT", PyInt_FromLong((long) wxLIST_FORMAT_LEFT));
5965 PyDict_SetItemString(d,"wxLIST_FORMAT_RIGHT", PyInt_FromLong((long) wxLIST_FORMAT_RIGHT));
5966 PyDict_SetItemString(d,"wxLIST_FORMAT_CENTRE", PyInt_FromLong((long) wxLIST_FORMAT_CENTRE));
5967 PyDict_SetItemString(d,"wxLIST_FORMAT_CENTER", PyInt_FromLong((long) wxLIST_FORMAT_CENTER));
5968 PyDict_SetItemString(d,"wxLIST_AUTOSIZE", PyInt_FromLong((long) wxLIST_AUTOSIZE));
5969 PyDict_SetItemString(d,"wxLIST_AUTOSIZE_USEHEADER", PyInt_FromLong((long) wxLIST_AUTOSIZE_USEHEADER));
5970 PyDict_SetItemString(d,"wxLIST_RECT_BOUNDS", PyInt_FromLong((long) wxLIST_RECT_BOUNDS));
5971 PyDict_SetItemString(d,"wxLIST_RECT_ICON", PyInt_FromLong((long) wxLIST_RECT_ICON));
5972 PyDict_SetItemString(d,"wxLIST_RECT_LABEL", PyInt_FromLong((long) wxLIST_RECT_LABEL));
5973 PyDict_SetItemString(d,"wxLIST_FIND_UP", PyInt_FromLong((long) wxLIST_FIND_UP));
5974 PyDict_SetItemString(d,"wxLIST_FIND_DOWN", PyInt_FromLong((long) wxLIST_FIND_DOWN));
5975 PyDict_SetItemString(d,"wxLIST_FIND_LEFT", PyInt_FromLong((long) wxLIST_FIND_LEFT));
5976 PyDict_SetItemString(d,"wxLIST_FIND_RIGHT", PyInt_FromLong((long) wxLIST_FIND_RIGHT));
5977 {
5978 int i;
5979 for (i = 0; _swig_mapping[i].n1; i++)
5980 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
5981 }
5982 }