]>
Commit | Line | Data |
---|---|---|
8ab979d7 | 1 | /* |
c368d904 | 2 | * FILE : src/gtk/controls2.cpp |
8ab979d7 RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
2cd2fac8 | 6 | * Version 1.1 (Build 883) |
8ab979d7 RD |
7 | * |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
1d99702e | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
8ab979d7 RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
1c09ae54 | 30 | # define SWIGEXPORT(a) a _export |
8ab979d7 | 31 | # else |
1c09ae54 | 32 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
1c09ae54 | 36 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
37 | #endif |
38 | ||
1c09ae54 RD |
39 | #include "Python.h" |
40 | ||
8ab979d7 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
1c09ae54 | 44 | |
8ab979d7 RD |
45 | extern void SWIG_MakePtr(char *, void *, char *); |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
1d99702e | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
8ab979d7 RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
8ab979d7 RD |
54 | #define SWIG_init initcontrols2c |
55 | ||
56 | #define SWIG_name "controls2c" | |
57 | ||
58 | #include "helpers.h" | |
2f90df85 RD |
59 | #ifdef __WXMSW__ |
60 | #include <windows.h> | |
61 | #endif | |
8ab979d7 RD |
62 | #include <wx/listctrl.h> |
63 | #include <wx/treectrl.h> | |
9df61a29 | 64 | #include <wx/imaglist.h> |
8ab979d7 | 65 | |
8ab979d7 RD |
66 | |
67 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
68 | PyObject* o2; | |
69 | PyObject* o3; | |
70 | ||
1c09ae54 | 71 | if (!target) { |
8ab979d7 | 72 | target = o; |
1c09ae54 | 73 | } else if (target == Py_None) { |
8ab979d7 RD |
74 | Py_DECREF(Py_None); |
75 | target = o; | |
1c09ae54 | 76 | } else { |
8ab979d7 RD |
77 | if (!PyTuple_Check(target)) { |
78 | o2 = target; | |
79 | target = PyTuple_New(1); | |
80 | PyTuple_SetItem(target, 0, o2); | |
81 | } | |
1c09ae54 RD |
82 | o3 = PyTuple_New(1); |
83 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
84 | |
85 | o2 = target; | |
1c09ae54 RD |
86 | target = PySequence_Concat(o2, o3); |
87 | Py_DECREF(o2); | |
8ab979d7 RD |
88 | Py_DECREF(o3); |
89 | } | |
90 | return target; | |
91 | } | |
92 | ||
7a446686 RD |
93 | #if PYTHON_API_VERSION >= 1009 |
94 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
95 | #else | |
96 | static char* wxStringErrorMsg = "string type is required for parameter"; | |
97 | #endif | |
8ab979d7 | 98 | |
cd096152 RD |
99 | class wxPyListCtrl : public wxListCtrl { |
100 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl); | |
101 | public: | |
102 | wxPyListCtrl(wxWindow* parent, wxWindowID id, | |
103 | const wxPoint& pos, | |
104 | const wxSize& size, | |
105 | long style, | |
106 | const wxValidator& validator, | |
107 | char* name) : | |
108 | wxListCtrl(parent, id, pos, size, style, validator, name) {} | |
109 | ||
110 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); | |
111 | DEC_PYCALLBACK_INT_LONG(OnGetItemImage); | |
112 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); | |
113 | ||
114 | PYPRIVATE; | |
115 | }; | |
116 | ||
117 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
118 | ||
119 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
120 | IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage); | |
121 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); | |
122 | ||
f6bcfd97 | 123 | int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { |
dcd38683 RD |
124 | int retval = 0; |
125 | PyObject* func = (PyObject*)funcPtr; | |
126 | bool doSave = wxPyRestoreThread(); | |
127 | ||
128 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
129 | PyObject* result = PyEval_CallObject(func, args); | |
130 | Py_DECREF(args); | |
131 | if (result) { | |
132 | retval = PyInt_AsLong(result); | |
133 | Py_DECREF(result); | |
134 | } | |
135 | ||
136 | wxPySaveThread(doSave); | |
137 | return retval; | |
138 | } | |
139 | ||
140 | ||
cf694132 RD |
141 | class wxPyTreeItemData : public wxTreeItemData { |
142 | public: | |
143 | wxPyTreeItemData(PyObject* obj = NULL) { | |
c368d904 | 144 | if (obj == NULL) |
cf694132 | 145 | obj = Py_None; |
c368d904 RD |
146 | Py_INCREF(obj); |
147 | m_obj = obj; | |
cf694132 RD |
148 | } |
149 | ||
150 | ~wxPyTreeItemData() { | |
1afc06c2 | 151 | bool doSave = wxPyRestoreThread(); |
c368d904 | 152 | Py_DECREF(m_obj); |
1afc06c2 | 153 | wxPySaveThread(doSave); |
cf694132 RD |
154 | } |
155 | ||
156 | PyObject* GetData() { | |
157 | Py_INCREF(m_obj); | |
158 | return m_obj; | |
159 | } | |
160 | ||
161 | void SetData(PyObject* obj) { | |
c368d904 | 162 | bool doSave = wxPyRestoreThread(); |
cf694132 | 163 | Py_DECREF(m_obj); |
c368d904 | 164 | wxPySaveThread(doSave); |
cf694132 RD |
165 | m_obj = obj; |
166 | Py_INCREF(obj); | |
167 | } | |
168 | ||
169 | PyObject* m_obj; | |
170 | }; | |
f6bcfd97 BP |
171 | |
172 | class wxPyTreeCtrl : public wxTreeCtrl { | |
9df61a29 | 173 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); |
f6bcfd97 BP |
174 | public: |
175 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
176 | const wxPoint& pos, | |
177 | const wxSize& size, | |
178 | long style, | |
179 | const wxValidator& validator, | |
180 | char* name) : | |
181 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
182 | ||
f6bcfd97 BP |
183 | int OnCompareItems(const wxTreeItemId& item1, |
184 | const wxTreeItemId& item2) { | |
185 | int rval = 0; | |
186 | bool doSave = wxPyRestoreThread(); | |
187 | if (m_myInst.findCallback("OnCompareItems")) | |
188 | rval = m_myInst.callCallback(Py_BuildValue( | |
189 | "(OO)", | |
190 | wxPyConstructObject((void*)&item1, "wxTreeItemId"), | |
191 | wxPyConstructObject((void*)&item2, "wxTreeItemId"))); | |
192 | else | |
193 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
194 | wxPySaveThread(doSave); | |
195 | return rval; | |
196 | } | |
197 | PYPRIVATE; | |
198 | }; | |
199 | ||
9df61a29 RD |
200 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); |
201 | ||
1d99702e RD |
202 | #ifdef __cplusplus |
203 | extern "C" { | |
204 | #endif | |
cd096152 | 205 | #define new_wxListItemAttr(_swigarg0,_swigarg1,_swigarg2) (new wxListItemAttr(_swigarg0,_swigarg1,_swigarg2)) |
f6bcfd97 BP |
206 | static PyObject *_wrap_new_wxListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
207 | PyObject * _resultobj; | |
208 | wxListItemAttr * _result; | |
cd096152 RD |
209 | wxColour * _arg0 = (wxColour *) &wxNullColour; |
210 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
211 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
212 | wxColour temp; | |
213 | PyObject * _obj0 = 0; | |
214 | wxColour temp0; | |
215 | PyObject * _obj1 = 0; | |
216 | PyObject * _argo2 = 0; | |
217 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
f6bcfd97 BP |
218 | char _ptemp[128]; |
219 | ||
220 | self = self; | |
cd096152 RD |
221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxListItemAttr",_kwnames,&_obj0,&_obj1,&_argo2)) |
222 | return NULL; | |
223 | if (_obj0) | |
224 | { | |
225 | _arg0 = &temp; | |
226 | if (! wxColour_helper(_obj0, &_arg0)) | |
227 | return NULL; | |
228 | } | |
229 | if (_obj1) | |
230 | { | |
231 | _arg1 = &temp0; | |
232 | if (! wxColour_helper(_obj1, &_arg1)) | |
233 | return NULL; | |
234 | } | |
235 | if (_argo2) { | |
236 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
237 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
238 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxListItemAttr. Expected _wxFont_p."); | |
f6bcfd97 | 239 | return NULL; |
cd096152 RD |
240 | } |
241 | } | |
f6bcfd97 BP |
242 | { |
243 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 244 | _result = (wxListItemAttr *)new_wxListItemAttr(*_arg0,*_arg1,*_arg2); |
f6bcfd97 BP |
245 | |
246 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 247 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
248 | } if (_result) { |
249 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
250 | _resultobj = Py_BuildValue("s",_ptemp); | |
251 | } else { | |
252 | Py_INCREF(Py_None); | |
253 | _resultobj = Py_None; | |
254 | } | |
255 | return _resultobj; | |
256 | } | |
257 | ||
258 | #define wxListItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
259 | static PyObject *_wrap_wxListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
260 | PyObject * _resultobj; | |
261 | wxListItemAttr * _arg0; | |
262 | wxColour * _arg1; | |
263 | PyObject * _argo0 = 0; | |
264 | wxColour temp; | |
265 | PyObject * _obj1 = 0; | |
266 | char *_kwnames[] = { "self","colText", NULL }; | |
267 | ||
268 | self = self; | |
269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
270 | return NULL; | |
271 | if (_argo0) { | |
272 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
273 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
274 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetTextColour. Expected _wxListItemAttr_p."); | |
275 | return NULL; | |
276 | } | |
277 | } | |
278 | { | |
279 | _arg1 = &temp; | |
280 | if (! wxColour_helper(_obj1, &_arg1)) | |
281 | return NULL; | |
282 | } | |
283 | { | |
284 | wxPy_BEGIN_ALLOW_THREADS; | |
285 | wxListItemAttr_SetTextColour(_arg0,*_arg1); | |
286 | ||
287 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 288 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
289 | } Py_INCREF(Py_None); |
290 | _resultobj = Py_None; | |
291 | return _resultobj; | |
292 | } | |
293 | ||
294 | #define wxListItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
295 | static PyObject *_wrap_wxListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
296 | PyObject * _resultobj; | |
297 | wxListItemAttr * _arg0; | |
298 | wxColour * _arg1; | |
299 | PyObject * _argo0 = 0; | |
300 | wxColour temp; | |
301 | PyObject * _obj1 = 0; | |
302 | char *_kwnames[] = { "self","colBack", NULL }; | |
303 | ||
304 | self = self; | |
305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
306 | return NULL; | |
307 | if (_argo0) { | |
308 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
309 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetBackgroundColour. Expected _wxListItemAttr_p."); | |
311 | return NULL; | |
312 | } | |
313 | } | |
314 | { | |
315 | _arg1 = &temp; | |
316 | if (! wxColour_helper(_obj1, &_arg1)) | |
317 | return NULL; | |
318 | } | |
319 | { | |
320 | wxPy_BEGIN_ALLOW_THREADS; | |
321 | wxListItemAttr_SetBackgroundColour(_arg0,*_arg1); | |
322 | ||
323 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 324 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
325 | } Py_INCREF(Py_None); |
326 | _resultobj = Py_None; | |
327 | return _resultobj; | |
328 | } | |
329 | ||
330 | #define wxListItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
331 | static PyObject *_wrap_wxListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
332 | PyObject * _resultobj; | |
333 | wxListItemAttr * _arg0; | |
334 | wxFont * _arg1; | |
335 | PyObject * _argo0 = 0; | |
336 | PyObject * _argo1 = 0; | |
337 | char *_kwnames[] = { "self","font", NULL }; | |
338 | ||
339 | self = self; | |
340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetFont",_kwnames,&_argo0,&_argo1)) | |
341 | return NULL; | |
342 | if (_argo0) { | |
343 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
344 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
345 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetFont. Expected _wxListItemAttr_p."); | |
346 | return NULL; | |
347 | } | |
348 | } | |
349 | if (_argo1) { | |
350 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
351 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
352 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItemAttr_SetFont. Expected _wxFont_p."); | |
353 | return NULL; | |
354 | } | |
355 | } | |
356 | { | |
357 | wxPy_BEGIN_ALLOW_THREADS; | |
358 | wxListItemAttr_SetFont(_arg0,*_arg1); | |
359 | ||
360 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 361 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
362 | } Py_INCREF(Py_None); |
363 | _resultobj = Py_None; | |
364 | return _resultobj; | |
365 | } | |
366 | ||
367 | #define wxListItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) | |
368 | static PyObject *_wrap_wxListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
369 | PyObject * _resultobj; | |
370 | bool _result; | |
371 | wxListItemAttr * _arg0; | |
372 | PyObject * _argo0 = 0; | |
373 | char *_kwnames[] = { "self", NULL }; | |
374 | ||
375 | self = self; | |
376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasTextColour",_kwnames,&_argo0)) | |
377 | return NULL; | |
378 | if (_argo0) { | |
379 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
380 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasTextColour. Expected _wxListItemAttr_p."); | |
382 | return NULL; | |
383 | } | |
384 | } | |
385 | { | |
386 | wxPy_BEGIN_ALLOW_THREADS; | |
387 | _result = (bool )wxListItemAttr_HasTextColour(_arg0); | |
388 | ||
389 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 390 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
391 | } _resultobj = Py_BuildValue("i",_result); |
392 | return _resultobj; | |
393 | } | |
394 | ||
395 | #define wxListItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) | |
396 | static PyObject *_wrap_wxListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
397 | PyObject * _resultobj; | |
398 | bool _result; | |
399 | wxListItemAttr * _arg0; | |
400 | PyObject * _argo0 = 0; | |
401 | char *_kwnames[] = { "self", NULL }; | |
402 | ||
403 | self = self; | |
404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasBackgroundColour",_kwnames,&_argo0)) | |
405 | return NULL; | |
406 | if (_argo0) { | |
407 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
408 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
409 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasBackgroundColour. Expected _wxListItemAttr_p."); | |
410 | return NULL; | |
411 | } | |
412 | } | |
413 | { | |
414 | wxPy_BEGIN_ALLOW_THREADS; | |
415 | _result = (bool )wxListItemAttr_HasBackgroundColour(_arg0); | |
416 | ||
417 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 418 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
419 | } _resultobj = Py_BuildValue("i",_result); |
420 | return _resultobj; | |
421 | } | |
422 | ||
423 | #define wxListItemAttr_HasFont(_swigobj) (_swigobj->HasFont()) | |
424 | static PyObject *_wrap_wxListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
425 | PyObject * _resultobj; | |
426 | bool _result; | |
427 | wxListItemAttr * _arg0; | |
428 | PyObject * _argo0 = 0; | |
429 | char *_kwnames[] = { "self", NULL }; | |
430 | ||
431 | self = self; | |
432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasFont",_kwnames,&_argo0)) | |
433 | return NULL; | |
434 | if (_argo0) { | |
435 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
436 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
437 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasFont. Expected _wxListItemAttr_p."); | |
438 | return NULL; | |
439 | } | |
440 | } | |
441 | { | |
442 | wxPy_BEGIN_ALLOW_THREADS; | |
443 | _result = (bool )wxListItemAttr_HasFont(_arg0); | |
444 | ||
445 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 446 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
447 | } _resultobj = Py_BuildValue("i",_result); |
448 | return _resultobj; | |
449 | } | |
450 | ||
451 | #define wxListItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
452 | static PyObject *_wrap_wxListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
453 | PyObject * _resultobj; | |
454 | wxColour * _result; | |
455 | wxListItemAttr * _arg0; | |
456 | PyObject * _argo0 = 0; | |
457 | char *_kwnames[] = { "self", NULL }; | |
458 | char _ptemp[128]; | |
459 | ||
460 | self = self; | |
461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetTextColour",_kwnames,&_argo0)) | |
462 | return NULL; | |
463 | if (_argo0) { | |
464 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
465 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetTextColour. Expected _wxListItemAttr_p."); | |
467 | return NULL; | |
468 | } | |
469 | } | |
470 | { | |
471 | wxPy_BEGIN_ALLOW_THREADS; | |
472 | const wxColour & _result_ref = wxListItemAttr_GetTextColour(_arg0); | |
473 | _result = (wxColour *) &_result_ref; | |
474 | ||
475 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 476 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
477 | } if (_result) { |
478 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
479 | _resultobj = Py_BuildValue("s",_ptemp); | |
480 | } else { | |
481 | Py_INCREF(Py_None); | |
482 | _resultobj = Py_None; | |
483 | } | |
484 | return _resultobj; | |
485 | } | |
486 | ||
487 | #define wxListItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
488 | static PyObject *_wrap_wxListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
489 | PyObject * _resultobj; | |
490 | wxColour * _result; | |
491 | wxListItemAttr * _arg0; | |
492 | PyObject * _argo0 = 0; | |
493 | char *_kwnames[] = { "self", NULL }; | |
494 | char _ptemp[128]; | |
495 | ||
496 | self = self; | |
497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetBackgroundColour",_kwnames,&_argo0)) | |
498 | return NULL; | |
499 | if (_argo0) { | |
500 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
501 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
502 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetBackgroundColour. Expected _wxListItemAttr_p."); | |
503 | return NULL; | |
504 | } | |
505 | } | |
506 | { | |
507 | wxPy_BEGIN_ALLOW_THREADS; | |
508 | const wxColour & _result_ref = wxListItemAttr_GetBackgroundColour(_arg0); | |
509 | _result = (wxColour *) &_result_ref; | |
510 | ||
511 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 512 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
513 | } if (_result) { |
514 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
515 | _resultobj = Py_BuildValue("s",_ptemp); | |
516 | } else { | |
517 | Py_INCREF(Py_None); | |
518 | _resultobj = Py_None; | |
519 | } | |
520 | return _resultobj; | |
521 | } | |
522 | ||
523 | #define wxListItemAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
524 | static PyObject *_wrap_wxListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
525 | PyObject * _resultobj; | |
526 | wxFont * _result; | |
527 | wxListItemAttr * _arg0; | |
528 | PyObject * _argo0 = 0; | |
529 | char *_kwnames[] = { "self", NULL }; | |
530 | char _ptemp[128]; | |
531 | ||
532 | self = self; | |
533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetFont",_kwnames,&_argo0)) | |
534 | return NULL; | |
535 | if (_argo0) { | |
536 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
537 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
538 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetFont. Expected _wxListItemAttr_p."); | |
539 | return NULL; | |
540 | } | |
541 | } | |
542 | { | |
543 | wxPy_BEGIN_ALLOW_THREADS; | |
544 | const wxFont & _result_ref = wxListItemAttr_GetFont(_arg0); | |
545 | _result = (wxFont *) &_result_ref; | |
546 | ||
547 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 548 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
549 | } if (_result) { |
550 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
551 | _resultobj = Py_BuildValue("s",_ptemp); | |
552 | } else { | |
553 | Py_INCREF(Py_None); | |
554 | _resultobj = Py_None; | |
555 | } | |
556 | return _resultobj; | |
557 | } | |
558 | ||
9df61a29 RD |
559 | static void *SwigwxListItemTowxObject(void *ptr) { |
560 | wxListItem *src; | |
561 | wxObject *dest; | |
562 | src = (wxListItem *) ptr; | |
563 | dest = (wxObject *) src; | |
564 | return (void *) dest; | |
565 | } | |
566 | ||
f6bcfd97 BP |
567 | #define new_wxListItem() (new wxListItem()) |
568 | static PyObject *_wrap_new_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
569 | PyObject * _resultobj; | |
570 | wxListItem * _result; | |
571 | char *_kwnames[] = { NULL }; | |
572 | char _ptemp[128]; | |
573 | ||
574 | self = self; | |
575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxListItem",_kwnames)) | |
576 | return NULL; | |
577 | { | |
578 | wxPy_BEGIN_ALLOW_THREADS; | |
579 | _result = (wxListItem *)new_wxListItem(); | |
580 | ||
581 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 582 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
583 | } if (_result) { |
584 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p"); | |
585 | _resultobj = Py_BuildValue("s",_ptemp); | |
586 | } else { | |
587 | Py_INCREF(Py_None); | |
588 | _resultobj = Py_None; | |
589 | } | |
590 | return _resultobj; | |
591 | } | |
592 | ||
593 | #define delete_wxListItem(_swigobj) (delete _swigobj) | |
594 | static PyObject *_wrap_delete_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
595 | PyObject * _resultobj; | |
596 | wxListItem * _arg0; | |
597 | PyObject * _argo0 = 0; | |
598 | char *_kwnames[] = { "self", NULL }; | |
599 | ||
600 | self = self; | |
601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxListItem",_kwnames,&_argo0)) | |
602 | return NULL; | |
603 | if (_argo0) { | |
604 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
605 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
606 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxListItem. Expected _wxListItem_p."); | |
607 | return NULL; | |
608 | } | |
609 | } | |
610 | { | |
611 | wxPy_BEGIN_ALLOW_THREADS; | |
612 | delete_wxListItem(_arg0); | |
613 | ||
614 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 615 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
616 | } Py_INCREF(Py_None); |
617 | _resultobj = Py_None; | |
618 | return _resultobj; | |
619 | } | |
620 | ||
621 | #define wxListItem_Clear(_swigobj) (_swigobj->Clear()) | |
622 | static PyObject *_wrap_wxListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
623 | PyObject * _resultobj; | |
624 | wxListItem * _arg0; | |
625 | PyObject * _argo0 = 0; | |
626 | char *_kwnames[] = { "self", NULL }; | |
627 | ||
628 | self = self; | |
629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_Clear",_kwnames,&_argo0)) | |
630 | return NULL; | |
631 | if (_argo0) { | |
632 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
633 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
634 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_Clear. Expected _wxListItem_p."); | |
635 | return NULL; | |
636 | } | |
637 | } | |
638 | { | |
639 | wxPy_BEGIN_ALLOW_THREADS; | |
640 | wxListItem_Clear(_arg0); | |
641 | ||
642 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 643 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
644 | } Py_INCREF(Py_None); |
645 | _resultobj = Py_None; | |
646 | return _resultobj; | |
647 | } | |
648 | ||
649 | #define wxListItem_ClearAttributes(_swigobj) (_swigobj->ClearAttributes()) | |
650 | static PyObject *_wrap_wxListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
651 | PyObject * _resultobj; | |
652 | wxListItem * _arg0; | |
653 | PyObject * _argo0 = 0; | |
654 | char *_kwnames[] = { "self", NULL }; | |
655 | ||
656 | self = self; | |
657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_ClearAttributes",_kwnames,&_argo0)) | |
658 | return NULL; | |
659 | if (_argo0) { | |
660 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
661 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
662 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_ClearAttributes. Expected _wxListItem_p."); | |
663 | return NULL; | |
664 | } | |
665 | } | |
666 | { | |
667 | wxPy_BEGIN_ALLOW_THREADS; | |
668 | wxListItem_ClearAttributes(_arg0); | |
669 | ||
670 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 671 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
672 | } Py_INCREF(Py_None); |
673 | _resultobj = Py_None; | |
674 | return _resultobj; | |
675 | } | |
676 | ||
677 | #define wxListItem_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) | |
678 | static PyObject *_wrap_wxListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
679 | PyObject * _resultobj; | |
680 | wxListItem * _arg0; | |
681 | long _arg1; | |
682 | PyObject * _argo0 = 0; | |
683 | char *_kwnames[] = { "self","mask", NULL }; | |
684 | ||
685 | self = self; | |
686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetMask",_kwnames,&_argo0,&_arg1)) | |
687 | return NULL; | |
688 | if (_argo0) { | |
689 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
690 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
691 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetMask. Expected _wxListItem_p."); | |
692 | return NULL; | |
693 | } | |
694 | } | |
695 | { | |
696 | wxPy_BEGIN_ALLOW_THREADS; | |
697 | wxListItem_SetMask(_arg0,_arg1); | |
698 | ||
699 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 700 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
701 | } Py_INCREF(Py_None); |
702 | _resultobj = Py_None; | |
703 | return _resultobj; | |
704 | } | |
705 | ||
706 | #define wxListItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
707 | static PyObject *_wrap_wxListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
708 | PyObject * _resultobj; | |
709 | wxListItem * _arg0; | |
710 | long _arg1; | |
711 | PyObject * _argo0 = 0; | |
712 | char *_kwnames[] = { "self","id", NULL }; | |
713 | ||
714 | self = self; | |
715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetId",_kwnames,&_argo0,&_arg1)) | |
716 | return NULL; | |
717 | if (_argo0) { | |
718 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
719 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
720 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetId. Expected _wxListItem_p."); | |
721 | return NULL; | |
722 | } | |
723 | } | |
724 | { | |
725 | wxPy_BEGIN_ALLOW_THREADS; | |
726 | wxListItem_SetId(_arg0,_arg1); | |
727 | ||
728 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 729 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
730 | } Py_INCREF(Py_None); |
731 | _resultobj = Py_None; | |
732 | return _resultobj; | |
733 | } | |
734 | ||
735 | #define wxListItem_SetColumn(_swigobj,_swigarg0) (_swigobj->SetColumn(_swigarg0)) | |
736 | static PyObject *_wrap_wxListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
737 | PyObject * _resultobj; | |
738 | wxListItem * _arg0; | |
739 | int _arg1; | |
740 | PyObject * _argo0 = 0; | |
741 | char *_kwnames[] = { "self","col", NULL }; | |
742 | ||
743 | self = self; | |
744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetColumn",_kwnames,&_argo0,&_arg1)) | |
745 | return NULL; | |
746 | if (_argo0) { | |
747 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
748 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
749 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetColumn. Expected _wxListItem_p."); | |
750 | return NULL; | |
751 | } | |
752 | } | |
753 | { | |
754 | wxPy_BEGIN_ALLOW_THREADS; | |
755 | wxListItem_SetColumn(_arg0,_arg1); | |
756 | ||
757 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 758 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
759 | } Py_INCREF(Py_None); |
760 | _resultobj = Py_None; | |
761 | return _resultobj; | |
762 | } | |
763 | ||
764 | #define wxListItem_SetState(_swigobj,_swigarg0) (_swigobj->SetState(_swigarg0)) | |
765 | static PyObject *_wrap_wxListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
766 | PyObject * _resultobj; | |
767 | wxListItem * _arg0; | |
768 | long _arg1; | |
769 | PyObject * _argo0 = 0; | |
770 | char *_kwnames[] = { "self","state", NULL }; | |
771 | ||
772 | self = self; | |
773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetState",_kwnames,&_argo0,&_arg1)) | |
774 | return NULL; | |
775 | if (_argo0) { | |
776 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
777 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetState. Expected _wxListItem_p."); | |
779 | return NULL; | |
780 | } | |
781 | } | |
782 | { | |
783 | wxPy_BEGIN_ALLOW_THREADS; | |
784 | wxListItem_SetState(_arg0,_arg1); | |
785 | ||
786 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 787 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
788 | } Py_INCREF(Py_None); |
789 | _resultobj = Py_None; | |
790 | return _resultobj; | |
791 | } | |
792 | ||
793 | #define wxListItem_SetStateMask(_swigobj,_swigarg0) (_swigobj->SetStateMask(_swigarg0)) | |
794 | static PyObject *_wrap_wxListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
795 | PyObject * _resultobj; | |
796 | wxListItem * _arg0; | |
797 | long _arg1; | |
798 | PyObject * _argo0 = 0; | |
799 | char *_kwnames[] = { "self","stateMask", NULL }; | |
800 | ||
801 | self = self; | |
802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetStateMask",_kwnames,&_argo0,&_arg1)) | |
803 | return NULL; | |
804 | if (_argo0) { | |
805 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
806 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
807 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetStateMask. Expected _wxListItem_p."); | |
808 | return NULL; | |
809 | } | |
810 | } | |
811 | { | |
812 | wxPy_BEGIN_ALLOW_THREADS; | |
813 | wxListItem_SetStateMask(_arg0,_arg1); | |
814 | ||
815 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 816 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
817 | } Py_INCREF(Py_None); |
818 | _resultobj = Py_None; | |
819 | return _resultobj; | |
820 | } | |
821 | ||
822 | #define wxListItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) | |
823 | static PyObject *_wrap_wxListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
824 | PyObject * _resultobj; | |
825 | wxListItem * _arg0; | |
826 | wxString * _arg1; | |
827 | PyObject * _argo0 = 0; | |
828 | PyObject * _obj1 = 0; | |
829 | char *_kwnames[] = { "self","text", NULL }; | |
830 | ||
831 | self = self; | |
832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetText",_kwnames,&_argo0,&_obj1)) | |
833 | return NULL; | |
834 | if (_argo0) { | |
835 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
836 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
837 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetText. Expected _wxListItem_p."); | |
838 | return NULL; | |
839 | } | |
840 | } | |
841 | { | |
2cd2fac8 RD |
842 | #if PYTHON_API_VERSION >= 1009 |
843 | char* tmpPtr; int tmpSize; | |
844 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 845 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
846 | return NULL; |
847 | } | |
848 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
849 | return NULL; | |
850 | _arg1 = new wxString(tmpPtr, tmpSize); | |
851 | #else | |
f6bcfd97 BP |
852 | if (!PyString_Check(_obj1)) { |
853 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
854 | return NULL; | |
855 | } | |
2cd2fac8 RD |
856 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
857 | #endif | |
f6bcfd97 BP |
858 | } |
859 | { | |
860 | wxPy_BEGIN_ALLOW_THREADS; | |
861 | wxListItem_SetText(_arg0,*_arg1); | |
862 | ||
863 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 864 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
865 | } Py_INCREF(Py_None); |
866 | _resultobj = Py_None; | |
867 | { | |
868 | if (_obj1) | |
869 | delete _arg1; | |
870 | } | |
871 | return _resultobj; | |
872 | } | |
873 | ||
874 | #define wxListItem_SetImage(_swigobj,_swigarg0) (_swigobj->SetImage(_swigarg0)) | |
875 | static PyObject *_wrap_wxListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
876 | PyObject * _resultobj; | |
877 | wxListItem * _arg0; | |
878 | int _arg1; | |
879 | PyObject * _argo0 = 0; | |
880 | char *_kwnames[] = { "self","image", NULL }; | |
881 | ||
882 | self = self; | |
883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetImage",_kwnames,&_argo0,&_arg1)) | |
884 | return NULL; | |
885 | if (_argo0) { | |
886 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
887 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
888 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetImage. Expected _wxListItem_p."); | |
889 | return NULL; | |
890 | } | |
891 | } | |
892 | { | |
893 | wxPy_BEGIN_ALLOW_THREADS; | |
894 | wxListItem_SetImage(_arg0,_arg1); | |
895 | ||
896 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 897 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
898 | } Py_INCREF(Py_None); |
899 | _resultobj = Py_None; | |
900 | return _resultobj; | |
901 | } | |
902 | ||
903 | #define wxListItem_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
904 | static PyObject *_wrap_wxListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
905 | PyObject * _resultobj; | |
906 | wxListItem * _arg0; | |
907 | long _arg1; | |
908 | PyObject * _argo0 = 0; | |
909 | char *_kwnames[] = { "self","data", NULL }; | |
910 | ||
911 | self = self; | |
912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetData",_kwnames,&_argo0,&_arg1)) | |
913 | return NULL; | |
914 | if (_argo0) { | |
915 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
916 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
917 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetData. Expected _wxListItem_p."); | |
918 | return NULL; | |
919 | } | |
920 | } | |
921 | { | |
922 | wxPy_BEGIN_ALLOW_THREADS; | |
923 | wxListItem_SetData(_arg0,_arg1); | |
924 | ||
925 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 926 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
927 | } Py_INCREF(Py_None); |
928 | _resultobj = Py_None; | |
929 | return _resultobj; | |
930 | } | |
931 | ||
932 | #define wxListItem_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
933 | static PyObject *_wrap_wxListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
934 | PyObject * _resultobj; | |
935 | wxListItem * _arg0; | |
936 | int _arg1; | |
937 | PyObject * _argo0 = 0; | |
938 | char *_kwnames[] = { "self","width", NULL }; | |
939 | ||
940 | self = self; | |
941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetWidth",_kwnames,&_argo0,&_arg1)) | |
942 | return NULL; | |
943 | if (_argo0) { | |
944 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
945 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
946 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetWidth. Expected _wxListItem_p."); | |
947 | return NULL; | |
948 | } | |
949 | } | |
950 | { | |
951 | wxPy_BEGIN_ALLOW_THREADS; | |
952 | wxListItem_SetWidth(_arg0,_arg1); | |
953 | ||
954 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 955 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
956 | } Py_INCREF(Py_None); |
957 | _resultobj = Py_None; | |
958 | return _resultobj; | |
959 | } | |
960 | ||
961 | #define wxListItem_SetAlign(_swigobj,_swigarg0) (_swigobj->SetAlign(_swigarg0)) | |
962 | static PyObject *_wrap_wxListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
963 | PyObject * _resultobj; | |
964 | wxListItem * _arg0; | |
965 | wxListColumnFormat _arg1; | |
966 | PyObject * _argo0 = 0; | |
967 | char *_kwnames[] = { "self","align", NULL }; | |
968 | ||
969 | self = self; | |
970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetAlign",_kwnames,&_argo0,&_arg1)) | |
971 | return NULL; | |
972 | if (_argo0) { | |
973 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
974 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
975 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetAlign. Expected _wxListItem_p."); | |
976 | return NULL; | |
977 | } | |
978 | } | |
979 | { | |
980 | wxPy_BEGIN_ALLOW_THREADS; | |
981 | wxListItem_SetAlign(_arg0,_arg1); | |
982 | ||
983 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 984 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
985 | } Py_INCREF(Py_None); |
986 | _resultobj = Py_None; | |
987 | return _resultobj; | |
988 | } | |
989 | ||
990 | #define wxListItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
991 | static PyObject *_wrap_wxListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
992 | PyObject * _resultobj; | |
993 | wxListItem * _arg0; | |
994 | wxColour * _arg1; | |
995 | PyObject * _argo0 = 0; | |
996 | wxColour temp; | |
997 | PyObject * _obj1 = 0; | |
998 | char *_kwnames[] = { "self","colText", NULL }; | |
999 | ||
1000 | self = self; | |
1001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
1002 | return NULL; | |
1003 | if (_argo0) { | |
1004 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1005 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1006 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetTextColour. Expected _wxListItem_p."); | |
1007 | return NULL; | |
1008 | } | |
1009 | } | |
1010 | { | |
1011 | _arg1 = &temp; | |
1012 | if (! wxColour_helper(_obj1, &_arg1)) | |
1013 | return NULL; | |
1014 | } | |
1015 | { | |
1016 | wxPy_BEGIN_ALLOW_THREADS; | |
1017 | wxListItem_SetTextColour(_arg0,*_arg1); | |
1018 | ||
1019 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1020 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1021 | } Py_INCREF(Py_None); |
1022 | _resultobj = Py_None; | |
1023 | return _resultobj; | |
1024 | } | |
1025 | ||
1026 | #define wxListItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
1027 | static PyObject *_wrap_wxListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1028 | PyObject * _resultobj; | |
1029 | wxListItem * _arg0; | |
1030 | wxColour * _arg1; | |
1031 | PyObject * _argo0 = 0; | |
1032 | wxColour temp; | |
1033 | PyObject * _obj1 = 0; | |
1034 | char *_kwnames[] = { "self","colBack", NULL }; | |
1035 | ||
1036 | self = self; | |
1037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
1038 | return NULL; | |
1039 | if (_argo0) { | |
1040 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1041 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1042 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetBackgroundColour. Expected _wxListItem_p."); | |
1043 | return NULL; | |
1044 | } | |
1045 | } | |
1046 | { | |
1047 | _arg1 = &temp; | |
1048 | if (! wxColour_helper(_obj1, &_arg1)) | |
1049 | return NULL; | |
1050 | } | |
1051 | { | |
1052 | wxPy_BEGIN_ALLOW_THREADS; | |
1053 | wxListItem_SetBackgroundColour(_arg0,*_arg1); | |
1054 | ||
1055 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1056 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1057 | } Py_INCREF(Py_None); |
1058 | _resultobj = Py_None; | |
1059 | return _resultobj; | |
1060 | } | |
1061 | ||
1062 | #define wxListItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
1063 | static PyObject *_wrap_wxListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1064 | PyObject * _resultobj; | |
1065 | wxListItem * _arg0; | |
1066 | wxFont * _arg1; | |
1067 | PyObject * _argo0 = 0; | |
1068 | PyObject * _argo1 = 0; | |
1069 | char *_kwnames[] = { "self","font", NULL }; | |
1070 | ||
1071 | self = self; | |
1072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetFont",_kwnames,&_argo0,&_argo1)) | |
1073 | return NULL; | |
1074 | if (_argo0) { | |
1075 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1076 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1077 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetFont. Expected _wxListItem_p."); | |
1078 | return NULL; | |
1079 | } | |
1080 | } | |
1081 | if (_argo1) { | |
1082 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1083 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
1084 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItem_SetFont. Expected _wxFont_p."); | |
1085 | return NULL; | |
1086 | } | |
1087 | } | |
1088 | { | |
1089 | wxPy_BEGIN_ALLOW_THREADS; | |
1090 | wxListItem_SetFont(_arg0,*_arg1); | |
1091 | ||
1092 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1093 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1094 | } Py_INCREF(Py_None); |
1095 | _resultobj = Py_None; | |
1096 | return _resultobj; | |
1097 | } | |
1098 | ||
1099 | #define wxListItem_GetMask(_swigobj) (_swigobj->GetMask()) | |
1100 | static PyObject *_wrap_wxListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1101 | PyObject * _resultobj; | |
1102 | long _result; | |
1103 | wxListItem * _arg0; | |
1104 | PyObject * _argo0 = 0; | |
1105 | char *_kwnames[] = { "self", NULL }; | |
1106 | ||
1107 | self = self; | |
1108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetMask",_kwnames,&_argo0)) | |
1109 | return NULL; | |
1110 | if (_argo0) { | |
1111 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1112 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1113 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetMask. Expected _wxListItem_p."); | |
1114 | return NULL; | |
1115 | } | |
1116 | } | |
1117 | { | |
1118 | wxPy_BEGIN_ALLOW_THREADS; | |
1119 | _result = (long )wxListItem_GetMask(_arg0); | |
1120 | ||
1121 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1122 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1123 | } _resultobj = Py_BuildValue("l",_result); |
1124 | return _resultobj; | |
1125 | } | |
1126 | ||
1127 | #define wxListItem_GetId(_swigobj) (_swigobj->GetId()) | |
1128 | static PyObject *_wrap_wxListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1129 | PyObject * _resultobj; | |
1130 | long _result; | |
1131 | wxListItem * _arg0; | |
1132 | PyObject * _argo0 = 0; | |
1133 | char *_kwnames[] = { "self", NULL }; | |
1134 | ||
1135 | self = self; | |
1136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetId",_kwnames,&_argo0)) | |
1137 | return NULL; | |
1138 | if (_argo0) { | |
1139 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1140 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1141 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetId. Expected _wxListItem_p."); | |
1142 | return NULL; | |
1143 | } | |
1144 | } | |
1145 | { | |
1146 | wxPy_BEGIN_ALLOW_THREADS; | |
1147 | _result = (long )wxListItem_GetId(_arg0); | |
1148 | ||
1149 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1150 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1151 | } _resultobj = Py_BuildValue("l",_result); |
1152 | return _resultobj; | |
1153 | } | |
1154 | ||
1155 | #define wxListItem_GetColumn(_swigobj) (_swigobj->GetColumn()) | |
1156 | static PyObject *_wrap_wxListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1157 | PyObject * _resultobj; | |
1158 | int _result; | |
1159 | wxListItem * _arg0; | |
1160 | PyObject * _argo0 = 0; | |
1161 | char *_kwnames[] = { "self", NULL }; | |
1162 | ||
1163 | self = self; | |
1164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetColumn",_kwnames,&_argo0)) | |
1165 | return NULL; | |
1166 | if (_argo0) { | |
1167 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1168 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1169 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetColumn. Expected _wxListItem_p."); | |
1170 | return NULL; | |
1171 | } | |
1172 | } | |
1173 | { | |
1174 | wxPy_BEGIN_ALLOW_THREADS; | |
1175 | _result = (int )wxListItem_GetColumn(_arg0); | |
1176 | ||
1177 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1178 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1179 | } _resultobj = Py_BuildValue("i",_result); |
1180 | return _resultobj; | |
1181 | } | |
1182 | ||
1183 | #define wxListItem_GetState(_swigobj) (_swigobj->GetState()) | |
1184 | static PyObject *_wrap_wxListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1185 | PyObject * _resultobj; | |
1186 | long _result; | |
1187 | wxListItem * _arg0; | |
1188 | PyObject * _argo0 = 0; | |
1189 | char *_kwnames[] = { "self", NULL }; | |
1190 | ||
1191 | self = self; | |
1192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetState",_kwnames,&_argo0)) | |
1193 | return NULL; | |
1194 | if (_argo0) { | |
1195 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1196 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1197 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetState. Expected _wxListItem_p."); | |
1198 | return NULL; | |
1199 | } | |
1200 | } | |
1201 | { | |
1202 | wxPy_BEGIN_ALLOW_THREADS; | |
1203 | _result = (long )wxListItem_GetState(_arg0); | |
1204 | ||
1205 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1206 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1207 | } _resultobj = Py_BuildValue("l",_result); |
1208 | return _resultobj; | |
1209 | } | |
1210 | ||
1211 | #define wxListItem_GetText(_swigobj) (_swigobj->GetText()) | |
1212 | static PyObject *_wrap_wxListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1213 | PyObject * _resultobj; | |
1214 | wxString * _result; | |
1215 | wxListItem * _arg0; | |
1216 | PyObject * _argo0 = 0; | |
1217 | char *_kwnames[] = { "self", NULL }; | |
1218 | ||
1219 | self = self; | |
1220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetText",_kwnames,&_argo0)) | |
1221 | return NULL; | |
1222 | if (_argo0) { | |
1223 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1224 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetText. Expected _wxListItem_p."); | |
1226 | return NULL; | |
1227 | } | |
1228 | } | |
1229 | { | |
1230 | wxPy_BEGIN_ALLOW_THREADS; | |
1231 | const wxString & _result_ref = wxListItem_GetText(_arg0); | |
1232 | _result = (wxString *) &_result_ref; | |
1233 | ||
1234 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1235 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1236 | }{ |
1237 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1238 | } | |
1239 | return _resultobj; | |
1240 | } | |
1241 | ||
1242 | #define wxListItem_GetImage(_swigobj) (_swigobj->GetImage()) | |
1243 | static PyObject *_wrap_wxListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1244 | PyObject * _resultobj; | |
1245 | int _result; | |
1246 | wxListItem * _arg0; | |
1247 | PyObject * _argo0 = 0; | |
1248 | char *_kwnames[] = { "self", NULL }; | |
1249 | ||
1250 | self = self; | |
1251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetImage",_kwnames,&_argo0)) | |
1252 | return NULL; | |
1253 | if (_argo0) { | |
1254 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1255 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1256 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetImage. Expected _wxListItem_p."); | |
1257 | return NULL; | |
1258 | } | |
1259 | } | |
1260 | { | |
1261 | wxPy_BEGIN_ALLOW_THREADS; | |
1262 | _result = (int )wxListItem_GetImage(_arg0); | |
1263 | ||
1264 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1265 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1266 | } _resultobj = Py_BuildValue("i",_result); |
1267 | return _resultobj; | |
1268 | } | |
1269 | ||
1270 | #define wxListItem_GetData(_swigobj) (_swigobj->GetData()) | |
1271 | static PyObject *_wrap_wxListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1272 | PyObject * _resultobj; | |
1273 | long _result; | |
1274 | wxListItem * _arg0; | |
1275 | PyObject * _argo0 = 0; | |
1276 | char *_kwnames[] = { "self", NULL }; | |
1277 | ||
1278 | self = self; | |
1279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetData",_kwnames,&_argo0)) | |
1280 | return NULL; | |
1281 | if (_argo0) { | |
1282 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1283 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1284 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetData. Expected _wxListItem_p."); | |
1285 | return NULL; | |
1286 | } | |
1287 | } | |
1288 | { | |
1289 | wxPy_BEGIN_ALLOW_THREADS; | |
1290 | _result = (long )wxListItem_GetData(_arg0); | |
1291 | ||
1292 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1293 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1294 | } _resultobj = Py_BuildValue("l",_result); |
1295 | return _resultobj; | |
1296 | } | |
1297 | ||
1298 | #define wxListItem_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1299 | static PyObject *_wrap_wxListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1300 | PyObject * _resultobj; | |
1301 | int _result; | |
1302 | wxListItem * _arg0; | |
1303 | PyObject * _argo0 = 0; | |
1304 | char *_kwnames[] = { "self", NULL }; | |
1305 | ||
1306 | self = self; | |
1307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetWidth",_kwnames,&_argo0)) | |
1308 | return NULL; | |
1309 | if (_argo0) { | |
1310 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1311 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1312 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetWidth. Expected _wxListItem_p."); | |
1313 | return NULL; | |
1314 | } | |
1315 | } | |
1316 | { | |
1317 | wxPy_BEGIN_ALLOW_THREADS; | |
1318 | _result = (int )wxListItem_GetWidth(_arg0); | |
1319 | ||
1320 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1321 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1322 | } _resultobj = Py_BuildValue("i",_result); |
1323 | return _resultobj; | |
1324 | } | |
1325 | ||
1326 | #define wxListItem_GetAlign(_swigobj) (_swigobj->GetAlign()) | |
1327 | static PyObject *_wrap_wxListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1328 | PyObject * _resultobj; | |
1329 | wxListColumnFormat _result; | |
1330 | wxListItem * _arg0; | |
1331 | PyObject * _argo0 = 0; | |
1332 | char *_kwnames[] = { "self", NULL }; | |
1333 | ||
1334 | self = self; | |
1335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAlign",_kwnames,&_argo0)) | |
1336 | return NULL; | |
1337 | if (_argo0) { | |
1338 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1339 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1340 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAlign. Expected _wxListItem_p."); | |
1341 | return NULL; | |
1342 | } | |
1343 | } | |
1344 | { | |
1345 | wxPy_BEGIN_ALLOW_THREADS; | |
1346 | _result = (wxListColumnFormat )wxListItem_GetAlign(_arg0); | |
1347 | ||
1348 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1349 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1350 | } _resultobj = Py_BuildValue("i",_result); |
1351 | return _resultobj; | |
1352 | } | |
1353 | ||
1354 | #define wxListItem_GetAttributes(_swigobj) (_swigobj->GetAttributes()) | |
1355 | static PyObject *_wrap_wxListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1356 | PyObject * _resultobj; | |
1357 | wxListItemAttr * _result; | |
1358 | wxListItem * _arg0; | |
1359 | PyObject * _argo0 = 0; | |
1360 | char *_kwnames[] = { "self", NULL }; | |
1361 | char _ptemp[128]; | |
1362 | ||
1363 | self = self; | |
1364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAttributes",_kwnames,&_argo0)) | |
1365 | return NULL; | |
1366 | if (_argo0) { | |
1367 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1368 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1369 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAttributes. Expected _wxListItem_p."); | |
1370 | return NULL; | |
1371 | } | |
1372 | } | |
1373 | { | |
1374 | wxPy_BEGIN_ALLOW_THREADS; | |
1375 | _result = (wxListItemAttr *)wxListItem_GetAttributes(_arg0); | |
1376 | ||
1377 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1378 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1379 | } if (_result) { |
1380 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
1381 | _resultobj = Py_BuildValue("s",_ptemp); | |
1382 | } else { | |
1383 | Py_INCREF(Py_None); | |
1384 | _resultobj = Py_None; | |
1385 | } | |
1386 | return _resultobj; | |
1387 | } | |
1388 | ||
1389 | #define wxListItem_HasAttributes(_swigobj) (_swigobj->HasAttributes()) | |
1390 | static PyObject *_wrap_wxListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1391 | PyObject * _resultobj; | |
1392 | bool _result; | |
1393 | wxListItem * _arg0; | |
1394 | PyObject * _argo0 = 0; | |
1395 | char *_kwnames[] = { "self", NULL }; | |
1396 | ||
1397 | self = self; | |
1398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_HasAttributes",_kwnames,&_argo0)) | |
1399 | return NULL; | |
1400 | if (_argo0) { | |
1401 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1402 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_HasAttributes. Expected _wxListItem_p."); | |
1404 | return NULL; | |
1405 | } | |
1406 | } | |
1407 | { | |
1408 | wxPy_BEGIN_ALLOW_THREADS; | |
1409 | _result = (bool )wxListItem_HasAttributes(_arg0); | |
1410 | ||
1411 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1412 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1413 | } _resultobj = Py_BuildValue("i",_result); |
1414 | return _resultobj; | |
1415 | } | |
1416 | ||
1417 | #define wxListItem_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
1418 | static PyObject *_wrap_wxListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1419 | PyObject * _resultobj; | |
1420 | wxColour * _result; | |
1421 | wxListItem * _arg0; | |
1422 | PyObject * _argo0 = 0; | |
1423 | char *_kwnames[] = { "self", NULL }; | |
1424 | char _ptemp[128]; | |
1425 | ||
1426 | self = self; | |
1427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetTextColour",_kwnames,&_argo0)) | |
1428 | return NULL; | |
1429 | if (_argo0) { | |
1430 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1431 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1432 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetTextColour. Expected _wxListItem_p."); | |
1433 | return NULL; | |
1434 | } | |
1435 | } | |
1436 | { | |
1437 | wxPy_BEGIN_ALLOW_THREADS; | |
1438 | _result = new wxColour (wxListItem_GetTextColour(_arg0)); | |
1439 | ||
1440 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1441 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1442 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
1443 | _resultobj = Py_BuildValue("s",_ptemp); | |
1444 | return _resultobj; | |
1445 | } | |
1446 | ||
1447 | #define wxListItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
1448 | static PyObject *_wrap_wxListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1449 | PyObject * _resultobj; | |
1450 | wxColour * _result; | |
1451 | wxListItem * _arg0; | |
1452 | PyObject * _argo0 = 0; | |
1453 | char *_kwnames[] = { "self", NULL }; | |
1454 | char _ptemp[128]; | |
1455 | ||
1456 | self = self; | |
1457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetBackgroundColour",_kwnames,&_argo0)) | |
1458 | return NULL; | |
1459 | if (_argo0) { | |
1460 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1461 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1462 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetBackgroundColour. Expected _wxListItem_p."); | |
1463 | return NULL; | |
1464 | } | |
1465 | } | |
1466 | { | |
1467 | wxPy_BEGIN_ALLOW_THREADS; | |
1468 | _result = new wxColour (wxListItem_GetBackgroundColour(_arg0)); | |
1469 | ||
1470 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1471 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1472 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
1473 | _resultobj = Py_BuildValue("s",_ptemp); | |
1474 | return _resultobj; | |
1475 | } | |
1476 | ||
1477 | #define wxListItem_GetFont(_swigobj) (_swigobj->GetFont()) | |
1478 | static PyObject *_wrap_wxListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1479 | PyObject * _resultobj; | |
1480 | wxFont * _result; | |
1481 | wxListItem * _arg0; | |
1482 | PyObject * _argo0 = 0; | |
1483 | char *_kwnames[] = { "self", NULL }; | |
1484 | char _ptemp[128]; | |
1485 | ||
1486 | self = self; | |
1487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetFont",_kwnames,&_argo0)) | |
1488 | return NULL; | |
1489 | if (_argo0) { | |
1490 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1491 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetFont. Expected _wxListItem_p."); | |
1493 | return NULL; | |
1494 | } | |
1495 | } | |
1496 | { | |
1497 | wxPy_BEGIN_ALLOW_THREADS; | |
1498 | _result = new wxFont (wxListItem_GetFont(_arg0)); | |
1499 | ||
1500 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1501 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1502 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
1503 | _resultobj = Py_BuildValue("s",_ptemp); | |
1504 | return _resultobj; | |
1505 | } | |
1506 | ||
1507 | #define wxListItem_m_mask_set(_swigobj,_swigval) (_swigobj->m_mask = _swigval,_swigval) | |
1508 | static PyObject *_wrap_wxListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1509 | PyObject * _resultobj; | |
1510 | long _result; | |
1511 | wxListItem * _arg0; | |
1512 | long _arg1; | |
1513 | PyObject * _argo0 = 0; | |
1514 | char *_kwnames[] = { "self","m_mask", NULL }; | |
1515 | ||
1516 | self = self; | |
1517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_mask_set",_kwnames,&_argo0,&_arg1)) | |
1518 | return NULL; | |
1519 | if (_argo0) { | |
1520 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1521 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1522 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_set. Expected _wxListItem_p."); | |
1523 | return NULL; | |
1524 | } | |
1525 | } | |
1526 | { | |
1527 | wxPy_BEGIN_ALLOW_THREADS; | |
1528 | _result = (long )wxListItem_m_mask_set(_arg0,_arg1); | |
1529 | ||
1530 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1531 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1532 | } _resultobj = Py_BuildValue("l",_result); |
1533 | return _resultobj; | |
1534 | } | |
1535 | ||
1536 | #define wxListItem_m_mask_get(_swigobj) ((long ) _swigobj->m_mask) | |
1537 | static PyObject *_wrap_wxListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1538 | PyObject * _resultobj; | |
1539 | long _result; | |
1540 | wxListItem * _arg0; | |
1541 | PyObject * _argo0 = 0; | |
1542 | char *_kwnames[] = { "self", NULL }; | |
1543 | ||
1544 | self = self; | |
1545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_mask_get",_kwnames,&_argo0)) | |
1546 | return NULL; | |
1547 | if (_argo0) { | |
1548 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1549 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1550 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_get. Expected _wxListItem_p."); | |
1551 | return NULL; | |
1552 | } | |
1553 | } | |
1554 | { | |
1555 | wxPy_BEGIN_ALLOW_THREADS; | |
1556 | _result = (long )wxListItem_m_mask_get(_arg0); | |
1557 | ||
1558 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1559 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1560 | } _resultobj = Py_BuildValue("l",_result); |
1561 | return _resultobj; | |
1562 | } | |
1563 | ||
1564 | #define wxListItem_m_itemId_set(_swigobj,_swigval) (_swigobj->m_itemId = _swigval,_swigval) | |
1565 | static PyObject *_wrap_wxListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
1566 | PyObject * _resultobj; |
1567 | long _result; | |
1568 | wxListItem * _arg0; | |
1569 | long _arg1; | |
1d99702e | 1570 | PyObject * _argo0 = 0; |
f6bcfd97 | 1571 | char *_kwnames[] = { "self","m_itemId", NULL }; |
af309447 RD |
1572 | |
1573 | self = self; | |
f6bcfd97 | 1574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_itemId_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 1575 | return NULL; |
1d99702e RD |
1576 | if (_argo0) { |
1577 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1578 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1579 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_set. Expected _wxListItem_p."); |
af309447 RD |
1580 | return NULL; |
1581 | } | |
1582 | } | |
cf694132 RD |
1583 | { |
1584 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
1585 | _result = (long )wxListItem_m_itemId_set(_arg0,_arg1); |
1586 | ||
1587 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1588 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1589 | } _resultobj = Py_BuildValue("l",_result); |
1590 | return _resultobj; | |
1591 | } | |
1592 | ||
1593 | #define wxListItem_m_itemId_get(_swigobj) ((long ) _swigobj->m_itemId) | |
1594 | static PyObject *_wrap_wxListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1595 | PyObject * _resultobj; | |
1596 | long _result; | |
1597 | wxListItem * _arg0; | |
1598 | PyObject * _argo0 = 0; | |
1599 | char *_kwnames[] = { "self", NULL }; | |
1600 | ||
1601 | self = self; | |
1602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_itemId_get",_kwnames,&_argo0)) | |
1603 | return NULL; | |
1604 | if (_argo0) { | |
1605 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1606 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1607 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_get. Expected _wxListItem_p."); | |
1608 | return NULL; | |
1609 | } | |
1610 | } | |
1611 | { | |
1612 | wxPy_BEGIN_ALLOW_THREADS; | |
1613 | _result = (long )wxListItem_m_itemId_get(_arg0); | |
1614 | ||
1615 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1616 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1617 | } _resultobj = Py_BuildValue("l",_result); |
1618 | return _resultobj; | |
1619 | } | |
1620 | ||
1621 | #define wxListItem_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval) | |
1622 | static PyObject *_wrap_wxListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1623 | PyObject * _resultobj; | |
1624 | int _result; | |
1625 | wxListItem * _arg0; | |
1626 | int _arg1; | |
1627 | PyObject * _argo0 = 0; | |
1628 | char *_kwnames[] = { "self","m_col", NULL }; | |
1629 | ||
1630 | self = self; | |
1631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_col_set",_kwnames,&_argo0,&_arg1)) | |
1632 | return NULL; | |
1633 | if (_argo0) { | |
1634 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1635 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1636 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_set. Expected _wxListItem_p."); | |
1637 | return NULL; | |
1638 | } | |
1639 | } | |
1640 | { | |
1641 | wxPy_BEGIN_ALLOW_THREADS; | |
1642 | _result = (int )wxListItem_m_col_set(_arg0,_arg1); | |
1643 | ||
1644 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1645 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1646 | } _resultobj = Py_BuildValue("i",_result); |
1647 | return _resultobj; | |
1648 | } | |
1649 | ||
1650 | #define wxListItem_m_col_get(_swigobj) ((int ) _swigobj->m_col) | |
1651 | static PyObject *_wrap_wxListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1652 | PyObject * _resultobj; | |
1653 | int _result; | |
1654 | wxListItem * _arg0; | |
1655 | PyObject * _argo0 = 0; | |
1656 | char *_kwnames[] = { "self", NULL }; | |
1657 | ||
1658 | self = self; | |
1659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_col_get",_kwnames,&_argo0)) | |
1660 | return NULL; | |
1661 | if (_argo0) { | |
1662 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1663 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1664 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_get. Expected _wxListItem_p."); | |
1665 | return NULL; | |
1666 | } | |
1667 | } | |
1668 | { | |
1669 | wxPy_BEGIN_ALLOW_THREADS; | |
1670 | _result = (int )wxListItem_m_col_get(_arg0); | |
1671 | ||
1672 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1673 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1674 | } _resultobj = Py_BuildValue("i",_result); |
1675 | return _resultobj; | |
1676 | } | |
1677 | ||
1678 | #define wxListItem_m_state_set(_swigobj,_swigval) (_swigobj->m_state = _swigval,_swigval) | |
1679 | static PyObject *_wrap_wxListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1680 | PyObject * _resultobj; | |
1681 | long _result; | |
1682 | wxListItem * _arg0; | |
1683 | long _arg1; | |
1684 | PyObject * _argo0 = 0; | |
1685 | char *_kwnames[] = { "self","m_state", NULL }; | |
1686 | ||
1687 | self = self; | |
1688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_state_set",_kwnames,&_argo0,&_arg1)) | |
1689 | return NULL; | |
1690 | if (_argo0) { | |
1691 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1692 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1693 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_set. Expected _wxListItem_p."); | |
1694 | return NULL; | |
1695 | } | |
1696 | } | |
1697 | { | |
1698 | wxPy_BEGIN_ALLOW_THREADS; | |
1699 | _result = (long )wxListItem_m_state_set(_arg0,_arg1); | |
1700 | ||
1701 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1702 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1703 | } _resultobj = Py_BuildValue("l",_result); |
1704 | return _resultobj; | |
1705 | } | |
1706 | ||
1707 | #define wxListItem_m_state_get(_swigobj) ((long ) _swigobj->m_state) | |
1708 | static PyObject *_wrap_wxListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1709 | PyObject * _resultobj; | |
1710 | long _result; | |
1711 | wxListItem * _arg0; | |
1712 | PyObject * _argo0 = 0; | |
1713 | char *_kwnames[] = { "self", NULL }; | |
1714 | ||
1715 | self = self; | |
1716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_state_get",_kwnames,&_argo0)) | |
1717 | return NULL; | |
1718 | if (_argo0) { | |
1719 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1720 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1721 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_get. Expected _wxListItem_p."); | |
1722 | return NULL; | |
1723 | } | |
1724 | } | |
1725 | { | |
1726 | wxPy_BEGIN_ALLOW_THREADS; | |
1727 | _result = (long )wxListItem_m_state_get(_arg0); | |
1728 | ||
1729 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1730 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1731 | } _resultobj = Py_BuildValue("l",_result); |
1732 | return _resultobj; | |
1733 | } | |
1734 | ||
1735 | #define wxListItem_m_stateMask_set(_swigobj,_swigval) (_swigobj->m_stateMask = _swigval,_swigval) | |
1736 | static PyObject *_wrap_wxListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1737 | PyObject * _resultobj; | |
1738 | long _result; | |
1739 | wxListItem * _arg0; | |
1740 | long _arg1; | |
1741 | PyObject * _argo0 = 0; | |
1742 | char *_kwnames[] = { "self","m_stateMask", NULL }; | |
1743 | ||
1744 | self = self; | |
1745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_stateMask_set",_kwnames,&_argo0,&_arg1)) | |
1746 | return NULL; | |
1747 | if (_argo0) { | |
1748 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1749 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_set. Expected _wxListItem_p."); | |
1751 | return NULL; | |
1752 | } | |
1753 | } | |
1754 | { | |
1755 | wxPy_BEGIN_ALLOW_THREADS; | |
1756 | _result = (long )wxListItem_m_stateMask_set(_arg0,_arg1); | |
1757 | ||
1758 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1759 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1760 | } _resultobj = Py_BuildValue("l",_result); |
1761 | return _resultobj; | |
1762 | } | |
1763 | ||
1764 | #define wxListItem_m_stateMask_get(_swigobj) ((long ) _swigobj->m_stateMask) | |
1765 | static PyObject *_wrap_wxListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1766 | PyObject * _resultobj; | |
1767 | long _result; | |
1768 | wxListItem * _arg0; | |
1769 | PyObject * _argo0 = 0; | |
1770 | char *_kwnames[] = { "self", NULL }; | |
1771 | ||
1772 | self = self; | |
1773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_stateMask_get",_kwnames,&_argo0)) | |
1774 | return NULL; | |
1775 | if (_argo0) { | |
1776 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1777 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_get. Expected _wxListItem_p."); | |
1779 | return NULL; | |
1780 | } | |
1781 | } | |
1782 | { | |
1783 | wxPy_BEGIN_ALLOW_THREADS; | |
1784 | _result = (long )wxListItem_m_stateMask_get(_arg0); | |
cf694132 RD |
1785 | |
1786 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1787 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1788 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
1789 | return _resultobj; |
1790 | } | |
1791 | ||
f6bcfd97 BP |
1792 | #define wxListItem_m_text_set(_swigobj,_swigval) (_swigobj->m_text = *(_swigval),_swigval) |
1793 | static PyObject *_wrap_wxListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1794 | PyObject * _resultobj; | |
1795 | wxString * _result; | |
1796 | wxListItem * _arg0; | |
1797 | wxString * _arg1; | |
1798 | PyObject * _argo0 = 0; | |
1799 | PyObject * _obj1 = 0; | |
1800 | char *_kwnames[] = { "self","m_text", NULL }; | |
1801 | ||
1802 | self = self; | |
1803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_m_text_set",_kwnames,&_argo0,&_obj1)) | |
1804 | return NULL; | |
1805 | if (_argo0) { | |
1806 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1807 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1808 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_set. Expected _wxListItem_p."); | |
1809 | return NULL; | |
1810 | } | |
1811 | } | |
1812 | { | |
2cd2fac8 RD |
1813 | #if PYTHON_API_VERSION >= 1009 |
1814 | char* tmpPtr; int tmpSize; | |
1815 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1816 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1817 | return NULL; |
1818 | } | |
1819 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1820 | return NULL; | |
1821 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1822 | #else | |
f6bcfd97 BP |
1823 | if (!PyString_Check(_obj1)) { |
1824 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1825 | return NULL; | |
1826 | } | |
2cd2fac8 RD |
1827 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1828 | #endif | |
f6bcfd97 BP |
1829 | } |
1830 | { | |
1831 | wxPy_BEGIN_ALLOW_THREADS; | |
1832 | _result = (wxString *)wxListItem_m_text_set(_arg0,_arg1); | |
1833 | ||
1834 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1835 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1836 | }{ |
1837 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1838 | } | |
1839 | { | |
1840 | if (_obj1) | |
1841 | delete _arg1; | |
1842 | } | |
1843 | return _resultobj; | |
1844 | } | |
1845 | ||
1846 | #define wxListItem_m_text_get(_swigobj) (&_swigobj->m_text) | |
1847 | static PyObject *_wrap_wxListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1848 | PyObject * _resultobj; |
f6bcfd97 | 1849 | wxString * _result; |
8ab979d7 | 1850 | wxListItem * _arg0; |
1d99702e | 1851 | PyObject * _argo0 = 0; |
efc5f224 | 1852 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1853 | |
1854 | self = self; | |
f6bcfd97 | 1855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_text_get",_kwnames,&_argo0)) |
8ab979d7 | 1856 | return NULL; |
1d99702e RD |
1857 | if (_argo0) { |
1858 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1859 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1860 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_get. Expected _wxListItem_p."); |
8ab979d7 RD |
1861 | return NULL; |
1862 | } | |
1863 | } | |
cf694132 RD |
1864 | { |
1865 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1866 | _result = (wxString *)wxListItem_m_text_get(_arg0); |
cf694132 RD |
1867 | |
1868 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1869 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1870 | }{ |
1871 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1872 | } | |
8ab979d7 RD |
1873 | return _resultobj; |
1874 | } | |
1875 | ||
f6bcfd97 BP |
1876 | #define wxListItem_m_image_set(_swigobj,_swigval) (_swigobj->m_image = _swigval,_swigval) |
1877 | static PyObject *_wrap_wxListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 1878 | PyObject * _resultobj; |
f6bcfd97 | 1879 | int _result; |
af309447 | 1880 | wxListItem * _arg0; |
f6bcfd97 | 1881 | int _arg1; |
1d99702e | 1882 | PyObject * _argo0 = 0; |
f6bcfd97 | 1883 | char *_kwnames[] = { "self","m_image", NULL }; |
af309447 RD |
1884 | |
1885 | self = self; | |
f6bcfd97 | 1886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_image_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 1887 | return NULL; |
1d99702e RD |
1888 | if (_argo0) { |
1889 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1890 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1891 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_set. Expected _wxListItem_p."); |
af309447 RD |
1892 | return NULL; |
1893 | } | |
1894 | } | |
cf694132 RD |
1895 | { |
1896 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1897 | _result = (int )wxListItem_m_image_set(_arg0,_arg1); |
cf694132 RD |
1898 | |
1899 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1900 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1901 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
1902 | return _resultobj; |
1903 | } | |
1904 | ||
f6bcfd97 BP |
1905 | #define wxListItem_m_image_get(_swigobj) ((int ) _swigobj->m_image) |
1906 | static PyObject *_wrap_wxListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1907 | PyObject * _resultobj; |
f6bcfd97 | 1908 | int _result; |
8ab979d7 | 1909 | wxListItem * _arg0; |
1d99702e | 1910 | PyObject * _argo0 = 0; |
efc5f224 | 1911 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1912 | |
1913 | self = self; | |
f6bcfd97 | 1914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_image_get",_kwnames,&_argo0)) |
8ab979d7 | 1915 | return NULL; |
1d99702e RD |
1916 | if (_argo0) { |
1917 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1918 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1919 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_get. Expected _wxListItem_p."); |
8ab979d7 RD |
1920 | return NULL; |
1921 | } | |
1922 | } | |
cf694132 RD |
1923 | { |
1924 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1925 | _result = (int )wxListItem_m_image_get(_arg0); |
cf694132 RD |
1926 | |
1927 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1928 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1929 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1930 | return _resultobj; |
1931 | } | |
1932 | ||
f6bcfd97 BP |
1933 | #define wxListItem_m_data_set(_swigobj,_swigval) (_swigobj->m_data = _swigval,_swigval) |
1934 | static PyObject *_wrap_wxListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 1935 | PyObject * _resultobj; |
f6bcfd97 | 1936 | long _result; |
af309447 | 1937 | wxListItem * _arg0; |
f6bcfd97 | 1938 | long _arg1; |
1d99702e | 1939 | PyObject * _argo0 = 0; |
f6bcfd97 | 1940 | char *_kwnames[] = { "self","m_data", NULL }; |
af309447 RD |
1941 | |
1942 | self = self; | |
f6bcfd97 | 1943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_data_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 1944 | return NULL; |
1d99702e RD |
1945 | if (_argo0) { |
1946 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1947 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1948 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_set. Expected _wxListItem_p."); |
af309447 RD |
1949 | return NULL; |
1950 | } | |
1951 | } | |
cf694132 RD |
1952 | { |
1953 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1954 | _result = (long )wxListItem_m_data_set(_arg0,_arg1); |
cf694132 RD |
1955 | |
1956 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1957 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1958 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
1959 | return _resultobj; |
1960 | } | |
1961 | ||
f6bcfd97 BP |
1962 | #define wxListItem_m_data_get(_swigobj) ((long ) _swigobj->m_data) |
1963 | static PyObject *_wrap_wxListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1964 | PyObject * _resultobj; |
f6bcfd97 | 1965 | long _result; |
8ab979d7 | 1966 | wxListItem * _arg0; |
1d99702e | 1967 | PyObject * _argo0 = 0; |
efc5f224 | 1968 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1969 | |
1970 | self = self; | |
f6bcfd97 | 1971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_data_get",_kwnames,&_argo0)) |
8ab979d7 | 1972 | return NULL; |
1d99702e RD |
1973 | if (_argo0) { |
1974 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1975 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1976 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_get. Expected _wxListItem_p."); |
8ab979d7 RD |
1977 | return NULL; |
1978 | } | |
1979 | } | |
cf694132 RD |
1980 | { |
1981 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1982 | _result = (long )wxListItem_m_data_get(_arg0); |
cf694132 RD |
1983 | |
1984 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1985 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1986 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
1987 | return _resultobj; |
1988 | } | |
1989 | ||
f6bcfd97 BP |
1990 | #define wxListItem_m_format_set(_swigobj,_swigval) (_swigobj->m_format = _swigval,_swigval) |
1991 | static PyObject *_wrap_wxListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 1992 | PyObject * _resultobj; |
f6bcfd97 | 1993 | int _result; |
af309447 | 1994 | wxListItem * _arg0; |
f6bcfd97 | 1995 | int _arg1; |
1d99702e | 1996 | PyObject * _argo0 = 0; |
f6bcfd97 | 1997 | char *_kwnames[] = { "self","m_format", NULL }; |
af309447 RD |
1998 | |
1999 | self = self; | |
f6bcfd97 | 2000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_format_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2001 | return NULL; |
1d99702e RD |
2002 | if (_argo0) { |
2003 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2004 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 2005 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_set. Expected _wxListItem_p."); |
af309447 RD |
2006 | return NULL; |
2007 | } | |
2008 | } | |
cf694132 RD |
2009 | { |
2010 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2011 | _result = (int )wxListItem_m_format_set(_arg0,_arg1); |
cf694132 RD |
2012 | |
2013 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2014 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2015 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2016 | return _resultobj; |
2017 | } | |
2018 | ||
f6bcfd97 BP |
2019 | #define wxListItem_m_format_get(_swigobj) ((int ) _swigobj->m_format) |
2020 | static PyObject *_wrap_wxListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2021 | PyObject * _resultobj; |
f6bcfd97 | 2022 | int _result; |
8ab979d7 | 2023 | wxListItem * _arg0; |
1d99702e | 2024 | PyObject * _argo0 = 0; |
efc5f224 | 2025 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2026 | |
2027 | self = self; | |
f6bcfd97 | 2028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_format_get",_kwnames,&_argo0)) |
8ab979d7 | 2029 | return NULL; |
1d99702e RD |
2030 | if (_argo0) { |
2031 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2032 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 2033 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_get. Expected _wxListItem_p."); |
8ab979d7 RD |
2034 | return NULL; |
2035 | } | |
2036 | } | |
cf694132 RD |
2037 | { |
2038 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2039 | _result = (int )wxListItem_m_format_get(_arg0); |
cf694132 RD |
2040 | |
2041 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2042 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2043 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2044 | return _resultobj; |
2045 | } | |
2046 | ||
f6bcfd97 BP |
2047 | #define wxListItem_m_width_set(_swigobj,_swigval) (_swigobj->m_width = _swigval,_swigval) |
2048 | static PyObject *_wrap_wxListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2049 | PyObject * _resultobj; |
f6bcfd97 | 2050 | int _result; |
af309447 | 2051 | wxListItem * _arg0; |
f6bcfd97 | 2052 | int _arg1; |
1d99702e | 2053 | PyObject * _argo0 = 0; |
f6bcfd97 | 2054 | char *_kwnames[] = { "self","m_width", NULL }; |
af309447 RD |
2055 | |
2056 | self = self; | |
f6bcfd97 | 2057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_width_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2058 | return NULL; |
1d99702e RD |
2059 | if (_argo0) { |
2060 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2061 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 2062 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_set. Expected _wxListItem_p."); |
af309447 RD |
2063 | return NULL; |
2064 | } | |
2065 | } | |
cf694132 RD |
2066 | { |
2067 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2068 | _result = (int )wxListItem_m_width_set(_arg0,_arg1); |
cf694132 RD |
2069 | |
2070 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2071 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2072 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2073 | return _resultobj; |
2074 | } | |
2075 | ||
f6bcfd97 BP |
2076 | #define wxListItem_m_width_get(_swigobj) ((int ) _swigobj->m_width) |
2077 | static PyObject *_wrap_wxListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2078 | PyObject * _resultobj; |
f6bcfd97 | 2079 | int _result; |
8ab979d7 | 2080 | wxListItem * _arg0; |
1d99702e | 2081 | PyObject * _argo0 = 0; |
efc5f224 | 2082 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2083 | |
2084 | self = self; | |
f6bcfd97 | 2085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_width_get",_kwnames,&_argo0)) |
8ab979d7 | 2086 | return NULL; |
1d99702e RD |
2087 | if (_argo0) { |
2088 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2089 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 2090 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_get. Expected _wxListItem_p."); |
8ab979d7 RD |
2091 | return NULL; |
2092 | } | |
2093 | } | |
cf694132 RD |
2094 | { |
2095 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2096 | _result = (int )wxListItem_m_width_get(_arg0); |
cf694132 RD |
2097 | |
2098 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2099 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2100 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2101 | return _resultobj; |
2102 | } | |
2103 | ||
c368d904 RD |
2104 | static void *SwigwxListEventTowxNotifyEvent(void *ptr) { |
2105 | wxListEvent *src; | |
2106 | wxNotifyEvent *dest; | |
2107 | src = (wxListEvent *) ptr; | |
2108 | dest = (wxNotifyEvent *) src; | |
2109 | return (void *) dest; | |
2110 | } | |
2111 | ||
f6bcfd97 BP |
2112 | static void *SwigwxListEventTowxCommandEvent(void *ptr) { |
2113 | wxListEvent *src; | |
2114 | wxCommandEvent *dest; | |
2115 | src = (wxListEvent *) ptr; | |
2116 | dest = (wxCommandEvent *) src; | |
2117 | return (void *) dest; | |
2118 | } | |
2119 | ||
2120 | static void *SwigwxListEventTowxEvent(void *ptr) { | |
2121 | wxListEvent *src; | |
2122 | wxEvent *dest; | |
2123 | src = (wxListEvent *) ptr; | |
2124 | dest = (wxEvent *) src; | |
2125 | return (void *) dest; | |
2126 | } | |
2127 | ||
9df61a29 RD |
2128 | static void *SwigwxListEventTowxObject(void *ptr) { |
2129 | wxListEvent *src; | |
2130 | wxObject *dest; | |
2131 | src = (wxListEvent *) ptr; | |
2132 | dest = (wxObject *) src; | |
2133 | return (void *) dest; | |
2134 | } | |
2135 | ||
f6bcfd97 BP |
2136 | #define wxListEvent_m_code_set(_swigobj,_swigval) (_swigobj->m_code = _swigval,_swigval) |
2137 | static PyObject *_wrap_wxListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2138 | PyObject * _resultobj; |
f6bcfd97 BP |
2139 | int _result; |
2140 | wxListEvent * _arg0; | |
2141 | int _arg1; | |
1d99702e | 2142 | PyObject * _argo0 = 0; |
f6bcfd97 | 2143 | char *_kwnames[] = { "self","m_code", NULL }; |
af309447 RD |
2144 | |
2145 | self = self; | |
f6bcfd97 | 2146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_code_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2147 | return NULL; |
1d99702e RD |
2148 | if (_argo0) { |
2149 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2150 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2151 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_code_set. Expected _wxListEvent_p."); | |
af309447 RD |
2152 | return NULL; |
2153 | } | |
2154 | } | |
af309447 | 2155 | { |
cf694132 | 2156 | wxPy_BEGIN_ALLOW_THREADS; |
f6bcfd97 | 2157 | _result = (int )wxListEvent_m_code_set(_arg0,_arg1); |
cf694132 RD |
2158 | |
2159 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2160 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2161 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2162 | return _resultobj; |
2163 | } | |
2164 | ||
f6bcfd97 BP |
2165 | #define wxListEvent_m_code_get(_swigobj) ((int ) _swigobj->m_code) |
2166 | static PyObject *_wrap_wxListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2167 | PyObject * _resultobj; |
f6bcfd97 BP |
2168 | int _result; |
2169 | wxListEvent * _arg0; | |
1d99702e | 2170 | PyObject * _argo0 = 0; |
efc5f224 | 2171 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2172 | |
2173 | self = self; | |
f6bcfd97 | 2174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_code_get",_kwnames,&_argo0)) |
8ab979d7 | 2175 | return NULL; |
1d99702e RD |
2176 | if (_argo0) { |
2177 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2178 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2179 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_code_get. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2180 | return NULL; |
2181 | } | |
2182 | } | |
8ab979d7 | 2183 | { |
cf694132 | 2184 | wxPy_BEGIN_ALLOW_THREADS; |
f6bcfd97 | 2185 | _result = (int )wxListEvent_m_code_get(_arg0); |
cf694132 RD |
2186 | |
2187 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2188 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2189 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2190 | return _resultobj; |
2191 | } | |
2192 | ||
f6bcfd97 BP |
2193 | #define wxListEvent_m_itemIndex_set(_swigobj,_swigval) (_swigobj->m_itemIndex = _swigval,_swigval) |
2194 | static PyObject *_wrap_wxListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2195 | PyObject * _resultobj; |
f6bcfd97 BP |
2196 | long _result; |
2197 | wxListEvent * _arg0; | |
2198 | long _arg1; | |
1d99702e | 2199 | PyObject * _argo0 = 0; |
f6bcfd97 | 2200 | char *_kwnames[] = { "self","m_itemIndex", NULL }; |
af309447 RD |
2201 | |
2202 | self = self; | |
f6bcfd97 | 2203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListEvent_m_itemIndex_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2204 | return NULL; |
1d99702e RD |
2205 | if (_argo0) { |
2206 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2207 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2208 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_set. Expected _wxListEvent_p."); | |
af309447 RD |
2209 | return NULL; |
2210 | } | |
2211 | } | |
cf694132 RD |
2212 | { |
2213 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2214 | _result = (long )wxListEvent_m_itemIndex_set(_arg0,_arg1); |
cf694132 RD |
2215 | |
2216 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2217 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2218 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2219 | return _resultobj; |
2220 | } | |
2221 | ||
f6bcfd97 BP |
2222 | #define wxListEvent_m_itemIndex_get(_swigobj) ((long ) _swigobj->m_itemIndex) |
2223 | static PyObject *_wrap_wxListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2224 | PyObject * _resultobj; |
f6bcfd97 BP |
2225 | long _result; |
2226 | wxListEvent * _arg0; | |
1d99702e | 2227 | PyObject * _argo0 = 0; |
efc5f224 | 2228 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2229 | |
2230 | self = self; | |
f6bcfd97 | 2231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_itemIndex_get",_kwnames,&_argo0)) |
8ab979d7 | 2232 | return NULL; |
1d99702e RD |
2233 | if (_argo0) { |
2234 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2235 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2236 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_get. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2237 | return NULL; |
2238 | } | |
2239 | } | |
cf694132 RD |
2240 | { |
2241 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2242 | _result = (long )wxListEvent_m_itemIndex_get(_arg0); |
cf694132 RD |
2243 | |
2244 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2245 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2246 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2247 | return _resultobj; |
2248 | } | |
2249 | ||
f6bcfd97 BP |
2250 | #define wxListEvent_m_oldItemIndex_set(_swigobj,_swigval) (_swigobj->m_oldItemIndex = _swigval,_swigval) |
2251 | static PyObject *_wrap_wxListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
2252 | PyObject * _resultobj; |
2253 | long _result; | |
f6bcfd97 | 2254 | wxListEvent * _arg0; |
af309447 | 2255 | long _arg1; |
1d99702e | 2256 | PyObject * _argo0 = 0; |
f6bcfd97 | 2257 | char *_kwnames[] = { "self","m_oldItemIndex", NULL }; |
af309447 RD |
2258 | |
2259 | self = self; | |
f6bcfd97 | 2260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListEvent_m_oldItemIndex_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2261 | return NULL; |
1d99702e RD |
2262 | if (_argo0) { |
2263 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2264 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2265 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_set. Expected _wxListEvent_p."); | |
af309447 RD |
2266 | return NULL; |
2267 | } | |
2268 | } | |
cf694132 RD |
2269 | { |
2270 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2271 | _result = (long )wxListEvent_m_oldItemIndex_set(_arg0,_arg1); |
cf694132 RD |
2272 | |
2273 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2274 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2275 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2276 | return _resultobj; |
2277 | } | |
2278 | ||
f6bcfd97 BP |
2279 | #define wxListEvent_m_oldItemIndex_get(_swigobj) ((long ) _swigobj->m_oldItemIndex) |
2280 | static PyObject *_wrap_wxListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2281 | PyObject * _resultobj; |
2282 | long _result; | |
f6bcfd97 | 2283 | wxListEvent * _arg0; |
1d99702e | 2284 | PyObject * _argo0 = 0; |
efc5f224 | 2285 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2286 | |
2287 | self = self; | |
f6bcfd97 | 2288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_oldItemIndex_get",_kwnames,&_argo0)) |
8ab979d7 | 2289 | return NULL; |
1d99702e RD |
2290 | if (_argo0) { |
2291 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2292 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2293 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_get. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2294 | return NULL; |
2295 | } | |
2296 | } | |
cf694132 RD |
2297 | { |
2298 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2299 | _result = (long )wxListEvent_m_oldItemIndex_get(_arg0); |
cf694132 RD |
2300 | |
2301 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2302 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2303 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2304 | return _resultobj; |
2305 | } | |
2306 | ||
f6bcfd97 BP |
2307 | #define wxListEvent_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval) |
2308 | static PyObject *_wrap_wxListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
2309 | PyObject * _resultobj; |
2310 | int _result; | |
f6bcfd97 | 2311 | wxListEvent * _arg0; |
af309447 | 2312 | int _arg1; |
1d99702e | 2313 | PyObject * _argo0 = 0; |
f6bcfd97 | 2314 | char *_kwnames[] = { "self","m_col", NULL }; |
af309447 RD |
2315 | |
2316 | self = self; | |
f6bcfd97 | 2317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_col_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2318 | return NULL; |
1d99702e RD |
2319 | if (_argo0) { |
2320 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2321 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2322 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_set. Expected _wxListEvent_p."); | |
af309447 RD |
2323 | return NULL; |
2324 | } | |
2325 | } | |
cf694132 RD |
2326 | { |
2327 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2328 | _result = (int )wxListEvent_m_col_set(_arg0,_arg1); |
cf694132 RD |
2329 | |
2330 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2331 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2332 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2333 | return _resultobj; |
2334 | } | |
2335 | ||
f6bcfd97 BP |
2336 | #define wxListEvent_m_col_get(_swigobj) ((int ) _swigobj->m_col) |
2337 | static PyObject *_wrap_wxListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2338 | PyObject * _resultobj; |
2339 | int _result; | |
f6bcfd97 | 2340 | wxListEvent * _arg0; |
1d99702e | 2341 | PyObject * _argo0 = 0; |
efc5f224 | 2342 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2343 | |
2344 | self = self; | |
f6bcfd97 | 2345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_col_get",_kwnames,&_argo0)) |
8ab979d7 | 2346 | return NULL; |
1d99702e RD |
2347 | if (_argo0) { |
2348 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2349 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2350 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_get. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2351 | return NULL; |
2352 | } | |
2353 | } | |
cf694132 RD |
2354 | { |
2355 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2356 | _result = (int )wxListEvent_m_col_get(_arg0); |
cf694132 RD |
2357 | |
2358 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2359 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2360 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2361 | return _resultobj; |
2362 | } | |
2363 | ||
f6bcfd97 BP |
2364 | #define wxListEvent_m_cancelled_set(_swigobj,_swigval) (_swigobj->m_cancelled = _swigval,_swigval) |
2365 | static PyObject *_wrap_wxListEvent_m_cancelled_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2366 | PyObject * _resultobj; |
f6bcfd97 BP |
2367 | bool _result; |
2368 | wxListEvent * _arg0; | |
2369 | bool _arg1; | |
1d99702e | 2370 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
2371 | int tempbool1; |
2372 | char *_kwnames[] = { "self","m_cancelled", NULL }; | |
af309447 RD |
2373 | |
2374 | self = self; | |
f6bcfd97 | 2375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_cancelled_set",_kwnames,&_argo0,&tempbool1)) |
af309447 | 2376 | return NULL; |
1d99702e RD |
2377 | if (_argo0) { |
2378 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2379 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_cancelled_set. Expected _wxListEvent_p."); | |
af309447 RD |
2381 | return NULL; |
2382 | } | |
2383 | } | |
f6bcfd97 | 2384 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
2385 | { |
2386 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2387 | _result = (bool )wxListEvent_m_cancelled_set(_arg0,_arg1); |
cf694132 RD |
2388 | |
2389 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2390 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2391 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2392 | return _resultobj; |
2393 | } | |
2394 | ||
f6bcfd97 BP |
2395 | #define wxListEvent_m_cancelled_get(_swigobj) ((bool ) _swigobj->m_cancelled) |
2396 | static PyObject *_wrap_wxListEvent_m_cancelled_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2397 | PyObject * _resultobj; |
f6bcfd97 BP |
2398 | bool _result; |
2399 | wxListEvent * _arg0; | |
1d99702e | 2400 | PyObject * _argo0 = 0; |
efc5f224 | 2401 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2402 | |
2403 | self = self; | |
f6bcfd97 | 2404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_cancelled_get",_kwnames,&_argo0)) |
8ab979d7 | 2405 | return NULL; |
1d99702e RD |
2406 | if (_argo0) { |
2407 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2408 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2409 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_cancelled_get. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2410 | return NULL; |
2411 | } | |
2412 | } | |
cf694132 RD |
2413 | { |
2414 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2415 | _result = (bool )wxListEvent_m_cancelled_get(_arg0); |
cf694132 RD |
2416 | |
2417 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2418 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2419 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2420 | return _resultobj; |
2421 | } | |
2422 | ||
f6bcfd97 BP |
2423 | #define wxListEvent_m_pointDrag_set(_swigobj,_swigval) (_swigobj->m_pointDrag = *(_swigval),_swigval) |
2424 | static PyObject *_wrap_wxListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2425 | PyObject * _resultobj; |
f6bcfd97 BP |
2426 | wxPoint * _result; |
2427 | wxListEvent * _arg0; | |
2428 | wxPoint * _arg1; | |
2429 | PyObject * _argo0 = 0; | |
2430 | wxPoint temp; | |
2431 | PyObject * _obj1 = 0; | |
2432 | char *_kwnames[] = { "self","m_pointDrag", NULL }; | |
8ab979d7 RD |
2433 | char _ptemp[128]; |
2434 | ||
2435 | self = self; | |
f6bcfd97 BP |
2436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListEvent_m_pointDrag_set",_kwnames,&_argo0,&_obj1)) |
2437 | return NULL; | |
2438 | if (_argo0) { | |
2439 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2440 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2441 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_set. Expected _wxListEvent_p."); | |
2442 | return NULL; | |
2443 | } | |
2444 | } | |
2445 | { | |
2446 | _arg1 = &temp; | |
2447 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 2448 | return NULL; |
f6bcfd97 | 2449 | } |
cf694132 RD |
2450 | { |
2451 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2452 | _result = (wxPoint *)wxListEvent_m_pointDrag_set(_arg0,_arg1); |
cf694132 RD |
2453 | |
2454 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2455 | if (PyErr_Occurred()) return NULL; |
1d99702e | 2456 | } if (_result) { |
f6bcfd97 | 2457 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); |
1d99702e RD |
2458 | _resultobj = Py_BuildValue("s",_ptemp); |
2459 | } else { | |
2460 | Py_INCREF(Py_None); | |
2461 | _resultobj = Py_None; | |
2462 | } | |
8ab979d7 RD |
2463 | return _resultobj; |
2464 | } | |
2465 | ||
f6bcfd97 BP |
2466 | #define wxListEvent_m_pointDrag_get(_swigobj) (&_swigobj->m_pointDrag) |
2467 | static PyObject *_wrap_wxListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2468 | PyObject * _resultobj; |
f6bcfd97 BP |
2469 | wxPoint * _result; |
2470 | wxListEvent * _arg0; | |
1d99702e | 2471 | PyObject * _argo0 = 0; |
efc5f224 | 2472 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 2473 | char _ptemp[128]; |
8ab979d7 RD |
2474 | |
2475 | self = self; | |
f6bcfd97 | 2476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_pointDrag_get",_kwnames,&_argo0)) |
8ab979d7 | 2477 | return NULL; |
1d99702e RD |
2478 | if (_argo0) { |
2479 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2480 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2481 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_get. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2482 | return NULL; |
2483 | } | |
2484 | } | |
cf694132 RD |
2485 | { |
2486 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2487 | _result = (wxPoint *)wxListEvent_m_pointDrag_get(_arg0); |
cf694132 RD |
2488 | |
2489 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2490 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2491 | } if (_result) { |
2492 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
2493 | _resultobj = Py_BuildValue("s",_ptemp); | |
2494 | } else { | |
2495 | Py_INCREF(Py_None); | |
2496 | _resultobj = Py_None; | |
2497 | } | |
8ab979d7 RD |
2498 | return _resultobj; |
2499 | } | |
2500 | ||
f6bcfd97 BP |
2501 | #define wxListEvent_m_item_set(_swigobj,_swigval) (_swigobj->m_item = *(_swigval),_swigval) |
2502 | static PyObject *_wrap_wxListEvent_m_item_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2503 | PyObject * _resultobj; | |
2504 | wxListItem * _result; | |
2505 | wxListEvent * _arg0; | |
2506 | wxListItem * _arg1; | |
2507 | PyObject * _argo0 = 0; | |
2508 | PyObject * _argo1 = 0; | |
2509 | char *_kwnames[] = { "self","m_item", NULL }; | |
8ab979d7 | 2510 | |
f6bcfd97 BP |
2511 | self = self; |
2512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListEvent_m_item_set",_kwnames,&_argo0,&_argo1)) | |
2513 | return NULL; | |
2514 | if (_argo0) { | |
2515 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2516 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2517 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_set. Expected _wxListEvent_p."); | |
2518 | return NULL; | |
2519 | } | |
2520 | } | |
2521 | if (_argo1) { | |
2522 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2523 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
2524 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListEvent_m_item_set. Expected _wxListItem_p."); | |
2525 | return NULL; | |
2526 | } | |
2527 | } | |
2528 | { | |
2529 | wxPy_BEGIN_ALLOW_THREADS; | |
2530 | _result = (wxListItem *)wxListEvent_m_item_set(_arg0,_arg1); | |
2531 | ||
2532 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2533 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 2534 | }{ _resultobj = wxPyMake_wxObject(_result); } |
f6bcfd97 | 2535 | return _resultobj; |
8ab979d7 RD |
2536 | } |
2537 | ||
f6bcfd97 BP |
2538 | #define wxListEvent_m_item_get(_swigobj) (&_swigobj->m_item) |
2539 | static PyObject *_wrap_wxListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2540 | PyObject * _resultobj; |
f6bcfd97 | 2541 | wxListItem * _result; |
af309447 | 2542 | wxListEvent * _arg0; |
1d99702e | 2543 | PyObject * _argo0 = 0; |
f6bcfd97 | 2544 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2545 | |
2546 | self = self; | |
f6bcfd97 | 2547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_item_get",_kwnames,&_argo0)) |
af309447 | 2548 | return NULL; |
1d99702e RD |
2549 | if (_argo0) { |
2550 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2551 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2552 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_get. Expected _wxListEvent_p."); |
af309447 RD |
2553 | return NULL; |
2554 | } | |
2555 | } | |
cf694132 RD |
2556 | { |
2557 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2558 | _result = (wxListItem *)wxListEvent_m_item_get(_arg0); |
cf694132 RD |
2559 | |
2560 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2561 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 2562 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
2563 | return _resultobj; |
2564 | } | |
2565 | ||
f6bcfd97 BP |
2566 | #define wxListEvent_GetCode(_swigobj) (_swigobj->GetCode()) |
2567 | static PyObject *_wrap_wxListEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2568 | PyObject * _resultobj; |
2569 | int _result; | |
2570 | wxListEvent * _arg0; | |
1d99702e | 2571 | PyObject * _argo0 = 0; |
efc5f224 | 2572 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2573 | |
2574 | self = self; | |
f6bcfd97 | 2575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCode",_kwnames,&_argo0)) |
8ab979d7 | 2576 | return NULL; |
1d99702e RD |
2577 | if (_argo0) { |
2578 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2579 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2580 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCode. Expected _wxListEvent_p."); |
8ab979d7 RD |
2581 | return NULL; |
2582 | } | |
2583 | } | |
cf694132 RD |
2584 | { |
2585 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2586 | _result = (int )wxListEvent_GetCode(_arg0); |
cf694132 RD |
2587 | |
2588 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2589 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2590 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2591 | return _resultobj; |
2592 | } | |
2593 | ||
f6bcfd97 BP |
2594 | #define wxListEvent_GetIndex(_swigobj) (_swigobj->GetIndex()) |
2595 | static PyObject *_wrap_wxListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
2596 | PyObject * _resultobj; |
2597 | long _result; | |
2598 | wxListEvent * _arg0; | |
1d99702e | 2599 | PyObject * _argo0 = 0; |
f6bcfd97 | 2600 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2601 | |
2602 | self = self; | |
f6bcfd97 | 2603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetIndex",_kwnames,&_argo0)) |
af309447 | 2604 | return NULL; |
1d99702e RD |
2605 | if (_argo0) { |
2606 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2607 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2608 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetIndex. Expected _wxListEvent_p."); |
af309447 RD |
2609 | return NULL; |
2610 | } | |
2611 | } | |
cf694132 RD |
2612 | { |
2613 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2614 | _result = (long )wxListEvent_GetIndex(_arg0); |
cf694132 RD |
2615 | |
2616 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2617 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2618 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2619 | return _resultobj; |
2620 | } | |
2621 | ||
f6bcfd97 BP |
2622 | #define wxListEvent_GetOldIndex(_swigobj) (_swigobj->GetOldIndex()) |
2623 | static PyObject *_wrap_wxListEvent_GetOldIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2624 | PyObject * _resultobj; |
2625 | long _result; | |
2626 | wxListEvent * _arg0; | |
1d99702e | 2627 | PyObject * _argo0 = 0; |
efc5f224 | 2628 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2629 | |
2630 | self = self; | |
f6bcfd97 | 2631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetOldIndex",_kwnames,&_argo0)) |
8ab979d7 | 2632 | return NULL; |
1d99702e RD |
2633 | if (_argo0) { |
2634 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2635 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2636 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetOldIndex. Expected _wxListEvent_p."); |
8ab979d7 RD |
2637 | return NULL; |
2638 | } | |
2639 | } | |
cf694132 RD |
2640 | { |
2641 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2642 | _result = (long )wxListEvent_GetOldIndex(_arg0); |
cf694132 RD |
2643 | |
2644 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2645 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2646 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2647 | return _resultobj; |
2648 | } | |
2649 | ||
f6bcfd97 BP |
2650 | #define wxListEvent_GetOldItem(_swigobj) (_swigobj->GetOldItem()) |
2651 | static PyObject *_wrap_wxListEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
2652 | PyObject * _resultobj; |
2653 | long _result; | |
2654 | wxListEvent * _arg0; | |
1d99702e | 2655 | PyObject * _argo0 = 0; |
f6bcfd97 | 2656 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2657 | |
2658 | self = self; | |
f6bcfd97 | 2659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetOldItem",_kwnames,&_argo0)) |
af309447 | 2660 | return NULL; |
1d99702e RD |
2661 | if (_argo0) { |
2662 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2663 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2664 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetOldItem. Expected _wxListEvent_p."); |
af309447 RD |
2665 | return NULL; |
2666 | } | |
2667 | } | |
cf694132 RD |
2668 | { |
2669 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2670 | _result = (long )wxListEvent_GetOldItem(_arg0); |
cf694132 RD |
2671 | |
2672 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2673 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2674 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2675 | return _resultobj; |
2676 | } | |
2677 | ||
f6bcfd97 BP |
2678 | #define wxListEvent_GetColumn(_swigobj) (_swigobj->GetColumn()) |
2679 | static PyObject *_wrap_wxListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2680 | PyObject * _resultobj; |
f6bcfd97 | 2681 | int _result; |
8ab979d7 | 2682 | wxListEvent * _arg0; |
1d99702e | 2683 | PyObject * _argo0 = 0; |
efc5f224 | 2684 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2685 | |
2686 | self = self; | |
f6bcfd97 | 2687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetColumn",_kwnames,&_argo0)) |
8ab979d7 | 2688 | return NULL; |
1d99702e RD |
2689 | if (_argo0) { |
2690 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2691 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2692 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetColumn. Expected _wxListEvent_p."); |
8ab979d7 RD |
2693 | return NULL; |
2694 | } | |
2695 | } | |
cf694132 RD |
2696 | { |
2697 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2698 | _result = (int )wxListEvent_GetColumn(_arg0); |
cf694132 RD |
2699 | |
2700 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2701 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2702 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2703 | return _resultobj; |
2704 | } | |
2705 | ||
f6bcfd97 BP |
2706 | #define wxListEvent_Cancelled(_swigobj) (_swigobj->Cancelled()) |
2707 | static PyObject *_wrap_wxListEvent_Cancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2708 | PyObject * _resultobj; |
f6bcfd97 | 2709 | bool _result; |
af309447 | 2710 | wxListEvent * _arg0; |
1d99702e | 2711 | PyObject * _argo0 = 0; |
f6bcfd97 | 2712 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2713 | |
2714 | self = self; | |
f6bcfd97 | 2715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_Cancelled",_kwnames,&_argo0)) |
af309447 | 2716 | return NULL; |
1d99702e RD |
2717 | if (_argo0) { |
2718 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2719 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2720 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_Cancelled. Expected _wxListEvent_p."); |
af309447 RD |
2721 | return NULL; |
2722 | } | |
2723 | } | |
cf694132 RD |
2724 | { |
2725 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2726 | _result = (bool )wxListEvent_Cancelled(_arg0); |
cf694132 RD |
2727 | |
2728 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2729 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2730 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2731 | return _resultobj; |
2732 | } | |
2733 | ||
f6bcfd97 BP |
2734 | #define wxListEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) |
2735 | static PyObject *_wrap_wxListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2736 | PyObject * _resultobj; |
f6bcfd97 | 2737 | wxPoint * _result; |
8ab979d7 | 2738 | wxListEvent * _arg0; |
1d99702e | 2739 | PyObject * _argo0 = 0; |
efc5f224 | 2740 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 2741 | char _ptemp[128]; |
8ab979d7 RD |
2742 | |
2743 | self = self; | |
f6bcfd97 | 2744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetPoint",_kwnames,&_argo0)) |
8ab979d7 | 2745 | return NULL; |
1d99702e RD |
2746 | if (_argo0) { |
2747 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2748 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2749 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetPoint. Expected _wxListEvent_p."); |
8ab979d7 RD |
2750 | return NULL; |
2751 | } | |
2752 | } | |
cf694132 RD |
2753 | { |
2754 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2755 | _result = new wxPoint (wxListEvent_GetPoint(_arg0)); |
cf694132 RD |
2756 | |
2757 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2758 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2759 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
2760 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
2761 | return _resultobj; |
2762 | } | |
2763 | ||
f6bcfd97 BP |
2764 | #define wxListEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) |
2765 | static PyObject *_wrap_wxListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2766 | PyObject * _resultobj; |
f6bcfd97 | 2767 | wxString * _result; |
af309447 | 2768 | wxListEvent * _arg0; |
1d99702e | 2769 | PyObject * _argo0 = 0; |
f6bcfd97 | 2770 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2771 | |
2772 | self = self; | |
f6bcfd97 | 2773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetLabel",_kwnames,&_argo0)) |
af309447 | 2774 | return NULL; |
1d99702e RD |
2775 | if (_argo0) { |
2776 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2777 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetLabel. Expected _wxListEvent_p."); |
af309447 RD |
2779 | return NULL; |
2780 | } | |
2781 | } | |
cf694132 RD |
2782 | { |
2783 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
2784 | const wxString & _result_ref = wxListEvent_GetLabel(_arg0); |
2785 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
2786 | |
2787 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2788 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2789 | }{ |
2790 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2791 | } | |
af309447 RD |
2792 | return _resultobj; |
2793 | } | |
2794 | ||
f6bcfd97 BP |
2795 | #define wxListEvent_GetText(_swigobj) (_swigobj->GetText()) |
2796 | static PyObject *_wrap_wxListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2797 | PyObject * _resultobj; |
f6bcfd97 | 2798 | wxString * _result; |
8ab979d7 | 2799 | wxListEvent * _arg0; |
1d99702e | 2800 | PyObject * _argo0 = 0; |
efc5f224 | 2801 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2802 | |
2803 | self = self; | |
f6bcfd97 | 2804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetText",_kwnames,&_argo0)) |
8ab979d7 | 2805 | return NULL; |
1d99702e RD |
2806 | if (_argo0) { |
2807 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2808 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2809 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetText. Expected _wxListEvent_p."); |
8ab979d7 RD |
2810 | return NULL; |
2811 | } | |
2812 | } | |
cf694132 RD |
2813 | { |
2814 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
2815 | const wxString & _result_ref = wxListEvent_GetText(_arg0); |
2816 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
2817 | |
2818 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2819 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2820 | }{ |
2821 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2822 | } | |
8ab979d7 RD |
2823 | return _resultobj; |
2824 | } | |
2825 | ||
f6bcfd97 BP |
2826 | #define wxListEvent_GetImage(_swigobj) (_swigobj->GetImage()) |
2827 | static PyObject *_wrap_wxListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2828 | PyObject * _resultobj; |
f6bcfd97 | 2829 | int _result; |
af309447 | 2830 | wxListEvent * _arg0; |
1d99702e | 2831 | PyObject * _argo0 = 0; |
f6bcfd97 | 2832 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2833 | |
2834 | self = self; | |
f6bcfd97 | 2835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetImage",_kwnames,&_argo0)) |
af309447 | 2836 | return NULL; |
1d99702e RD |
2837 | if (_argo0) { |
2838 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2839 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2840 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetImage. Expected _wxListEvent_p."); |
af309447 RD |
2841 | return NULL; |
2842 | } | |
2843 | } | |
cf694132 RD |
2844 | { |
2845 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2846 | _result = (int )wxListEvent_GetImage(_arg0); |
cf694132 RD |
2847 | |
2848 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2849 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2850 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2851 | return _resultobj; |
2852 | } | |
2853 | ||
f6bcfd97 BP |
2854 | #define wxListEvent_GetData(_swigobj) (_swigobj->GetData()) |
2855 | static PyObject *_wrap_wxListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2856 | PyObject * _resultobj; |
f6bcfd97 | 2857 | long _result; |
8ab979d7 | 2858 | wxListEvent * _arg0; |
1d99702e | 2859 | PyObject * _argo0 = 0; |
efc5f224 | 2860 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2861 | |
2862 | self = self; | |
f6bcfd97 | 2863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetData",_kwnames,&_argo0)) |
8ab979d7 | 2864 | return NULL; |
1d99702e RD |
2865 | if (_argo0) { |
2866 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2867 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2868 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetData. Expected _wxListEvent_p."); |
8ab979d7 RD |
2869 | return NULL; |
2870 | } | |
2871 | } | |
cf694132 RD |
2872 | { |
2873 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2874 | _result = (long )wxListEvent_GetData(_arg0); |
cf694132 RD |
2875 | |
2876 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2877 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2878 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2879 | return _resultobj; |
2880 | } | |
2881 | ||
f6bcfd97 BP |
2882 | #define wxListEvent_GetMask(_swigobj) (_swigobj->GetMask()) |
2883 | static PyObject *_wrap_wxListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2884 | PyObject * _resultobj; |
f6bcfd97 | 2885 | long _result; |
af309447 | 2886 | wxListEvent * _arg0; |
1d99702e | 2887 | PyObject * _argo0 = 0; |
f6bcfd97 | 2888 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2889 | |
2890 | self = self; | |
f6bcfd97 | 2891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetMask",_kwnames,&_argo0)) |
af309447 | 2892 | return NULL; |
1d99702e RD |
2893 | if (_argo0) { |
2894 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2895 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2896 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetMask. Expected _wxListEvent_p."); |
af309447 RD |
2897 | return NULL; |
2898 | } | |
2899 | } | |
cf694132 RD |
2900 | { |
2901 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2902 | _result = (long )wxListEvent_GetMask(_arg0); |
cf694132 RD |
2903 | |
2904 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2905 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2906 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2907 | return _resultobj; |
2908 | } | |
2909 | ||
f6bcfd97 BP |
2910 | #define wxListEvent_GetItem(_swigobj) (_swigobj->GetItem()) |
2911 | static PyObject *_wrap_wxListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2912 | PyObject * _resultobj; |
2913 | wxListItem * _result; | |
2914 | wxListEvent * _arg0; | |
1d99702e | 2915 | PyObject * _argo0 = 0; |
efc5f224 | 2916 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2917 | |
2918 | self = self; | |
f6bcfd97 | 2919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetItem",_kwnames,&_argo0)) |
8ab979d7 | 2920 | return NULL; |
1d99702e RD |
2921 | if (_argo0) { |
2922 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2923 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2924 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetItem. Expected _wxListEvent_p."); |
8ab979d7 RD |
2925 | return NULL; |
2926 | } | |
2927 | } | |
cf694132 RD |
2928 | { |
2929 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
2930 | const wxListItem & _result_ref = wxListEvent_GetItem(_arg0); |
2931 | _result = (wxListItem *) &_result_ref; | |
cf694132 RD |
2932 | |
2933 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2934 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 2935 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
2936 | return _resultobj; |
2937 | } | |
2938 | ||
cd096152 RD |
2939 | static void *SwigwxPyListCtrlTowxControl(void *ptr) { |
2940 | wxPyListCtrl *src; | |
8ab979d7 | 2941 | wxControl *dest; |
cd096152 | 2942 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
2943 | dest = (wxControl *) src; |
2944 | return (void *) dest; | |
2945 | } | |
2946 | ||
cd096152 RD |
2947 | static void *SwigwxPyListCtrlTowxWindow(void *ptr) { |
2948 | wxPyListCtrl *src; | |
8ab979d7 | 2949 | wxWindow *dest; |
cd096152 | 2950 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
2951 | dest = (wxWindow *) src; |
2952 | return (void *) dest; | |
2953 | } | |
2954 | ||
cd096152 RD |
2955 | static void *SwigwxPyListCtrlTowxEvtHandler(void *ptr) { |
2956 | wxPyListCtrl *src; | |
8ab979d7 | 2957 | wxEvtHandler *dest; |
cd096152 | 2958 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
2959 | dest = (wxEvtHandler *) src; |
2960 | return (void *) dest; | |
2961 | } | |
2962 | ||
cd096152 RD |
2963 | static void *SwigwxPyListCtrlTowxObject(void *ptr) { |
2964 | wxPyListCtrl *src; | |
9df61a29 | 2965 | wxObject *dest; |
cd096152 | 2966 | src = (wxPyListCtrl *) ptr; |
9df61a29 RD |
2967 | dest = (wxObject *) src; |
2968 | return (void *) dest; | |
2969 | } | |
2970 | ||
cd096152 | 2971 | #define new_wxListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 2972 | static PyObject *_wrap_new_wxListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 2973 | PyObject * _resultobj; |
cd096152 | 2974 | wxPyListCtrl * _result; |
8ab979d7 | 2975 | wxWindow * _arg0; |
cd096152 | 2976 | wxWindowID _arg1 = (wxWindowID ) -1; |
b68dc582 RD |
2977 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
2978 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2c8a649d | 2979 | long _arg4 = (long ) (wxLC_ICON); |
b68dc582 | 2980 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
2981 | char * _arg6 = (char *) "listCtrl"; |
2982 | PyObject * _argo0 = 0; | |
2f90df85 RD |
2983 | wxPoint temp; |
2984 | PyObject * _obj2 = 0; | |
2985 | wxSize temp0; | |
2986 | PyObject * _obj3 = 0; | |
1d99702e | 2987 | PyObject * _argo5 = 0; |
efc5f224 | 2988 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
2989 | char _ptemp[128]; |
2990 | ||
2991 | self = self; | |
cd096152 | 2992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) |
8ab979d7 | 2993 | return NULL; |
1d99702e RD |
2994 | if (_argo0) { |
2995 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2996 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2997 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListCtrl. Expected _wxWindow_p."); |
2998 | return NULL; | |
2999 | } | |
3000 | } | |
2f90df85 RD |
3001 | if (_obj2) |
3002 | { | |
3003 | _arg2 = &temp; | |
3004 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 3005 | return NULL; |
2f90df85 RD |
3006 | } |
3007 | if (_obj3) | |
3008 | { | |
3009 | _arg3 = &temp0; | |
3010 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 3011 | return NULL; |
2f90df85 | 3012 | } |
1d99702e RD |
3013 | if (_argo5) { |
3014 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
3015 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
8ab979d7 RD |
3016 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListCtrl. Expected _wxValidator_p."); |
3017 | return NULL; | |
3018 | } | |
3019 | } | |
cf694132 RD |
3020 | { |
3021 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3022 | _result = (wxPyListCtrl *)new_wxListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); |
cf694132 RD |
3023 | |
3024 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3025 | if (PyErr_Occurred()) return NULL; |
1d99702e | 3026 | } if (_result) { |
cd096152 | 3027 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyListCtrl_p"); |
1d99702e RD |
3028 | _resultobj = Py_BuildValue("s",_ptemp); |
3029 | } else { | |
3030 | Py_INCREF(Py_None); | |
3031 | _resultobj = Py_None; | |
3032 | } | |
8ab979d7 RD |
3033 | return _resultobj; |
3034 | } | |
3035 | ||
cd096152 RD |
3036 | #define wxListCtrl__setSelf(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setSelf(_swigarg0,_swigarg1)) |
3037 | static PyObject *_wrap_wxListCtrl__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3038 | PyObject * _resultobj; |
cd096152 RD |
3039 | wxPyListCtrl * _arg0; |
3040 | PyObject * _arg1; | |
3041 | PyObject * _arg2; | |
1d99702e | 3042 | PyObject * _argo0 = 0; |
cd096152 RD |
3043 | PyObject * _obj1 = 0; |
3044 | PyObject * _obj2 = 0; | |
3045 | char *_kwnames[] = { "self","self","_class", NULL }; | |
8ab979d7 RD |
3046 | |
3047 | self = self; | |
cd096152 | 3048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxListCtrl__setSelf",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 3049 | return NULL; |
1d99702e RD |
3050 | if (_argo0) { |
3051 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3052 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3053 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl__setSelf. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3054 | return NULL; |
3055 | } | |
3056 | } | |
cd096152 RD |
3057 | { |
3058 | _arg1 = _obj1; | |
3059 | } | |
3060 | { | |
3061 | _arg2 = _obj2; | |
3062 | } | |
cf694132 RD |
3063 | { |
3064 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3065 | wxListCtrl__setSelf(_arg0,_arg1,_arg2); |
cf694132 RD |
3066 | |
3067 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3068 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
3069 | } Py_INCREF(Py_None); |
3070 | _resultobj = Py_None; | |
8ab979d7 RD |
3071 | return _resultobj; |
3072 | } | |
3073 | ||
cd096152 RD |
3074 | #define wxListCtrl_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) |
3075 | static PyObject *_wrap_wxListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c4165ad | 3076 | PyObject * _resultobj; |
cd096152 RD |
3077 | bool _result; |
3078 | wxPyListCtrl * _arg0; | |
3079 | wxColour * _arg1; | |
9c4165ad | 3080 | PyObject * _argo0 = 0; |
cd096152 RD |
3081 | wxColour temp; |
3082 | PyObject * _obj1 = 0; | |
3083 | char *_kwnames[] = { "self","col", NULL }; | |
9c4165ad RD |
3084 | |
3085 | self = self; | |
cd096152 | 3086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
9c4165ad RD |
3087 | return NULL; |
3088 | if (_argo0) { | |
3089 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3090 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3091 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetForegroundColour. Expected _wxPyListCtrl_p."); | |
9c4165ad RD |
3092 | return NULL; |
3093 | } | |
3094 | } | |
cd096152 RD |
3095 | { |
3096 | _arg1 = &temp; | |
3097 | if (! wxColour_helper(_obj1, &_arg1)) | |
3098 | return NULL; | |
3099 | } | |
3100 | { | |
3101 | wxPy_BEGIN_ALLOW_THREADS; | |
3102 | _result = (bool )wxListCtrl_SetForegroundColour(_arg0,*_arg1); | |
3103 | ||
3104 | wxPy_END_ALLOW_THREADS; | |
3105 | if (PyErr_Occurred()) return NULL; | |
3106 | } _resultobj = Py_BuildValue("i",_result); | |
3107 | return _resultobj; | |
3108 | } | |
3109 | ||
3110 | #define wxListCtrl_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
3111 | static PyObject *_wrap_wxListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3112 | PyObject * _resultobj; | |
3113 | bool _result; | |
3114 | wxPyListCtrl * _arg0; | |
3115 | wxColour * _arg1; | |
3116 | PyObject * _argo0 = 0; | |
3117 | wxColour temp; | |
3118 | PyObject * _obj1 = 0; | |
3119 | char *_kwnames[] = { "self","col", NULL }; | |
3120 | ||
3121 | self = self; | |
3122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
3123 | return NULL; | |
3124 | if (_argo0) { | |
3125 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3126 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3127 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetBackgroundColour. Expected _wxPyListCtrl_p."); | |
9c4165ad RD |
3128 | return NULL; |
3129 | } | |
3130 | } | |
cd096152 RD |
3131 | { |
3132 | _arg1 = &temp; | |
3133 | if (! wxColour_helper(_obj1, &_arg1)) | |
3134 | return NULL; | |
3135 | } | |
9c4165ad RD |
3136 | { |
3137 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3138 | _result = (bool )wxListCtrl_SetBackgroundColour(_arg0,*_arg1); |
9c4165ad RD |
3139 | |
3140 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3141 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3142 | } _resultobj = Py_BuildValue("i",_result); |
9c4165ad RD |
3143 | return _resultobj; |
3144 | } | |
3145 | ||
cd096152 RD |
3146 | #define wxListCtrl_GetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetColumn(_swigarg0,_swigarg1)) |
3147 | static PyObject *_wrap_wxListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3148 | PyObject * _resultobj; |
3149 | bool _result; | |
cd096152 RD |
3150 | wxPyListCtrl * _arg0; |
3151 | int _arg1; | |
3152 | wxListItem * _arg2; | |
1d99702e | 3153 | PyObject * _argo0 = 0; |
cd096152 RD |
3154 | PyObject * _argo2 = 0; |
3155 | char *_kwnames[] = { "self","col","item", NULL }; | |
8ab979d7 RD |
3156 | |
3157 | self = self; | |
cd096152 | 3158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_GetColumn",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 3159 | return NULL; |
1d99702e RD |
3160 | if (_argo0) { |
3161 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3162 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3163 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumn. Expected _wxPyListCtrl_p."); | |
3164 | return NULL; | |
3165 | } | |
3166 | } | |
3167 | if (_argo2) { | |
3168 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3169 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
3170 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_GetColumn. Expected _wxListItem_p."); | |
8ab979d7 RD |
3171 | return NULL; |
3172 | } | |
3173 | } | |
cf694132 RD |
3174 | { |
3175 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3176 | _result = (bool )wxListCtrl_GetColumn(_arg0,_arg1,*_arg2); |
cf694132 RD |
3177 | |
3178 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3179 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3180 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3181 | return _resultobj; |
3182 | } | |
3183 | ||
cd096152 RD |
3184 | #define wxListCtrl_SetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumn(_swigarg0,_swigarg1)) |
3185 | static PyObject *_wrap_wxListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3186 | PyObject * _resultobj; |
3187 | bool _result; | |
cd096152 RD |
3188 | wxPyListCtrl * _arg0; |
3189 | int _arg1; | |
3190 | wxListItem * _arg2; | |
1d99702e | 3191 | PyObject * _argo0 = 0; |
cd096152 RD |
3192 | PyObject * _argo2 = 0; |
3193 | char *_kwnames[] = { "self","col","item", NULL }; | |
8ab979d7 RD |
3194 | |
3195 | self = self; | |
cd096152 | 3196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_SetColumn",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 3197 | return NULL; |
1d99702e RD |
3198 | if (_argo0) { |
3199 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3200 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3201 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumn. Expected _wxPyListCtrl_p."); | |
3202 | return NULL; | |
3203 | } | |
3204 | } | |
3205 | if (_argo2) { | |
3206 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3207 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
3208 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_SetColumn. Expected _wxListItem_p."); | |
8ab979d7 RD |
3209 | return NULL; |
3210 | } | |
3211 | } | |
cf694132 RD |
3212 | { |
3213 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3214 | _result = (bool )wxListCtrl_SetColumn(_arg0,_arg1,*_arg2); |
cf694132 RD |
3215 | |
3216 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3217 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3218 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3219 | return _resultobj; |
3220 | } | |
3221 | ||
cd096152 RD |
3222 | #define wxListCtrl_GetColumnWidth(_swigobj,_swigarg0) (_swigobj->GetColumnWidth(_swigarg0)) |
3223 | static PyObject *_wrap_wxListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3224 | PyObject * _resultobj; |
cd096152 RD |
3225 | int _result; |
3226 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3227 | int _arg1; |
1d99702e | 3228 | PyObject * _argo0 = 0; |
efc5f224 | 3229 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
3230 | |
3231 | self = self; | |
cd096152 | 3232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetColumnWidth",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3233 | return NULL; |
1d99702e RD |
3234 | if (_argo0) { |
3235 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3236 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3237 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnWidth. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3238 | return NULL; |
3239 | } | |
3240 | } | |
cf694132 RD |
3241 | { |
3242 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3243 | _result = (int )wxListCtrl_GetColumnWidth(_arg0,_arg1); |
cf694132 RD |
3244 | |
3245 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3246 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3247 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3248 | return _resultobj; |
3249 | } | |
3250 | ||
cd096152 RD |
3251 | #define wxListCtrl_SetColumnWidth(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnWidth(_swigarg0,_swigarg1)) |
3252 | static PyObject *_wrap_wxListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3253 | PyObject * _resultobj; |
3254 | bool _result; | |
cd096152 RD |
3255 | wxPyListCtrl * _arg0; |
3256 | int _arg1; | |
3257 | int _arg2; | |
1d99702e | 3258 | PyObject * _argo0 = 0; |
cd096152 | 3259 | char *_kwnames[] = { "self","col","width", NULL }; |
8ab979d7 RD |
3260 | |
3261 | self = self; | |
cd096152 | 3262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_SetColumnWidth",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3263 | return NULL; |
1d99702e RD |
3264 | if (_argo0) { |
3265 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3266 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumnWidth. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3268 | return NULL; |
3269 | } | |
3270 | } | |
cf694132 RD |
3271 | { |
3272 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3273 | _result = (bool )wxListCtrl_SetColumnWidth(_arg0,_arg1,_arg2); |
cf694132 RD |
3274 | |
3275 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3276 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3277 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3278 | return _resultobj; |
3279 | } | |
3280 | ||
cd096152 RD |
3281 | #define wxListCtrl_GetCountPerPage(_swigobj) (_swigobj->GetCountPerPage()) |
3282 | static PyObject *_wrap_wxListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3283 | PyObject * _resultobj; |
cd096152 RD |
3284 | int _result; |
3285 | wxPyListCtrl * _arg0; | |
1d99702e | 3286 | PyObject * _argo0 = 0; |
efc5f224 | 3287 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3288 | |
3289 | self = self; | |
cd096152 | 3290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetCountPerPage",_kwnames,&_argo0)) |
8ab979d7 | 3291 | return NULL; |
1d99702e RD |
3292 | if (_argo0) { |
3293 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3294 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3295 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetCountPerPage. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3296 | return NULL; |
3297 | } | |
3298 | } | |
cf694132 RD |
3299 | { |
3300 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3301 | _result = (int )wxListCtrl_GetCountPerPage(_arg0); |
cf694132 RD |
3302 | |
3303 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3304 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3305 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3306 | return _resultobj; |
3307 | } | |
3308 | ||
cd096152 RD |
3309 | static wxListItem * wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col) { |
3310 | wxListItem* info = new wxListItem; | |
3311 | info->m_itemId = itemId; | |
3312 | info->m_col = col; | |
3313 | info->m_mask = 0xFFFF; | |
3314 | self->GetItem(*info); | |
3315 | return info; | |
3316 | } | |
3317 | static PyObject *_wrap_wxListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3318 | PyObject * _resultobj; |
cd096152 RD |
3319 | wxListItem * _result; |
3320 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3321 | long _arg1; |
cd096152 | 3322 | int _arg2 = (int ) 0; |
1d99702e | 3323 | PyObject * _argo0 = 0; |
cd096152 | 3324 | char *_kwnames[] = { "self","itemId","col", NULL }; |
8ab979d7 RD |
3325 | |
3326 | self = self; | |
cd096152 | 3327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItem",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3328 | return NULL; |
1d99702e RD |
3329 | if (_argo0) { |
3330 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3331 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3332 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3333 | return NULL; |
3334 | } | |
3335 | } | |
cf694132 RD |
3336 | { |
3337 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3338 | _result = (wxListItem *)wxPyListCtrl_GetItem(_arg0,_arg1,_arg2); |
cf694132 RD |
3339 | |
3340 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3341 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3342 | }{ _resultobj = wxPyMake_wxObject(_result); } |
be4d9c1f RD |
3343 | return _resultobj; |
3344 | } | |
3345 | ||
cd096152 RD |
3346 | #define wxListCtrl_SetItem(_swigobj,_swigarg0) (_swigobj->SetItem(_swigarg0)) |
3347 | static PyObject *_wrap_wxListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3348 | PyObject * _resultobj; |
3349 | bool _result; | |
cd096152 RD |
3350 | wxPyListCtrl * _arg0; |
3351 | wxListItem * _arg1; | |
1d99702e | 3352 | PyObject * _argo0 = 0; |
cd096152 RD |
3353 | PyObject * _argo1 = 0; |
3354 | char *_kwnames[] = { "self","info", NULL }; | |
8ab979d7 RD |
3355 | |
3356 | self = self; | |
cd096152 | 3357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3358 | return NULL; |
1d99702e RD |
3359 | if (_argo0) { |
3360 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3361 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3362 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItem. Expected _wxPyListCtrl_p."); | |
3363 | return NULL; | |
3364 | } | |
3365 | } | |
3366 | if (_argo1) { | |
3367 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3368 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
3369 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetItem. Expected _wxListItem_p."); | |
8ab979d7 RD |
3370 | return NULL; |
3371 | } | |
3372 | } | |
cf694132 RD |
3373 | { |
3374 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3375 | _result = (bool )wxListCtrl_SetItem(_arg0,*_arg1); |
cf694132 RD |
3376 | |
3377 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3378 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3379 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3380 | return _resultobj; |
3381 | } | |
3382 | ||
cd096152 RD |
3383 | #define wxListCtrl_SetStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
3384 | static PyObject *_wrap_wxListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3385 | PyObject * _resultobj; |
3386 | long _result; | |
cd096152 | 3387 | wxPyListCtrl * _arg0; |
8ab979d7 | 3388 | long _arg1; |
cd096152 RD |
3389 | int _arg2; |
3390 | wxString * _arg3; | |
3391 | int _arg4 = (int ) -1; | |
1d99702e | 3392 | PyObject * _argo0 = 0; |
cd096152 RD |
3393 | PyObject * _obj3 = 0; |
3394 | char *_kwnames[] = { "self","index","col","label","imageId", NULL }; | |
8ab979d7 RD |
3395 | |
3396 | self = self; | |
cd096152 | 3397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OliO|i:wxListCtrl_SetStringItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) |
8ab979d7 | 3398 | return NULL; |
1d99702e RD |
3399 | if (_argo0) { |
3400 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3401 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3402 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetStringItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3403 | return NULL; |
3404 | } | |
3405 | } | |
3406 | { | |
2cd2fac8 RD |
3407 | #if PYTHON_API_VERSION >= 1009 |
3408 | char* tmpPtr; int tmpSize; | |
cd096152 | 3409 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { |
7a446686 | 3410 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
3411 | return NULL; |
3412 | } | |
cd096152 | 3413 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) |
2cd2fac8 | 3414 | return NULL; |
cd096152 | 3415 | _arg3 = new wxString(tmpPtr, tmpSize); |
2cd2fac8 | 3416 | #else |
cd096152 | 3417 | if (!PyString_Check(_obj3)) { |
8ab979d7 RD |
3418 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
3419 | return NULL; | |
3420 | } | |
cd096152 | 3421 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
2cd2fac8 | 3422 | #endif |
8ab979d7 | 3423 | } |
cf694132 RD |
3424 | { |
3425 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3426 | _result = (long )wxListCtrl_SetStringItem(_arg0,_arg1,_arg2,*_arg3,_arg4); |
cf694132 RD |
3427 | |
3428 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3429 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3430 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 | 3431 | { |
cd096152 RD |
3432 | if (_obj3) |
3433 | delete _arg3; | |
8ab979d7 RD |
3434 | } |
3435 | return _resultobj; | |
3436 | } | |
3437 | ||
cd096152 RD |
3438 | #define wxListCtrl_GetItemState(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemState(_swigarg0,_swigarg1)) |
3439 | static PyObject *_wrap_wxListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3440 | PyObject * _resultobj; |
cd096152 RD |
3441 | int _result; |
3442 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
3443 | long _arg1; |
3444 | long _arg2; | |
1d99702e | 3445 | PyObject * _argo0 = 0; |
cd096152 | 3446 | char *_kwnames[] = { "self","item","stateMask", NULL }; |
8ab979d7 RD |
3447 | |
3448 | self = self; | |
cd096152 | 3449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_GetItemState",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3450 | return NULL; |
1d99702e RD |
3451 | if (_argo0) { |
3452 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3453 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3454 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemState. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3455 | return NULL; |
3456 | } | |
3457 | } | |
cf694132 RD |
3458 | { |
3459 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3460 | _result = (int )wxListCtrl_GetItemState(_arg0,_arg1,_arg2); |
cf694132 RD |
3461 | |
3462 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3463 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3464 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3465 | return _resultobj; |
3466 | } | |
3467 | ||
cd096152 RD |
3468 | #define wxListCtrl_SetItemState(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemState(_swigarg0,_swigarg1,_swigarg2)) |
3469 | static PyObject *_wrap_wxListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3470 | PyObject * _resultobj; |
cd096152 RD |
3471 | bool _result; |
3472 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3473 | long _arg1; |
cd096152 RD |
3474 | long _arg2; |
3475 | long _arg3; | |
1d99702e | 3476 | PyObject * _argo0 = 0; |
cd096152 | 3477 | char *_kwnames[] = { "self","item","state","stateMask", NULL }; |
8ab979d7 RD |
3478 | |
3479 | self = self; | |
cd096152 | 3480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxListCtrl_SetItemState",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 3481 | return NULL; |
1d99702e RD |
3482 | if (_argo0) { |
3483 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3484 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3485 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemState. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3486 | return NULL; |
3487 | } | |
3488 | } | |
cf694132 RD |
3489 | { |
3490 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3491 | _result = (bool )wxListCtrl_SetItemState(_arg0,_arg1,_arg2,_arg3); |
cf694132 RD |
3492 | |
3493 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3494 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3495 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3496 | return _resultobj; |
3497 | } | |
3498 | ||
cd096152 RD |
3499 | #define wxListCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) |
3500 | static PyObject *_wrap_wxListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3501 | PyObject * _resultobj; |
3502 | bool _result; | |
cd096152 RD |
3503 | wxPyListCtrl * _arg0; |
3504 | long _arg1; | |
3505 | int _arg2; | |
3506 | int _arg3; | |
1d99702e | 3507 | PyObject * _argo0 = 0; |
cd096152 | 3508 | char *_kwnames[] = { "self","item","image","selImage", NULL }; |
8ab979d7 RD |
3509 | |
3510 | self = self; | |
cd096152 | 3511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olii:wxListCtrl_SetItemImage",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 3512 | return NULL; |
1d99702e RD |
3513 | if (_argo0) { |
3514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemImage. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3517 | return NULL; |
3518 | } | |
3519 | } | |
cf694132 RD |
3520 | { |
3521 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3522 | _result = (bool )wxListCtrl_SetItemImage(_arg0,_arg1,_arg2,_arg3); |
cf694132 RD |
3523 | |
3524 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3525 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3526 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3527 | return _resultobj; |
3528 | } | |
3529 | ||
cd096152 RD |
3530 | #define wxListCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) |
3531 | static PyObject *_wrap_wxListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3532 | PyObject * _resultobj; |
cd096152 RD |
3533 | wxString * _result; |
3534 | wxPyListCtrl * _arg0; | |
3535 | long _arg1; | |
1d99702e | 3536 | PyObject * _argo0 = 0; |
cd096152 | 3537 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3538 | |
3539 | self = self; | |
cd096152 | 3540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemText",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3541 | return NULL; |
1d99702e RD |
3542 | if (_argo0) { |
3543 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3544 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3545 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemText. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3546 | return NULL; |
3547 | } | |
3548 | } | |
cf694132 RD |
3549 | { |
3550 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3551 | _result = new wxString (wxListCtrl_GetItemText(_arg0,_arg1)); |
cf694132 RD |
3552 | |
3553 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3554 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
3555 | }{ |
3556 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3557 | } | |
3558 | { | |
3559 | delete _result; | |
3560 | } | |
8ab979d7 RD |
3561 | return _resultobj; |
3562 | } | |
3563 | ||
cd096152 RD |
3564 | #define wxListCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) |
3565 | static PyObject *_wrap_wxListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3566 | PyObject * _resultobj; |
cd096152 RD |
3567 | wxPyListCtrl * _arg0; |
3568 | long _arg1; | |
3569 | wxString * _arg2; | |
1d99702e | 3570 | PyObject * _argo0 = 0; |
cd096152 RD |
3571 | PyObject * _obj2 = 0; |
3572 | char *_kwnames[] = { "self","item","str", NULL }; | |
8ab979d7 RD |
3573 | |
3574 | self = self; | |
cd096152 | 3575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemText",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 3576 | return NULL; |
1d99702e RD |
3577 | if (_argo0) { |
3578 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3579 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3580 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemText. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3581 | return NULL; |
3582 | } | |
3583 | } | |
cf694132 | 3584 | { |
cd096152 RD |
3585 | #if PYTHON_API_VERSION >= 1009 |
3586 | char* tmpPtr; int tmpSize; | |
3587 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
3588 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8ab979d7 | 3589 | return NULL; |
cd096152 RD |
3590 | } |
3591 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3592 | return NULL; | |
3593 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3594 | #else | |
3595 | if (!PyString_Check(_obj2)) { | |
3596 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8ab979d7 | 3597 | return NULL; |
8ab979d7 | 3598 | } |
cd096152 RD |
3599 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
3600 | #endif | |
3601 | } | |
cf694132 RD |
3602 | { |
3603 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3604 | wxListCtrl_SetItemText(_arg0,_arg1,*_arg2); |
cf694132 RD |
3605 | |
3606 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3607 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
3608 | } Py_INCREF(Py_None); |
3609 | _resultobj = Py_None; | |
3610 | { | |
3611 | if (_obj2) | |
3612 | delete _arg2; | |
3613 | } | |
8ab979d7 RD |
3614 | return _resultobj; |
3615 | } | |
3616 | ||
3617 | #define wxListCtrl_GetItemData(_swigobj,_swigarg0) (_swigobj->GetItemData(_swigarg0)) | |
efc5f224 | 3618 | static PyObject *_wrap_wxListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3619 | PyObject * _resultobj; |
3620 | long _result; | |
cd096152 | 3621 | wxPyListCtrl * _arg0; |
8ab979d7 | 3622 | long _arg1; |
1d99702e | 3623 | PyObject * _argo0 = 0; |
efc5f224 | 3624 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3625 | |
3626 | self = self; | |
efc5f224 | 3627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemData",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3628 | return NULL; |
1d99702e RD |
3629 | if (_argo0) { |
3630 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3631 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3632 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3633 | return NULL; |
3634 | } | |
3635 | } | |
cf694132 RD |
3636 | { |
3637 | wxPy_BEGIN_ALLOW_THREADS; | |
3638 | _result = (long )wxListCtrl_GetItemData(_arg0,_arg1); | |
3639 | ||
3640 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3641 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3642 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
3643 | return _resultobj; |
3644 | } | |
3645 | ||
cd096152 RD |
3646 | #define wxListCtrl_SetItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemData(_swigarg0,_swigarg1)) |
3647 | static PyObject *_wrap_wxListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3648 | PyObject * _resultobj; |
cd096152 RD |
3649 | bool _result; |
3650 | wxPyListCtrl * _arg0; | |
0699c864 | 3651 | long _arg1; |
cd096152 | 3652 | long _arg2; |
1d99702e | 3653 | PyObject * _argo0 = 0; |
cd096152 | 3654 | char *_kwnames[] = { "self","item","data", NULL }; |
8ab979d7 RD |
3655 | |
3656 | self = self; | |
cd096152 | 3657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_SetItemData",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3658 | return NULL; |
1d99702e RD |
3659 | if (_argo0) { |
3660 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3661 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3662 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3663 | return NULL; |
3664 | } | |
3665 | } | |
cf694132 RD |
3666 | { |
3667 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3668 | _result = (bool )wxListCtrl_SetItemData(_arg0,_arg1,_arg2); |
cf694132 RD |
3669 | |
3670 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3671 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3672 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3673 | return _resultobj; |
3674 | } | |
3675 | ||
cd096152 | 3676 | static wxPoint * wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item) { |
8ab979d7 RD |
3677 | wxPoint* pos = new wxPoint; |
3678 | self->GetItemPosition(item, *pos); | |
3679 | return pos; | |
3680 | } | |
efc5f224 | 3681 | static PyObject *_wrap_wxListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3682 | PyObject * _resultobj; |
3683 | wxPoint * _result; | |
cd096152 | 3684 | wxPyListCtrl * _arg0; |
8ab979d7 | 3685 | long _arg1; |
1d99702e | 3686 | PyObject * _argo0 = 0; |
efc5f224 | 3687 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3688 | char _ptemp[128]; |
3689 | ||
3690 | self = self; | |
efc5f224 | 3691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemPosition",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3692 | return NULL; |
1d99702e RD |
3693 | if (_argo0) { |
3694 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3695 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3696 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemPosition. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3697 | return NULL; |
3698 | } | |
3699 | } | |
cf694132 RD |
3700 | { |
3701 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3702 | _result = (wxPoint *)wxPyListCtrl_GetItemPosition(_arg0,_arg1); |
cf694132 RD |
3703 | |
3704 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3705 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3706 | } if (_result) { |
3707 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
3708 | _resultobj = Py_BuildValue("s",_ptemp); | |
3709 | } else { | |
3710 | Py_INCREF(Py_None); | |
3711 | _resultobj = Py_None; | |
3712 | } | |
8ab979d7 RD |
3713 | return _resultobj; |
3714 | } | |
3715 | ||
cd096152 | 3716 | static wxRect * wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code) { |
8ab979d7 RD |
3717 | wxRect* rect= new wxRect; |
3718 | self->GetItemRect(item, *rect, code); | |
3719 | return rect; | |
3720 | } | |
efc5f224 | 3721 | static PyObject *_wrap_wxListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3722 | PyObject * _resultobj; |
3723 | wxRect * _result; | |
cd096152 | 3724 | wxPyListCtrl * _arg0; |
8ab979d7 | 3725 | long _arg1; |
1d99702e RD |
3726 | int _arg2 = (int ) (wxLIST_RECT_BOUNDS); |
3727 | PyObject * _argo0 = 0; | |
efc5f224 | 3728 | char *_kwnames[] = { "self","item","code", NULL }; |
8ab979d7 RD |
3729 | char _ptemp[128]; |
3730 | ||
3731 | self = self; | |
efc5f224 | 3732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItemRect",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3733 | return NULL; |
1d99702e RD |
3734 | if (_argo0) { |
3735 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3736 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3737 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemRect. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3738 | return NULL; |
3739 | } | |
3740 | } | |
cf694132 RD |
3741 | { |
3742 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3743 | _result = (wxRect *)wxPyListCtrl_GetItemRect(_arg0,_arg1,_arg2); |
cf694132 RD |
3744 | |
3745 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3746 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3747 | } if (_result) { |
3748 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRect_p"); | |
3749 | _resultobj = Py_BuildValue("s",_ptemp); | |
3750 | } else { | |
3751 | Py_INCREF(Py_None); | |
3752 | _resultobj = Py_None; | |
3753 | } | |
8ab979d7 RD |
3754 | return _resultobj; |
3755 | } | |
3756 | ||
cd096152 RD |
3757 | #define wxListCtrl_SetItemPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemPosition(_swigarg0,_swigarg1)) |
3758 | static PyObject *_wrap_wxListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3759 | PyObject * _resultobj; |
cd096152 RD |
3760 | bool _result; |
3761 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3762 | long _arg1; |
cd096152 | 3763 | wxPoint * _arg2; |
1d99702e | 3764 | PyObject * _argo0 = 0; |
cd096152 RD |
3765 | wxPoint temp; |
3766 | PyObject * _obj2 = 0; | |
3767 | char *_kwnames[] = { "self","item","pos", NULL }; | |
8ab979d7 RD |
3768 | |
3769 | self = self; | |
cd096152 | 3770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemPosition",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 3771 | return NULL; |
1d99702e RD |
3772 | if (_argo0) { |
3773 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3774 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3775 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemPosition. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3776 | return NULL; |
3777 | } | |
3778 | } | |
cd096152 RD |
3779 | { |
3780 | _arg2 = &temp; | |
3781 | if (! wxPoint_helper(_obj2, &_arg2)) | |
3782 | return NULL; | |
3783 | } | |
cf694132 RD |
3784 | { |
3785 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3786 | _result = (bool )wxListCtrl_SetItemPosition(_arg0,_arg1,*_arg2); |
cf694132 RD |
3787 | |
3788 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3789 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3790 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3791 | return _resultobj; |
3792 | } | |
3793 | ||
3794 | #define wxListCtrl_GetItemCount(_swigobj) (_swigobj->GetItemCount()) | |
efc5f224 | 3795 | static PyObject *_wrap_wxListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3796 | PyObject * _resultobj; |
3797 | int _result; | |
cd096152 | 3798 | wxPyListCtrl * _arg0; |
1d99702e | 3799 | PyObject * _argo0 = 0; |
efc5f224 | 3800 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3801 | |
3802 | self = self; | |
efc5f224 | 3803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetItemCount",_kwnames,&_argo0)) |
8ab979d7 | 3804 | return NULL; |
1d99702e RD |
3805 | if (_argo0) { |
3806 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3807 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3808 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3809 | return NULL; |
3810 | } | |
3811 | } | |
cf694132 RD |
3812 | { |
3813 | wxPy_BEGIN_ALLOW_THREADS; | |
3814 | _result = (int )wxListCtrl_GetItemCount(_arg0); | |
3815 | ||
3816 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3817 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3818 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3819 | return _resultobj; |
3820 | } | |
3821 | ||
cd096152 RD |
3822 | #define wxListCtrl_GetColumnCount(_swigobj) (_swigobj->GetColumnCount()) |
3823 | static PyObject *_wrap_wxListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3824 | PyObject * _resultobj; | |
3825 | int _result; | |
3826 | wxPyListCtrl * _arg0; | |
3827 | PyObject * _argo0 = 0; | |
3828 | char *_kwnames[] = { "self", NULL }; | |
3829 | ||
3830 | self = self; | |
3831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetColumnCount",_kwnames,&_argo0)) | |
3832 | return NULL; | |
3833 | if (_argo0) { | |
3834 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3835 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3836 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnCount. Expected _wxPyListCtrl_p."); | |
3837 | return NULL; | |
3838 | } | |
3839 | } | |
3840 | { | |
3841 | wxPy_BEGIN_ALLOW_THREADS; | |
3842 | _result = (int )wxListCtrl_GetColumnCount(_arg0); | |
3843 | ||
3844 | wxPy_END_ALLOW_THREADS; | |
3845 | if (PyErr_Occurred()) return NULL; | |
3846 | } _resultobj = Py_BuildValue("i",_result); | |
3847 | return _resultobj; | |
3848 | } | |
3849 | ||
8ab979d7 | 3850 | #define wxListCtrl_GetItemSpacing(_swigobj,_swigarg0) (_swigobj->GetItemSpacing(_swigarg0)) |
efc5f224 | 3851 | static PyObject *_wrap_wxListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3852 | PyObject * _resultobj; |
3853 | int _result; | |
cd096152 | 3854 | wxPyListCtrl * _arg0; |
8ab979d7 | 3855 | bool _arg1; |
1d99702e | 3856 | PyObject * _argo0 = 0; |
8ab979d7 | 3857 | int tempbool1; |
efc5f224 | 3858 | char *_kwnames[] = { "self","isSmall", NULL }; |
8ab979d7 RD |
3859 | |
3860 | self = self; | |
efc5f224 | 3861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetItemSpacing",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3862 | return NULL; |
1d99702e RD |
3863 | if (_argo0) { |
3864 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3865 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3866 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemSpacing. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3867 | return NULL; |
3868 | } | |
3869 | } | |
3870 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
3871 | { |
3872 | wxPy_BEGIN_ALLOW_THREADS; | |
3873 | _result = (int )wxListCtrl_GetItemSpacing(_arg0,_arg1); | |
3874 | ||
3875 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3876 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3877 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3878 | return _resultobj; |
3879 | } | |
3880 | ||
cd096152 RD |
3881 | #define wxListCtrl_GetSelectedItemCount(_swigobj) (_swigobj->GetSelectedItemCount()) |
3882 | static PyObject *_wrap_wxListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3883 | PyObject * _resultobj; |
cd096152 RD |
3884 | int _result; |
3885 | wxPyListCtrl * _arg0; | |
1d99702e | 3886 | PyObject * _argo0 = 0; |
cd096152 | 3887 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3888 | |
3889 | self = self; | |
cd096152 | 3890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetSelectedItemCount",_kwnames,&_argo0)) |
8ab979d7 | 3891 | return NULL; |
1d99702e RD |
3892 | if (_argo0) { |
3893 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3894 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3895 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetSelectedItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3896 | return NULL; |
3897 | } | |
3898 | } | |
8ab979d7 | 3899 | { |
cf694132 | 3900 | wxPy_BEGIN_ALLOW_THREADS; |
cd096152 | 3901 | _result = (int )wxListCtrl_GetSelectedItemCount(_arg0); |
cf694132 RD |
3902 | |
3903 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3904 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3905 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3906 | return _resultobj; |
3907 | } | |
3908 | ||
cd096152 RD |
3909 | #define wxListCtrl_GetTextColour(_swigobj) (_swigobj->GetTextColour()) |
3910 | static PyObject *_wrap_wxListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3911 | PyObject * _resultobj; |
cd096152 RD |
3912 | wxColour * _result; |
3913 | wxPyListCtrl * _arg0; | |
1d99702e | 3914 | PyObject * _argo0 = 0; |
cd096152 RD |
3915 | char *_kwnames[] = { "self", NULL }; |
3916 | char _ptemp[128]; | |
8ab979d7 RD |
3917 | |
3918 | self = self; | |
cd096152 | 3919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTextColour",_kwnames,&_argo0)) |
8ab979d7 | 3920 | return NULL; |
1d99702e RD |
3921 | if (_argo0) { |
3922 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3923 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3924 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTextColour. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3925 | return NULL; |
3926 | } | |
3927 | } | |
cf694132 RD |
3928 | { |
3929 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3930 | _result = new wxColour (wxListCtrl_GetTextColour(_arg0)); |
cf694132 RD |
3931 | |
3932 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3933 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
3934 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
3935 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
3936 | return _resultobj; |
3937 | } | |
3938 | ||
cd096152 RD |
3939 | #define wxListCtrl_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) |
3940 | static PyObject *_wrap_wxListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3941 | PyObject * _resultobj; |
cd096152 RD |
3942 | wxPyListCtrl * _arg0; |
3943 | wxColour * _arg1; | |
1d99702e | 3944 | PyObject * _argo0 = 0; |
cd096152 RD |
3945 | wxColour temp; |
3946 | PyObject * _obj1 = 0; | |
3947 | char *_kwnames[] = { "self","col", NULL }; | |
8ab979d7 RD |
3948 | |
3949 | self = self; | |
cd096152 | 3950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetTextColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3951 | return NULL; |
1d99702e RD |
3952 | if (_argo0) { |
3953 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3954 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3955 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetTextColour. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3956 | return NULL; |
3957 | } | |
3958 | } | |
cd096152 RD |
3959 | { |
3960 | _arg1 = &temp; | |
3961 | if (! wxColour_helper(_obj1, &_arg1)) | |
3962 | return NULL; | |
3963 | } | |
cf694132 RD |
3964 | { |
3965 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3966 | wxListCtrl_SetTextColour(_arg0,*_arg1); |
cf694132 RD |
3967 | |
3968 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3969 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
3970 | } Py_INCREF(Py_None); |
3971 | _resultobj = Py_None; | |
8ab979d7 RD |
3972 | return _resultobj; |
3973 | } | |
3974 | ||
8ab979d7 | 3975 | #define wxListCtrl_GetTopItem(_swigobj) (_swigobj->GetTopItem()) |
efc5f224 | 3976 | static PyObject *_wrap_wxListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3977 | PyObject * _resultobj; |
3978 | long _result; | |
cd096152 | 3979 | wxPyListCtrl * _arg0; |
1d99702e | 3980 | PyObject * _argo0 = 0; |
efc5f224 | 3981 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3982 | |
3983 | self = self; | |
efc5f224 | 3984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTopItem",_kwnames,&_argo0)) |
8ab979d7 | 3985 | return NULL; |
1d99702e RD |
3986 | if (_argo0) { |
3987 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3988 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3989 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTopItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3990 | return NULL; |
3991 | } | |
3992 | } | |
cf694132 RD |
3993 | { |
3994 | wxPy_BEGIN_ALLOW_THREADS; | |
3995 | _result = (long )wxListCtrl_GetTopItem(_arg0); | |
3996 | ||
3997 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3998 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3999 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4000 | return _resultobj; |
4001 | } | |
4002 | ||
cd096152 RD |
4003 | #define wxListCtrl_SetSingleStyle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSingleStyle(_swigarg0,_swigarg1)) |
4004 | static PyObject *_wrap_wxListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4005 | PyObject * _resultobj; | |
4006 | wxPyListCtrl * _arg0; | |
4007 | long _arg1; | |
4008 | bool _arg2 = (bool ) TRUE; | |
1d99702e | 4009 | PyObject * _argo0 = 0; |
cd096152 RD |
4010 | int tempbool2 = (int) TRUE; |
4011 | char *_kwnames[] = { "self","style","add", NULL }; | |
8ab979d7 RD |
4012 | |
4013 | self = self; | |
cd096152 RD |
4014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_SetSingleStyle",_kwnames,&_argo0,&_arg1,&tempbool2)) |
4015 | return NULL; | |
4016 | if (_argo0) { | |
4017 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4018 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4019 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetSingleStyle. Expected _wxPyListCtrl_p."); | |
4020 | return NULL; | |
4021 | } | |
4022 | } | |
4023 | _arg2 = (bool ) tempbool2; | |
8ab979d7 | 4024 | { |
cd096152 RD |
4025 | wxPy_BEGIN_ALLOW_THREADS; |
4026 | wxListCtrl_SetSingleStyle(_arg0,_arg1,_arg2); | |
4027 | ||
4028 | wxPy_END_ALLOW_THREADS; | |
4029 | if (PyErr_Occurred()) return NULL; | |
4030 | } Py_INCREF(Py_None); | |
4031 | _resultobj = Py_None; | |
4032 | return _resultobj; | |
8ab979d7 | 4033 | } |
cd096152 RD |
4034 | |
4035 | #define wxListCtrl_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) | |
4036 | static PyObject *_wrap_wxListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4037 | PyObject * _resultobj; | |
4038 | wxPyListCtrl * _arg0; | |
4039 | long _arg1; | |
4040 | PyObject * _argo0 = 0; | |
4041 | char *_kwnames[] = { "self","style", NULL }; | |
4042 | ||
4043 | self = self; | |
4044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) | |
8ab979d7 | 4045 | return NULL; |
1d99702e RD |
4046 | if (_argo0) { |
4047 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4048 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4049 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetWindowStyleFlag. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4050 | return NULL; |
4051 | } | |
4052 | } | |
2f90df85 | 4053 | { |
cd096152 RD |
4054 | wxPy_BEGIN_ALLOW_THREADS; |
4055 | wxListCtrl_SetWindowStyleFlag(_arg0,_arg1); | |
4056 | ||
4057 | wxPy_END_ALLOW_THREADS; | |
4058 | if (PyErr_Occurred()) return NULL; | |
4059 | } Py_INCREF(Py_None); | |
4060 | _resultobj = Py_None; | |
4061 | return _resultobj; | |
2f90df85 | 4062 | } |
cd096152 RD |
4063 | |
4064 | #define wxListCtrl_GetNextItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetNextItem(_swigarg0,_swigarg1,_swigarg2)) | |
4065 | static PyObject *_wrap_wxListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4066 | PyObject * _resultobj; | |
4067 | long _result; | |
4068 | wxPyListCtrl * _arg0; | |
4069 | long _arg1; | |
4070 | int _arg2 = (int ) (wxLIST_NEXT_ALL); | |
4071 | int _arg3 = (int ) (wxLIST_STATE_DONTCARE); | |
4072 | PyObject * _argo0 = 0; | |
4073 | char *_kwnames[] = { "self","item","geometry","state", NULL }; | |
4074 | ||
4075 | self = self; | |
4076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:wxListCtrl_GetNextItem",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
4077 | return NULL; | |
4078 | if (_argo0) { | |
4079 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4080 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4081 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetNextItem. Expected _wxPyListCtrl_p."); | |
4082 | return NULL; | |
4083 | } | |
4084 | } | |
cf694132 RD |
4085 | { |
4086 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4087 | _result = (long )wxListCtrl_GetNextItem(_arg0,_arg1,_arg2,_arg3); |
cf694132 RD |
4088 | |
4089 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4090 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4091 | } _resultobj = Py_BuildValue("l",_result); |
cd096152 | 4092 | return _resultobj; |
8ab979d7 | 4093 | } |
cd096152 RD |
4094 | |
4095 | #define wxListCtrl_GetImageList(_swigobj,_swigarg0) (_swigobj->GetImageList(_swigarg0)) | |
4096 | static PyObject *_wrap_wxListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4097 | PyObject * _resultobj; | |
4098 | wxImageList * _result; | |
4099 | wxPyListCtrl * _arg0; | |
4100 | int _arg1; | |
4101 | PyObject * _argo0 = 0; | |
4102 | char *_kwnames[] = { "self","which", NULL }; | |
4103 | ||
4104 | self = self; | |
4105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetImageList",_kwnames,&_argo0,&_arg1)) | |
4106 | return NULL; | |
4107 | if (_argo0) { | |
4108 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4109 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4110 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetImageList. Expected _wxPyListCtrl_p."); | |
4111 | return NULL; | |
4112 | } | |
4113 | } | |
4114 | { | |
4115 | wxPy_BEGIN_ALLOW_THREADS; | |
4116 | _result = (wxImageList *)wxListCtrl_GetImageList(_arg0,_arg1); | |
4117 | ||
4118 | wxPy_END_ALLOW_THREADS; | |
4119 | if (PyErr_Occurred()) return NULL; | |
4120 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
8ab979d7 RD |
4121 | return _resultobj; |
4122 | } | |
4123 | ||
cd096152 RD |
4124 | #define wxListCtrl_SetImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetImageList(_swigarg0,_swigarg1)) |
4125 | static PyObject *_wrap_wxListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4126 | PyObject * _resultobj; |
cd096152 RD |
4127 | wxPyListCtrl * _arg0; |
4128 | wxImageList * _arg1; | |
4129 | int _arg2; | |
1d99702e | 4130 | PyObject * _argo0 = 0; |
cd096152 RD |
4131 | PyObject * _argo1 = 0; |
4132 | char *_kwnames[] = { "self","imageList","which", NULL }; | |
8ab979d7 RD |
4133 | |
4134 | self = self; | |
cd096152 | 4135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_SetImageList",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 4136 | return NULL; |
1d99702e RD |
4137 | if (_argo0) { |
4138 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4139 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4140 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetImageList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4141 | return NULL; |
4142 | } | |
4143 | } | |
cd096152 RD |
4144 | if (_argo1) { |
4145 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4146 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
4147 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetImageList. Expected _wxImageList_p."); | |
8ab979d7 RD |
4148 | return NULL; |
4149 | } | |
4150 | } | |
cf694132 RD |
4151 | { |
4152 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4153 | wxListCtrl_SetImageList(_arg0,_arg1,_arg2); |
cf694132 RD |
4154 | |
4155 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4156 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4157 | } Py_INCREF(Py_None); |
4158 | _resultobj = Py_None; | |
8ab979d7 RD |
4159 | return _resultobj; |
4160 | } | |
4161 | ||
cd096152 RD |
4162 | #define wxListCtrl_AssignImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->AssignImageList(_swigarg0,_swigarg1)) |
4163 | static PyObject *_wrap_wxListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4164 | PyObject * _resultobj; |
cd096152 RD |
4165 | wxPyListCtrl * _arg0; |
4166 | wxImageList * _arg1; | |
4167 | int _arg2; | |
1d99702e | 4168 | PyObject * _argo0 = 0; |
cd096152 RD |
4169 | PyObject * _argo1 = 0; |
4170 | char *_kwnames[] = { "self","imageList","which", NULL }; | |
8ab979d7 RD |
4171 | |
4172 | self = self; | |
cd096152 | 4173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_AssignImageList",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 4174 | return NULL; |
1d99702e RD |
4175 | if (_argo0) { |
4176 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4177 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4178 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_AssignImageList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4179 | return NULL; |
4180 | } | |
4181 | } | |
cd096152 RD |
4182 | if (_argo1) { |
4183 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4184 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
4185 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_AssignImageList. Expected _wxImageList_p."); | |
2cd2fac8 | 4186 | return NULL; |
cd096152 | 4187 | } |
2cd2fac8 | 4188 | } |
cd096152 RD |
4189 | { |
4190 | wxPy_BEGIN_ALLOW_THREADS; | |
4191 | wxListCtrl_AssignImageList(_arg0,_arg1,_arg2); | |
4192 | ||
4193 | wxPy_END_ALLOW_THREADS; | |
4194 | if (PyErr_Occurred()) return NULL; | |
4195 | } Py_INCREF(Py_None); | |
4196 | _resultobj = Py_None; | |
4197 | return _resultobj; | |
4198 | } | |
4199 | ||
4200 | #define wxListCtrl_IsVirtual(_swigobj) (_swigobj->IsVirtual()) | |
4201 | static PyObject *_wrap_wxListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4202 | PyObject * _resultobj; | |
4203 | bool _result; | |
4204 | wxPyListCtrl * _arg0; | |
4205 | PyObject * _argo0 = 0; | |
4206 | char *_kwnames[] = { "self", NULL }; | |
4207 | ||
4208 | self = self; | |
4209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_IsVirtual",_kwnames,&_argo0)) | |
2cd2fac8 | 4210 | return NULL; |
cd096152 RD |
4211 | if (_argo0) { |
4212 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4213 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4214 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_IsVirtual. Expected _wxPyListCtrl_p."); | |
8ab979d7 | 4215 | return NULL; |
cd096152 | 4216 | } |
8ab979d7 | 4217 | } |
cf694132 RD |
4218 | { |
4219 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4220 | _result = (bool )wxListCtrl_IsVirtual(_arg0); |
cf694132 RD |
4221 | |
4222 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4223 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4224 | } _resultobj = Py_BuildValue("i",_result); |
4225 | return _resultobj; | |
8ab979d7 | 4226 | } |
cd096152 RD |
4227 | |
4228 | #define wxListCtrl_RefreshItem(_swigobj,_swigarg0) (_swigobj->RefreshItem(_swigarg0)) | |
4229 | static PyObject *_wrap_wxListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4230 | PyObject * _resultobj; | |
4231 | wxPyListCtrl * _arg0; | |
4232 | long _arg1; | |
4233 | PyObject * _argo0 = 0; | |
4234 | char *_kwnames[] = { "self","item", NULL }; | |
4235 | ||
4236 | self = self; | |
4237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_RefreshItem",_kwnames,&_argo0,&_arg1)) | |
4238 | return NULL; | |
4239 | if (_argo0) { | |
4240 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4241 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4242 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItem. Expected _wxPyListCtrl_p."); | |
4243 | return NULL; | |
4244 | } | |
4245 | } | |
4246 | { | |
4247 | wxPy_BEGIN_ALLOW_THREADS; | |
4248 | wxListCtrl_RefreshItem(_arg0,_arg1); | |
4249 | ||
4250 | wxPy_END_ALLOW_THREADS; | |
4251 | if (PyErr_Occurred()) return NULL; | |
4252 | } Py_INCREF(Py_None); | |
4253 | _resultobj = Py_None; | |
8ab979d7 RD |
4254 | return _resultobj; |
4255 | } | |
4256 | ||
cd096152 RD |
4257 | #define wxListCtrl_RefreshItems(_swigobj,_swigarg0,_swigarg1) (_swigobj->RefreshItems(_swigarg0,_swigarg1)) |
4258 | static PyObject *_wrap_wxListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4259 | PyObject * _resultobj; |
cd096152 RD |
4260 | wxPyListCtrl * _arg0; |
4261 | long _arg1; | |
4262 | long _arg2; | |
1d99702e | 4263 | PyObject * _argo0 = 0; |
cd096152 | 4264 | char *_kwnames[] = { "self","itemFrom","itemTo", NULL }; |
8ab979d7 RD |
4265 | |
4266 | self = self; | |
cd096152 | 4267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_RefreshItems",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4268 | return NULL; |
1d99702e RD |
4269 | if (_argo0) { |
4270 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4271 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4272 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItems. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4273 | return NULL; |
4274 | } | |
4275 | } | |
cd096152 RD |
4276 | { |
4277 | wxPy_BEGIN_ALLOW_THREADS; | |
4278 | wxListCtrl_RefreshItems(_arg0,_arg1,_arg2); | |
4279 | ||
4280 | wxPy_END_ALLOW_THREADS; | |
4281 | if (PyErr_Occurred()) return NULL; | |
4282 | } Py_INCREF(Py_None); | |
4283 | _resultobj = Py_None; | |
4284 | return _resultobj; | |
4285 | } | |
4286 | ||
4287 | #define wxListCtrl_Arrange(_swigobj,_swigarg0) (_swigobj->Arrange(_swigarg0)) | |
4288 | static PyObject *_wrap_wxListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4289 | PyObject * _resultobj; | |
4290 | bool _result; | |
4291 | wxPyListCtrl * _arg0; | |
4292 | int _arg1 = (int ) (wxLIST_ALIGN_DEFAULT); | |
4293 | PyObject * _argo0 = 0; | |
4294 | char *_kwnames[] = { "self","flag", NULL }; | |
4295 | ||
4296 | self = self; | |
4297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxListCtrl_Arrange",_kwnames,&_argo0,&_arg1)) | |
4298 | return NULL; | |
4299 | if (_argo0) { | |
4300 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4301 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4302 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Arrange. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4303 | return NULL; |
4304 | } | |
4305 | } | |
cf694132 RD |
4306 | { |
4307 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4308 | _result = (bool )wxListCtrl_Arrange(_arg0,_arg1); |
cf694132 RD |
4309 | |
4310 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4311 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4312 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4313 | return _resultobj; |
4314 | } | |
4315 | ||
cd096152 RD |
4316 | #define wxListCtrl_DeleteItem(_swigobj,_swigarg0) (_swigobj->DeleteItem(_swigarg0)) |
4317 | static PyObject *_wrap_wxListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4318 | PyObject * _resultobj; |
cd096152 RD |
4319 | bool _result; |
4320 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4321 | long _arg1; |
1d99702e | 4322 | PyObject * _argo0 = 0; |
cd096152 | 4323 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
4324 | |
4325 | self = self; | |
cd096152 | 4326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_DeleteItem",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4327 | return NULL; |
1d99702e RD |
4328 | if (_argo0) { |
4329 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4330 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4332 | return NULL; |
4333 | } | |
4334 | } | |
4335 | { | |
cd096152 RD |
4336 | wxPy_BEGIN_ALLOW_THREADS; |
4337 | _result = (bool )wxListCtrl_DeleteItem(_arg0,_arg1); | |
4338 | ||
4339 | wxPy_END_ALLOW_THREADS; | |
4340 | if (PyErr_Occurred()) return NULL; | |
4341 | } _resultobj = Py_BuildValue("i",_result); | |
4342 | return _resultobj; | |
4343 | } | |
4344 | ||
4345 | #define wxListCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) | |
4346 | static PyObject *_wrap_wxListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4347 | PyObject * _resultobj; | |
4348 | bool _result; | |
4349 | wxPyListCtrl * _arg0; | |
4350 | PyObject * _argo0 = 0; | |
4351 | char *_kwnames[] = { "self", NULL }; | |
4352 | ||
4353 | self = self; | |
4354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllItems",_kwnames,&_argo0)) | |
4355 | return NULL; | |
4356 | if (_argo0) { | |
4357 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4358 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4359 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllItems. Expected _wxPyListCtrl_p."); | |
2cd2fac8 | 4360 | return NULL; |
cd096152 | 4361 | } |
2cd2fac8 | 4362 | } |
cd096152 RD |
4363 | { |
4364 | wxPy_BEGIN_ALLOW_THREADS; | |
4365 | _result = (bool )wxListCtrl_DeleteAllItems(_arg0); | |
4366 | ||
4367 | wxPy_END_ALLOW_THREADS; | |
4368 | if (PyErr_Occurred()) return NULL; | |
4369 | } _resultobj = Py_BuildValue("i",_result); | |
4370 | return _resultobj; | |
4371 | } | |
4372 | ||
4373 | #define wxListCtrl_DeleteColumn(_swigobj,_swigarg0) (_swigobj->DeleteColumn(_swigarg0)) | |
4374 | static PyObject *_wrap_wxListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4375 | PyObject * _resultobj; | |
4376 | bool _result; | |
4377 | wxPyListCtrl * _arg0; | |
4378 | int _arg1; | |
4379 | PyObject * _argo0 = 0; | |
4380 | char *_kwnames[] = { "self","col", NULL }; | |
4381 | ||
4382 | self = self; | |
4383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_DeleteColumn",_kwnames,&_argo0,&_arg1)) | |
2cd2fac8 | 4384 | return NULL; |
cd096152 RD |
4385 | if (_argo0) { |
4386 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4387 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4388 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteColumn. Expected _wxPyListCtrl_p."); | |
4389 | return NULL; | |
4390 | } | |
4391 | } | |
4392 | { | |
4393 | wxPy_BEGIN_ALLOW_THREADS; | |
4394 | _result = (bool )wxListCtrl_DeleteColumn(_arg0,_arg1); | |
4395 | ||
4396 | wxPy_END_ALLOW_THREADS; | |
4397 | if (PyErr_Occurred()) return NULL; | |
4398 | } _resultobj = Py_BuildValue("i",_result); | |
4399 | return _resultobj; | |
4400 | } | |
4401 | ||
4402 | #define wxListCtrl_DeleteAllColumns(_swigobj) (_swigobj->DeleteAllColumns()) | |
4403 | static PyObject *_wrap_wxListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4404 | PyObject * _resultobj; | |
4405 | bool _result; | |
4406 | wxPyListCtrl * _arg0; | |
4407 | PyObject * _argo0 = 0; | |
4408 | char *_kwnames[] = { "self", NULL }; | |
4409 | ||
4410 | self = self; | |
4411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllColumns",_kwnames,&_argo0)) | |
4412 | return NULL; | |
4413 | if (_argo0) { | |
4414 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4415 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4416 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllColumns. Expected _wxPyListCtrl_p."); | |
4417 | return NULL; | |
4418 | } | |
4419 | } | |
4420 | { | |
4421 | wxPy_BEGIN_ALLOW_THREADS; | |
4422 | _result = (bool )wxListCtrl_DeleteAllColumns(_arg0); | |
4423 | ||
4424 | wxPy_END_ALLOW_THREADS; | |
4425 | if (PyErr_Occurred()) return NULL; | |
4426 | } _resultobj = Py_BuildValue("i",_result); | |
4427 | return _resultobj; | |
4428 | } | |
4429 | ||
4430 | #define wxListCtrl_ClearAll(_swigobj) (_swigobj->ClearAll()) | |
4431 | static PyObject *_wrap_wxListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4432 | PyObject * _resultobj; | |
4433 | wxPyListCtrl * _arg0; | |
4434 | PyObject * _argo0 = 0; | |
4435 | char *_kwnames[] = { "self", NULL }; | |
4436 | ||
4437 | self = self; | |
4438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_ClearAll",_kwnames,&_argo0)) | |
8ab979d7 | 4439 | return NULL; |
cd096152 RD |
4440 | if (_argo0) { |
4441 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4442 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4443 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ClearAll. Expected _wxPyListCtrl_p."); | |
4444 | return NULL; | |
4445 | } | |
8ab979d7 | 4446 | } |
cf694132 RD |
4447 | { |
4448 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4449 | wxListCtrl_ClearAll(_arg0); |
cf694132 RD |
4450 | |
4451 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4452 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4453 | } Py_INCREF(Py_None); |
4454 | _resultobj = Py_None; | |
8ab979d7 RD |
4455 | return _resultobj; |
4456 | } | |
4457 | ||
cd096152 RD |
4458 | #define wxListCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) |
4459 | static PyObject *_wrap_wxListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4460 | PyObject * _resultobj; |
cd096152 RD |
4461 | bool _result; |
4462 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4463 | long _arg1; |
1d99702e | 4464 | PyObject * _argo0 = 0; |
cd096152 | 4465 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
4466 | |
4467 | self = self; | |
cd096152 | 4468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EnsureVisible",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4469 | return NULL; |
1d99702e RD |
4470 | if (_argo0) { |
4471 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4472 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4473 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EnsureVisible. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4474 | return NULL; |
4475 | } | |
4476 | } | |
cf694132 RD |
4477 | { |
4478 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4479 | _result = (bool )wxListCtrl_EnsureVisible(_arg0,_arg1); |
cf694132 RD |
4480 | |
4481 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4482 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4483 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4484 | return _resultobj; |
4485 | } | |
4486 | ||
cd096152 RD |
4487 | #define wxListCtrl_FindItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) |
4488 | static PyObject *_wrap_wxListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4489 | PyObject * _resultobj; |
4490 | long _result; | |
cd096152 | 4491 | wxPyListCtrl * _arg0; |
8ab979d7 RD |
4492 | long _arg1; |
4493 | wxString * _arg2; | |
cd096152 | 4494 | bool _arg3 = (bool ) FALSE; |
1d99702e | 4495 | PyObject * _argo0 = 0; |
8ab979d7 | 4496 | PyObject * _obj2 = 0; |
cd096152 RD |
4497 | int tempbool3 = (int) FALSE; |
4498 | char *_kwnames[] = { "self","start","str","partial", NULL }; | |
8ab979d7 RD |
4499 | |
4500 | self = self; | |
cd096152 | 4501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|i:wxListCtrl_FindItem",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3)) |
8ab979d7 | 4502 | return NULL; |
1d99702e RD |
4503 | if (_argo0) { |
4504 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4505 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4506 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4507 | return NULL; |
4508 | } | |
4509 | } | |
4510 | { | |
2cd2fac8 RD |
4511 | #if PYTHON_API_VERSION >= 1009 |
4512 | char* tmpPtr; int tmpSize; | |
4513 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 4514 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
4515 | return NULL; |
4516 | } | |
4517 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4518 | return NULL; | |
4519 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4520 | #else | |
8ab979d7 RD |
4521 | if (!PyString_Check(_obj2)) { |
4522 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4523 | return NULL; | |
4524 | } | |
2cd2fac8 RD |
4525 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
4526 | #endif | |
8ab979d7 | 4527 | } |
cd096152 | 4528 | _arg3 = (bool ) tempbool3; |
cf694132 RD |
4529 | { |
4530 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4531 | _result = (long )wxListCtrl_FindItem(_arg0,_arg1,*_arg2,_arg3); |
cf694132 RD |
4532 | |
4533 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4534 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4535 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4536 | { |
4537 | if (_obj2) | |
4538 | delete _arg2; | |
4539 | } | |
4540 | return _resultobj; | |
4541 | } | |
4542 | ||
cd096152 RD |
4543 | #define wxListCtrl_FindItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindItem(_swigarg0,_swigarg1)) |
4544 | static PyObject *_wrap_wxListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4545 | PyObject * _resultobj; |
cd096152 RD |
4546 | long _result; |
4547 | wxPyListCtrl * _arg0; | |
4548 | long _arg1; | |
4549 | long _arg2; | |
1d99702e | 4550 | PyObject * _argo0 = 0; |
cd096152 | 4551 | char *_kwnames[] = { "self","start","data", NULL }; |
8ab979d7 RD |
4552 | |
4553 | self = self; | |
cd096152 | 4554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_FindItemData",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4555 | return NULL; |
1d99702e RD |
4556 | if (_argo0) { |
4557 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4558 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4559 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4560 | return NULL; |
4561 | } | |
4562 | } | |
cf694132 RD |
4563 | { |
4564 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4565 | _result = (long )wxListCtrl_FindItemData(_arg0,_arg1,_arg2); |
cf694132 RD |
4566 | |
4567 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4568 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4569 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4570 | return _resultobj; |
4571 | } | |
4572 | ||
cd096152 RD |
4573 | #define wxListCtrl_FindItemAtPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) |
4574 | static PyObject *_wrap_wxListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4575 | PyObject * _resultobj; |
cd096152 RD |
4576 | long _result; |
4577 | wxPyListCtrl * _arg0; | |
4578 | long _arg1; | |
4579 | wxPoint * _arg2; | |
4580 | int _arg3; | |
1d99702e | 4581 | PyObject * _argo0 = 0; |
cd096152 RD |
4582 | wxPoint temp; |
4583 | PyObject * _obj2 = 0; | |
4584 | char *_kwnames[] = { "self","start","pt","direction", NULL }; | |
8ab979d7 RD |
4585 | |
4586 | self = self; | |
cd096152 | 4587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_FindItemAtPos",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) |
8ab979d7 | 4588 | return NULL; |
1d99702e RD |
4589 | if (_argo0) { |
4590 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4591 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4592 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemAtPos. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4593 | return NULL; |
4594 | } | |
4595 | } | |
f6bcfd97 | 4596 | { |
cd096152 RD |
4597 | _arg2 = &temp; |
4598 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 4599 | return NULL; |
f6bcfd97 | 4600 | } |
cf694132 RD |
4601 | { |
4602 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4603 | _result = (long )wxListCtrl_FindItemAtPos(_arg0,_arg1,*_arg2,_arg3); |
cf694132 RD |
4604 | |
4605 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4606 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4607 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4608 | return _resultobj; |
4609 | } | |
4610 | ||
cd096152 RD |
4611 | #define wxListCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) |
4612 | static PyObject *_wrap_wxListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4613 | PyObject * _resultobj; |
cd096152 RD |
4614 | long _result; |
4615 | wxPyListCtrl * _arg0; | |
4616 | wxPoint * _arg1; | |
4617 | int * _arg2; | |
4618 | int temp; | |
1d99702e | 4619 | PyObject * _argo0 = 0; |
cd096152 RD |
4620 | wxPoint temp0; |
4621 | PyObject * _obj1 = 0; | |
4622 | char *_kwnames[] = { "self","point", NULL }; | |
8ab979d7 RD |
4623 | |
4624 | self = self; | |
cf694132 | 4625 | { |
cd096152 | 4626 | _arg2 = &temp; |
8ab979d7 | 4627 | } |
cd096152 | 4628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_HitTest",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4629 | return NULL; |
1d99702e RD |
4630 | if (_argo0) { |
4631 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4632 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4633 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_HitTest. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4634 | return NULL; |
4635 | } | |
4636 | } | |
cf694132 | 4637 | { |
cd096152 RD |
4638 | _arg1 = &temp0; |
4639 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 4640 | return NULL; |
cd096152 | 4641 | } |
cf694132 RD |
4642 | { |
4643 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4644 | _result = (long )wxListCtrl_HitTest(_arg0,*_arg1,*_arg2); |
cf694132 RD |
4645 | |
4646 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4647 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4648 | } _resultobj = Py_BuildValue("l",_result); |
4649 | { | |
4650 | PyObject *o; | |
4651 | o = PyInt_FromLong((long) (*_arg2)); | |
4652 | _resultobj = t_output_helper(_resultobj, o); | |
4653 | } | |
8ab979d7 RD |
4654 | return _resultobj; |
4655 | } | |
4656 | ||
cd096152 RD |
4657 | #define wxListCtrl_InsertItem(_swigobj,_swigarg0) (_swigobj->InsertItem(_swigarg0)) |
4658 | static PyObject *_wrap_wxListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4659 | PyObject * _resultobj; |
cd096152 RD |
4660 | long _result; |
4661 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4662 | wxListItem * _arg1; |
1d99702e RD |
4663 | PyObject * _argo0 = 0; |
4664 | PyObject * _argo1 = 0; | |
efc5f224 | 4665 | char *_kwnames[] = { "self","info", NULL }; |
8ab979d7 RD |
4666 | |
4667 | self = self; | |
cd096152 | 4668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_InsertItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4669 | return NULL; |
1d99702e RD |
4670 | if (_argo0) { |
4671 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4672 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4674 | return NULL; |
4675 | } | |
4676 | } | |
1d99702e RD |
4677 | if (_argo1) { |
4678 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4679 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
cd096152 | 4680 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_InsertItem. Expected _wxListItem_p."); |
8ab979d7 RD |
4681 | return NULL; |
4682 | } | |
4683 | } | |
cf694132 RD |
4684 | { |
4685 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4686 | _result = (long )wxListCtrl_InsertItem(_arg0,*_arg1); |
cf694132 RD |
4687 | |
4688 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4689 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4690 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4691 | return _resultobj; |
4692 | } | |
4693 | ||
cd096152 RD |
4694 | #define wxListCtrl_InsertStringItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) |
4695 | static PyObject *_wrap_wxListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4696 | PyObject * _resultobj; |
4697 | long _result; | |
cd096152 | 4698 | wxPyListCtrl * _arg0; |
8ab979d7 | 4699 | long _arg1; |
cd096152 | 4700 | wxString * _arg2; |
1d99702e | 4701 | PyObject * _argo0 = 0; |
cd096152 RD |
4702 | PyObject * _obj2 = 0; |
4703 | char *_kwnames[] = { "self","index","label", NULL }; | |
8ab979d7 RD |
4704 | |
4705 | self = self; | |
cd096152 | 4706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertStringItem",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 4707 | return NULL; |
1d99702e RD |
4708 | if (_argo0) { |
4709 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4710 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4711 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertStringItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4712 | return NULL; |
4713 | } | |
4714 | } | |
4715 | { | |
2cd2fac8 RD |
4716 | #if PYTHON_API_VERSION >= 1009 |
4717 | char* tmpPtr; int tmpSize; | |
cd096152 | 4718 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { |
7a446686 | 4719 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
4720 | return NULL; |
4721 | } | |
cd096152 | 4722 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) |
2cd2fac8 | 4723 | return NULL; |
cd096152 | 4724 | _arg2 = new wxString(tmpPtr, tmpSize); |
2cd2fac8 | 4725 | #else |
cd096152 | 4726 | if (!PyString_Check(_obj2)) { |
8ab979d7 RD |
4727 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
4728 | return NULL; | |
4729 | } | |
cd096152 | 4730 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
2cd2fac8 | 4731 | #endif |
8ab979d7 | 4732 | } |
cf694132 RD |
4733 | { |
4734 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4735 | _result = (long )wxListCtrl_InsertStringItem(_arg0,_arg1,*_arg2); |
cf694132 RD |
4736 | |
4737 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4738 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4739 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 | 4740 | { |
cd096152 RD |
4741 | if (_obj2) |
4742 | delete _arg2; | |
4743 | } | |
8ab979d7 RD |
4744 | return _resultobj; |
4745 | } | |
4746 | ||
cd096152 RD |
4747 | #define wxListCtrl_InsertImageItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) |
4748 | static PyObject *_wrap_wxListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4749 | PyObject * _resultobj; |
cd096152 RD |
4750 | long _result; |
4751 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
4752 | long _arg1; |
4753 | int _arg2; | |
1d99702e | 4754 | PyObject * _argo0 = 0; |
cd096152 | 4755 | char *_kwnames[] = { "self","index","imageIndex", NULL }; |
8ab979d7 RD |
4756 | |
4757 | self = self; | |
cd096152 | 4758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oli:wxListCtrl_InsertImageItem",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4759 | return NULL; |
1d99702e RD |
4760 | if (_argo0) { |
4761 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4762 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4763 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4764 | return NULL; |
4765 | } | |
4766 | } | |
cf694132 RD |
4767 | { |
4768 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4769 | _result = (long )wxListCtrl_InsertImageItem(_arg0,_arg1,_arg2); |
cf694132 RD |
4770 | |
4771 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4772 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4773 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4774 | return _resultobj; |
4775 | } | |
4776 | ||
cd096152 RD |
4777 | #define wxListCtrl_InsertImageStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2)) |
4778 | static PyObject *_wrap_wxListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4779 | PyObject * _resultobj; |
cd096152 RD |
4780 | long _result; |
4781 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4782 | long _arg1; |
cd096152 RD |
4783 | wxString * _arg2; |
4784 | int _arg3; | |
1d99702e | 4785 | PyObject * _argo0 = 0; |
2f90df85 | 4786 | PyObject * _obj2 = 0; |
cd096152 | 4787 | char *_kwnames[] = { "self","index","label","imageIndex", NULL }; |
8ab979d7 RD |
4788 | |
4789 | self = self; | |
cd096152 | 4790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_InsertImageStringItem",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) |
8ab979d7 | 4791 | return NULL; |
1d99702e RD |
4792 | if (_argo0) { |
4793 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4794 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4795 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageStringItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4796 | return NULL; |
4797 | } | |
4798 | } | |
2f90df85 | 4799 | { |
cd096152 RD |
4800 | #if PYTHON_API_VERSION >= 1009 |
4801 | char* tmpPtr; int tmpSize; | |
4802 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
4803 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4804 | return NULL; | |
4805 | } | |
4806 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4807 | return NULL; | |
4808 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4809 | #else | |
4810 | if (!PyString_Check(_obj2)) { | |
4811 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8ab979d7 | 4812 | return NULL; |
cd096152 RD |
4813 | } |
4814 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
4815 | #endif | |
2f90df85 | 4816 | } |
cf694132 RD |
4817 | { |
4818 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4819 | _result = (long )wxListCtrl_InsertImageStringItem(_arg0,_arg1,*_arg2,_arg3); |
cf694132 RD |
4820 | |
4821 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4822 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4823 | } _resultobj = Py_BuildValue("l",_result); |
4824 | { | |
4825 | if (_obj2) | |
4826 | delete _arg2; | |
4827 | } | |
8ab979d7 RD |
4828 | return _resultobj; |
4829 | } | |
4830 | ||
cd096152 RD |
4831 | #define wxListCtrl_InsertColumnInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertColumn(_swigarg0,_swigarg1)) |
4832 | static PyObject *_wrap_wxListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4833 | PyObject * _resultobj; |
cd096152 RD |
4834 | long _result; |
4835 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4836 | long _arg1; |
cd096152 | 4837 | wxListItem * _arg2; |
1d99702e | 4838 | PyObject * _argo0 = 0; |
cd096152 RD |
4839 | PyObject * _argo2 = 0; |
4840 | char *_kwnames[] = { "self","col","info", NULL }; | |
8ab979d7 RD |
4841 | |
4842 | self = self; | |
cd096152 | 4843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertColumnInfo",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 4844 | return NULL; |
1d99702e RD |
4845 | if (_argo0) { |
4846 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4847 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4848 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumnInfo. Expected _wxPyListCtrl_p."); | |
4849 | return NULL; | |
4850 | } | |
4851 | } | |
4852 | if (_argo2) { | |
4853 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
4854 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
4855 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_InsertColumnInfo. Expected _wxListItem_p."); | |
8ab979d7 RD |
4856 | return NULL; |
4857 | } | |
4858 | } | |
cf694132 RD |
4859 | { |
4860 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4861 | _result = (long )wxListCtrl_InsertColumnInfo(_arg0,_arg1,*_arg2); |
cf694132 RD |
4862 | |
4863 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4864 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4865 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4866 | return _resultobj; |
4867 | } | |
4868 | ||
cd096152 RD |
4869 | #define wxListCtrl_InsertColumn(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertColumn(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
4870 | static PyObject *_wrap_wxListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4871 | PyObject * _resultobj; |
cd096152 RD |
4872 | long _result; |
4873 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
4874 | long _arg1; |
4875 | wxString * _arg2; | |
cd096152 RD |
4876 | int _arg3 = (int ) (wxLIST_FORMAT_LEFT); |
4877 | int _arg4 = (int ) -1; | |
1d99702e | 4878 | PyObject * _argo0 = 0; |
8ab979d7 | 4879 | PyObject * _obj2 = 0; |
cd096152 | 4880 | char *_kwnames[] = { "self","col","heading","format","width", NULL }; |
8ab979d7 RD |
4881 | |
4882 | self = self; | |
cd096152 | 4883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|ii:wxListCtrl_InsertColumn",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3,&_arg4)) |
8ab979d7 | 4884 | return NULL; |
1d99702e RD |
4885 | if (_argo0) { |
4886 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4887 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4888 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumn. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4889 | return NULL; |
4890 | } | |
4891 | } | |
4892 | { | |
2cd2fac8 RD |
4893 | #if PYTHON_API_VERSION >= 1009 |
4894 | char* tmpPtr; int tmpSize; | |
4895 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 4896 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
4897 | return NULL; |
4898 | } | |
4899 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4900 | return NULL; | |
4901 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4902 | #else | |
8ab979d7 RD |
4903 | if (!PyString_Check(_obj2)) { |
4904 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4905 | return NULL; | |
4906 | } | |
2cd2fac8 RD |
4907 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
4908 | #endif | |
8ab979d7 | 4909 | } |
cf694132 RD |
4910 | { |
4911 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4912 | _result = (long )wxListCtrl_InsertColumn(_arg0,_arg1,*_arg2,_arg3,_arg4); |
cf694132 RD |
4913 | |
4914 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4915 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4916 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4917 | { |
4918 | if (_obj2) | |
4919 | delete _arg2; | |
4920 | } | |
4921 | return _resultobj; | |
4922 | } | |
4923 | ||
cd096152 RD |
4924 | #define wxListCtrl_SetItemCount(_swigobj,_swigarg0) (_swigobj->SetItemCount(_swigarg0)) |
4925 | static PyObject *_wrap_wxListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4926 | PyObject * _resultobj; |
cd096152 | 4927 | wxPyListCtrl * _arg0; |
8ab979d7 | 4928 | long _arg1; |
1d99702e | 4929 | PyObject * _argo0 = 0; |
cd096152 | 4930 | char *_kwnames[] = { "self","count", NULL }; |
8ab979d7 RD |
4931 | |
4932 | self = self; | |
cd096152 | 4933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetItemCount",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4934 | return NULL; |
1d99702e RD |
4935 | if (_argo0) { |
4936 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4937 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4938 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4939 | return NULL; |
4940 | } | |
4941 | } | |
cf694132 RD |
4942 | { |
4943 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4944 | wxListCtrl_SetItemCount(_arg0,_arg1); |
cf694132 RD |
4945 | |
4946 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4947 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4948 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4949 | _resultobj = Py_None; |
4950 | return _resultobj; | |
4951 | } | |
4952 | ||
cd096152 RD |
4953 | #define wxListCtrl_ScrollList(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScrollList(_swigarg0,_swigarg1)) |
4954 | static PyObject *_wrap_wxListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4955 | PyObject * _resultobj; |
cd096152 RD |
4956 | bool _result; |
4957 | wxPyListCtrl * _arg0; | |
4958 | int _arg1; | |
4959 | int _arg2; | |
1d99702e | 4960 | PyObject * _argo0 = 0; |
cd096152 | 4961 | char *_kwnames[] = { "self","dx","dy", NULL }; |
8ab979d7 RD |
4962 | |
4963 | self = self; | |
cd096152 | 4964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_ScrollList",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4965 | return NULL; |
1d99702e RD |
4966 | if (_argo0) { |
4967 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4968 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4969 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ScrollList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4970 | return NULL; |
4971 | } | |
4972 | } | |
cf694132 RD |
4973 | { |
4974 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4975 | _result = (bool )wxListCtrl_ScrollList(_arg0,_arg1,_arg2); |
cf694132 RD |
4976 | |
4977 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4978 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4979 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4980 | return _resultobj; |
4981 | } | |
4982 | ||
cd096152 | 4983 | static bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject * func) { |
dcd38683 RD |
4984 | if (!PyCallable_Check(func)) |
4985 | return FALSE; | |
f6bcfd97 | 4986 | return self->SortItems(wxPyListCtrl_SortItems, (long)func); |
dcd38683 RD |
4987 | } |
4988 | static PyObject *_wrap_wxListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4989 | PyObject * _resultobj; | |
4990 | bool _result; | |
cd096152 | 4991 | wxPyListCtrl * _arg0; |
dcd38683 RD |
4992 | PyObject * _arg1; |
4993 | PyObject * _argo0 = 0; | |
4994 | PyObject * _obj1 = 0; | |
4995 | char *_kwnames[] = { "self","func", NULL }; | |
4996 | ||
4997 | self = self; | |
4998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SortItems",_kwnames,&_argo0,&_obj1)) | |
4999 | return NULL; | |
5000 | if (_argo0) { | |
5001 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
5002 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
5003 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SortItems. Expected _wxPyListCtrl_p."); | |
dcd38683 RD |
5004 | return NULL; |
5005 | } | |
5006 | } | |
5007 | { | |
5008 | _arg1 = _obj1; | |
5009 | } | |
5010 | { | |
5011 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 5012 | _result = (bool )wxPyListCtrl_SortItems(_arg0,_arg1); |
dcd38683 RD |
5013 | |
5014 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5015 | if (PyErr_Occurred()) return NULL; |
dcd38683 RD |
5016 | } _resultobj = Py_BuildValue("i",_result); |
5017 | return _resultobj; | |
5018 | } | |
5019 | ||
d5c9047a | 5020 | #define new_wxTreeItemId() (new wxTreeItemId()) |
efc5f224 | 5021 | static PyObject *_wrap_new_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5022 | PyObject * _resultobj; |
d5c9047a | 5023 | wxTreeItemId * _result; |
efc5f224 | 5024 | char *_kwnames[] = { NULL }; |
d5c9047a | 5025 | char _ptemp[128]; |
8ab979d7 RD |
5026 | |
5027 | self = self; | |
efc5f224 | 5028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxTreeItemId",_kwnames)) |
8ab979d7 | 5029 | return NULL; |
cf694132 RD |
5030 | { |
5031 | wxPy_BEGIN_ALLOW_THREADS; | |
5032 | _result = (wxTreeItemId *)new_wxTreeItemId(); | |
5033 | ||
5034 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5035 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5036 | } if (_result) { |
5037 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
5038 | _resultobj = Py_BuildValue("s",_ptemp); | |
5039 | } else { | |
5040 | Py_INCREF(Py_None); | |
5041 | _resultobj = Py_None; | |
5042 | } | |
8ab979d7 RD |
5043 | return _resultobj; |
5044 | } | |
5045 | ||
d5c9047a | 5046 | #define delete_wxTreeItemId(_swigobj) (delete _swigobj) |
efc5f224 | 5047 | static PyObject *_wrap_delete_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5048 | PyObject * _resultobj; |
d5c9047a | 5049 | wxTreeItemId * _arg0; |
1d99702e | 5050 | PyObject * _argo0 = 0; |
efc5f224 | 5051 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5052 | |
5053 | self = self; | |
efc5f224 | 5054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTreeItemId",_kwnames,&_argo0)) |
8ab979d7 | 5055 | return NULL; |
1d99702e RD |
5056 | if (_argo0) { |
5057 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5058 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
d5c9047a | 5059 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTreeItemId. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
5060 | return NULL; |
5061 | } | |
5062 | } | |
cf694132 RD |
5063 | { |
5064 | wxPy_BEGIN_ALLOW_THREADS; | |
5065 | delete_wxTreeItemId(_arg0); | |
5066 | ||
5067 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5068 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5069 | } Py_INCREF(Py_None); |
d5c9047a | 5070 | _resultobj = Py_None; |
8ab979d7 RD |
5071 | return _resultobj; |
5072 | } | |
5073 | ||
d5c9047a | 5074 | #define wxTreeItemId_IsOk(_swigobj) (_swigobj->IsOk()) |
efc5f224 | 5075 | static PyObject *_wrap_wxTreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5076 | PyObject * _resultobj; |
d5c9047a RD |
5077 | bool _result; |
5078 | wxTreeItemId * _arg0; | |
1d99702e | 5079 | PyObject * _argo0 = 0; |
efc5f224 | 5080 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5081 | |
5082 | self = self; | |
efc5f224 | 5083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemId_IsOk",_kwnames,&_argo0)) |
8ab979d7 | 5084 | return NULL; |
1d99702e RD |
5085 | if (_argo0) { |
5086 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5087 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
d5c9047a | 5088 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId_IsOk. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
5089 | return NULL; |
5090 | } | |
5091 | } | |
cf694132 RD |
5092 | { |
5093 | wxPy_BEGIN_ALLOW_THREADS; | |
5094 | _result = (bool )wxTreeItemId_IsOk(_arg0); | |
5095 | ||
5096 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5097 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5098 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5099 | return _resultobj; |
5100 | } | |
5101 | ||
f6bcfd97 | 5102 | static int wxTreeItemId___cmp__(wxTreeItemId *self,wxTreeItemId * other) { |
c368d904 | 5103 | if (! other) return -1; |
f6bcfd97 BP |
5104 | return *self != *other; |
5105 | } | |
5106 | static PyObject *_wrap_wxTreeItemId___cmp__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5107 | PyObject * _resultobj; | |
5108 | int _result; | |
5109 | wxTreeItemId * _arg0; | |
5110 | wxTreeItemId * _arg1; | |
5111 | PyObject * _argo0 = 0; | |
5112 | PyObject * _argo1 = 0; | |
5113 | char *_kwnames[] = { "self","other", NULL }; | |
5114 | ||
5115 | self = self; | |
5116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemId___cmp__",_kwnames,&_argo0,&_argo1)) | |
5117 | return NULL; | |
5118 | if (_argo0) { | |
5119 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5120 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
5121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
5122 | return NULL; | |
5123 | } | |
5124 | } | |
5125 | if (_argo1) { | |
5126 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5127 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
5128 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
5129 | return NULL; | |
5130 | } | |
5131 | } | |
5132 | { | |
5133 | wxPy_BEGIN_ALLOW_THREADS; | |
5134 | _result = (int )wxTreeItemId___cmp__(_arg0,_arg1); | |
5135 | ||
5136 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5137 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
5138 | } _resultobj = Py_BuildValue("i",_result); |
5139 | return _resultobj; | |
5140 | } | |
5141 | ||
9df61a29 RD |
5142 | static void *SwigwxPyTreeItemDataTowxObject(void *ptr) { |
5143 | wxPyTreeItemData *src; | |
5144 | wxObject *dest; | |
5145 | src = (wxPyTreeItemData *) ptr; | |
5146 | dest = (wxObject *) src; | |
5147 | return (void *) dest; | |
5148 | } | |
5149 | ||
cf694132 | 5150 | #define new_wxTreeItemData(_swigarg0) (new wxPyTreeItemData(_swigarg0)) |
efc5f224 | 5151 | static PyObject *_wrap_new_wxTreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5152 | PyObject * _resultobj; |
cf694132 | 5153 | wxPyTreeItemData * _result; |
1d99702e | 5154 | PyObject * _arg0 = (PyObject *) NULL; |
cf694132 | 5155 | PyObject * _obj0 = 0; |
efc5f224 | 5156 | char *_kwnames[] = { "obj", NULL }; |
d5c9047a | 5157 | char _ptemp[128]; |
8ab979d7 RD |
5158 | |
5159 | self = self; | |
efc5f224 | 5160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxTreeItemData",_kwnames,&_obj0)) |
8ab979d7 | 5161 | return NULL; |
cf694132 RD |
5162 | if (_obj0) |
5163 | { | |
5164 | _arg0 = _obj0; | |
5165 | } | |
5166 | { | |
5167 | wxPy_BEGIN_ALLOW_THREADS; | |
5168 | _result = (wxPyTreeItemData *)new_wxTreeItemData(_arg0); | |
5169 | ||
5170 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5171 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5172 | } if (_result) { |
5173 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
5174 | _resultobj = Py_BuildValue("s",_ptemp); | |
5175 | } else { | |
5176 | Py_INCREF(Py_None); | |
5177 | _resultobj = Py_None; | |
5178 | } | |
8ab979d7 RD |
5179 | return _resultobj; |
5180 | } | |
5181 | ||
cf694132 | 5182 | #define wxTreeItemData_GetData(_swigobj) (_swigobj->GetData()) |
efc5f224 | 5183 | static PyObject *_wrap_wxTreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
5184 | PyObject * _resultobj; |
5185 | PyObject * _result; | |
5186 | wxPyTreeItemData * _arg0; | |
1d99702e | 5187 | PyObject * _argo0 = 0; |
efc5f224 | 5188 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
5189 | |
5190 | self = self; | |
efc5f224 | 5191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetData",_kwnames,&_argo0)) |
cf694132 | 5192 | return NULL; |
1d99702e RD |
5193 | if (_argo0) { |
5194 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5195 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 RD |
5196 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetData. Expected _wxPyTreeItemData_p."); |
5197 | return NULL; | |
5198 | } | |
5199 | } | |
5200 | { | |
5201 | wxPy_BEGIN_ALLOW_THREADS; | |
5202 | _result = (PyObject *)wxTreeItemData_GetData(_arg0); | |
5203 | ||
5204 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5205 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
5206 | }{ |
5207 | _resultobj = _result; | |
5208 | } | |
5209 | return _resultobj; | |
5210 | } | |
5211 | ||
5212 | #define wxTreeItemData_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
efc5f224 | 5213 | static PyObject *_wrap_wxTreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5214 | PyObject * _resultobj; |
cf694132 RD |
5215 | wxPyTreeItemData * _arg0; |
5216 | PyObject * _arg1; | |
1d99702e | 5217 | PyObject * _argo0 = 0; |
cf694132 | 5218 | PyObject * _obj1 = 0; |
efc5f224 | 5219 | char *_kwnames[] = { "self","obj", NULL }; |
8ab979d7 RD |
5220 | |
5221 | self = self; | |
efc5f224 | 5222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetData",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 5223 | return NULL; |
1d99702e RD |
5224 | if (_argo0) { |
5225 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5226 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 5227 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetData. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
5228 | return NULL; |
5229 | } | |
5230 | } | |
cf694132 RD |
5231 | { |
5232 | _arg1 = _obj1; | |
5233 | } | |
5234 | { | |
5235 | wxPy_BEGIN_ALLOW_THREADS; | |
5236 | wxTreeItemData_SetData(_arg0,_arg1); | |
5237 | ||
5238 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5239 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5240 | } Py_INCREF(Py_None); |
d5c9047a | 5241 | _resultobj = Py_None; |
8ab979d7 RD |
5242 | return _resultobj; |
5243 | } | |
5244 | ||
630d84f2 | 5245 | #define wxTreeItemData_GetId(_swigobj) (_swigobj->GetId()) |
efc5f224 | 5246 | static PyObject *_wrap_wxTreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5247 | PyObject * _resultobj; |
d5c9047a | 5248 | wxTreeItemId * _result; |
cf694132 | 5249 | wxPyTreeItemData * _arg0; |
1d99702e | 5250 | PyObject * _argo0 = 0; |
efc5f224 | 5251 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5252 | char _ptemp[128]; |
5253 | ||
5254 | self = self; | |
efc5f224 | 5255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetId",_kwnames,&_argo0)) |
8ab979d7 | 5256 | return NULL; |
1d99702e RD |
5257 | if (_argo0) { |
5258 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5259 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 5260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetId. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
5261 | return NULL; |
5262 | } | |
5263 | } | |
cf694132 RD |
5264 | { |
5265 | wxPy_BEGIN_ALLOW_THREADS; | |
5266 | const wxTreeItemId & _result_ref = wxTreeItemData_GetId(_arg0); | |
d5c9047a | 5267 | _result = (wxTreeItemId *) &_result_ref; |
cf694132 RD |
5268 | |
5269 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5270 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5271 | } if (_result) { |
5272 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
5273 | _resultobj = Py_BuildValue("s",_ptemp); | |
5274 | } else { | |
5275 | Py_INCREF(Py_None); | |
5276 | _resultobj = Py_None; | |
5277 | } | |
8ab979d7 RD |
5278 | return _resultobj; |
5279 | } | |
5280 | ||
630d84f2 | 5281 | #define wxTreeItemData_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) |
efc5f224 | 5282 | static PyObject *_wrap_wxTreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
630d84f2 | 5283 | PyObject * _resultobj; |
cf694132 | 5284 | wxPyTreeItemData * _arg0; |
630d84f2 | 5285 | wxTreeItemId * _arg1; |
1d99702e RD |
5286 | PyObject * _argo0 = 0; |
5287 | PyObject * _argo1 = 0; | |
efc5f224 | 5288 | char *_kwnames[] = { "self","id", NULL }; |
630d84f2 RD |
5289 | |
5290 | self = self; | |
efc5f224 | 5291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetId",_kwnames,&_argo0,&_argo1)) |
630d84f2 | 5292 | return NULL; |
1d99702e RD |
5293 | if (_argo0) { |
5294 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5295 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 5296 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetId. Expected _wxPyTreeItemData_p."); |
630d84f2 RD |
5297 | return NULL; |
5298 | } | |
5299 | } | |
1d99702e RD |
5300 | if (_argo1) { |
5301 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5302 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
630d84f2 RD |
5303 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemData_SetId. Expected _wxTreeItemId_p."); |
5304 | return NULL; | |
5305 | } | |
5306 | } | |
cf694132 RD |
5307 | { |
5308 | wxPy_BEGIN_ALLOW_THREADS; | |
5309 | wxTreeItemData_SetId(_arg0,*_arg1); | |
5310 | ||
5311 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5312 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5313 | } Py_INCREF(Py_None); |
630d84f2 RD |
5314 | _resultobj = Py_None; |
5315 | return _resultobj; | |
5316 | } | |
5317 | ||
8bf5d46e RD |
5318 | static void *SwigwxTreeEventTowxNotifyEvent(void *ptr) { |
5319 | wxTreeEvent *src; | |
5320 | wxNotifyEvent *dest; | |
5321 | src = (wxTreeEvent *) ptr; | |
5322 | dest = (wxNotifyEvent *) src; | |
5323 | return (void *) dest; | |
5324 | } | |
5325 | ||
8ab979d7 RD |
5326 | static void *SwigwxTreeEventTowxCommandEvent(void *ptr) { |
5327 | wxTreeEvent *src; | |
5328 | wxCommandEvent *dest; | |
5329 | src = (wxTreeEvent *) ptr; | |
5330 | dest = (wxCommandEvent *) src; | |
5331 | return (void *) dest; | |
5332 | } | |
5333 | ||
5334 | static void *SwigwxTreeEventTowxEvent(void *ptr) { | |
5335 | wxTreeEvent *src; | |
5336 | wxEvent *dest; | |
5337 | src = (wxTreeEvent *) ptr; | |
5338 | dest = (wxEvent *) src; | |
5339 | return (void *) dest; | |
5340 | } | |
5341 | ||
9df61a29 RD |
5342 | static void *SwigwxTreeEventTowxObject(void *ptr) { |
5343 | wxTreeEvent *src; | |
5344 | wxObject *dest; | |
5345 | src = (wxTreeEvent *) ptr; | |
5346 | dest = (wxObject *) src; | |
5347 | return (void *) dest; | |
5348 | } | |
5349 | ||
d5c9047a | 5350 | #define wxTreeEvent_GetItem(_swigobj) (_swigobj->GetItem()) |
efc5f224 | 5351 | static PyObject *_wrap_wxTreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5352 | PyObject * _resultobj; |
d5c9047a | 5353 | wxTreeItemId * _result; |
8ab979d7 | 5354 | wxTreeEvent * _arg0; |
1d99702e | 5355 | PyObject * _argo0 = 0; |
efc5f224 | 5356 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 5357 | char _ptemp[128]; |
8ab979d7 RD |
5358 | |
5359 | self = self; | |
efc5f224 | 5360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetItem",_kwnames,&_argo0)) |
8ab979d7 | 5361 | return NULL; |
1d99702e RD |
5362 | if (_argo0) { |
5363 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5364 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 5365 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetItem. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
5366 | return NULL; |
5367 | } | |
5368 | } | |
cf694132 RD |
5369 | { |
5370 | wxPy_BEGIN_ALLOW_THREADS; | |
5371 | _result = new wxTreeItemId (wxTreeEvent_GetItem(_arg0)); | |
5372 | ||
5373 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5374 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5375 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 5376 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
5377 | return _resultobj; |
5378 | } | |
5379 | ||
d5c9047a | 5380 | #define wxTreeEvent_GetOldItem(_swigobj) (_swigobj->GetOldItem()) |
efc5f224 | 5381 | static PyObject *_wrap_wxTreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5382 | PyObject * _resultobj; |
d5c9047a | 5383 | wxTreeItemId * _result; |
8ab979d7 | 5384 | wxTreeEvent * _arg0; |
1d99702e | 5385 | PyObject * _argo0 = 0; |
efc5f224 | 5386 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5387 | char _ptemp[128]; |
5388 | ||
5389 | self = self; | |
efc5f224 | 5390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetOldItem",_kwnames,&_argo0)) |
8ab979d7 | 5391 | return NULL; |
1d99702e RD |
5392 | if (_argo0) { |
5393 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5394 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 5395 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetOldItem. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
5396 | return NULL; |
5397 | } | |
5398 | } | |
cf694132 RD |
5399 | { |
5400 | wxPy_BEGIN_ALLOW_THREADS; | |
5401 | _result = new wxTreeItemId (wxTreeEvent_GetOldItem(_arg0)); | |
5402 | ||
5403 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5404 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5405 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
8ab979d7 RD |
5406 | _resultobj = Py_BuildValue("s",_ptemp); |
5407 | return _resultobj; | |
5408 | } | |
5409 | ||
d5c9047a | 5410 | #define wxTreeEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) |
efc5f224 | 5411 | static PyObject *_wrap_wxTreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5412 | PyObject * _resultobj; |
d5c9047a | 5413 | wxPoint * _result; |
8ab979d7 | 5414 | wxTreeEvent * _arg0; |
1d99702e | 5415 | PyObject * _argo0 = 0; |
efc5f224 | 5416 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 5417 | char _ptemp[128]; |
8ab979d7 RD |
5418 | |
5419 | self = self; | |
efc5f224 | 5420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetPoint",_kwnames,&_argo0)) |
8ab979d7 | 5421 | return NULL; |
1d99702e RD |
5422 | if (_argo0) { |
5423 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5424 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 5425 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetPoint. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
5426 | return NULL; |
5427 | } | |
5428 | } | |
cf694132 RD |
5429 | { |
5430 | wxPy_BEGIN_ALLOW_THREADS; | |
5431 | _result = new wxPoint (wxTreeEvent_GetPoint(_arg0)); | |
5432 | ||
5433 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5434 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5435 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
d5c9047a | 5436 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
5437 | return _resultobj; |
5438 | } | |
5439 | ||
d5c9047a | 5440 | #define wxTreeEvent_GetCode(_swigobj) (_swigobj->GetCode()) |
efc5f224 | 5441 | static PyObject *_wrap_wxTreeEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5442 | PyObject * _resultobj; |
d5c9047a | 5443 | int _result; |
8ab979d7 | 5444 | wxTreeEvent * _arg0; |
1d99702e | 5445 | PyObject * _argo0 = 0; |
efc5f224 | 5446 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5447 | |
5448 | self = self; | |
efc5f224 | 5449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetCode",_kwnames,&_argo0)) |
8ab979d7 | 5450 | return NULL; |
1d99702e RD |
5451 | if (_argo0) { |
5452 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5453 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 5454 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetCode. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
5455 | return NULL; |
5456 | } | |
5457 | } | |
cf694132 RD |
5458 | { |
5459 | wxPy_BEGIN_ALLOW_THREADS; | |
5460 | _result = (int )wxTreeEvent_GetCode(_arg0); | |
5461 | ||
5462 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5463 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5464 | } _resultobj = Py_BuildValue("i",_result); |
d5c9047a RD |
5465 | return _resultobj; |
5466 | } | |
5467 | ||
8bf5d46e | 5468 | #define wxTreeEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 5469 | static PyObject *_wrap_wxTreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 5470 | PyObject * _resultobj; |
8bf5d46e | 5471 | wxString * _result; |
d5c9047a | 5472 | wxTreeEvent * _arg0; |
1d99702e | 5473 | PyObject * _argo0 = 0; |
efc5f224 | 5474 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
5475 | |
5476 | self = self; | |
efc5f224 | 5477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetLabel",_kwnames,&_argo0)) |
d5c9047a | 5478 | return NULL; |
1d99702e RD |
5479 | if (_argo0) { |
5480 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5481 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
8bf5d46e | 5482 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetLabel. Expected _wxTreeEvent_p."); |
d5c9047a RD |
5483 | return NULL; |
5484 | } | |
5485 | } | |
cf694132 RD |
5486 | { |
5487 | wxPy_BEGIN_ALLOW_THREADS; | |
8bf5d46e RD |
5488 | const wxString & _result_ref = wxTreeEvent_GetLabel(_arg0); |
5489 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
5490 | |
5491 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5492 | if (PyErr_Occurred()) return NULL; |
8bf5d46e | 5493 | }{ |
eec92d76 | 5494 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8bf5d46e | 5495 | } |
8ab979d7 RD |
5496 | return _resultobj; |
5497 | } | |
5498 | ||
f6bcfd97 BP |
5499 | static void *SwigwxPyTreeCtrlTowxControl(void *ptr) { |
5500 | wxPyTreeCtrl *src; | |
8ab979d7 | 5501 | wxControl *dest; |
f6bcfd97 | 5502 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
5503 | dest = (wxControl *) src; |
5504 | return (void *) dest; | |
5505 | } | |
5506 | ||
f6bcfd97 BP |
5507 | static void *SwigwxPyTreeCtrlTowxWindow(void *ptr) { |
5508 | wxPyTreeCtrl *src; | |
8ab979d7 | 5509 | wxWindow *dest; |
f6bcfd97 | 5510 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
5511 | dest = (wxWindow *) src; |
5512 | return (void *) dest; | |
5513 | } | |
5514 | ||
f6bcfd97 BP |
5515 | static void *SwigwxPyTreeCtrlTowxEvtHandler(void *ptr) { |
5516 | wxPyTreeCtrl *src; | |
8ab979d7 | 5517 | wxEvtHandler *dest; |
f6bcfd97 | 5518 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
5519 | dest = (wxEvtHandler *) src; |
5520 | return (void *) dest; | |
5521 | } | |
5522 | ||
9df61a29 RD |
5523 | static void *SwigwxPyTreeCtrlTowxObject(void *ptr) { |
5524 | wxPyTreeCtrl *src; | |
5525 | wxObject *dest; | |
5526 | src = (wxPyTreeCtrl *) ptr; | |
5527 | dest = (wxObject *) src; | |
5528 | return (void *) dest; | |
5529 | } | |
5530 | ||
f6bcfd97 | 5531 | #define new_wxTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 5532 | static PyObject *_wrap_new_wxTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5533 | PyObject * _resultobj; |
f6bcfd97 | 5534 | wxPyTreeCtrl * _result; |
8ab979d7 | 5535 | wxWindow * _arg0; |
1d99702e | 5536 | wxWindowID _arg1 = (wxWindowID ) -1; |
b68dc582 RD |
5537 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
5538 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e | 5539 | long _arg4 = (long ) wxTR_HAS_BUTTONS|wxTR_LINES_AT_ROOT; |
b68dc582 | 5540 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
5541 | char * _arg6 = (char *) "wxTreeCtrl"; |
5542 | PyObject * _argo0 = 0; | |
2f90df85 RD |
5543 | wxPoint temp; |
5544 | PyObject * _obj2 = 0; | |
5545 | wxSize temp0; | |
5546 | PyObject * _obj3 = 0; | |
1d99702e | 5547 | PyObject * _argo5 = 0; |
efc5f224 | 5548 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
5549 | char _ptemp[128]; |
5550 | ||
5551 | self = self; | |
2f90df85 | 5552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxTreeCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) |
8ab979d7 | 5553 | return NULL; |
1d99702e RD |
5554 | if (_argo0) { |
5555 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5556 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5557 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTreeCtrl. Expected _wxWindow_p."); |
5558 | return NULL; | |
5559 | } | |
5560 | } | |
2f90df85 RD |
5561 | if (_obj2) |
5562 | { | |
5563 | _arg2 = &temp; | |
5564 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 5565 | return NULL; |
2f90df85 RD |
5566 | } |
5567 | if (_obj3) | |
5568 | { | |
5569 | _arg3 = &temp0; | |
5570 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 5571 | return NULL; |
2f90df85 | 5572 | } |
1d99702e RD |
5573 | if (_argo5) { |
5574 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
5575 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
8ab979d7 RD |
5576 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxTreeCtrl. Expected _wxValidator_p."); |
5577 | return NULL; | |
5578 | } | |
5579 | } | |
cf694132 RD |
5580 | { |
5581 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 5582 | _result = (wxPyTreeCtrl *)new_wxTreeCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); |
cf694132 RD |
5583 | |
5584 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5585 | if (PyErr_Occurred()) return NULL; |
1d99702e | 5586 | } if (_result) { |
f6bcfd97 | 5587 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p"); |
1d99702e RD |
5588 | _resultobj = Py_BuildValue("s",_ptemp); |
5589 | } else { | |
5590 | Py_INCREF(Py_None); | |
5591 | _resultobj = Py_None; | |
5592 | } | |
8ab979d7 RD |
5593 | return _resultobj; |
5594 | } | |
5595 | ||
f6bcfd97 BP |
5596 | #define wxTreeCtrl__setSelf(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setSelf(_swigarg0,_swigarg1)) |
5597 | static PyObject *_wrap_wxTreeCtrl__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5598 | PyObject * _resultobj; | |
5599 | wxPyTreeCtrl * _arg0; | |
5600 | PyObject * _arg1; | |
5601 | PyObject * _arg2; | |
5602 | PyObject * _argo0 = 0; | |
5603 | PyObject * _obj1 = 0; | |
5604 | PyObject * _obj2 = 0; | |
5605 | char *_kwnames[] = { "self","self","_class", NULL }; | |
5606 | ||
5607 | self = self; | |
5608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl__setSelf",_kwnames,&_argo0,&_obj1,&_obj2)) | |
5609 | return NULL; | |
5610 | if (_argo0) { | |
5611 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5612 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
5613 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl__setSelf. Expected _wxPyTreeCtrl_p."); | |
5614 | return NULL; | |
5615 | } | |
5616 | } | |
5617 | { | |
5618 | _arg1 = _obj1; | |
5619 | } | |
5620 | { | |
5621 | _arg2 = _obj2; | |
5622 | } | |
5623 | { | |
5624 | wxPy_BEGIN_ALLOW_THREADS; | |
5625 | wxTreeCtrl__setSelf(_arg0,_arg1,_arg2); | |
5626 | ||
5627 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5628 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
5629 | } Py_INCREF(Py_None); |
5630 | _resultobj = Py_None; | |
5631 | return _resultobj; | |
5632 | } | |
5633 | ||
9c4165ad RD |
5634 | #define wxTreeCtrl_AssignImageList(_swigobj,_swigarg0) (_swigobj->AssignImageList(_swigarg0)) |
5635 | static PyObject *_wrap_wxTreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5636 | PyObject * _resultobj; | |
5637 | wxPyTreeCtrl * _arg0; | |
5638 | wxImageList * _arg1; | |
5639 | PyObject * _argo0 = 0; | |
5640 | PyObject * _argo1 = 0; | |
5641 | char *_kwnames[] = { "self","imageList", NULL }; | |
5642 | ||
5643 | self = self; | |
5644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignImageList",_kwnames,&_argo0,&_argo1)) | |
5645 | return NULL; | |
5646 | if (_argo0) { | |
5647 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5648 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
5649 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignImageList. Expected _wxPyTreeCtrl_p."); | |
5650 | return NULL; | |
5651 | } | |
5652 | } | |
5653 | if (_argo1) { | |
5654 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5655 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
5656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignImageList. Expected _wxImageList_p."); | |
5657 | return NULL; | |
5658 | } | |
5659 | } | |
5660 | { | |
5661 | wxPy_BEGIN_ALLOW_THREADS; | |
5662 | wxTreeCtrl_AssignImageList(_arg0,_arg1); | |
5663 | ||
5664 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5665 | if (PyErr_Occurred()) return NULL; |
9c4165ad RD |
5666 | } Py_INCREF(Py_None); |
5667 | _resultobj = Py_None; | |
5668 | return _resultobj; | |
5669 | } | |
5670 | ||
d5c9047a | 5671 | #define wxTreeCtrl_GetCount(_swigobj) (_swigobj->GetCount()) |
efc5f224 | 5672 | static PyObject *_wrap_wxTreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5673 | PyObject * _resultobj; |
c127177f | 5674 | size_t _result; |
f6bcfd97 | 5675 | wxPyTreeCtrl * _arg0; |
1d99702e | 5676 | PyObject * _argo0 = 0; |
efc5f224 | 5677 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5678 | |
5679 | self = self; | |
efc5f224 | 5680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetCount",_kwnames,&_argo0)) |
8ab979d7 | 5681 | return NULL; |
1d99702e RD |
5682 | if (_argo0) { |
5683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetCount. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5686 | return NULL; |
5687 | } | |
5688 | } | |
cf694132 RD |
5689 | { |
5690 | wxPy_BEGIN_ALLOW_THREADS; | |
c127177f | 5691 | _result = (size_t )wxTreeCtrl_GetCount(_arg0); |
cf694132 RD |
5692 | |
5693 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5694 | if (PyErr_Occurred()) return NULL; |
c127177f | 5695 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5696 | return _resultobj; |
5697 | } | |
5698 | ||
d5c9047a | 5699 | #define wxTreeCtrl_GetIndent(_swigobj) (_swigobj->GetIndent()) |
efc5f224 | 5700 | static PyObject *_wrap_wxTreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5701 | PyObject * _resultobj; |
d5c9047a | 5702 | unsigned int _result; |
f6bcfd97 | 5703 | wxPyTreeCtrl * _arg0; |
1d99702e | 5704 | PyObject * _argo0 = 0; |
efc5f224 | 5705 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5706 | |
5707 | self = self; | |
efc5f224 | 5708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetIndent",_kwnames,&_argo0)) |
8ab979d7 | 5709 | return NULL; |
1d99702e RD |
5710 | if (_argo0) { |
5711 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5712 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetIndent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5714 | return NULL; |
5715 | } | |
5716 | } | |
cf694132 RD |
5717 | { |
5718 | wxPy_BEGIN_ALLOW_THREADS; | |
5719 | _result = (unsigned int )wxTreeCtrl_GetIndent(_arg0); | |
5720 | ||
5721 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5722 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5723 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5724 | return _resultobj; |
5725 | } | |
5726 | ||
d5c9047a | 5727 | #define wxTreeCtrl_SetIndent(_swigobj,_swigarg0) (_swigobj->SetIndent(_swigarg0)) |
efc5f224 | 5728 | static PyObject *_wrap_wxTreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5729 | PyObject * _resultobj; |
f6bcfd97 | 5730 | wxPyTreeCtrl * _arg0; |
d5c9047a | 5731 | unsigned int _arg1; |
1d99702e | 5732 | PyObject * _argo0 = 0; |
efc5f224 | 5733 | char *_kwnames[] = { "self","indent", NULL }; |
8ab979d7 RD |
5734 | |
5735 | self = self; | |
efc5f224 | 5736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetIndent",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5737 | return NULL; |
1d99702e RD |
5738 | if (_argo0) { |
5739 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5740 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5741 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetIndent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5742 | return NULL; |
5743 | } | |
5744 | } | |
cf694132 RD |
5745 | { |
5746 | wxPy_BEGIN_ALLOW_THREADS; | |
5747 | wxTreeCtrl_SetIndent(_arg0,_arg1); | |
5748 | ||
5749 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5750 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5751 | } Py_INCREF(Py_None); |
d5c9047a | 5752 | _resultobj = Py_None; |
8ab979d7 RD |
5753 | return _resultobj; |
5754 | } | |
5755 | ||
d5c9047a | 5756 | #define wxTreeCtrl_GetImageList(_swigobj) (_swigobj->GetImageList()) |
efc5f224 | 5757 | static PyObject *_wrap_wxTreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5758 | PyObject * _resultobj; |
d5c9047a | 5759 | wxImageList * _result; |
f6bcfd97 | 5760 | wxPyTreeCtrl * _arg0; |
1d99702e | 5761 | PyObject * _argo0 = 0; |
efc5f224 | 5762 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5763 | |
5764 | self = self; | |
efc5f224 | 5765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetImageList",_kwnames,&_argo0)) |
8ab979d7 | 5766 | return NULL; |
1d99702e RD |
5767 | if (_argo0) { |
5768 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5769 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5770 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5771 | return NULL; |
5772 | } | |
5773 | } | |
cf694132 RD |
5774 | { |
5775 | wxPy_BEGIN_ALLOW_THREADS; | |
5776 | _result = (wxImageList *)wxTreeCtrl_GetImageList(_arg0); | |
5777 | ||
5778 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5779 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 5780 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
5781 | return _resultobj; |
5782 | } | |
5783 | ||
d5c9047a | 5784 | #define wxTreeCtrl_GetStateImageList(_swigobj) (_swigobj->GetStateImageList()) |
efc5f224 | 5785 | static PyObject *_wrap_wxTreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5786 | PyObject * _resultobj; |
d5c9047a | 5787 | wxImageList * _result; |
f6bcfd97 | 5788 | wxPyTreeCtrl * _arg0; |
1d99702e | 5789 | PyObject * _argo0 = 0; |
efc5f224 | 5790 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5791 | |
5792 | self = self; | |
efc5f224 | 5793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetStateImageList",_kwnames,&_argo0)) |
8ab979d7 | 5794 | return NULL; |
1d99702e RD |
5795 | if (_argo0) { |
5796 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5797 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5798 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetStateImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5799 | return NULL; |
5800 | } | |
5801 | } | |
cf694132 RD |
5802 | { |
5803 | wxPy_BEGIN_ALLOW_THREADS; | |
5804 | _result = (wxImageList *)wxTreeCtrl_GetStateImageList(_arg0); | |
5805 | ||
5806 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5807 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 5808 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
5809 | return _resultobj; |
5810 | } | |
5811 | ||
d5c9047a | 5812 | #define wxTreeCtrl_SetImageList(_swigobj,_swigarg0) (_swigobj->SetImageList(_swigarg0)) |
efc5f224 | 5813 | static PyObject *_wrap_wxTreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5814 | PyObject * _resultobj; |
f6bcfd97 | 5815 | wxPyTreeCtrl * _arg0; |
d5c9047a | 5816 | wxImageList * _arg1; |
1d99702e RD |
5817 | PyObject * _argo0 = 0; |
5818 | PyObject * _argo1 = 0; | |
efc5f224 | 5819 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
5820 | |
5821 | self = self; | |
efc5f224 | 5822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 5823 | return NULL; |
1d99702e RD |
5824 | if (_argo0) { |
5825 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5826 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5827 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5828 | return NULL; |
5829 | } | |
5830 | } | |
1d99702e RD |
5831 | if (_argo1) { |
5832 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5833 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
d5c9047a RD |
5834 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetImageList. Expected _wxImageList_p."); |
5835 | return NULL; | |
5836 | } | |
5837 | } | |
cf694132 RD |
5838 | { |
5839 | wxPy_BEGIN_ALLOW_THREADS; | |
5840 | wxTreeCtrl_SetImageList(_arg0,_arg1); | |
5841 | ||
5842 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5843 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5844 | } Py_INCREF(Py_None); |
d5c9047a | 5845 | _resultobj = Py_None; |
8ab979d7 RD |
5846 | return _resultobj; |
5847 | } | |
5848 | ||
d5c9047a | 5849 | #define wxTreeCtrl_SetStateImageList(_swigobj,_swigarg0) (_swigobj->SetStateImageList(_swigarg0)) |
efc5f224 | 5850 | static PyObject *_wrap_wxTreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5851 | PyObject * _resultobj; |
f6bcfd97 | 5852 | wxPyTreeCtrl * _arg0; |
d5c9047a | 5853 | wxImageList * _arg1; |
1d99702e RD |
5854 | PyObject * _argo0 = 0; |
5855 | PyObject * _argo1 = 0; | |
efc5f224 | 5856 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
5857 | |
5858 | self = self; | |
efc5f224 | 5859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetStateImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 5860 | return NULL; |
1d99702e RD |
5861 | if (_argo0) { |
5862 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5863 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5864 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetStateImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5865 | return NULL; |
5866 | } | |
5867 | } | |
1d99702e RD |
5868 | if (_argo1) { |
5869 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5870 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
d5c9047a RD |
5871 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetStateImageList. Expected _wxImageList_p."); |
5872 | return NULL; | |
5873 | } | |
5874 | } | |
cf694132 RD |
5875 | { |
5876 | wxPy_BEGIN_ALLOW_THREADS; | |
5877 | wxTreeCtrl_SetStateImageList(_arg0,_arg1); | |
5878 | ||
5879 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5880 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5881 | } Py_INCREF(Py_None); |
d5c9047a | 5882 | _resultobj = Py_None; |
8ab979d7 RD |
5883 | return _resultobj; |
5884 | } | |
5885 | ||
b1462dfa RD |
5886 | #define wxTreeCtrl_GetSpacing(_swigobj) (_swigobj->GetSpacing()) |
5887 | static PyObject *_wrap_wxTreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5888 | PyObject * _resultobj; | |
5889 | unsigned int _result; | |
f6bcfd97 | 5890 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
5891 | PyObject * _argo0 = 0; |
5892 | char *_kwnames[] = { "self", NULL }; | |
5893 | ||
5894 | self = self; | |
5895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSpacing",_kwnames,&_argo0)) | |
5896 | return NULL; | |
5897 | if (_argo0) { | |
5898 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5899 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5900 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSpacing. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
5901 | return NULL; |
5902 | } | |
5903 | } | |
5904 | { | |
5905 | wxPy_BEGIN_ALLOW_THREADS; | |
5906 | _result = (unsigned int )wxTreeCtrl_GetSpacing(_arg0); | |
5907 | ||
5908 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5909 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
5910 | } _resultobj = Py_BuildValue("i",_result); |
5911 | return _resultobj; | |
5912 | } | |
5913 | ||
5914 | #define wxTreeCtrl_SetSpacing(_swigobj,_swigarg0) (_swigobj->SetSpacing(_swigarg0)) | |
5915 | static PyObject *_wrap_wxTreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5916 | PyObject * _resultobj; | |
f6bcfd97 | 5917 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
5918 | unsigned int _arg1; |
5919 | PyObject * _argo0 = 0; | |
5920 | char *_kwnames[] = { "self","spacing", NULL }; | |
5921 | ||
5922 | self = self; | |
5923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetSpacing",_kwnames,&_argo0,&_arg1)) | |
5924 | return NULL; | |
5925 | if (_argo0) { | |
5926 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5927 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5928 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetSpacing. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
5929 | return NULL; |
5930 | } | |
5931 | } | |
5932 | { | |
5933 | wxPy_BEGIN_ALLOW_THREADS; | |
5934 | wxTreeCtrl_SetSpacing(_arg0,_arg1); | |
5935 | ||
5936 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5937 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
5938 | } Py_INCREF(Py_None); |
5939 | _resultobj = Py_None; | |
5940 | return _resultobj; | |
5941 | } | |
5942 | ||
d5c9047a | 5943 | #define wxTreeCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) |
efc5f224 | 5944 | static PyObject *_wrap_wxTreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5945 | PyObject * _resultobj; |
d5c9047a | 5946 | wxString * _result; |
f6bcfd97 | 5947 | wxPyTreeCtrl * _arg0; |
d5c9047a | 5948 | wxTreeItemId * _arg1; |
1d99702e RD |
5949 | PyObject * _argo0 = 0; |
5950 | PyObject * _argo1 = 0; | |
efc5f224 | 5951 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
5952 | |
5953 | self = self; | |
efc5f224 | 5954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemText",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 5955 | return NULL; |
1d99702e RD |
5956 | if (_argo0) { |
5957 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5958 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5959 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemText. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5960 | return NULL; |
5961 | } | |
5962 | } | |
1d99702e RD |
5963 | if (_argo1) { |
5964 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5965 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5966 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemText. Expected _wxTreeItemId_p."); |
5967 | return NULL; | |
5968 | } | |
5969 | } | |
d5c9047a | 5970 | { |
cf694132 RD |
5971 | wxPy_BEGIN_ALLOW_THREADS; |
5972 | _result = new wxString (wxTreeCtrl_GetItemText(_arg0,*_arg1)); | |
5973 | ||
5974 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5975 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5976 | }{ |
eec92d76 | 5977 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
d5c9047a RD |
5978 | } |
5979 | { | |
5980 | delete _result; | |
5981 | } | |
8ab979d7 RD |
5982 | return _resultobj; |
5983 | } | |
5984 | ||
694759cf | 5985 | #define wxTreeCtrl_GetItemImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemImage(_swigarg0,_swigarg1)) |
efc5f224 | 5986 | static PyObject *_wrap_wxTreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5987 | PyObject * _resultobj; |
d5c9047a | 5988 | int _result; |
f6bcfd97 | 5989 | wxPyTreeCtrl * _arg0; |
d5c9047a | 5990 | wxTreeItemId * _arg1; |
694759cf | 5991 | wxTreeItemIcon _arg2 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); |
1d99702e RD |
5992 | PyObject * _argo0 = 0; |
5993 | PyObject * _argo1 = 0; | |
694759cf | 5994 | char *_kwnames[] = { "self","item","which", NULL }; |
8ab979d7 RD |
5995 | |
5996 | self = self; | |
694759cf | 5997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetItemImage",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 5998 | return NULL; |
1d99702e RD |
5999 | if (_argo0) { |
6000 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6001 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6002 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6003 | return NULL; |
6004 | } | |
6005 | } | |
1d99702e RD |
6006 | if (_argo1) { |
6007 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6008 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6009 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemImage. Expected _wxTreeItemId_p."); |
6010 | return NULL; | |
6011 | } | |
6012 | } | |
cf694132 RD |
6013 | { |
6014 | wxPy_BEGIN_ALLOW_THREADS; | |
694759cf | 6015 | _result = (int )wxTreeCtrl_GetItemImage(_arg0,*_arg1,_arg2); |
cf694132 RD |
6016 | |
6017 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6018 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6019 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6020 | return _resultobj; |
6021 | } | |
6022 | ||
d5c9047a | 6023 | #define wxTreeCtrl_GetItemSelectedImage(_swigobj,_swigarg0) (_swigobj->GetItemSelectedImage(_swigarg0)) |
efc5f224 | 6024 | static PyObject *_wrap_wxTreeCtrl_GetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6025 | PyObject * _resultobj; |
d5c9047a | 6026 | int _result; |
f6bcfd97 | 6027 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6028 | wxTreeItemId * _arg1; |
1d99702e RD |
6029 | PyObject * _argo0 = 0; |
6030 | PyObject * _argo1 = 0; | |
efc5f224 | 6031 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
6032 | |
6033 | self = self; | |
efc5f224 | 6034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemSelectedImage",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6035 | return NULL; |
1d99702e RD |
6036 | if (_argo0) { |
6037 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6038 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6039 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6040 | return NULL; |
6041 | } | |
6042 | } | |
1d99702e RD |
6043 | if (_argo1) { |
6044 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6045 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6046 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemSelectedImage. Expected _wxTreeItemId_p."); |
6047 | return NULL; | |
6048 | } | |
6049 | } | |
cf694132 RD |
6050 | { |
6051 | wxPy_BEGIN_ALLOW_THREADS; | |
6052 | _result = (int )wxTreeCtrl_GetItemSelectedImage(_arg0,*_arg1); | |
8ab979d7 | 6053 | |
cf694132 | 6054 | wxPy_END_ALLOW_THREADS; |
4dfaa61e | 6055 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6056 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6057 | return _resultobj; |
6058 | } | |
6059 | ||
d5c9047a | 6060 | #define wxTreeCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) |
efc5f224 | 6061 | static PyObject *_wrap_wxTreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6062 | PyObject * _resultobj; |
f6bcfd97 | 6063 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
6064 | wxTreeItemId * _arg1; |
6065 | wxString * _arg2; | |
1d99702e RD |
6066 | PyObject * _argo0 = 0; |
6067 | PyObject * _argo1 = 0; | |
d5c9047a | 6068 | PyObject * _obj2 = 0; |
efc5f224 | 6069 | char *_kwnames[] = { "self","item","text", NULL }; |
8ab979d7 RD |
6070 | |
6071 | self = self; | |
efc5f224 | 6072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemText",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 6073 | return NULL; |
1d99702e RD |
6074 | if (_argo0) { |
6075 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6076 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6077 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemText. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6078 | return NULL; |
6079 | } | |
6080 | } | |
1d99702e RD |
6081 | if (_argo1) { |
6082 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6083 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6084 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemText. Expected _wxTreeItemId_p."); |
6085 | return NULL; | |
6086 | } | |
6087 | } | |
6088 | { | |
2cd2fac8 RD |
6089 | #if PYTHON_API_VERSION >= 1009 |
6090 | char* tmpPtr; int tmpSize; | |
6091 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 6092 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
6093 | return NULL; |
6094 | } | |
6095 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
6096 | return NULL; | |
6097 | _arg2 = new wxString(tmpPtr, tmpSize); | |
6098 | #else | |
d5c9047a RD |
6099 | if (!PyString_Check(_obj2)) { |
6100 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6101 | return NULL; | |
6102 | } | |
2cd2fac8 RD |
6103 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
6104 | #endif | |
d5c9047a | 6105 | } |
cf694132 RD |
6106 | { |
6107 | wxPy_BEGIN_ALLOW_THREADS; | |
6108 | wxTreeCtrl_SetItemText(_arg0,*_arg1,*_arg2); | |
6109 | ||
6110 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6111 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6112 | } Py_INCREF(Py_None); |
d5c9047a RD |
6113 | _resultobj = Py_None; |
6114 | { | |
6115 | if (_obj2) | |
6116 | delete _arg2; | |
6117 | } | |
8ab979d7 RD |
6118 | return _resultobj; |
6119 | } | |
6120 | ||
694759cf | 6121 | #define wxTreeCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 6122 | static PyObject *_wrap_wxTreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6123 | PyObject * _resultobj; |
f6bcfd97 | 6124 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
6125 | wxTreeItemId * _arg1; |
6126 | int _arg2; | |
694759cf | 6127 | wxTreeItemIcon _arg3 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); |
1d99702e RD |
6128 | PyObject * _argo0 = 0; |
6129 | PyObject * _argo1 = 0; | |
694759cf | 6130 | char *_kwnames[] = { "self","item","image","which", NULL }; |
8ab979d7 RD |
6131 | |
6132 | self = self; | |
694759cf | 6133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|i:wxTreeCtrl_SetItemImage",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8ab979d7 | 6134 | return NULL; |
1d99702e RD |
6135 | if (_argo0) { |
6136 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6137 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6138 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6139 | return NULL; |
6140 | } | |
6141 | } | |
1d99702e RD |
6142 | if (_argo1) { |
6143 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6144 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6145 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemImage. Expected _wxTreeItemId_p."); |
6146 | return NULL; | |
6147 | } | |
6148 | } | |
cf694132 RD |
6149 | { |
6150 | wxPy_BEGIN_ALLOW_THREADS; | |
694759cf | 6151 | wxTreeCtrl_SetItemImage(_arg0,*_arg1,_arg2,_arg3); |
cf694132 RD |
6152 | |
6153 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6154 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6155 | } Py_INCREF(Py_None); |
d5c9047a | 6156 | _resultobj = Py_None; |
8ab979d7 RD |
6157 | return _resultobj; |
6158 | } | |
6159 | ||
d5c9047a | 6160 | #define wxTreeCtrl_SetItemSelectedImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemSelectedImage(_swigarg0,_swigarg1)) |
efc5f224 | 6161 | static PyObject *_wrap_wxTreeCtrl_SetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6162 | PyObject * _resultobj; |
f6bcfd97 | 6163 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
6164 | wxTreeItemId * _arg1; |
6165 | int _arg2; | |
1d99702e RD |
6166 | PyObject * _argo0 = 0; |
6167 | PyObject * _argo1 = 0; | |
efc5f224 | 6168 | char *_kwnames[] = { "self","item","image", NULL }; |
8ab979d7 RD |
6169 | |
6170 | self = self; | |
efc5f224 | 6171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxTreeCtrl_SetItemSelectedImage",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 6172 | return NULL; |
1d99702e RD |
6173 | if (_argo0) { |
6174 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6175 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6176 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6177 | return NULL; |
6178 | } | |
6179 | } | |
1d99702e RD |
6180 | if (_argo1) { |
6181 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6182 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6183 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemSelectedImage. Expected _wxTreeItemId_p."); |
6184 | return NULL; | |
6185 | } | |
6186 | } | |
cf694132 RD |
6187 | { |
6188 | wxPy_BEGIN_ALLOW_THREADS; | |
6189 | wxTreeCtrl_SetItemSelectedImage(_arg0,*_arg1,_arg2); | |
6190 | ||
6191 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6192 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
6193 | } Py_INCREF(Py_None); |
6194 | _resultobj = Py_None; | |
6195 | return _resultobj; | |
6196 | } | |
6197 | ||
6198 | #define wxTreeCtrl_SetItemHasChildren(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemHasChildren(_swigarg0,_swigarg1)) | |
efc5f224 | 6199 | static PyObject *_wrap_wxTreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 | 6200 | PyObject * _resultobj; |
f6bcfd97 | 6201 | wxPyTreeCtrl * _arg0; |
cf694132 | 6202 | wxTreeItemId * _arg1; |
1d99702e RD |
6203 | bool _arg2 = (bool ) TRUE; |
6204 | PyObject * _argo0 = 0; | |
6205 | PyObject * _argo1 = 0; | |
6206 | int tempbool2 = (int) TRUE; | |
efc5f224 | 6207 | char *_kwnames[] = { "self","item","hasChildren", NULL }; |
cf694132 RD |
6208 | |
6209 | self = self; | |
efc5f224 | 6210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemHasChildren",_kwnames,&_argo0,&_argo1,&tempbool2)) |
cf694132 | 6211 | return NULL; |
1d99702e RD |
6212 | if (_argo0) { |
6213 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6214 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6215 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
6216 | return NULL; |
6217 | } | |
6218 | } | |
1d99702e RD |
6219 | if (_argo1) { |
6220 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6221 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
6222 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemHasChildren. Expected _wxTreeItemId_p."); |
6223 | return NULL; | |
6224 | } | |
6225 | } | |
6226 | _arg2 = (bool ) tempbool2; | |
6227 | { | |
6228 | wxPy_BEGIN_ALLOW_THREADS; | |
6229 | wxTreeCtrl_SetItemHasChildren(_arg0,*_arg1,_arg2); | |
6230 | ||
6231 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6232 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6233 | } Py_INCREF(Py_None); |
d5c9047a | 6234 | _resultobj = Py_None; |
8ab979d7 RD |
6235 | return _resultobj; |
6236 | } | |
6237 | ||
f6bcfd97 | 6238 | static wxPyTreeItemData * wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item) { |
cf694132 RD |
6239 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
6240 | if (data == NULL) { | |
6241 | data = new wxPyTreeItemData(); | |
f6bcfd97 | 6242 | data->SetId(item); // set the id |
cf694132 RD |
6243 | self->SetItemData(item, data); |
6244 | } | |
6245 | return data; | |
6246 | } | |
efc5f224 | 6247 | static PyObject *_wrap_wxTreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
6248 | PyObject * _resultobj; |
6249 | wxPyTreeItemData * _result; | |
f6bcfd97 | 6250 | wxPyTreeCtrl * _arg0; |
cf694132 | 6251 | wxTreeItemId * _arg1; |
1d99702e RD |
6252 | PyObject * _argo0 = 0; |
6253 | PyObject * _argo1 = 0; | |
efc5f224 | 6254 | char *_kwnames[] = { "self","item", NULL }; |
cf694132 RD |
6255 | char _ptemp[128]; |
6256 | ||
6257 | self = self; | |
efc5f224 | 6258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemData",_kwnames,&_argo0,&_argo1)) |
cf694132 | 6259 | return NULL; |
1d99702e RD |
6260 | if (_argo0) { |
6261 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6262 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6263 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemData. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
6264 | return NULL; |
6265 | } | |
6266 | } | |
1d99702e RD |
6267 | if (_argo1) { |
6268 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6269 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
6270 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemData. Expected _wxTreeItemId_p."); |
6271 | return NULL; | |
6272 | } | |
6273 | } | |
6274 | { | |
6275 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 6276 | _result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(_arg0,*_arg1); |
cf694132 RD |
6277 | |
6278 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6279 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6280 | } if (_result) { |
6281 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
6282 | _resultobj = Py_BuildValue("s",_ptemp); | |
6283 | } else { | |
6284 | Py_INCREF(Py_None); | |
6285 | _resultobj = Py_None; | |
6286 | } | |
cf694132 RD |
6287 | return _resultobj; |
6288 | } | |
6289 | ||
f6bcfd97 BP |
6290 | static void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item,wxPyTreeItemData * data) { |
6291 | data->SetId(item); // set the id | |
6292 | self->SetItemData(item, data); | |
c368d904 | 6293 | } |
efc5f224 | 6294 | static PyObject *_wrap_wxTreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6295 | PyObject * _resultobj; |
f6bcfd97 | 6296 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6297 | wxTreeItemId * _arg1; |
cf694132 | 6298 | wxPyTreeItemData * _arg2; |
1d99702e RD |
6299 | PyObject * _argo0 = 0; |
6300 | PyObject * _argo1 = 0; | |
6301 | PyObject * _argo2 = 0; | |
efc5f224 | 6302 | char *_kwnames[] = { "self","item","data", NULL }; |
8ab979d7 RD |
6303 | |
6304 | self = self; | |
efc5f224 | 6305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemData",_kwnames,&_argo0,&_argo1,&_argo2)) |
8ab979d7 | 6306 | return NULL; |
1d99702e RD |
6307 | if (_argo0) { |
6308 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6309 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemData. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6311 | return NULL; |
6312 | } | |
6313 | } | |
1d99702e RD |
6314 | if (_argo1) { |
6315 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6316 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6317 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemData. Expected _wxTreeItemId_p."); |
6318 | return NULL; | |
6319 | } | |
6320 | } | |
1d99702e RD |
6321 | if (_argo2) { |
6322 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
6323 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyTreeItemData_p")) { | |
cf694132 | 6324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemData. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
6325 | return NULL; |
6326 | } | |
6327 | } | |
cf694132 RD |
6328 | { |
6329 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 6330 | wxPyTreeCtrl_SetItemData(_arg0,*_arg1,_arg2); |
cf694132 RD |
6331 | |
6332 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6333 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6334 | } Py_INCREF(Py_None); |
d5c9047a | 6335 | _resultobj = Py_None; |
8ab979d7 RD |
6336 | return _resultobj; |
6337 | } | |
6338 | ||
f6bcfd97 | 6339 | static PyObject * wxPyTreeCtrl_GetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item) { |
cf694132 RD |
6340 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
6341 | if (data == NULL) { | |
6342 | data = new wxPyTreeItemData(); | |
f6bcfd97 | 6343 | data->SetId(item); // set the id |
cf694132 RD |
6344 | self->SetItemData(item, data); |
6345 | } | |
6346 | return data->GetData(); | |
c368d904 | 6347 | } |
efc5f224 | 6348 | static PyObject *_wrap_wxTreeCtrl_GetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 | 6349 | PyObject * _resultobj; |
cf694132 | 6350 | PyObject * _result; |
f6bcfd97 | 6351 | wxPyTreeCtrl * _arg0; |
08127323 | 6352 | wxTreeItemId * _arg1; |
1d99702e RD |
6353 | PyObject * _argo0 = 0; |
6354 | PyObject * _argo1 = 0; | |
efc5f224 | 6355 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
6356 | |
6357 | self = self; | |
efc5f224 | 6358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPyData",_kwnames,&_argo0,&_argo1)) |
08127323 | 6359 | return NULL; |
1d99702e RD |
6360 | if (_argo0) { |
6361 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6362 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6363 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPyData. Expected _wxPyTreeCtrl_p."); | |
08127323 RD |
6364 | return NULL; |
6365 | } | |
6366 | } | |
1d99702e RD |
6367 | if (_argo1) { |
6368 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6369 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 | 6370 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPyData. Expected _wxTreeItemId_p."); |
08127323 RD |
6371 | return NULL; |
6372 | } | |
6373 | } | |
cf694132 RD |
6374 | { |
6375 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 6376 | _result = (PyObject *)wxPyTreeCtrl_GetPyData(_arg0,*_arg1); |
cf694132 RD |
6377 | |
6378 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6379 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
6380 | }{ |
6381 | _resultobj = _result; | |
6382 | } | |
6383 | return _resultobj; | |
6384 | } | |
6385 | ||
f6bcfd97 | 6386 | static void wxPyTreeCtrl_SetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item,PyObject * obj) { |
cf694132 RD |
6387 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
6388 | if (data == NULL) { | |
6389 | data = new wxPyTreeItemData(obj); | |
f6bcfd97 | 6390 | data->SetId(item); // set the id |
cf694132 RD |
6391 | self->SetItemData(item, data); |
6392 | } else | |
6393 | data->SetData(obj); | |
c368d904 | 6394 | } |
efc5f224 | 6395 | static PyObject *_wrap_wxTreeCtrl_SetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 | 6396 | PyObject * _resultobj; |
f6bcfd97 | 6397 | wxPyTreeCtrl * _arg0; |
cf694132 RD |
6398 | wxTreeItemId * _arg1; |
6399 | PyObject * _arg2; | |
1d99702e RD |
6400 | PyObject * _argo0 = 0; |
6401 | PyObject * _argo1 = 0; | |
cf694132 | 6402 | PyObject * _obj2 = 0; |
efc5f224 | 6403 | char *_kwnames[] = { "self","item","obj", NULL }; |
cf694132 RD |
6404 | |
6405 | self = self; | |
efc5f224 | 6406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetPyData",_kwnames,&_argo0,&_argo1,&_obj2)) |
cf694132 | 6407 | return NULL; |
1d99702e RD |
6408 | if (_argo0) { |
6409 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6410 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetPyData. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
6412 | return NULL; |
6413 | } | |
6414 | } | |
1d99702e RD |
6415 | if (_argo1) { |
6416 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6417 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
6418 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetPyData. Expected _wxTreeItemId_p."); |
6419 | return NULL; | |
6420 | } | |
6421 | } | |
6422 | { | |
6423 | _arg2 = _obj2; | |
6424 | } | |
6425 | { | |
6426 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 6427 | wxPyTreeCtrl_SetPyData(_arg0,*_arg1,_arg2); |
cf694132 RD |
6428 | |
6429 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6430 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6431 | } Py_INCREF(Py_None); |
08127323 RD |
6432 | _resultobj = Py_None; |
6433 | return _resultobj; | |
6434 | } | |
6435 | ||
d5c9047a | 6436 | #define wxTreeCtrl_IsVisible(_swigobj,_swigarg0) (_swigobj->IsVisible(_swigarg0)) |
efc5f224 | 6437 | static PyObject *_wrap_wxTreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6438 | PyObject * _resultobj; |
d5c9047a | 6439 | bool _result; |
f6bcfd97 | 6440 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6441 | wxTreeItemId * _arg1; |
1d99702e RD |
6442 | PyObject * _argo0 = 0; |
6443 | PyObject * _argo1 = 0; | |
efc5f224 | 6444 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
6445 | |
6446 | self = self; | |
efc5f224 | 6447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6448 | return NULL; |
1d99702e RD |
6449 | if (_argo0) { |
6450 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6451 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6452 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6453 | return NULL; |
6454 | } | |
6455 | } | |
1d99702e RD |
6456 | if (_argo1) { |
6457 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6458 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6459 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsVisible. Expected _wxTreeItemId_p."); |
6460 | return NULL; | |
6461 | } | |
6462 | } | |
cf694132 RD |
6463 | { |
6464 | wxPy_BEGIN_ALLOW_THREADS; | |
6465 | _result = (bool )wxTreeCtrl_IsVisible(_arg0,*_arg1); | |
6466 | ||
6467 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6468 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6469 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6470 | return _resultobj; |
6471 | } | |
6472 | ||
d5c9047a | 6473 | #define wxTreeCtrl_ItemHasChildren(_swigobj,_swigarg0) (_swigobj->ItemHasChildren(_swigarg0)) |
efc5f224 | 6474 | static PyObject *_wrap_wxTreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6475 | PyObject * _resultobj; |
d5c9047a | 6476 | bool _result; |
f6bcfd97 | 6477 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6478 | wxTreeItemId * _arg1; |
1d99702e RD |
6479 | PyObject * _argo0 = 0; |
6480 | PyObject * _argo1 = 0; | |
efc5f224 | 6481 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
6482 | |
6483 | self = self; | |
efc5f224 | 6484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ItemHasChildren",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6485 | return NULL; |
1d99702e RD |
6486 | if (_argo0) { |
6487 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6488 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6490 | return NULL; |
6491 | } | |
6492 | } | |
1d99702e RD |
6493 | if (_argo1) { |
6494 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6495 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6496 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ItemHasChildren. Expected _wxTreeItemId_p."); |
6497 | return NULL; | |
6498 | } | |
6499 | } | |
cf694132 RD |
6500 | { |
6501 | wxPy_BEGIN_ALLOW_THREADS; | |
6502 | _result = (bool )wxTreeCtrl_ItemHasChildren(_arg0,*_arg1); | |
6503 | ||
6504 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6505 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6506 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6507 | return _resultobj; |
6508 | } | |
6509 | ||
d5c9047a | 6510 | #define wxTreeCtrl_IsExpanded(_swigobj,_swigarg0) (_swigobj->IsExpanded(_swigarg0)) |
efc5f224 | 6511 | static PyObject *_wrap_wxTreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6512 | PyObject * _resultobj; |
d5c9047a | 6513 | bool _result; |
f6bcfd97 | 6514 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6515 | wxTreeItemId * _arg1; |
1d99702e RD |
6516 | PyObject * _argo0 = 0; |
6517 | PyObject * _argo1 = 0; | |
efc5f224 | 6518 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
6519 | |
6520 | self = self; | |
efc5f224 | 6521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsExpanded",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6522 | return NULL; |
1d99702e RD |
6523 | if (_argo0) { |
6524 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6525 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6526 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsExpanded. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6527 | return NULL; |
6528 | } | |
6529 | } | |
1d99702e RD |
6530 | if (_argo1) { |
6531 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6532 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6533 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsExpanded. Expected _wxTreeItemId_p."); |
6534 | return NULL; | |
6535 | } | |
6536 | } | |
cf694132 RD |
6537 | { |
6538 | wxPy_BEGIN_ALLOW_THREADS; | |
6539 | _result = (bool )wxTreeCtrl_IsExpanded(_arg0,*_arg1); | |
6540 | ||
6541 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6542 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6543 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6544 | return _resultobj; |
6545 | } | |
6546 | ||
d5c9047a | 6547 | #define wxTreeCtrl_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) |
efc5f224 | 6548 | static PyObject *_wrap_wxTreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6549 | PyObject * _resultobj; |
d5c9047a | 6550 | bool _result; |
f6bcfd97 | 6551 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6552 | wxTreeItemId * _arg1; |
1d99702e RD |
6553 | PyObject * _argo0 = 0; |
6554 | PyObject * _argo1 = 0; | |
efc5f224 | 6555 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
6556 | |
6557 | self = self; | |
efc5f224 | 6558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsSelected",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6559 | return NULL; |
1d99702e RD |
6560 | if (_argo0) { |
6561 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6562 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6563 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsSelected. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6564 | return NULL; |
6565 | } | |
6566 | } | |
1d99702e RD |
6567 | if (_argo1) { |
6568 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6569 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6570 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsSelected. Expected _wxTreeItemId_p."); |
6571 | return NULL; | |
6572 | } | |
6573 | } | |
cf694132 RD |
6574 | { |
6575 | wxPy_BEGIN_ALLOW_THREADS; | |
6576 | _result = (bool )wxTreeCtrl_IsSelected(_arg0,*_arg1); | |
6577 | ||
6578 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6579 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6580 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6581 | return _resultobj; |
6582 | } | |
6583 | ||
6584 | #define wxTreeCtrl_GetRootItem(_swigobj) (_swigobj->GetRootItem()) | |
efc5f224 | 6585 | static PyObject *_wrap_wxTreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6586 | PyObject * _resultobj; |
d5c9047a | 6587 | wxTreeItemId * _result; |
f6bcfd97 | 6588 | wxPyTreeCtrl * _arg0; |
1d99702e | 6589 | PyObject * _argo0 = 0; |
efc5f224 | 6590 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 6591 | char _ptemp[128]; |
8ab979d7 RD |
6592 | |
6593 | self = self; | |
efc5f224 | 6594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetRootItem",_kwnames,&_argo0)) |
8ab979d7 | 6595 | return NULL; |
1d99702e RD |
6596 | if (_argo0) { |
6597 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6598 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6599 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetRootItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6600 | return NULL; |
6601 | } | |
6602 | } | |
cf694132 RD |
6603 | { |
6604 | wxPy_BEGIN_ALLOW_THREADS; | |
6605 | _result = new wxTreeItemId (wxTreeCtrl_GetRootItem(_arg0)); | |
6606 | ||
6607 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6608 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6609 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 6610 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6611 | return _resultobj; |
6612 | } | |
6613 | ||
6614 | #define wxTreeCtrl_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
efc5f224 | 6615 | static PyObject *_wrap_wxTreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6616 | PyObject * _resultobj; |
d5c9047a | 6617 | wxTreeItemId * _result; |
f6bcfd97 | 6618 | wxPyTreeCtrl * _arg0; |
1d99702e | 6619 | PyObject * _argo0 = 0; |
efc5f224 | 6620 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 6621 | char _ptemp[128]; |
8ab979d7 RD |
6622 | |
6623 | self = self; | |
efc5f224 | 6624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelection",_kwnames,&_argo0)) |
8ab979d7 | 6625 | return NULL; |
1d99702e RD |
6626 | if (_argo0) { |
6627 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6628 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelection. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6630 | return NULL; |
6631 | } | |
6632 | } | |
cf694132 RD |
6633 | { |
6634 | wxPy_BEGIN_ALLOW_THREADS; | |
6635 | _result = new wxTreeItemId (wxTreeCtrl_GetSelection(_arg0)); | |
6636 | ||
6637 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6638 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6639 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 6640 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6641 | return _resultobj; |
6642 | } | |
6643 | ||
eb715945 RD |
6644 | #define wxTreeCtrl_GetItemParent(_swigobj,_swigarg0) (_swigobj->GetParent(_swigarg0)) |
6645 | static PyObject *_wrap_wxTreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6646 | PyObject * _resultobj; |
d5c9047a | 6647 | wxTreeItemId * _result; |
f6bcfd97 | 6648 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6649 | wxTreeItemId * _arg1; |
1d99702e RD |
6650 | PyObject * _argo0 = 0; |
6651 | PyObject * _argo1 = 0; | |
efc5f224 | 6652 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 6653 | char _ptemp[128]; |
8ab979d7 RD |
6654 | |
6655 | self = self; | |
eb715945 | 6656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6657 | return NULL; |
1d99702e RD |
6658 | if (_argo0) { |
6659 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6660 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6661 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemParent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6662 | return NULL; |
6663 | } | |
6664 | } | |
1d99702e RD |
6665 | if (_argo1) { |
6666 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6667 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
eb715945 | 6668 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemParent. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
6669 | return NULL; |
6670 | } | |
6671 | } | |
cf694132 RD |
6672 | { |
6673 | wxPy_BEGIN_ALLOW_THREADS; | |
eb715945 | 6674 | _result = new wxTreeItemId (wxTreeCtrl_GetItemParent(_arg0,*_arg1)); |
cf694132 RD |
6675 | |
6676 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6677 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6678 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 6679 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6680 | return _resultobj; |
6681 | } | |
6682 | ||
f6bcfd97 | 6683 | static PyObject * wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self) { |
26b9cf27 | 6684 | bool doSave = wxPyRestoreThread(); |
d426c97e RD |
6685 | PyObject* rval = PyList_New(0); |
6686 | wxArrayTreeItemIds array; | |
6687 | size_t num, x; | |
6688 | num = self->GetSelections(array); | |
6689 | for (x=0; x < num; x++) { | |
c368d904 RD |
6690 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); |
6691 | PyObject* item = wxPyConstructObject((void*)tii, "wxTreeItemId", TRUE); | |
d426c97e RD |
6692 | PyList_Append(rval, item); |
6693 | } | |
26b9cf27 | 6694 | wxPySaveThread(doSave); |
d426c97e RD |
6695 | return rval; |
6696 | } | |
6697 | static PyObject *_wrap_wxTreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6698 | PyObject * _resultobj; | |
6699 | PyObject * _result; | |
f6bcfd97 | 6700 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
6701 | PyObject * _argo0 = 0; |
6702 | char *_kwnames[] = { "self", NULL }; | |
6703 | ||
6704 | self = self; | |
6705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelections",_kwnames,&_argo0)) | |
6706 | return NULL; | |
6707 | if (_argo0) { | |
6708 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6709 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6710 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelections. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
6711 | return NULL; |
6712 | } | |
6713 | } | |
6714 | { | |
6715 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 6716 | _result = (PyObject *)wxPyTreeCtrl_GetSelections(_arg0); |
d426c97e RD |
6717 | |
6718 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6719 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
6720 | }{ |
6721 | _resultobj = _result; | |
6722 | } | |
6723 | return _resultobj; | |
6724 | } | |
6725 | ||
bb0054cd | 6726 | #define wxTreeCtrl_GetChildrenCount(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetChildrenCount(_swigarg0,_swigarg1)) |
efc5f224 | 6727 | static PyObject *_wrap_wxTreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
6728 | PyObject * _resultobj; |
6729 | size_t _result; | |
f6bcfd97 | 6730 | wxPyTreeCtrl * _arg0; |
bb0054cd | 6731 | wxTreeItemId * _arg1; |
1d99702e RD |
6732 | bool _arg2 = (bool ) TRUE; |
6733 | PyObject * _argo0 = 0; | |
6734 | PyObject * _argo1 = 0; | |
6735 | int tempbool2 = (int) TRUE; | |
efc5f224 | 6736 | char *_kwnames[] = { "self","item","recursively", NULL }; |
bb0054cd RD |
6737 | |
6738 | self = self; | |
efc5f224 | 6739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetChildrenCount",_kwnames,&_argo0,&_argo1,&tempbool2)) |
bb0054cd | 6740 | return NULL; |
1d99702e RD |
6741 | if (_argo0) { |
6742 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6743 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6744 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetChildrenCount. Expected _wxPyTreeCtrl_p."); | |
bb0054cd RD |
6745 | return NULL; |
6746 | } | |
6747 | } | |
1d99702e RD |
6748 | if (_argo1) { |
6749 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6750 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
bb0054cd RD |
6751 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetChildrenCount. Expected _wxTreeItemId_p."); |
6752 | return NULL; | |
6753 | } | |
6754 | } | |
6755 | _arg2 = (bool ) tempbool2; | |
6756 | { | |
6757 | wxPy_BEGIN_ALLOW_THREADS; | |
6758 | _result = (size_t )wxTreeCtrl_GetChildrenCount(_arg0,*_arg1,_arg2); | |
6759 | ||
6760 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6761 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
6762 | } _resultobj = Py_BuildValue("i",_result); |
6763 | return _resultobj; | |
6764 | } | |
6765 | ||
d5c9047a | 6766 | #define wxTreeCtrl_GetFirstChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetFirstChild(_swigarg0,_swigarg1)) |
efc5f224 | 6767 | static PyObject *_wrap_wxTreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6768 | PyObject * _resultobj; |
d5c9047a | 6769 | wxTreeItemId * _result; |
f6bcfd97 | 6770 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
6771 | wxTreeItemId * _arg1; |
6772 | long * _arg2; | |
1d99702e RD |
6773 | PyObject * _argo0 = 0; |
6774 | PyObject * _argo1 = 0; | |
d5c9047a RD |
6775 | long temp; |
6776 | PyObject * _obj2 = 0; | |
efc5f224 | 6777 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 6778 | char _ptemp[128]; |
8ab979d7 RD |
6779 | |
6780 | self = self; | |
efc5f224 | 6781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetFirstChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 6782 | return NULL; |
1d99702e RD |
6783 | if (_argo0) { |
6784 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6785 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6786 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstChild. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6787 | return NULL; |
6788 | } | |
6789 | } | |
1d99702e RD |
6790 | if (_argo1) { |
6791 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6792 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 6793 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetFirstChild. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
6794 | return NULL; |
6795 | } | |
6796 | } | |
d5c9047a RD |
6797 | { |
6798 | temp = (long) PyInt_AsLong(_obj2); | |
6799 | _arg2 = &temp; | |
6800 | } | |
cf694132 RD |
6801 | { |
6802 | wxPy_BEGIN_ALLOW_THREADS; | |
6803 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstChild(_arg0,*_arg1,*_arg2)); | |
6804 | ||
6805 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6806 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6807 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
6808 | _resultobj = Py_BuildValue("s",_ptemp); |
6809 | { | |
6810 | PyObject *o; | |
6811 | o = PyInt_FromLong((long) (*_arg2)); | |
6812 | _resultobj = t_output_helper(_resultobj, o); | |
6813 | } | |
8ab979d7 RD |
6814 | return _resultobj; |
6815 | } | |
6816 | ||
d5c9047a | 6817 | #define wxTreeCtrl_GetNextChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetNextChild(_swigarg0,_swigarg1)) |
efc5f224 | 6818 | static PyObject *_wrap_wxTreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6819 | PyObject * _resultobj; |
d5c9047a | 6820 | wxTreeItemId * _result; |
f6bcfd97 | 6821 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
6822 | wxTreeItemId * _arg1; |
6823 | long * _arg2; | |
1d99702e RD |
6824 | PyObject * _argo0 = 0; |
6825 | PyObject * _argo1 = 0; | |
d5c9047a | 6826 | long temp; |
8ab979d7 | 6827 | PyObject * _obj2 = 0; |
efc5f224 | 6828 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 6829 | char _ptemp[128]; |
8ab979d7 RD |
6830 | |
6831 | self = self; | |
efc5f224 | 6832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetNextChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 6833 | return NULL; |
1d99702e RD |
6834 | if (_argo0) { |
6835 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6836 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6837 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextChild. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6838 | return NULL; |
6839 | } | |
6840 | } | |
1d99702e RD |
6841 | if (_argo1) { |
6842 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6843 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 6844 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextChild. Expected _wxTreeItemId_p."); |
8ab979d7 | 6845 | return NULL; |
d5c9047a | 6846 | } |
8ab979d7 | 6847 | } |
d5c9047a RD |
6848 | { |
6849 | temp = (long) PyInt_AsLong(_obj2); | |
6850 | _arg2 = &temp; | |
8ab979d7 | 6851 | } |
cf694132 RD |
6852 | { |
6853 | wxPy_BEGIN_ALLOW_THREADS; | |
6854 | _result = new wxTreeItemId (wxTreeCtrl_GetNextChild(_arg0,*_arg1,*_arg2)); | |
6855 | ||
6856 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6857 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6858 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 6859 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 | 6860 | { |
d5c9047a RD |
6861 | PyObject *o; |
6862 | o = PyInt_FromLong((long) (*_arg2)); | |
6863 | _resultobj = t_output_helper(_resultobj, o); | |
8ab979d7 RD |
6864 | } |
6865 | return _resultobj; | |
6866 | } | |
6867 | ||
d5c9047a | 6868 | #define wxTreeCtrl_GetNextSibling(_swigobj,_swigarg0) (_swigobj->GetNextSibling(_swigarg0)) |
efc5f224 | 6869 | static PyObject *_wrap_wxTreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6870 | PyObject * _resultobj; |
d5c9047a | 6871 | wxTreeItemId * _result; |
f6bcfd97 | 6872 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6873 | wxTreeItemId * _arg1; |
1d99702e RD |
6874 | PyObject * _argo0 = 0; |
6875 | PyObject * _argo1 = 0; | |
efc5f224 | 6876 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 6877 | char _ptemp[128]; |
8ab979d7 RD |
6878 | |
6879 | self = self; | |
efc5f224 | 6880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6881 | return NULL; |
1d99702e RD |
6882 | if (_argo0) { |
6883 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6884 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextSibling. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6886 | return NULL; |
6887 | } | |
6888 | } | |
1d99702e RD |
6889 | if (_argo1) { |
6890 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6891 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6892 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextSibling. Expected _wxTreeItemId_p."); |
6893 | return NULL; | |
6894 | } | |
6895 | } | |
cf694132 RD |
6896 | { |
6897 | wxPy_BEGIN_ALLOW_THREADS; | |
6898 | _result = new wxTreeItemId (wxTreeCtrl_GetNextSibling(_arg0,*_arg1)); | |
6899 | ||
6900 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6901 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6902 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 6903 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6904 | return _resultobj; |
6905 | } | |
6906 | ||
d5c9047a | 6907 | #define wxTreeCtrl_GetPrevSibling(_swigobj,_swigarg0) (_swigobj->GetPrevSibling(_swigarg0)) |
efc5f224 | 6908 | static PyObject *_wrap_wxTreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6909 | PyObject * _resultobj; |
d5c9047a | 6910 | wxTreeItemId * _result; |
f6bcfd97 | 6911 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6912 | wxTreeItemId * _arg1; |
1d99702e RD |
6913 | PyObject * _argo0 = 0; |
6914 | PyObject * _argo1 = 0; | |
efc5f224 | 6915 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 6916 | char _ptemp[128]; |
8ab979d7 RD |
6917 | |
6918 | self = self; | |
efc5f224 | 6919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6920 | return NULL; |
1d99702e RD |
6921 | if (_argo0) { |
6922 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6923 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6924 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevSibling. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6925 | return NULL; |
6926 | } | |
6927 | } | |
1d99702e RD |
6928 | if (_argo1) { |
6929 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6930 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6931 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevSibling. Expected _wxTreeItemId_p."); |
6932 | return NULL; | |
6933 | } | |
6934 | } | |
cf694132 RD |
6935 | { |
6936 | wxPy_BEGIN_ALLOW_THREADS; | |
6937 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevSibling(_arg0,*_arg1)); | |
6938 | ||
6939 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6940 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6941 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 6942 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6943 | return _resultobj; |
6944 | } | |
6945 | ||
d5c9047a | 6946 | #define wxTreeCtrl_GetFirstVisibleItem(_swigobj) (_swigobj->GetFirstVisibleItem()) |
efc5f224 | 6947 | static PyObject *_wrap_wxTreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6948 | PyObject * _resultobj; |
d5c9047a | 6949 | wxTreeItemId * _result; |
f6bcfd97 | 6950 | wxPyTreeCtrl * _arg0; |
1d99702e | 6951 | PyObject * _argo0 = 0; |
efc5f224 | 6952 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 6953 | char _ptemp[128]; |
8ab979d7 RD |
6954 | |
6955 | self = self; | |
efc5f224 | 6956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetFirstVisibleItem",_kwnames,&_argo0)) |
8ab979d7 | 6957 | return NULL; |
1d99702e RD |
6958 | if (_argo0) { |
6959 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6960 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6961 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstVisibleItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6962 | return NULL; |
6963 | } | |
6964 | } | |
cf694132 RD |
6965 | { |
6966 | wxPy_BEGIN_ALLOW_THREADS; | |
6967 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstVisibleItem(_arg0)); | |
6968 | ||
6969 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6970 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6971 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 6972 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6973 | return _resultobj; |
6974 | } | |
6975 | ||
d5c9047a | 6976 | #define wxTreeCtrl_GetNextVisible(_swigobj,_swigarg0) (_swigobj->GetNextVisible(_swigarg0)) |
efc5f224 | 6977 | static PyObject *_wrap_wxTreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6978 | PyObject * _resultobj; |
d5c9047a | 6979 | wxTreeItemId * _result; |
f6bcfd97 | 6980 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6981 | wxTreeItemId * _arg1; |
1d99702e RD |
6982 | PyObject * _argo0 = 0; |
6983 | PyObject * _argo1 = 0; | |
efc5f224 | 6984 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 6985 | char _ptemp[128]; |
8ab979d7 RD |
6986 | |
6987 | self = self; | |
efc5f224 | 6988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6989 | return NULL; |
1d99702e RD |
6990 | if (_argo0) { |
6991 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6992 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6993 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6994 | return NULL; |
6995 | } | |
6996 | } | |
1d99702e RD |
6997 | if (_argo1) { |
6998 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6999 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7000 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextVisible. Expected _wxTreeItemId_p."); |
7001 | return NULL; | |
7002 | } | |
7003 | } | |
cf694132 RD |
7004 | { |
7005 | wxPy_BEGIN_ALLOW_THREADS; | |
7006 | _result = new wxTreeItemId (wxTreeCtrl_GetNextVisible(_arg0,*_arg1)); | |
7007 | ||
7008 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7009 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7010 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7011 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7012 | return _resultobj; |
7013 | } | |
7014 | ||
d5c9047a | 7015 | #define wxTreeCtrl_GetPrevVisible(_swigobj,_swigarg0) (_swigobj->GetPrevVisible(_swigarg0)) |
efc5f224 | 7016 | static PyObject *_wrap_wxTreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7017 | PyObject * _resultobj; |
d5c9047a | 7018 | wxTreeItemId * _result; |
f6bcfd97 | 7019 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7020 | wxTreeItemId * _arg1; |
1d99702e RD |
7021 | PyObject * _argo0 = 0; |
7022 | PyObject * _argo1 = 0; | |
efc5f224 | 7023 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7024 | char _ptemp[128]; |
8ab979d7 RD |
7025 | |
7026 | self = self; | |
efc5f224 | 7027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7028 | return NULL; |
1d99702e RD |
7029 | if (_argo0) { |
7030 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7031 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7032 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7033 | return NULL; |
7034 | } | |
7035 | } | |
1d99702e RD |
7036 | if (_argo1) { |
7037 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7038 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 7039 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevVisible. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
7040 | return NULL; |
7041 | } | |
7042 | } | |
cf694132 RD |
7043 | { |
7044 | wxPy_BEGIN_ALLOW_THREADS; | |
7045 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevVisible(_arg0,*_arg1)); | |
7046 | ||
7047 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7048 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7049 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7050 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7051 | return _resultobj; |
7052 | } | |
7053 | ||
d426c97e RD |
7054 | #define wxTreeCtrl_GetLastChild(_swigobj,_swigarg0) (_swigobj->GetLastChild(_swigarg0)) |
7055 | static PyObject *_wrap_wxTreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7056 | PyObject * _resultobj; | |
7057 | wxTreeItemId * _result; | |
f6bcfd97 | 7058 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
7059 | wxTreeItemId * _arg1; |
7060 | PyObject * _argo0 = 0; | |
7061 | PyObject * _argo1 = 0; | |
7062 | char *_kwnames[] = { "self","item", NULL }; | |
7063 | char _ptemp[128]; | |
7064 | ||
7065 | self = self; | |
7066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetLastChild",_kwnames,&_argo0,&_argo1)) | |
7067 | return NULL; | |
7068 | if (_argo0) { | |
7069 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7070 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7071 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetLastChild. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
7072 | return NULL; |
7073 | } | |
7074 | } | |
7075 | if (_argo1) { | |
7076 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7077 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7078 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetLastChild. Expected _wxTreeItemId_p."); | |
7079 | return NULL; | |
7080 | } | |
7081 | } | |
7082 | { | |
7083 | wxPy_BEGIN_ALLOW_THREADS; | |
7084 | _result = new wxTreeItemId (wxTreeCtrl_GetLastChild(_arg0,*_arg1)); | |
7085 | ||
7086 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7087 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
7088 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
7089 | _resultobj = Py_BuildValue("s",_ptemp); | |
7090 | return _resultobj; | |
7091 | } | |
7092 | ||
d5c9047a | 7093 | #define wxTreeCtrl_AddRoot(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->AddRoot(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
efc5f224 | 7094 | static PyObject *_wrap_wxTreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7095 | PyObject * _resultobj; |
d5c9047a | 7096 | wxTreeItemId * _result; |
f6bcfd97 | 7097 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7098 | wxString * _arg1; |
1d99702e RD |
7099 | int _arg2 = (int ) -1; |
7100 | int _arg3 = (int ) -1; | |
7101 | wxPyTreeItemData * _arg4 = (wxPyTreeItemData *) NULL; | |
7102 | PyObject * _argo0 = 0; | |
d5c9047a | 7103 | PyObject * _obj1 = 0; |
1d99702e | 7104 | PyObject * _argo4 = 0; |
efc5f224 | 7105 | char *_kwnames[] = { "self","text","image","selectedImage","data", NULL }; |
d5c9047a | 7106 | char _ptemp[128]; |
8ab979d7 RD |
7107 | |
7108 | self = self; | |
efc5f224 | 7109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iiO:wxTreeCtrl_AddRoot",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_argo4)) |
8ab979d7 | 7110 | return NULL; |
1d99702e RD |
7111 | if (_argo0) { |
7112 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7113 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7114 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AddRoot. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7115 | return NULL; |
7116 | } | |
7117 | } | |
d5c9047a | 7118 | { |
2cd2fac8 RD |
7119 | #if PYTHON_API_VERSION >= 1009 |
7120 | char* tmpPtr; int tmpSize; | |
7121 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 7122 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
7123 | return NULL; |
7124 | } | |
7125 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7126 | return NULL; | |
7127 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7128 | #else | |
d5c9047a RD |
7129 | if (!PyString_Check(_obj1)) { |
7130 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7131 | return NULL; | |
7132 | } | |
2cd2fac8 RD |
7133 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7134 | #endif | |
d5c9047a | 7135 | } |
1d99702e RD |
7136 | if (_argo4) { |
7137 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
7138 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxPyTreeItemData_p")) { | |
cf694132 | 7139 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxTreeCtrl_AddRoot. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
7140 | return NULL; |
7141 | } | |
7142 | } | |
cf694132 RD |
7143 | { |
7144 | wxPy_BEGIN_ALLOW_THREADS; | |
7145 | _result = new wxTreeItemId (wxTreeCtrl_AddRoot(_arg0,*_arg1,_arg2,_arg3,_arg4)); | |
7146 | ||
7147 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7148 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7149 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
7150 | _resultobj = Py_BuildValue("s",_ptemp); |
7151 | { | |
7152 | if (_obj1) | |
7153 | delete _arg1; | |
7154 | } | |
8ab979d7 RD |
7155 | return _resultobj; |
7156 | } | |
7157 | ||
d5c9047a | 7158 | #define wxTreeCtrl_PrependItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->PrependItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 7159 | static PyObject *_wrap_wxTreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7160 | PyObject * _resultobj; |
d5c9047a | 7161 | wxTreeItemId * _result; |
f6bcfd97 | 7162 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7163 | wxTreeItemId * _arg1; |
7164 | wxString * _arg2; | |
1d99702e RD |
7165 | int _arg3 = (int ) -1; |
7166 | int _arg4 = (int ) -1; | |
7167 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
7168 | PyObject * _argo0 = 0; | |
7169 | PyObject * _argo1 = 0; | |
d5c9047a | 7170 | PyObject * _obj2 = 0; |
1d99702e | 7171 | PyObject * _argo5 = 0; |
efc5f224 | 7172 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 7173 | char _ptemp[128]; |
8ab979d7 RD |
7174 | |
7175 | self = self; | |
efc5f224 | 7176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_PrependItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 7177 | return NULL; |
1d99702e RD |
7178 | if (_argo0) { |
7179 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7180 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7181 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_PrependItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7182 | return NULL; |
7183 | } | |
7184 | } | |
1d99702e RD |
7185 | if (_argo1) { |
7186 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7187 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7188 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_PrependItem. Expected _wxTreeItemId_p."); |
7189 | return NULL; | |
7190 | } | |
7191 | } | |
7192 | { | |
2cd2fac8 RD |
7193 | #if PYTHON_API_VERSION >= 1009 |
7194 | char* tmpPtr; int tmpSize; | |
7195 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 7196 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
7197 | return NULL; |
7198 | } | |
7199 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7200 | return NULL; | |
7201 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7202 | #else | |
d5c9047a RD |
7203 | if (!PyString_Check(_obj2)) { |
7204 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7205 | return NULL; | |
7206 | } | |
2cd2fac8 RD |
7207 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7208 | #endif | |
d5c9047a | 7209 | } |
1d99702e RD |
7210 | if (_argo5) { |
7211 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
7212 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 7213 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_PrependItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
7214 | return NULL; |
7215 | } | |
7216 | } | |
cf694132 RD |
7217 | { |
7218 | wxPy_BEGIN_ALLOW_THREADS; | |
7219 | _result = new wxTreeItemId (wxTreeCtrl_PrependItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); | |
7220 | ||
7221 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7222 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7223 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
7224 | _resultobj = Py_BuildValue("s",_ptemp); |
7225 | { | |
7226 | if (_obj2) | |
7227 | delete _arg2; | |
7228 | } | |
8ab979d7 RD |
7229 | return _resultobj; |
7230 | } | |
7231 | ||
d5c9047a | 7232 | #define wxTreeCtrl_InsertItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 7233 | static PyObject *_wrap_wxTreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7234 | PyObject * _resultobj; |
d5c9047a | 7235 | wxTreeItemId * _result; |
f6bcfd97 | 7236 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7237 | wxTreeItemId * _arg1; |
7238 | wxTreeItemId * _arg2; | |
7239 | wxString * _arg3; | |
1d99702e RD |
7240 | int _arg4 = (int ) -1; |
7241 | int _arg5 = (int ) -1; | |
7242 | wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL; | |
7243 | PyObject * _argo0 = 0; | |
7244 | PyObject * _argo1 = 0; | |
7245 | PyObject * _argo2 = 0; | |
d5c9047a | 7246 | PyObject * _obj3 = 0; |
1d99702e | 7247 | PyObject * _argo6 = 0; |
efc5f224 | 7248 | char *_kwnames[] = { "self","parent","idPrevious","text","image","selectedImage","data", NULL }; |
d5c9047a | 7249 | char _ptemp[128]; |
8ab979d7 RD |
7250 | |
7251 | self = self; | |
efc5f224 | 7252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|iiO:wxTreeCtrl_InsertItem",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3,&_arg4,&_arg5,&_argo6)) |
8ab979d7 | 7253 | return NULL; |
1d99702e RD |
7254 | if (_argo0) { |
7255 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7256 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7257 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7258 | return NULL; |
7259 | } | |
7260 | } | |
1d99702e RD |
7261 | if (_argo1) { |
7262 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7263 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7264 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
7265 | return NULL; | |
7266 | } | |
7267 | } | |
1d99702e RD |
7268 | if (_argo2) { |
7269 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7270 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7271 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
7272 | return NULL; | |
7273 | } | |
7274 | } | |
7275 | { | |
2cd2fac8 RD |
7276 | #if PYTHON_API_VERSION >= 1009 |
7277 | char* tmpPtr; int tmpSize; | |
7278 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
7a446686 | 7279 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
7280 | return NULL; |
7281 | } | |
7282 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
7283 | return NULL; | |
7284 | _arg3 = new wxString(tmpPtr, tmpSize); | |
7285 | #else | |
d5c9047a RD |
7286 | if (!PyString_Check(_obj3)) { |
7287 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7288 | return NULL; | |
7289 | } | |
2cd2fac8 RD |
7290 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
7291 | #endif | |
d5c9047a | 7292 | } |
1d99702e RD |
7293 | if (_argo6) { |
7294 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
7295 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) { | |
cf694132 | 7296 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
7297 | return NULL; |
7298 | } | |
7299 | } | |
cf694132 RD |
7300 | { |
7301 | wxPy_BEGIN_ALLOW_THREADS; | |
7302 | _result = new wxTreeItemId (wxTreeCtrl_InsertItem(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6)); | |
7303 | ||
7304 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7305 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7306 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
7307 | _resultobj = Py_BuildValue("s",_ptemp); |
7308 | { | |
7309 | if (_obj3) | |
7310 | delete _arg3; | |
7311 | } | |
8ab979d7 RD |
7312 | return _resultobj; |
7313 | } | |
7314 | ||
f6bcfd97 BP |
7315 | #define wxTreeCtrl_InsertItemBefore(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
7316 | static PyObject *_wrap_wxTreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7317 | PyObject * _resultobj; | |
7318 | wxTreeItemId * _result; | |
7319 | wxPyTreeCtrl * _arg0; | |
7320 | wxTreeItemId * _arg1; | |
7321 | size_t _arg2; | |
7322 | wxString * _arg3; | |
7323 | int _arg4 = (int ) -1; | |
7324 | int _arg5 = (int ) -1; | |
7325 | wxTreeItemData * _arg6 = (wxTreeItemData *) NULL; | |
7326 | PyObject * _argo0 = 0; | |
7327 | PyObject * _argo1 = 0; | |
7328 | PyObject * _obj3 = 0; | |
7329 | PyObject * _argo6 = 0; | |
7330 | char *_kwnames[] = { "self","parent","before","text","image","selectedImage","data", NULL }; | |
7331 | char _ptemp[128]; | |
7332 | ||
7333 | self = self; | |
7334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|iiO:wxTreeCtrl_InsertItemBefore",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_arg4,&_arg5,&_argo6)) | |
7335 | return NULL; | |
7336 | if (_argo0) { | |
7337 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7338 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7339 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItemBefore. Expected _wxPyTreeCtrl_p."); | |
7340 | return NULL; | |
7341 | } | |
7342 | } | |
7343 | if (_argo1) { | |
7344 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7345 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7346 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemId_p."); | |
7347 | return NULL; | |
7348 | } | |
7349 | } | |
7350 | { | |
2cd2fac8 RD |
7351 | #if PYTHON_API_VERSION >= 1009 |
7352 | char* tmpPtr; int tmpSize; | |
7353 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
7a446686 | 7354 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
7355 | return NULL; |
7356 | } | |
7357 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
7358 | return NULL; | |
7359 | _arg3 = new wxString(tmpPtr, tmpSize); | |
7360 | #else | |
f6bcfd97 BP |
7361 | if (!PyString_Check(_obj3)) { |
7362 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7363 | return NULL; | |
7364 | } | |
2cd2fac8 RD |
7365 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
7366 | #endif | |
f6bcfd97 BP |
7367 | } |
7368 | if (_argo6) { | |
7369 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
7370 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxTreeItemData_p")) { | |
7371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemData_p."); | |
7372 | return NULL; | |
7373 | } | |
7374 | } | |
7375 | { | |
7376 | wxPy_BEGIN_ALLOW_THREADS; | |
7377 | _result = new wxTreeItemId (wxTreeCtrl_InsertItemBefore(_arg0,*_arg1,_arg2,*_arg3,_arg4,_arg5,_arg6)); | |
7378 | ||
7379 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7380 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
7381 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
7382 | _resultobj = Py_BuildValue("s",_ptemp); | |
7383 | { | |
7384 | if (_obj3) | |
7385 | delete _arg3; | |
7386 | } | |
7387 | return _resultobj; | |
7388 | } | |
7389 | ||
d5c9047a | 7390 | #define wxTreeCtrl_AppendItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->AppendItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 7391 | static PyObject *_wrap_wxTreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7392 | PyObject * _resultobj; |
d5c9047a | 7393 | wxTreeItemId * _result; |
f6bcfd97 | 7394 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7395 | wxTreeItemId * _arg1; |
8ab979d7 | 7396 | wxString * _arg2; |
1d99702e RD |
7397 | int _arg3 = (int ) -1; |
7398 | int _arg4 = (int ) -1; | |
7399 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
7400 | PyObject * _argo0 = 0; | |
7401 | PyObject * _argo1 = 0; | |
8ab979d7 | 7402 | PyObject * _obj2 = 0; |
1d99702e | 7403 | PyObject * _argo5 = 0; |
efc5f224 | 7404 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 7405 | char _ptemp[128]; |
8ab979d7 RD |
7406 | |
7407 | self = self; | |
efc5f224 | 7408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_AppendItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 7409 | return NULL; |
1d99702e RD |
7410 | if (_argo0) { |
7411 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7412 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7413 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AppendItem. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7414 | return NULL; |
7415 | } | |
7416 | } | |
1d99702e RD |
7417 | if (_argo1) { |
7418 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7419 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 7420 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AppendItem. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
7421 | return NULL; |
7422 | } | |
7423 | } | |
7424 | { | |
2cd2fac8 RD |
7425 | #if PYTHON_API_VERSION >= 1009 |
7426 | char* tmpPtr; int tmpSize; | |
7427 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 7428 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
7429 | return NULL; |
7430 | } | |
7431 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7432 | return NULL; | |
7433 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7434 | #else | |
8ab979d7 RD |
7435 | if (!PyString_Check(_obj2)) { |
7436 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7437 | return NULL; | |
7438 | } | |
2cd2fac8 RD |
7439 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7440 | #endif | |
8ab979d7 | 7441 | } |
1d99702e RD |
7442 | if (_argo5) { |
7443 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
7444 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 7445 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_AppendItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
7446 | return NULL; |
7447 | } | |
7448 | } | |
cf694132 RD |
7449 | { |
7450 | wxPy_BEGIN_ALLOW_THREADS; | |
7451 | _result = new wxTreeItemId (wxTreeCtrl_AppendItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); | |
7452 | ||
7453 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7454 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7455 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7456 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7457 | { |
7458 | if (_obj2) | |
7459 | delete _arg2; | |
7460 | } | |
7461 | return _resultobj; | |
7462 | } | |
7463 | ||
d5c9047a | 7464 | #define wxTreeCtrl_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
efc5f224 | 7465 | static PyObject *_wrap_wxTreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7466 | PyObject * _resultobj; |
f6bcfd97 | 7467 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7468 | wxTreeItemId * _arg1; |
1d99702e RD |
7469 | PyObject * _argo0 = 0; |
7470 | PyObject * _argo1 = 0; | |
efc5f224 | 7471 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7472 | |
7473 | self = self; | |
efc5f224 | 7474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Delete",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7475 | return NULL; |
1d99702e RD |
7476 | if (_argo0) { |
7477 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7478 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7479 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Delete. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7480 | return NULL; |
7481 | } | |
7482 | } | |
1d99702e RD |
7483 | if (_argo1) { |
7484 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7485 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7486 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Delete. Expected _wxTreeItemId_p."); |
7487 | return NULL; | |
7488 | } | |
7489 | } | |
cf694132 RD |
7490 | { |
7491 | wxPy_BEGIN_ALLOW_THREADS; | |
7492 | wxTreeCtrl_Delete(_arg0,*_arg1); | |
7493 | ||
7494 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7495 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7496 | } Py_INCREF(Py_None); |
d5c9047a RD |
7497 | _resultobj = Py_None; |
7498 | return _resultobj; | |
7499 | } | |
7500 | ||
08127323 | 7501 | #define wxTreeCtrl_DeleteChildren(_swigobj,_swigarg0) (_swigobj->DeleteChildren(_swigarg0)) |
efc5f224 | 7502 | static PyObject *_wrap_wxTreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 | 7503 | PyObject * _resultobj; |
f6bcfd97 | 7504 | wxPyTreeCtrl * _arg0; |
08127323 | 7505 | wxTreeItemId * _arg1; |
1d99702e RD |
7506 | PyObject * _argo0 = 0; |
7507 | PyObject * _argo1 = 0; | |
efc5f224 | 7508 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
7509 | |
7510 | self = self; | |
efc5f224 | 7511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_DeleteChildren",_kwnames,&_argo0,&_argo1)) |
08127323 | 7512 | return NULL; |
1d99702e RD |
7513 | if (_argo0) { |
7514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteChildren. Expected _wxPyTreeCtrl_p."); | |
08127323 RD |
7517 | return NULL; |
7518 | } | |
7519 | } | |
1d99702e RD |
7520 | if (_argo1) { |
7521 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7522 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
08127323 RD |
7523 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_DeleteChildren. Expected _wxTreeItemId_p."); |
7524 | return NULL; | |
7525 | } | |
7526 | } | |
cf694132 RD |
7527 | { |
7528 | wxPy_BEGIN_ALLOW_THREADS; | |
7529 | wxTreeCtrl_DeleteChildren(_arg0,*_arg1); | |
7530 | ||
7531 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7532 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7533 | } Py_INCREF(Py_None); |
08127323 RD |
7534 | _resultobj = Py_None; |
7535 | return _resultobj; | |
7536 | } | |
7537 | ||
d5c9047a | 7538 | #define wxTreeCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) |
efc5f224 | 7539 | static PyObject *_wrap_wxTreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7540 | PyObject * _resultobj; |
f6bcfd97 | 7541 | wxPyTreeCtrl * _arg0; |
1d99702e | 7542 | PyObject * _argo0 = 0; |
efc5f224 | 7543 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
7544 | |
7545 | self = self; | |
efc5f224 | 7546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_DeleteAllItems",_kwnames,&_argo0)) |
d5c9047a | 7547 | return NULL; |
1d99702e RD |
7548 | if (_argo0) { |
7549 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7550 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7551 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteAllItems. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7552 | return NULL; |
7553 | } | |
7554 | } | |
cf694132 RD |
7555 | { |
7556 | wxPy_BEGIN_ALLOW_THREADS; | |
7557 | wxTreeCtrl_DeleteAllItems(_arg0); | |
7558 | ||
7559 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7560 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7561 | } Py_INCREF(Py_None); |
d5c9047a RD |
7562 | _resultobj = Py_None; |
7563 | return _resultobj; | |
7564 | } | |
7565 | ||
7566 | #define wxTreeCtrl_Expand(_swigobj,_swigarg0) (_swigobj->Expand(_swigarg0)) | |
efc5f224 | 7567 | static PyObject *_wrap_wxTreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7568 | PyObject * _resultobj; |
f6bcfd97 | 7569 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7570 | wxTreeItemId * _arg1; |
1d99702e RD |
7571 | PyObject * _argo0 = 0; |
7572 | PyObject * _argo1 = 0; | |
efc5f224 | 7573 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7574 | |
7575 | self = self; | |
efc5f224 | 7576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Expand",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7577 | return NULL; |
1d99702e RD |
7578 | if (_argo0) { |
7579 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7580 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7581 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Expand. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7582 | return NULL; |
7583 | } | |
7584 | } | |
1d99702e RD |
7585 | if (_argo1) { |
7586 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7587 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7588 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Expand. Expected _wxTreeItemId_p."); |
7589 | return NULL; | |
7590 | } | |
7591 | } | |
cf694132 RD |
7592 | { |
7593 | wxPy_BEGIN_ALLOW_THREADS; | |
7594 | wxTreeCtrl_Expand(_arg0,*_arg1); | |
7595 | ||
7596 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7597 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7598 | } Py_INCREF(Py_None); |
d5c9047a RD |
7599 | _resultobj = Py_None; |
7600 | return _resultobj; | |
7601 | } | |
7602 | ||
7603 | #define wxTreeCtrl_Collapse(_swigobj,_swigarg0) (_swigobj->Collapse(_swigarg0)) | |
efc5f224 | 7604 | static PyObject *_wrap_wxTreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7605 | PyObject * _resultobj; |
f6bcfd97 | 7606 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7607 | wxTreeItemId * _arg1; |
1d99702e RD |
7608 | PyObject * _argo0 = 0; |
7609 | PyObject * _argo1 = 0; | |
efc5f224 | 7610 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7611 | |
7612 | self = self; | |
efc5f224 | 7613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Collapse",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7614 | return NULL; |
1d99702e RD |
7615 | if (_argo0) { |
7616 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7617 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7618 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Collapse. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7619 | return NULL; |
7620 | } | |
7621 | } | |
1d99702e RD |
7622 | if (_argo1) { |
7623 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7624 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7625 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Collapse. Expected _wxTreeItemId_p."); |
7626 | return NULL; | |
7627 | } | |
7628 | } | |
cf694132 RD |
7629 | { |
7630 | wxPy_BEGIN_ALLOW_THREADS; | |
7631 | wxTreeCtrl_Collapse(_arg0,*_arg1); | |
7632 | ||
7633 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7634 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7635 | } Py_INCREF(Py_None); |
d5c9047a RD |
7636 | _resultobj = Py_None; |
7637 | return _resultobj; | |
7638 | } | |
7639 | ||
7640 | #define wxTreeCtrl_CollapseAndReset(_swigobj,_swigarg0) (_swigobj->CollapseAndReset(_swigarg0)) | |
efc5f224 | 7641 | static PyObject *_wrap_wxTreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7642 | PyObject * _resultobj; |
f6bcfd97 | 7643 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7644 | wxTreeItemId * _arg1; |
1d99702e RD |
7645 | PyObject * _argo0 = 0; |
7646 | PyObject * _argo1 = 0; | |
efc5f224 | 7647 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7648 | |
7649 | self = self; | |
efc5f224 | 7650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_CollapseAndReset",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7651 | return NULL; |
1d99702e RD |
7652 | if (_argo0) { |
7653 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7654 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7655 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_CollapseAndReset. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7656 | return NULL; |
7657 | } | |
7658 | } | |
1d99702e RD |
7659 | if (_argo1) { |
7660 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7661 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7662 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_CollapseAndReset. Expected _wxTreeItemId_p."); |
7663 | return NULL; | |
7664 | } | |
7665 | } | |
cf694132 RD |
7666 | { |
7667 | wxPy_BEGIN_ALLOW_THREADS; | |
7668 | wxTreeCtrl_CollapseAndReset(_arg0,*_arg1); | |
7669 | ||
7670 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7671 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7672 | } Py_INCREF(Py_None); |
d5c9047a RD |
7673 | _resultobj = Py_None; |
7674 | return _resultobj; | |
7675 | } | |
7676 | ||
7677 | #define wxTreeCtrl_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0)) | |
efc5f224 | 7678 | static PyObject *_wrap_wxTreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7679 | PyObject * _resultobj; |
f6bcfd97 | 7680 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7681 | wxTreeItemId * _arg1; |
1d99702e RD |
7682 | PyObject * _argo0 = 0; |
7683 | PyObject * _argo1 = 0; | |
efc5f224 | 7684 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7685 | |
7686 | self = self; | |
efc5f224 | 7687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Toggle",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7688 | return NULL; |
1d99702e RD |
7689 | if (_argo0) { |
7690 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7691 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7692 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Toggle. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7693 | return NULL; |
7694 | } | |
7695 | } | |
1d99702e RD |
7696 | if (_argo1) { |
7697 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7698 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7699 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Toggle. Expected _wxTreeItemId_p."); |
7700 | return NULL; | |
7701 | } | |
7702 | } | |
cf694132 RD |
7703 | { |
7704 | wxPy_BEGIN_ALLOW_THREADS; | |
7705 | wxTreeCtrl_Toggle(_arg0,*_arg1); | |
7706 | ||
7707 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7708 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7709 | } Py_INCREF(Py_None); |
d5c9047a RD |
7710 | _resultobj = Py_None; |
7711 | return _resultobj; | |
7712 | } | |
7713 | ||
7714 | #define wxTreeCtrl_Unselect(_swigobj) (_swigobj->Unselect()) | |
efc5f224 | 7715 | static PyObject *_wrap_wxTreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7716 | PyObject * _resultobj; |
f6bcfd97 | 7717 | wxPyTreeCtrl * _arg0; |
1d99702e | 7718 | PyObject * _argo0 = 0; |
efc5f224 | 7719 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
7720 | |
7721 | self = self; | |
efc5f224 | 7722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_Unselect",_kwnames,&_argo0)) |
d5c9047a | 7723 | return NULL; |
1d99702e RD |
7724 | if (_argo0) { |
7725 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7726 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7727 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Unselect. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7728 | return NULL; |
7729 | } | |
7730 | } | |
cf694132 RD |
7731 | { |
7732 | wxPy_BEGIN_ALLOW_THREADS; | |
7733 | wxTreeCtrl_Unselect(_arg0); | |
7734 | ||
7735 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7736 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7737 | } Py_INCREF(Py_None); |
d5c9047a RD |
7738 | _resultobj = Py_None; |
7739 | return _resultobj; | |
7740 | } | |
7741 | ||
8bf5d46e | 7742 | #define wxTreeCtrl_UnselectAll(_swigobj) (_swigobj->UnselectAll()) |
efc5f224 | 7743 | static PyObject *_wrap_wxTreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e | 7744 | PyObject * _resultobj; |
f6bcfd97 | 7745 | wxPyTreeCtrl * _arg0; |
1d99702e | 7746 | PyObject * _argo0 = 0; |
efc5f224 | 7747 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
7748 | |
7749 | self = self; | |
efc5f224 | 7750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_UnselectAll",_kwnames,&_argo0)) |
8bf5d46e | 7751 | return NULL; |
1d99702e RD |
7752 | if (_argo0) { |
7753 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7754 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7755 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_UnselectAll. Expected _wxPyTreeCtrl_p."); | |
8bf5d46e RD |
7756 | return NULL; |
7757 | } | |
7758 | } | |
7759 | { | |
7760 | wxPy_BEGIN_ALLOW_THREADS; | |
7761 | wxTreeCtrl_UnselectAll(_arg0); | |
7762 | ||
7763 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7764 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
7765 | } Py_INCREF(Py_None); |
7766 | _resultobj = Py_None; | |
7767 | return _resultobj; | |
7768 | } | |
7769 | ||
d5c9047a | 7770 | #define wxTreeCtrl_SelectItem(_swigobj,_swigarg0) (_swigobj->SelectItem(_swigarg0)) |
efc5f224 | 7771 | static PyObject *_wrap_wxTreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7772 | PyObject * _resultobj; |
f6bcfd97 | 7773 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7774 | wxTreeItemId * _arg1; |
1d99702e RD |
7775 | PyObject * _argo0 = 0; |
7776 | PyObject * _argo1 = 0; | |
efc5f224 | 7777 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7778 | |
7779 | self = self; | |
efc5f224 | 7780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SelectItem",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7781 | return NULL; |
1d99702e RD |
7782 | if (_argo0) { |
7783 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7784 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7785 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SelectItem. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7786 | return NULL; |
7787 | } | |
7788 | } | |
1d99702e RD |
7789 | if (_argo1) { |
7790 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7791 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7792 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SelectItem. Expected _wxTreeItemId_p."); |
7793 | return NULL; | |
7794 | } | |
7795 | } | |
cf694132 RD |
7796 | { |
7797 | wxPy_BEGIN_ALLOW_THREADS; | |
7798 | wxTreeCtrl_SelectItem(_arg0,*_arg1); | |
7799 | ||
7800 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7801 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7802 | } Py_INCREF(Py_None); |
d5c9047a RD |
7803 | _resultobj = Py_None; |
7804 | return _resultobj; | |
7805 | } | |
7806 | ||
7807 | #define wxTreeCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) | |
efc5f224 | 7808 | static PyObject *_wrap_wxTreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7809 | PyObject * _resultobj; |
f6bcfd97 | 7810 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7811 | wxTreeItemId * _arg1; |
1d99702e RD |
7812 | PyObject * _argo0 = 0; |
7813 | PyObject * _argo1 = 0; | |
efc5f224 | 7814 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7815 | |
7816 | self = self; | |
efc5f224 | 7817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EnsureVisible",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7818 | return NULL; |
1d99702e RD |
7819 | if (_argo0) { |
7820 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7821 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7822 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EnsureVisible. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7823 | return NULL; |
7824 | } | |
7825 | } | |
1d99702e RD |
7826 | if (_argo1) { |
7827 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7828 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7829 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EnsureVisible. Expected _wxTreeItemId_p."); |
7830 | return NULL; | |
7831 | } | |
7832 | } | |
cf694132 RD |
7833 | { |
7834 | wxPy_BEGIN_ALLOW_THREADS; | |
7835 | wxTreeCtrl_EnsureVisible(_arg0,*_arg1); | |
7836 | ||
7837 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7838 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7839 | } Py_INCREF(Py_None); |
d5c9047a RD |
7840 | _resultobj = Py_None; |
7841 | return _resultobj; | |
7842 | } | |
7843 | ||
7844 | #define wxTreeCtrl_ScrollTo(_swigobj,_swigarg0) (_swigobj->ScrollTo(_swigarg0)) | |
efc5f224 | 7845 | static PyObject *_wrap_wxTreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7846 | PyObject * _resultobj; |
f6bcfd97 | 7847 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7848 | wxTreeItemId * _arg1; |
1d99702e RD |
7849 | PyObject * _argo0 = 0; |
7850 | PyObject * _argo1 = 0; | |
efc5f224 | 7851 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7852 | |
7853 | self = self; | |
efc5f224 | 7854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ScrollTo",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7855 | return NULL; |
1d99702e RD |
7856 | if (_argo0) { |
7857 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7858 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7859 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ScrollTo. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7860 | return NULL; |
7861 | } | |
7862 | } | |
1d99702e RD |
7863 | if (_argo1) { |
7864 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7865 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7866 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ScrollTo. Expected _wxTreeItemId_p."); |
7867 | return NULL; | |
7868 | } | |
7869 | } | |
cf694132 RD |
7870 | { |
7871 | wxPy_BEGIN_ALLOW_THREADS; | |
7872 | wxTreeCtrl_ScrollTo(_arg0,*_arg1); | |
7873 | ||
7874 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7875 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7876 | } Py_INCREF(Py_None); |
d5c9047a RD |
7877 | _resultobj = Py_None; |
7878 | return _resultobj; | |
7879 | } | |
7880 | ||
7881 | #define wxTreeCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0)) | |
efc5f224 | 7882 | static PyObject *_wrap_wxTreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7883 | PyObject * _resultobj; |
f6bcfd97 | 7884 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7885 | wxTreeItemId * _arg1; |
1d99702e RD |
7886 | PyObject * _argo0 = 0; |
7887 | PyObject * _argo1 = 0; | |
efc5f224 | 7888 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7889 | |
7890 | self = self; | |
efc5f224 | 7891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EditLabel",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7892 | return NULL; |
1d99702e RD |
7893 | if (_argo0) { |
7894 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7895 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7896 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EditLabel. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7897 | return NULL; |
7898 | } | |
7899 | } | |
1d99702e RD |
7900 | if (_argo1) { |
7901 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7902 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7903 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EditLabel. Expected _wxTreeItemId_p."); |
7904 | return NULL; | |
7905 | } | |
7906 | } | |
cf694132 RD |
7907 | { |
7908 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 7909 | wxTreeCtrl_EditLabel(_arg0,*_arg1); |
cf694132 RD |
7910 | |
7911 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7912 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7913 | } Py_INCREF(Py_None); |
d5c9047a | 7914 | _resultobj = Py_None; |
8ab979d7 RD |
7915 | return _resultobj; |
7916 | } | |
7917 | ||
d426c97e RD |
7918 | #define wxTreeCtrl_SortChildren(_swigobj,_swigarg0) (_swigobj->SortChildren(_swigarg0)) |
7919 | static PyObject *_wrap_wxTreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7920 | PyObject * _resultobj; | |
f6bcfd97 | 7921 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
7922 | wxTreeItemId * _arg1; |
7923 | PyObject * _argo0 = 0; | |
7924 | PyObject * _argo1 = 0; | |
7925 | char *_kwnames[] = { "self","item", NULL }; | |
7926 | ||
7927 | self = self; | |
7928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SortChildren",_kwnames,&_argo0,&_argo1)) | |
7929 | return NULL; | |
7930 | if (_argo0) { | |
7931 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7932 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7933 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SortChildren. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
7934 | return NULL; |
7935 | } | |
7936 | } | |
7937 | if (_argo1) { | |
7938 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7939 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7940 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SortChildren. Expected _wxTreeItemId_p."); | |
7941 | return NULL; | |
7942 | } | |
7943 | } | |
7944 | { | |
7945 | wxPy_BEGIN_ALLOW_THREADS; | |
7946 | wxTreeCtrl_SortChildren(_arg0,*_arg1); | |
7947 | ||
7948 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7949 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
7950 | } Py_INCREF(Py_None); |
7951 | _resultobj = Py_None; | |
7952 | return _resultobj; | |
7953 | } | |
7954 | ||
b8b8dda7 | 7955 | #define wxTreeCtrl_SetItemBold(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBold(_swigarg0,_swigarg1)) |
efc5f224 | 7956 | static PyObject *_wrap_wxTreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 | 7957 | PyObject * _resultobj; |
f6bcfd97 | 7958 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 7959 | wxTreeItemId * _arg1; |
b1462dfa | 7960 | int _arg2 = (int ) TRUE; |
1d99702e RD |
7961 | PyObject * _argo0 = 0; |
7962 | PyObject * _argo1 = 0; | |
efc5f224 | 7963 | char *_kwnames[] = { "self","item","bold", NULL }; |
b8b8dda7 RD |
7964 | |
7965 | self = self; | |
b1462dfa | 7966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemBold",_kwnames,&_argo0,&_argo1,&_arg2)) |
b8b8dda7 | 7967 | return NULL; |
1d99702e RD |
7968 | if (_argo0) { |
7969 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7970 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBold. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
7972 | return NULL; |
7973 | } | |
7974 | } | |
1d99702e RD |
7975 | if (_argo1) { |
7976 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7977 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
b8b8dda7 RD |
7978 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBold. Expected _wxTreeItemId_p."); |
7979 | return NULL; | |
7980 | } | |
7981 | } | |
cf694132 RD |
7982 | { |
7983 | wxPy_BEGIN_ALLOW_THREADS; | |
7984 | wxTreeCtrl_SetItemBold(_arg0,*_arg1,_arg2); | |
7985 | ||
7986 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7987 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7988 | } Py_INCREF(Py_None); |
b8b8dda7 RD |
7989 | _resultobj = Py_None; |
7990 | return _resultobj; | |
7991 | } | |
7992 | ||
7993 | #define wxTreeCtrl_IsBold(_swigobj,_swigarg0) (_swigobj->IsBold(_swigarg0)) | |
efc5f224 | 7994 | static PyObject *_wrap_wxTreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
7995 | PyObject * _resultobj; |
7996 | bool _result; | |
f6bcfd97 | 7997 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 7998 | wxTreeItemId * _arg1; |
1d99702e RD |
7999 | PyObject * _argo0 = 0; |
8000 | PyObject * _argo1 = 0; | |
efc5f224 | 8001 | char *_kwnames[] = { "self","item", NULL }; |
b8b8dda7 RD |
8002 | |
8003 | self = self; | |
efc5f224 | 8004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsBold",_kwnames,&_argo0,&_argo1)) |
b8b8dda7 | 8005 | return NULL; |
1d99702e RD |
8006 | if (_argo0) { |
8007 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8008 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8009 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsBold. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
8010 | return NULL; |
8011 | } | |
8012 | } | |
1d99702e RD |
8013 | if (_argo1) { |
8014 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8015 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
b8b8dda7 RD |
8016 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsBold. Expected _wxTreeItemId_p."); |
8017 | return NULL; | |
8018 | } | |
8019 | } | |
cf694132 RD |
8020 | { |
8021 | wxPy_BEGIN_ALLOW_THREADS; | |
8022 | _result = (bool )wxTreeCtrl_IsBold(_arg0,*_arg1); | |
8023 | ||
8024 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8025 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8026 | } _resultobj = Py_BuildValue("i",_result); |
b8b8dda7 RD |
8027 | return _resultobj; |
8028 | } | |
8029 | ||
164b735b | 8030 | #define wxTreeCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) |
efc5f224 | 8031 | static PyObject *_wrap_wxTreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
8032 | PyObject * _resultobj; |
8033 | wxTreeItemId * _result; | |
f6bcfd97 | 8034 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 8035 | wxPoint * _arg1; |
164b735b RD |
8036 | int * _arg2; |
8037 | int temp; | |
1d99702e | 8038 | PyObject * _argo0 = 0; |
164b735b | 8039 | wxPoint temp0; |
2f90df85 | 8040 | PyObject * _obj1 = 0; |
efc5f224 | 8041 | char *_kwnames[] = { "self","point", NULL }; |
b8b8dda7 RD |
8042 | char _ptemp[128]; |
8043 | ||
8044 | self = self; | |
164b735b RD |
8045 | { |
8046 | _arg2 = &temp; | |
8047 | } | |
2f90df85 | 8048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_HitTest",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 8049 | return NULL; |
1d99702e RD |
8050 | if (_argo0) { |
8051 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8052 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8053 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_HitTest. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
8054 | return NULL; |
8055 | } | |
8056 | } | |
2f90df85 | 8057 | { |
164b735b | 8058 | _arg1 = &temp0; |
2f90df85 | 8059 | if (! wxPoint_helper(_obj1, &_arg1)) |
b8b8dda7 | 8060 | return NULL; |
2f90df85 | 8061 | } |
cf694132 RD |
8062 | { |
8063 | wxPy_BEGIN_ALLOW_THREADS; | |
164b735b | 8064 | _result = new wxTreeItemId (wxTreeCtrl_HitTest(_arg0,*_arg1,*_arg2)); |
cf694132 RD |
8065 | |
8066 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8067 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8068 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
b8b8dda7 | 8069 | _resultobj = Py_BuildValue("s",_ptemp); |
164b735b RD |
8070 | { |
8071 | PyObject *o; | |
8072 | o = PyInt_FromLong((long) (*_arg2)); | |
8073 | _resultobj = t_output_helper(_resultobj, o); | |
8074 | } | |
b8b8dda7 RD |
8075 | return _resultobj; |
8076 | } | |
8077 | ||
b7e72427 RD |
8078 | #define wxTreeCtrl_SetItemTextColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemTextColour(_swigarg0,_swigarg1)) |
8079 | static PyObject *_wrap_wxTreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8080 | PyObject * _resultobj; | |
f6bcfd97 | 8081 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
8082 | wxTreeItemId * _arg1; |
8083 | wxColour * _arg2; | |
8084 | PyObject * _argo0 = 0; | |
8085 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
8086 | wxColour temp; |
8087 | PyObject * _obj2 = 0; | |
b7e72427 RD |
8088 | char *_kwnames[] = { "self","item","col", NULL }; |
8089 | ||
8090 | self = self; | |
f6bcfd97 | 8091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemTextColour",_kwnames,&_argo0,&_argo1,&_obj2)) |
b7e72427 RD |
8092 | return NULL; |
8093 | if (_argo0) { | |
8094 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8095 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8096 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemTextColour. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
8097 | return NULL; |
8098 | } | |
8099 | } | |
8100 | if (_argo1) { | |
8101 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8102 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8103 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemTextColour. Expected _wxTreeItemId_p."); | |
8104 | return NULL; | |
8105 | } | |
8106 | } | |
f6bcfd97 BP |
8107 | { |
8108 | _arg2 = &temp; | |
8109 | if (! wxColour_helper(_obj2, &_arg2)) | |
b7e72427 | 8110 | return NULL; |
f6bcfd97 | 8111 | } |
b7e72427 RD |
8112 | { |
8113 | wxPy_BEGIN_ALLOW_THREADS; | |
8114 | wxTreeCtrl_SetItemTextColour(_arg0,*_arg1,*_arg2); | |
8115 | ||
8116 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8117 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
8118 | } Py_INCREF(Py_None); |
8119 | _resultobj = Py_None; | |
8120 | return _resultobj; | |
8121 | } | |
8122 | ||
8123 | #define wxTreeCtrl_SetItemBackgroundColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBackgroundColour(_swigarg0,_swigarg1)) | |
8124 | static PyObject *_wrap_wxTreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8125 | PyObject * _resultobj; | |
f6bcfd97 | 8126 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
8127 | wxTreeItemId * _arg1; |
8128 | wxColour * _arg2; | |
8129 | PyObject * _argo0 = 0; | |
8130 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
8131 | wxColour temp; |
8132 | PyObject * _obj2 = 0; | |
b7e72427 RD |
8133 | char *_kwnames[] = { "self","item","col", NULL }; |
8134 | ||
8135 | self = self; | |
f6bcfd97 | 8136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemBackgroundColour",_kwnames,&_argo0,&_argo1,&_obj2)) |
b7e72427 RD |
8137 | return NULL; |
8138 | if (_argo0) { | |
8139 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8140 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8141 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
8142 | return NULL; |
8143 | } | |
8144 | } | |
8145 | if (_argo1) { | |
8146 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8147 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8148 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxTreeItemId_p."); | |
8149 | return NULL; | |
8150 | } | |
8151 | } | |
f6bcfd97 BP |
8152 | { |
8153 | _arg2 = &temp; | |
8154 | if (! wxColour_helper(_obj2, &_arg2)) | |
b7e72427 | 8155 | return NULL; |
f6bcfd97 | 8156 | } |
b7e72427 RD |
8157 | { |
8158 | wxPy_BEGIN_ALLOW_THREADS; | |
8159 | wxTreeCtrl_SetItemBackgroundColour(_arg0,*_arg1,*_arg2); | |
8160 | ||
8161 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8162 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
8163 | } Py_INCREF(Py_None); |
8164 | _resultobj = Py_None; | |
8165 | return _resultobj; | |
8166 | } | |
8167 | ||
8168 | #define wxTreeCtrl_SetItemFont(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemFont(_swigarg0,_swigarg1)) | |
8169 | static PyObject *_wrap_wxTreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8170 | PyObject * _resultobj; | |
f6bcfd97 | 8171 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
8172 | wxTreeItemId * _arg1; |
8173 | wxFont * _arg2; | |
8174 | PyObject * _argo0 = 0; | |
8175 | PyObject * _argo1 = 0; | |
8176 | PyObject * _argo2 = 0; | |
8177 | char *_kwnames[] = { "self","item","font", NULL }; | |
8178 | ||
8179 | self = self; | |
8180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemFont",_kwnames,&_argo0,&_argo1,&_argo2)) | |
8181 | return NULL; | |
8182 | if (_argo0) { | |
8183 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8184 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8185 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemFont. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
8186 | return NULL; |
8187 | } | |
8188 | } | |
8189 | if (_argo1) { | |
8190 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8191 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8192 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemFont. Expected _wxTreeItemId_p."); | |
8193 | return NULL; | |
8194 | } | |
8195 | } | |
8196 | if (_argo2) { | |
8197 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8198 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
8199 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemFont. Expected _wxFont_p."); | |
8200 | return NULL; | |
8201 | } | |
8202 | } | |
8203 | { | |
8204 | wxPy_BEGIN_ALLOW_THREADS; | |
8205 | wxTreeCtrl_SetItemFont(_arg0,*_arg1,*_arg2); | |
8206 | ||
8207 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8208 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
8209 | } Py_INCREF(Py_None); |
8210 | _resultobj = Py_None; | |
8211 | return _resultobj; | |
8212 | } | |
8213 | ||
8ab979d7 | 8214 | static PyMethodDef controls2cMethods[] = { |
b7e72427 RD |
8215 | { "wxTreeCtrl_SetItemFont", (PyCFunction) _wrap_wxTreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, |
8216 | { "wxTreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8217 | { "wxTreeCtrl_SetItemTextColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
8218 | { "wxTreeCtrl_HitTest", (PyCFunction) _wrap_wxTreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
8219 | { "wxTreeCtrl_IsBold", (PyCFunction) _wrap_wxTreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
8220 | { "wxTreeCtrl_SetItemBold", (PyCFunction) _wrap_wxTreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 8221 | { "wxTreeCtrl_SortChildren", (PyCFunction) _wrap_wxTreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8222 | { "wxTreeCtrl_EditLabel", (PyCFunction) _wrap_wxTreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, |
8223 | { "wxTreeCtrl_ScrollTo", (PyCFunction) _wrap_wxTreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
8224 | { "wxTreeCtrl_EnsureVisible", (PyCFunction) _wrap_wxTreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
8225 | { "wxTreeCtrl_SelectItem", (PyCFunction) _wrap_wxTreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
8226 | { "wxTreeCtrl_UnselectAll", (PyCFunction) _wrap_wxTreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, | |
8227 | { "wxTreeCtrl_Unselect", (PyCFunction) _wrap_wxTreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
8228 | { "wxTreeCtrl_Toggle", (PyCFunction) _wrap_wxTreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
8229 | { "wxTreeCtrl_CollapseAndReset", (PyCFunction) _wrap_wxTreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
8230 | { "wxTreeCtrl_Collapse", (PyCFunction) _wrap_wxTreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
8231 | { "wxTreeCtrl_Expand", (PyCFunction) _wrap_wxTreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
8232 | { "wxTreeCtrl_DeleteAllItems", (PyCFunction) _wrap_wxTreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
8233 | { "wxTreeCtrl_DeleteChildren", (PyCFunction) _wrap_wxTreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
8234 | { "wxTreeCtrl_Delete", (PyCFunction) _wrap_wxTreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
8235 | { "wxTreeCtrl_AppendItem", (PyCFunction) _wrap_wxTreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 8236 | { "wxTreeCtrl_InsertItemBefore", (PyCFunction) _wrap_wxTreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8237 | { "wxTreeCtrl_InsertItem", (PyCFunction) _wrap_wxTreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, |
8238 | { "wxTreeCtrl_PrependItem", (PyCFunction) _wrap_wxTreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
8239 | { "wxTreeCtrl_AddRoot", (PyCFunction) _wrap_wxTreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 8240 | { "wxTreeCtrl_GetLastChild", (PyCFunction) _wrap_wxTreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8241 | { "wxTreeCtrl_GetPrevVisible", (PyCFunction) _wrap_wxTreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, |
8242 | { "wxTreeCtrl_GetNextVisible", (PyCFunction) _wrap_wxTreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
8243 | { "wxTreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_wxTreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
8244 | { "wxTreeCtrl_GetPrevSibling", (PyCFunction) _wrap_wxTreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
8245 | { "wxTreeCtrl_GetNextSibling", (PyCFunction) _wrap_wxTreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
8246 | { "wxTreeCtrl_GetNextChild", (PyCFunction) _wrap_wxTreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
8247 | { "wxTreeCtrl_GetFirstChild", (PyCFunction) _wrap_wxTreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
8248 | { "wxTreeCtrl_GetChildrenCount", (PyCFunction) _wrap_wxTreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 8249 | { "wxTreeCtrl_GetSelections", (PyCFunction) _wrap_wxTreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 8250 | { "wxTreeCtrl_GetItemParent", (PyCFunction) _wrap_wxTreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8251 | { "wxTreeCtrl_GetSelection", (PyCFunction) _wrap_wxTreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, |
8252 | { "wxTreeCtrl_GetRootItem", (PyCFunction) _wrap_wxTreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
8253 | { "wxTreeCtrl_IsSelected", (PyCFunction) _wrap_wxTreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
8254 | { "wxTreeCtrl_IsExpanded", (PyCFunction) _wrap_wxTreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
8255 | { "wxTreeCtrl_ItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
8256 | { "wxTreeCtrl_IsVisible", (PyCFunction) _wrap_wxTreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
8257 | { "wxTreeCtrl_SetPyData", (PyCFunction) _wrap_wxTreeCtrl_SetPyData, METH_VARARGS | METH_KEYWORDS }, | |
8258 | { "wxTreeCtrl_GetPyData", (PyCFunction) _wrap_wxTreeCtrl_GetPyData, METH_VARARGS | METH_KEYWORDS }, | |
8259 | { "wxTreeCtrl_SetItemData", (PyCFunction) _wrap_wxTreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
8260 | { "wxTreeCtrl_GetItemData", (PyCFunction) _wrap_wxTreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
8261 | { "wxTreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
8262 | { "wxTreeCtrl_SetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
8263 | { "wxTreeCtrl_SetItemImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
8264 | { "wxTreeCtrl_SetItemText", (PyCFunction) _wrap_wxTreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
8265 | { "wxTreeCtrl_GetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
8266 | { "wxTreeCtrl_GetItemImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
8267 | { "wxTreeCtrl_GetItemText", (PyCFunction) _wrap_wxTreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
8268 | { "wxTreeCtrl_SetSpacing", (PyCFunction) _wrap_wxTreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, |
8269 | { "wxTreeCtrl_GetSpacing", (PyCFunction) _wrap_wxTreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
8270 | { "wxTreeCtrl_SetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, |
8271 | { "wxTreeCtrl_SetImageList", (PyCFunction) _wrap_wxTreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
8272 | { "wxTreeCtrl_GetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
8273 | { "wxTreeCtrl_GetImageList", (PyCFunction) _wrap_wxTreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
8274 | { "wxTreeCtrl_SetIndent", (PyCFunction) _wrap_wxTreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
8275 | { "wxTreeCtrl_GetIndent", (PyCFunction) _wrap_wxTreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
8276 | { "wxTreeCtrl_GetCount", (PyCFunction) _wrap_wxTreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
9c4165ad | 8277 | { "wxTreeCtrl_AssignImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 | 8278 | { "wxTreeCtrl__setSelf", (PyCFunction) _wrap_wxTreeCtrl__setSelf, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8279 | { "new_wxTreeCtrl", (PyCFunction) _wrap_new_wxTreeCtrl, METH_VARARGS | METH_KEYWORDS }, |
8280 | { "wxTreeEvent_GetLabel", (PyCFunction) _wrap_wxTreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
8281 | { "wxTreeEvent_GetCode", (PyCFunction) _wrap_wxTreeEvent_GetCode, METH_VARARGS | METH_KEYWORDS }, | |
8282 | { "wxTreeEvent_GetPoint", (PyCFunction) _wrap_wxTreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
8283 | { "wxTreeEvent_GetOldItem", (PyCFunction) _wrap_wxTreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
8284 | { "wxTreeEvent_GetItem", (PyCFunction) _wrap_wxTreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
8285 | { "wxTreeItemData_SetId", (PyCFunction) _wrap_wxTreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, | |
8286 | { "wxTreeItemData_GetId", (PyCFunction) _wrap_wxTreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
8287 | { "wxTreeItemData_SetData", (PyCFunction) _wrap_wxTreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
8288 | { "wxTreeItemData_GetData", (PyCFunction) _wrap_wxTreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
8289 | { "new_wxTreeItemData", (PyCFunction) _wrap_new_wxTreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 8290 | { "wxTreeItemId___cmp__", (PyCFunction) _wrap_wxTreeItemId___cmp__, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8291 | { "wxTreeItemId_IsOk", (PyCFunction) _wrap_wxTreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, |
8292 | { "delete_wxTreeItemId", (PyCFunction) _wrap_delete_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
8293 | { "new_wxTreeItemId", (PyCFunction) _wrap_new_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
dcd38683 | 8294 | { "wxListCtrl_SortItems", (PyCFunction) _wrap_wxListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 8295 | { "wxListCtrl_ScrollList", (PyCFunction) _wrap_wxListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, |
cd096152 RD |
8296 | { "wxListCtrl_SetItemCount", (PyCFunction) _wrap_wxListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, |
8297 | { "wxListCtrl_InsertColumn", (PyCFunction) _wrap_wxListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
8298 | { "wxListCtrl_InsertColumnInfo", (PyCFunction) _wrap_wxListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
8299 | { "wxListCtrl_InsertImageStringItem", (PyCFunction) _wrap_wxListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, |
8300 | { "wxListCtrl_InsertImageItem", (PyCFunction) _wrap_wxListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
8301 | { "wxListCtrl_InsertStringItem", (PyCFunction) _wrap_wxListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
8302 | { "wxListCtrl_InsertItem", (PyCFunction) _wrap_wxListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 8303 | { "wxListCtrl_HitTest", (PyCFunction) _wrap_wxListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8304 | { "wxListCtrl_FindItemAtPos", (PyCFunction) _wrap_wxListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, |
8305 | { "wxListCtrl_FindItemData", (PyCFunction) _wrap_wxListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
8306 | { "wxListCtrl_FindItem", (PyCFunction) _wrap_wxListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
8307 | { "wxListCtrl_EnsureVisible", (PyCFunction) _wrap_wxListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
8308 | { "wxListCtrl_ClearAll", (PyCFunction) _wrap_wxListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, |
8309 | { "wxListCtrl_DeleteAllColumns", (PyCFunction) _wrap_wxListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
8310 | { "wxListCtrl_DeleteColumn", (PyCFunction) _wrap_wxListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
8311 | { "wxListCtrl_DeleteAllItems", (PyCFunction) _wrap_wxListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
8312 | { "wxListCtrl_DeleteItem", (PyCFunction) _wrap_wxListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
8313 | { "wxListCtrl_Arrange", (PyCFunction) _wrap_wxListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
cd096152 RD |
8314 | { "wxListCtrl_RefreshItems", (PyCFunction) _wrap_wxListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, |
8315 | { "wxListCtrl_RefreshItem", (PyCFunction) _wrap_wxListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, | |
8316 | { "wxListCtrl_IsVirtual", (PyCFunction) _wrap_wxListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, | |
8317 | { "wxListCtrl_AssignImageList", (PyCFunction) _wrap_wxListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
8318 | { "wxListCtrl_SetImageList", (PyCFunction) _wrap_wxListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
8319 | { "wxListCtrl_GetImageList", (PyCFunction) _wrap_wxListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
8320 | { "wxListCtrl_GetNextItem", (PyCFunction) _wrap_wxListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
8321 | { "wxListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_wxListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
8322 | { "wxListCtrl_SetSingleStyle", (PyCFunction) _wrap_wxListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
8323 | { "wxListCtrl_GetTopItem", (PyCFunction) _wrap_wxListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
8324 | { "wxListCtrl_SetTextColour", (PyCFunction) _wrap_wxListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8325 | { "wxListCtrl_GetTextColour", (PyCFunction) _wrap_wxListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8326 | { "wxListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_wxListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
8327 | { "wxListCtrl_GetItemSpacing", (PyCFunction) _wrap_wxListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
8328 | { "wxListCtrl_GetColumnCount", (PyCFunction) _wrap_wxListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
8329 | { "wxListCtrl_GetItemCount", (PyCFunction) _wrap_wxListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
8330 | { "wxListCtrl_SetItemPosition", (PyCFunction) _wrap_wxListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
8331 | { "wxListCtrl_GetItemRect", (PyCFunction) _wrap_wxListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
8332 | { "wxListCtrl_GetItemPosition", (PyCFunction) _wrap_wxListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
8333 | { "wxListCtrl_SetItemData", (PyCFunction) _wrap_wxListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
8334 | { "wxListCtrl_GetItemData", (PyCFunction) _wrap_wxListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
8335 | { "wxListCtrl_SetItemText", (PyCFunction) _wrap_wxListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
8336 | { "wxListCtrl_GetItemText", (PyCFunction) _wrap_wxListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
8337 | { "wxListCtrl_SetItemImage", (PyCFunction) _wrap_wxListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
8338 | { "wxListCtrl_SetItemState", (PyCFunction) _wrap_wxListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
8339 | { "wxListCtrl_GetItemState", (PyCFunction) _wrap_wxListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
8340 | { "wxListCtrl_SetStringItem", (PyCFunction) _wrap_wxListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
8341 | { "wxListCtrl_SetItem", (PyCFunction) _wrap_wxListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
8342 | { "wxListCtrl_GetItem", (PyCFunction) _wrap_wxListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
8343 | { "wxListCtrl_GetCountPerPage", (PyCFunction) _wrap_wxListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
8344 | { "wxListCtrl_SetColumnWidth", (PyCFunction) _wrap_wxListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
8345 | { "wxListCtrl_GetColumnWidth", (PyCFunction) _wrap_wxListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
8346 | { "wxListCtrl_SetColumn", (PyCFunction) _wrap_wxListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
8347 | { "wxListCtrl_GetColumn", (PyCFunction) _wrap_wxListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
8348 | { "wxListCtrl_SetBackgroundColour", (PyCFunction) _wrap_wxListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8349 | { "wxListCtrl_SetForegroundColour", (PyCFunction) _wrap_wxListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8350 | { "wxListCtrl__setSelf", (PyCFunction) _wrap_wxListCtrl__setSelf, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 8351 | { "new_wxListCtrl", (PyCFunction) _wrap_new_wxListCtrl, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
8352 | { "wxListEvent_GetItem", (PyCFunction) _wrap_wxListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, |
8353 | { "wxListEvent_GetMask", (PyCFunction) _wrap_wxListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
8354 | { "wxListEvent_GetData", (PyCFunction) _wrap_wxListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
8355 | { "wxListEvent_GetImage", (PyCFunction) _wrap_wxListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
8356 | { "wxListEvent_GetText", (PyCFunction) _wrap_wxListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
8357 | { "wxListEvent_GetLabel", (PyCFunction) _wrap_wxListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
8358 | { "wxListEvent_GetPoint", (PyCFunction) _wrap_wxListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
8359 | { "wxListEvent_Cancelled", (PyCFunction) _wrap_wxListEvent_Cancelled, METH_VARARGS | METH_KEYWORDS }, | |
8360 | { "wxListEvent_GetColumn", (PyCFunction) _wrap_wxListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
8361 | { "wxListEvent_GetOldItem", (PyCFunction) _wrap_wxListEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
8362 | { "wxListEvent_GetOldIndex", (PyCFunction) _wrap_wxListEvent_GetOldIndex, METH_VARARGS | METH_KEYWORDS }, | |
8363 | { "wxListEvent_GetIndex", (PyCFunction) _wrap_wxListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
8364 | { "wxListEvent_GetCode", (PyCFunction) _wrap_wxListEvent_GetCode, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
8365 | { "wxListEvent_m_item_get", (PyCFunction) _wrap_wxListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, |
8366 | { "wxListEvent_m_item_set", (PyCFunction) _wrap_wxListEvent_m_item_set, METH_VARARGS | METH_KEYWORDS }, | |
8367 | { "wxListEvent_m_pointDrag_get", (PyCFunction) _wrap_wxListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, | |
8368 | { "wxListEvent_m_pointDrag_set", (PyCFunction) _wrap_wxListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS }, | |
8369 | { "wxListEvent_m_cancelled_get", (PyCFunction) _wrap_wxListEvent_m_cancelled_get, METH_VARARGS | METH_KEYWORDS }, | |
8370 | { "wxListEvent_m_cancelled_set", (PyCFunction) _wrap_wxListEvent_m_cancelled_set, METH_VARARGS | METH_KEYWORDS }, | |
8371 | { "wxListEvent_m_col_get", (PyCFunction) _wrap_wxListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
8372 | { "wxListEvent_m_col_set", (PyCFunction) _wrap_wxListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
8373 | { "wxListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
8374 | { "wxListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
8375 | { "wxListEvent_m_itemIndex_get", (PyCFunction) _wrap_wxListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
8376 | { "wxListEvent_m_itemIndex_set", (PyCFunction) _wrap_wxListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
8377 | { "wxListEvent_m_code_get", (PyCFunction) _wrap_wxListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, | |
8378 | { "wxListEvent_m_code_set", (PyCFunction) _wrap_wxListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
8379 | { "wxListItem_m_width_get", (PyCFunction) _wrap_wxListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, |
8380 | { "wxListItem_m_width_set", (PyCFunction) _wrap_wxListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
8381 | { "wxListItem_m_format_get", (PyCFunction) _wrap_wxListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
8382 | { "wxListItem_m_format_set", (PyCFunction) _wrap_wxListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
8383 | { "wxListItem_m_data_get", (PyCFunction) _wrap_wxListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
8384 | { "wxListItem_m_data_set", (PyCFunction) _wrap_wxListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
8385 | { "wxListItem_m_image_get", (PyCFunction) _wrap_wxListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
8386 | { "wxListItem_m_image_set", (PyCFunction) _wrap_wxListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
8387 | { "wxListItem_m_text_get", (PyCFunction) _wrap_wxListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
8388 | { "wxListItem_m_text_set", (PyCFunction) _wrap_wxListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
8389 | { "wxListItem_m_stateMask_get", (PyCFunction) _wrap_wxListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
8390 | { "wxListItem_m_stateMask_set", (PyCFunction) _wrap_wxListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
8391 | { "wxListItem_m_state_get", (PyCFunction) _wrap_wxListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
8392 | { "wxListItem_m_state_set", (PyCFunction) _wrap_wxListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
8393 | { "wxListItem_m_col_get", (PyCFunction) _wrap_wxListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
8394 | { "wxListItem_m_col_set", (PyCFunction) _wrap_wxListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
8395 | { "wxListItem_m_itemId_get", (PyCFunction) _wrap_wxListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
8396 | { "wxListItem_m_itemId_set", (PyCFunction) _wrap_wxListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
8397 | { "wxListItem_m_mask_get", (PyCFunction) _wrap_wxListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
8398 | { "wxListItem_m_mask_set", (PyCFunction) _wrap_wxListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
8399 | { "wxListItem_GetFont", (PyCFunction) _wrap_wxListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, |
8400 | { "wxListItem_GetBackgroundColour", (PyCFunction) _wrap_wxListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8401 | { "wxListItem_GetTextColour", (PyCFunction) _wrap_wxListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8402 | { "wxListItem_HasAttributes", (PyCFunction) _wrap_wxListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
8403 | { "wxListItem_GetAttributes", (PyCFunction) _wrap_wxListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
8404 | { "wxListItem_GetAlign", (PyCFunction) _wrap_wxListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
8405 | { "wxListItem_GetWidth", (PyCFunction) _wrap_wxListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
8406 | { "wxListItem_GetData", (PyCFunction) _wrap_wxListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
8407 | { "wxListItem_GetImage", (PyCFunction) _wrap_wxListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
8408 | { "wxListItem_GetText", (PyCFunction) _wrap_wxListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
8409 | { "wxListItem_GetState", (PyCFunction) _wrap_wxListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
8410 | { "wxListItem_GetColumn", (PyCFunction) _wrap_wxListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
8411 | { "wxListItem_GetId", (PyCFunction) _wrap_wxListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
8412 | { "wxListItem_GetMask", (PyCFunction) _wrap_wxListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
8413 | { "wxListItem_SetFont", (PyCFunction) _wrap_wxListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
8414 | { "wxListItem_SetBackgroundColour", (PyCFunction) _wrap_wxListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8415 | { "wxListItem_SetTextColour", (PyCFunction) _wrap_wxListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8416 | { "wxListItem_SetAlign", (PyCFunction) _wrap_wxListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
8417 | { "wxListItem_SetWidth", (PyCFunction) _wrap_wxListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
8418 | { "wxListItem_SetData", (PyCFunction) _wrap_wxListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
8419 | { "wxListItem_SetImage", (PyCFunction) _wrap_wxListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
8420 | { "wxListItem_SetText", (PyCFunction) _wrap_wxListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
8421 | { "wxListItem_SetStateMask", (PyCFunction) _wrap_wxListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
8422 | { "wxListItem_SetState", (PyCFunction) _wrap_wxListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
8423 | { "wxListItem_SetColumn", (PyCFunction) _wrap_wxListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
8424 | { "wxListItem_SetId", (PyCFunction) _wrap_wxListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
8425 | { "wxListItem_SetMask", (PyCFunction) _wrap_wxListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
8426 | { "wxListItem_ClearAttributes", (PyCFunction) _wrap_wxListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
8427 | { "wxListItem_Clear", (PyCFunction) _wrap_wxListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
8428 | { "delete_wxListItem", (PyCFunction) _wrap_delete_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
8429 | { "new_wxListItem", (PyCFunction) _wrap_new_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
8430 | { "wxListItemAttr_GetFont", (PyCFunction) _wrap_wxListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
8431 | { "wxListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8432 | { "wxListItemAttr_GetTextColour", (PyCFunction) _wrap_wxListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8433 | { "wxListItemAttr_HasFont", (PyCFunction) _wrap_wxListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
8434 | { "wxListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8435 | { "wxListItemAttr_HasTextColour", (PyCFunction) _wrap_wxListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8436 | { "wxListItemAttr_SetFont", (PyCFunction) _wrap_wxListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
8437 | { "wxListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8438 | { "wxListItemAttr_SetTextColour", (PyCFunction) _wrap_wxListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8439 | { "new_wxListItemAttr", (PyCFunction) _wrap_new_wxListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
8ab979d7 RD |
8440 | { NULL, NULL } |
8441 | }; | |
1d99702e RD |
8442 | #ifdef __cplusplus |
8443 | } | |
8444 | #endif | |
8445 | /* | |
8446 | * This table is used by the pointer type-checker | |
8447 | */ | |
8448 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e RD |
8449 | { "_wxEvent","_class_wxTreeEvent",SwigwxTreeEventTowxEvent}, |
8450 | { "_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent}, | |
8451 | { "_wxEvent","_class_wxListEvent",SwigwxListEventTowxEvent}, | |
8452 | { "_wxEvent","_wxListEvent",SwigwxListEventTowxEvent}, | |
1d99702e | 8453 | { "_signed_long","_long",0}, |
b1462dfa | 8454 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
8455 | { "_wxPrintQuality","_int",0}, |
8456 | { "_wxPrintQuality","_signed_int",0}, | |
8457 | { "_wxPrintQuality","_unsigned_int",0}, | |
8458 | { "_wxPrintQuality","_wxWindowID",0}, | |
8459 | { "_wxPrintQuality","_uint",0}, | |
8460 | { "_wxPrintQuality","_EBool",0}, | |
8461 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 8462 | { "_wxPrintQuality","_time_t",0}, |
f6bcfd97 BP |
8463 | { "_class_wxEvtHandler","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, |
8464 | { "_class_wxEvtHandler","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, | |
cd096152 RD |
8465 | { "_class_wxEvtHandler","_class_wxPyListCtrl",SwigwxPyListCtrlTowxEvtHandler}, |
8466 | { "_class_wxEvtHandler","_wxPyListCtrl",SwigwxPyListCtrlTowxEvtHandler}, | |
1d99702e RD |
8467 | { "_wxNotifyEvent","_class_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, |
8468 | { "_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, | |
c368d904 RD |
8469 | { "_wxNotifyEvent","_class_wxListEvent",SwigwxListEventTowxNotifyEvent}, |
8470 | { "_wxNotifyEvent","_wxListEvent",SwigwxListEventTowxNotifyEvent}, | |
1d99702e | 8471 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
8472 | { "_long","_unsigned_long",0}, |
8473 | { "_long","_signed_long",0}, | |
9df61a29 RD |
8474 | { "_class_wxObject","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxObject}, |
8475 | { "_class_wxObject","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxObject}, | |
8476 | { "_class_wxObject","_class_wxTreeEvent",SwigwxTreeEventTowxObject}, | |
8477 | { "_class_wxObject","_wxTreeEvent",SwigwxTreeEventTowxObject}, | |
8478 | { "_class_wxObject","_class_wxPyTreeItemData",SwigwxPyTreeItemDataTowxObject}, | |
8479 | { "_class_wxObject","_wxPyTreeItemData",SwigwxPyTreeItemDataTowxObject}, | |
cd096152 RD |
8480 | { "_class_wxObject","_class_wxPyListCtrl",SwigwxPyListCtrlTowxObject}, |
8481 | { "_class_wxObject","_wxPyListCtrl",SwigwxPyListCtrlTowxObject}, | |
9df61a29 RD |
8482 | { "_class_wxObject","_class_wxListEvent",SwigwxListEventTowxObject}, |
8483 | { "_class_wxObject","_wxListEvent",SwigwxListEventTowxObject}, | |
8484 | { "_class_wxObject","_class_wxListItem",SwigwxListItemTowxObject}, | |
8485 | { "_class_wxObject","_wxListItem",SwigwxListItemTowxObject}, | |
b1462dfa | 8486 | { "_size_t","_wxCoord",0}, |
1d99702e | 8487 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 8488 | { "_size_t","_time_t",0}, |
1d99702e RD |
8489 | { "_size_t","_unsigned_int",0}, |
8490 | { "_size_t","_int",0}, | |
8491 | { "_size_t","_wxWindowID",0}, | |
8492 | { "_size_t","_uint",0}, | |
b1462dfa | 8493 | { "_uint","_wxCoord",0}, |
1d99702e | 8494 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 8495 | { "_uint","_time_t",0}, |
1d99702e RD |
8496 | { "_uint","_size_t",0}, |
8497 | { "_uint","_unsigned_int",0}, | |
8498 | { "_uint","_int",0}, | |
8499 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 8500 | { "_wxChar","_char",0}, |
1d99702e RD |
8501 | { "_class_wxEvent","_class_wxTreeEvent",SwigwxTreeEventTowxEvent}, |
8502 | { "_class_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent}, | |
8503 | { "_class_wxEvent","_class_wxListEvent",SwigwxListEventTowxEvent}, | |
8504 | { "_class_wxEvent","_wxListEvent",SwigwxListEventTowxEvent}, | |
1d99702e RD |
8505 | { "_wxCommandEvent","_class_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, |
8506 | { "_wxCommandEvent","_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, | |
8507 | { "_wxCommandEvent","_class_wxListEvent",SwigwxListEventTowxCommandEvent}, | |
8508 | { "_wxCommandEvent","_wxListEvent",SwigwxListEventTowxCommandEvent}, | |
f6bcfd97 | 8509 | { "_char","_wxChar",0}, |
1d99702e RD |
8510 | { "_class_wxNotifyEvent","_class_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, |
8511 | { "_class_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, | |
c368d904 RD |
8512 | { "_class_wxNotifyEvent","_class_wxListEvent",SwigwxListEventTowxNotifyEvent}, |
8513 | { "_class_wxNotifyEvent","_wxListEvent",SwigwxListEventTowxNotifyEvent}, | |
b1462dfa | 8514 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
8515 | { "_EBool","_wxPrintQuality",0}, |
8516 | { "_EBool","_signed_int",0}, | |
8517 | { "_EBool","_int",0}, | |
8518 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 8519 | { "_unsigned_long","_long",0}, |
b1462dfa | 8520 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
8521 | { "_signed_int","_wxPrintQuality",0}, |
8522 | { "_signed_int","_EBool",0}, | |
8523 | { "_signed_int","_wxWindowID",0}, | |
8524 | { "_signed_int","_int",0}, | |
1d99702e RD |
8525 | { "_WXTYPE","_short",0}, |
8526 | { "_WXTYPE","_signed_short",0}, | |
8527 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
8528 | { "_unsigned_short","_WXTYPE",0}, |
8529 | { "_unsigned_short","_short",0}, | |
f6bcfd97 BP |
8530 | { "_class_wxWindow","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, |
8531 | { "_class_wxWindow","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, | |
cd096152 RD |
8532 | { "_class_wxWindow","_class_wxPyListCtrl",SwigwxPyListCtrlTowxWindow}, |
8533 | { "_class_wxWindow","_wxPyListCtrl",SwigwxPyListCtrlTowxWindow}, | |
9df61a29 RD |
8534 | { "_wxObject","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxObject}, |
8535 | { "_wxObject","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxObject}, | |
8536 | { "_wxObject","_class_wxTreeEvent",SwigwxTreeEventTowxObject}, | |
8537 | { "_wxObject","_wxTreeEvent",SwigwxTreeEventTowxObject}, | |
8538 | { "_wxObject","_class_wxPyTreeItemData",SwigwxPyTreeItemDataTowxObject}, | |
8539 | { "_wxObject","_wxPyTreeItemData",SwigwxPyTreeItemDataTowxObject}, | |
cd096152 RD |
8540 | { "_wxObject","_class_wxPyListCtrl",SwigwxPyListCtrlTowxObject}, |
8541 | { "_wxObject","_wxPyListCtrl",SwigwxPyListCtrlTowxObject}, | |
9df61a29 RD |
8542 | { "_wxObject","_class_wxListEvent",SwigwxListEventTowxObject}, |
8543 | { "_wxObject","_wxListEvent",SwigwxListEventTowxObject}, | |
8544 | { "_wxObject","_class_wxListItem",SwigwxListItemTowxObject}, | |
8545 | { "_wxObject","_wxListItem",SwigwxListItemTowxObject}, | |
1d99702e RD |
8546 | { "_signed_short","_WXTYPE",0}, |
8547 | { "_signed_short","_short",0}, | |
1d99702e | 8548 | { "_unsigned_char","_byte",0}, |
f6bcfd97 BP |
8549 | { "_wxControl","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, |
8550 | { "_wxControl","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, | |
cd096152 RD |
8551 | { "_wxControl","_class_wxPyListCtrl",SwigwxPyListCtrlTowxControl}, |
8552 | { "_wxControl","_wxPyListCtrl",SwigwxPyListCtrlTowxControl}, | |
b1462dfa | 8553 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 8554 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 8555 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
8556 | { "_unsigned_int","_size_t",0}, |
8557 | { "_unsigned_int","_uint",0}, | |
8558 | { "_unsigned_int","_wxWindowID",0}, | |
8559 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
8560 | { "_short","_WXTYPE",0}, |
8561 | { "_short","_unsigned_short",0}, | |
8562 | { "_short","_signed_short",0}, | |
b1462dfa | 8563 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 8564 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 8565 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
8566 | { "_wxWindowID","_size_t",0}, |
8567 | { "_wxWindowID","_EBool",0}, | |
8568 | { "_wxWindowID","_uint",0}, | |
8569 | { "_wxWindowID","_int",0}, | |
8570 | { "_wxWindowID","_signed_int",0}, | |
8571 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 8572 | { "_int","_wxCoord",0}, |
1d99702e | 8573 | { "_int","_wxPrintQuality",0}, |
c368d904 | 8574 | { "_int","_time_t",0}, |
1d99702e RD |
8575 | { "_int","_size_t",0}, |
8576 | { "_int","_EBool",0}, | |
8577 | { "_int","_uint",0}, | |
8578 | { "_int","_wxWindowID",0}, | |
8579 | { "_int","_unsigned_int",0}, | |
8580 | { "_int","_signed_int",0}, | |
c368d904 RD |
8581 | { "_time_t","_wxCoord",0}, |
8582 | { "_time_t","_wxPrintQuality",0}, | |
8583 | { "_time_t","_unsigned_int",0}, | |
8584 | { "_time_t","_int",0}, | |
8585 | { "_time_t","_wxWindowID",0}, | |
8586 | { "_time_t","_uint",0}, | |
8587 | { "_time_t","_size_t",0}, | |
f6bcfd97 BP |
8588 | { "_class_wxControl","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, |
8589 | { "_class_wxControl","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, | |
cd096152 RD |
8590 | { "_class_wxControl","_class_wxPyListCtrl",SwigwxPyListCtrlTowxControl}, |
8591 | { "_class_wxControl","_wxPyListCtrl",SwigwxPyListCtrlTowxControl}, | |
b1462dfa RD |
8592 | { "_wxCoord","_int",0}, |
8593 | { "_wxCoord","_signed_int",0}, | |
8594 | { "_wxCoord","_unsigned_int",0}, | |
8595 | { "_wxCoord","_wxWindowID",0}, | |
8596 | { "_wxCoord","_uint",0}, | |
8597 | { "_wxCoord","_EBool",0}, | |
8598 | { "_wxCoord","_size_t",0}, | |
c368d904 | 8599 | { "_wxCoord","_time_t",0}, |
b1462dfa | 8600 | { "_wxCoord","_wxPrintQuality",0}, |
1d99702e RD |
8601 | { "_class_wxCommandEvent","_class_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, |
8602 | { "_class_wxCommandEvent","_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, | |
8603 | { "_class_wxCommandEvent","_class_wxListEvent",SwigwxListEventTowxCommandEvent}, | |
8604 | { "_class_wxCommandEvent","_wxListEvent",SwigwxListEventTowxCommandEvent}, | |
f6bcfd97 BP |
8605 | { "_wxEvtHandler","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, |
8606 | { "_wxEvtHandler","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, | |
cd096152 RD |
8607 | { "_wxEvtHandler","_class_wxPyListCtrl",SwigwxPyListCtrlTowxEvtHandler}, |
8608 | { "_wxEvtHandler","_wxPyListCtrl",SwigwxPyListCtrlTowxEvtHandler}, | |
f6bcfd97 BP |
8609 | { "_wxWindow","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, |
8610 | { "_wxWindow","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, | |
cd096152 RD |
8611 | { "_wxWindow","_class_wxPyListCtrl",SwigwxPyListCtrlTowxWindow}, |
8612 | { "_wxWindow","_wxPyListCtrl",SwigwxPyListCtrlTowxWindow}, | |
1d99702e RD |
8613 | {0,0,0}}; |
8614 | ||
8ab979d7 RD |
8615 | static PyObject *SWIG_globals; |
8616 | #ifdef __cplusplus | |
8617 | extern "C" | |
8618 | #endif | |
1d99702e | 8619 | SWIGEXPORT(void) initcontrols2c() { |
8ab979d7 RD |
8620 | PyObject *m, *d; |
8621 | SWIG_globals = SWIG_newvarlink(); | |
8622 | m = Py_InitModule("controls2c", controls2cMethods); | |
8623 | d = PyModule_GetDict(m); | |
cd096152 RD |
8624 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
8625 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
8626 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
8627 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
8628 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
8629 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
8630 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_GET_INFO)); | |
8631 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_SET_INFO)); | |
8632 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
8633 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
8634 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_LIST_KEY_DOWN)); | |
8635 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
8636 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_CLICK)); | |
8637 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
8638 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
8639 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
8640 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_CACHE_HINT)); | |
8641 | PyDict_SetItemString(d,"wxLC_VRULES", PyInt_FromLong((long) wxLC_VRULES)); | |
8642 | PyDict_SetItemString(d,"wxLC_HRULES", PyInt_FromLong((long) wxLC_HRULES)); | |
8643 | PyDict_SetItemString(d,"wxLC_ICON", PyInt_FromLong((long) wxLC_ICON)); | |
8644 | PyDict_SetItemString(d,"wxLC_SMALL_ICON", PyInt_FromLong((long) wxLC_SMALL_ICON)); | |
8645 | PyDict_SetItemString(d,"wxLC_LIST", PyInt_FromLong((long) wxLC_LIST)); | |
8646 | PyDict_SetItemString(d,"wxLC_REPORT", PyInt_FromLong((long) wxLC_REPORT)); | |
8647 | PyDict_SetItemString(d,"wxLC_ALIGN_TOP", PyInt_FromLong((long) wxLC_ALIGN_TOP)); | |
8648 | PyDict_SetItemString(d,"wxLC_ALIGN_LEFT", PyInt_FromLong((long) wxLC_ALIGN_LEFT)); | |
8649 | PyDict_SetItemString(d,"wxLC_AUTOARRANGE", PyInt_FromLong((long) wxLC_AUTOARRANGE)); | |
8650 | PyDict_SetItemString(d,"wxLC_VIRTUAL", PyInt_FromLong((long) wxLC_VIRTUAL)); | |
8651 | PyDict_SetItemString(d,"wxLC_EDIT_LABELS", PyInt_FromLong((long) wxLC_EDIT_LABELS)); | |
8652 | PyDict_SetItemString(d,"wxLC_NO_HEADER", PyInt_FromLong((long) wxLC_NO_HEADER)); | |
8653 | PyDict_SetItemString(d,"wxLC_NO_SORT_HEADER", PyInt_FromLong((long) wxLC_NO_SORT_HEADER)); | |
8654 | PyDict_SetItemString(d,"wxLC_SINGLE_SEL", PyInt_FromLong((long) wxLC_SINGLE_SEL)); | |
8655 | PyDict_SetItemString(d,"wxLC_SORT_ASCENDING", PyInt_FromLong((long) wxLC_SORT_ASCENDING)); | |
8656 | PyDict_SetItemString(d,"wxLC_SORT_DESCENDING", PyInt_FromLong((long) wxLC_SORT_DESCENDING)); | |
8657 | PyDict_SetItemString(d,"wxLC_MASK_TYPE", PyInt_FromLong((long) wxLC_MASK_TYPE)); | |
8658 | PyDict_SetItemString(d,"wxLC_MASK_ALIGN", PyInt_FromLong((long) wxLC_MASK_ALIGN)); | |
8659 | PyDict_SetItemString(d,"wxLC_MASK_SORT", PyInt_FromLong((long) wxLC_MASK_SORT)); | |
8660 | PyDict_SetItemString(d,"wxLIST_MASK_STATE", PyInt_FromLong((long) wxLIST_MASK_STATE)); | |
af309447 RD |
8661 | PyDict_SetItemString(d,"wxLIST_MASK_TEXT", PyInt_FromLong((long) wxLIST_MASK_TEXT)); |
8662 | PyDict_SetItemString(d,"wxLIST_MASK_IMAGE", PyInt_FromLong((long) wxLIST_MASK_IMAGE)); | |
8663 | PyDict_SetItemString(d,"wxLIST_MASK_DATA", PyInt_FromLong((long) wxLIST_MASK_DATA)); | |
cd096152 | 8664 | PyDict_SetItemString(d,"wxLIST_SET_ITEM", PyInt_FromLong((long) wxLIST_SET_ITEM)); |
af309447 RD |
8665 | PyDict_SetItemString(d,"wxLIST_MASK_WIDTH", PyInt_FromLong((long) wxLIST_MASK_WIDTH)); |
8666 | PyDict_SetItemString(d,"wxLIST_MASK_FORMAT", PyInt_FromLong((long) wxLIST_MASK_FORMAT)); | |
8667 | PyDict_SetItemString(d,"wxLIST_STATE_DONTCARE", PyInt_FromLong((long) wxLIST_STATE_DONTCARE)); | |
8668 | PyDict_SetItemString(d,"wxLIST_STATE_DROPHILITED", PyInt_FromLong((long) wxLIST_STATE_DROPHILITED)); | |
8669 | PyDict_SetItemString(d,"wxLIST_STATE_FOCUSED", PyInt_FromLong((long) wxLIST_STATE_FOCUSED)); | |
8670 | PyDict_SetItemString(d,"wxLIST_STATE_SELECTED", PyInt_FromLong((long) wxLIST_STATE_SELECTED)); | |
8671 | PyDict_SetItemString(d,"wxLIST_STATE_CUT", PyInt_FromLong((long) wxLIST_STATE_CUT)); | |
8672 | PyDict_SetItemString(d,"wxLIST_HITTEST_ABOVE", PyInt_FromLong((long) wxLIST_HITTEST_ABOVE)); | |
8673 | PyDict_SetItemString(d,"wxLIST_HITTEST_BELOW", PyInt_FromLong((long) wxLIST_HITTEST_BELOW)); | |
8674 | PyDict_SetItemString(d,"wxLIST_HITTEST_NOWHERE", PyInt_FromLong((long) wxLIST_HITTEST_NOWHERE)); | |
8675 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMICON)); | |
8676 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMLABEL)); | |
8677 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMRIGHT)); | |
8678 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMSTATEICON)); | |
8679 | PyDict_SetItemString(d,"wxLIST_HITTEST_TOLEFT", PyInt_FromLong((long) wxLIST_HITTEST_TOLEFT)); | |
8680 | PyDict_SetItemString(d,"wxLIST_HITTEST_TORIGHT", PyInt_FromLong((long) wxLIST_HITTEST_TORIGHT)); | |
8681 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEM", PyInt_FromLong((long) wxLIST_HITTEST_ONITEM)); | |
8682 | PyDict_SetItemString(d,"wxLIST_NEXT_ABOVE", PyInt_FromLong((long) wxLIST_NEXT_ABOVE)); | |
8683 | PyDict_SetItemString(d,"wxLIST_NEXT_ALL", PyInt_FromLong((long) wxLIST_NEXT_ALL)); | |
8684 | PyDict_SetItemString(d,"wxLIST_NEXT_BELOW", PyInt_FromLong((long) wxLIST_NEXT_BELOW)); | |
8685 | PyDict_SetItemString(d,"wxLIST_NEXT_LEFT", PyInt_FromLong((long) wxLIST_NEXT_LEFT)); | |
8686 | PyDict_SetItemString(d,"wxLIST_NEXT_RIGHT", PyInt_FromLong((long) wxLIST_NEXT_RIGHT)); | |
8687 | PyDict_SetItemString(d,"wxLIST_ALIGN_DEFAULT", PyInt_FromLong((long) wxLIST_ALIGN_DEFAULT)); | |
8688 | PyDict_SetItemString(d,"wxLIST_ALIGN_LEFT", PyInt_FromLong((long) wxLIST_ALIGN_LEFT)); | |
8689 | PyDict_SetItemString(d,"wxLIST_ALIGN_TOP", PyInt_FromLong((long) wxLIST_ALIGN_TOP)); | |
8690 | PyDict_SetItemString(d,"wxLIST_ALIGN_SNAP_TO_GRID", PyInt_FromLong((long) wxLIST_ALIGN_SNAP_TO_GRID)); | |
af309447 RD |
8691 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE", PyInt_FromLong((long) wxLIST_AUTOSIZE)); |
8692 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE_USEHEADER", PyInt_FromLong((long) wxLIST_AUTOSIZE_USEHEADER)); | |
8693 | PyDict_SetItemString(d,"wxLIST_RECT_BOUNDS", PyInt_FromLong((long) wxLIST_RECT_BOUNDS)); | |
8694 | PyDict_SetItemString(d,"wxLIST_RECT_ICON", PyInt_FromLong((long) wxLIST_RECT_ICON)); | |
8695 | PyDict_SetItemString(d,"wxLIST_RECT_LABEL", PyInt_FromLong((long) wxLIST_RECT_LABEL)); | |
8696 | PyDict_SetItemString(d,"wxLIST_FIND_UP", PyInt_FromLong((long) wxLIST_FIND_UP)); | |
8697 | PyDict_SetItemString(d,"wxLIST_FIND_DOWN", PyInt_FromLong((long) wxLIST_FIND_DOWN)); | |
8698 | PyDict_SetItemString(d,"wxLIST_FIND_LEFT", PyInt_FromLong((long) wxLIST_FIND_LEFT)); | |
8699 | PyDict_SetItemString(d,"wxLIST_FIND_RIGHT", PyInt_FromLong((long) wxLIST_FIND_RIGHT)); | |
f6bcfd97 BP |
8700 | PyDict_SetItemString(d,"wxLIST_FORMAT_LEFT", PyInt_FromLong((long) wxLIST_FORMAT_LEFT)); |
8701 | PyDict_SetItemString(d,"wxLIST_FORMAT_RIGHT", PyInt_FromLong((long) wxLIST_FORMAT_RIGHT)); | |
8702 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTRE", PyInt_FromLong((long) wxLIST_FORMAT_CENTRE)); | |
8703 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTER", PyInt_FromLong((long) wxLIST_FORMAT_CENTER)); | |
694759cf RD |
8704 | PyDict_SetItemString(d,"wxTreeItemIcon_Normal", PyInt_FromLong((long) wxTreeItemIcon_Normal)); |
8705 | PyDict_SetItemString(d,"wxTreeItemIcon_Selected", PyInt_FromLong((long) wxTreeItemIcon_Selected)); | |
8706 | PyDict_SetItemString(d,"wxTreeItemIcon_Expanded", PyInt_FromLong((long) wxTreeItemIcon_Expanded)); | |
8707 | PyDict_SetItemString(d,"wxTreeItemIcon_SelectedExpanded", PyInt_FromLong((long) wxTreeItemIcon_SelectedExpanded)); | |
8708 | PyDict_SetItemString(d,"wxTreeItemIcon_Max", PyInt_FromLong((long) wxTreeItemIcon_Max)); | |
164b735b RD |
8709 | PyDict_SetItemString(d,"wxTREE_HITTEST_ABOVE", PyInt_FromLong((long) wxTREE_HITTEST_ABOVE)); |
8710 | PyDict_SetItemString(d,"wxTREE_HITTEST_BELOW", PyInt_FromLong((long) wxTREE_HITTEST_BELOW)); | |
8711 | PyDict_SetItemString(d,"wxTREE_HITTEST_NOWHERE", PyInt_FromLong((long) wxTREE_HITTEST_NOWHERE)); | |
8712 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMBUTTON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMBUTTON)); | |
8713 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMICON)); | |
8714 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMINDENT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMINDENT)); | |
8715 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLABEL)); | |
8716 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMRIGHT)); | |
8717 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMSTATEICON)); | |
8718 | PyDict_SetItemString(d,"wxTREE_HITTEST_TOLEFT", PyInt_FromLong((long) wxTREE_HITTEST_TOLEFT)); | |
8719 | PyDict_SetItemString(d,"wxTREE_HITTEST_TORIGHT", PyInt_FromLong((long) wxTREE_HITTEST_TORIGHT)); | |
8720 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMUPPERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMUPPERPART)); | |
8721 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLOWERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLOWERPART)); | |
8722 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEM", PyInt_FromLong((long) wxTREE_HITTEST_ONITEM)); | |
9c4165ad RD |
8723 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
8724 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
8725 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
8726 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
8727 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
8728 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_GET_INFO)); | |
8729 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SET_INFO)); | |
8730 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
8731 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
8732 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
8733 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
8734 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
8735 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
8736 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_TREE_KEY_DOWN)); | |
8737 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
8738 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
8739 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
7a446686 | 8740 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_DRAG)); |
9df61a29 RD |
8741 | |
8742 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
8743 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
1d99702e RD |
8744 | { |
8745 | int i; | |
8746 | for (i = 0; _swig_mapping[i].n1; i++) | |
8747 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
8748 | } | |
8ab979d7 | 8749 | } |