]>
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> | |
8ab979d7 RD |
64 | |
65 | static PyObject* l_output_helper(PyObject* target, PyObject* o) { | |
66 | PyObject* o2; | |
1c09ae54 | 67 | if (!target) { |
8ab979d7 | 68 | target = o; |
1c09ae54 | 69 | } else if (target == Py_None) { |
8ab979d7 RD |
70 | Py_DECREF(Py_None); |
71 | target = o; | |
1c09ae54 | 72 | } else { |
8ab979d7 RD |
73 | if (!PyList_Check(target)) { |
74 | o2 = target; | |
75 | target = PyList_New(0); | |
76 | PyList_Append(target, o2); | |
77 | Py_XDECREF(o2); | |
78 | } | |
79 | PyList_Append(target,o); | |
80 | Py_XDECREF(o); | |
81 | } | |
82 | return target; | |
83 | } | |
84 | ||
85 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
86 | PyObject* o2; | |
87 | PyObject* o3; | |
88 | ||
1c09ae54 | 89 | if (!target) { |
8ab979d7 | 90 | target = o; |
1c09ae54 | 91 | } else if (target == Py_None) { |
8ab979d7 RD |
92 | Py_DECREF(Py_None); |
93 | target = o; | |
1c09ae54 | 94 | } else { |
8ab979d7 RD |
95 | if (!PyTuple_Check(target)) { |
96 | o2 = target; | |
97 | target = PyTuple_New(1); | |
98 | PyTuple_SetItem(target, 0, o2); | |
99 | } | |
1c09ae54 RD |
100 | o3 = PyTuple_New(1); |
101 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
102 | |
103 | o2 = target; | |
1c09ae54 RD |
104 | target = PySequence_Concat(o2, o3); |
105 | Py_DECREF(o2); | |
8ab979d7 RD |
106 | Py_DECREF(o3); |
107 | } | |
108 | return target; | |
109 | } | |
110 | ||
8ab979d7 RD |
111 | static char* wxStringErrorMsg = "string type is required for parameter"; |
112 | ||
f6bcfd97 | 113 | int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { |
dcd38683 RD |
114 | int retval = 0; |
115 | PyObject* func = (PyObject*)funcPtr; | |
116 | bool doSave = wxPyRestoreThread(); | |
117 | ||
118 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
119 | PyObject* result = PyEval_CallObject(func, args); | |
120 | Py_DECREF(args); | |
121 | if (result) { | |
122 | retval = PyInt_AsLong(result); | |
123 | Py_DECREF(result); | |
124 | } | |
125 | ||
126 | wxPySaveThread(doSave); | |
127 | return retval; | |
128 | } | |
129 | ||
130 | ||
cf694132 RD |
131 | class wxPyTreeItemData : public wxTreeItemData { |
132 | public: | |
133 | wxPyTreeItemData(PyObject* obj = NULL) { | |
c368d904 | 134 | if (obj == NULL) |
cf694132 | 135 | obj = Py_None; |
c368d904 RD |
136 | Py_INCREF(obj); |
137 | m_obj = obj; | |
cf694132 RD |
138 | } |
139 | ||
140 | ~wxPyTreeItemData() { | |
1afc06c2 | 141 | bool doSave = wxPyRestoreThread(); |
c368d904 | 142 | Py_DECREF(m_obj); |
1afc06c2 | 143 | wxPySaveThread(doSave); |
cf694132 RD |
144 | } |
145 | ||
146 | PyObject* GetData() { | |
147 | Py_INCREF(m_obj); | |
148 | return m_obj; | |
149 | } | |
150 | ||
151 | void SetData(PyObject* obj) { | |
c368d904 | 152 | bool doSave = wxPyRestoreThread(); |
cf694132 | 153 | Py_DECREF(m_obj); |
c368d904 | 154 | wxPySaveThread(doSave); |
cf694132 RD |
155 | m_obj = obj; |
156 | Py_INCREF(obj); | |
157 | } | |
158 | ||
159 | PyObject* m_obj; | |
160 | }; | |
f6bcfd97 BP |
161 | |
162 | class wxPyTreeCtrl : public wxTreeCtrl { | |
163 | public: | |
164 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
165 | const wxPoint& pos, | |
166 | const wxSize& size, | |
167 | long style, | |
168 | const wxValidator& validator, | |
169 | char* name) : | |
170 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
171 | ||
172 | ||
173 | int OnCompareItems(const wxTreeItemId& item1, | |
174 | const wxTreeItemId& item2) { | |
175 | int rval = 0; | |
176 | bool doSave = wxPyRestoreThread(); | |
177 | if (m_myInst.findCallback("OnCompareItems")) | |
178 | rval = m_myInst.callCallback(Py_BuildValue( | |
179 | "(OO)", | |
180 | wxPyConstructObject((void*)&item1, "wxTreeItemId"), | |
181 | wxPyConstructObject((void*)&item2, "wxTreeItemId"))); | |
182 | else | |
183 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
184 | wxPySaveThread(doSave); | |
185 | return rval; | |
186 | } | |
187 | PYPRIVATE; | |
188 | }; | |
189 | ||
1d99702e RD |
190 | #ifdef __cplusplus |
191 | extern "C" { | |
192 | #endif | |
f6bcfd97 BP |
193 | #define new_wxListItemAttr() (new wxListItemAttr()) |
194 | static PyObject *_wrap_new_wxListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
195 | PyObject * _resultobj; | |
196 | wxListItemAttr * _result; | |
197 | char *_kwnames[] = { NULL }; | |
198 | char _ptemp[128]; | |
199 | ||
200 | self = self; | |
201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxListItemAttr",_kwnames)) | |
202 | return NULL; | |
203 | { | |
204 | wxPy_BEGIN_ALLOW_THREADS; | |
205 | _result = (wxListItemAttr *)new_wxListItemAttr(); | |
206 | ||
207 | wxPy_END_ALLOW_THREADS; | |
208 | } if (_result) { | |
209 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
210 | _resultobj = Py_BuildValue("s",_ptemp); | |
211 | } else { | |
212 | Py_INCREF(Py_None); | |
213 | _resultobj = Py_None; | |
214 | } | |
215 | return _resultobj; | |
216 | } | |
217 | ||
218 | #define wxListItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
219 | static PyObject *_wrap_wxListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
220 | PyObject * _resultobj; | |
221 | wxListItemAttr * _arg0; | |
222 | wxColour * _arg1; | |
223 | PyObject * _argo0 = 0; | |
224 | wxColour temp; | |
225 | PyObject * _obj1 = 0; | |
226 | char *_kwnames[] = { "self","colText", NULL }; | |
227 | ||
228 | self = self; | |
229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
230 | return NULL; | |
231 | if (_argo0) { | |
232 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
233 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
234 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetTextColour. Expected _wxListItemAttr_p."); | |
235 | return NULL; | |
236 | } | |
237 | } | |
238 | { | |
239 | _arg1 = &temp; | |
240 | if (! wxColour_helper(_obj1, &_arg1)) | |
241 | return NULL; | |
242 | } | |
243 | { | |
244 | wxPy_BEGIN_ALLOW_THREADS; | |
245 | wxListItemAttr_SetTextColour(_arg0,*_arg1); | |
246 | ||
247 | wxPy_END_ALLOW_THREADS; | |
248 | } Py_INCREF(Py_None); | |
249 | _resultobj = Py_None; | |
250 | return _resultobj; | |
251 | } | |
252 | ||
253 | #define wxListItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
254 | static PyObject *_wrap_wxListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
255 | PyObject * _resultobj; | |
256 | wxListItemAttr * _arg0; | |
257 | wxColour * _arg1; | |
258 | PyObject * _argo0 = 0; | |
259 | wxColour temp; | |
260 | PyObject * _obj1 = 0; | |
261 | char *_kwnames[] = { "self","colBack", NULL }; | |
262 | ||
263 | self = self; | |
264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
265 | return NULL; | |
266 | if (_argo0) { | |
267 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
268 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
269 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetBackgroundColour. Expected _wxListItemAttr_p."); | |
270 | return NULL; | |
271 | } | |
272 | } | |
273 | { | |
274 | _arg1 = &temp; | |
275 | if (! wxColour_helper(_obj1, &_arg1)) | |
276 | return NULL; | |
277 | } | |
278 | { | |
279 | wxPy_BEGIN_ALLOW_THREADS; | |
280 | wxListItemAttr_SetBackgroundColour(_arg0,*_arg1); | |
281 | ||
282 | wxPy_END_ALLOW_THREADS; | |
283 | } Py_INCREF(Py_None); | |
284 | _resultobj = Py_None; | |
285 | return _resultobj; | |
286 | } | |
287 | ||
288 | #define wxListItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
289 | static PyObject *_wrap_wxListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
290 | PyObject * _resultobj; | |
291 | wxListItemAttr * _arg0; | |
292 | wxFont * _arg1; | |
293 | PyObject * _argo0 = 0; | |
294 | PyObject * _argo1 = 0; | |
295 | char *_kwnames[] = { "self","font", NULL }; | |
296 | ||
297 | self = self; | |
298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetFont",_kwnames,&_argo0,&_argo1)) | |
299 | return NULL; | |
300 | if (_argo0) { | |
301 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
302 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
303 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetFont. Expected _wxListItemAttr_p."); | |
304 | return NULL; | |
305 | } | |
306 | } | |
307 | if (_argo1) { | |
308 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
309 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItemAttr_SetFont. Expected _wxFont_p."); | |
311 | return NULL; | |
312 | } | |
313 | } | |
314 | { | |
315 | wxPy_BEGIN_ALLOW_THREADS; | |
316 | wxListItemAttr_SetFont(_arg0,*_arg1); | |
317 | ||
318 | wxPy_END_ALLOW_THREADS; | |
319 | } Py_INCREF(Py_None); | |
320 | _resultobj = Py_None; | |
321 | return _resultobj; | |
322 | } | |
323 | ||
324 | #define wxListItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) | |
325 | static PyObject *_wrap_wxListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
326 | PyObject * _resultobj; | |
327 | bool _result; | |
328 | wxListItemAttr * _arg0; | |
329 | PyObject * _argo0 = 0; | |
330 | char *_kwnames[] = { "self", NULL }; | |
331 | ||
332 | self = self; | |
333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasTextColour",_kwnames,&_argo0)) | |
334 | return NULL; | |
335 | if (_argo0) { | |
336 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
337 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
338 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasTextColour. Expected _wxListItemAttr_p."); | |
339 | return NULL; | |
340 | } | |
341 | } | |
342 | { | |
343 | wxPy_BEGIN_ALLOW_THREADS; | |
344 | _result = (bool )wxListItemAttr_HasTextColour(_arg0); | |
345 | ||
346 | wxPy_END_ALLOW_THREADS; | |
347 | } _resultobj = Py_BuildValue("i",_result); | |
348 | return _resultobj; | |
349 | } | |
350 | ||
351 | #define wxListItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) | |
352 | static PyObject *_wrap_wxListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
353 | PyObject * _resultobj; | |
354 | bool _result; | |
355 | wxListItemAttr * _arg0; | |
356 | PyObject * _argo0 = 0; | |
357 | char *_kwnames[] = { "self", NULL }; | |
358 | ||
359 | self = self; | |
360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasBackgroundColour",_kwnames,&_argo0)) | |
361 | return NULL; | |
362 | if (_argo0) { | |
363 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
364 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
365 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasBackgroundColour. Expected _wxListItemAttr_p."); | |
366 | return NULL; | |
367 | } | |
368 | } | |
369 | { | |
370 | wxPy_BEGIN_ALLOW_THREADS; | |
371 | _result = (bool )wxListItemAttr_HasBackgroundColour(_arg0); | |
372 | ||
373 | wxPy_END_ALLOW_THREADS; | |
374 | } _resultobj = Py_BuildValue("i",_result); | |
375 | return _resultobj; | |
376 | } | |
377 | ||
378 | #define wxListItemAttr_HasFont(_swigobj) (_swigobj->HasFont()) | |
379 | static PyObject *_wrap_wxListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
380 | PyObject * _resultobj; | |
381 | bool _result; | |
382 | wxListItemAttr * _arg0; | |
383 | PyObject * _argo0 = 0; | |
384 | char *_kwnames[] = { "self", NULL }; | |
385 | ||
386 | self = self; | |
387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasFont",_kwnames,&_argo0)) | |
388 | return NULL; | |
389 | if (_argo0) { | |
390 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
391 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
392 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasFont. Expected _wxListItemAttr_p."); | |
393 | return NULL; | |
394 | } | |
395 | } | |
396 | { | |
397 | wxPy_BEGIN_ALLOW_THREADS; | |
398 | _result = (bool )wxListItemAttr_HasFont(_arg0); | |
399 | ||
400 | wxPy_END_ALLOW_THREADS; | |
401 | } _resultobj = Py_BuildValue("i",_result); | |
402 | return _resultobj; | |
403 | } | |
404 | ||
405 | #define wxListItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
406 | static PyObject *_wrap_wxListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
407 | PyObject * _resultobj; | |
408 | wxColour * _result; | |
409 | wxListItemAttr * _arg0; | |
410 | PyObject * _argo0 = 0; | |
411 | char *_kwnames[] = { "self", NULL }; | |
412 | char _ptemp[128]; | |
413 | ||
414 | self = self; | |
415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetTextColour",_kwnames,&_argo0)) | |
416 | return NULL; | |
417 | if (_argo0) { | |
418 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
419 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
420 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetTextColour. Expected _wxListItemAttr_p."); | |
421 | return NULL; | |
422 | } | |
423 | } | |
424 | { | |
425 | wxPy_BEGIN_ALLOW_THREADS; | |
426 | const wxColour & _result_ref = wxListItemAttr_GetTextColour(_arg0); | |
427 | _result = (wxColour *) &_result_ref; | |
428 | ||
429 | wxPy_END_ALLOW_THREADS; | |
430 | } if (_result) { | |
431 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
432 | _resultobj = Py_BuildValue("s",_ptemp); | |
433 | } else { | |
434 | Py_INCREF(Py_None); | |
435 | _resultobj = Py_None; | |
436 | } | |
437 | return _resultobj; | |
438 | } | |
439 | ||
440 | #define wxListItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
441 | static PyObject *_wrap_wxListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
442 | PyObject * _resultobj; | |
443 | wxColour * _result; | |
444 | wxListItemAttr * _arg0; | |
445 | PyObject * _argo0 = 0; | |
446 | char *_kwnames[] = { "self", NULL }; | |
447 | char _ptemp[128]; | |
448 | ||
449 | self = self; | |
450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetBackgroundColour",_kwnames,&_argo0)) | |
451 | return NULL; | |
452 | if (_argo0) { | |
453 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
454 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
455 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetBackgroundColour. Expected _wxListItemAttr_p."); | |
456 | return NULL; | |
457 | } | |
458 | } | |
459 | { | |
460 | wxPy_BEGIN_ALLOW_THREADS; | |
461 | const wxColour & _result_ref = wxListItemAttr_GetBackgroundColour(_arg0); | |
462 | _result = (wxColour *) &_result_ref; | |
463 | ||
464 | wxPy_END_ALLOW_THREADS; | |
465 | } if (_result) { | |
466 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
467 | _resultobj = Py_BuildValue("s",_ptemp); | |
468 | } else { | |
469 | Py_INCREF(Py_None); | |
470 | _resultobj = Py_None; | |
471 | } | |
472 | return _resultobj; | |
473 | } | |
474 | ||
475 | #define wxListItemAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
476 | static PyObject *_wrap_wxListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
477 | PyObject * _resultobj; | |
478 | wxFont * _result; | |
479 | wxListItemAttr * _arg0; | |
480 | PyObject * _argo0 = 0; | |
481 | char *_kwnames[] = { "self", NULL }; | |
482 | char _ptemp[128]; | |
483 | ||
484 | self = self; | |
485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetFont",_kwnames,&_argo0)) | |
486 | return NULL; | |
487 | if (_argo0) { | |
488 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
489 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
490 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetFont. Expected _wxListItemAttr_p."); | |
491 | return NULL; | |
492 | } | |
493 | } | |
494 | { | |
495 | wxPy_BEGIN_ALLOW_THREADS; | |
496 | const wxFont & _result_ref = wxListItemAttr_GetFont(_arg0); | |
497 | _result = (wxFont *) &_result_ref; | |
498 | ||
499 | wxPy_END_ALLOW_THREADS; | |
500 | } if (_result) { | |
501 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
502 | _resultobj = Py_BuildValue("s",_ptemp); | |
503 | } else { | |
504 | Py_INCREF(Py_None); | |
505 | _resultobj = Py_None; | |
506 | } | |
507 | return _resultobj; | |
508 | } | |
509 | ||
510 | #define new_wxListItem() (new wxListItem()) | |
511 | static PyObject *_wrap_new_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
512 | PyObject * _resultobj; | |
513 | wxListItem * _result; | |
514 | char *_kwnames[] = { NULL }; | |
515 | char _ptemp[128]; | |
516 | ||
517 | self = self; | |
518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxListItem",_kwnames)) | |
519 | return NULL; | |
520 | { | |
521 | wxPy_BEGIN_ALLOW_THREADS; | |
522 | _result = (wxListItem *)new_wxListItem(); | |
523 | ||
524 | wxPy_END_ALLOW_THREADS; | |
525 | } if (_result) { | |
526 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p"); | |
527 | _resultobj = Py_BuildValue("s",_ptemp); | |
528 | } else { | |
529 | Py_INCREF(Py_None); | |
530 | _resultobj = Py_None; | |
531 | } | |
532 | return _resultobj; | |
533 | } | |
534 | ||
535 | #define delete_wxListItem(_swigobj) (delete _swigobj) | |
536 | static PyObject *_wrap_delete_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
537 | PyObject * _resultobj; | |
538 | wxListItem * _arg0; | |
539 | PyObject * _argo0 = 0; | |
540 | char *_kwnames[] = { "self", NULL }; | |
541 | ||
542 | self = self; | |
543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxListItem",_kwnames,&_argo0)) | |
544 | return NULL; | |
545 | if (_argo0) { | |
546 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
547 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
548 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxListItem. Expected _wxListItem_p."); | |
549 | return NULL; | |
550 | } | |
551 | } | |
552 | { | |
553 | wxPy_BEGIN_ALLOW_THREADS; | |
554 | delete_wxListItem(_arg0); | |
555 | ||
556 | wxPy_END_ALLOW_THREADS; | |
557 | } Py_INCREF(Py_None); | |
558 | _resultobj = Py_None; | |
559 | return _resultobj; | |
560 | } | |
561 | ||
562 | #define wxListItem_Clear(_swigobj) (_swigobj->Clear()) | |
563 | static PyObject *_wrap_wxListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
564 | PyObject * _resultobj; | |
565 | wxListItem * _arg0; | |
566 | PyObject * _argo0 = 0; | |
567 | char *_kwnames[] = { "self", NULL }; | |
568 | ||
569 | self = self; | |
570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_Clear",_kwnames,&_argo0)) | |
571 | return NULL; | |
572 | if (_argo0) { | |
573 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
574 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
575 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_Clear. Expected _wxListItem_p."); | |
576 | return NULL; | |
577 | } | |
578 | } | |
579 | { | |
580 | wxPy_BEGIN_ALLOW_THREADS; | |
581 | wxListItem_Clear(_arg0); | |
582 | ||
583 | wxPy_END_ALLOW_THREADS; | |
584 | } Py_INCREF(Py_None); | |
585 | _resultobj = Py_None; | |
586 | return _resultobj; | |
587 | } | |
588 | ||
589 | #define wxListItem_ClearAttributes(_swigobj) (_swigobj->ClearAttributes()) | |
590 | static PyObject *_wrap_wxListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
591 | PyObject * _resultobj; | |
592 | wxListItem * _arg0; | |
593 | PyObject * _argo0 = 0; | |
594 | char *_kwnames[] = { "self", NULL }; | |
595 | ||
596 | self = self; | |
597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_ClearAttributes",_kwnames,&_argo0)) | |
598 | return NULL; | |
599 | if (_argo0) { | |
600 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
601 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
602 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_ClearAttributes. Expected _wxListItem_p."); | |
603 | return NULL; | |
604 | } | |
605 | } | |
606 | { | |
607 | wxPy_BEGIN_ALLOW_THREADS; | |
608 | wxListItem_ClearAttributes(_arg0); | |
609 | ||
610 | wxPy_END_ALLOW_THREADS; | |
611 | } Py_INCREF(Py_None); | |
612 | _resultobj = Py_None; | |
613 | return _resultobj; | |
614 | } | |
615 | ||
616 | #define wxListItem_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) | |
617 | static PyObject *_wrap_wxListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
618 | PyObject * _resultobj; | |
619 | wxListItem * _arg0; | |
620 | long _arg1; | |
621 | PyObject * _argo0 = 0; | |
622 | char *_kwnames[] = { "self","mask", NULL }; | |
623 | ||
624 | self = self; | |
625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetMask",_kwnames,&_argo0,&_arg1)) | |
626 | return NULL; | |
627 | if (_argo0) { | |
628 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
629 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
630 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetMask. Expected _wxListItem_p."); | |
631 | return NULL; | |
632 | } | |
633 | } | |
634 | { | |
635 | wxPy_BEGIN_ALLOW_THREADS; | |
636 | wxListItem_SetMask(_arg0,_arg1); | |
637 | ||
638 | wxPy_END_ALLOW_THREADS; | |
639 | } Py_INCREF(Py_None); | |
640 | _resultobj = Py_None; | |
641 | return _resultobj; | |
642 | } | |
643 | ||
644 | #define wxListItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
645 | static PyObject *_wrap_wxListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
646 | PyObject * _resultobj; | |
647 | wxListItem * _arg0; | |
648 | long _arg1; | |
649 | PyObject * _argo0 = 0; | |
650 | char *_kwnames[] = { "self","id", NULL }; | |
651 | ||
652 | self = self; | |
653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetId",_kwnames,&_argo0,&_arg1)) | |
654 | return NULL; | |
655 | if (_argo0) { | |
656 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
657 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
658 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetId. Expected _wxListItem_p."); | |
659 | return NULL; | |
660 | } | |
661 | } | |
662 | { | |
663 | wxPy_BEGIN_ALLOW_THREADS; | |
664 | wxListItem_SetId(_arg0,_arg1); | |
665 | ||
666 | wxPy_END_ALLOW_THREADS; | |
667 | } Py_INCREF(Py_None); | |
668 | _resultobj = Py_None; | |
669 | return _resultobj; | |
670 | } | |
671 | ||
672 | #define wxListItem_SetColumn(_swigobj,_swigarg0) (_swigobj->SetColumn(_swigarg0)) | |
673 | static PyObject *_wrap_wxListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
674 | PyObject * _resultobj; | |
675 | wxListItem * _arg0; | |
676 | int _arg1; | |
677 | PyObject * _argo0 = 0; | |
678 | char *_kwnames[] = { "self","col", NULL }; | |
679 | ||
680 | self = self; | |
681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetColumn",_kwnames,&_argo0,&_arg1)) | |
682 | return NULL; | |
683 | if (_argo0) { | |
684 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
685 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
686 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetColumn. Expected _wxListItem_p."); | |
687 | return NULL; | |
688 | } | |
689 | } | |
690 | { | |
691 | wxPy_BEGIN_ALLOW_THREADS; | |
692 | wxListItem_SetColumn(_arg0,_arg1); | |
693 | ||
694 | wxPy_END_ALLOW_THREADS; | |
695 | } Py_INCREF(Py_None); | |
696 | _resultobj = Py_None; | |
697 | return _resultobj; | |
698 | } | |
699 | ||
700 | #define wxListItem_SetState(_swigobj,_swigarg0) (_swigobj->SetState(_swigarg0)) | |
701 | static PyObject *_wrap_wxListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
702 | PyObject * _resultobj; | |
703 | wxListItem * _arg0; | |
704 | long _arg1; | |
705 | PyObject * _argo0 = 0; | |
706 | char *_kwnames[] = { "self","state", NULL }; | |
707 | ||
708 | self = self; | |
709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetState",_kwnames,&_argo0,&_arg1)) | |
710 | return NULL; | |
711 | if (_argo0) { | |
712 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
713 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
714 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetState. Expected _wxListItem_p."); | |
715 | return NULL; | |
716 | } | |
717 | } | |
718 | { | |
719 | wxPy_BEGIN_ALLOW_THREADS; | |
720 | wxListItem_SetState(_arg0,_arg1); | |
721 | ||
722 | wxPy_END_ALLOW_THREADS; | |
723 | } Py_INCREF(Py_None); | |
724 | _resultobj = Py_None; | |
725 | return _resultobj; | |
726 | } | |
727 | ||
728 | #define wxListItem_SetStateMask(_swigobj,_swigarg0) (_swigobj->SetStateMask(_swigarg0)) | |
729 | static PyObject *_wrap_wxListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
730 | PyObject * _resultobj; | |
731 | wxListItem * _arg0; | |
732 | long _arg1; | |
733 | PyObject * _argo0 = 0; | |
734 | char *_kwnames[] = { "self","stateMask", NULL }; | |
735 | ||
736 | self = self; | |
737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetStateMask",_kwnames,&_argo0,&_arg1)) | |
738 | return NULL; | |
739 | if (_argo0) { | |
740 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
741 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetStateMask. Expected _wxListItem_p."); | |
743 | return NULL; | |
744 | } | |
745 | } | |
746 | { | |
747 | wxPy_BEGIN_ALLOW_THREADS; | |
748 | wxListItem_SetStateMask(_arg0,_arg1); | |
749 | ||
750 | wxPy_END_ALLOW_THREADS; | |
751 | } Py_INCREF(Py_None); | |
752 | _resultobj = Py_None; | |
753 | return _resultobj; | |
754 | } | |
755 | ||
756 | #define wxListItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) | |
757 | static PyObject *_wrap_wxListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
758 | PyObject * _resultobj; | |
759 | wxListItem * _arg0; | |
760 | wxString * _arg1; | |
761 | PyObject * _argo0 = 0; | |
762 | PyObject * _obj1 = 0; | |
763 | char *_kwnames[] = { "self","text", NULL }; | |
764 | ||
765 | self = self; | |
766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetText",_kwnames,&_argo0,&_obj1)) | |
767 | return NULL; | |
768 | if (_argo0) { | |
769 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
770 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetText. Expected _wxListItem_p."); | |
772 | return NULL; | |
773 | } | |
774 | } | |
775 | { | |
2cd2fac8 RD |
776 | #if PYTHON_API_VERSION >= 1009 |
777 | char* tmpPtr; int tmpSize; | |
778 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
779 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
780 | return NULL; | |
781 | } | |
782 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
783 | return NULL; | |
784 | _arg1 = new wxString(tmpPtr, tmpSize); | |
785 | #else | |
f6bcfd97 BP |
786 | if (!PyString_Check(_obj1)) { |
787 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
788 | return NULL; | |
789 | } | |
2cd2fac8 RD |
790 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
791 | #endif | |
f6bcfd97 BP |
792 | } |
793 | { | |
794 | wxPy_BEGIN_ALLOW_THREADS; | |
795 | wxListItem_SetText(_arg0,*_arg1); | |
796 | ||
797 | wxPy_END_ALLOW_THREADS; | |
798 | } Py_INCREF(Py_None); | |
799 | _resultobj = Py_None; | |
800 | { | |
801 | if (_obj1) | |
802 | delete _arg1; | |
803 | } | |
804 | return _resultobj; | |
805 | } | |
806 | ||
807 | #define wxListItem_SetImage(_swigobj,_swigarg0) (_swigobj->SetImage(_swigarg0)) | |
808 | static PyObject *_wrap_wxListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
809 | PyObject * _resultobj; | |
810 | wxListItem * _arg0; | |
811 | int _arg1; | |
812 | PyObject * _argo0 = 0; | |
813 | char *_kwnames[] = { "self","image", NULL }; | |
814 | ||
815 | self = self; | |
816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetImage",_kwnames,&_argo0,&_arg1)) | |
817 | return NULL; | |
818 | if (_argo0) { | |
819 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
820 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
821 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetImage. Expected _wxListItem_p."); | |
822 | return NULL; | |
823 | } | |
824 | } | |
825 | { | |
826 | wxPy_BEGIN_ALLOW_THREADS; | |
827 | wxListItem_SetImage(_arg0,_arg1); | |
828 | ||
829 | wxPy_END_ALLOW_THREADS; | |
830 | } Py_INCREF(Py_None); | |
831 | _resultobj = Py_None; | |
832 | return _resultobj; | |
833 | } | |
834 | ||
835 | #define wxListItem_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
836 | static PyObject *_wrap_wxListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
837 | PyObject * _resultobj; | |
838 | wxListItem * _arg0; | |
839 | long _arg1; | |
840 | PyObject * _argo0 = 0; | |
841 | char *_kwnames[] = { "self","data", NULL }; | |
842 | ||
843 | self = self; | |
844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetData",_kwnames,&_argo0,&_arg1)) | |
845 | return NULL; | |
846 | if (_argo0) { | |
847 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
848 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
849 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetData. Expected _wxListItem_p."); | |
850 | return NULL; | |
851 | } | |
852 | } | |
853 | { | |
854 | wxPy_BEGIN_ALLOW_THREADS; | |
855 | wxListItem_SetData(_arg0,_arg1); | |
856 | ||
857 | wxPy_END_ALLOW_THREADS; | |
858 | } Py_INCREF(Py_None); | |
859 | _resultobj = Py_None; | |
860 | return _resultobj; | |
861 | } | |
862 | ||
863 | #define wxListItem_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
864 | static PyObject *_wrap_wxListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
865 | PyObject * _resultobj; | |
866 | wxListItem * _arg0; | |
867 | int _arg1; | |
868 | PyObject * _argo0 = 0; | |
869 | char *_kwnames[] = { "self","width", NULL }; | |
870 | ||
871 | self = self; | |
872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetWidth",_kwnames,&_argo0,&_arg1)) | |
873 | return NULL; | |
874 | if (_argo0) { | |
875 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
876 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
877 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetWidth. Expected _wxListItem_p."); | |
878 | return NULL; | |
879 | } | |
880 | } | |
881 | { | |
882 | wxPy_BEGIN_ALLOW_THREADS; | |
883 | wxListItem_SetWidth(_arg0,_arg1); | |
884 | ||
885 | wxPy_END_ALLOW_THREADS; | |
886 | } Py_INCREF(Py_None); | |
887 | _resultobj = Py_None; | |
888 | return _resultobj; | |
889 | } | |
890 | ||
891 | #define wxListItem_SetAlign(_swigobj,_swigarg0) (_swigobj->SetAlign(_swigarg0)) | |
892 | static PyObject *_wrap_wxListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
893 | PyObject * _resultobj; | |
894 | wxListItem * _arg0; | |
895 | wxListColumnFormat _arg1; | |
896 | PyObject * _argo0 = 0; | |
897 | char *_kwnames[] = { "self","align", NULL }; | |
898 | ||
899 | self = self; | |
900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetAlign",_kwnames,&_argo0,&_arg1)) | |
901 | return NULL; | |
902 | if (_argo0) { | |
903 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
904 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
905 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetAlign. Expected _wxListItem_p."); | |
906 | return NULL; | |
907 | } | |
908 | } | |
909 | { | |
910 | wxPy_BEGIN_ALLOW_THREADS; | |
911 | wxListItem_SetAlign(_arg0,_arg1); | |
912 | ||
913 | wxPy_END_ALLOW_THREADS; | |
914 | } Py_INCREF(Py_None); | |
915 | _resultobj = Py_None; | |
916 | return _resultobj; | |
917 | } | |
918 | ||
919 | #define wxListItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
920 | static PyObject *_wrap_wxListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
921 | PyObject * _resultobj; | |
922 | wxListItem * _arg0; | |
923 | wxColour * _arg1; | |
924 | PyObject * _argo0 = 0; | |
925 | wxColour temp; | |
926 | PyObject * _obj1 = 0; | |
927 | char *_kwnames[] = { "self","colText", NULL }; | |
928 | ||
929 | self = self; | |
930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
931 | return NULL; | |
932 | if (_argo0) { | |
933 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
934 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
935 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetTextColour. Expected _wxListItem_p."); | |
936 | return NULL; | |
937 | } | |
938 | } | |
939 | { | |
940 | _arg1 = &temp; | |
941 | if (! wxColour_helper(_obj1, &_arg1)) | |
942 | return NULL; | |
943 | } | |
944 | { | |
945 | wxPy_BEGIN_ALLOW_THREADS; | |
946 | wxListItem_SetTextColour(_arg0,*_arg1); | |
947 | ||
948 | wxPy_END_ALLOW_THREADS; | |
949 | } Py_INCREF(Py_None); | |
950 | _resultobj = Py_None; | |
951 | return _resultobj; | |
952 | } | |
953 | ||
954 | #define wxListItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
955 | static PyObject *_wrap_wxListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
956 | PyObject * _resultobj; | |
957 | wxListItem * _arg0; | |
958 | wxColour * _arg1; | |
959 | PyObject * _argo0 = 0; | |
960 | wxColour temp; | |
961 | PyObject * _obj1 = 0; | |
962 | char *_kwnames[] = { "self","colBack", NULL }; | |
963 | ||
964 | self = self; | |
965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
966 | return NULL; | |
967 | if (_argo0) { | |
968 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
969 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
970 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetBackgroundColour. Expected _wxListItem_p."); | |
971 | return NULL; | |
972 | } | |
973 | } | |
974 | { | |
975 | _arg1 = &temp; | |
976 | if (! wxColour_helper(_obj1, &_arg1)) | |
977 | return NULL; | |
978 | } | |
979 | { | |
980 | wxPy_BEGIN_ALLOW_THREADS; | |
981 | wxListItem_SetBackgroundColour(_arg0,*_arg1); | |
982 | ||
983 | wxPy_END_ALLOW_THREADS; | |
984 | } Py_INCREF(Py_None); | |
985 | _resultobj = Py_None; | |
986 | return _resultobj; | |
987 | } | |
988 | ||
989 | #define wxListItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
990 | static PyObject *_wrap_wxListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
991 | PyObject * _resultobj; | |
992 | wxListItem * _arg0; | |
993 | wxFont * _arg1; | |
994 | PyObject * _argo0 = 0; | |
995 | PyObject * _argo1 = 0; | |
996 | char *_kwnames[] = { "self","font", NULL }; | |
997 | ||
998 | self = self; | |
999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetFont",_kwnames,&_argo0,&_argo1)) | |
1000 | return NULL; | |
1001 | if (_argo0) { | |
1002 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1003 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1004 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetFont. Expected _wxListItem_p."); | |
1005 | return NULL; | |
1006 | } | |
1007 | } | |
1008 | if (_argo1) { | |
1009 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1010 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
1011 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItem_SetFont. Expected _wxFont_p."); | |
1012 | return NULL; | |
1013 | } | |
1014 | } | |
1015 | { | |
1016 | wxPy_BEGIN_ALLOW_THREADS; | |
1017 | wxListItem_SetFont(_arg0,*_arg1); | |
1018 | ||
1019 | wxPy_END_ALLOW_THREADS; | |
1020 | } Py_INCREF(Py_None); | |
1021 | _resultobj = Py_None; | |
1022 | return _resultobj; | |
1023 | } | |
1024 | ||
1025 | #define wxListItem_GetMask(_swigobj) (_swigobj->GetMask()) | |
1026 | static PyObject *_wrap_wxListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1027 | PyObject * _resultobj; | |
1028 | long _result; | |
1029 | wxListItem * _arg0; | |
1030 | PyObject * _argo0 = 0; | |
1031 | char *_kwnames[] = { "self", NULL }; | |
1032 | ||
1033 | self = self; | |
1034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetMask",_kwnames,&_argo0)) | |
1035 | return NULL; | |
1036 | if (_argo0) { | |
1037 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1038 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1039 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetMask. Expected _wxListItem_p."); | |
1040 | return NULL; | |
1041 | } | |
1042 | } | |
1043 | { | |
1044 | wxPy_BEGIN_ALLOW_THREADS; | |
1045 | _result = (long )wxListItem_GetMask(_arg0); | |
1046 | ||
1047 | wxPy_END_ALLOW_THREADS; | |
1048 | } _resultobj = Py_BuildValue("l",_result); | |
1049 | return _resultobj; | |
1050 | } | |
1051 | ||
1052 | #define wxListItem_GetId(_swigobj) (_swigobj->GetId()) | |
1053 | static PyObject *_wrap_wxListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1054 | PyObject * _resultobj; | |
1055 | long _result; | |
1056 | wxListItem * _arg0; | |
1057 | PyObject * _argo0 = 0; | |
1058 | char *_kwnames[] = { "self", NULL }; | |
1059 | ||
1060 | self = self; | |
1061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetId",_kwnames,&_argo0)) | |
1062 | return NULL; | |
1063 | if (_argo0) { | |
1064 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1065 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1066 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetId. Expected _wxListItem_p."); | |
1067 | return NULL; | |
1068 | } | |
1069 | } | |
1070 | { | |
1071 | wxPy_BEGIN_ALLOW_THREADS; | |
1072 | _result = (long )wxListItem_GetId(_arg0); | |
1073 | ||
1074 | wxPy_END_ALLOW_THREADS; | |
1075 | } _resultobj = Py_BuildValue("l",_result); | |
1076 | return _resultobj; | |
1077 | } | |
1078 | ||
1079 | #define wxListItem_GetColumn(_swigobj) (_swigobj->GetColumn()) | |
1080 | static PyObject *_wrap_wxListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1081 | PyObject * _resultobj; | |
1082 | int _result; | |
1083 | wxListItem * _arg0; | |
1084 | PyObject * _argo0 = 0; | |
1085 | char *_kwnames[] = { "self", NULL }; | |
1086 | ||
1087 | self = self; | |
1088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetColumn",_kwnames,&_argo0)) | |
1089 | return NULL; | |
1090 | if (_argo0) { | |
1091 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1092 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1093 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetColumn. Expected _wxListItem_p."); | |
1094 | return NULL; | |
1095 | } | |
1096 | } | |
1097 | { | |
1098 | wxPy_BEGIN_ALLOW_THREADS; | |
1099 | _result = (int )wxListItem_GetColumn(_arg0); | |
1100 | ||
1101 | wxPy_END_ALLOW_THREADS; | |
1102 | } _resultobj = Py_BuildValue("i",_result); | |
1103 | return _resultobj; | |
1104 | } | |
1105 | ||
1106 | #define wxListItem_GetState(_swigobj) (_swigobj->GetState()) | |
1107 | static PyObject *_wrap_wxListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1108 | PyObject * _resultobj; | |
1109 | long _result; | |
1110 | wxListItem * _arg0; | |
1111 | PyObject * _argo0 = 0; | |
1112 | char *_kwnames[] = { "self", NULL }; | |
1113 | ||
1114 | self = self; | |
1115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetState",_kwnames,&_argo0)) | |
1116 | return NULL; | |
1117 | if (_argo0) { | |
1118 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1119 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1120 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetState. Expected _wxListItem_p."); | |
1121 | return NULL; | |
1122 | } | |
1123 | } | |
1124 | { | |
1125 | wxPy_BEGIN_ALLOW_THREADS; | |
1126 | _result = (long )wxListItem_GetState(_arg0); | |
1127 | ||
1128 | wxPy_END_ALLOW_THREADS; | |
1129 | } _resultobj = Py_BuildValue("l",_result); | |
1130 | return _resultobj; | |
1131 | } | |
1132 | ||
1133 | #define wxListItem_GetText(_swigobj) (_swigobj->GetText()) | |
1134 | static PyObject *_wrap_wxListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1135 | PyObject * _resultobj; | |
1136 | wxString * _result; | |
1137 | wxListItem * _arg0; | |
1138 | PyObject * _argo0 = 0; | |
1139 | char *_kwnames[] = { "self", NULL }; | |
1140 | ||
1141 | self = self; | |
1142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetText",_kwnames,&_argo0)) | |
1143 | return NULL; | |
1144 | if (_argo0) { | |
1145 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1146 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1147 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetText. Expected _wxListItem_p."); | |
1148 | return NULL; | |
1149 | } | |
1150 | } | |
1151 | { | |
1152 | wxPy_BEGIN_ALLOW_THREADS; | |
1153 | const wxString & _result_ref = wxListItem_GetText(_arg0); | |
1154 | _result = (wxString *) &_result_ref; | |
1155 | ||
1156 | wxPy_END_ALLOW_THREADS; | |
1157 | }{ | |
1158 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1159 | } | |
1160 | return _resultobj; | |
1161 | } | |
1162 | ||
1163 | #define wxListItem_GetImage(_swigobj) (_swigobj->GetImage()) | |
1164 | static PyObject *_wrap_wxListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1165 | PyObject * _resultobj; | |
1166 | int _result; | |
1167 | wxListItem * _arg0; | |
1168 | PyObject * _argo0 = 0; | |
1169 | char *_kwnames[] = { "self", NULL }; | |
1170 | ||
1171 | self = self; | |
1172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetImage",_kwnames,&_argo0)) | |
1173 | return NULL; | |
1174 | if (_argo0) { | |
1175 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1176 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1177 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetImage. Expected _wxListItem_p."); | |
1178 | return NULL; | |
1179 | } | |
1180 | } | |
1181 | { | |
1182 | wxPy_BEGIN_ALLOW_THREADS; | |
1183 | _result = (int )wxListItem_GetImage(_arg0); | |
1184 | ||
1185 | wxPy_END_ALLOW_THREADS; | |
1186 | } _resultobj = Py_BuildValue("i",_result); | |
1187 | return _resultobj; | |
1188 | } | |
1189 | ||
1190 | #define wxListItem_GetData(_swigobj) (_swigobj->GetData()) | |
1191 | static PyObject *_wrap_wxListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1192 | PyObject * _resultobj; | |
1193 | long _result; | |
1194 | wxListItem * _arg0; | |
1195 | PyObject * _argo0 = 0; | |
1196 | char *_kwnames[] = { "self", NULL }; | |
1197 | ||
1198 | self = self; | |
1199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetData",_kwnames,&_argo0)) | |
1200 | return NULL; | |
1201 | if (_argo0) { | |
1202 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1203 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1204 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetData. Expected _wxListItem_p."); | |
1205 | return NULL; | |
1206 | } | |
1207 | } | |
1208 | { | |
1209 | wxPy_BEGIN_ALLOW_THREADS; | |
1210 | _result = (long )wxListItem_GetData(_arg0); | |
1211 | ||
1212 | wxPy_END_ALLOW_THREADS; | |
1213 | } _resultobj = Py_BuildValue("l",_result); | |
1214 | return _resultobj; | |
1215 | } | |
1216 | ||
1217 | #define wxListItem_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1218 | static PyObject *_wrap_wxListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1219 | PyObject * _resultobj; | |
1220 | int _result; | |
1221 | wxListItem * _arg0; | |
1222 | PyObject * _argo0 = 0; | |
1223 | char *_kwnames[] = { "self", NULL }; | |
1224 | ||
1225 | self = self; | |
1226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetWidth",_kwnames,&_argo0)) | |
1227 | return NULL; | |
1228 | if (_argo0) { | |
1229 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1230 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1231 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetWidth. Expected _wxListItem_p."); | |
1232 | return NULL; | |
1233 | } | |
1234 | } | |
1235 | { | |
1236 | wxPy_BEGIN_ALLOW_THREADS; | |
1237 | _result = (int )wxListItem_GetWidth(_arg0); | |
1238 | ||
1239 | wxPy_END_ALLOW_THREADS; | |
1240 | } _resultobj = Py_BuildValue("i",_result); | |
1241 | return _resultobj; | |
1242 | } | |
1243 | ||
1244 | #define wxListItem_GetAlign(_swigobj) (_swigobj->GetAlign()) | |
1245 | static PyObject *_wrap_wxListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1246 | PyObject * _resultobj; | |
1247 | wxListColumnFormat _result; | |
1248 | wxListItem * _arg0; | |
1249 | PyObject * _argo0 = 0; | |
1250 | char *_kwnames[] = { "self", NULL }; | |
1251 | ||
1252 | self = self; | |
1253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAlign",_kwnames,&_argo0)) | |
1254 | return NULL; | |
1255 | if (_argo0) { | |
1256 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1257 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1258 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAlign. Expected _wxListItem_p."); | |
1259 | return NULL; | |
1260 | } | |
1261 | } | |
1262 | { | |
1263 | wxPy_BEGIN_ALLOW_THREADS; | |
1264 | _result = (wxListColumnFormat )wxListItem_GetAlign(_arg0); | |
1265 | ||
1266 | wxPy_END_ALLOW_THREADS; | |
1267 | } _resultobj = Py_BuildValue("i",_result); | |
1268 | return _resultobj; | |
1269 | } | |
1270 | ||
1271 | #define wxListItem_GetAttributes(_swigobj) (_swigobj->GetAttributes()) | |
1272 | static PyObject *_wrap_wxListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1273 | PyObject * _resultobj; | |
1274 | wxListItemAttr * _result; | |
1275 | wxListItem * _arg0; | |
1276 | PyObject * _argo0 = 0; | |
1277 | char *_kwnames[] = { "self", NULL }; | |
1278 | char _ptemp[128]; | |
1279 | ||
1280 | self = self; | |
1281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAttributes",_kwnames,&_argo0)) | |
1282 | return NULL; | |
1283 | if (_argo0) { | |
1284 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1285 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAttributes. Expected _wxListItem_p."); | |
1287 | return NULL; | |
1288 | } | |
1289 | } | |
1290 | { | |
1291 | wxPy_BEGIN_ALLOW_THREADS; | |
1292 | _result = (wxListItemAttr *)wxListItem_GetAttributes(_arg0); | |
1293 | ||
1294 | wxPy_END_ALLOW_THREADS; | |
1295 | } if (_result) { | |
1296 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
1297 | _resultobj = Py_BuildValue("s",_ptemp); | |
1298 | } else { | |
1299 | Py_INCREF(Py_None); | |
1300 | _resultobj = Py_None; | |
1301 | } | |
1302 | return _resultobj; | |
1303 | } | |
1304 | ||
1305 | #define wxListItem_HasAttributes(_swigobj) (_swigobj->HasAttributes()) | |
1306 | static PyObject *_wrap_wxListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1307 | PyObject * _resultobj; | |
1308 | bool _result; | |
1309 | wxListItem * _arg0; | |
1310 | PyObject * _argo0 = 0; | |
1311 | char *_kwnames[] = { "self", NULL }; | |
1312 | ||
1313 | self = self; | |
1314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_HasAttributes",_kwnames,&_argo0)) | |
1315 | return NULL; | |
1316 | if (_argo0) { | |
1317 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1318 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_HasAttributes. Expected _wxListItem_p."); | |
1320 | return NULL; | |
1321 | } | |
1322 | } | |
1323 | { | |
1324 | wxPy_BEGIN_ALLOW_THREADS; | |
1325 | _result = (bool )wxListItem_HasAttributes(_arg0); | |
1326 | ||
1327 | wxPy_END_ALLOW_THREADS; | |
1328 | } _resultobj = Py_BuildValue("i",_result); | |
1329 | return _resultobj; | |
1330 | } | |
1331 | ||
1332 | #define wxListItem_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
1333 | static PyObject *_wrap_wxListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1334 | PyObject * _resultobj; | |
1335 | wxColour * _result; | |
1336 | wxListItem * _arg0; | |
1337 | PyObject * _argo0 = 0; | |
1338 | char *_kwnames[] = { "self", NULL }; | |
1339 | char _ptemp[128]; | |
1340 | ||
1341 | self = self; | |
1342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetTextColour",_kwnames,&_argo0)) | |
1343 | return NULL; | |
1344 | if (_argo0) { | |
1345 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1346 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1347 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetTextColour. Expected _wxListItem_p."); | |
1348 | return NULL; | |
1349 | } | |
1350 | } | |
1351 | { | |
1352 | wxPy_BEGIN_ALLOW_THREADS; | |
1353 | _result = new wxColour (wxListItem_GetTextColour(_arg0)); | |
1354 | ||
1355 | wxPy_END_ALLOW_THREADS; | |
1356 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
1357 | _resultobj = Py_BuildValue("s",_ptemp); | |
1358 | return _resultobj; | |
1359 | } | |
1360 | ||
1361 | #define wxListItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
1362 | static PyObject *_wrap_wxListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1363 | PyObject * _resultobj; | |
1364 | wxColour * _result; | |
1365 | wxListItem * _arg0; | |
1366 | PyObject * _argo0 = 0; | |
1367 | char *_kwnames[] = { "self", NULL }; | |
1368 | char _ptemp[128]; | |
1369 | ||
1370 | self = self; | |
1371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetBackgroundColour",_kwnames,&_argo0)) | |
1372 | return NULL; | |
1373 | if (_argo0) { | |
1374 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1375 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1376 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetBackgroundColour. Expected _wxListItem_p."); | |
1377 | return NULL; | |
1378 | } | |
1379 | } | |
1380 | { | |
1381 | wxPy_BEGIN_ALLOW_THREADS; | |
1382 | _result = new wxColour (wxListItem_GetBackgroundColour(_arg0)); | |
1383 | ||
1384 | wxPy_END_ALLOW_THREADS; | |
1385 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
1386 | _resultobj = Py_BuildValue("s",_ptemp); | |
1387 | return _resultobj; | |
1388 | } | |
1389 | ||
1390 | #define wxListItem_GetFont(_swigobj) (_swigobj->GetFont()) | |
1391 | static PyObject *_wrap_wxListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1392 | PyObject * _resultobj; | |
1393 | wxFont * _result; | |
1394 | wxListItem * _arg0; | |
1395 | PyObject * _argo0 = 0; | |
1396 | char *_kwnames[] = { "self", NULL }; | |
1397 | char _ptemp[128]; | |
1398 | ||
1399 | self = self; | |
1400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetFont",_kwnames,&_argo0)) | |
1401 | return NULL; | |
1402 | if (_argo0) { | |
1403 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1404 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1405 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetFont. Expected _wxListItem_p."); | |
1406 | return NULL; | |
1407 | } | |
1408 | } | |
1409 | { | |
1410 | wxPy_BEGIN_ALLOW_THREADS; | |
1411 | _result = new wxFont (wxListItem_GetFont(_arg0)); | |
1412 | ||
1413 | wxPy_END_ALLOW_THREADS; | |
1414 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); | |
1415 | _resultobj = Py_BuildValue("s",_ptemp); | |
1416 | return _resultobj; | |
1417 | } | |
1418 | ||
1419 | #define wxListItem_m_mask_set(_swigobj,_swigval) (_swigobj->m_mask = _swigval,_swigval) | |
1420 | static PyObject *_wrap_wxListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1421 | PyObject * _resultobj; | |
1422 | long _result; | |
1423 | wxListItem * _arg0; | |
1424 | long _arg1; | |
1425 | PyObject * _argo0 = 0; | |
1426 | char *_kwnames[] = { "self","m_mask", NULL }; | |
1427 | ||
1428 | self = self; | |
1429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_mask_set",_kwnames,&_argo0,&_arg1)) | |
1430 | return NULL; | |
1431 | if (_argo0) { | |
1432 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1433 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1434 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_set. Expected _wxListItem_p."); | |
1435 | return NULL; | |
1436 | } | |
1437 | } | |
1438 | { | |
1439 | wxPy_BEGIN_ALLOW_THREADS; | |
1440 | _result = (long )wxListItem_m_mask_set(_arg0,_arg1); | |
1441 | ||
1442 | wxPy_END_ALLOW_THREADS; | |
1443 | } _resultobj = Py_BuildValue("l",_result); | |
1444 | return _resultobj; | |
1445 | } | |
1446 | ||
1447 | #define wxListItem_m_mask_get(_swigobj) ((long ) _swigobj->m_mask) | |
1448 | static PyObject *_wrap_wxListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1449 | PyObject * _resultobj; | |
1450 | long _result; | |
1451 | wxListItem * _arg0; | |
1452 | PyObject * _argo0 = 0; | |
1453 | char *_kwnames[] = { "self", NULL }; | |
1454 | ||
1455 | self = self; | |
1456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_mask_get",_kwnames,&_argo0)) | |
1457 | return NULL; | |
1458 | if (_argo0) { | |
1459 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1460 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1461 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_get. Expected _wxListItem_p."); | |
1462 | return NULL; | |
1463 | } | |
1464 | } | |
1465 | { | |
1466 | wxPy_BEGIN_ALLOW_THREADS; | |
1467 | _result = (long )wxListItem_m_mask_get(_arg0); | |
1468 | ||
1469 | wxPy_END_ALLOW_THREADS; | |
1470 | } _resultobj = Py_BuildValue("l",_result); | |
1471 | return _resultobj; | |
1472 | } | |
1473 | ||
1474 | #define wxListItem_m_itemId_set(_swigobj,_swigval) (_swigobj->m_itemId = _swigval,_swigval) | |
1475 | static PyObject *_wrap_wxListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
1476 | PyObject * _resultobj; |
1477 | long _result; | |
1478 | wxListItem * _arg0; | |
1479 | long _arg1; | |
1d99702e | 1480 | PyObject * _argo0 = 0; |
f6bcfd97 | 1481 | char *_kwnames[] = { "self","m_itemId", NULL }; |
af309447 RD |
1482 | |
1483 | self = self; | |
f6bcfd97 | 1484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_itemId_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 1485 | return NULL; |
1d99702e RD |
1486 | if (_argo0) { |
1487 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1488 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_set. Expected _wxListItem_p."); |
af309447 RD |
1490 | return NULL; |
1491 | } | |
1492 | } | |
cf694132 RD |
1493 | { |
1494 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
1495 | _result = (long )wxListItem_m_itemId_set(_arg0,_arg1); |
1496 | ||
1497 | wxPy_END_ALLOW_THREADS; | |
1498 | } _resultobj = Py_BuildValue("l",_result); | |
1499 | return _resultobj; | |
1500 | } | |
1501 | ||
1502 | #define wxListItem_m_itemId_get(_swigobj) ((long ) _swigobj->m_itemId) | |
1503 | static PyObject *_wrap_wxListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1504 | PyObject * _resultobj; | |
1505 | long _result; | |
1506 | wxListItem * _arg0; | |
1507 | PyObject * _argo0 = 0; | |
1508 | char *_kwnames[] = { "self", NULL }; | |
1509 | ||
1510 | self = self; | |
1511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_itemId_get",_kwnames,&_argo0)) | |
1512 | return NULL; | |
1513 | if (_argo0) { | |
1514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_get. Expected _wxListItem_p."); | |
1517 | return NULL; | |
1518 | } | |
1519 | } | |
1520 | { | |
1521 | wxPy_BEGIN_ALLOW_THREADS; | |
1522 | _result = (long )wxListItem_m_itemId_get(_arg0); | |
1523 | ||
1524 | wxPy_END_ALLOW_THREADS; | |
1525 | } _resultobj = Py_BuildValue("l",_result); | |
1526 | return _resultobj; | |
1527 | } | |
1528 | ||
1529 | #define wxListItem_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval) | |
1530 | static PyObject *_wrap_wxListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1531 | PyObject * _resultobj; | |
1532 | int _result; | |
1533 | wxListItem * _arg0; | |
1534 | int _arg1; | |
1535 | PyObject * _argo0 = 0; | |
1536 | char *_kwnames[] = { "self","m_col", NULL }; | |
1537 | ||
1538 | self = self; | |
1539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_col_set",_kwnames,&_argo0,&_arg1)) | |
1540 | return NULL; | |
1541 | if (_argo0) { | |
1542 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1543 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_set. Expected _wxListItem_p."); | |
1545 | return NULL; | |
1546 | } | |
1547 | } | |
1548 | { | |
1549 | wxPy_BEGIN_ALLOW_THREADS; | |
1550 | _result = (int )wxListItem_m_col_set(_arg0,_arg1); | |
1551 | ||
1552 | wxPy_END_ALLOW_THREADS; | |
1553 | } _resultobj = Py_BuildValue("i",_result); | |
1554 | return _resultobj; | |
1555 | } | |
1556 | ||
1557 | #define wxListItem_m_col_get(_swigobj) ((int ) _swigobj->m_col) | |
1558 | static PyObject *_wrap_wxListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1559 | PyObject * _resultobj; | |
1560 | int _result; | |
1561 | wxListItem * _arg0; | |
1562 | PyObject * _argo0 = 0; | |
1563 | char *_kwnames[] = { "self", NULL }; | |
1564 | ||
1565 | self = self; | |
1566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_col_get",_kwnames,&_argo0)) | |
1567 | return NULL; | |
1568 | if (_argo0) { | |
1569 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1570 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1571 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_get. Expected _wxListItem_p."); | |
1572 | return NULL; | |
1573 | } | |
1574 | } | |
1575 | { | |
1576 | wxPy_BEGIN_ALLOW_THREADS; | |
1577 | _result = (int )wxListItem_m_col_get(_arg0); | |
1578 | ||
1579 | wxPy_END_ALLOW_THREADS; | |
1580 | } _resultobj = Py_BuildValue("i",_result); | |
1581 | return _resultobj; | |
1582 | } | |
1583 | ||
1584 | #define wxListItem_m_state_set(_swigobj,_swigval) (_swigobj->m_state = _swigval,_swigval) | |
1585 | static PyObject *_wrap_wxListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1586 | PyObject * _resultobj; | |
1587 | long _result; | |
1588 | wxListItem * _arg0; | |
1589 | long _arg1; | |
1590 | PyObject * _argo0 = 0; | |
1591 | char *_kwnames[] = { "self","m_state", NULL }; | |
1592 | ||
1593 | self = self; | |
1594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_state_set",_kwnames,&_argo0,&_arg1)) | |
1595 | return NULL; | |
1596 | if (_argo0) { | |
1597 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1598 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1599 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_set. Expected _wxListItem_p."); | |
1600 | return NULL; | |
1601 | } | |
1602 | } | |
1603 | { | |
1604 | wxPy_BEGIN_ALLOW_THREADS; | |
1605 | _result = (long )wxListItem_m_state_set(_arg0,_arg1); | |
1606 | ||
1607 | wxPy_END_ALLOW_THREADS; | |
1608 | } _resultobj = Py_BuildValue("l",_result); | |
1609 | return _resultobj; | |
1610 | } | |
1611 | ||
1612 | #define wxListItem_m_state_get(_swigobj) ((long ) _swigobj->m_state) | |
1613 | static PyObject *_wrap_wxListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1614 | PyObject * _resultobj; | |
1615 | long _result; | |
1616 | wxListItem * _arg0; | |
1617 | PyObject * _argo0 = 0; | |
1618 | char *_kwnames[] = { "self", NULL }; | |
1619 | ||
1620 | self = self; | |
1621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_state_get",_kwnames,&_argo0)) | |
1622 | return NULL; | |
1623 | if (_argo0) { | |
1624 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1625 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1626 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_get. Expected _wxListItem_p."); | |
1627 | return NULL; | |
1628 | } | |
1629 | } | |
1630 | { | |
1631 | wxPy_BEGIN_ALLOW_THREADS; | |
1632 | _result = (long )wxListItem_m_state_get(_arg0); | |
1633 | ||
1634 | wxPy_END_ALLOW_THREADS; | |
1635 | } _resultobj = Py_BuildValue("l",_result); | |
1636 | return _resultobj; | |
1637 | } | |
1638 | ||
1639 | #define wxListItem_m_stateMask_set(_swigobj,_swigval) (_swigobj->m_stateMask = _swigval,_swigval) | |
1640 | static PyObject *_wrap_wxListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1641 | PyObject * _resultobj; | |
1642 | long _result; | |
1643 | wxListItem * _arg0; | |
1644 | long _arg1; | |
1645 | PyObject * _argo0 = 0; | |
1646 | char *_kwnames[] = { "self","m_stateMask", NULL }; | |
1647 | ||
1648 | self = self; | |
1649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_stateMask_set",_kwnames,&_argo0,&_arg1)) | |
1650 | return NULL; | |
1651 | if (_argo0) { | |
1652 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1653 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1654 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_set. Expected _wxListItem_p."); | |
1655 | return NULL; | |
1656 | } | |
1657 | } | |
1658 | { | |
1659 | wxPy_BEGIN_ALLOW_THREADS; | |
1660 | _result = (long )wxListItem_m_stateMask_set(_arg0,_arg1); | |
1661 | ||
1662 | wxPy_END_ALLOW_THREADS; | |
1663 | } _resultobj = Py_BuildValue("l",_result); | |
1664 | return _resultobj; | |
1665 | } | |
1666 | ||
1667 | #define wxListItem_m_stateMask_get(_swigobj) ((long ) _swigobj->m_stateMask) | |
1668 | static PyObject *_wrap_wxListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1669 | PyObject * _resultobj; | |
1670 | long _result; | |
1671 | wxListItem * _arg0; | |
1672 | PyObject * _argo0 = 0; | |
1673 | char *_kwnames[] = { "self", NULL }; | |
1674 | ||
1675 | self = self; | |
1676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_stateMask_get",_kwnames,&_argo0)) | |
1677 | return NULL; | |
1678 | if (_argo0) { | |
1679 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1680 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1681 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_get. Expected _wxListItem_p."); | |
1682 | return NULL; | |
1683 | } | |
1684 | } | |
1685 | { | |
1686 | wxPy_BEGIN_ALLOW_THREADS; | |
1687 | _result = (long )wxListItem_m_stateMask_get(_arg0); | |
cf694132 RD |
1688 | |
1689 | wxPy_END_ALLOW_THREADS; | |
1690 | } _resultobj = Py_BuildValue("l",_result); | |
af309447 RD |
1691 | return _resultobj; |
1692 | } | |
1693 | ||
f6bcfd97 BP |
1694 | #define wxListItem_m_text_set(_swigobj,_swigval) (_swigobj->m_text = *(_swigval),_swigval) |
1695 | static PyObject *_wrap_wxListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1696 | PyObject * _resultobj; | |
1697 | wxString * _result; | |
1698 | wxListItem * _arg0; | |
1699 | wxString * _arg1; | |
1700 | PyObject * _argo0 = 0; | |
1701 | PyObject * _obj1 = 0; | |
1702 | char *_kwnames[] = { "self","m_text", NULL }; | |
1703 | ||
1704 | self = self; | |
1705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_m_text_set",_kwnames,&_argo0,&_obj1)) | |
1706 | return NULL; | |
1707 | if (_argo0) { | |
1708 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1709 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1710 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_set. Expected _wxListItem_p."); | |
1711 | return NULL; | |
1712 | } | |
1713 | } | |
1714 | { | |
2cd2fac8 RD |
1715 | #if PYTHON_API_VERSION >= 1009 |
1716 | char* tmpPtr; int tmpSize; | |
1717 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1718 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1719 | return NULL; | |
1720 | } | |
1721 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1722 | return NULL; | |
1723 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1724 | #else | |
f6bcfd97 BP |
1725 | if (!PyString_Check(_obj1)) { |
1726 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1727 | return NULL; | |
1728 | } | |
2cd2fac8 RD |
1729 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1730 | #endif | |
f6bcfd97 BP |
1731 | } |
1732 | { | |
1733 | wxPy_BEGIN_ALLOW_THREADS; | |
1734 | _result = (wxString *)wxListItem_m_text_set(_arg0,_arg1); | |
1735 | ||
1736 | wxPy_END_ALLOW_THREADS; | |
1737 | }{ | |
1738 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1739 | } | |
1740 | { | |
1741 | if (_obj1) | |
1742 | delete _arg1; | |
1743 | } | |
1744 | return _resultobj; | |
1745 | } | |
1746 | ||
1747 | #define wxListItem_m_text_get(_swigobj) (&_swigobj->m_text) | |
1748 | static PyObject *_wrap_wxListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1749 | PyObject * _resultobj; |
f6bcfd97 | 1750 | wxString * _result; |
8ab979d7 | 1751 | wxListItem * _arg0; |
1d99702e | 1752 | PyObject * _argo0 = 0; |
efc5f224 | 1753 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1754 | |
1755 | self = self; | |
f6bcfd97 | 1756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_text_get",_kwnames,&_argo0)) |
8ab979d7 | 1757 | return NULL; |
1d99702e RD |
1758 | if (_argo0) { |
1759 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1760 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1761 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_get. Expected _wxListItem_p."); |
8ab979d7 RD |
1762 | return NULL; |
1763 | } | |
1764 | } | |
cf694132 RD |
1765 | { |
1766 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1767 | _result = (wxString *)wxListItem_m_text_get(_arg0); |
cf694132 RD |
1768 | |
1769 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
1770 | }{ |
1771 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1772 | } | |
8ab979d7 RD |
1773 | return _resultobj; |
1774 | } | |
1775 | ||
f6bcfd97 BP |
1776 | #define wxListItem_m_image_set(_swigobj,_swigval) (_swigobj->m_image = _swigval,_swigval) |
1777 | static PyObject *_wrap_wxListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 1778 | PyObject * _resultobj; |
f6bcfd97 | 1779 | int _result; |
af309447 | 1780 | wxListItem * _arg0; |
f6bcfd97 | 1781 | int _arg1; |
1d99702e | 1782 | PyObject * _argo0 = 0; |
f6bcfd97 | 1783 | char *_kwnames[] = { "self","m_image", NULL }; |
af309447 RD |
1784 | |
1785 | self = self; | |
f6bcfd97 | 1786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_image_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 1787 | return NULL; |
1d99702e RD |
1788 | if (_argo0) { |
1789 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1790 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1791 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_set. Expected _wxListItem_p."); |
af309447 RD |
1792 | return NULL; |
1793 | } | |
1794 | } | |
cf694132 RD |
1795 | { |
1796 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1797 | _result = (int )wxListItem_m_image_set(_arg0,_arg1); |
cf694132 RD |
1798 | |
1799 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 1800 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
1801 | return _resultobj; |
1802 | } | |
1803 | ||
f6bcfd97 BP |
1804 | #define wxListItem_m_image_get(_swigobj) ((int ) _swigobj->m_image) |
1805 | static PyObject *_wrap_wxListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1806 | PyObject * _resultobj; |
f6bcfd97 | 1807 | int _result; |
8ab979d7 | 1808 | wxListItem * _arg0; |
1d99702e | 1809 | PyObject * _argo0 = 0; |
efc5f224 | 1810 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1811 | |
1812 | self = self; | |
f6bcfd97 | 1813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_image_get",_kwnames,&_argo0)) |
8ab979d7 | 1814 | return NULL; |
1d99702e RD |
1815 | if (_argo0) { |
1816 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1817 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_get. Expected _wxListItem_p."); |
8ab979d7 RD |
1819 | return NULL; |
1820 | } | |
1821 | } | |
cf694132 RD |
1822 | { |
1823 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1824 | _result = (int )wxListItem_m_image_get(_arg0); |
cf694132 RD |
1825 | |
1826 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 1827 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1828 | return _resultobj; |
1829 | } | |
1830 | ||
f6bcfd97 BP |
1831 | #define wxListItem_m_data_set(_swigobj,_swigval) (_swigobj->m_data = _swigval,_swigval) |
1832 | static PyObject *_wrap_wxListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 1833 | PyObject * _resultobj; |
f6bcfd97 | 1834 | long _result; |
af309447 | 1835 | wxListItem * _arg0; |
f6bcfd97 | 1836 | long _arg1; |
1d99702e | 1837 | PyObject * _argo0 = 0; |
f6bcfd97 | 1838 | char *_kwnames[] = { "self","m_data", NULL }; |
af309447 RD |
1839 | |
1840 | self = self; | |
f6bcfd97 | 1841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_data_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 1842 | return NULL; |
1d99702e RD |
1843 | if (_argo0) { |
1844 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1845 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1846 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_set. Expected _wxListItem_p."); |
af309447 RD |
1847 | return NULL; |
1848 | } | |
1849 | } | |
cf694132 RD |
1850 | { |
1851 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1852 | _result = (long )wxListItem_m_data_set(_arg0,_arg1); |
cf694132 RD |
1853 | |
1854 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 1855 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
1856 | return _resultobj; |
1857 | } | |
1858 | ||
f6bcfd97 BP |
1859 | #define wxListItem_m_data_get(_swigobj) ((long ) _swigobj->m_data) |
1860 | static PyObject *_wrap_wxListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1861 | PyObject * _resultobj; |
f6bcfd97 | 1862 | long _result; |
8ab979d7 | 1863 | wxListItem * _arg0; |
1d99702e | 1864 | PyObject * _argo0 = 0; |
efc5f224 | 1865 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1866 | |
1867 | self = self; | |
f6bcfd97 | 1868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_data_get",_kwnames,&_argo0)) |
8ab979d7 | 1869 | return NULL; |
1d99702e RD |
1870 | if (_argo0) { |
1871 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1872 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1873 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_get. Expected _wxListItem_p."); |
8ab979d7 RD |
1874 | return NULL; |
1875 | } | |
1876 | } | |
cf694132 RD |
1877 | { |
1878 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1879 | _result = (long )wxListItem_m_data_get(_arg0); |
cf694132 RD |
1880 | |
1881 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 1882 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
1883 | return _resultobj; |
1884 | } | |
1885 | ||
f6bcfd97 BP |
1886 | #define wxListItem_m_format_set(_swigobj,_swigval) (_swigobj->m_format = _swigval,_swigval) |
1887 | static PyObject *_wrap_wxListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 1888 | PyObject * _resultobj; |
f6bcfd97 | 1889 | int _result; |
af309447 | 1890 | wxListItem * _arg0; |
f6bcfd97 | 1891 | int _arg1; |
1d99702e | 1892 | PyObject * _argo0 = 0; |
f6bcfd97 | 1893 | char *_kwnames[] = { "self","m_format", NULL }; |
af309447 RD |
1894 | |
1895 | self = self; | |
f6bcfd97 | 1896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_format_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 1897 | return NULL; |
1d99702e RD |
1898 | if (_argo0) { |
1899 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1900 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1901 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_set. Expected _wxListItem_p."); |
af309447 RD |
1902 | return NULL; |
1903 | } | |
1904 | } | |
cf694132 RD |
1905 | { |
1906 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1907 | _result = (int )wxListItem_m_format_set(_arg0,_arg1); |
cf694132 RD |
1908 | |
1909 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 1910 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
1911 | return _resultobj; |
1912 | } | |
1913 | ||
f6bcfd97 BP |
1914 | #define wxListItem_m_format_get(_swigobj) ((int ) _swigobj->m_format) |
1915 | static PyObject *_wrap_wxListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1916 | PyObject * _resultobj; |
f6bcfd97 | 1917 | int _result; |
8ab979d7 | 1918 | wxListItem * _arg0; |
1d99702e | 1919 | PyObject * _argo0 = 0; |
efc5f224 | 1920 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1921 | |
1922 | self = self; | |
f6bcfd97 | 1923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_format_get",_kwnames,&_argo0)) |
8ab979d7 | 1924 | return NULL; |
1d99702e RD |
1925 | if (_argo0) { |
1926 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1927 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1928 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_get. Expected _wxListItem_p."); |
8ab979d7 RD |
1929 | return NULL; |
1930 | } | |
1931 | } | |
cf694132 RD |
1932 | { |
1933 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1934 | _result = (int )wxListItem_m_format_get(_arg0); |
cf694132 RD |
1935 | |
1936 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 1937 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1938 | return _resultobj; |
1939 | } | |
1940 | ||
f6bcfd97 BP |
1941 | #define wxListItem_m_width_set(_swigobj,_swigval) (_swigobj->m_width = _swigval,_swigval) |
1942 | static PyObject *_wrap_wxListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 1943 | PyObject * _resultobj; |
f6bcfd97 | 1944 | int _result; |
af309447 | 1945 | wxListItem * _arg0; |
f6bcfd97 | 1946 | int _arg1; |
1d99702e | 1947 | PyObject * _argo0 = 0; |
f6bcfd97 | 1948 | char *_kwnames[] = { "self","m_width", NULL }; |
af309447 RD |
1949 | |
1950 | self = self; | |
f6bcfd97 | 1951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_width_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 1952 | return NULL; |
1d99702e RD |
1953 | if (_argo0) { |
1954 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1955 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1956 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_set. Expected _wxListItem_p."); |
af309447 RD |
1957 | return NULL; |
1958 | } | |
1959 | } | |
cf694132 RD |
1960 | { |
1961 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1962 | _result = (int )wxListItem_m_width_set(_arg0,_arg1); |
cf694132 RD |
1963 | |
1964 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 1965 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
1966 | return _resultobj; |
1967 | } | |
1968 | ||
f6bcfd97 BP |
1969 | #define wxListItem_m_width_get(_swigobj) ((int ) _swigobj->m_width) |
1970 | static PyObject *_wrap_wxListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1971 | PyObject * _resultobj; |
f6bcfd97 | 1972 | int _result; |
8ab979d7 | 1973 | wxListItem * _arg0; |
1d99702e | 1974 | PyObject * _argo0 = 0; |
efc5f224 | 1975 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1976 | |
1977 | self = self; | |
f6bcfd97 | 1978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_width_get",_kwnames,&_argo0)) |
8ab979d7 | 1979 | return NULL; |
1d99702e RD |
1980 | if (_argo0) { |
1981 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1982 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1983 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_get. Expected _wxListItem_p."); |
8ab979d7 RD |
1984 | return NULL; |
1985 | } | |
1986 | } | |
cf694132 RD |
1987 | { |
1988 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1989 | _result = (int )wxListItem_m_width_get(_arg0); |
cf694132 RD |
1990 | |
1991 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 1992 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1993 | return _resultobj; |
1994 | } | |
1995 | ||
c368d904 RD |
1996 | static void *SwigwxListEventTowxNotifyEvent(void *ptr) { |
1997 | wxListEvent *src; | |
1998 | wxNotifyEvent *dest; | |
1999 | src = (wxListEvent *) ptr; | |
2000 | dest = (wxNotifyEvent *) src; | |
2001 | return (void *) dest; | |
2002 | } | |
2003 | ||
f6bcfd97 BP |
2004 | static void *SwigwxListEventTowxCommandEvent(void *ptr) { |
2005 | wxListEvent *src; | |
2006 | wxCommandEvent *dest; | |
2007 | src = (wxListEvent *) ptr; | |
2008 | dest = (wxCommandEvent *) src; | |
2009 | return (void *) dest; | |
2010 | } | |
2011 | ||
2012 | static void *SwigwxListEventTowxEvent(void *ptr) { | |
2013 | wxListEvent *src; | |
2014 | wxEvent *dest; | |
2015 | src = (wxListEvent *) ptr; | |
2016 | dest = (wxEvent *) src; | |
2017 | return (void *) dest; | |
2018 | } | |
2019 | ||
2020 | #define wxListEvent_m_code_set(_swigobj,_swigval) (_swigobj->m_code = _swigval,_swigval) | |
2021 | static PyObject *_wrap_wxListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2022 | PyObject * _resultobj; |
f6bcfd97 BP |
2023 | int _result; |
2024 | wxListEvent * _arg0; | |
2025 | int _arg1; | |
1d99702e | 2026 | PyObject * _argo0 = 0; |
f6bcfd97 | 2027 | char *_kwnames[] = { "self","m_code", NULL }; |
af309447 RD |
2028 | |
2029 | self = self; | |
f6bcfd97 | 2030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_code_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2031 | return NULL; |
1d99702e RD |
2032 | if (_argo0) { |
2033 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2034 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2035 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_code_set. Expected _wxListEvent_p."); | |
af309447 RD |
2036 | return NULL; |
2037 | } | |
2038 | } | |
af309447 | 2039 | { |
cf694132 | 2040 | wxPy_BEGIN_ALLOW_THREADS; |
f6bcfd97 | 2041 | _result = (int )wxListEvent_m_code_set(_arg0,_arg1); |
cf694132 RD |
2042 | |
2043 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 2044 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2045 | return _resultobj; |
2046 | } | |
2047 | ||
f6bcfd97 BP |
2048 | #define wxListEvent_m_code_get(_swigobj) ((int ) _swigobj->m_code) |
2049 | static PyObject *_wrap_wxListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2050 | PyObject * _resultobj; |
f6bcfd97 BP |
2051 | int _result; |
2052 | wxListEvent * _arg0; | |
1d99702e | 2053 | PyObject * _argo0 = 0; |
efc5f224 | 2054 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2055 | |
2056 | self = self; | |
f6bcfd97 | 2057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_code_get",_kwnames,&_argo0)) |
8ab979d7 | 2058 | return NULL; |
1d99702e RD |
2059 | if (_argo0) { |
2060 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2061 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2062 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_code_get. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2063 | return NULL; |
2064 | } | |
2065 | } | |
8ab979d7 | 2066 | { |
cf694132 | 2067 | wxPy_BEGIN_ALLOW_THREADS; |
f6bcfd97 | 2068 | _result = (int )wxListEvent_m_code_get(_arg0); |
cf694132 RD |
2069 | |
2070 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 2071 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2072 | return _resultobj; |
2073 | } | |
2074 | ||
f6bcfd97 BP |
2075 | #define wxListEvent_m_itemIndex_set(_swigobj,_swigval) (_swigobj->m_itemIndex = _swigval,_swigval) |
2076 | static PyObject *_wrap_wxListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2077 | PyObject * _resultobj; |
f6bcfd97 BP |
2078 | long _result; |
2079 | wxListEvent * _arg0; | |
2080 | long _arg1; | |
1d99702e | 2081 | PyObject * _argo0 = 0; |
f6bcfd97 | 2082 | char *_kwnames[] = { "self","m_itemIndex", NULL }; |
af309447 RD |
2083 | |
2084 | self = self; | |
f6bcfd97 | 2085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListEvent_m_itemIndex_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2086 | return NULL; |
1d99702e RD |
2087 | if (_argo0) { |
2088 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2089 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2090 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_set. Expected _wxListEvent_p."); | |
af309447 RD |
2091 | return NULL; |
2092 | } | |
2093 | } | |
cf694132 RD |
2094 | { |
2095 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2096 | _result = (long )wxListEvent_m_itemIndex_set(_arg0,_arg1); |
cf694132 RD |
2097 | |
2098 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 2099 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2100 | return _resultobj; |
2101 | } | |
2102 | ||
f6bcfd97 BP |
2103 | #define wxListEvent_m_itemIndex_get(_swigobj) ((long ) _swigobj->m_itemIndex) |
2104 | static PyObject *_wrap_wxListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2105 | PyObject * _resultobj; |
f6bcfd97 BP |
2106 | long _result; |
2107 | wxListEvent * _arg0; | |
1d99702e | 2108 | PyObject * _argo0 = 0; |
efc5f224 | 2109 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2110 | |
2111 | self = self; | |
f6bcfd97 | 2112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_itemIndex_get",_kwnames,&_argo0)) |
8ab979d7 | 2113 | return NULL; |
1d99702e RD |
2114 | if (_argo0) { |
2115 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2116 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2117 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_get. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2118 | return NULL; |
2119 | } | |
2120 | } | |
cf694132 RD |
2121 | { |
2122 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2123 | _result = (long )wxListEvent_m_itemIndex_get(_arg0); |
cf694132 RD |
2124 | |
2125 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 2126 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2127 | return _resultobj; |
2128 | } | |
2129 | ||
f6bcfd97 BP |
2130 | #define wxListEvent_m_oldItemIndex_set(_swigobj,_swigval) (_swigobj->m_oldItemIndex = _swigval,_swigval) |
2131 | static PyObject *_wrap_wxListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
2132 | PyObject * _resultobj; |
2133 | long _result; | |
f6bcfd97 | 2134 | wxListEvent * _arg0; |
af309447 | 2135 | long _arg1; |
1d99702e | 2136 | PyObject * _argo0 = 0; |
f6bcfd97 | 2137 | char *_kwnames[] = { "self","m_oldItemIndex", NULL }; |
af309447 RD |
2138 | |
2139 | self = self; | |
f6bcfd97 | 2140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListEvent_m_oldItemIndex_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2141 | return NULL; |
1d99702e RD |
2142 | if (_argo0) { |
2143 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2144 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2145 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_set. Expected _wxListEvent_p."); | |
af309447 RD |
2146 | return NULL; |
2147 | } | |
2148 | } | |
cf694132 RD |
2149 | { |
2150 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2151 | _result = (long )wxListEvent_m_oldItemIndex_set(_arg0,_arg1); |
cf694132 RD |
2152 | |
2153 | wxPy_END_ALLOW_THREADS; | |
2154 | } _resultobj = Py_BuildValue("l",_result); | |
af309447 RD |
2155 | return _resultobj; |
2156 | } | |
2157 | ||
f6bcfd97 BP |
2158 | #define wxListEvent_m_oldItemIndex_get(_swigobj) ((long ) _swigobj->m_oldItemIndex) |
2159 | static PyObject *_wrap_wxListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2160 | PyObject * _resultobj; |
2161 | long _result; | |
f6bcfd97 | 2162 | wxListEvent * _arg0; |
1d99702e | 2163 | PyObject * _argo0 = 0; |
efc5f224 | 2164 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2165 | |
2166 | self = self; | |
f6bcfd97 | 2167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_oldItemIndex_get",_kwnames,&_argo0)) |
8ab979d7 | 2168 | return NULL; |
1d99702e RD |
2169 | if (_argo0) { |
2170 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2171 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2172 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_get. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2173 | return NULL; |
2174 | } | |
2175 | } | |
cf694132 RD |
2176 | { |
2177 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2178 | _result = (long )wxListEvent_m_oldItemIndex_get(_arg0); |
cf694132 RD |
2179 | |
2180 | wxPy_END_ALLOW_THREADS; | |
2181 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
2182 | return _resultobj; |
2183 | } | |
2184 | ||
f6bcfd97 BP |
2185 | #define wxListEvent_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval) |
2186 | static PyObject *_wrap_wxListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
2187 | PyObject * _resultobj; |
2188 | int _result; | |
f6bcfd97 | 2189 | wxListEvent * _arg0; |
af309447 | 2190 | int _arg1; |
1d99702e | 2191 | PyObject * _argo0 = 0; |
f6bcfd97 | 2192 | char *_kwnames[] = { "self","m_col", NULL }; |
af309447 RD |
2193 | |
2194 | self = self; | |
f6bcfd97 | 2195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_col_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2196 | return NULL; |
1d99702e RD |
2197 | if (_argo0) { |
2198 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2199 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2200 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_set. Expected _wxListEvent_p."); | |
af309447 RD |
2201 | return NULL; |
2202 | } | |
2203 | } | |
cf694132 RD |
2204 | { |
2205 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2206 | _result = (int )wxListEvent_m_col_set(_arg0,_arg1); |
cf694132 RD |
2207 | |
2208 | wxPy_END_ALLOW_THREADS; | |
2209 | } _resultobj = Py_BuildValue("i",_result); | |
af309447 RD |
2210 | return _resultobj; |
2211 | } | |
2212 | ||
f6bcfd97 BP |
2213 | #define wxListEvent_m_col_get(_swigobj) ((int ) _swigobj->m_col) |
2214 | static PyObject *_wrap_wxListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2215 | PyObject * _resultobj; |
2216 | int _result; | |
f6bcfd97 | 2217 | wxListEvent * _arg0; |
1d99702e | 2218 | PyObject * _argo0 = 0; |
efc5f224 | 2219 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2220 | |
2221 | self = self; | |
f6bcfd97 | 2222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_col_get",_kwnames,&_argo0)) |
8ab979d7 | 2223 | return NULL; |
1d99702e RD |
2224 | if (_argo0) { |
2225 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2226 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2227 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_get. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2228 | return NULL; |
2229 | } | |
2230 | } | |
cf694132 RD |
2231 | { |
2232 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2233 | _result = (int )wxListEvent_m_col_get(_arg0); |
cf694132 RD |
2234 | |
2235 | wxPy_END_ALLOW_THREADS; | |
2236 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2237 | return _resultobj; |
2238 | } | |
2239 | ||
f6bcfd97 BP |
2240 | #define wxListEvent_m_cancelled_set(_swigobj,_swigval) (_swigobj->m_cancelled = _swigval,_swigval) |
2241 | static PyObject *_wrap_wxListEvent_m_cancelled_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2242 | PyObject * _resultobj; |
f6bcfd97 BP |
2243 | bool _result; |
2244 | wxListEvent * _arg0; | |
2245 | bool _arg1; | |
1d99702e | 2246 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
2247 | int tempbool1; |
2248 | char *_kwnames[] = { "self","m_cancelled", NULL }; | |
af309447 RD |
2249 | |
2250 | self = self; | |
f6bcfd97 | 2251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_cancelled_set",_kwnames,&_argo0,&tempbool1)) |
af309447 | 2252 | return NULL; |
1d99702e RD |
2253 | if (_argo0) { |
2254 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2255 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2256 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_cancelled_set. Expected _wxListEvent_p."); | |
af309447 RD |
2257 | return NULL; |
2258 | } | |
2259 | } | |
f6bcfd97 | 2260 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
2261 | { |
2262 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2263 | _result = (bool )wxListEvent_m_cancelled_set(_arg0,_arg1); |
cf694132 RD |
2264 | |
2265 | wxPy_END_ALLOW_THREADS; | |
2266 | } _resultobj = Py_BuildValue("i",_result); | |
af309447 RD |
2267 | return _resultobj; |
2268 | } | |
2269 | ||
f6bcfd97 BP |
2270 | #define wxListEvent_m_cancelled_get(_swigobj) ((bool ) _swigobj->m_cancelled) |
2271 | static PyObject *_wrap_wxListEvent_m_cancelled_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2272 | PyObject * _resultobj; |
f6bcfd97 BP |
2273 | bool _result; |
2274 | wxListEvent * _arg0; | |
1d99702e | 2275 | PyObject * _argo0 = 0; |
efc5f224 | 2276 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2277 | |
2278 | self = self; | |
f6bcfd97 | 2279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_cancelled_get",_kwnames,&_argo0)) |
8ab979d7 | 2280 | return NULL; |
1d99702e RD |
2281 | if (_argo0) { |
2282 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2283 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2284 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_cancelled_get. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2285 | return NULL; |
2286 | } | |
2287 | } | |
cf694132 RD |
2288 | { |
2289 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2290 | _result = (bool )wxListEvent_m_cancelled_get(_arg0); |
cf694132 RD |
2291 | |
2292 | wxPy_END_ALLOW_THREADS; | |
2293 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2294 | return _resultobj; |
2295 | } | |
2296 | ||
f6bcfd97 BP |
2297 | #define wxListEvent_m_pointDrag_set(_swigobj,_swigval) (_swigobj->m_pointDrag = *(_swigval),_swigval) |
2298 | static PyObject *_wrap_wxListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2299 | PyObject * _resultobj; |
f6bcfd97 BP |
2300 | wxPoint * _result; |
2301 | wxListEvent * _arg0; | |
2302 | wxPoint * _arg1; | |
2303 | PyObject * _argo0 = 0; | |
2304 | wxPoint temp; | |
2305 | PyObject * _obj1 = 0; | |
2306 | char *_kwnames[] = { "self","m_pointDrag", NULL }; | |
8ab979d7 RD |
2307 | char _ptemp[128]; |
2308 | ||
2309 | self = self; | |
f6bcfd97 BP |
2310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListEvent_m_pointDrag_set",_kwnames,&_argo0,&_obj1)) |
2311 | return NULL; | |
2312 | if (_argo0) { | |
2313 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2314 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2315 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_set. Expected _wxListEvent_p."); | |
2316 | return NULL; | |
2317 | } | |
2318 | } | |
2319 | { | |
2320 | _arg1 = &temp; | |
2321 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 2322 | return NULL; |
f6bcfd97 | 2323 | } |
cf694132 RD |
2324 | { |
2325 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2326 | _result = (wxPoint *)wxListEvent_m_pointDrag_set(_arg0,_arg1); |
cf694132 RD |
2327 | |
2328 | wxPy_END_ALLOW_THREADS; | |
1d99702e | 2329 | } if (_result) { |
f6bcfd97 | 2330 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); |
1d99702e RD |
2331 | _resultobj = Py_BuildValue("s",_ptemp); |
2332 | } else { | |
2333 | Py_INCREF(Py_None); | |
2334 | _resultobj = Py_None; | |
2335 | } | |
8ab979d7 RD |
2336 | return _resultobj; |
2337 | } | |
2338 | ||
f6bcfd97 BP |
2339 | #define wxListEvent_m_pointDrag_get(_swigobj) (&_swigobj->m_pointDrag) |
2340 | static PyObject *_wrap_wxListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2341 | PyObject * _resultobj; |
f6bcfd97 BP |
2342 | wxPoint * _result; |
2343 | wxListEvent * _arg0; | |
1d99702e | 2344 | PyObject * _argo0 = 0; |
efc5f224 | 2345 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 2346 | char _ptemp[128]; |
8ab979d7 RD |
2347 | |
2348 | self = self; | |
f6bcfd97 | 2349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_pointDrag_get",_kwnames,&_argo0)) |
8ab979d7 | 2350 | return NULL; |
1d99702e RD |
2351 | if (_argo0) { |
2352 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2353 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2354 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_get. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2355 | return NULL; |
2356 | } | |
2357 | } | |
cf694132 RD |
2358 | { |
2359 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2360 | _result = (wxPoint *)wxListEvent_m_pointDrag_get(_arg0); |
cf694132 RD |
2361 | |
2362 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
2363 | } if (_result) { |
2364 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
2365 | _resultobj = Py_BuildValue("s",_ptemp); | |
2366 | } else { | |
2367 | Py_INCREF(Py_None); | |
2368 | _resultobj = Py_None; | |
2369 | } | |
8ab979d7 RD |
2370 | return _resultobj; |
2371 | } | |
2372 | ||
f6bcfd97 BP |
2373 | #define wxListEvent_m_item_set(_swigobj,_swigval) (_swigobj->m_item = *(_swigval),_swigval) |
2374 | static PyObject *_wrap_wxListEvent_m_item_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2375 | PyObject * _resultobj; | |
2376 | wxListItem * _result; | |
2377 | wxListEvent * _arg0; | |
2378 | wxListItem * _arg1; | |
2379 | PyObject * _argo0 = 0; | |
2380 | PyObject * _argo1 = 0; | |
2381 | char *_kwnames[] = { "self","m_item", NULL }; | |
2382 | char _ptemp[128]; | |
8ab979d7 | 2383 | |
f6bcfd97 BP |
2384 | self = self; |
2385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListEvent_m_item_set",_kwnames,&_argo0,&_argo1)) | |
2386 | return NULL; | |
2387 | if (_argo0) { | |
2388 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2389 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2390 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_set. Expected _wxListEvent_p."); | |
2391 | return NULL; | |
2392 | } | |
2393 | } | |
2394 | if (_argo1) { | |
2395 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2396 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
2397 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListEvent_m_item_set. Expected _wxListItem_p."); | |
2398 | return NULL; | |
2399 | } | |
2400 | } | |
2401 | { | |
2402 | wxPy_BEGIN_ALLOW_THREADS; | |
2403 | _result = (wxListItem *)wxListEvent_m_item_set(_arg0,_arg1); | |
2404 | ||
2405 | wxPy_END_ALLOW_THREADS; | |
2406 | } if (_result) { | |
2407 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p"); | |
2408 | _resultobj = Py_BuildValue("s",_ptemp); | |
2409 | } else { | |
2410 | Py_INCREF(Py_None); | |
2411 | _resultobj = Py_None; | |
2412 | } | |
2413 | return _resultobj; | |
8ab979d7 RD |
2414 | } |
2415 | ||
f6bcfd97 BP |
2416 | #define wxListEvent_m_item_get(_swigobj) (&_swigobj->m_item) |
2417 | static PyObject *_wrap_wxListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2418 | PyObject * _resultobj; |
f6bcfd97 | 2419 | wxListItem * _result; |
af309447 | 2420 | wxListEvent * _arg0; |
1d99702e | 2421 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
2422 | char *_kwnames[] = { "self", NULL }; |
2423 | char _ptemp[128]; | |
af309447 RD |
2424 | |
2425 | self = self; | |
f6bcfd97 | 2426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_item_get",_kwnames,&_argo0)) |
af309447 | 2427 | return NULL; |
1d99702e RD |
2428 | if (_argo0) { |
2429 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2430 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2431 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_get. Expected _wxListEvent_p."); |
af309447 RD |
2432 | return NULL; |
2433 | } | |
2434 | } | |
cf694132 RD |
2435 | { |
2436 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2437 | _result = (wxListItem *)wxListEvent_m_item_get(_arg0); |
cf694132 RD |
2438 | |
2439 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
2440 | } if (_result) { |
2441 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p"); | |
2442 | _resultobj = Py_BuildValue("s",_ptemp); | |
2443 | } else { | |
2444 | Py_INCREF(Py_None); | |
2445 | _resultobj = Py_None; | |
2446 | } | |
af309447 RD |
2447 | return _resultobj; |
2448 | } | |
2449 | ||
f6bcfd97 BP |
2450 | #define wxListEvent_GetCode(_swigobj) (_swigobj->GetCode()) |
2451 | static PyObject *_wrap_wxListEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2452 | PyObject * _resultobj; |
2453 | int _result; | |
2454 | wxListEvent * _arg0; | |
1d99702e | 2455 | PyObject * _argo0 = 0; |
efc5f224 | 2456 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2457 | |
2458 | self = self; | |
f6bcfd97 | 2459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCode",_kwnames,&_argo0)) |
8ab979d7 | 2460 | return NULL; |
1d99702e RD |
2461 | if (_argo0) { |
2462 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2463 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCode. Expected _wxListEvent_p."); |
8ab979d7 RD |
2465 | return NULL; |
2466 | } | |
2467 | } | |
cf694132 RD |
2468 | { |
2469 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2470 | _result = (int )wxListEvent_GetCode(_arg0); |
cf694132 RD |
2471 | |
2472 | wxPy_END_ALLOW_THREADS; | |
2473 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2474 | return _resultobj; |
2475 | } | |
2476 | ||
f6bcfd97 BP |
2477 | #define wxListEvent_GetIndex(_swigobj) (_swigobj->GetIndex()) |
2478 | static PyObject *_wrap_wxListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
2479 | PyObject * _resultobj; |
2480 | long _result; | |
2481 | wxListEvent * _arg0; | |
1d99702e | 2482 | PyObject * _argo0 = 0; |
f6bcfd97 | 2483 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2484 | |
2485 | self = self; | |
f6bcfd97 | 2486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetIndex",_kwnames,&_argo0)) |
af309447 | 2487 | return NULL; |
1d99702e RD |
2488 | if (_argo0) { |
2489 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2490 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2491 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetIndex. Expected _wxListEvent_p."); |
af309447 RD |
2492 | return NULL; |
2493 | } | |
2494 | } | |
cf694132 RD |
2495 | { |
2496 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2497 | _result = (long )wxListEvent_GetIndex(_arg0); |
cf694132 RD |
2498 | |
2499 | wxPy_END_ALLOW_THREADS; | |
2500 | } _resultobj = Py_BuildValue("l",_result); | |
af309447 RD |
2501 | return _resultobj; |
2502 | } | |
2503 | ||
f6bcfd97 BP |
2504 | #define wxListEvent_GetOldIndex(_swigobj) (_swigobj->GetOldIndex()) |
2505 | static PyObject *_wrap_wxListEvent_GetOldIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2506 | PyObject * _resultobj; |
2507 | long _result; | |
2508 | wxListEvent * _arg0; | |
1d99702e | 2509 | PyObject * _argo0 = 0; |
efc5f224 | 2510 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2511 | |
2512 | self = self; | |
f6bcfd97 | 2513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetOldIndex",_kwnames,&_argo0)) |
8ab979d7 | 2514 | return NULL; |
1d99702e RD |
2515 | if (_argo0) { |
2516 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2517 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2518 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetOldIndex. Expected _wxListEvent_p."); |
8ab979d7 RD |
2519 | return NULL; |
2520 | } | |
2521 | } | |
cf694132 RD |
2522 | { |
2523 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2524 | _result = (long )wxListEvent_GetOldIndex(_arg0); |
cf694132 RD |
2525 | |
2526 | wxPy_END_ALLOW_THREADS; | |
2527 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
2528 | return _resultobj; |
2529 | } | |
2530 | ||
f6bcfd97 BP |
2531 | #define wxListEvent_GetOldItem(_swigobj) (_swigobj->GetOldItem()) |
2532 | static PyObject *_wrap_wxListEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
2533 | PyObject * _resultobj; |
2534 | long _result; | |
2535 | wxListEvent * _arg0; | |
1d99702e | 2536 | PyObject * _argo0 = 0; |
f6bcfd97 | 2537 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2538 | |
2539 | self = self; | |
f6bcfd97 | 2540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetOldItem",_kwnames,&_argo0)) |
af309447 | 2541 | return NULL; |
1d99702e RD |
2542 | if (_argo0) { |
2543 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2544 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2545 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetOldItem. Expected _wxListEvent_p."); |
af309447 RD |
2546 | return NULL; |
2547 | } | |
2548 | } | |
cf694132 RD |
2549 | { |
2550 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2551 | _result = (long )wxListEvent_GetOldItem(_arg0); |
cf694132 RD |
2552 | |
2553 | wxPy_END_ALLOW_THREADS; | |
2554 | } _resultobj = Py_BuildValue("l",_result); | |
af309447 RD |
2555 | return _resultobj; |
2556 | } | |
2557 | ||
f6bcfd97 BP |
2558 | #define wxListEvent_GetColumn(_swigobj) (_swigobj->GetColumn()) |
2559 | static PyObject *_wrap_wxListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2560 | PyObject * _resultobj; |
f6bcfd97 | 2561 | int _result; |
8ab979d7 | 2562 | wxListEvent * _arg0; |
1d99702e | 2563 | PyObject * _argo0 = 0; |
efc5f224 | 2564 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2565 | |
2566 | self = self; | |
f6bcfd97 | 2567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetColumn",_kwnames,&_argo0)) |
8ab979d7 | 2568 | return NULL; |
1d99702e RD |
2569 | if (_argo0) { |
2570 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2571 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2572 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetColumn. Expected _wxListEvent_p."); |
8ab979d7 RD |
2573 | return NULL; |
2574 | } | |
2575 | } | |
cf694132 RD |
2576 | { |
2577 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2578 | _result = (int )wxListEvent_GetColumn(_arg0); |
cf694132 RD |
2579 | |
2580 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 2581 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2582 | return _resultobj; |
2583 | } | |
2584 | ||
f6bcfd97 BP |
2585 | #define wxListEvent_Cancelled(_swigobj) (_swigobj->Cancelled()) |
2586 | static PyObject *_wrap_wxListEvent_Cancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2587 | PyObject * _resultobj; |
f6bcfd97 | 2588 | bool _result; |
af309447 | 2589 | wxListEvent * _arg0; |
1d99702e | 2590 | PyObject * _argo0 = 0; |
f6bcfd97 | 2591 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2592 | |
2593 | self = self; | |
f6bcfd97 | 2594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_Cancelled",_kwnames,&_argo0)) |
af309447 | 2595 | return NULL; |
1d99702e RD |
2596 | if (_argo0) { |
2597 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2598 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2599 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_Cancelled. Expected _wxListEvent_p."); |
af309447 RD |
2600 | return NULL; |
2601 | } | |
2602 | } | |
cf694132 RD |
2603 | { |
2604 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2605 | _result = (bool )wxListEvent_Cancelled(_arg0); |
cf694132 RD |
2606 | |
2607 | wxPy_END_ALLOW_THREADS; | |
2608 | } _resultobj = Py_BuildValue("i",_result); | |
af309447 RD |
2609 | return _resultobj; |
2610 | } | |
2611 | ||
f6bcfd97 BP |
2612 | #define wxListEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) |
2613 | static PyObject *_wrap_wxListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2614 | PyObject * _resultobj; |
f6bcfd97 | 2615 | wxPoint * _result; |
8ab979d7 | 2616 | wxListEvent * _arg0; |
1d99702e | 2617 | PyObject * _argo0 = 0; |
efc5f224 | 2618 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 2619 | char _ptemp[128]; |
8ab979d7 RD |
2620 | |
2621 | self = self; | |
f6bcfd97 | 2622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetPoint",_kwnames,&_argo0)) |
8ab979d7 | 2623 | return NULL; |
1d99702e RD |
2624 | if (_argo0) { |
2625 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2626 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2627 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetPoint. Expected _wxListEvent_p."); |
8ab979d7 RD |
2628 | return NULL; |
2629 | } | |
2630 | } | |
cf694132 RD |
2631 | { |
2632 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2633 | _result = new wxPoint (wxListEvent_GetPoint(_arg0)); |
cf694132 RD |
2634 | |
2635 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
2636 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
2637 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
2638 | return _resultobj; |
2639 | } | |
2640 | ||
f6bcfd97 BP |
2641 | #define wxListEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) |
2642 | static PyObject *_wrap_wxListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2643 | PyObject * _resultobj; |
f6bcfd97 | 2644 | wxString * _result; |
af309447 | 2645 | wxListEvent * _arg0; |
1d99702e | 2646 | PyObject * _argo0 = 0; |
f6bcfd97 | 2647 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2648 | |
2649 | self = self; | |
f6bcfd97 | 2650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetLabel",_kwnames,&_argo0)) |
af309447 | 2651 | return NULL; |
1d99702e RD |
2652 | if (_argo0) { |
2653 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2654 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2655 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetLabel. Expected _wxListEvent_p."); |
af309447 RD |
2656 | return NULL; |
2657 | } | |
2658 | } | |
cf694132 RD |
2659 | { |
2660 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
2661 | const wxString & _result_ref = wxListEvent_GetLabel(_arg0); |
2662 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
2663 | |
2664 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
2665 | }{ |
2666 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2667 | } | |
af309447 RD |
2668 | return _resultobj; |
2669 | } | |
2670 | ||
f6bcfd97 BP |
2671 | #define wxListEvent_GetText(_swigobj) (_swigobj->GetText()) |
2672 | static PyObject *_wrap_wxListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2673 | PyObject * _resultobj; |
f6bcfd97 | 2674 | wxString * _result; |
8ab979d7 | 2675 | wxListEvent * _arg0; |
1d99702e | 2676 | PyObject * _argo0 = 0; |
efc5f224 | 2677 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2678 | |
2679 | self = self; | |
f6bcfd97 | 2680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetText",_kwnames,&_argo0)) |
8ab979d7 | 2681 | return NULL; |
1d99702e RD |
2682 | if (_argo0) { |
2683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetText. Expected _wxListEvent_p."); |
8ab979d7 RD |
2686 | return NULL; |
2687 | } | |
2688 | } | |
cf694132 RD |
2689 | { |
2690 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
2691 | const wxString & _result_ref = wxListEvent_GetText(_arg0); |
2692 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
2693 | |
2694 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
2695 | }{ |
2696 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2697 | } | |
8ab979d7 RD |
2698 | return _resultobj; |
2699 | } | |
2700 | ||
f6bcfd97 BP |
2701 | #define wxListEvent_GetImage(_swigobj) (_swigobj->GetImage()) |
2702 | static PyObject *_wrap_wxListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2703 | PyObject * _resultobj; |
f6bcfd97 | 2704 | int _result; |
af309447 | 2705 | wxListEvent * _arg0; |
1d99702e | 2706 | PyObject * _argo0 = 0; |
f6bcfd97 | 2707 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2708 | |
2709 | self = self; | |
f6bcfd97 | 2710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetImage",_kwnames,&_argo0)) |
af309447 | 2711 | return NULL; |
1d99702e RD |
2712 | if (_argo0) { |
2713 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2714 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetImage. Expected _wxListEvent_p."); |
af309447 RD |
2716 | return NULL; |
2717 | } | |
2718 | } | |
cf694132 RD |
2719 | { |
2720 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2721 | _result = (int )wxListEvent_GetImage(_arg0); |
cf694132 RD |
2722 | |
2723 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 2724 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2725 | return _resultobj; |
2726 | } | |
2727 | ||
f6bcfd97 BP |
2728 | #define wxListEvent_GetData(_swigobj) (_swigobj->GetData()) |
2729 | static PyObject *_wrap_wxListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2730 | PyObject * _resultobj; |
f6bcfd97 | 2731 | long _result; |
8ab979d7 | 2732 | wxListEvent * _arg0; |
1d99702e | 2733 | PyObject * _argo0 = 0; |
efc5f224 | 2734 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2735 | |
2736 | self = self; | |
f6bcfd97 | 2737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetData",_kwnames,&_argo0)) |
8ab979d7 | 2738 | return NULL; |
1d99702e RD |
2739 | if (_argo0) { |
2740 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2741 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetData. Expected _wxListEvent_p."); |
8ab979d7 RD |
2743 | return NULL; |
2744 | } | |
2745 | } | |
cf694132 RD |
2746 | { |
2747 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2748 | _result = (long )wxListEvent_GetData(_arg0); |
cf694132 RD |
2749 | |
2750 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 2751 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2752 | return _resultobj; |
2753 | } | |
2754 | ||
f6bcfd97 BP |
2755 | #define wxListEvent_GetMask(_swigobj) (_swigobj->GetMask()) |
2756 | static PyObject *_wrap_wxListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2757 | PyObject * _resultobj; |
f6bcfd97 | 2758 | long _result; |
af309447 | 2759 | wxListEvent * _arg0; |
1d99702e | 2760 | PyObject * _argo0 = 0; |
f6bcfd97 | 2761 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2762 | |
2763 | self = self; | |
f6bcfd97 | 2764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetMask",_kwnames,&_argo0)) |
af309447 | 2765 | return NULL; |
1d99702e RD |
2766 | if (_argo0) { |
2767 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2768 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2769 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetMask. Expected _wxListEvent_p."); |
af309447 RD |
2770 | return NULL; |
2771 | } | |
2772 | } | |
cf694132 RD |
2773 | { |
2774 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2775 | _result = (long )wxListEvent_GetMask(_arg0); |
cf694132 RD |
2776 | |
2777 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 2778 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2779 | return _resultobj; |
2780 | } | |
2781 | ||
f6bcfd97 BP |
2782 | #define wxListEvent_GetItem(_swigobj) (_swigobj->GetItem()) |
2783 | static PyObject *_wrap_wxListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2784 | PyObject * _resultobj; |
2785 | wxListItem * _result; | |
2786 | wxListEvent * _arg0; | |
1d99702e | 2787 | PyObject * _argo0 = 0; |
efc5f224 | 2788 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2789 | char _ptemp[128]; |
2790 | ||
2791 | self = self; | |
f6bcfd97 | 2792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetItem",_kwnames,&_argo0)) |
8ab979d7 | 2793 | return NULL; |
1d99702e RD |
2794 | if (_argo0) { |
2795 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2796 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2797 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetItem. Expected _wxListEvent_p."); |
8ab979d7 RD |
2798 | return NULL; |
2799 | } | |
2800 | } | |
cf694132 RD |
2801 | { |
2802 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
2803 | const wxListItem & _result_ref = wxListEvent_GetItem(_arg0); |
2804 | _result = (wxListItem *) &_result_ref; | |
cf694132 RD |
2805 | |
2806 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
2807 | } if (_result) { |
2808 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p"); | |
2809 | _resultobj = Py_BuildValue("s",_ptemp); | |
2810 | } else { | |
2811 | Py_INCREF(Py_None); | |
2812 | _resultobj = Py_None; | |
2813 | } | |
8ab979d7 RD |
2814 | return _resultobj; |
2815 | } | |
2816 | ||
2817 | static void *SwigwxListCtrlTowxControl(void *ptr) { | |
2818 | wxListCtrl *src; | |
2819 | wxControl *dest; | |
2820 | src = (wxListCtrl *) ptr; | |
2821 | dest = (wxControl *) src; | |
2822 | return (void *) dest; | |
2823 | } | |
2824 | ||
2825 | static void *SwigwxListCtrlTowxWindow(void *ptr) { | |
2826 | wxListCtrl *src; | |
2827 | wxWindow *dest; | |
2828 | src = (wxListCtrl *) ptr; | |
2829 | dest = (wxWindow *) src; | |
2830 | return (void *) dest; | |
2831 | } | |
2832 | ||
2833 | static void *SwigwxListCtrlTowxEvtHandler(void *ptr) { | |
2834 | wxListCtrl *src; | |
2835 | wxEvtHandler *dest; | |
2836 | src = (wxListCtrl *) ptr; | |
2837 | dest = (wxEvtHandler *) src; | |
2838 | return (void *) dest; | |
2839 | } | |
2840 | ||
2841 | #define new_wxListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
efc5f224 | 2842 | static PyObject *_wrap_new_wxListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2843 | PyObject * _resultobj; |
2844 | wxListCtrl * _result; | |
2845 | wxWindow * _arg0; | |
2846 | wxWindowID _arg1; | |
b68dc582 RD |
2847 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
2848 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e | 2849 | long _arg4 = (long ) wxLC_ICON; |
b68dc582 | 2850 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
2851 | char * _arg6 = (char *) "listCtrl"; |
2852 | PyObject * _argo0 = 0; | |
2f90df85 RD |
2853 | wxPoint temp; |
2854 | PyObject * _obj2 = 0; | |
2855 | wxSize temp0; | |
2856 | PyObject * _obj3 = 0; | |
1d99702e | 2857 | PyObject * _argo5 = 0; |
efc5f224 | 2858 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
2859 | char _ptemp[128]; |
2860 | ||
2861 | self = self; | |
2f90df85 | 2862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlOs:new_wxListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) |
8ab979d7 | 2863 | return NULL; |
1d99702e RD |
2864 | if (_argo0) { |
2865 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2866 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2867 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListCtrl. Expected _wxWindow_p."); |
2868 | return NULL; | |
2869 | } | |
2870 | } | |
2f90df85 RD |
2871 | if (_obj2) |
2872 | { | |
2873 | _arg2 = &temp; | |
2874 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 2875 | return NULL; |
2f90df85 RD |
2876 | } |
2877 | if (_obj3) | |
2878 | { | |
2879 | _arg3 = &temp0; | |
2880 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 2881 | return NULL; |
2f90df85 | 2882 | } |
1d99702e RD |
2883 | if (_argo5) { |
2884 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
2885 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
8ab979d7 RD |
2886 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListCtrl. Expected _wxValidator_p."); |
2887 | return NULL; | |
2888 | } | |
2889 | } | |
cf694132 RD |
2890 | { |
2891 | wxPy_BEGIN_ALLOW_THREADS; | |
2892 | _result = (wxListCtrl *)new_wxListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); | |
2893 | ||
2894 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
2895 | } if (_result) { |
2896 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListCtrl_p"); | |
2897 | _resultobj = Py_BuildValue("s",_ptemp); | |
2898 | } else { | |
2899 | Py_INCREF(Py_None); | |
2900 | _resultobj = Py_None; | |
2901 | } | |
8ab979d7 RD |
2902 | return _resultobj; |
2903 | } | |
2904 | ||
2905 | #define wxListCtrl_Arrange(_swigobj,_swigarg0) (_swigobj->Arrange(_swigarg0)) | |
efc5f224 | 2906 | static PyObject *_wrap_wxListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2907 | PyObject * _resultobj; |
2908 | bool _result; | |
2909 | wxListCtrl * _arg0; | |
1d99702e RD |
2910 | int _arg1 = (int ) (wxLIST_ALIGN_DEFAULT); |
2911 | PyObject * _argo0 = 0; | |
efc5f224 | 2912 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
2913 | |
2914 | self = self; | |
efc5f224 | 2915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxListCtrl_Arrange",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2916 | return NULL; |
1d99702e RD |
2917 | if (_argo0) { |
2918 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2919 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
2920 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Arrange. Expected _wxListCtrl_p."); |
2921 | return NULL; | |
2922 | } | |
2923 | } | |
cf694132 RD |
2924 | { |
2925 | wxPy_BEGIN_ALLOW_THREADS; | |
2926 | _result = (bool )wxListCtrl_Arrange(_arg0,_arg1); | |
2927 | ||
2928 | wxPy_END_ALLOW_THREADS; | |
2929 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2930 | return _resultobj; |
2931 | } | |
2932 | ||
9c4165ad RD |
2933 | #define wxListCtrl_AssignImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->AssignImageList(_swigarg0,_swigarg1)) |
2934 | static PyObject *_wrap_wxListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2935 | PyObject * _resultobj; | |
2936 | wxListCtrl * _arg0; | |
2937 | wxImageList * _arg1; | |
2938 | int _arg2; | |
2939 | PyObject * _argo0 = 0; | |
2940 | PyObject * _argo1 = 0; | |
2941 | char *_kwnames[] = { "self","imageList","which", NULL }; | |
2942 | ||
2943 | self = self; | |
2944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_AssignImageList",_kwnames,&_argo0,&_argo1,&_arg2)) | |
2945 | return NULL; | |
2946 | if (_argo0) { | |
2947 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2948 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
2949 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_AssignImageList. Expected _wxListCtrl_p."); | |
2950 | return NULL; | |
2951 | } | |
2952 | } | |
2953 | if (_argo1) { | |
2954 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2955 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
2956 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_AssignImageList. Expected _wxImageList_p."); | |
2957 | return NULL; | |
2958 | } | |
2959 | } | |
2960 | { | |
2961 | wxPy_BEGIN_ALLOW_THREADS; | |
2962 | wxListCtrl_AssignImageList(_arg0,_arg1,_arg2); | |
2963 | ||
2964 | wxPy_END_ALLOW_THREADS; | |
2965 | } Py_INCREF(Py_None); | |
2966 | _resultobj = Py_None; | |
2967 | return _resultobj; | |
2968 | } | |
2969 | ||
8ab979d7 | 2970 | #define wxListCtrl_DeleteItem(_swigobj,_swigarg0) (_swigobj->DeleteItem(_swigarg0)) |
efc5f224 | 2971 | static PyObject *_wrap_wxListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2972 | PyObject * _resultobj; |
2973 | bool _result; | |
2974 | wxListCtrl * _arg0; | |
2975 | long _arg1; | |
1d99702e | 2976 | PyObject * _argo0 = 0; |
efc5f224 | 2977 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
2978 | |
2979 | self = self; | |
efc5f224 | 2980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_DeleteItem",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2981 | return NULL; |
1d99702e RD |
2982 | if (_argo0) { |
2983 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2984 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
2985 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteItem. Expected _wxListCtrl_p."); |
2986 | return NULL; | |
2987 | } | |
2988 | } | |
cf694132 RD |
2989 | { |
2990 | wxPy_BEGIN_ALLOW_THREADS; | |
2991 | _result = (bool )wxListCtrl_DeleteItem(_arg0,_arg1); | |
2992 | ||
2993 | wxPy_END_ALLOW_THREADS; | |
2994 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2995 | return _resultobj; |
2996 | } | |
2997 | ||
2998 | #define wxListCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) | |
efc5f224 | 2999 | static PyObject *_wrap_wxListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3000 | PyObject * _resultobj; |
3001 | bool _result; | |
3002 | wxListCtrl * _arg0; | |
1d99702e | 3003 | PyObject * _argo0 = 0; |
efc5f224 | 3004 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3005 | |
3006 | self = self; | |
efc5f224 | 3007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllItems",_kwnames,&_argo0)) |
8ab979d7 | 3008 | return NULL; |
1d99702e RD |
3009 | if (_argo0) { |
3010 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3011 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3012 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllItems. Expected _wxListCtrl_p."); |
3013 | return NULL; | |
3014 | } | |
3015 | } | |
cf694132 RD |
3016 | { |
3017 | wxPy_BEGIN_ALLOW_THREADS; | |
3018 | _result = (bool )wxListCtrl_DeleteAllItems(_arg0); | |
3019 | ||
3020 | wxPy_END_ALLOW_THREADS; | |
3021 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3022 | return _resultobj; |
3023 | } | |
3024 | ||
3025 | #define wxListCtrl_DeleteColumn(_swigobj,_swigarg0) (_swigobj->DeleteColumn(_swigarg0)) | |
efc5f224 | 3026 | static PyObject *_wrap_wxListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3027 | PyObject * _resultobj; |
3028 | bool _result; | |
3029 | wxListCtrl * _arg0; | |
3030 | int _arg1; | |
1d99702e | 3031 | PyObject * _argo0 = 0; |
efc5f224 | 3032 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
3033 | |
3034 | self = self; | |
efc5f224 | 3035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_DeleteColumn",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3036 | return NULL; |
1d99702e RD |
3037 | if (_argo0) { |
3038 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3039 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3040 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteColumn. Expected _wxListCtrl_p."); |
3041 | return NULL; | |
3042 | } | |
3043 | } | |
cf694132 RD |
3044 | { |
3045 | wxPy_BEGIN_ALLOW_THREADS; | |
3046 | _result = (bool )wxListCtrl_DeleteColumn(_arg0,_arg1); | |
3047 | ||
3048 | wxPy_END_ALLOW_THREADS; | |
3049 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3050 | return _resultobj; |
3051 | } | |
3052 | ||
3053 | #define wxListCtrl_DeleteAllColumns(_swigobj) (_swigobj->DeleteAllColumns()) | |
efc5f224 | 3054 | static PyObject *_wrap_wxListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3055 | PyObject * _resultobj; |
3056 | bool _result; | |
3057 | wxListCtrl * _arg0; | |
1d99702e | 3058 | PyObject * _argo0 = 0; |
efc5f224 | 3059 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3060 | |
3061 | self = self; | |
efc5f224 | 3062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllColumns",_kwnames,&_argo0)) |
8ab979d7 | 3063 | return NULL; |
1d99702e RD |
3064 | if (_argo0) { |
3065 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3066 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3067 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllColumns. Expected _wxListCtrl_p."); |
3068 | return NULL; | |
3069 | } | |
3070 | } | |
cf694132 RD |
3071 | { |
3072 | wxPy_BEGIN_ALLOW_THREADS; | |
3073 | _result = (bool )wxListCtrl_DeleteAllColumns(_arg0); | |
3074 | ||
3075 | wxPy_END_ALLOW_THREADS; | |
3076 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3077 | return _resultobj; |
3078 | } | |
3079 | ||
3080 | #define wxListCtrl_ClearAll(_swigobj) (_swigobj->ClearAll()) | |
efc5f224 | 3081 | static PyObject *_wrap_wxListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3082 | PyObject * _resultobj; |
3083 | wxListCtrl * _arg0; | |
1d99702e | 3084 | PyObject * _argo0 = 0; |
efc5f224 | 3085 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3086 | |
3087 | self = self; | |
efc5f224 | 3088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_ClearAll",_kwnames,&_argo0)) |
8ab979d7 | 3089 | return NULL; |
1d99702e RD |
3090 | if (_argo0) { |
3091 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3092 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3093 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ClearAll. Expected _wxListCtrl_p."); |
3094 | return NULL; | |
3095 | } | |
3096 | } | |
cf694132 RD |
3097 | { |
3098 | wxPy_BEGIN_ALLOW_THREADS; | |
3099 | wxListCtrl_ClearAll(_arg0); | |
3100 | ||
3101 | wxPy_END_ALLOW_THREADS; | |
3102 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3103 | _resultobj = Py_None; |
3104 | return _resultobj; | |
3105 | } | |
3106 | ||
3107 | #define wxListCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0)) | |
efc5f224 | 3108 | static PyObject *_wrap_wxListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 3109 | PyObject * _resultobj; |
8ab979d7 RD |
3110 | wxListCtrl * _arg0; |
3111 | long _arg1; | |
1d99702e | 3112 | PyObject * _argo0 = 0; |
efc5f224 | 3113 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3114 | |
3115 | self = self; | |
efc5f224 | 3116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EditLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3117 | return NULL; |
1d99702e RD |
3118 | if (_argo0) { |
3119 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3120 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EditLabel. Expected _wxListCtrl_p."); |
3122 | return NULL; | |
3123 | } | |
3124 | } | |
cf694132 RD |
3125 | { |
3126 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 3127 | wxListCtrl_EditLabel(_arg0,_arg1); |
cf694132 RD |
3128 | |
3129 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
3130 | } Py_INCREF(Py_None); |
3131 | _resultobj = Py_None; | |
be4d9c1f RD |
3132 | return _resultobj; |
3133 | } | |
3134 | ||
8ab979d7 | 3135 | #define wxListCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) |
efc5f224 | 3136 | static PyObject *_wrap_wxListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3137 | PyObject * _resultobj; |
3138 | bool _result; | |
3139 | wxListCtrl * _arg0; | |
3140 | long _arg1; | |
1d99702e | 3141 | PyObject * _argo0 = 0; |
efc5f224 | 3142 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3143 | |
3144 | self = self; | |
efc5f224 | 3145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EnsureVisible",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3146 | return NULL; |
1d99702e RD |
3147 | if (_argo0) { |
3148 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3149 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3150 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EnsureVisible. Expected _wxListCtrl_p."); |
3151 | return NULL; | |
3152 | } | |
3153 | } | |
cf694132 RD |
3154 | { |
3155 | wxPy_BEGIN_ALLOW_THREADS; | |
3156 | _result = (bool )wxListCtrl_EnsureVisible(_arg0,_arg1); | |
3157 | ||
3158 | wxPy_END_ALLOW_THREADS; | |
3159 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3160 | return _resultobj; |
3161 | } | |
3162 | ||
3163 | #define wxListCtrl_FindItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 3164 | static PyObject *_wrap_wxListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3165 | PyObject * _resultobj; |
3166 | long _result; | |
3167 | wxListCtrl * _arg0; | |
3168 | long _arg1; | |
3169 | wxString * _arg2; | |
1d99702e RD |
3170 | bool _arg3 = (bool ) FALSE; |
3171 | PyObject * _argo0 = 0; | |
8ab979d7 | 3172 | PyObject * _obj2 = 0; |
1d99702e | 3173 | int tempbool3 = (int) FALSE; |
efc5f224 | 3174 | char *_kwnames[] = { "self","start","str","partial", NULL }; |
8ab979d7 RD |
3175 | |
3176 | self = self; | |
efc5f224 | 3177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|i:wxListCtrl_FindItem",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3)) |
8ab979d7 | 3178 | return NULL; |
1d99702e RD |
3179 | if (_argo0) { |
3180 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3181 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3182 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItem. Expected _wxListCtrl_p."); |
3183 | return NULL; | |
3184 | } | |
3185 | } | |
3186 | { | |
2cd2fac8 RD |
3187 | #if PYTHON_API_VERSION >= 1009 |
3188 | char* tmpPtr; int tmpSize; | |
3189 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
3190 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
3191 | return NULL; | |
3192 | } | |
3193 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3194 | return NULL; | |
3195 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3196 | #else | |
8ab979d7 RD |
3197 | if (!PyString_Check(_obj2)) { |
3198 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3199 | return NULL; | |
3200 | } | |
2cd2fac8 RD |
3201 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
3202 | #endif | |
8ab979d7 RD |
3203 | } |
3204 | _arg3 = (bool ) tempbool3; | |
cf694132 RD |
3205 | { |
3206 | wxPy_BEGIN_ALLOW_THREADS; | |
3207 | _result = (long )wxListCtrl_FindItem(_arg0,_arg1,*_arg2,_arg3); | |
3208 | ||
3209 | wxPy_END_ALLOW_THREADS; | |
3210 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
3211 | { |
3212 | if (_obj2) | |
3213 | delete _arg2; | |
3214 | } | |
3215 | return _resultobj; | |
3216 | } | |
3217 | ||
3218 | #define wxListCtrl_FindItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindItem(_swigarg0,_swigarg1)) | |
efc5f224 | 3219 | static PyObject *_wrap_wxListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3220 | PyObject * _resultobj; |
3221 | long _result; | |
3222 | wxListCtrl * _arg0; | |
3223 | long _arg1; | |
3224 | long _arg2; | |
1d99702e | 3225 | PyObject * _argo0 = 0; |
efc5f224 | 3226 | char *_kwnames[] = { "self","start","data", NULL }; |
8ab979d7 RD |
3227 | |
3228 | self = self; | |
efc5f224 | 3229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_FindItemData",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3230 | return NULL; |
1d99702e RD |
3231 | if (_argo0) { |
3232 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3233 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3234 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemData. Expected _wxListCtrl_p."); |
3235 | return NULL; | |
3236 | } | |
3237 | } | |
cf694132 RD |
3238 | { |
3239 | wxPy_BEGIN_ALLOW_THREADS; | |
3240 | _result = (long )wxListCtrl_FindItemData(_arg0,_arg1,_arg2); | |
3241 | ||
3242 | wxPy_END_ALLOW_THREADS; | |
3243 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
3244 | return _resultobj; |
3245 | } | |
3246 | ||
3247 | #define wxListCtrl_FindItemAtPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 3248 | static PyObject *_wrap_wxListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3249 | PyObject * _resultobj; |
3250 | long _result; | |
3251 | wxListCtrl * _arg0; | |
3252 | long _arg1; | |
3253 | wxPoint * _arg2; | |
3254 | int _arg3; | |
1d99702e | 3255 | PyObject * _argo0 = 0; |
2f90df85 RD |
3256 | wxPoint temp; |
3257 | PyObject * _obj2 = 0; | |
efc5f224 | 3258 | char *_kwnames[] = { "self","start","pt","direction", NULL }; |
8ab979d7 RD |
3259 | |
3260 | self = self; | |
2f90df85 | 3261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_FindItemAtPos",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) |
8ab979d7 | 3262 | return NULL; |
1d99702e RD |
3263 | if (_argo0) { |
3264 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3265 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3266 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemAtPos. Expected _wxListCtrl_p."); |
3267 | return NULL; | |
3268 | } | |
3269 | } | |
2f90df85 RD |
3270 | { |
3271 | _arg2 = &temp; | |
3272 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 3273 | return NULL; |
2f90df85 | 3274 | } |
cf694132 RD |
3275 | { |
3276 | wxPy_BEGIN_ALLOW_THREADS; | |
3277 | _result = (long )wxListCtrl_FindItemAtPos(_arg0,_arg1,*_arg2,_arg3); | |
3278 | ||
3279 | wxPy_END_ALLOW_THREADS; | |
3280 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
3281 | return _resultobj; |
3282 | } | |
3283 | ||
3284 | #define wxListCtrl_GetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetColumn(_swigarg0,_swigarg1)) | |
efc5f224 | 3285 | static PyObject *_wrap_wxListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3286 | PyObject * _resultobj; |
3287 | bool _result; | |
3288 | wxListCtrl * _arg0; | |
3289 | int _arg1; | |
3290 | wxListItem * _arg2; | |
1d99702e RD |
3291 | PyObject * _argo0 = 0; |
3292 | PyObject * _argo2 = 0; | |
efc5f224 | 3293 | char *_kwnames[] = { "self","col","item", NULL }; |
8ab979d7 RD |
3294 | |
3295 | self = self; | |
efc5f224 | 3296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_GetColumn",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 3297 | return NULL; |
1d99702e RD |
3298 | if (_argo0) { |
3299 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3300 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3301 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumn. Expected _wxListCtrl_p."); |
3302 | return NULL; | |
3303 | } | |
3304 | } | |
1d99702e RD |
3305 | if (_argo2) { |
3306 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3307 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
8ab979d7 RD |
3308 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_GetColumn. Expected _wxListItem_p."); |
3309 | return NULL; | |
3310 | } | |
3311 | } | |
cf694132 RD |
3312 | { |
3313 | wxPy_BEGIN_ALLOW_THREADS; | |
3314 | _result = (bool )wxListCtrl_GetColumn(_arg0,_arg1,*_arg2); | |
3315 | ||
3316 | wxPy_END_ALLOW_THREADS; | |
3317 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3318 | return _resultobj; |
3319 | } | |
3320 | ||
3321 | #define wxListCtrl_GetColumnWidth(_swigobj,_swigarg0) (_swigobj->GetColumnWidth(_swigarg0)) | |
efc5f224 | 3322 | static PyObject *_wrap_wxListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3323 | PyObject * _resultobj; |
3324 | int _result; | |
3325 | wxListCtrl * _arg0; | |
3326 | int _arg1; | |
1d99702e | 3327 | PyObject * _argo0 = 0; |
efc5f224 | 3328 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
3329 | |
3330 | self = self; | |
efc5f224 | 3331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetColumnWidth",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3332 | return NULL; |
1d99702e RD |
3333 | if (_argo0) { |
3334 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3335 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3336 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnWidth. Expected _wxListCtrl_p."); |
3337 | return NULL; | |
3338 | } | |
3339 | } | |
cf694132 RD |
3340 | { |
3341 | wxPy_BEGIN_ALLOW_THREADS; | |
3342 | _result = (int )wxListCtrl_GetColumnWidth(_arg0,_arg1); | |
3343 | ||
3344 | wxPy_END_ALLOW_THREADS; | |
3345 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3346 | return _resultobj; |
3347 | } | |
3348 | ||
3349 | #define wxListCtrl_GetCountPerPage(_swigobj) (_swigobj->GetCountPerPage()) | |
efc5f224 | 3350 | static PyObject *_wrap_wxListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3351 | PyObject * _resultobj; |
3352 | int _result; | |
3353 | wxListCtrl * _arg0; | |
1d99702e | 3354 | PyObject * _argo0 = 0; |
efc5f224 | 3355 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3356 | |
3357 | self = self; | |
efc5f224 | 3358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetCountPerPage",_kwnames,&_argo0)) |
8ab979d7 | 3359 | return NULL; |
1d99702e RD |
3360 | if (_argo0) { |
3361 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3362 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3363 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetCountPerPage. Expected _wxListCtrl_p."); |
3364 | return NULL; | |
3365 | } | |
3366 | } | |
cf694132 RD |
3367 | { |
3368 | wxPy_BEGIN_ALLOW_THREADS; | |
3369 | _result = (int )wxListCtrl_GetCountPerPage(_arg0); | |
3370 | ||
3371 | wxPy_END_ALLOW_THREADS; | |
3372 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3373 | return _resultobj; |
3374 | } | |
3375 | ||
3376 | #define wxListCtrl_GetImageList(_swigobj,_swigarg0) (_swigobj->GetImageList(_swigarg0)) | |
efc5f224 | 3377 | static PyObject *_wrap_wxListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3378 | PyObject * _resultobj; |
3379 | wxImageList * _result; | |
3380 | wxListCtrl * _arg0; | |
3381 | int _arg1; | |
1d99702e | 3382 | PyObject * _argo0 = 0; |
efc5f224 | 3383 | char *_kwnames[] = { "self","which", NULL }; |
8ab979d7 RD |
3384 | char _ptemp[128]; |
3385 | ||
3386 | self = self; | |
efc5f224 | 3387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetImageList",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3388 | return NULL; |
1d99702e RD |
3389 | if (_argo0) { |
3390 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3391 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3392 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetImageList. Expected _wxListCtrl_p."); |
3393 | return NULL; | |
3394 | } | |
3395 | } | |
cf694132 RD |
3396 | { |
3397 | wxPy_BEGIN_ALLOW_THREADS; | |
3398 | _result = (wxImageList *)wxListCtrl_GetImageList(_arg0,_arg1); | |
3399 | ||
3400 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
3401 | } if (_result) { |
3402 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p"); | |
3403 | _resultobj = Py_BuildValue("s",_ptemp); | |
3404 | } else { | |
3405 | Py_INCREF(Py_None); | |
3406 | _resultobj = Py_None; | |
3407 | } | |
8ab979d7 RD |
3408 | return _resultobj; |
3409 | } | |
3410 | ||
3411 | #define wxListCtrl_GetItemData(_swigobj,_swigarg0) (_swigobj->GetItemData(_swigarg0)) | |
efc5f224 | 3412 | static PyObject *_wrap_wxListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3413 | PyObject * _resultobj; |
3414 | long _result; | |
3415 | wxListCtrl * _arg0; | |
3416 | long _arg1; | |
1d99702e | 3417 | PyObject * _argo0 = 0; |
efc5f224 | 3418 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3419 | |
3420 | self = self; | |
efc5f224 | 3421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemData",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3422 | return NULL; |
1d99702e RD |
3423 | if (_argo0) { |
3424 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3425 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3426 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemData. Expected _wxListCtrl_p."); |
3427 | return NULL; | |
3428 | } | |
3429 | } | |
cf694132 RD |
3430 | { |
3431 | wxPy_BEGIN_ALLOW_THREADS; | |
3432 | _result = (long )wxListCtrl_GetItemData(_arg0,_arg1); | |
3433 | ||
3434 | wxPy_END_ALLOW_THREADS; | |
3435 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
3436 | return _resultobj; |
3437 | } | |
3438 | ||
e166644c | 3439 | static wxListItem * wxListCtrl_GetItem(wxListCtrl *self,long itemId,int col) { |
8ab979d7 | 3440 | wxListItem* info = new wxListItem; |
0699c864 | 3441 | info->m_itemId = itemId; |
e166644c | 3442 | info->m_col = col; |
f17fee68 | 3443 | info->m_mask = 0xFFFF; |
8ab979d7 RD |
3444 | self->GetItem(*info); |
3445 | return info; | |
3446 | } | |
efc5f224 | 3447 | static PyObject *_wrap_wxListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3448 | PyObject * _resultobj; |
3449 | wxListItem * _result; | |
3450 | wxListCtrl * _arg0; | |
0699c864 | 3451 | long _arg1; |
e166644c | 3452 | int _arg2 = (int ) 0; |
1d99702e | 3453 | PyObject * _argo0 = 0; |
e166644c | 3454 | char *_kwnames[] = { "self","itemId","col", NULL }; |
8ab979d7 RD |
3455 | char _ptemp[128]; |
3456 | ||
3457 | self = self; | |
e166644c | 3458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItem",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3459 | return NULL; |
1d99702e RD |
3460 | if (_argo0) { |
3461 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3462 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3463 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItem. Expected _wxListCtrl_p."); |
3464 | return NULL; | |
3465 | } | |
3466 | } | |
cf694132 RD |
3467 | { |
3468 | wxPy_BEGIN_ALLOW_THREADS; | |
e166644c | 3469 | _result = (wxListItem *)wxListCtrl_GetItem(_arg0,_arg1,_arg2); |
cf694132 RD |
3470 | |
3471 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
3472 | } if (_result) { |
3473 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p"); | |
3474 | _resultobj = Py_BuildValue("s",_ptemp); | |
3475 | } else { | |
3476 | Py_INCREF(Py_None); | |
3477 | _resultobj = Py_None; | |
3478 | } | |
8ab979d7 RD |
3479 | return _resultobj; |
3480 | } | |
3481 | ||
3482 | static wxPoint * wxListCtrl_GetItemPosition(wxListCtrl *self,long item) { | |
3483 | wxPoint* pos = new wxPoint; | |
3484 | self->GetItemPosition(item, *pos); | |
3485 | return pos; | |
3486 | } | |
efc5f224 | 3487 | static PyObject *_wrap_wxListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3488 | PyObject * _resultobj; |
3489 | wxPoint * _result; | |
3490 | wxListCtrl * _arg0; | |
3491 | long _arg1; | |
1d99702e | 3492 | PyObject * _argo0 = 0; |
efc5f224 | 3493 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3494 | char _ptemp[128]; |
3495 | ||
3496 | self = self; | |
efc5f224 | 3497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemPosition",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3498 | return NULL; |
1d99702e RD |
3499 | if (_argo0) { |
3500 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3501 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3502 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemPosition. Expected _wxListCtrl_p."); |
3503 | return NULL; | |
3504 | } | |
3505 | } | |
cf694132 RD |
3506 | { |
3507 | wxPy_BEGIN_ALLOW_THREADS; | |
3508 | _result = (wxPoint *)wxListCtrl_GetItemPosition(_arg0,_arg1); | |
3509 | ||
3510 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
3511 | } if (_result) { |
3512 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
3513 | _resultobj = Py_BuildValue("s",_ptemp); | |
3514 | } else { | |
3515 | Py_INCREF(Py_None); | |
3516 | _resultobj = Py_None; | |
3517 | } | |
8ab979d7 RD |
3518 | return _resultobj; |
3519 | } | |
3520 | ||
3521 | static wxRect * wxListCtrl_GetItemRect(wxListCtrl *self,long item,int code) { | |
3522 | wxRect* rect= new wxRect; | |
3523 | self->GetItemRect(item, *rect, code); | |
3524 | return rect; | |
3525 | } | |
efc5f224 | 3526 | static PyObject *_wrap_wxListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3527 | PyObject * _resultobj; |
3528 | wxRect * _result; | |
3529 | wxListCtrl * _arg0; | |
3530 | long _arg1; | |
1d99702e RD |
3531 | int _arg2 = (int ) (wxLIST_RECT_BOUNDS); |
3532 | PyObject * _argo0 = 0; | |
efc5f224 | 3533 | char *_kwnames[] = { "self","item","code", NULL }; |
8ab979d7 RD |
3534 | char _ptemp[128]; |
3535 | ||
3536 | self = self; | |
efc5f224 | 3537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItemRect",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3538 | return NULL; |
1d99702e RD |
3539 | if (_argo0) { |
3540 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3541 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3542 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemRect. Expected _wxListCtrl_p."); |
3543 | return NULL; | |
3544 | } | |
3545 | } | |
cf694132 RD |
3546 | { |
3547 | wxPy_BEGIN_ALLOW_THREADS; | |
3548 | _result = (wxRect *)wxListCtrl_GetItemRect(_arg0,_arg1,_arg2); | |
3549 | ||
3550 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
3551 | } if (_result) { |
3552 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRect_p"); | |
3553 | _resultobj = Py_BuildValue("s",_ptemp); | |
3554 | } else { | |
3555 | Py_INCREF(Py_None); | |
3556 | _resultobj = Py_None; | |
3557 | } | |
8ab979d7 RD |
3558 | return _resultobj; |
3559 | } | |
3560 | ||
3561 | #define wxListCtrl_GetItemState(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemState(_swigarg0,_swigarg1)) | |
efc5f224 | 3562 | static PyObject *_wrap_wxListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3563 | PyObject * _resultobj; |
3564 | int _result; | |
3565 | wxListCtrl * _arg0; | |
3566 | long _arg1; | |
3567 | long _arg2; | |
1d99702e | 3568 | PyObject * _argo0 = 0; |
efc5f224 | 3569 | char *_kwnames[] = { "self","item","stateMask", NULL }; |
8ab979d7 RD |
3570 | |
3571 | self = self; | |
efc5f224 | 3572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_GetItemState",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3573 | return NULL; |
1d99702e RD |
3574 | if (_argo0) { |
3575 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3576 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3577 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemState. Expected _wxListCtrl_p."); |
3578 | return NULL; | |
3579 | } | |
3580 | } | |
cf694132 RD |
3581 | { |
3582 | wxPy_BEGIN_ALLOW_THREADS; | |
3583 | _result = (int )wxListCtrl_GetItemState(_arg0,_arg1,_arg2); | |
3584 | ||
3585 | wxPy_END_ALLOW_THREADS; | |
3586 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3587 | return _resultobj; |
3588 | } | |
3589 | ||
3590 | #define wxListCtrl_GetItemCount(_swigobj) (_swigobj->GetItemCount()) | |
efc5f224 | 3591 | static PyObject *_wrap_wxListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3592 | PyObject * _resultobj; |
3593 | int _result; | |
3594 | wxListCtrl * _arg0; | |
1d99702e | 3595 | PyObject * _argo0 = 0; |
efc5f224 | 3596 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3597 | |
3598 | self = self; | |
efc5f224 | 3599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetItemCount",_kwnames,&_argo0)) |
8ab979d7 | 3600 | return NULL; |
1d99702e RD |
3601 | if (_argo0) { |
3602 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3603 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3604 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemCount. Expected _wxListCtrl_p."); |
3605 | return NULL; | |
3606 | } | |
3607 | } | |
cf694132 RD |
3608 | { |
3609 | wxPy_BEGIN_ALLOW_THREADS; | |
3610 | _result = (int )wxListCtrl_GetItemCount(_arg0); | |
3611 | ||
3612 | wxPy_END_ALLOW_THREADS; | |
3613 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3614 | return _resultobj; |
3615 | } | |
3616 | ||
3617 | #define wxListCtrl_GetItemSpacing(_swigobj,_swigarg0) (_swigobj->GetItemSpacing(_swigarg0)) | |
efc5f224 | 3618 | static PyObject *_wrap_wxListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3619 | PyObject * _resultobj; |
3620 | int _result; | |
3621 | wxListCtrl * _arg0; | |
3622 | bool _arg1; | |
1d99702e | 3623 | PyObject * _argo0 = 0; |
8ab979d7 | 3624 | int tempbool1; |
efc5f224 | 3625 | char *_kwnames[] = { "self","isSmall", NULL }; |
8ab979d7 RD |
3626 | |
3627 | self = self; | |
efc5f224 | 3628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetItemSpacing",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3629 | return NULL; |
1d99702e RD |
3630 | if (_argo0) { |
3631 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3632 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3633 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemSpacing. Expected _wxListCtrl_p."); |
3634 | return NULL; | |
3635 | } | |
3636 | } | |
3637 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
3638 | { |
3639 | wxPy_BEGIN_ALLOW_THREADS; | |
3640 | _result = (int )wxListCtrl_GetItemSpacing(_arg0,_arg1); | |
3641 | ||
3642 | wxPy_END_ALLOW_THREADS; | |
3643 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3644 | return _resultobj; |
3645 | } | |
3646 | ||
3647 | #define wxListCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) | |
efc5f224 | 3648 | static PyObject *_wrap_wxListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3649 | PyObject * _resultobj; |
3650 | wxString * _result; | |
3651 | wxListCtrl * _arg0; | |
3652 | long _arg1; | |
1d99702e | 3653 | PyObject * _argo0 = 0; |
efc5f224 | 3654 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3655 | |
3656 | self = self; | |
efc5f224 | 3657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemText",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3658 | return NULL; |
1d99702e RD |
3659 | if (_argo0) { |
3660 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3661 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3662 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemText. Expected _wxListCtrl_p."); |
3663 | return NULL; | |
3664 | } | |
3665 | } | |
8ab979d7 | 3666 | { |
cf694132 RD |
3667 | wxPy_BEGIN_ALLOW_THREADS; |
3668 | _result = new wxString (wxListCtrl_GetItemText(_arg0,_arg1)); | |
3669 | ||
3670 | wxPy_END_ALLOW_THREADS; | |
3671 | }{ | |
eec92d76 | 3672 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
3673 | } |
3674 | { | |
3675 | delete _result; | |
3676 | } | |
3677 | return _resultobj; | |
3678 | } | |
3679 | ||
3680 | #define wxListCtrl_GetNextItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetNextItem(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 3681 | static PyObject *_wrap_wxListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3682 | PyObject * _resultobj; |
3683 | long _result; | |
3684 | wxListCtrl * _arg0; | |
3685 | long _arg1; | |
1d99702e RD |
3686 | int _arg2 = (int ) (wxLIST_NEXT_ALL); |
3687 | int _arg3 = (int ) (wxLIST_STATE_DONTCARE); | |
3688 | PyObject * _argo0 = 0; | |
efc5f224 | 3689 | char *_kwnames[] = { "self","item","geometry","state", NULL }; |
8ab979d7 RD |
3690 | |
3691 | self = self; | |
efc5f224 | 3692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:wxListCtrl_GetNextItem",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 3693 | return NULL; |
1d99702e RD |
3694 | if (_argo0) { |
3695 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3696 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3697 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetNextItem. Expected _wxListCtrl_p."); |
3698 | return NULL; | |
3699 | } | |
3700 | } | |
cf694132 RD |
3701 | { |
3702 | wxPy_BEGIN_ALLOW_THREADS; | |
3703 | _result = (long )wxListCtrl_GetNextItem(_arg0,_arg1,_arg2,_arg3); | |
3704 | ||
3705 | wxPy_END_ALLOW_THREADS; | |
3706 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
3707 | return _resultobj; |
3708 | } | |
3709 | ||
3710 | #define wxListCtrl_GetSelectedItemCount(_swigobj) (_swigobj->GetSelectedItemCount()) | |
efc5f224 | 3711 | static PyObject *_wrap_wxListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3712 | PyObject * _resultobj; |
3713 | int _result; | |
3714 | wxListCtrl * _arg0; | |
1d99702e | 3715 | PyObject * _argo0 = 0; |
efc5f224 | 3716 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3717 | |
3718 | self = self; | |
efc5f224 | 3719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetSelectedItemCount",_kwnames,&_argo0)) |
8ab979d7 | 3720 | return NULL; |
1d99702e RD |
3721 | if (_argo0) { |
3722 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3723 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3724 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetSelectedItemCount. Expected _wxListCtrl_p."); |
3725 | return NULL; | |
3726 | } | |
3727 | } | |
cf694132 RD |
3728 | { |
3729 | wxPy_BEGIN_ALLOW_THREADS; | |
3730 | _result = (int )wxListCtrl_GetSelectedItemCount(_arg0); | |
3731 | ||
3732 | wxPy_END_ALLOW_THREADS; | |
3733 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3734 | return _resultobj; |
3735 | } | |
3736 | ||
8ab979d7 | 3737 | #define wxListCtrl_GetTopItem(_swigobj) (_swigobj->GetTopItem()) |
efc5f224 | 3738 | static PyObject *_wrap_wxListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3739 | PyObject * _resultobj; |
3740 | long _result; | |
3741 | wxListCtrl * _arg0; | |
1d99702e | 3742 | PyObject * _argo0 = 0; |
efc5f224 | 3743 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3744 | |
3745 | self = self; | |
efc5f224 | 3746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTopItem",_kwnames,&_argo0)) |
8ab979d7 | 3747 | return NULL; |
1d99702e RD |
3748 | if (_argo0) { |
3749 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3750 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3751 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTopItem. Expected _wxListCtrl_p."); |
3752 | return NULL; | |
3753 | } | |
3754 | } | |
cf694132 RD |
3755 | { |
3756 | wxPy_BEGIN_ALLOW_THREADS; | |
3757 | _result = (long )wxListCtrl_GetTopItem(_arg0); | |
3758 | ||
3759 | wxPy_END_ALLOW_THREADS; | |
3760 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
3761 | return _resultobj; |
3762 | } | |
3763 | ||
3764 | #define wxListCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) | |
efc5f224 | 3765 | static PyObject *_wrap_wxListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3766 | PyObject * _resultobj; |
3767 | long _result; | |
3768 | wxListCtrl * _arg0; | |
3769 | wxPoint * _arg1; | |
3770 | int * _arg2; | |
3771 | int temp; | |
1d99702e | 3772 | PyObject * _argo0 = 0; |
2f90df85 RD |
3773 | wxPoint temp0; |
3774 | PyObject * _obj1 = 0; | |
efc5f224 | 3775 | char *_kwnames[] = { "self","point", NULL }; |
8ab979d7 RD |
3776 | |
3777 | self = self; | |
3778 | { | |
3779 | _arg2 = &temp; | |
3780 | } | |
2f90df85 | 3781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_HitTest",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3782 | return NULL; |
1d99702e RD |
3783 | if (_argo0) { |
3784 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3785 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3786 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_HitTest. Expected _wxListCtrl_p."); |
3787 | return NULL; | |
3788 | } | |
3789 | } | |
2f90df85 RD |
3790 | { |
3791 | _arg1 = &temp0; | |
3792 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 3793 | return NULL; |
2f90df85 | 3794 | } |
cf694132 RD |
3795 | { |
3796 | wxPy_BEGIN_ALLOW_THREADS; | |
3797 | _result = (long )wxListCtrl_HitTest(_arg0,*_arg1,*_arg2); | |
3798 | ||
3799 | wxPy_END_ALLOW_THREADS; | |
3800 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
3801 | { |
3802 | PyObject *o; | |
3803 | o = PyInt_FromLong((long) (*_arg2)); | |
3804 | _resultobj = t_output_helper(_resultobj, o); | |
3805 | } | |
3806 | return _resultobj; | |
3807 | } | |
3808 | ||
c368d904 RD |
3809 | #define wxListCtrl_InsertColumnInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertColumn(_swigarg0,_swigarg1)) |
3810 | static PyObject *_wrap_wxListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3811 | PyObject * _resultobj; |
3812 | long _result; | |
3813 | wxListCtrl * _arg0; | |
3814 | long _arg1; | |
3815 | wxListItem * _arg2; | |
1d99702e RD |
3816 | PyObject * _argo0 = 0; |
3817 | PyObject * _argo2 = 0; | |
efc5f224 | 3818 | char *_kwnames[] = { "self","col","info", NULL }; |
8ab979d7 RD |
3819 | |
3820 | self = self; | |
c368d904 | 3821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertColumnInfo",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 3822 | return NULL; |
1d99702e RD |
3823 | if (_argo0) { |
3824 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3825 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
c368d904 | 3826 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumnInfo. Expected _wxListCtrl_p."); |
8ab979d7 RD |
3827 | return NULL; |
3828 | } | |
3829 | } | |
1d99702e RD |
3830 | if (_argo2) { |
3831 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3832 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
c368d904 | 3833 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_InsertColumnInfo. Expected _wxListItem_p."); |
8ab979d7 RD |
3834 | return NULL; |
3835 | } | |
3836 | } | |
cf694132 RD |
3837 | { |
3838 | wxPy_BEGIN_ALLOW_THREADS; | |
c368d904 | 3839 | _result = (long )wxListCtrl_InsertColumnInfo(_arg0,_arg1,*_arg2); |
cf694132 RD |
3840 | |
3841 | wxPy_END_ALLOW_THREADS; | |
3842 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
3843 | return _resultobj; |
3844 | } | |
3845 | ||
3846 | #define wxListCtrl_InsertColumn(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertColumn(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
efc5f224 | 3847 | static PyObject *_wrap_wxListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3848 | PyObject * _resultobj; |
3849 | long _result; | |
3850 | wxListCtrl * _arg0; | |
3851 | long _arg1; | |
3852 | wxString * _arg2; | |
1d99702e RD |
3853 | int _arg3 = (int ) (wxLIST_FORMAT_LEFT); |
3854 | int _arg4 = (int ) -1; | |
3855 | PyObject * _argo0 = 0; | |
8ab979d7 | 3856 | PyObject * _obj2 = 0; |
efc5f224 | 3857 | char *_kwnames[] = { "self","col","heading","format","width", NULL }; |
8ab979d7 RD |
3858 | |
3859 | self = self; | |
efc5f224 | 3860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|ii:wxListCtrl_InsertColumn",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3,&_arg4)) |
8ab979d7 | 3861 | return NULL; |
1d99702e RD |
3862 | if (_argo0) { |
3863 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3864 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3865 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumn. Expected _wxListCtrl_p."); |
3866 | return NULL; | |
3867 | } | |
3868 | } | |
3869 | { | |
2cd2fac8 RD |
3870 | #if PYTHON_API_VERSION >= 1009 |
3871 | char* tmpPtr; int tmpSize; | |
3872 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
3873 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
3874 | return NULL; | |
3875 | } | |
3876 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3877 | return NULL; | |
3878 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3879 | #else | |
8ab979d7 RD |
3880 | if (!PyString_Check(_obj2)) { |
3881 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3882 | return NULL; | |
3883 | } | |
2cd2fac8 RD |
3884 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
3885 | #endif | |
8ab979d7 | 3886 | } |
cf694132 RD |
3887 | { |
3888 | wxPy_BEGIN_ALLOW_THREADS; | |
3889 | _result = (long )wxListCtrl_InsertColumn(_arg0,_arg1,*_arg2,_arg3,_arg4); | |
3890 | ||
3891 | wxPy_END_ALLOW_THREADS; | |
3892 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
3893 | { |
3894 | if (_obj2) | |
3895 | delete _arg2; | |
3896 | } | |
3897 | return _resultobj; | |
3898 | } | |
3899 | ||
3900 | #define wxListCtrl_InsertItem(_swigobj,_swigarg0) (_swigobj->InsertItem(_swigarg0)) | |
efc5f224 | 3901 | static PyObject *_wrap_wxListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3902 | PyObject * _resultobj; |
3903 | long _result; | |
3904 | wxListCtrl * _arg0; | |
3905 | wxListItem * _arg1; | |
1d99702e RD |
3906 | PyObject * _argo0 = 0; |
3907 | PyObject * _argo1 = 0; | |
efc5f224 | 3908 | char *_kwnames[] = { "self","info", NULL }; |
8ab979d7 RD |
3909 | |
3910 | self = self; | |
efc5f224 | 3911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_InsertItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3912 | return NULL; |
1d99702e RD |
3913 | if (_argo0) { |
3914 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3915 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3916 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertItem. Expected _wxListCtrl_p."); |
3917 | return NULL; | |
3918 | } | |
3919 | } | |
1d99702e RD |
3920 | if (_argo1) { |
3921 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3922 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
8ab979d7 RD |
3923 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_InsertItem. Expected _wxListItem_p."); |
3924 | return NULL; | |
3925 | } | |
3926 | } | |
cf694132 RD |
3927 | { |
3928 | wxPy_BEGIN_ALLOW_THREADS; | |
3929 | _result = (long )wxListCtrl_InsertItem(_arg0,*_arg1); | |
3930 | ||
3931 | wxPy_END_ALLOW_THREADS; | |
3932 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
3933 | return _resultobj; |
3934 | } | |
3935 | ||
3936 | #define wxListCtrl_InsertStringItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) | |
efc5f224 | 3937 | static PyObject *_wrap_wxListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3938 | PyObject * _resultobj; |
3939 | long _result; | |
3940 | wxListCtrl * _arg0; | |
3941 | long _arg1; | |
3942 | wxString * _arg2; | |
1d99702e | 3943 | PyObject * _argo0 = 0; |
8ab979d7 | 3944 | PyObject * _obj2 = 0; |
efc5f224 | 3945 | char *_kwnames[] = { "self","index","label", NULL }; |
8ab979d7 RD |
3946 | |
3947 | self = self; | |
efc5f224 | 3948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertStringItem",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 3949 | return NULL; |
1d99702e RD |
3950 | if (_argo0) { |
3951 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3952 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3953 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertStringItem. Expected _wxListCtrl_p."); |
3954 | return NULL; | |
3955 | } | |
3956 | } | |
3957 | { | |
2cd2fac8 RD |
3958 | #if PYTHON_API_VERSION >= 1009 |
3959 | char* tmpPtr; int tmpSize; | |
3960 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
3961 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
3962 | return NULL; | |
3963 | } | |
3964 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3965 | return NULL; | |
3966 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3967 | #else | |
8ab979d7 RD |
3968 | if (!PyString_Check(_obj2)) { |
3969 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3970 | return NULL; | |
3971 | } | |
2cd2fac8 RD |
3972 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
3973 | #endif | |
8ab979d7 | 3974 | } |
cf694132 RD |
3975 | { |
3976 | wxPy_BEGIN_ALLOW_THREADS; | |
3977 | _result = (long )wxListCtrl_InsertStringItem(_arg0,_arg1,*_arg2); | |
3978 | ||
3979 | wxPy_END_ALLOW_THREADS; | |
3980 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
3981 | { |
3982 | if (_obj2) | |
3983 | delete _arg2; | |
3984 | } | |
3985 | return _resultobj; | |
3986 | } | |
3987 | ||
3988 | #define wxListCtrl_InsertImageItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) | |
efc5f224 | 3989 | static PyObject *_wrap_wxListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3990 | PyObject * _resultobj; |
3991 | long _result; | |
3992 | wxListCtrl * _arg0; | |
3993 | long _arg1; | |
3994 | int _arg2; | |
1d99702e | 3995 | PyObject * _argo0 = 0; |
efc5f224 | 3996 | char *_kwnames[] = { "self","index","imageIndex", NULL }; |
8ab979d7 RD |
3997 | |
3998 | self = self; | |
efc5f224 | 3999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oli:wxListCtrl_InsertImageItem",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4000 | return NULL; |
1d99702e RD |
4001 | if (_argo0) { |
4002 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4003 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4004 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageItem. Expected _wxListCtrl_p."); |
4005 | return NULL; | |
4006 | } | |
4007 | } | |
cf694132 RD |
4008 | { |
4009 | wxPy_BEGIN_ALLOW_THREADS; | |
4010 | _result = (long )wxListCtrl_InsertImageItem(_arg0,_arg1,_arg2); | |
4011 | ||
4012 | wxPy_END_ALLOW_THREADS; | |
4013 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
4014 | return _resultobj; |
4015 | } | |
4016 | ||
4017 | #define wxListCtrl_InsertImageStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 4018 | static PyObject *_wrap_wxListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4019 | PyObject * _resultobj; |
4020 | long _result; | |
4021 | wxListCtrl * _arg0; | |
4022 | long _arg1; | |
4023 | wxString * _arg2; | |
4024 | int _arg3; | |
1d99702e | 4025 | PyObject * _argo0 = 0; |
8ab979d7 | 4026 | PyObject * _obj2 = 0; |
efc5f224 | 4027 | char *_kwnames[] = { "self","index","label","imageIndex", NULL }; |
8ab979d7 RD |
4028 | |
4029 | self = self; | |
efc5f224 | 4030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_InsertImageStringItem",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) |
8ab979d7 | 4031 | return NULL; |
1d99702e RD |
4032 | if (_argo0) { |
4033 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4034 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4035 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageStringItem. Expected _wxListCtrl_p."); |
4036 | return NULL; | |
4037 | } | |
4038 | } | |
4039 | { | |
2cd2fac8 RD |
4040 | #if PYTHON_API_VERSION >= 1009 |
4041 | char* tmpPtr; int tmpSize; | |
4042 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
4043 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
4044 | return NULL; | |
4045 | } | |
4046 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4047 | return NULL; | |
4048 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4049 | #else | |
8ab979d7 RD |
4050 | if (!PyString_Check(_obj2)) { |
4051 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4052 | return NULL; | |
4053 | } | |
2cd2fac8 RD |
4054 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
4055 | #endif | |
8ab979d7 | 4056 | } |
cf694132 RD |
4057 | { |
4058 | wxPy_BEGIN_ALLOW_THREADS; | |
4059 | _result = (long )wxListCtrl_InsertImageStringItem(_arg0,_arg1,*_arg2,_arg3); | |
4060 | ||
4061 | wxPy_END_ALLOW_THREADS; | |
4062 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
4063 | { |
4064 | if (_obj2) | |
4065 | delete _arg2; | |
4066 | } | |
4067 | return _resultobj; | |
4068 | } | |
4069 | ||
4070 | #define wxListCtrl_ScrollList(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScrollList(_swigarg0,_swigarg1)) | |
efc5f224 | 4071 | static PyObject *_wrap_wxListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4072 | PyObject * _resultobj; |
4073 | bool _result; | |
4074 | wxListCtrl * _arg0; | |
4075 | int _arg1; | |
4076 | int _arg2; | |
1d99702e | 4077 | PyObject * _argo0 = 0; |
efc5f224 | 4078 | char *_kwnames[] = { "self","dx","dy", NULL }; |
8ab979d7 RD |
4079 | |
4080 | self = self; | |
efc5f224 | 4081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_ScrollList",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4082 | return NULL; |
1d99702e RD |
4083 | if (_argo0) { |
4084 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4085 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4086 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ScrollList. Expected _wxListCtrl_p."); |
4087 | return NULL; | |
4088 | } | |
4089 | } | |
cf694132 RD |
4090 | { |
4091 | wxPy_BEGIN_ALLOW_THREADS; | |
4092 | _result = (bool )wxListCtrl_ScrollList(_arg0,_arg1,_arg2); | |
4093 | ||
4094 | wxPy_END_ALLOW_THREADS; | |
4095 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4096 | return _resultobj; |
4097 | } | |
4098 | ||
4099 | #define wxListCtrl_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
efc5f224 | 4100 | static PyObject *_wrap_wxListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4101 | PyObject * _resultobj; |
4102 | wxListCtrl * _arg0; | |
4103 | wxColour * _arg1; | |
1d99702e | 4104 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
4105 | wxColour temp; |
4106 | PyObject * _obj1 = 0; | |
efc5f224 | 4107 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
4108 | |
4109 | self = self; | |
f6bcfd97 | 4110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4111 | return NULL; |
1d99702e RD |
4112 | if (_argo0) { |
4113 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4114 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4115 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetBackgroundColour. Expected _wxListCtrl_p."); |
4116 | return NULL; | |
4117 | } | |
4118 | } | |
f6bcfd97 BP |
4119 | { |
4120 | _arg1 = &temp; | |
4121 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 4122 | return NULL; |
f6bcfd97 | 4123 | } |
cf694132 RD |
4124 | { |
4125 | wxPy_BEGIN_ALLOW_THREADS; | |
4126 | wxListCtrl_SetBackgroundColour(_arg0,*_arg1); | |
4127 | ||
4128 | wxPy_END_ALLOW_THREADS; | |
4129 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4130 | _resultobj = Py_None; |
4131 | return _resultobj; | |
4132 | } | |
4133 | ||
4134 | #define wxListCtrl_SetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumn(_swigarg0,_swigarg1)) | |
efc5f224 | 4135 | static PyObject *_wrap_wxListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4136 | PyObject * _resultobj; |
4137 | bool _result; | |
4138 | wxListCtrl * _arg0; | |
4139 | int _arg1; | |
4140 | wxListItem * _arg2; | |
1d99702e RD |
4141 | PyObject * _argo0 = 0; |
4142 | PyObject * _argo2 = 0; | |
efc5f224 | 4143 | char *_kwnames[] = { "self","col","item", NULL }; |
8ab979d7 RD |
4144 | |
4145 | self = self; | |
efc5f224 | 4146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_SetColumn",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 4147 | return NULL; |
1d99702e RD |
4148 | if (_argo0) { |
4149 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4150 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4151 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumn. Expected _wxListCtrl_p."); |
4152 | return NULL; | |
4153 | } | |
4154 | } | |
1d99702e RD |
4155 | if (_argo2) { |
4156 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
4157 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
8ab979d7 RD |
4158 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_SetColumn. Expected _wxListItem_p."); |
4159 | return NULL; | |
4160 | } | |
4161 | } | |
cf694132 RD |
4162 | { |
4163 | wxPy_BEGIN_ALLOW_THREADS; | |
4164 | _result = (bool )wxListCtrl_SetColumn(_arg0,_arg1,*_arg2); | |
4165 | ||
4166 | wxPy_END_ALLOW_THREADS; | |
4167 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4168 | return _resultobj; |
4169 | } | |
4170 | ||
4171 | #define wxListCtrl_SetColumnWidth(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnWidth(_swigarg0,_swigarg1)) | |
efc5f224 | 4172 | static PyObject *_wrap_wxListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4173 | PyObject * _resultobj; |
4174 | bool _result; | |
4175 | wxListCtrl * _arg0; | |
4176 | int _arg1; | |
4177 | int _arg2; | |
1d99702e | 4178 | PyObject * _argo0 = 0; |
efc5f224 | 4179 | char *_kwnames[] = { "self","col","width", NULL }; |
8ab979d7 RD |
4180 | |
4181 | self = self; | |
efc5f224 | 4182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_SetColumnWidth",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4183 | return NULL; |
1d99702e RD |
4184 | if (_argo0) { |
4185 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4186 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4187 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumnWidth. Expected _wxListCtrl_p."); |
4188 | return NULL; | |
4189 | } | |
4190 | } | |
cf694132 RD |
4191 | { |
4192 | wxPy_BEGIN_ALLOW_THREADS; | |
4193 | _result = (bool )wxListCtrl_SetColumnWidth(_arg0,_arg1,_arg2); | |
4194 | ||
4195 | wxPy_END_ALLOW_THREADS; | |
4196 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4197 | return _resultobj; |
4198 | } | |
4199 | ||
4200 | #define wxListCtrl_SetImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetImageList(_swigarg0,_swigarg1)) | |
efc5f224 | 4201 | static PyObject *_wrap_wxListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4202 | PyObject * _resultobj; |
4203 | wxListCtrl * _arg0; | |
4204 | wxImageList * _arg1; | |
4205 | int _arg2; | |
1d99702e RD |
4206 | PyObject * _argo0 = 0; |
4207 | PyObject * _argo1 = 0; | |
efc5f224 | 4208 | char *_kwnames[] = { "self","imageList","which", NULL }; |
8ab979d7 RD |
4209 | |
4210 | self = self; | |
efc5f224 | 4211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_SetImageList",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 4212 | return NULL; |
1d99702e RD |
4213 | if (_argo0) { |
4214 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4215 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4216 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetImageList. Expected _wxListCtrl_p."); |
4217 | return NULL; | |
4218 | } | |
4219 | } | |
1d99702e RD |
4220 | if (_argo1) { |
4221 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4222 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
8ab979d7 RD |
4223 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetImageList. Expected _wxImageList_p."); |
4224 | return NULL; | |
4225 | } | |
4226 | } | |
cf694132 RD |
4227 | { |
4228 | wxPy_BEGIN_ALLOW_THREADS; | |
4229 | wxListCtrl_SetImageList(_arg0,_arg1,_arg2); | |
4230 | ||
4231 | wxPy_END_ALLOW_THREADS; | |
4232 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4233 | _resultobj = Py_None; |
4234 | return _resultobj; | |
4235 | } | |
4236 | ||
4237 | #define wxListCtrl_SetItem(_swigobj,_swigarg0) (_swigobj->SetItem(_swigarg0)) | |
efc5f224 | 4238 | static PyObject *_wrap_wxListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4239 | PyObject * _resultobj; |
4240 | bool _result; | |
4241 | wxListCtrl * _arg0; | |
4242 | wxListItem * _arg1; | |
1d99702e RD |
4243 | PyObject * _argo0 = 0; |
4244 | PyObject * _argo1 = 0; | |
efc5f224 | 4245 | char *_kwnames[] = { "self","info", NULL }; |
8ab979d7 RD |
4246 | |
4247 | self = self; | |
efc5f224 | 4248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4249 | return NULL; |
1d99702e RD |
4250 | if (_argo0) { |
4251 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4252 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4253 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItem. Expected _wxListCtrl_p."); |
4254 | return NULL; | |
4255 | } | |
4256 | } | |
1d99702e RD |
4257 | if (_argo1) { |
4258 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4259 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
8ab979d7 RD |
4260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetItem. Expected _wxListItem_p."); |
4261 | return NULL; | |
4262 | } | |
4263 | } | |
cf694132 RD |
4264 | { |
4265 | wxPy_BEGIN_ALLOW_THREADS; | |
4266 | _result = (bool )wxListCtrl_SetItem(_arg0,*_arg1); | |
4267 | ||
4268 | wxPy_END_ALLOW_THREADS; | |
4269 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4270 | return _resultobj; |
4271 | } | |
4272 | ||
af309447 | 4273 | #define wxListCtrl_SetStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
efc5f224 | 4274 | static PyObject *_wrap_wxListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4275 | PyObject * _resultobj; |
4276 | long _result; | |
4277 | wxListCtrl * _arg0; | |
4278 | long _arg1; | |
4279 | int _arg2; | |
4280 | wxString * _arg3; | |
1d99702e RD |
4281 | int _arg4 = (int ) -1; |
4282 | PyObject * _argo0 = 0; | |
8ab979d7 | 4283 | PyObject * _obj3 = 0; |
efc5f224 | 4284 | char *_kwnames[] = { "self","index","col","label","imageId", NULL }; |
8ab979d7 RD |
4285 | |
4286 | self = self; | |
efc5f224 | 4287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OliO|i:wxListCtrl_SetStringItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) |
8ab979d7 | 4288 | return NULL; |
1d99702e RD |
4289 | if (_argo0) { |
4290 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4291 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
af309447 | 4292 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetStringItem. Expected _wxListCtrl_p."); |
8ab979d7 RD |
4293 | return NULL; |
4294 | } | |
4295 | } | |
4296 | { | |
2cd2fac8 RD |
4297 | #if PYTHON_API_VERSION >= 1009 |
4298 | char* tmpPtr; int tmpSize; | |
4299 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
4300 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
4301 | return NULL; | |
4302 | } | |
4303 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
4304 | return NULL; | |
4305 | _arg3 = new wxString(tmpPtr, tmpSize); | |
4306 | #else | |
8ab979d7 RD |
4307 | if (!PyString_Check(_obj3)) { |
4308 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4309 | return NULL; | |
4310 | } | |
2cd2fac8 RD |
4311 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
4312 | #endif | |
8ab979d7 | 4313 | } |
cf694132 RD |
4314 | { |
4315 | wxPy_BEGIN_ALLOW_THREADS; | |
4316 | _result = (long )wxListCtrl_SetStringItem(_arg0,_arg1,_arg2,*_arg3,_arg4); | |
4317 | ||
4318 | wxPy_END_ALLOW_THREADS; | |
4319 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
4320 | { |
4321 | if (_obj3) | |
4322 | delete _arg3; | |
4323 | } | |
4324 | return _resultobj; | |
4325 | } | |
4326 | ||
4327 | #define wxListCtrl_SetItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemData(_swigarg0,_swigarg1)) | |
efc5f224 | 4328 | static PyObject *_wrap_wxListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4329 | PyObject * _resultobj; |
4330 | bool _result; | |
4331 | wxListCtrl * _arg0; | |
4332 | long _arg1; | |
4333 | long _arg2; | |
1d99702e | 4334 | PyObject * _argo0 = 0; |
efc5f224 | 4335 | char *_kwnames[] = { "self","item","data", NULL }; |
8ab979d7 RD |
4336 | |
4337 | self = self; | |
efc5f224 | 4338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_SetItemData",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4339 | return NULL; |
1d99702e RD |
4340 | if (_argo0) { |
4341 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4342 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4343 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemData. Expected _wxListCtrl_p."); |
4344 | return NULL; | |
4345 | } | |
4346 | } | |
cf694132 RD |
4347 | { |
4348 | wxPy_BEGIN_ALLOW_THREADS; | |
4349 | _result = (bool )wxListCtrl_SetItemData(_arg0,_arg1,_arg2); | |
4350 | ||
4351 | wxPy_END_ALLOW_THREADS; | |
4352 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4353 | return _resultobj; |
4354 | } | |
4355 | ||
4356 | #define wxListCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 4357 | static PyObject *_wrap_wxListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4358 | PyObject * _resultobj; |
4359 | bool _result; | |
4360 | wxListCtrl * _arg0; | |
4361 | long _arg1; | |
4362 | int _arg2; | |
4363 | int _arg3; | |
1d99702e | 4364 | PyObject * _argo0 = 0; |
efc5f224 | 4365 | char *_kwnames[] = { "self","item","image","selImage", NULL }; |
8ab979d7 RD |
4366 | |
4367 | self = self; | |
efc5f224 | 4368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olii:wxListCtrl_SetItemImage",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 4369 | return NULL; |
1d99702e RD |
4370 | if (_argo0) { |
4371 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4372 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4373 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemImage. Expected _wxListCtrl_p."); |
4374 | return NULL; | |
4375 | } | |
4376 | } | |
cf694132 RD |
4377 | { |
4378 | wxPy_BEGIN_ALLOW_THREADS; | |
4379 | _result = (bool )wxListCtrl_SetItemImage(_arg0,_arg1,_arg2,_arg3); | |
4380 | ||
4381 | wxPy_END_ALLOW_THREADS; | |
4382 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4383 | return _resultobj; |
4384 | } | |
4385 | ||
4386 | #define wxListCtrl_SetItemPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemPosition(_swigarg0,_swigarg1)) | |
efc5f224 | 4387 | static PyObject *_wrap_wxListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4388 | PyObject * _resultobj; |
4389 | bool _result; | |
4390 | wxListCtrl * _arg0; | |
4391 | long _arg1; | |
4392 | wxPoint * _arg2; | |
1d99702e | 4393 | PyObject * _argo0 = 0; |
2f90df85 RD |
4394 | wxPoint temp; |
4395 | PyObject * _obj2 = 0; | |
efc5f224 | 4396 | char *_kwnames[] = { "self","item","pos", NULL }; |
8ab979d7 RD |
4397 | |
4398 | self = self; | |
2f90df85 | 4399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemPosition",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 4400 | return NULL; |
1d99702e RD |
4401 | if (_argo0) { |
4402 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4403 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4404 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemPosition. Expected _wxListCtrl_p."); |
4405 | return NULL; | |
4406 | } | |
4407 | } | |
2f90df85 RD |
4408 | { |
4409 | _arg2 = &temp; | |
4410 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 4411 | return NULL; |
2f90df85 | 4412 | } |
cf694132 RD |
4413 | { |
4414 | wxPy_BEGIN_ALLOW_THREADS; | |
4415 | _result = (bool )wxListCtrl_SetItemPosition(_arg0,_arg1,*_arg2); | |
4416 | ||
4417 | wxPy_END_ALLOW_THREADS; | |
4418 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4419 | return _resultobj; |
4420 | } | |
4421 | ||
4422 | #define wxListCtrl_SetItemState(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemState(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 4423 | static PyObject *_wrap_wxListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4424 | PyObject * _resultobj; |
4425 | bool _result; | |
4426 | wxListCtrl * _arg0; | |
4427 | long _arg1; | |
4428 | long _arg2; | |
4429 | long _arg3; | |
1d99702e | 4430 | PyObject * _argo0 = 0; |
efc5f224 | 4431 | char *_kwnames[] = { "self","item","state","stateMask", NULL }; |
8ab979d7 RD |
4432 | |
4433 | self = self; | |
efc5f224 | 4434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxListCtrl_SetItemState",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 4435 | return NULL; |
1d99702e RD |
4436 | if (_argo0) { |
4437 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4438 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4439 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemState. Expected _wxListCtrl_p."); |
4440 | return NULL; | |
4441 | } | |
4442 | } | |
cf694132 RD |
4443 | { |
4444 | wxPy_BEGIN_ALLOW_THREADS; | |
4445 | _result = (bool )wxListCtrl_SetItemState(_arg0,_arg1,_arg2,_arg3); | |
4446 | ||
4447 | wxPy_END_ALLOW_THREADS; | |
4448 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4449 | return _resultobj; |
4450 | } | |
4451 | ||
4452 | #define wxListCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) | |
efc5f224 | 4453 | static PyObject *_wrap_wxListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4454 | PyObject * _resultobj; |
4455 | wxListCtrl * _arg0; | |
4456 | long _arg1; | |
4457 | wxString * _arg2; | |
1d99702e | 4458 | PyObject * _argo0 = 0; |
8ab979d7 | 4459 | PyObject * _obj2 = 0; |
efc5f224 | 4460 | char *_kwnames[] = { "self","item","text", NULL }; |
8ab979d7 RD |
4461 | |
4462 | self = self; | |
efc5f224 | 4463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemText",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 4464 | return NULL; |
1d99702e RD |
4465 | if (_argo0) { |
4466 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4467 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4468 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemText. Expected _wxListCtrl_p."); |
4469 | return NULL; | |
4470 | } | |
4471 | } | |
4472 | { | |
2cd2fac8 RD |
4473 | #if PYTHON_API_VERSION >= 1009 |
4474 | char* tmpPtr; int tmpSize; | |
4475 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
4476 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
4477 | return NULL; | |
4478 | } | |
4479 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4480 | return NULL; | |
4481 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4482 | #else | |
8ab979d7 RD |
4483 | if (!PyString_Check(_obj2)) { |
4484 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4485 | return NULL; | |
4486 | } | |
2cd2fac8 RD |
4487 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
4488 | #endif | |
8ab979d7 | 4489 | } |
cf694132 RD |
4490 | { |
4491 | wxPy_BEGIN_ALLOW_THREADS; | |
4492 | wxListCtrl_SetItemText(_arg0,_arg1,*_arg2); | |
4493 | ||
4494 | wxPy_END_ALLOW_THREADS; | |
4495 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4496 | _resultobj = Py_None; |
4497 | { | |
4498 | if (_obj2) | |
4499 | delete _arg2; | |
4500 | } | |
4501 | return _resultobj; | |
4502 | } | |
4503 | ||
4504 | #define wxListCtrl_SetSingleStyle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSingleStyle(_swigarg0,_swigarg1)) | |
efc5f224 | 4505 | static PyObject *_wrap_wxListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4506 | PyObject * _resultobj; |
4507 | wxListCtrl * _arg0; | |
4508 | long _arg1; | |
1d99702e RD |
4509 | bool _arg2 = (bool ) TRUE; |
4510 | PyObject * _argo0 = 0; | |
4511 | int tempbool2 = (int) TRUE; | |
efc5f224 | 4512 | char *_kwnames[] = { "self","style","add", NULL }; |
8ab979d7 RD |
4513 | |
4514 | self = self; | |
efc5f224 | 4515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_SetSingleStyle",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 4516 | return NULL; |
1d99702e RD |
4517 | if (_argo0) { |
4518 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4519 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4520 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetSingleStyle. Expected _wxListCtrl_p."); |
4521 | return NULL; | |
4522 | } | |
4523 | } | |
4524 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
4525 | { |
4526 | wxPy_BEGIN_ALLOW_THREADS; | |
4527 | wxListCtrl_SetSingleStyle(_arg0,_arg1,_arg2); | |
4528 | ||
4529 | wxPy_END_ALLOW_THREADS; | |
4530 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4531 | _resultobj = Py_None; |
4532 | return _resultobj; | |
4533 | } | |
4534 | ||
8ab979d7 | 4535 | #define wxListCtrl_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) |
efc5f224 | 4536 | static PyObject *_wrap_wxListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4537 | PyObject * _resultobj; |
4538 | wxListCtrl * _arg0; | |
4539 | long _arg1; | |
1d99702e | 4540 | PyObject * _argo0 = 0; |
efc5f224 | 4541 | char *_kwnames[] = { "self","style", NULL }; |
8ab979d7 RD |
4542 | |
4543 | self = self; | |
efc5f224 | 4544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4545 | return NULL; |
1d99702e RD |
4546 | if (_argo0) { |
4547 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4548 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4549 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetWindowStyleFlag. Expected _wxListCtrl_p."); |
4550 | return NULL; | |
4551 | } | |
4552 | } | |
cf694132 RD |
4553 | { |
4554 | wxPy_BEGIN_ALLOW_THREADS; | |
4555 | wxListCtrl_SetWindowStyleFlag(_arg0,_arg1); | |
4556 | ||
4557 | wxPy_END_ALLOW_THREADS; | |
4558 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4559 | _resultobj = Py_None; |
4560 | return _resultobj; | |
4561 | } | |
4562 | ||
dcd38683 RD |
4563 | static bool wxListCtrl_SortItems(wxListCtrl *self,PyObject * func) { |
4564 | if (!PyCallable_Check(func)) | |
4565 | return FALSE; | |
4566 | ||
f6bcfd97 | 4567 | return self->SortItems(wxPyListCtrl_SortItems, (long)func); |
dcd38683 RD |
4568 | } |
4569 | static PyObject *_wrap_wxListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4570 | PyObject * _resultobj; | |
4571 | bool _result; | |
4572 | wxListCtrl * _arg0; | |
4573 | PyObject * _arg1; | |
4574 | PyObject * _argo0 = 0; | |
4575 | PyObject * _obj1 = 0; | |
4576 | char *_kwnames[] = { "self","func", NULL }; | |
4577 | ||
4578 | self = self; | |
4579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SortItems",_kwnames,&_argo0,&_obj1)) | |
4580 | return NULL; | |
4581 | if (_argo0) { | |
4582 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4583 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
4584 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SortItems. Expected _wxListCtrl_p."); | |
4585 | return NULL; | |
4586 | } | |
4587 | } | |
4588 | { | |
4589 | _arg1 = _obj1; | |
4590 | } | |
4591 | { | |
4592 | wxPy_BEGIN_ALLOW_THREADS; | |
4593 | _result = (bool )wxListCtrl_SortItems(_arg0,_arg1); | |
4594 | ||
4595 | wxPy_END_ALLOW_THREADS; | |
4596 | } _resultobj = Py_BuildValue("i",_result); | |
4597 | return _resultobj; | |
4598 | } | |
4599 | ||
d5c9047a | 4600 | #define new_wxTreeItemId() (new wxTreeItemId()) |
efc5f224 | 4601 | static PyObject *_wrap_new_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4602 | PyObject * _resultobj; |
d5c9047a | 4603 | wxTreeItemId * _result; |
efc5f224 | 4604 | char *_kwnames[] = { NULL }; |
d5c9047a | 4605 | char _ptemp[128]; |
8ab979d7 RD |
4606 | |
4607 | self = self; | |
efc5f224 | 4608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxTreeItemId",_kwnames)) |
8ab979d7 | 4609 | return NULL; |
cf694132 RD |
4610 | { |
4611 | wxPy_BEGIN_ALLOW_THREADS; | |
4612 | _result = (wxTreeItemId *)new_wxTreeItemId(); | |
4613 | ||
4614 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
4615 | } if (_result) { |
4616 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
4617 | _resultobj = Py_BuildValue("s",_ptemp); | |
4618 | } else { | |
4619 | Py_INCREF(Py_None); | |
4620 | _resultobj = Py_None; | |
4621 | } | |
8ab979d7 RD |
4622 | return _resultobj; |
4623 | } | |
4624 | ||
d5c9047a | 4625 | #define delete_wxTreeItemId(_swigobj) (delete _swigobj) |
efc5f224 | 4626 | static PyObject *_wrap_delete_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4627 | PyObject * _resultobj; |
d5c9047a | 4628 | wxTreeItemId * _arg0; |
1d99702e | 4629 | PyObject * _argo0 = 0; |
efc5f224 | 4630 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4631 | |
4632 | self = self; | |
efc5f224 | 4633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTreeItemId",_kwnames,&_argo0)) |
8ab979d7 | 4634 | return NULL; |
1d99702e RD |
4635 | if (_argo0) { |
4636 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4637 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
d5c9047a | 4638 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTreeItemId. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
4639 | return NULL; |
4640 | } | |
4641 | } | |
cf694132 RD |
4642 | { |
4643 | wxPy_BEGIN_ALLOW_THREADS; | |
4644 | delete_wxTreeItemId(_arg0); | |
4645 | ||
4646 | wxPy_END_ALLOW_THREADS; | |
4647 | } Py_INCREF(Py_None); | |
d5c9047a | 4648 | _resultobj = Py_None; |
8ab979d7 RD |
4649 | return _resultobj; |
4650 | } | |
4651 | ||
d5c9047a | 4652 | #define wxTreeItemId_IsOk(_swigobj) (_swigobj->IsOk()) |
efc5f224 | 4653 | static PyObject *_wrap_wxTreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4654 | PyObject * _resultobj; |
d5c9047a RD |
4655 | bool _result; |
4656 | wxTreeItemId * _arg0; | |
1d99702e | 4657 | PyObject * _argo0 = 0; |
efc5f224 | 4658 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4659 | |
4660 | self = self; | |
efc5f224 | 4661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemId_IsOk",_kwnames,&_argo0)) |
8ab979d7 | 4662 | return NULL; |
1d99702e RD |
4663 | if (_argo0) { |
4664 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4665 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
d5c9047a | 4666 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId_IsOk. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
4667 | return NULL; |
4668 | } | |
4669 | } | |
cf694132 RD |
4670 | { |
4671 | wxPy_BEGIN_ALLOW_THREADS; | |
4672 | _result = (bool )wxTreeItemId_IsOk(_arg0); | |
4673 | ||
4674 | wxPy_END_ALLOW_THREADS; | |
4675 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4676 | return _resultobj; |
4677 | } | |
4678 | ||
f6bcfd97 | 4679 | static int wxTreeItemId___cmp__(wxTreeItemId *self,wxTreeItemId * other) { |
c368d904 | 4680 | if (! other) return -1; |
f6bcfd97 BP |
4681 | return *self != *other; |
4682 | } | |
4683 | static PyObject *_wrap_wxTreeItemId___cmp__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4684 | PyObject * _resultobj; | |
4685 | int _result; | |
4686 | wxTreeItemId * _arg0; | |
4687 | wxTreeItemId * _arg1; | |
4688 | PyObject * _argo0 = 0; | |
4689 | PyObject * _argo1 = 0; | |
4690 | char *_kwnames[] = { "self","other", NULL }; | |
4691 | ||
4692 | self = self; | |
4693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemId___cmp__",_kwnames,&_argo0,&_argo1)) | |
4694 | return NULL; | |
4695 | if (_argo0) { | |
4696 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4697 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
4698 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
4699 | return NULL; | |
4700 | } | |
4701 | } | |
4702 | if (_argo1) { | |
4703 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4704 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
4705 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
4706 | return NULL; | |
4707 | } | |
4708 | } | |
4709 | { | |
4710 | wxPy_BEGIN_ALLOW_THREADS; | |
4711 | _result = (int )wxTreeItemId___cmp__(_arg0,_arg1); | |
4712 | ||
4713 | wxPy_END_ALLOW_THREADS; | |
4714 | } _resultobj = Py_BuildValue("i",_result); | |
4715 | return _resultobj; | |
4716 | } | |
4717 | ||
cf694132 | 4718 | #define new_wxTreeItemData(_swigarg0) (new wxPyTreeItemData(_swigarg0)) |
efc5f224 | 4719 | static PyObject *_wrap_new_wxTreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4720 | PyObject * _resultobj; |
cf694132 | 4721 | wxPyTreeItemData * _result; |
1d99702e | 4722 | PyObject * _arg0 = (PyObject *) NULL; |
cf694132 | 4723 | PyObject * _obj0 = 0; |
efc5f224 | 4724 | char *_kwnames[] = { "obj", NULL }; |
d5c9047a | 4725 | char _ptemp[128]; |
8ab979d7 RD |
4726 | |
4727 | self = self; | |
efc5f224 | 4728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxTreeItemData",_kwnames,&_obj0)) |
8ab979d7 | 4729 | return NULL; |
cf694132 RD |
4730 | if (_obj0) |
4731 | { | |
4732 | _arg0 = _obj0; | |
4733 | } | |
4734 | { | |
4735 | wxPy_BEGIN_ALLOW_THREADS; | |
4736 | _result = (wxPyTreeItemData *)new_wxTreeItemData(_arg0); | |
4737 | ||
4738 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
4739 | } if (_result) { |
4740 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
4741 | _resultobj = Py_BuildValue("s",_ptemp); | |
4742 | } else { | |
4743 | Py_INCREF(Py_None); | |
4744 | _resultobj = Py_None; | |
4745 | } | |
8ab979d7 RD |
4746 | return _resultobj; |
4747 | } | |
4748 | ||
cf694132 | 4749 | #define wxTreeItemData_GetData(_swigobj) (_swigobj->GetData()) |
efc5f224 | 4750 | static PyObject *_wrap_wxTreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
4751 | PyObject * _resultobj; |
4752 | PyObject * _result; | |
4753 | wxPyTreeItemData * _arg0; | |
1d99702e | 4754 | PyObject * _argo0 = 0; |
efc5f224 | 4755 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
4756 | |
4757 | self = self; | |
efc5f224 | 4758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetData",_kwnames,&_argo0)) |
cf694132 | 4759 | return NULL; |
1d99702e RD |
4760 | if (_argo0) { |
4761 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4762 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 RD |
4763 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetData. Expected _wxPyTreeItemData_p."); |
4764 | return NULL; | |
4765 | } | |
4766 | } | |
4767 | { | |
4768 | wxPy_BEGIN_ALLOW_THREADS; | |
4769 | _result = (PyObject *)wxTreeItemData_GetData(_arg0); | |
4770 | ||
4771 | wxPy_END_ALLOW_THREADS; | |
4772 | }{ | |
4773 | _resultobj = _result; | |
4774 | } | |
4775 | return _resultobj; | |
4776 | } | |
4777 | ||
4778 | #define wxTreeItemData_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
efc5f224 | 4779 | static PyObject *_wrap_wxTreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4780 | PyObject * _resultobj; |
cf694132 RD |
4781 | wxPyTreeItemData * _arg0; |
4782 | PyObject * _arg1; | |
1d99702e | 4783 | PyObject * _argo0 = 0; |
cf694132 | 4784 | PyObject * _obj1 = 0; |
efc5f224 | 4785 | char *_kwnames[] = { "self","obj", NULL }; |
8ab979d7 RD |
4786 | |
4787 | self = self; | |
efc5f224 | 4788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetData",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4789 | return NULL; |
1d99702e RD |
4790 | if (_argo0) { |
4791 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4792 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 4793 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetData. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
4794 | return NULL; |
4795 | } | |
4796 | } | |
cf694132 RD |
4797 | { |
4798 | _arg1 = _obj1; | |
4799 | } | |
4800 | { | |
4801 | wxPy_BEGIN_ALLOW_THREADS; | |
4802 | wxTreeItemData_SetData(_arg0,_arg1); | |
4803 | ||
4804 | wxPy_END_ALLOW_THREADS; | |
4805 | } Py_INCREF(Py_None); | |
d5c9047a | 4806 | _resultobj = Py_None; |
8ab979d7 RD |
4807 | return _resultobj; |
4808 | } | |
4809 | ||
630d84f2 | 4810 | #define wxTreeItemData_GetId(_swigobj) (_swigobj->GetId()) |
efc5f224 | 4811 | static PyObject *_wrap_wxTreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4812 | PyObject * _resultobj; |
d5c9047a | 4813 | wxTreeItemId * _result; |
cf694132 | 4814 | wxPyTreeItemData * _arg0; |
1d99702e | 4815 | PyObject * _argo0 = 0; |
efc5f224 | 4816 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4817 | char _ptemp[128]; |
4818 | ||
4819 | self = self; | |
efc5f224 | 4820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetId",_kwnames,&_argo0)) |
8ab979d7 | 4821 | return NULL; |
1d99702e RD |
4822 | if (_argo0) { |
4823 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4824 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 4825 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetId. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
4826 | return NULL; |
4827 | } | |
4828 | } | |
cf694132 RD |
4829 | { |
4830 | wxPy_BEGIN_ALLOW_THREADS; | |
4831 | const wxTreeItemId & _result_ref = wxTreeItemData_GetId(_arg0); | |
d5c9047a | 4832 | _result = (wxTreeItemId *) &_result_ref; |
cf694132 RD |
4833 | |
4834 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
4835 | } if (_result) { |
4836 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
4837 | _resultobj = Py_BuildValue("s",_ptemp); | |
4838 | } else { | |
4839 | Py_INCREF(Py_None); | |
4840 | _resultobj = Py_None; | |
4841 | } | |
8ab979d7 RD |
4842 | return _resultobj; |
4843 | } | |
4844 | ||
630d84f2 | 4845 | #define wxTreeItemData_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) |
efc5f224 | 4846 | static PyObject *_wrap_wxTreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
630d84f2 | 4847 | PyObject * _resultobj; |
cf694132 | 4848 | wxPyTreeItemData * _arg0; |
630d84f2 | 4849 | wxTreeItemId * _arg1; |
1d99702e RD |
4850 | PyObject * _argo0 = 0; |
4851 | PyObject * _argo1 = 0; | |
efc5f224 | 4852 | char *_kwnames[] = { "self","id", NULL }; |
630d84f2 RD |
4853 | |
4854 | self = self; | |
efc5f224 | 4855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetId",_kwnames,&_argo0,&_argo1)) |
630d84f2 | 4856 | return NULL; |
1d99702e RD |
4857 | if (_argo0) { |
4858 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4859 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 4860 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetId. Expected _wxPyTreeItemData_p."); |
630d84f2 RD |
4861 | return NULL; |
4862 | } | |
4863 | } | |
1d99702e RD |
4864 | if (_argo1) { |
4865 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4866 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
630d84f2 RD |
4867 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemData_SetId. Expected _wxTreeItemId_p."); |
4868 | return NULL; | |
4869 | } | |
4870 | } | |
cf694132 RD |
4871 | { |
4872 | wxPy_BEGIN_ALLOW_THREADS; | |
4873 | wxTreeItemData_SetId(_arg0,*_arg1); | |
4874 | ||
4875 | wxPy_END_ALLOW_THREADS; | |
4876 | } Py_INCREF(Py_None); | |
630d84f2 RD |
4877 | _resultobj = Py_None; |
4878 | return _resultobj; | |
4879 | } | |
4880 | ||
8bf5d46e RD |
4881 | static void *SwigwxTreeEventTowxNotifyEvent(void *ptr) { |
4882 | wxTreeEvent *src; | |
4883 | wxNotifyEvent *dest; | |
4884 | src = (wxTreeEvent *) ptr; | |
4885 | dest = (wxNotifyEvent *) src; | |
4886 | return (void *) dest; | |
4887 | } | |
4888 | ||
8ab979d7 RD |
4889 | static void *SwigwxTreeEventTowxCommandEvent(void *ptr) { |
4890 | wxTreeEvent *src; | |
4891 | wxCommandEvent *dest; | |
4892 | src = (wxTreeEvent *) ptr; | |
4893 | dest = (wxCommandEvent *) src; | |
4894 | return (void *) dest; | |
4895 | } | |
4896 | ||
4897 | static void *SwigwxTreeEventTowxEvent(void *ptr) { | |
4898 | wxTreeEvent *src; | |
4899 | wxEvent *dest; | |
4900 | src = (wxTreeEvent *) ptr; | |
4901 | dest = (wxEvent *) src; | |
4902 | return (void *) dest; | |
4903 | } | |
4904 | ||
d5c9047a | 4905 | #define wxTreeEvent_GetItem(_swigobj) (_swigobj->GetItem()) |
efc5f224 | 4906 | static PyObject *_wrap_wxTreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4907 | PyObject * _resultobj; |
d5c9047a | 4908 | wxTreeItemId * _result; |
8ab979d7 | 4909 | wxTreeEvent * _arg0; |
1d99702e | 4910 | PyObject * _argo0 = 0; |
efc5f224 | 4911 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 4912 | char _ptemp[128]; |
8ab979d7 RD |
4913 | |
4914 | self = self; | |
efc5f224 | 4915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetItem",_kwnames,&_argo0)) |
8ab979d7 | 4916 | return NULL; |
1d99702e RD |
4917 | if (_argo0) { |
4918 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4919 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 4920 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetItem. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
4921 | return NULL; |
4922 | } | |
4923 | } | |
cf694132 RD |
4924 | { |
4925 | wxPy_BEGIN_ALLOW_THREADS; | |
4926 | _result = new wxTreeItemId (wxTreeEvent_GetItem(_arg0)); | |
4927 | ||
4928 | wxPy_END_ALLOW_THREADS; | |
4929 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 4930 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
4931 | return _resultobj; |
4932 | } | |
4933 | ||
d5c9047a | 4934 | #define wxTreeEvent_GetOldItem(_swigobj) (_swigobj->GetOldItem()) |
efc5f224 | 4935 | static PyObject *_wrap_wxTreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4936 | PyObject * _resultobj; |
d5c9047a | 4937 | wxTreeItemId * _result; |
8ab979d7 | 4938 | wxTreeEvent * _arg0; |
1d99702e | 4939 | PyObject * _argo0 = 0; |
efc5f224 | 4940 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4941 | char _ptemp[128]; |
4942 | ||
4943 | self = self; | |
efc5f224 | 4944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetOldItem",_kwnames,&_argo0)) |
8ab979d7 | 4945 | return NULL; |
1d99702e RD |
4946 | if (_argo0) { |
4947 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4948 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 4949 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetOldItem. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
4950 | return NULL; |
4951 | } | |
4952 | } | |
cf694132 RD |
4953 | { |
4954 | wxPy_BEGIN_ALLOW_THREADS; | |
4955 | _result = new wxTreeItemId (wxTreeEvent_GetOldItem(_arg0)); | |
4956 | ||
4957 | wxPy_END_ALLOW_THREADS; | |
4958 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
8ab979d7 RD |
4959 | _resultobj = Py_BuildValue("s",_ptemp); |
4960 | return _resultobj; | |
4961 | } | |
4962 | ||
d5c9047a | 4963 | #define wxTreeEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) |
efc5f224 | 4964 | static PyObject *_wrap_wxTreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4965 | PyObject * _resultobj; |
d5c9047a | 4966 | wxPoint * _result; |
8ab979d7 | 4967 | wxTreeEvent * _arg0; |
1d99702e | 4968 | PyObject * _argo0 = 0; |
efc5f224 | 4969 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 4970 | char _ptemp[128]; |
8ab979d7 RD |
4971 | |
4972 | self = self; | |
efc5f224 | 4973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetPoint",_kwnames,&_argo0)) |
8ab979d7 | 4974 | return NULL; |
1d99702e RD |
4975 | if (_argo0) { |
4976 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4977 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 4978 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetPoint. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
4979 | return NULL; |
4980 | } | |
4981 | } | |
cf694132 RD |
4982 | { |
4983 | wxPy_BEGIN_ALLOW_THREADS; | |
4984 | _result = new wxPoint (wxTreeEvent_GetPoint(_arg0)); | |
4985 | ||
4986 | wxPy_END_ALLOW_THREADS; | |
4987 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
d5c9047a | 4988 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
4989 | return _resultobj; |
4990 | } | |
4991 | ||
d5c9047a | 4992 | #define wxTreeEvent_GetCode(_swigobj) (_swigobj->GetCode()) |
efc5f224 | 4993 | static PyObject *_wrap_wxTreeEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4994 | PyObject * _resultobj; |
d5c9047a | 4995 | int _result; |
8ab979d7 | 4996 | wxTreeEvent * _arg0; |
1d99702e | 4997 | PyObject * _argo0 = 0; |
efc5f224 | 4998 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4999 | |
5000 | self = self; | |
efc5f224 | 5001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetCode",_kwnames,&_argo0)) |
8ab979d7 | 5002 | return NULL; |
1d99702e RD |
5003 | if (_argo0) { |
5004 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5005 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 5006 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetCode. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
5007 | return NULL; |
5008 | } | |
5009 | } | |
cf694132 RD |
5010 | { |
5011 | wxPy_BEGIN_ALLOW_THREADS; | |
5012 | _result = (int )wxTreeEvent_GetCode(_arg0); | |
5013 | ||
5014 | wxPy_END_ALLOW_THREADS; | |
5015 | } _resultobj = Py_BuildValue("i",_result); | |
d5c9047a RD |
5016 | return _resultobj; |
5017 | } | |
5018 | ||
8bf5d46e | 5019 | #define wxTreeEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 5020 | static PyObject *_wrap_wxTreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 5021 | PyObject * _resultobj; |
8bf5d46e | 5022 | wxString * _result; |
d5c9047a | 5023 | wxTreeEvent * _arg0; |
1d99702e | 5024 | PyObject * _argo0 = 0; |
efc5f224 | 5025 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
5026 | |
5027 | self = self; | |
efc5f224 | 5028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetLabel",_kwnames,&_argo0)) |
d5c9047a | 5029 | return NULL; |
1d99702e RD |
5030 | if (_argo0) { |
5031 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5032 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
8bf5d46e | 5033 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetLabel. Expected _wxTreeEvent_p."); |
d5c9047a RD |
5034 | return NULL; |
5035 | } | |
5036 | } | |
cf694132 RD |
5037 | { |
5038 | wxPy_BEGIN_ALLOW_THREADS; | |
8bf5d46e RD |
5039 | const wxString & _result_ref = wxTreeEvent_GetLabel(_arg0); |
5040 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
5041 | |
5042 | wxPy_END_ALLOW_THREADS; | |
8bf5d46e | 5043 | }{ |
eec92d76 | 5044 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8bf5d46e | 5045 | } |
8ab979d7 RD |
5046 | return _resultobj; |
5047 | } | |
5048 | ||
f6bcfd97 BP |
5049 | static void *SwigwxPyTreeCtrlTowxControl(void *ptr) { |
5050 | wxPyTreeCtrl *src; | |
8ab979d7 | 5051 | wxControl *dest; |
f6bcfd97 | 5052 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
5053 | dest = (wxControl *) src; |
5054 | return (void *) dest; | |
5055 | } | |
5056 | ||
f6bcfd97 BP |
5057 | static void *SwigwxPyTreeCtrlTowxWindow(void *ptr) { |
5058 | wxPyTreeCtrl *src; | |
8ab979d7 | 5059 | wxWindow *dest; |
f6bcfd97 | 5060 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
5061 | dest = (wxWindow *) src; |
5062 | return (void *) dest; | |
5063 | } | |
5064 | ||
f6bcfd97 BP |
5065 | static void *SwigwxPyTreeCtrlTowxEvtHandler(void *ptr) { |
5066 | wxPyTreeCtrl *src; | |
8ab979d7 | 5067 | wxEvtHandler *dest; |
f6bcfd97 | 5068 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
5069 | dest = (wxEvtHandler *) src; |
5070 | return (void *) dest; | |
5071 | } | |
5072 | ||
f6bcfd97 | 5073 | #define new_wxTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 5074 | static PyObject *_wrap_new_wxTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5075 | PyObject * _resultobj; |
f6bcfd97 | 5076 | wxPyTreeCtrl * _result; |
8ab979d7 | 5077 | wxWindow * _arg0; |
1d99702e | 5078 | wxWindowID _arg1 = (wxWindowID ) -1; |
b68dc582 RD |
5079 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
5080 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e | 5081 | long _arg4 = (long ) wxTR_HAS_BUTTONS|wxTR_LINES_AT_ROOT; |
b68dc582 | 5082 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
5083 | char * _arg6 = (char *) "wxTreeCtrl"; |
5084 | PyObject * _argo0 = 0; | |
2f90df85 RD |
5085 | wxPoint temp; |
5086 | PyObject * _obj2 = 0; | |
5087 | wxSize temp0; | |
5088 | PyObject * _obj3 = 0; | |
1d99702e | 5089 | PyObject * _argo5 = 0; |
efc5f224 | 5090 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
5091 | char _ptemp[128]; |
5092 | ||
5093 | self = self; | |
2f90df85 | 5094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxTreeCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) |
8ab979d7 | 5095 | return NULL; |
1d99702e RD |
5096 | if (_argo0) { |
5097 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5098 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5099 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTreeCtrl. Expected _wxWindow_p."); |
5100 | return NULL; | |
5101 | } | |
5102 | } | |
2f90df85 RD |
5103 | if (_obj2) |
5104 | { | |
5105 | _arg2 = &temp; | |
5106 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 5107 | return NULL; |
2f90df85 RD |
5108 | } |
5109 | if (_obj3) | |
5110 | { | |
5111 | _arg3 = &temp0; | |
5112 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 5113 | return NULL; |
2f90df85 | 5114 | } |
1d99702e RD |
5115 | if (_argo5) { |
5116 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
5117 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
8ab979d7 RD |
5118 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxTreeCtrl. Expected _wxValidator_p."); |
5119 | return NULL; | |
5120 | } | |
5121 | } | |
cf694132 RD |
5122 | { |
5123 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 5124 | _result = (wxPyTreeCtrl *)new_wxTreeCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); |
cf694132 RD |
5125 | |
5126 | wxPy_END_ALLOW_THREADS; | |
1d99702e | 5127 | } if (_result) { |
f6bcfd97 | 5128 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p"); |
1d99702e RD |
5129 | _resultobj = Py_BuildValue("s",_ptemp); |
5130 | } else { | |
5131 | Py_INCREF(Py_None); | |
5132 | _resultobj = Py_None; | |
5133 | } | |
8ab979d7 RD |
5134 | return _resultobj; |
5135 | } | |
5136 | ||
f6bcfd97 BP |
5137 | #define wxTreeCtrl__setSelf(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setSelf(_swigarg0,_swigarg1)) |
5138 | static PyObject *_wrap_wxTreeCtrl__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5139 | PyObject * _resultobj; | |
5140 | wxPyTreeCtrl * _arg0; | |
5141 | PyObject * _arg1; | |
5142 | PyObject * _arg2; | |
5143 | PyObject * _argo0 = 0; | |
5144 | PyObject * _obj1 = 0; | |
5145 | PyObject * _obj2 = 0; | |
5146 | char *_kwnames[] = { "self","self","_class", NULL }; | |
5147 | ||
5148 | self = self; | |
5149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl__setSelf",_kwnames,&_argo0,&_obj1,&_obj2)) | |
5150 | return NULL; | |
5151 | if (_argo0) { | |
5152 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5153 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
5154 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl__setSelf. Expected _wxPyTreeCtrl_p."); | |
5155 | return NULL; | |
5156 | } | |
5157 | } | |
5158 | { | |
5159 | _arg1 = _obj1; | |
5160 | } | |
5161 | { | |
5162 | _arg2 = _obj2; | |
5163 | } | |
5164 | { | |
5165 | wxPy_BEGIN_ALLOW_THREADS; | |
5166 | wxTreeCtrl__setSelf(_arg0,_arg1,_arg2); | |
5167 | ||
5168 | wxPy_END_ALLOW_THREADS; | |
5169 | } Py_INCREF(Py_None); | |
5170 | _resultobj = Py_None; | |
5171 | return _resultobj; | |
5172 | } | |
5173 | ||
9c4165ad RD |
5174 | #define wxTreeCtrl_AssignImageList(_swigobj,_swigarg0) (_swigobj->AssignImageList(_swigarg0)) |
5175 | static PyObject *_wrap_wxTreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5176 | PyObject * _resultobj; | |
5177 | wxPyTreeCtrl * _arg0; | |
5178 | wxImageList * _arg1; | |
5179 | PyObject * _argo0 = 0; | |
5180 | PyObject * _argo1 = 0; | |
5181 | char *_kwnames[] = { "self","imageList", NULL }; | |
5182 | ||
5183 | self = self; | |
5184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignImageList",_kwnames,&_argo0,&_argo1)) | |
5185 | return NULL; | |
5186 | if (_argo0) { | |
5187 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5188 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
5189 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignImageList. Expected _wxPyTreeCtrl_p."); | |
5190 | return NULL; | |
5191 | } | |
5192 | } | |
5193 | if (_argo1) { | |
5194 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5195 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
5196 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignImageList. Expected _wxImageList_p."); | |
5197 | return NULL; | |
5198 | } | |
5199 | } | |
5200 | { | |
5201 | wxPy_BEGIN_ALLOW_THREADS; | |
5202 | wxTreeCtrl_AssignImageList(_arg0,_arg1); | |
5203 | ||
5204 | wxPy_END_ALLOW_THREADS; | |
5205 | } Py_INCREF(Py_None); | |
5206 | _resultobj = Py_None; | |
5207 | return _resultobj; | |
5208 | } | |
5209 | ||
d5c9047a | 5210 | #define wxTreeCtrl_GetCount(_swigobj) (_swigobj->GetCount()) |
efc5f224 | 5211 | static PyObject *_wrap_wxTreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5212 | PyObject * _resultobj; |
c127177f | 5213 | size_t _result; |
f6bcfd97 | 5214 | wxPyTreeCtrl * _arg0; |
1d99702e | 5215 | PyObject * _argo0 = 0; |
efc5f224 | 5216 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5217 | |
5218 | self = self; | |
efc5f224 | 5219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetCount",_kwnames,&_argo0)) |
8ab979d7 | 5220 | return NULL; |
1d99702e RD |
5221 | if (_argo0) { |
5222 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5223 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5224 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetCount. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5225 | return NULL; |
5226 | } | |
5227 | } | |
cf694132 RD |
5228 | { |
5229 | wxPy_BEGIN_ALLOW_THREADS; | |
c127177f | 5230 | _result = (size_t )wxTreeCtrl_GetCount(_arg0); |
cf694132 RD |
5231 | |
5232 | wxPy_END_ALLOW_THREADS; | |
c127177f | 5233 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5234 | return _resultobj; |
5235 | } | |
5236 | ||
d5c9047a | 5237 | #define wxTreeCtrl_GetIndent(_swigobj) (_swigobj->GetIndent()) |
efc5f224 | 5238 | static PyObject *_wrap_wxTreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5239 | PyObject * _resultobj; |
d5c9047a | 5240 | unsigned int _result; |
f6bcfd97 | 5241 | wxPyTreeCtrl * _arg0; |
1d99702e | 5242 | PyObject * _argo0 = 0; |
efc5f224 | 5243 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5244 | |
5245 | self = self; | |
efc5f224 | 5246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetIndent",_kwnames,&_argo0)) |
8ab979d7 | 5247 | return NULL; |
1d99702e RD |
5248 | if (_argo0) { |
5249 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5250 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5251 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetIndent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5252 | return NULL; |
5253 | } | |
5254 | } | |
cf694132 RD |
5255 | { |
5256 | wxPy_BEGIN_ALLOW_THREADS; | |
5257 | _result = (unsigned int )wxTreeCtrl_GetIndent(_arg0); | |
5258 | ||
5259 | wxPy_END_ALLOW_THREADS; | |
5260 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5261 | return _resultobj; |
5262 | } | |
5263 | ||
d5c9047a | 5264 | #define wxTreeCtrl_SetIndent(_swigobj,_swigarg0) (_swigobj->SetIndent(_swigarg0)) |
efc5f224 | 5265 | static PyObject *_wrap_wxTreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5266 | PyObject * _resultobj; |
f6bcfd97 | 5267 | wxPyTreeCtrl * _arg0; |
d5c9047a | 5268 | unsigned int _arg1; |
1d99702e | 5269 | PyObject * _argo0 = 0; |
efc5f224 | 5270 | char *_kwnames[] = { "self","indent", NULL }; |
8ab979d7 RD |
5271 | |
5272 | self = self; | |
efc5f224 | 5273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetIndent",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5274 | return NULL; |
1d99702e RD |
5275 | if (_argo0) { |
5276 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5277 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5278 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetIndent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5279 | return NULL; |
5280 | } | |
5281 | } | |
cf694132 RD |
5282 | { |
5283 | wxPy_BEGIN_ALLOW_THREADS; | |
5284 | wxTreeCtrl_SetIndent(_arg0,_arg1); | |
5285 | ||
5286 | wxPy_END_ALLOW_THREADS; | |
5287 | } Py_INCREF(Py_None); | |
d5c9047a | 5288 | _resultobj = Py_None; |
8ab979d7 RD |
5289 | return _resultobj; |
5290 | } | |
5291 | ||
d5c9047a | 5292 | #define wxTreeCtrl_GetImageList(_swigobj) (_swigobj->GetImageList()) |
efc5f224 | 5293 | static PyObject *_wrap_wxTreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5294 | PyObject * _resultobj; |
d5c9047a | 5295 | wxImageList * _result; |
f6bcfd97 | 5296 | wxPyTreeCtrl * _arg0; |
1d99702e | 5297 | PyObject * _argo0 = 0; |
efc5f224 | 5298 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 5299 | char _ptemp[128]; |
8ab979d7 RD |
5300 | |
5301 | self = self; | |
efc5f224 | 5302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetImageList",_kwnames,&_argo0)) |
8ab979d7 | 5303 | return NULL; |
1d99702e RD |
5304 | if (_argo0) { |
5305 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5306 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5307 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5308 | return NULL; |
5309 | } | |
5310 | } | |
cf694132 RD |
5311 | { |
5312 | wxPy_BEGIN_ALLOW_THREADS; | |
5313 | _result = (wxImageList *)wxTreeCtrl_GetImageList(_arg0); | |
5314 | ||
5315 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
5316 | } if (_result) { |
5317 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p"); | |
5318 | _resultobj = Py_BuildValue("s",_ptemp); | |
5319 | } else { | |
5320 | Py_INCREF(Py_None); | |
5321 | _resultobj = Py_None; | |
5322 | } | |
8ab979d7 RD |
5323 | return _resultobj; |
5324 | } | |
5325 | ||
d5c9047a | 5326 | #define wxTreeCtrl_GetStateImageList(_swigobj) (_swigobj->GetStateImageList()) |
efc5f224 | 5327 | static PyObject *_wrap_wxTreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5328 | PyObject * _resultobj; |
d5c9047a | 5329 | wxImageList * _result; |
f6bcfd97 | 5330 | wxPyTreeCtrl * _arg0; |
1d99702e | 5331 | PyObject * _argo0 = 0; |
efc5f224 | 5332 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 5333 | char _ptemp[128]; |
8ab979d7 RD |
5334 | |
5335 | self = self; | |
efc5f224 | 5336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetStateImageList",_kwnames,&_argo0)) |
8ab979d7 | 5337 | return NULL; |
1d99702e RD |
5338 | if (_argo0) { |
5339 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5340 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5341 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetStateImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5342 | return NULL; |
5343 | } | |
5344 | } | |
cf694132 RD |
5345 | { |
5346 | wxPy_BEGIN_ALLOW_THREADS; | |
5347 | _result = (wxImageList *)wxTreeCtrl_GetStateImageList(_arg0); | |
5348 | ||
5349 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
5350 | } if (_result) { |
5351 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p"); | |
5352 | _resultobj = Py_BuildValue("s",_ptemp); | |
5353 | } else { | |
5354 | Py_INCREF(Py_None); | |
5355 | _resultobj = Py_None; | |
5356 | } | |
8ab979d7 RD |
5357 | return _resultobj; |
5358 | } | |
5359 | ||
d5c9047a | 5360 | #define wxTreeCtrl_SetImageList(_swigobj,_swigarg0) (_swigobj->SetImageList(_swigarg0)) |
efc5f224 | 5361 | static PyObject *_wrap_wxTreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5362 | PyObject * _resultobj; |
f6bcfd97 | 5363 | wxPyTreeCtrl * _arg0; |
d5c9047a | 5364 | wxImageList * _arg1; |
1d99702e RD |
5365 | PyObject * _argo0 = 0; |
5366 | PyObject * _argo1 = 0; | |
efc5f224 | 5367 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
5368 | |
5369 | self = self; | |
efc5f224 | 5370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 5371 | return NULL; |
1d99702e RD |
5372 | if (_argo0) { |
5373 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5374 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5376 | return NULL; |
5377 | } | |
5378 | } | |
1d99702e RD |
5379 | if (_argo1) { |
5380 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5381 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
d5c9047a RD |
5382 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetImageList. Expected _wxImageList_p."); |
5383 | return NULL; | |
5384 | } | |
5385 | } | |
cf694132 RD |
5386 | { |
5387 | wxPy_BEGIN_ALLOW_THREADS; | |
5388 | wxTreeCtrl_SetImageList(_arg0,_arg1); | |
5389 | ||
5390 | wxPy_END_ALLOW_THREADS; | |
5391 | } Py_INCREF(Py_None); | |
d5c9047a | 5392 | _resultobj = Py_None; |
8ab979d7 RD |
5393 | return _resultobj; |
5394 | } | |
5395 | ||
d5c9047a | 5396 | #define wxTreeCtrl_SetStateImageList(_swigobj,_swigarg0) (_swigobj->SetStateImageList(_swigarg0)) |
efc5f224 | 5397 | static PyObject *_wrap_wxTreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5398 | PyObject * _resultobj; |
f6bcfd97 | 5399 | wxPyTreeCtrl * _arg0; |
d5c9047a | 5400 | wxImageList * _arg1; |
1d99702e RD |
5401 | PyObject * _argo0 = 0; |
5402 | PyObject * _argo1 = 0; | |
efc5f224 | 5403 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
5404 | |
5405 | self = self; | |
efc5f224 | 5406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetStateImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 5407 | return NULL; |
1d99702e RD |
5408 | if (_argo0) { |
5409 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5410 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetStateImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5412 | return NULL; |
5413 | } | |
5414 | } | |
1d99702e RD |
5415 | if (_argo1) { |
5416 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5417 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
d5c9047a RD |
5418 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetStateImageList. Expected _wxImageList_p."); |
5419 | return NULL; | |
5420 | } | |
5421 | } | |
cf694132 RD |
5422 | { |
5423 | wxPy_BEGIN_ALLOW_THREADS; | |
5424 | wxTreeCtrl_SetStateImageList(_arg0,_arg1); | |
5425 | ||
5426 | wxPy_END_ALLOW_THREADS; | |
5427 | } Py_INCREF(Py_None); | |
d5c9047a | 5428 | _resultobj = Py_None; |
8ab979d7 RD |
5429 | return _resultobj; |
5430 | } | |
5431 | ||
b1462dfa RD |
5432 | #define wxTreeCtrl_GetSpacing(_swigobj) (_swigobj->GetSpacing()) |
5433 | static PyObject *_wrap_wxTreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5434 | PyObject * _resultobj; | |
5435 | unsigned int _result; | |
f6bcfd97 | 5436 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
5437 | PyObject * _argo0 = 0; |
5438 | char *_kwnames[] = { "self", NULL }; | |
5439 | ||
5440 | self = self; | |
5441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSpacing",_kwnames,&_argo0)) | |
5442 | return NULL; | |
5443 | if (_argo0) { | |
5444 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5445 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5446 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSpacing. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
5447 | return NULL; |
5448 | } | |
5449 | } | |
5450 | { | |
5451 | wxPy_BEGIN_ALLOW_THREADS; | |
5452 | _result = (unsigned int )wxTreeCtrl_GetSpacing(_arg0); | |
5453 | ||
5454 | wxPy_END_ALLOW_THREADS; | |
5455 | } _resultobj = Py_BuildValue("i",_result); | |
5456 | return _resultobj; | |
5457 | } | |
5458 | ||
5459 | #define wxTreeCtrl_SetSpacing(_swigobj,_swigarg0) (_swigobj->SetSpacing(_swigarg0)) | |
5460 | static PyObject *_wrap_wxTreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5461 | PyObject * _resultobj; | |
f6bcfd97 | 5462 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
5463 | unsigned int _arg1; |
5464 | PyObject * _argo0 = 0; | |
5465 | char *_kwnames[] = { "self","spacing", NULL }; | |
5466 | ||
5467 | self = self; | |
5468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetSpacing",_kwnames,&_argo0,&_arg1)) | |
5469 | return NULL; | |
5470 | if (_argo0) { | |
5471 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5472 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5473 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetSpacing. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
5474 | return NULL; |
5475 | } | |
5476 | } | |
5477 | { | |
5478 | wxPy_BEGIN_ALLOW_THREADS; | |
5479 | wxTreeCtrl_SetSpacing(_arg0,_arg1); | |
5480 | ||
5481 | wxPy_END_ALLOW_THREADS; | |
5482 | } Py_INCREF(Py_None); | |
5483 | _resultobj = Py_None; | |
5484 | return _resultobj; | |
5485 | } | |
5486 | ||
d5c9047a | 5487 | #define wxTreeCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) |
efc5f224 | 5488 | static PyObject *_wrap_wxTreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5489 | PyObject * _resultobj; |
d5c9047a | 5490 | wxString * _result; |
f6bcfd97 | 5491 | wxPyTreeCtrl * _arg0; |
d5c9047a | 5492 | wxTreeItemId * _arg1; |
1d99702e RD |
5493 | PyObject * _argo0 = 0; |
5494 | PyObject * _argo1 = 0; | |
efc5f224 | 5495 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
5496 | |
5497 | self = self; | |
efc5f224 | 5498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemText",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 5499 | return NULL; |
1d99702e RD |
5500 | if (_argo0) { |
5501 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5502 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5503 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemText. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5504 | return NULL; |
5505 | } | |
5506 | } | |
1d99702e RD |
5507 | if (_argo1) { |
5508 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5509 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5510 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemText. Expected _wxTreeItemId_p."); |
5511 | return NULL; | |
5512 | } | |
5513 | } | |
d5c9047a | 5514 | { |
cf694132 RD |
5515 | wxPy_BEGIN_ALLOW_THREADS; |
5516 | _result = new wxString (wxTreeCtrl_GetItemText(_arg0,*_arg1)); | |
5517 | ||
5518 | wxPy_END_ALLOW_THREADS; | |
5519 | }{ | |
eec92d76 | 5520 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
d5c9047a RD |
5521 | } |
5522 | { | |
5523 | delete _result; | |
5524 | } | |
8ab979d7 RD |
5525 | return _resultobj; |
5526 | } | |
5527 | ||
694759cf | 5528 | #define wxTreeCtrl_GetItemImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemImage(_swigarg0,_swigarg1)) |
efc5f224 | 5529 | static PyObject *_wrap_wxTreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5530 | PyObject * _resultobj; |
d5c9047a | 5531 | int _result; |
f6bcfd97 | 5532 | wxPyTreeCtrl * _arg0; |
d5c9047a | 5533 | wxTreeItemId * _arg1; |
694759cf | 5534 | wxTreeItemIcon _arg2 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); |
1d99702e RD |
5535 | PyObject * _argo0 = 0; |
5536 | PyObject * _argo1 = 0; | |
694759cf | 5537 | char *_kwnames[] = { "self","item","which", NULL }; |
8ab979d7 RD |
5538 | |
5539 | self = self; | |
694759cf | 5540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetItemImage",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 5541 | return NULL; |
1d99702e RD |
5542 | if (_argo0) { |
5543 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5544 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5545 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5546 | return NULL; |
5547 | } | |
5548 | } | |
1d99702e RD |
5549 | if (_argo1) { |
5550 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5551 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5552 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemImage. Expected _wxTreeItemId_p."); |
5553 | return NULL; | |
5554 | } | |
5555 | } | |
cf694132 RD |
5556 | { |
5557 | wxPy_BEGIN_ALLOW_THREADS; | |
694759cf | 5558 | _result = (int )wxTreeCtrl_GetItemImage(_arg0,*_arg1,_arg2); |
cf694132 RD |
5559 | |
5560 | wxPy_END_ALLOW_THREADS; | |
5561 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5562 | return _resultobj; |
5563 | } | |
5564 | ||
d5c9047a | 5565 | #define wxTreeCtrl_GetItemSelectedImage(_swigobj,_swigarg0) (_swigobj->GetItemSelectedImage(_swigarg0)) |
efc5f224 | 5566 | static PyObject *_wrap_wxTreeCtrl_GetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5567 | PyObject * _resultobj; |
d5c9047a | 5568 | int _result; |
f6bcfd97 | 5569 | wxPyTreeCtrl * _arg0; |
d5c9047a | 5570 | wxTreeItemId * _arg1; |
1d99702e RD |
5571 | PyObject * _argo0 = 0; |
5572 | PyObject * _argo1 = 0; | |
efc5f224 | 5573 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
5574 | |
5575 | self = self; | |
efc5f224 | 5576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemSelectedImage",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 5577 | return NULL; |
1d99702e RD |
5578 | if (_argo0) { |
5579 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5580 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5581 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5582 | return NULL; |
5583 | } | |
5584 | } | |
1d99702e RD |
5585 | if (_argo1) { |
5586 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5587 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5588 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemSelectedImage. Expected _wxTreeItemId_p."); |
5589 | return NULL; | |
5590 | } | |
5591 | } | |
cf694132 RD |
5592 | { |
5593 | wxPy_BEGIN_ALLOW_THREADS; | |
5594 | _result = (int )wxTreeCtrl_GetItemSelectedImage(_arg0,*_arg1); | |
8ab979d7 | 5595 | |
cf694132 RD |
5596 | wxPy_END_ALLOW_THREADS; |
5597 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5598 | return _resultobj; |
5599 | } | |
5600 | ||
d5c9047a | 5601 | #define wxTreeCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) |
efc5f224 | 5602 | static PyObject *_wrap_wxTreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5603 | PyObject * _resultobj; |
f6bcfd97 | 5604 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
5605 | wxTreeItemId * _arg1; |
5606 | wxString * _arg2; | |
1d99702e RD |
5607 | PyObject * _argo0 = 0; |
5608 | PyObject * _argo1 = 0; | |
d5c9047a | 5609 | PyObject * _obj2 = 0; |
efc5f224 | 5610 | char *_kwnames[] = { "self","item","text", NULL }; |
8ab979d7 RD |
5611 | |
5612 | self = self; | |
efc5f224 | 5613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemText",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 5614 | return NULL; |
1d99702e RD |
5615 | if (_argo0) { |
5616 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5617 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5618 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemText. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5619 | return NULL; |
5620 | } | |
5621 | } | |
1d99702e RD |
5622 | if (_argo1) { |
5623 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5624 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5625 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemText. Expected _wxTreeItemId_p."); |
5626 | return NULL; | |
5627 | } | |
5628 | } | |
5629 | { | |
2cd2fac8 RD |
5630 | #if PYTHON_API_VERSION >= 1009 |
5631 | char* tmpPtr; int tmpSize; | |
5632 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
5633 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
5634 | return NULL; | |
5635 | } | |
5636 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
5637 | return NULL; | |
5638 | _arg2 = new wxString(tmpPtr, tmpSize); | |
5639 | #else | |
d5c9047a RD |
5640 | if (!PyString_Check(_obj2)) { |
5641 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5642 | return NULL; | |
5643 | } | |
2cd2fac8 RD |
5644 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
5645 | #endif | |
d5c9047a | 5646 | } |
cf694132 RD |
5647 | { |
5648 | wxPy_BEGIN_ALLOW_THREADS; | |
5649 | wxTreeCtrl_SetItemText(_arg0,*_arg1,*_arg2); | |
5650 | ||
5651 | wxPy_END_ALLOW_THREADS; | |
5652 | } Py_INCREF(Py_None); | |
d5c9047a RD |
5653 | _resultobj = Py_None; |
5654 | { | |
5655 | if (_obj2) | |
5656 | delete _arg2; | |
5657 | } | |
8ab979d7 RD |
5658 | return _resultobj; |
5659 | } | |
5660 | ||
694759cf | 5661 | #define wxTreeCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 5662 | static PyObject *_wrap_wxTreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5663 | PyObject * _resultobj; |
f6bcfd97 | 5664 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
5665 | wxTreeItemId * _arg1; |
5666 | int _arg2; | |
694759cf | 5667 | wxTreeItemIcon _arg3 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); |
1d99702e RD |
5668 | PyObject * _argo0 = 0; |
5669 | PyObject * _argo1 = 0; | |
694759cf | 5670 | char *_kwnames[] = { "self","item","image","which", NULL }; |
8ab979d7 RD |
5671 | |
5672 | self = self; | |
694759cf | 5673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|i:wxTreeCtrl_SetItemImage",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8ab979d7 | 5674 | return NULL; |
1d99702e RD |
5675 | if (_argo0) { |
5676 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5677 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5678 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5679 | return NULL; |
5680 | } | |
5681 | } | |
1d99702e RD |
5682 | if (_argo1) { |
5683 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5684 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemImage. Expected _wxTreeItemId_p."); |
5686 | return NULL; | |
5687 | } | |
5688 | } | |
cf694132 RD |
5689 | { |
5690 | wxPy_BEGIN_ALLOW_THREADS; | |
694759cf | 5691 | wxTreeCtrl_SetItemImage(_arg0,*_arg1,_arg2,_arg3); |
cf694132 RD |
5692 | |
5693 | wxPy_END_ALLOW_THREADS; | |
5694 | } Py_INCREF(Py_None); | |
d5c9047a | 5695 | _resultobj = Py_None; |
8ab979d7 RD |
5696 | return _resultobj; |
5697 | } | |
5698 | ||
d5c9047a | 5699 | #define wxTreeCtrl_SetItemSelectedImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemSelectedImage(_swigarg0,_swigarg1)) |
efc5f224 | 5700 | static PyObject *_wrap_wxTreeCtrl_SetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5701 | PyObject * _resultobj; |
f6bcfd97 | 5702 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
5703 | wxTreeItemId * _arg1; |
5704 | int _arg2; | |
1d99702e RD |
5705 | PyObject * _argo0 = 0; |
5706 | PyObject * _argo1 = 0; | |
efc5f224 | 5707 | char *_kwnames[] = { "self","item","image", NULL }; |
8ab979d7 RD |
5708 | |
5709 | self = self; | |
efc5f224 | 5710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxTreeCtrl_SetItemSelectedImage",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 5711 | return NULL; |
1d99702e RD |
5712 | if (_argo0) { |
5713 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5714 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5716 | return NULL; |
5717 | } | |
5718 | } | |
1d99702e RD |
5719 | if (_argo1) { |
5720 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5721 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5722 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemSelectedImage. Expected _wxTreeItemId_p."); |
5723 | return NULL; | |
5724 | } | |
5725 | } | |
cf694132 RD |
5726 | { |
5727 | wxPy_BEGIN_ALLOW_THREADS; | |
5728 | wxTreeCtrl_SetItemSelectedImage(_arg0,*_arg1,_arg2); | |
5729 | ||
5730 | wxPy_END_ALLOW_THREADS; | |
5731 | } Py_INCREF(Py_None); | |
5732 | _resultobj = Py_None; | |
5733 | return _resultobj; | |
5734 | } | |
5735 | ||
5736 | #define wxTreeCtrl_SetItemHasChildren(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemHasChildren(_swigarg0,_swigarg1)) | |
efc5f224 | 5737 | static PyObject *_wrap_wxTreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 | 5738 | PyObject * _resultobj; |
f6bcfd97 | 5739 | wxPyTreeCtrl * _arg0; |
cf694132 | 5740 | wxTreeItemId * _arg1; |
1d99702e RD |
5741 | bool _arg2 = (bool ) TRUE; |
5742 | PyObject * _argo0 = 0; | |
5743 | PyObject * _argo1 = 0; | |
5744 | int tempbool2 = (int) TRUE; | |
efc5f224 | 5745 | char *_kwnames[] = { "self","item","hasChildren", NULL }; |
cf694132 RD |
5746 | |
5747 | self = self; | |
efc5f224 | 5748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemHasChildren",_kwnames,&_argo0,&_argo1,&tempbool2)) |
cf694132 | 5749 | return NULL; |
1d99702e RD |
5750 | if (_argo0) { |
5751 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5752 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5753 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
5754 | return NULL; |
5755 | } | |
5756 | } | |
1d99702e RD |
5757 | if (_argo1) { |
5758 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5759 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
5760 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemHasChildren. Expected _wxTreeItemId_p."); |
5761 | return NULL; | |
5762 | } | |
5763 | } | |
5764 | _arg2 = (bool ) tempbool2; | |
5765 | { | |
5766 | wxPy_BEGIN_ALLOW_THREADS; | |
5767 | wxTreeCtrl_SetItemHasChildren(_arg0,*_arg1,_arg2); | |
5768 | ||
5769 | wxPy_END_ALLOW_THREADS; | |
5770 | } Py_INCREF(Py_None); | |
d5c9047a | 5771 | _resultobj = Py_None; |
8ab979d7 RD |
5772 | return _resultobj; |
5773 | } | |
5774 | ||
f6bcfd97 | 5775 | static wxPyTreeItemData * wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item) { |
cf694132 RD |
5776 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
5777 | if (data == NULL) { | |
5778 | data = new wxPyTreeItemData(); | |
f6bcfd97 | 5779 | data->SetId(item); // set the id |
cf694132 RD |
5780 | self->SetItemData(item, data); |
5781 | } | |
5782 | return data; | |
5783 | } | |
efc5f224 | 5784 | static PyObject *_wrap_wxTreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
5785 | PyObject * _resultobj; |
5786 | wxPyTreeItemData * _result; | |
f6bcfd97 | 5787 | wxPyTreeCtrl * _arg0; |
cf694132 | 5788 | wxTreeItemId * _arg1; |
1d99702e RD |
5789 | PyObject * _argo0 = 0; |
5790 | PyObject * _argo1 = 0; | |
efc5f224 | 5791 | char *_kwnames[] = { "self","item", NULL }; |
cf694132 RD |
5792 | char _ptemp[128]; |
5793 | ||
5794 | self = self; | |
efc5f224 | 5795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemData",_kwnames,&_argo0,&_argo1)) |
cf694132 | 5796 | return NULL; |
1d99702e RD |
5797 | if (_argo0) { |
5798 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5799 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5800 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemData. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
5801 | return NULL; |
5802 | } | |
5803 | } | |
1d99702e RD |
5804 | if (_argo1) { |
5805 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5806 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
5807 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemData. Expected _wxTreeItemId_p."); |
5808 | return NULL; | |
5809 | } | |
5810 | } | |
5811 | { | |
5812 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 5813 | _result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(_arg0,*_arg1); |
cf694132 RD |
5814 | |
5815 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
5816 | } if (_result) { |
5817 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
5818 | _resultobj = Py_BuildValue("s",_ptemp); | |
5819 | } else { | |
5820 | Py_INCREF(Py_None); | |
5821 | _resultobj = Py_None; | |
5822 | } | |
cf694132 RD |
5823 | return _resultobj; |
5824 | } | |
5825 | ||
f6bcfd97 BP |
5826 | static void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item,wxPyTreeItemData * data) { |
5827 | data->SetId(item); // set the id | |
5828 | self->SetItemData(item, data); | |
c368d904 | 5829 | } |
efc5f224 | 5830 | static PyObject *_wrap_wxTreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5831 | PyObject * _resultobj; |
f6bcfd97 | 5832 | wxPyTreeCtrl * _arg0; |
d5c9047a | 5833 | wxTreeItemId * _arg1; |
cf694132 | 5834 | wxPyTreeItemData * _arg2; |
1d99702e RD |
5835 | PyObject * _argo0 = 0; |
5836 | PyObject * _argo1 = 0; | |
5837 | PyObject * _argo2 = 0; | |
efc5f224 | 5838 | char *_kwnames[] = { "self","item","data", NULL }; |
8ab979d7 RD |
5839 | |
5840 | self = self; | |
efc5f224 | 5841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemData",_kwnames,&_argo0,&_argo1,&_argo2)) |
8ab979d7 | 5842 | return NULL; |
1d99702e RD |
5843 | if (_argo0) { |
5844 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5845 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5846 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemData. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5847 | return NULL; |
5848 | } | |
5849 | } | |
1d99702e RD |
5850 | if (_argo1) { |
5851 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5852 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5853 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemData. Expected _wxTreeItemId_p."); |
5854 | return NULL; | |
5855 | } | |
5856 | } | |
1d99702e RD |
5857 | if (_argo2) { |
5858 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
5859 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyTreeItemData_p")) { | |
cf694132 | 5860 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemData. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
5861 | return NULL; |
5862 | } | |
5863 | } | |
cf694132 RD |
5864 | { |
5865 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 5866 | wxPyTreeCtrl_SetItemData(_arg0,*_arg1,_arg2); |
cf694132 RD |
5867 | |
5868 | wxPy_END_ALLOW_THREADS; | |
5869 | } Py_INCREF(Py_None); | |
d5c9047a | 5870 | _resultobj = Py_None; |
8ab979d7 RD |
5871 | return _resultobj; |
5872 | } | |
5873 | ||
f6bcfd97 | 5874 | static PyObject * wxPyTreeCtrl_GetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item) { |
cf694132 RD |
5875 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
5876 | if (data == NULL) { | |
5877 | data = new wxPyTreeItemData(); | |
f6bcfd97 | 5878 | data->SetId(item); // set the id |
cf694132 RD |
5879 | self->SetItemData(item, data); |
5880 | } | |
5881 | return data->GetData(); | |
c368d904 | 5882 | } |
efc5f224 | 5883 | static PyObject *_wrap_wxTreeCtrl_GetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 | 5884 | PyObject * _resultobj; |
cf694132 | 5885 | PyObject * _result; |
f6bcfd97 | 5886 | wxPyTreeCtrl * _arg0; |
08127323 | 5887 | wxTreeItemId * _arg1; |
1d99702e RD |
5888 | PyObject * _argo0 = 0; |
5889 | PyObject * _argo1 = 0; | |
efc5f224 | 5890 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
5891 | |
5892 | self = self; | |
efc5f224 | 5893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPyData",_kwnames,&_argo0,&_argo1)) |
08127323 | 5894 | return NULL; |
1d99702e RD |
5895 | if (_argo0) { |
5896 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5897 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5898 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPyData. Expected _wxPyTreeCtrl_p."); | |
08127323 RD |
5899 | return NULL; |
5900 | } | |
5901 | } | |
1d99702e RD |
5902 | if (_argo1) { |
5903 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5904 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 | 5905 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPyData. Expected _wxTreeItemId_p."); |
08127323 RD |
5906 | return NULL; |
5907 | } | |
5908 | } | |
cf694132 RD |
5909 | { |
5910 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 5911 | _result = (PyObject *)wxPyTreeCtrl_GetPyData(_arg0,*_arg1); |
cf694132 RD |
5912 | |
5913 | wxPy_END_ALLOW_THREADS; | |
5914 | }{ | |
5915 | _resultobj = _result; | |
5916 | } | |
5917 | return _resultobj; | |
5918 | } | |
5919 | ||
f6bcfd97 | 5920 | static void wxPyTreeCtrl_SetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item,PyObject * obj) { |
cf694132 RD |
5921 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
5922 | if (data == NULL) { | |
5923 | data = new wxPyTreeItemData(obj); | |
f6bcfd97 | 5924 | data->SetId(item); // set the id |
cf694132 RD |
5925 | self->SetItemData(item, data); |
5926 | } else | |
5927 | data->SetData(obj); | |
c368d904 | 5928 | } |
efc5f224 | 5929 | static PyObject *_wrap_wxTreeCtrl_SetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 | 5930 | PyObject * _resultobj; |
f6bcfd97 | 5931 | wxPyTreeCtrl * _arg0; |
cf694132 RD |
5932 | wxTreeItemId * _arg1; |
5933 | PyObject * _arg2; | |
1d99702e RD |
5934 | PyObject * _argo0 = 0; |
5935 | PyObject * _argo1 = 0; | |
cf694132 | 5936 | PyObject * _obj2 = 0; |
efc5f224 | 5937 | char *_kwnames[] = { "self","item","obj", NULL }; |
cf694132 RD |
5938 | |
5939 | self = self; | |
efc5f224 | 5940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetPyData",_kwnames,&_argo0,&_argo1,&_obj2)) |
cf694132 | 5941 | return NULL; |
1d99702e RD |
5942 | if (_argo0) { |
5943 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5944 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5945 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetPyData. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
5946 | return NULL; |
5947 | } | |
5948 | } | |
1d99702e RD |
5949 | if (_argo1) { |
5950 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5951 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
5952 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetPyData. Expected _wxTreeItemId_p."); |
5953 | return NULL; | |
5954 | } | |
5955 | } | |
5956 | { | |
5957 | _arg2 = _obj2; | |
5958 | } | |
5959 | { | |
5960 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 5961 | wxPyTreeCtrl_SetPyData(_arg0,*_arg1,_arg2); |
cf694132 RD |
5962 | |
5963 | wxPy_END_ALLOW_THREADS; | |
5964 | } Py_INCREF(Py_None); | |
08127323 RD |
5965 | _resultobj = Py_None; |
5966 | return _resultobj; | |
5967 | } | |
5968 | ||
d5c9047a | 5969 | #define wxTreeCtrl_IsVisible(_swigobj,_swigarg0) (_swigobj->IsVisible(_swigarg0)) |
efc5f224 | 5970 | static PyObject *_wrap_wxTreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5971 | PyObject * _resultobj; |
d5c9047a | 5972 | bool _result; |
f6bcfd97 | 5973 | wxPyTreeCtrl * _arg0; |
d5c9047a | 5974 | wxTreeItemId * _arg1; |
1d99702e RD |
5975 | PyObject * _argo0 = 0; |
5976 | PyObject * _argo1 = 0; | |
efc5f224 | 5977 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
5978 | |
5979 | self = self; | |
efc5f224 | 5980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 5981 | return NULL; |
1d99702e RD |
5982 | if (_argo0) { |
5983 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5984 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5985 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5986 | return NULL; |
5987 | } | |
5988 | } | |
1d99702e RD |
5989 | if (_argo1) { |
5990 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5991 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5992 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsVisible. Expected _wxTreeItemId_p."); |
5993 | return NULL; | |
5994 | } | |
5995 | } | |
cf694132 RD |
5996 | { |
5997 | wxPy_BEGIN_ALLOW_THREADS; | |
5998 | _result = (bool )wxTreeCtrl_IsVisible(_arg0,*_arg1); | |
5999 | ||
6000 | wxPy_END_ALLOW_THREADS; | |
6001 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
6002 | return _resultobj; |
6003 | } | |
6004 | ||
d5c9047a | 6005 | #define wxTreeCtrl_ItemHasChildren(_swigobj,_swigarg0) (_swigobj->ItemHasChildren(_swigarg0)) |
efc5f224 | 6006 | static PyObject *_wrap_wxTreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6007 | PyObject * _resultobj; |
d5c9047a | 6008 | bool _result; |
f6bcfd97 | 6009 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6010 | wxTreeItemId * _arg1; |
1d99702e RD |
6011 | PyObject * _argo0 = 0; |
6012 | PyObject * _argo1 = 0; | |
efc5f224 | 6013 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
6014 | |
6015 | self = self; | |
efc5f224 | 6016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ItemHasChildren",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6017 | return NULL; |
1d99702e RD |
6018 | if (_argo0) { |
6019 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6020 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6021 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6022 | return NULL; |
6023 | } | |
6024 | } | |
1d99702e RD |
6025 | if (_argo1) { |
6026 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6027 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6028 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ItemHasChildren. Expected _wxTreeItemId_p."); |
6029 | return NULL; | |
6030 | } | |
6031 | } | |
cf694132 RD |
6032 | { |
6033 | wxPy_BEGIN_ALLOW_THREADS; | |
6034 | _result = (bool )wxTreeCtrl_ItemHasChildren(_arg0,*_arg1); | |
6035 | ||
6036 | wxPy_END_ALLOW_THREADS; | |
6037 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
6038 | return _resultobj; |
6039 | } | |
6040 | ||
d5c9047a | 6041 | #define wxTreeCtrl_IsExpanded(_swigobj,_swigarg0) (_swigobj->IsExpanded(_swigarg0)) |
efc5f224 | 6042 | static PyObject *_wrap_wxTreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6043 | PyObject * _resultobj; |
d5c9047a | 6044 | bool _result; |
f6bcfd97 | 6045 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6046 | wxTreeItemId * _arg1; |
1d99702e RD |
6047 | PyObject * _argo0 = 0; |
6048 | PyObject * _argo1 = 0; | |
efc5f224 | 6049 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
6050 | |
6051 | self = self; | |
efc5f224 | 6052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsExpanded",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6053 | return NULL; |
1d99702e RD |
6054 | if (_argo0) { |
6055 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6056 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6057 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsExpanded. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6058 | return NULL; |
6059 | } | |
6060 | } | |
1d99702e RD |
6061 | if (_argo1) { |
6062 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6063 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6064 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsExpanded. Expected _wxTreeItemId_p."); |
6065 | return NULL; | |
6066 | } | |
6067 | } | |
cf694132 RD |
6068 | { |
6069 | wxPy_BEGIN_ALLOW_THREADS; | |
6070 | _result = (bool )wxTreeCtrl_IsExpanded(_arg0,*_arg1); | |
6071 | ||
6072 | wxPy_END_ALLOW_THREADS; | |
6073 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
6074 | return _resultobj; |
6075 | } | |
6076 | ||
d5c9047a | 6077 | #define wxTreeCtrl_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) |
efc5f224 | 6078 | static PyObject *_wrap_wxTreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6079 | PyObject * _resultobj; |
d5c9047a | 6080 | bool _result; |
f6bcfd97 | 6081 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6082 | wxTreeItemId * _arg1; |
1d99702e RD |
6083 | PyObject * _argo0 = 0; |
6084 | PyObject * _argo1 = 0; | |
efc5f224 | 6085 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
6086 | |
6087 | self = self; | |
efc5f224 | 6088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsSelected",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6089 | return NULL; |
1d99702e RD |
6090 | if (_argo0) { |
6091 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6092 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6093 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsSelected. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6094 | return NULL; |
6095 | } | |
6096 | } | |
1d99702e RD |
6097 | if (_argo1) { |
6098 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6099 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6100 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsSelected. Expected _wxTreeItemId_p."); |
6101 | return NULL; | |
6102 | } | |
6103 | } | |
cf694132 RD |
6104 | { |
6105 | wxPy_BEGIN_ALLOW_THREADS; | |
6106 | _result = (bool )wxTreeCtrl_IsSelected(_arg0,*_arg1); | |
6107 | ||
6108 | wxPy_END_ALLOW_THREADS; | |
6109 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
6110 | return _resultobj; |
6111 | } | |
6112 | ||
6113 | #define wxTreeCtrl_GetRootItem(_swigobj) (_swigobj->GetRootItem()) | |
efc5f224 | 6114 | static PyObject *_wrap_wxTreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6115 | PyObject * _resultobj; |
d5c9047a | 6116 | wxTreeItemId * _result; |
f6bcfd97 | 6117 | wxPyTreeCtrl * _arg0; |
1d99702e | 6118 | PyObject * _argo0 = 0; |
efc5f224 | 6119 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 6120 | char _ptemp[128]; |
8ab979d7 RD |
6121 | |
6122 | self = self; | |
efc5f224 | 6123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetRootItem",_kwnames,&_argo0)) |
8ab979d7 | 6124 | return NULL; |
1d99702e RD |
6125 | if (_argo0) { |
6126 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6127 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6128 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetRootItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6129 | return NULL; |
6130 | } | |
6131 | } | |
cf694132 RD |
6132 | { |
6133 | wxPy_BEGIN_ALLOW_THREADS; | |
6134 | _result = new wxTreeItemId (wxTreeCtrl_GetRootItem(_arg0)); | |
6135 | ||
6136 | wxPy_END_ALLOW_THREADS; | |
6137 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6138 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6139 | return _resultobj; |
6140 | } | |
6141 | ||
6142 | #define wxTreeCtrl_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
efc5f224 | 6143 | static PyObject *_wrap_wxTreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6144 | PyObject * _resultobj; |
d5c9047a | 6145 | wxTreeItemId * _result; |
f6bcfd97 | 6146 | wxPyTreeCtrl * _arg0; |
1d99702e | 6147 | PyObject * _argo0 = 0; |
efc5f224 | 6148 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 6149 | char _ptemp[128]; |
8ab979d7 RD |
6150 | |
6151 | self = self; | |
efc5f224 | 6152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelection",_kwnames,&_argo0)) |
8ab979d7 | 6153 | return NULL; |
1d99702e RD |
6154 | if (_argo0) { |
6155 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6156 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6157 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelection. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6158 | return NULL; |
6159 | } | |
6160 | } | |
cf694132 RD |
6161 | { |
6162 | wxPy_BEGIN_ALLOW_THREADS; | |
6163 | _result = new wxTreeItemId (wxTreeCtrl_GetSelection(_arg0)); | |
6164 | ||
6165 | wxPy_END_ALLOW_THREADS; | |
6166 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6167 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6168 | return _resultobj; |
6169 | } | |
6170 | ||
eb715945 RD |
6171 | #define wxTreeCtrl_GetItemParent(_swigobj,_swigarg0) (_swigobj->GetParent(_swigarg0)) |
6172 | static PyObject *_wrap_wxTreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6173 | PyObject * _resultobj; |
d5c9047a | 6174 | wxTreeItemId * _result; |
f6bcfd97 | 6175 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6176 | wxTreeItemId * _arg1; |
1d99702e RD |
6177 | PyObject * _argo0 = 0; |
6178 | PyObject * _argo1 = 0; | |
efc5f224 | 6179 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 6180 | char _ptemp[128]; |
8ab979d7 RD |
6181 | |
6182 | self = self; | |
eb715945 | 6183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6184 | return NULL; |
1d99702e RD |
6185 | if (_argo0) { |
6186 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6187 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6188 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemParent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6189 | return NULL; |
6190 | } | |
6191 | } | |
1d99702e RD |
6192 | if (_argo1) { |
6193 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6194 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
eb715945 | 6195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemParent. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
6196 | return NULL; |
6197 | } | |
6198 | } | |
cf694132 RD |
6199 | { |
6200 | wxPy_BEGIN_ALLOW_THREADS; | |
eb715945 | 6201 | _result = new wxTreeItemId (wxTreeCtrl_GetItemParent(_arg0,*_arg1)); |
cf694132 RD |
6202 | |
6203 | wxPy_END_ALLOW_THREADS; | |
6204 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6205 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6206 | return _resultobj; |
6207 | } | |
6208 | ||
f6bcfd97 | 6209 | static PyObject * wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self) { |
26b9cf27 | 6210 | bool doSave = wxPyRestoreThread(); |
d426c97e RD |
6211 | PyObject* rval = PyList_New(0); |
6212 | wxArrayTreeItemIds array; | |
6213 | size_t num, x; | |
6214 | num = self->GetSelections(array); | |
6215 | for (x=0; x < num; x++) { | |
c368d904 RD |
6216 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); |
6217 | PyObject* item = wxPyConstructObject((void*)tii, "wxTreeItemId", TRUE); | |
d426c97e RD |
6218 | PyList_Append(rval, item); |
6219 | } | |
26b9cf27 | 6220 | wxPySaveThread(doSave); |
d426c97e RD |
6221 | return rval; |
6222 | } | |
6223 | static PyObject *_wrap_wxTreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6224 | PyObject * _resultobj; | |
6225 | PyObject * _result; | |
f6bcfd97 | 6226 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
6227 | PyObject * _argo0 = 0; |
6228 | char *_kwnames[] = { "self", NULL }; | |
6229 | ||
6230 | self = self; | |
6231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelections",_kwnames,&_argo0)) | |
6232 | return NULL; | |
6233 | if (_argo0) { | |
6234 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6235 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6236 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelections. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
6237 | return NULL; |
6238 | } | |
6239 | } | |
6240 | { | |
6241 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 6242 | _result = (PyObject *)wxPyTreeCtrl_GetSelections(_arg0); |
d426c97e RD |
6243 | |
6244 | wxPy_END_ALLOW_THREADS; | |
6245 | }{ | |
6246 | _resultobj = _result; | |
6247 | } | |
6248 | return _resultobj; | |
6249 | } | |
6250 | ||
bb0054cd | 6251 | #define wxTreeCtrl_GetChildrenCount(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetChildrenCount(_swigarg0,_swigarg1)) |
efc5f224 | 6252 | static PyObject *_wrap_wxTreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
6253 | PyObject * _resultobj; |
6254 | size_t _result; | |
f6bcfd97 | 6255 | wxPyTreeCtrl * _arg0; |
bb0054cd | 6256 | wxTreeItemId * _arg1; |
1d99702e RD |
6257 | bool _arg2 = (bool ) TRUE; |
6258 | PyObject * _argo0 = 0; | |
6259 | PyObject * _argo1 = 0; | |
6260 | int tempbool2 = (int) TRUE; | |
efc5f224 | 6261 | char *_kwnames[] = { "self","item","recursively", NULL }; |
bb0054cd RD |
6262 | |
6263 | self = self; | |
efc5f224 | 6264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetChildrenCount",_kwnames,&_argo0,&_argo1,&tempbool2)) |
bb0054cd | 6265 | return NULL; |
1d99702e RD |
6266 | if (_argo0) { |
6267 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6268 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6269 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetChildrenCount. Expected _wxPyTreeCtrl_p."); | |
bb0054cd RD |
6270 | return NULL; |
6271 | } | |
6272 | } | |
1d99702e RD |
6273 | if (_argo1) { |
6274 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6275 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
bb0054cd RD |
6276 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetChildrenCount. Expected _wxTreeItemId_p."); |
6277 | return NULL; | |
6278 | } | |
6279 | } | |
6280 | _arg2 = (bool ) tempbool2; | |
6281 | { | |
6282 | wxPy_BEGIN_ALLOW_THREADS; | |
6283 | _result = (size_t )wxTreeCtrl_GetChildrenCount(_arg0,*_arg1,_arg2); | |
6284 | ||
6285 | wxPy_END_ALLOW_THREADS; | |
6286 | } _resultobj = Py_BuildValue("i",_result); | |
6287 | return _resultobj; | |
6288 | } | |
6289 | ||
d5c9047a | 6290 | #define wxTreeCtrl_GetFirstChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetFirstChild(_swigarg0,_swigarg1)) |
efc5f224 | 6291 | static PyObject *_wrap_wxTreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6292 | PyObject * _resultobj; |
d5c9047a | 6293 | wxTreeItemId * _result; |
f6bcfd97 | 6294 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
6295 | wxTreeItemId * _arg1; |
6296 | long * _arg2; | |
1d99702e RD |
6297 | PyObject * _argo0 = 0; |
6298 | PyObject * _argo1 = 0; | |
d5c9047a RD |
6299 | long temp; |
6300 | PyObject * _obj2 = 0; | |
efc5f224 | 6301 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 6302 | char _ptemp[128]; |
8ab979d7 RD |
6303 | |
6304 | self = self; | |
efc5f224 | 6305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetFirstChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
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_GetFirstChild. 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 | 6317 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetFirstChild. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
6318 | return NULL; |
6319 | } | |
6320 | } | |
d5c9047a RD |
6321 | { |
6322 | temp = (long) PyInt_AsLong(_obj2); | |
6323 | _arg2 = &temp; | |
6324 | } | |
cf694132 RD |
6325 | { |
6326 | wxPy_BEGIN_ALLOW_THREADS; | |
6327 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstChild(_arg0,*_arg1,*_arg2)); | |
6328 | ||
6329 | wxPy_END_ALLOW_THREADS; | |
6330 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a RD |
6331 | _resultobj = Py_BuildValue("s",_ptemp); |
6332 | { | |
6333 | PyObject *o; | |
6334 | o = PyInt_FromLong((long) (*_arg2)); | |
6335 | _resultobj = t_output_helper(_resultobj, o); | |
6336 | } | |
8ab979d7 RD |
6337 | return _resultobj; |
6338 | } | |
6339 | ||
d5c9047a | 6340 | #define wxTreeCtrl_GetNextChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetNextChild(_swigarg0,_swigarg1)) |
efc5f224 | 6341 | static PyObject *_wrap_wxTreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6342 | PyObject * _resultobj; |
d5c9047a | 6343 | wxTreeItemId * _result; |
f6bcfd97 | 6344 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
6345 | wxTreeItemId * _arg1; |
6346 | long * _arg2; | |
1d99702e RD |
6347 | PyObject * _argo0 = 0; |
6348 | PyObject * _argo1 = 0; | |
d5c9047a | 6349 | long temp; |
8ab979d7 | 6350 | PyObject * _obj2 = 0; |
efc5f224 | 6351 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 6352 | char _ptemp[128]; |
8ab979d7 RD |
6353 | |
6354 | self = self; | |
efc5f224 | 6355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetNextChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 6356 | return NULL; |
1d99702e RD |
6357 | if (_argo0) { |
6358 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6359 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextChild. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6361 | return NULL; |
6362 | } | |
6363 | } | |
1d99702e RD |
6364 | if (_argo1) { |
6365 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6366 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 6367 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextChild. Expected _wxTreeItemId_p."); |
8ab979d7 | 6368 | return NULL; |
d5c9047a | 6369 | } |
8ab979d7 | 6370 | } |
d5c9047a RD |
6371 | { |
6372 | temp = (long) PyInt_AsLong(_obj2); | |
6373 | _arg2 = &temp; | |
8ab979d7 | 6374 | } |
cf694132 RD |
6375 | { |
6376 | wxPy_BEGIN_ALLOW_THREADS; | |
6377 | _result = new wxTreeItemId (wxTreeCtrl_GetNextChild(_arg0,*_arg1,*_arg2)); | |
6378 | ||
6379 | wxPy_END_ALLOW_THREADS; | |
6380 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6381 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 | 6382 | { |
d5c9047a RD |
6383 | PyObject *o; |
6384 | o = PyInt_FromLong((long) (*_arg2)); | |
6385 | _resultobj = t_output_helper(_resultobj, o); | |
8ab979d7 RD |
6386 | } |
6387 | return _resultobj; | |
6388 | } | |
6389 | ||
d5c9047a | 6390 | #define wxTreeCtrl_GetNextSibling(_swigobj,_swigarg0) (_swigobj->GetNextSibling(_swigarg0)) |
efc5f224 | 6391 | static PyObject *_wrap_wxTreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6392 | PyObject * _resultobj; |
d5c9047a | 6393 | wxTreeItemId * _result; |
f6bcfd97 | 6394 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6395 | wxTreeItemId * _arg1; |
1d99702e RD |
6396 | PyObject * _argo0 = 0; |
6397 | PyObject * _argo1 = 0; | |
efc5f224 | 6398 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 6399 | char _ptemp[128]; |
8ab979d7 RD |
6400 | |
6401 | self = self; | |
efc5f224 | 6402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6403 | return NULL; |
1d99702e RD |
6404 | if (_argo0) { |
6405 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6406 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6407 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextSibling. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6408 | return NULL; |
6409 | } | |
6410 | } | |
1d99702e RD |
6411 | if (_argo1) { |
6412 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6413 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6414 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextSibling. Expected _wxTreeItemId_p."); |
6415 | return NULL; | |
6416 | } | |
6417 | } | |
cf694132 RD |
6418 | { |
6419 | wxPy_BEGIN_ALLOW_THREADS; | |
6420 | _result = new wxTreeItemId (wxTreeCtrl_GetNextSibling(_arg0,*_arg1)); | |
6421 | ||
6422 | wxPy_END_ALLOW_THREADS; | |
6423 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6424 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6425 | return _resultobj; |
6426 | } | |
6427 | ||
d5c9047a | 6428 | #define wxTreeCtrl_GetPrevSibling(_swigobj,_swigarg0) (_swigobj->GetPrevSibling(_swigarg0)) |
efc5f224 | 6429 | static PyObject *_wrap_wxTreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6430 | PyObject * _resultobj; |
d5c9047a | 6431 | wxTreeItemId * _result; |
f6bcfd97 | 6432 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6433 | wxTreeItemId * _arg1; |
1d99702e RD |
6434 | PyObject * _argo0 = 0; |
6435 | PyObject * _argo1 = 0; | |
efc5f224 | 6436 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 6437 | char _ptemp[128]; |
8ab979d7 RD |
6438 | |
6439 | self = self; | |
efc5f224 | 6440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6441 | return NULL; |
1d99702e RD |
6442 | if (_argo0) { |
6443 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6444 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6445 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevSibling. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6446 | return NULL; |
6447 | } | |
6448 | } | |
1d99702e RD |
6449 | if (_argo1) { |
6450 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6451 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6452 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevSibling. Expected _wxTreeItemId_p."); |
6453 | return NULL; | |
6454 | } | |
6455 | } | |
cf694132 RD |
6456 | { |
6457 | wxPy_BEGIN_ALLOW_THREADS; | |
6458 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevSibling(_arg0,*_arg1)); | |
6459 | ||
6460 | wxPy_END_ALLOW_THREADS; | |
6461 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6462 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6463 | return _resultobj; |
6464 | } | |
6465 | ||
d5c9047a | 6466 | #define wxTreeCtrl_GetFirstVisibleItem(_swigobj) (_swigobj->GetFirstVisibleItem()) |
efc5f224 | 6467 | static PyObject *_wrap_wxTreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6468 | PyObject * _resultobj; |
d5c9047a | 6469 | wxTreeItemId * _result; |
f6bcfd97 | 6470 | wxPyTreeCtrl * _arg0; |
1d99702e | 6471 | PyObject * _argo0 = 0; |
efc5f224 | 6472 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 6473 | char _ptemp[128]; |
8ab979d7 RD |
6474 | |
6475 | self = self; | |
efc5f224 | 6476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetFirstVisibleItem",_kwnames,&_argo0)) |
8ab979d7 | 6477 | return NULL; |
1d99702e RD |
6478 | if (_argo0) { |
6479 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6480 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6481 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstVisibleItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6482 | return NULL; |
6483 | } | |
6484 | } | |
cf694132 RD |
6485 | { |
6486 | wxPy_BEGIN_ALLOW_THREADS; | |
6487 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstVisibleItem(_arg0)); | |
6488 | ||
6489 | wxPy_END_ALLOW_THREADS; | |
6490 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6491 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6492 | return _resultobj; |
6493 | } | |
6494 | ||
d5c9047a | 6495 | #define wxTreeCtrl_GetNextVisible(_swigobj,_swigarg0) (_swigobj->GetNextVisible(_swigarg0)) |
efc5f224 | 6496 | static PyObject *_wrap_wxTreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6497 | PyObject * _resultobj; |
d5c9047a | 6498 | wxTreeItemId * _result; |
f6bcfd97 | 6499 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6500 | wxTreeItemId * _arg1; |
1d99702e RD |
6501 | PyObject * _argo0 = 0; |
6502 | PyObject * _argo1 = 0; | |
efc5f224 | 6503 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 6504 | char _ptemp[128]; |
8ab979d7 RD |
6505 | |
6506 | self = self; | |
efc5f224 | 6507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6508 | return NULL; |
1d99702e RD |
6509 | if (_argo0) { |
6510 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6511 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6512 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6513 | return NULL; |
6514 | } | |
6515 | } | |
1d99702e RD |
6516 | if (_argo1) { |
6517 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6518 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6519 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextVisible. Expected _wxTreeItemId_p."); |
6520 | return NULL; | |
6521 | } | |
6522 | } | |
cf694132 RD |
6523 | { |
6524 | wxPy_BEGIN_ALLOW_THREADS; | |
6525 | _result = new wxTreeItemId (wxTreeCtrl_GetNextVisible(_arg0,*_arg1)); | |
6526 | ||
6527 | wxPy_END_ALLOW_THREADS; | |
6528 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6529 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6530 | return _resultobj; |
6531 | } | |
6532 | ||
d5c9047a | 6533 | #define wxTreeCtrl_GetPrevVisible(_swigobj,_swigarg0) (_swigobj->GetPrevVisible(_swigarg0)) |
efc5f224 | 6534 | static PyObject *_wrap_wxTreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6535 | PyObject * _resultobj; |
d5c9047a | 6536 | wxTreeItemId * _result; |
f6bcfd97 | 6537 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6538 | wxTreeItemId * _arg1; |
1d99702e RD |
6539 | PyObject * _argo0 = 0; |
6540 | PyObject * _argo1 = 0; | |
efc5f224 | 6541 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 6542 | char _ptemp[128]; |
8ab979d7 RD |
6543 | |
6544 | self = self; | |
efc5f224 | 6545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6546 | return NULL; |
1d99702e RD |
6547 | if (_argo0) { |
6548 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6549 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6550 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6551 | return NULL; |
6552 | } | |
6553 | } | |
1d99702e RD |
6554 | if (_argo1) { |
6555 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6556 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 6557 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevVisible. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
6558 | return NULL; |
6559 | } | |
6560 | } | |
cf694132 RD |
6561 | { |
6562 | wxPy_BEGIN_ALLOW_THREADS; | |
6563 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevVisible(_arg0,*_arg1)); | |
6564 | ||
6565 | wxPy_END_ALLOW_THREADS; | |
6566 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6567 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6568 | return _resultobj; |
6569 | } | |
6570 | ||
d426c97e RD |
6571 | #define wxTreeCtrl_GetLastChild(_swigobj,_swigarg0) (_swigobj->GetLastChild(_swigarg0)) |
6572 | static PyObject *_wrap_wxTreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6573 | PyObject * _resultobj; | |
6574 | wxTreeItemId * _result; | |
f6bcfd97 | 6575 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
6576 | wxTreeItemId * _arg1; |
6577 | PyObject * _argo0 = 0; | |
6578 | PyObject * _argo1 = 0; | |
6579 | char *_kwnames[] = { "self","item", NULL }; | |
6580 | char _ptemp[128]; | |
6581 | ||
6582 | self = self; | |
6583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetLastChild",_kwnames,&_argo0,&_argo1)) | |
6584 | return NULL; | |
6585 | if (_argo0) { | |
6586 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6587 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6588 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetLastChild. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
6589 | return NULL; |
6590 | } | |
6591 | } | |
6592 | if (_argo1) { | |
6593 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6594 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
6595 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetLastChild. Expected _wxTreeItemId_p."); | |
6596 | return NULL; | |
6597 | } | |
6598 | } | |
6599 | { | |
6600 | wxPy_BEGIN_ALLOW_THREADS; | |
6601 | _result = new wxTreeItemId (wxTreeCtrl_GetLastChild(_arg0,*_arg1)); | |
6602 | ||
6603 | wxPy_END_ALLOW_THREADS; | |
6604 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
6605 | _resultobj = Py_BuildValue("s",_ptemp); | |
6606 | return _resultobj; | |
6607 | } | |
6608 | ||
d5c9047a | 6609 | #define wxTreeCtrl_AddRoot(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->AddRoot(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
efc5f224 | 6610 | static PyObject *_wrap_wxTreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6611 | PyObject * _resultobj; |
d5c9047a | 6612 | wxTreeItemId * _result; |
f6bcfd97 | 6613 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6614 | wxString * _arg1; |
1d99702e RD |
6615 | int _arg2 = (int ) -1; |
6616 | int _arg3 = (int ) -1; | |
6617 | wxPyTreeItemData * _arg4 = (wxPyTreeItemData *) NULL; | |
6618 | PyObject * _argo0 = 0; | |
d5c9047a | 6619 | PyObject * _obj1 = 0; |
1d99702e | 6620 | PyObject * _argo4 = 0; |
efc5f224 | 6621 | char *_kwnames[] = { "self","text","image","selectedImage","data", NULL }; |
d5c9047a | 6622 | char _ptemp[128]; |
8ab979d7 RD |
6623 | |
6624 | self = self; | |
efc5f224 | 6625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iiO:wxTreeCtrl_AddRoot",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_argo4)) |
8ab979d7 | 6626 | return NULL; |
1d99702e RD |
6627 | if (_argo0) { |
6628 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6629 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6630 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AddRoot. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6631 | return NULL; |
6632 | } | |
6633 | } | |
d5c9047a | 6634 | { |
2cd2fac8 RD |
6635 | #if PYTHON_API_VERSION >= 1009 |
6636 | char* tmpPtr; int tmpSize; | |
6637 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
6638 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
6639 | return NULL; | |
6640 | } | |
6641 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6642 | return NULL; | |
6643 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6644 | #else | |
d5c9047a RD |
6645 | if (!PyString_Check(_obj1)) { |
6646 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6647 | return NULL; | |
6648 | } | |
2cd2fac8 RD |
6649 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
6650 | #endif | |
d5c9047a | 6651 | } |
1d99702e RD |
6652 | if (_argo4) { |
6653 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
6654 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxPyTreeItemData_p")) { | |
cf694132 | 6655 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxTreeCtrl_AddRoot. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
6656 | return NULL; |
6657 | } | |
6658 | } | |
cf694132 RD |
6659 | { |
6660 | wxPy_BEGIN_ALLOW_THREADS; | |
6661 | _result = new wxTreeItemId (wxTreeCtrl_AddRoot(_arg0,*_arg1,_arg2,_arg3,_arg4)); | |
6662 | ||
6663 | wxPy_END_ALLOW_THREADS; | |
6664 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a RD |
6665 | _resultobj = Py_BuildValue("s",_ptemp); |
6666 | { | |
6667 | if (_obj1) | |
6668 | delete _arg1; | |
6669 | } | |
8ab979d7 RD |
6670 | return _resultobj; |
6671 | } | |
6672 | ||
d5c9047a | 6673 | #define wxTreeCtrl_PrependItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->PrependItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 6674 | static PyObject *_wrap_wxTreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6675 | PyObject * _resultobj; |
d5c9047a | 6676 | wxTreeItemId * _result; |
f6bcfd97 | 6677 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
6678 | wxTreeItemId * _arg1; |
6679 | wxString * _arg2; | |
1d99702e RD |
6680 | int _arg3 = (int ) -1; |
6681 | int _arg4 = (int ) -1; | |
6682 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
6683 | PyObject * _argo0 = 0; | |
6684 | PyObject * _argo1 = 0; | |
d5c9047a | 6685 | PyObject * _obj2 = 0; |
1d99702e | 6686 | PyObject * _argo5 = 0; |
efc5f224 | 6687 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 6688 | char _ptemp[128]; |
8ab979d7 RD |
6689 | |
6690 | self = self; | |
efc5f224 | 6691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_PrependItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 6692 | return NULL; |
1d99702e RD |
6693 | if (_argo0) { |
6694 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6695 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6696 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_PrependItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6697 | return NULL; |
6698 | } | |
6699 | } | |
1d99702e RD |
6700 | if (_argo1) { |
6701 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6702 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6703 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_PrependItem. Expected _wxTreeItemId_p."); |
6704 | return NULL; | |
6705 | } | |
6706 | } | |
6707 | { | |
2cd2fac8 RD |
6708 | #if PYTHON_API_VERSION >= 1009 |
6709 | char* tmpPtr; int tmpSize; | |
6710 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
6711 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
6712 | return NULL; | |
6713 | } | |
6714 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
6715 | return NULL; | |
6716 | _arg2 = new wxString(tmpPtr, tmpSize); | |
6717 | #else | |
d5c9047a RD |
6718 | if (!PyString_Check(_obj2)) { |
6719 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6720 | return NULL; | |
6721 | } | |
2cd2fac8 RD |
6722 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
6723 | #endif | |
d5c9047a | 6724 | } |
1d99702e RD |
6725 | if (_argo5) { |
6726 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
6727 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 6728 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_PrependItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
6729 | return NULL; |
6730 | } | |
6731 | } | |
cf694132 RD |
6732 | { |
6733 | wxPy_BEGIN_ALLOW_THREADS; | |
6734 | _result = new wxTreeItemId (wxTreeCtrl_PrependItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); | |
6735 | ||
6736 | wxPy_END_ALLOW_THREADS; | |
6737 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a RD |
6738 | _resultobj = Py_BuildValue("s",_ptemp); |
6739 | { | |
6740 | if (_obj2) | |
6741 | delete _arg2; | |
6742 | } | |
8ab979d7 RD |
6743 | return _resultobj; |
6744 | } | |
6745 | ||
d5c9047a | 6746 | #define wxTreeCtrl_InsertItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 6747 | static PyObject *_wrap_wxTreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6748 | PyObject * _resultobj; |
d5c9047a | 6749 | wxTreeItemId * _result; |
f6bcfd97 | 6750 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
6751 | wxTreeItemId * _arg1; |
6752 | wxTreeItemId * _arg2; | |
6753 | wxString * _arg3; | |
1d99702e RD |
6754 | int _arg4 = (int ) -1; |
6755 | int _arg5 = (int ) -1; | |
6756 | wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL; | |
6757 | PyObject * _argo0 = 0; | |
6758 | PyObject * _argo1 = 0; | |
6759 | PyObject * _argo2 = 0; | |
d5c9047a | 6760 | PyObject * _obj3 = 0; |
1d99702e | 6761 | PyObject * _argo6 = 0; |
efc5f224 | 6762 | char *_kwnames[] = { "self","parent","idPrevious","text","image","selectedImage","data", NULL }; |
d5c9047a | 6763 | char _ptemp[128]; |
8ab979d7 RD |
6764 | |
6765 | self = self; | |
efc5f224 | 6766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|iiO:wxTreeCtrl_InsertItem",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3,&_arg4,&_arg5,&_argo6)) |
8ab979d7 | 6767 | return NULL; |
1d99702e RD |
6768 | if (_argo0) { |
6769 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6770 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6772 | return NULL; |
6773 | } | |
6774 | } | |
1d99702e RD |
6775 | if (_argo1) { |
6776 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6777 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
6779 | return NULL; | |
6780 | } | |
6781 | } | |
1d99702e RD |
6782 | if (_argo2) { |
6783 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
6784 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6785 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
6786 | return NULL; | |
6787 | } | |
6788 | } | |
6789 | { | |
2cd2fac8 RD |
6790 | #if PYTHON_API_VERSION >= 1009 |
6791 | char* tmpPtr; int tmpSize; | |
6792 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
6793 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
6794 | return NULL; | |
6795 | } | |
6796 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
6797 | return NULL; | |
6798 | _arg3 = new wxString(tmpPtr, tmpSize); | |
6799 | #else | |
d5c9047a RD |
6800 | if (!PyString_Check(_obj3)) { |
6801 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6802 | return NULL; | |
6803 | } | |
2cd2fac8 RD |
6804 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
6805 | #endif | |
d5c9047a | 6806 | } |
1d99702e RD |
6807 | if (_argo6) { |
6808 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
6809 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) { | |
cf694132 | 6810 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
6811 | return NULL; |
6812 | } | |
6813 | } | |
cf694132 RD |
6814 | { |
6815 | wxPy_BEGIN_ALLOW_THREADS; | |
6816 | _result = new wxTreeItemId (wxTreeCtrl_InsertItem(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6)); | |
6817 | ||
6818 | wxPy_END_ALLOW_THREADS; | |
6819 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a RD |
6820 | _resultobj = Py_BuildValue("s",_ptemp); |
6821 | { | |
6822 | if (_obj3) | |
6823 | delete _arg3; | |
6824 | } | |
8ab979d7 RD |
6825 | return _resultobj; |
6826 | } | |
6827 | ||
f6bcfd97 BP |
6828 | #define wxTreeCtrl_InsertItemBefore(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
6829 | static PyObject *_wrap_wxTreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6830 | PyObject * _resultobj; | |
6831 | wxTreeItemId * _result; | |
6832 | wxPyTreeCtrl * _arg0; | |
6833 | wxTreeItemId * _arg1; | |
6834 | size_t _arg2; | |
6835 | wxString * _arg3; | |
6836 | int _arg4 = (int ) -1; | |
6837 | int _arg5 = (int ) -1; | |
6838 | wxTreeItemData * _arg6 = (wxTreeItemData *) NULL; | |
6839 | PyObject * _argo0 = 0; | |
6840 | PyObject * _argo1 = 0; | |
6841 | PyObject * _obj3 = 0; | |
6842 | PyObject * _argo6 = 0; | |
6843 | char *_kwnames[] = { "self","parent","before","text","image","selectedImage","data", NULL }; | |
6844 | char _ptemp[128]; | |
6845 | ||
6846 | self = self; | |
6847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|iiO:wxTreeCtrl_InsertItemBefore",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_arg4,&_arg5,&_argo6)) | |
6848 | return NULL; | |
6849 | if (_argo0) { | |
6850 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6851 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6852 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItemBefore. Expected _wxPyTreeCtrl_p."); | |
6853 | return NULL; | |
6854 | } | |
6855 | } | |
6856 | if (_argo1) { | |
6857 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6858 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
6859 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemId_p."); | |
6860 | return NULL; | |
6861 | } | |
6862 | } | |
6863 | { | |
2cd2fac8 RD |
6864 | #if PYTHON_API_VERSION >= 1009 |
6865 | char* tmpPtr; int tmpSize; | |
6866 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
6867 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
6868 | return NULL; | |
6869 | } | |
6870 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
6871 | return NULL; | |
6872 | _arg3 = new wxString(tmpPtr, tmpSize); | |
6873 | #else | |
f6bcfd97 BP |
6874 | if (!PyString_Check(_obj3)) { |
6875 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6876 | return NULL; | |
6877 | } | |
2cd2fac8 RD |
6878 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
6879 | #endif | |
f6bcfd97 BP |
6880 | } |
6881 | if (_argo6) { | |
6882 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
6883 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxTreeItemData_p")) { | |
6884 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemData_p."); | |
6885 | return NULL; | |
6886 | } | |
6887 | } | |
6888 | { | |
6889 | wxPy_BEGIN_ALLOW_THREADS; | |
6890 | _result = new wxTreeItemId (wxTreeCtrl_InsertItemBefore(_arg0,*_arg1,_arg2,*_arg3,_arg4,_arg5,_arg6)); | |
6891 | ||
6892 | wxPy_END_ALLOW_THREADS; | |
6893 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
6894 | _resultobj = Py_BuildValue("s",_ptemp); | |
6895 | { | |
6896 | if (_obj3) | |
6897 | delete _arg3; | |
6898 | } | |
6899 | return _resultobj; | |
6900 | } | |
6901 | ||
d5c9047a | 6902 | #define wxTreeCtrl_AppendItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->AppendItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 6903 | static PyObject *_wrap_wxTreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6904 | PyObject * _resultobj; |
d5c9047a | 6905 | wxTreeItemId * _result; |
f6bcfd97 | 6906 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6907 | wxTreeItemId * _arg1; |
8ab979d7 | 6908 | wxString * _arg2; |
1d99702e RD |
6909 | int _arg3 = (int ) -1; |
6910 | int _arg4 = (int ) -1; | |
6911 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
6912 | PyObject * _argo0 = 0; | |
6913 | PyObject * _argo1 = 0; | |
8ab979d7 | 6914 | PyObject * _obj2 = 0; |
1d99702e | 6915 | PyObject * _argo5 = 0; |
efc5f224 | 6916 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 6917 | char _ptemp[128]; |
8ab979d7 RD |
6918 | |
6919 | self = self; | |
efc5f224 | 6920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_AppendItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 6921 | return NULL; |
1d99702e RD |
6922 | if (_argo0) { |
6923 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6924 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6925 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AppendItem. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
6926 | return NULL; |
6927 | } | |
6928 | } | |
1d99702e RD |
6929 | if (_argo1) { |
6930 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6931 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 6932 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AppendItem. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
6933 | return NULL; |
6934 | } | |
6935 | } | |
6936 | { | |
2cd2fac8 RD |
6937 | #if PYTHON_API_VERSION >= 1009 |
6938 | char* tmpPtr; int tmpSize; | |
6939 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
6940 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
6941 | return NULL; | |
6942 | } | |
6943 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
6944 | return NULL; | |
6945 | _arg2 = new wxString(tmpPtr, tmpSize); | |
6946 | #else | |
8ab979d7 RD |
6947 | if (!PyString_Check(_obj2)) { |
6948 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6949 | return NULL; | |
6950 | } | |
2cd2fac8 RD |
6951 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
6952 | #endif | |
8ab979d7 | 6953 | } |
1d99702e RD |
6954 | if (_argo5) { |
6955 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
6956 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 6957 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_AppendItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
6958 | return NULL; |
6959 | } | |
6960 | } | |
cf694132 RD |
6961 | { |
6962 | wxPy_BEGIN_ALLOW_THREADS; | |
6963 | _result = new wxTreeItemId (wxTreeCtrl_AppendItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); | |
6964 | ||
6965 | wxPy_END_ALLOW_THREADS; | |
6966 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6967 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6968 | { |
6969 | if (_obj2) | |
6970 | delete _arg2; | |
6971 | } | |
6972 | return _resultobj; | |
6973 | } | |
6974 | ||
d5c9047a | 6975 | #define wxTreeCtrl_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
efc5f224 | 6976 | static PyObject *_wrap_wxTreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6977 | PyObject * _resultobj; |
f6bcfd97 | 6978 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6979 | wxTreeItemId * _arg1; |
1d99702e RD |
6980 | PyObject * _argo0 = 0; |
6981 | PyObject * _argo1 = 0; | |
efc5f224 | 6982 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
6983 | |
6984 | self = self; | |
efc5f224 | 6985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Delete",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6986 | return NULL; |
1d99702e RD |
6987 | if (_argo0) { |
6988 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6989 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6990 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Delete. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6991 | return NULL; |
6992 | } | |
6993 | } | |
1d99702e RD |
6994 | if (_argo1) { |
6995 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6996 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6997 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Delete. Expected _wxTreeItemId_p."); |
6998 | return NULL; | |
6999 | } | |
7000 | } | |
cf694132 RD |
7001 | { |
7002 | wxPy_BEGIN_ALLOW_THREADS; | |
7003 | wxTreeCtrl_Delete(_arg0,*_arg1); | |
7004 | ||
7005 | wxPy_END_ALLOW_THREADS; | |
7006 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7007 | _resultobj = Py_None; |
7008 | return _resultobj; | |
7009 | } | |
7010 | ||
08127323 | 7011 | #define wxTreeCtrl_DeleteChildren(_swigobj,_swigarg0) (_swigobj->DeleteChildren(_swigarg0)) |
efc5f224 | 7012 | static PyObject *_wrap_wxTreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 | 7013 | PyObject * _resultobj; |
f6bcfd97 | 7014 | wxPyTreeCtrl * _arg0; |
08127323 | 7015 | wxTreeItemId * _arg1; |
1d99702e RD |
7016 | PyObject * _argo0 = 0; |
7017 | PyObject * _argo1 = 0; | |
efc5f224 | 7018 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
7019 | |
7020 | self = self; | |
efc5f224 | 7021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_DeleteChildren",_kwnames,&_argo0,&_argo1)) |
08127323 | 7022 | return NULL; |
1d99702e RD |
7023 | if (_argo0) { |
7024 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7025 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7026 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteChildren. Expected _wxPyTreeCtrl_p."); | |
08127323 RD |
7027 | return NULL; |
7028 | } | |
7029 | } | |
1d99702e RD |
7030 | if (_argo1) { |
7031 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7032 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
08127323 RD |
7033 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_DeleteChildren. Expected _wxTreeItemId_p."); |
7034 | return NULL; | |
7035 | } | |
7036 | } | |
cf694132 RD |
7037 | { |
7038 | wxPy_BEGIN_ALLOW_THREADS; | |
7039 | wxTreeCtrl_DeleteChildren(_arg0,*_arg1); | |
7040 | ||
7041 | wxPy_END_ALLOW_THREADS; | |
7042 | } Py_INCREF(Py_None); | |
08127323 RD |
7043 | _resultobj = Py_None; |
7044 | return _resultobj; | |
7045 | } | |
7046 | ||
d5c9047a | 7047 | #define wxTreeCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) |
efc5f224 | 7048 | static PyObject *_wrap_wxTreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7049 | PyObject * _resultobj; |
f6bcfd97 | 7050 | wxPyTreeCtrl * _arg0; |
1d99702e | 7051 | PyObject * _argo0 = 0; |
efc5f224 | 7052 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
7053 | |
7054 | self = self; | |
efc5f224 | 7055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_DeleteAllItems",_kwnames,&_argo0)) |
d5c9047a | 7056 | return NULL; |
1d99702e RD |
7057 | if (_argo0) { |
7058 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7059 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7060 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteAllItems. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7061 | return NULL; |
7062 | } | |
7063 | } | |
cf694132 RD |
7064 | { |
7065 | wxPy_BEGIN_ALLOW_THREADS; | |
7066 | wxTreeCtrl_DeleteAllItems(_arg0); | |
7067 | ||
7068 | wxPy_END_ALLOW_THREADS; | |
7069 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7070 | _resultobj = Py_None; |
7071 | return _resultobj; | |
7072 | } | |
7073 | ||
7074 | #define wxTreeCtrl_Expand(_swigobj,_swigarg0) (_swigobj->Expand(_swigarg0)) | |
efc5f224 | 7075 | static PyObject *_wrap_wxTreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7076 | PyObject * _resultobj; |
f6bcfd97 | 7077 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7078 | wxTreeItemId * _arg1; |
1d99702e RD |
7079 | PyObject * _argo0 = 0; |
7080 | PyObject * _argo1 = 0; | |
efc5f224 | 7081 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7082 | |
7083 | self = self; | |
efc5f224 | 7084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Expand",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7085 | return NULL; |
1d99702e RD |
7086 | if (_argo0) { |
7087 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7088 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7089 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Expand. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7090 | return NULL; |
7091 | } | |
7092 | } | |
1d99702e RD |
7093 | if (_argo1) { |
7094 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7095 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7096 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Expand. Expected _wxTreeItemId_p."); |
7097 | return NULL; | |
7098 | } | |
7099 | } | |
cf694132 RD |
7100 | { |
7101 | wxPy_BEGIN_ALLOW_THREADS; | |
7102 | wxTreeCtrl_Expand(_arg0,*_arg1); | |
7103 | ||
7104 | wxPy_END_ALLOW_THREADS; | |
7105 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7106 | _resultobj = Py_None; |
7107 | return _resultobj; | |
7108 | } | |
7109 | ||
7110 | #define wxTreeCtrl_Collapse(_swigobj,_swigarg0) (_swigobj->Collapse(_swigarg0)) | |
efc5f224 | 7111 | static PyObject *_wrap_wxTreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7112 | PyObject * _resultobj; |
f6bcfd97 | 7113 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7114 | wxTreeItemId * _arg1; |
1d99702e RD |
7115 | PyObject * _argo0 = 0; |
7116 | PyObject * _argo1 = 0; | |
efc5f224 | 7117 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7118 | |
7119 | self = self; | |
efc5f224 | 7120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Collapse",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7121 | return NULL; |
1d99702e RD |
7122 | if (_argo0) { |
7123 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7124 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7125 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Collapse. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7126 | return NULL; |
7127 | } | |
7128 | } | |
1d99702e RD |
7129 | if (_argo1) { |
7130 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7131 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7132 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Collapse. Expected _wxTreeItemId_p."); |
7133 | return NULL; | |
7134 | } | |
7135 | } | |
cf694132 RD |
7136 | { |
7137 | wxPy_BEGIN_ALLOW_THREADS; | |
7138 | wxTreeCtrl_Collapse(_arg0,*_arg1); | |
7139 | ||
7140 | wxPy_END_ALLOW_THREADS; | |
7141 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7142 | _resultobj = Py_None; |
7143 | return _resultobj; | |
7144 | } | |
7145 | ||
7146 | #define wxTreeCtrl_CollapseAndReset(_swigobj,_swigarg0) (_swigobj->CollapseAndReset(_swigarg0)) | |
efc5f224 | 7147 | static PyObject *_wrap_wxTreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7148 | PyObject * _resultobj; |
f6bcfd97 | 7149 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7150 | wxTreeItemId * _arg1; |
1d99702e RD |
7151 | PyObject * _argo0 = 0; |
7152 | PyObject * _argo1 = 0; | |
efc5f224 | 7153 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7154 | |
7155 | self = self; | |
efc5f224 | 7156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_CollapseAndReset",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7157 | return NULL; |
1d99702e RD |
7158 | if (_argo0) { |
7159 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7160 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7161 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_CollapseAndReset. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7162 | return NULL; |
7163 | } | |
7164 | } | |
1d99702e RD |
7165 | if (_argo1) { |
7166 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7167 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7168 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_CollapseAndReset. Expected _wxTreeItemId_p."); |
7169 | return NULL; | |
7170 | } | |
7171 | } | |
cf694132 RD |
7172 | { |
7173 | wxPy_BEGIN_ALLOW_THREADS; | |
7174 | wxTreeCtrl_CollapseAndReset(_arg0,*_arg1); | |
7175 | ||
7176 | wxPy_END_ALLOW_THREADS; | |
7177 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7178 | _resultobj = Py_None; |
7179 | return _resultobj; | |
7180 | } | |
7181 | ||
7182 | #define wxTreeCtrl_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0)) | |
efc5f224 | 7183 | static PyObject *_wrap_wxTreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7184 | PyObject * _resultobj; |
f6bcfd97 | 7185 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7186 | wxTreeItemId * _arg1; |
1d99702e RD |
7187 | PyObject * _argo0 = 0; |
7188 | PyObject * _argo1 = 0; | |
efc5f224 | 7189 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7190 | |
7191 | self = self; | |
efc5f224 | 7192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Toggle",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7193 | return NULL; |
1d99702e RD |
7194 | if (_argo0) { |
7195 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7196 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7197 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Toggle. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7198 | return NULL; |
7199 | } | |
7200 | } | |
1d99702e RD |
7201 | if (_argo1) { |
7202 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7203 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7204 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Toggle. Expected _wxTreeItemId_p."); |
7205 | return NULL; | |
7206 | } | |
7207 | } | |
cf694132 RD |
7208 | { |
7209 | wxPy_BEGIN_ALLOW_THREADS; | |
7210 | wxTreeCtrl_Toggle(_arg0,*_arg1); | |
7211 | ||
7212 | wxPy_END_ALLOW_THREADS; | |
7213 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7214 | _resultobj = Py_None; |
7215 | return _resultobj; | |
7216 | } | |
7217 | ||
7218 | #define wxTreeCtrl_Unselect(_swigobj) (_swigobj->Unselect()) | |
efc5f224 | 7219 | static PyObject *_wrap_wxTreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7220 | PyObject * _resultobj; |
f6bcfd97 | 7221 | wxPyTreeCtrl * _arg0; |
1d99702e | 7222 | PyObject * _argo0 = 0; |
efc5f224 | 7223 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
7224 | |
7225 | self = self; | |
efc5f224 | 7226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_Unselect",_kwnames,&_argo0)) |
d5c9047a | 7227 | return NULL; |
1d99702e RD |
7228 | if (_argo0) { |
7229 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7230 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7231 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Unselect. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7232 | return NULL; |
7233 | } | |
7234 | } | |
cf694132 RD |
7235 | { |
7236 | wxPy_BEGIN_ALLOW_THREADS; | |
7237 | wxTreeCtrl_Unselect(_arg0); | |
7238 | ||
7239 | wxPy_END_ALLOW_THREADS; | |
7240 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7241 | _resultobj = Py_None; |
7242 | return _resultobj; | |
7243 | } | |
7244 | ||
8bf5d46e | 7245 | #define wxTreeCtrl_UnselectAll(_swigobj) (_swigobj->UnselectAll()) |
efc5f224 | 7246 | static PyObject *_wrap_wxTreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e | 7247 | PyObject * _resultobj; |
f6bcfd97 | 7248 | wxPyTreeCtrl * _arg0; |
1d99702e | 7249 | PyObject * _argo0 = 0; |
efc5f224 | 7250 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
7251 | |
7252 | self = self; | |
efc5f224 | 7253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_UnselectAll",_kwnames,&_argo0)) |
8bf5d46e | 7254 | return NULL; |
1d99702e RD |
7255 | if (_argo0) { |
7256 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7257 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7258 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_UnselectAll. Expected _wxPyTreeCtrl_p."); | |
8bf5d46e RD |
7259 | return NULL; |
7260 | } | |
7261 | } | |
7262 | { | |
7263 | wxPy_BEGIN_ALLOW_THREADS; | |
7264 | wxTreeCtrl_UnselectAll(_arg0); | |
7265 | ||
7266 | wxPy_END_ALLOW_THREADS; | |
7267 | } Py_INCREF(Py_None); | |
7268 | _resultobj = Py_None; | |
7269 | return _resultobj; | |
7270 | } | |
7271 | ||
d5c9047a | 7272 | #define wxTreeCtrl_SelectItem(_swigobj,_swigarg0) (_swigobj->SelectItem(_swigarg0)) |
efc5f224 | 7273 | static PyObject *_wrap_wxTreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7274 | PyObject * _resultobj; |
f6bcfd97 | 7275 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7276 | wxTreeItemId * _arg1; |
1d99702e RD |
7277 | PyObject * _argo0 = 0; |
7278 | PyObject * _argo1 = 0; | |
efc5f224 | 7279 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7280 | |
7281 | self = self; | |
efc5f224 | 7282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SelectItem",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7283 | return NULL; |
1d99702e RD |
7284 | if (_argo0) { |
7285 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7286 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7287 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SelectItem. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7288 | return NULL; |
7289 | } | |
7290 | } | |
1d99702e RD |
7291 | if (_argo1) { |
7292 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7293 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7294 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SelectItem. Expected _wxTreeItemId_p."); |
7295 | return NULL; | |
7296 | } | |
7297 | } | |
cf694132 RD |
7298 | { |
7299 | wxPy_BEGIN_ALLOW_THREADS; | |
7300 | wxTreeCtrl_SelectItem(_arg0,*_arg1); | |
7301 | ||
7302 | wxPy_END_ALLOW_THREADS; | |
7303 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7304 | _resultobj = Py_None; |
7305 | return _resultobj; | |
7306 | } | |
7307 | ||
7308 | #define wxTreeCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) | |
efc5f224 | 7309 | static PyObject *_wrap_wxTreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7310 | PyObject * _resultobj; |
f6bcfd97 | 7311 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7312 | wxTreeItemId * _arg1; |
1d99702e RD |
7313 | PyObject * _argo0 = 0; |
7314 | PyObject * _argo1 = 0; | |
efc5f224 | 7315 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7316 | |
7317 | self = self; | |
efc5f224 | 7318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EnsureVisible",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7319 | return NULL; |
1d99702e RD |
7320 | if (_argo0) { |
7321 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7322 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7323 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EnsureVisible. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7324 | return NULL; |
7325 | } | |
7326 | } | |
1d99702e RD |
7327 | if (_argo1) { |
7328 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7329 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EnsureVisible. Expected _wxTreeItemId_p."); |
7331 | return NULL; | |
7332 | } | |
7333 | } | |
cf694132 RD |
7334 | { |
7335 | wxPy_BEGIN_ALLOW_THREADS; | |
7336 | wxTreeCtrl_EnsureVisible(_arg0,*_arg1); | |
7337 | ||
7338 | wxPy_END_ALLOW_THREADS; | |
7339 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7340 | _resultobj = Py_None; |
7341 | return _resultobj; | |
7342 | } | |
7343 | ||
7344 | #define wxTreeCtrl_ScrollTo(_swigobj,_swigarg0) (_swigobj->ScrollTo(_swigarg0)) | |
efc5f224 | 7345 | static PyObject *_wrap_wxTreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7346 | PyObject * _resultobj; |
f6bcfd97 | 7347 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7348 | wxTreeItemId * _arg1; |
1d99702e RD |
7349 | PyObject * _argo0 = 0; |
7350 | PyObject * _argo1 = 0; | |
efc5f224 | 7351 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7352 | |
7353 | self = self; | |
efc5f224 | 7354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ScrollTo",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7355 | return NULL; |
1d99702e RD |
7356 | if (_argo0) { |
7357 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7358 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7359 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ScrollTo. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7360 | return NULL; |
7361 | } | |
7362 | } | |
1d99702e RD |
7363 | if (_argo1) { |
7364 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7365 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7366 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ScrollTo. Expected _wxTreeItemId_p."); |
7367 | return NULL; | |
7368 | } | |
7369 | } | |
cf694132 RD |
7370 | { |
7371 | wxPy_BEGIN_ALLOW_THREADS; | |
7372 | wxTreeCtrl_ScrollTo(_arg0,*_arg1); | |
7373 | ||
7374 | wxPy_END_ALLOW_THREADS; | |
7375 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7376 | _resultobj = Py_None; |
7377 | return _resultobj; | |
7378 | } | |
7379 | ||
7380 | #define wxTreeCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0)) | |
efc5f224 | 7381 | static PyObject *_wrap_wxTreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7382 | PyObject * _resultobj; |
f6bcfd97 | 7383 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7384 | wxTreeItemId * _arg1; |
1d99702e RD |
7385 | PyObject * _argo0 = 0; |
7386 | PyObject * _argo1 = 0; | |
efc5f224 | 7387 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7388 | |
7389 | self = self; | |
efc5f224 | 7390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EditLabel",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7391 | return NULL; |
1d99702e RD |
7392 | if (_argo0) { |
7393 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7394 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7395 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EditLabel. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7396 | return NULL; |
7397 | } | |
7398 | } | |
1d99702e RD |
7399 | if (_argo1) { |
7400 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7401 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7402 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EditLabel. Expected _wxTreeItemId_p."); |
7403 | return NULL; | |
7404 | } | |
7405 | } | |
cf694132 RD |
7406 | { |
7407 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 7408 | wxTreeCtrl_EditLabel(_arg0,*_arg1); |
cf694132 RD |
7409 | |
7410 | wxPy_END_ALLOW_THREADS; | |
7411 | } Py_INCREF(Py_None); | |
d5c9047a | 7412 | _resultobj = Py_None; |
8ab979d7 RD |
7413 | return _resultobj; |
7414 | } | |
7415 | ||
d426c97e RD |
7416 | #define wxTreeCtrl_SortChildren(_swigobj,_swigarg0) (_swigobj->SortChildren(_swigarg0)) |
7417 | static PyObject *_wrap_wxTreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7418 | PyObject * _resultobj; | |
f6bcfd97 | 7419 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
7420 | wxTreeItemId * _arg1; |
7421 | PyObject * _argo0 = 0; | |
7422 | PyObject * _argo1 = 0; | |
7423 | char *_kwnames[] = { "self","item", NULL }; | |
7424 | ||
7425 | self = self; | |
7426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SortChildren",_kwnames,&_argo0,&_argo1)) | |
7427 | return NULL; | |
7428 | if (_argo0) { | |
7429 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7430 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7431 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SortChildren. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
7432 | return NULL; |
7433 | } | |
7434 | } | |
7435 | if (_argo1) { | |
7436 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7437 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7438 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SortChildren. Expected _wxTreeItemId_p."); | |
7439 | return NULL; | |
7440 | } | |
7441 | } | |
7442 | { | |
7443 | wxPy_BEGIN_ALLOW_THREADS; | |
7444 | wxTreeCtrl_SortChildren(_arg0,*_arg1); | |
7445 | ||
7446 | wxPy_END_ALLOW_THREADS; | |
7447 | } Py_INCREF(Py_None); | |
7448 | _resultobj = Py_None; | |
7449 | return _resultobj; | |
7450 | } | |
7451 | ||
b8b8dda7 | 7452 | #define wxTreeCtrl_SetItemBold(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBold(_swigarg0,_swigarg1)) |
efc5f224 | 7453 | static PyObject *_wrap_wxTreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 | 7454 | PyObject * _resultobj; |
f6bcfd97 | 7455 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 7456 | wxTreeItemId * _arg1; |
b1462dfa | 7457 | int _arg2 = (int ) TRUE; |
1d99702e RD |
7458 | PyObject * _argo0 = 0; |
7459 | PyObject * _argo1 = 0; | |
efc5f224 | 7460 | char *_kwnames[] = { "self","item","bold", NULL }; |
b8b8dda7 RD |
7461 | |
7462 | self = self; | |
b1462dfa | 7463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemBold",_kwnames,&_argo0,&_argo1,&_arg2)) |
b8b8dda7 | 7464 | return NULL; |
1d99702e RD |
7465 | if (_argo0) { |
7466 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7467 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7468 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBold. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
7469 | return NULL; |
7470 | } | |
7471 | } | |
1d99702e RD |
7472 | if (_argo1) { |
7473 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7474 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
b8b8dda7 RD |
7475 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBold. Expected _wxTreeItemId_p."); |
7476 | return NULL; | |
7477 | } | |
7478 | } | |
cf694132 RD |
7479 | { |
7480 | wxPy_BEGIN_ALLOW_THREADS; | |
7481 | wxTreeCtrl_SetItemBold(_arg0,*_arg1,_arg2); | |
7482 | ||
7483 | wxPy_END_ALLOW_THREADS; | |
7484 | } Py_INCREF(Py_None); | |
b8b8dda7 RD |
7485 | _resultobj = Py_None; |
7486 | return _resultobj; | |
7487 | } | |
7488 | ||
7489 | #define wxTreeCtrl_IsBold(_swigobj,_swigarg0) (_swigobj->IsBold(_swigarg0)) | |
efc5f224 | 7490 | static PyObject *_wrap_wxTreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
7491 | PyObject * _resultobj; |
7492 | bool _result; | |
f6bcfd97 | 7493 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 7494 | wxTreeItemId * _arg1; |
1d99702e RD |
7495 | PyObject * _argo0 = 0; |
7496 | PyObject * _argo1 = 0; | |
efc5f224 | 7497 | char *_kwnames[] = { "self","item", NULL }; |
b8b8dda7 RD |
7498 | |
7499 | self = self; | |
efc5f224 | 7500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsBold",_kwnames,&_argo0,&_argo1)) |
b8b8dda7 | 7501 | return NULL; |
1d99702e RD |
7502 | if (_argo0) { |
7503 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7504 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7505 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsBold. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
7506 | return NULL; |
7507 | } | |
7508 | } | |
1d99702e RD |
7509 | if (_argo1) { |
7510 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7511 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
b8b8dda7 RD |
7512 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsBold. Expected _wxTreeItemId_p."); |
7513 | return NULL; | |
7514 | } | |
7515 | } | |
cf694132 RD |
7516 | { |
7517 | wxPy_BEGIN_ALLOW_THREADS; | |
7518 | _result = (bool )wxTreeCtrl_IsBold(_arg0,*_arg1); | |
7519 | ||
7520 | wxPy_END_ALLOW_THREADS; | |
7521 | } _resultobj = Py_BuildValue("i",_result); | |
b8b8dda7 RD |
7522 | return _resultobj; |
7523 | } | |
7524 | ||
164b735b | 7525 | #define wxTreeCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) |
efc5f224 | 7526 | static PyObject *_wrap_wxTreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
7527 | PyObject * _resultobj; |
7528 | wxTreeItemId * _result; | |
f6bcfd97 | 7529 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 7530 | wxPoint * _arg1; |
164b735b RD |
7531 | int * _arg2; |
7532 | int temp; | |
1d99702e | 7533 | PyObject * _argo0 = 0; |
164b735b | 7534 | wxPoint temp0; |
2f90df85 | 7535 | PyObject * _obj1 = 0; |
efc5f224 | 7536 | char *_kwnames[] = { "self","point", NULL }; |
b8b8dda7 RD |
7537 | char _ptemp[128]; |
7538 | ||
7539 | self = self; | |
164b735b RD |
7540 | { |
7541 | _arg2 = &temp; | |
7542 | } | |
2f90df85 | 7543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_HitTest",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 7544 | return NULL; |
1d99702e RD |
7545 | if (_argo0) { |
7546 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7547 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7548 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_HitTest. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
7549 | return NULL; |
7550 | } | |
7551 | } | |
2f90df85 | 7552 | { |
164b735b | 7553 | _arg1 = &temp0; |
2f90df85 | 7554 | if (! wxPoint_helper(_obj1, &_arg1)) |
b8b8dda7 | 7555 | return NULL; |
2f90df85 | 7556 | } |
cf694132 RD |
7557 | { |
7558 | wxPy_BEGIN_ALLOW_THREADS; | |
164b735b | 7559 | _result = new wxTreeItemId (wxTreeCtrl_HitTest(_arg0,*_arg1,*_arg2)); |
cf694132 RD |
7560 | |
7561 | wxPy_END_ALLOW_THREADS; | |
7562 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
b8b8dda7 | 7563 | _resultobj = Py_BuildValue("s",_ptemp); |
164b735b RD |
7564 | { |
7565 | PyObject *o; | |
7566 | o = PyInt_FromLong((long) (*_arg2)); | |
7567 | _resultobj = t_output_helper(_resultobj, o); | |
7568 | } | |
b8b8dda7 RD |
7569 | return _resultobj; |
7570 | } | |
7571 | ||
b7e72427 RD |
7572 | #define wxTreeCtrl_SetItemTextColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemTextColour(_swigarg0,_swigarg1)) |
7573 | static PyObject *_wrap_wxTreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7574 | PyObject * _resultobj; | |
f6bcfd97 | 7575 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
7576 | wxTreeItemId * _arg1; |
7577 | wxColour * _arg2; | |
7578 | PyObject * _argo0 = 0; | |
7579 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
7580 | wxColour temp; |
7581 | PyObject * _obj2 = 0; | |
b7e72427 RD |
7582 | char *_kwnames[] = { "self","item","col", NULL }; |
7583 | ||
7584 | self = self; | |
f6bcfd97 | 7585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemTextColour",_kwnames,&_argo0,&_argo1,&_obj2)) |
b7e72427 RD |
7586 | return NULL; |
7587 | if (_argo0) { | |
7588 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7589 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7590 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemTextColour. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
7591 | return NULL; |
7592 | } | |
7593 | } | |
7594 | if (_argo1) { | |
7595 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7596 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7597 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemTextColour. Expected _wxTreeItemId_p."); | |
7598 | return NULL; | |
7599 | } | |
7600 | } | |
f6bcfd97 BP |
7601 | { |
7602 | _arg2 = &temp; | |
7603 | if (! wxColour_helper(_obj2, &_arg2)) | |
b7e72427 | 7604 | return NULL; |
f6bcfd97 | 7605 | } |
b7e72427 RD |
7606 | { |
7607 | wxPy_BEGIN_ALLOW_THREADS; | |
7608 | wxTreeCtrl_SetItemTextColour(_arg0,*_arg1,*_arg2); | |
7609 | ||
7610 | wxPy_END_ALLOW_THREADS; | |
7611 | } Py_INCREF(Py_None); | |
7612 | _resultobj = Py_None; | |
7613 | return _resultobj; | |
7614 | } | |
7615 | ||
7616 | #define wxTreeCtrl_SetItemBackgroundColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBackgroundColour(_swigarg0,_swigarg1)) | |
7617 | static PyObject *_wrap_wxTreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7618 | PyObject * _resultobj; | |
f6bcfd97 | 7619 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
7620 | wxTreeItemId * _arg1; |
7621 | wxColour * _arg2; | |
7622 | PyObject * _argo0 = 0; | |
7623 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
7624 | wxColour temp; |
7625 | PyObject * _obj2 = 0; | |
b7e72427 RD |
7626 | char *_kwnames[] = { "self","item","col", NULL }; |
7627 | ||
7628 | self = self; | |
f6bcfd97 | 7629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemBackgroundColour",_kwnames,&_argo0,&_argo1,&_obj2)) |
b7e72427 RD |
7630 | return NULL; |
7631 | if (_argo0) { | |
7632 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7633 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7634 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
7635 | return NULL; |
7636 | } | |
7637 | } | |
7638 | if (_argo1) { | |
7639 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7640 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7641 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxTreeItemId_p."); | |
7642 | return NULL; | |
7643 | } | |
7644 | } | |
f6bcfd97 BP |
7645 | { |
7646 | _arg2 = &temp; | |
7647 | if (! wxColour_helper(_obj2, &_arg2)) | |
b7e72427 | 7648 | return NULL; |
f6bcfd97 | 7649 | } |
b7e72427 RD |
7650 | { |
7651 | wxPy_BEGIN_ALLOW_THREADS; | |
7652 | wxTreeCtrl_SetItemBackgroundColour(_arg0,*_arg1,*_arg2); | |
7653 | ||
7654 | wxPy_END_ALLOW_THREADS; | |
7655 | } Py_INCREF(Py_None); | |
7656 | _resultobj = Py_None; | |
7657 | return _resultobj; | |
7658 | } | |
7659 | ||
7660 | #define wxTreeCtrl_SetItemFont(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemFont(_swigarg0,_swigarg1)) | |
7661 | static PyObject *_wrap_wxTreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7662 | PyObject * _resultobj; | |
f6bcfd97 | 7663 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
7664 | wxTreeItemId * _arg1; |
7665 | wxFont * _arg2; | |
7666 | PyObject * _argo0 = 0; | |
7667 | PyObject * _argo1 = 0; | |
7668 | PyObject * _argo2 = 0; | |
7669 | char *_kwnames[] = { "self","item","font", NULL }; | |
7670 | ||
7671 | self = self; | |
7672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemFont",_kwnames,&_argo0,&_argo1,&_argo2)) | |
7673 | return NULL; | |
7674 | if (_argo0) { | |
7675 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7676 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7677 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemFont. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
7678 | return NULL; |
7679 | } | |
7680 | } | |
7681 | if (_argo1) { | |
7682 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7683 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7684 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemFont. Expected _wxTreeItemId_p."); | |
7685 | return NULL; | |
7686 | } | |
7687 | } | |
7688 | if (_argo2) { | |
7689 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7690 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
7691 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemFont. Expected _wxFont_p."); | |
7692 | return NULL; | |
7693 | } | |
7694 | } | |
7695 | { | |
7696 | wxPy_BEGIN_ALLOW_THREADS; | |
7697 | wxTreeCtrl_SetItemFont(_arg0,*_arg1,*_arg2); | |
7698 | ||
7699 | wxPy_END_ALLOW_THREADS; | |
7700 | } Py_INCREF(Py_None); | |
7701 | _resultobj = Py_None; | |
7702 | return _resultobj; | |
7703 | } | |
7704 | ||
8ab979d7 | 7705 | static PyMethodDef controls2cMethods[] = { |
b7e72427 RD |
7706 | { "wxTreeCtrl_SetItemFont", (PyCFunction) _wrap_wxTreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, |
7707 | { "wxTreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
7708 | { "wxTreeCtrl_SetItemTextColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
7709 | { "wxTreeCtrl_HitTest", (PyCFunction) _wrap_wxTreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
7710 | { "wxTreeCtrl_IsBold", (PyCFunction) _wrap_wxTreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
7711 | { "wxTreeCtrl_SetItemBold", (PyCFunction) _wrap_wxTreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 7712 | { "wxTreeCtrl_SortChildren", (PyCFunction) _wrap_wxTreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
7713 | { "wxTreeCtrl_EditLabel", (PyCFunction) _wrap_wxTreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, |
7714 | { "wxTreeCtrl_ScrollTo", (PyCFunction) _wrap_wxTreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
7715 | { "wxTreeCtrl_EnsureVisible", (PyCFunction) _wrap_wxTreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
7716 | { "wxTreeCtrl_SelectItem", (PyCFunction) _wrap_wxTreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
7717 | { "wxTreeCtrl_UnselectAll", (PyCFunction) _wrap_wxTreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, | |
7718 | { "wxTreeCtrl_Unselect", (PyCFunction) _wrap_wxTreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
7719 | { "wxTreeCtrl_Toggle", (PyCFunction) _wrap_wxTreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
7720 | { "wxTreeCtrl_CollapseAndReset", (PyCFunction) _wrap_wxTreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
7721 | { "wxTreeCtrl_Collapse", (PyCFunction) _wrap_wxTreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
7722 | { "wxTreeCtrl_Expand", (PyCFunction) _wrap_wxTreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
7723 | { "wxTreeCtrl_DeleteAllItems", (PyCFunction) _wrap_wxTreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
7724 | { "wxTreeCtrl_DeleteChildren", (PyCFunction) _wrap_wxTreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
7725 | { "wxTreeCtrl_Delete", (PyCFunction) _wrap_wxTreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
7726 | { "wxTreeCtrl_AppendItem", (PyCFunction) _wrap_wxTreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 7727 | { "wxTreeCtrl_InsertItemBefore", (PyCFunction) _wrap_wxTreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
7728 | { "wxTreeCtrl_InsertItem", (PyCFunction) _wrap_wxTreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, |
7729 | { "wxTreeCtrl_PrependItem", (PyCFunction) _wrap_wxTreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
7730 | { "wxTreeCtrl_AddRoot", (PyCFunction) _wrap_wxTreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 7731 | { "wxTreeCtrl_GetLastChild", (PyCFunction) _wrap_wxTreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
7732 | { "wxTreeCtrl_GetPrevVisible", (PyCFunction) _wrap_wxTreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, |
7733 | { "wxTreeCtrl_GetNextVisible", (PyCFunction) _wrap_wxTreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
7734 | { "wxTreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_wxTreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
7735 | { "wxTreeCtrl_GetPrevSibling", (PyCFunction) _wrap_wxTreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
7736 | { "wxTreeCtrl_GetNextSibling", (PyCFunction) _wrap_wxTreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
7737 | { "wxTreeCtrl_GetNextChild", (PyCFunction) _wrap_wxTreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
7738 | { "wxTreeCtrl_GetFirstChild", (PyCFunction) _wrap_wxTreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
7739 | { "wxTreeCtrl_GetChildrenCount", (PyCFunction) _wrap_wxTreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 7740 | { "wxTreeCtrl_GetSelections", (PyCFunction) _wrap_wxTreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 7741 | { "wxTreeCtrl_GetItemParent", (PyCFunction) _wrap_wxTreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
7742 | { "wxTreeCtrl_GetSelection", (PyCFunction) _wrap_wxTreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, |
7743 | { "wxTreeCtrl_GetRootItem", (PyCFunction) _wrap_wxTreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
7744 | { "wxTreeCtrl_IsSelected", (PyCFunction) _wrap_wxTreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
7745 | { "wxTreeCtrl_IsExpanded", (PyCFunction) _wrap_wxTreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
7746 | { "wxTreeCtrl_ItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
7747 | { "wxTreeCtrl_IsVisible", (PyCFunction) _wrap_wxTreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
7748 | { "wxTreeCtrl_SetPyData", (PyCFunction) _wrap_wxTreeCtrl_SetPyData, METH_VARARGS | METH_KEYWORDS }, | |
7749 | { "wxTreeCtrl_GetPyData", (PyCFunction) _wrap_wxTreeCtrl_GetPyData, METH_VARARGS | METH_KEYWORDS }, | |
7750 | { "wxTreeCtrl_SetItemData", (PyCFunction) _wrap_wxTreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
7751 | { "wxTreeCtrl_GetItemData", (PyCFunction) _wrap_wxTreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
7752 | { "wxTreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
7753 | { "wxTreeCtrl_SetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
7754 | { "wxTreeCtrl_SetItemImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
7755 | { "wxTreeCtrl_SetItemText", (PyCFunction) _wrap_wxTreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
7756 | { "wxTreeCtrl_GetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
7757 | { "wxTreeCtrl_GetItemImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
7758 | { "wxTreeCtrl_GetItemText", (PyCFunction) _wrap_wxTreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
7759 | { "wxTreeCtrl_SetSpacing", (PyCFunction) _wrap_wxTreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, |
7760 | { "wxTreeCtrl_GetSpacing", (PyCFunction) _wrap_wxTreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
7761 | { "wxTreeCtrl_SetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, |
7762 | { "wxTreeCtrl_SetImageList", (PyCFunction) _wrap_wxTreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
7763 | { "wxTreeCtrl_GetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
7764 | { "wxTreeCtrl_GetImageList", (PyCFunction) _wrap_wxTreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
7765 | { "wxTreeCtrl_SetIndent", (PyCFunction) _wrap_wxTreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
7766 | { "wxTreeCtrl_GetIndent", (PyCFunction) _wrap_wxTreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
7767 | { "wxTreeCtrl_GetCount", (PyCFunction) _wrap_wxTreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
9c4165ad | 7768 | { "wxTreeCtrl_AssignImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 | 7769 | { "wxTreeCtrl__setSelf", (PyCFunction) _wrap_wxTreeCtrl__setSelf, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
7770 | { "new_wxTreeCtrl", (PyCFunction) _wrap_new_wxTreeCtrl, METH_VARARGS | METH_KEYWORDS }, |
7771 | { "wxTreeEvent_GetLabel", (PyCFunction) _wrap_wxTreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
7772 | { "wxTreeEvent_GetCode", (PyCFunction) _wrap_wxTreeEvent_GetCode, METH_VARARGS | METH_KEYWORDS }, | |
7773 | { "wxTreeEvent_GetPoint", (PyCFunction) _wrap_wxTreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
7774 | { "wxTreeEvent_GetOldItem", (PyCFunction) _wrap_wxTreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
7775 | { "wxTreeEvent_GetItem", (PyCFunction) _wrap_wxTreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
7776 | { "wxTreeItemData_SetId", (PyCFunction) _wrap_wxTreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, | |
7777 | { "wxTreeItemData_GetId", (PyCFunction) _wrap_wxTreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
7778 | { "wxTreeItemData_SetData", (PyCFunction) _wrap_wxTreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
7779 | { "wxTreeItemData_GetData", (PyCFunction) _wrap_wxTreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
7780 | { "new_wxTreeItemData", (PyCFunction) _wrap_new_wxTreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 7781 | { "wxTreeItemId___cmp__", (PyCFunction) _wrap_wxTreeItemId___cmp__, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
7782 | { "wxTreeItemId_IsOk", (PyCFunction) _wrap_wxTreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, |
7783 | { "delete_wxTreeItemId", (PyCFunction) _wrap_delete_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
7784 | { "new_wxTreeItemId", (PyCFunction) _wrap_new_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
dcd38683 | 7785 | { "wxListCtrl_SortItems", (PyCFunction) _wrap_wxListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
7786 | { "wxListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_wxListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, |
7787 | { "wxListCtrl_SetSingleStyle", (PyCFunction) _wrap_wxListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
7788 | { "wxListCtrl_SetItemText", (PyCFunction) _wrap_wxListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
7789 | { "wxListCtrl_SetItemState", (PyCFunction) _wrap_wxListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
7790 | { "wxListCtrl_SetItemPosition", (PyCFunction) _wrap_wxListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
7791 | { "wxListCtrl_SetItemImage", (PyCFunction) _wrap_wxListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
7792 | { "wxListCtrl_SetItemData", (PyCFunction) _wrap_wxListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
7793 | { "wxListCtrl_SetStringItem", (PyCFunction) _wrap_wxListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
7794 | { "wxListCtrl_SetItem", (PyCFunction) _wrap_wxListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
7795 | { "wxListCtrl_SetImageList", (PyCFunction) _wrap_wxListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
7796 | { "wxListCtrl_SetColumnWidth", (PyCFunction) _wrap_wxListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
7797 | { "wxListCtrl_SetColumn", (PyCFunction) _wrap_wxListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
7798 | { "wxListCtrl_SetBackgroundColour", (PyCFunction) _wrap_wxListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
7799 | { "wxListCtrl_ScrollList", (PyCFunction) _wrap_wxListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, | |
7800 | { "wxListCtrl_InsertImageStringItem", (PyCFunction) _wrap_wxListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, | |
7801 | { "wxListCtrl_InsertImageItem", (PyCFunction) _wrap_wxListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
7802 | { "wxListCtrl_InsertStringItem", (PyCFunction) _wrap_wxListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
7803 | { "wxListCtrl_InsertItem", (PyCFunction) _wrap_wxListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
7804 | { "wxListCtrl_InsertColumn", (PyCFunction) _wrap_wxListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
c368d904 | 7805 | { "wxListCtrl_InsertColumnInfo", (PyCFunction) _wrap_wxListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
7806 | { "wxListCtrl_HitTest", (PyCFunction) _wrap_wxListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
7807 | { "wxListCtrl_GetTopItem", (PyCFunction) _wrap_wxListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
7808 | { "wxListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_wxListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, |
7809 | { "wxListCtrl_GetNextItem", (PyCFunction) _wrap_wxListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
7810 | { "wxListCtrl_GetItemText", (PyCFunction) _wrap_wxListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
7811 | { "wxListCtrl_GetItemSpacing", (PyCFunction) _wrap_wxListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
7812 | { "wxListCtrl_GetItemCount", (PyCFunction) _wrap_wxListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
7813 | { "wxListCtrl_GetItemState", (PyCFunction) _wrap_wxListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
7814 | { "wxListCtrl_GetItemRect", (PyCFunction) _wrap_wxListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
7815 | { "wxListCtrl_GetItemPosition", (PyCFunction) _wrap_wxListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
7816 | { "wxListCtrl_GetItem", (PyCFunction) _wrap_wxListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
7817 | { "wxListCtrl_GetItemData", (PyCFunction) _wrap_wxListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
7818 | { "wxListCtrl_GetImageList", (PyCFunction) _wrap_wxListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
7819 | { "wxListCtrl_GetCountPerPage", (PyCFunction) _wrap_wxListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
7820 | { "wxListCtrl_GetColumnWidth", (PyCFunction) _wrap_wxListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
7821 | { "wxListCtrl_GetColumn", (PyCFunction) _wrap_wxListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
7822 | { "wxListCtrl_FindItemAtPos", (PyCFunction) _wrap_wxListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, | |
7823 | { "wxListCtrl_FindItemData", (PyCFunction) _wrap_wxListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
7824 | { "wxListCtrl_FindItem", (PyCFunction) _wrap_wxListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
7825 | { "wxListCtrl_EnsureVisible", (PyCFunction) _wrap_wxListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
7826 | { "wxListCtrl_EditLabel", (PyCFunction) _wrap_wxListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, |
7827 | { "wxListCtrl_ClearAll", (PyCFunction) _wrap_wxListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, | |
7828 | { "wxListCtrl_DeleteAllColumns", (PyCFunction) _wrap_wxListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
7829 | { "wxListCtrl_DeleteColumn", (PyCFunction) _wrap_wxListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
7830 | { "wxListCtrl_DeleteAllItems", (PyCFunction) _wrap_wxListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
7831 | { "wxListCtrl_DeleteItem", (PyCFunction) _wrap_wxListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
9c4165ad | 7832 | { "wxListCtrl_AssignImageList", (PyCFunction) _wrap_wxListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
7833 | { "wxListCtrl_Arrange", (PyCFunction) _wrap_wxListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, |
7834 | { "new_wxListCtrl", (PyCFunction) _wrap_new_wxListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
7835 | { "wxListEvent_GetItem", (PyCFunction) _wrap_wxListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, |
7836 | { "wxListEvent_GetMask", (PyCFunction) _wrap_wxListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
7837 | { "wxListEvent_GetData", (PyCFunction) _wrap_wxListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
7838 | { "wxListEvent_GetImage", (PyCFunction) _wrap_wxListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
7839 | { "wxListEvent_GetText", (PyCFunction) _wrap_wxListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
7840 | { "wxListEvent_GetLabel", (PyCFunction) _wrap_wxListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
7841 | { "wxListEvent_GetPoint", (PyCFunction) _wrap_wxListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
7842 | { "wxListEvent_Cancelled", (PyCFunction) _wrap_wxListEvent_Cancelled, METH_VARARGS | METH_KEYWORDS }, | |
7843 | { "wxListEvent_GetColumn", (PyCFunction) _wrap_wxListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
7844 | { "wxListEvent_GetOldItem", (PyCFunction) _wrap_wxListEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
7845 | { "wxListEvent_GetOldIndex", (PyCFunction) _wrap_wxListEvent_GetOldIndex, METH_VARARGS | METH_KEYWORDS }, | |
7846 | { "wxListEvent_GetIndex", (PyCFunction) _wrap_wxListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
7847 | { "wxListEvent_GetCode", (PyCFunction) _wrap_wxListEvent_GetCode, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
7848 | { "wxListEvent_m_item_get", (PyCFunction) _wrap_wxListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, |
7849 | { "wxListEvent_m_item_set", (PyCFunction) _wrap_wxListEvent_m_item_set, METH_VARARGS | METH_KEYWORDS }, | |
7850 | { "wxListEvent_m_pointDrag_get", (PyCFunction) _wrap_wxListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, | |
7851 | { "wxListEvent_m_pointDrag_set", (PyCFunction) _wrap_wxListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS }, | |
7852 | { "wxListEvent_m_cancelled_get", (PyCFunction) _wrap_wxListEvent_m_cancelled_get, METH_VARARGS | METH_KEYWORDS }, | |
7853 | { "wxListEvent_m_cancelled_set", (PyCFunction) _wrap_wxListEvent_m_cancelled_set, METH_VARARGS | METH_KEYWORDS }, | |
7854 | { "wxListEvent_m_col_get", (PyCFunction) _wrap_wxListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
7855 | { "wxListEvent_m_col_set", (PyCFunction) _wrap_wxListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
7856 | { "wxListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
7857 | { "wxListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
7858 | { "wxListEvent_m_itemIndex_get", (PyCFunction) _wrap_wxListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
7859 | { "wxListEvent_m_itemIndex_set", (PyCFunction) _wrap_wxListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
7860 | { "wxListEvent_m_code_get", (PyCFunction) _wrap_wxListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, | |
7861 | { "wxListEvent_m_code_set", (PyCFunction) _wrap_wxListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
7862 | { "wxListItem_m_width_get", (PyCFunction) _wrap_wxListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, |
7863 | { "wxListItem_m_width_set", (PyCFunction) _wrap_wxListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
7864 | { "wxListItem_m_format_get", (PyCFunction) _wrap_wxListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
7865 | { "wxListItem_m_format_set", (PyCFunction) _wrap_wxListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
7866 | { "wxListItem_m_data_get", (PyCFunction) _wrap_wxListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
7867 | { "wxListItem_m_data_set", (PyCFunction) _wrap_wxListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
7868 | { "wxListItem_m_image_get", (PyCFunction) _wrap_wxListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
7869 | { "wxListItem_m_image_set", (PyCFunction) _wrap_wxListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
7870 | { "wxListItem_m_text_get", (PyCFunction) _wrap_wxListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
7871 | { "wxListItem_m_text_set", (PyCFunction) _wrap_wxListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
7872 | { "wxListItem_m_stateMask_get", (PyCFunction) _wrap_wxListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
7873 | { "wxListItem_m_stateMask_set", (PyCFunction) _wrap_wxListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
7874 | { "wxListItem_m_state_get", (PyCFunction) _wrap_wxListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
7875 | { "wxListItem_m_state_set", (PyCFunction) _wrap_wxListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
7876 | { "wxListItem_m_col_get", (PyCFunction) _wrap_wxListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
7877 | { "wxListItem_m_col_set", (PyCFunction) _wrap_wxListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
7878 | { "wxListItem_m_itemId_get", (PyCFunction) _wrap_wxListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
7879 | { "wxListItem_m_itemId_set", (PyCFunction) _wrap_wxListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
7880 | { "wxListItem_m_mask_get", (PyCFunction) _wrap_wxListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
7881 | { "wxListItem_m_mask_set", (PyCFunction) _wrap_wxListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
7882 | { "wxListItem_GetFont", (PyCFunction) _wrap_wxListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, |
7883 | { "wxListItem_GetBackgroundColour", (PyCFunction) _wrap_wxListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
7884 | { "wxListItem_GetTextColour", (PyCFunction) _wrap_wxListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
7885 | { "wxListItem_HasAttributes", (PyCFunction) _wrap_wxListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
7886 | { "wxListItem_GetAttributes", (PyCFunction) _wrap_wxListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
7887 | { "wxListItem_GetAlign", (PyCFunction) _wrap_wxListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
7888 | { "wxListItem_GetWidth", (PyCFunction) _wrap_wxListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
7889 | { "wxListItem_GetData", (PyCFunction) _wrap_wxListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
7890 | { "wxListItem_GetImage", (PyCFunction) _wrap_wxListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
7891 | { "wxListItem_GetText", (PyCFunction) _wrap_wxListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
7892 | { "wxListItem_GetState", (PyCFunction) _wrap_wxListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
7893 | { "wxListItem_GetColumn", (PyCFunction) _wrap_wxListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
7894 | { "wxListItem_GetId", (PyCFunction) _wrap_wxListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
7895 | { "wxListItem_GetMask", (PyCFunction) _wrap_wxListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
7896 | { "wxListItem_SetFont", (PyCFunction) _wrap_wxListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
7897 | { "wxListItem_SetBackgroundColour", (PyCFunction) _wrap_wxListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
7898 | { "wxListItem_SetTextColour", (PyCFunction) _wrap_wxListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
7899 | { "wxListItem_SetAlign", (PyCFunction) _wrap_wxListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
7900 | { "wxListItem_SetWidth", (PyCFunction) _wrap_wxListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
7901 | { "wxListItem_SetData", (PyCFunction) _wrap_wxListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
7902 | { "wxListItem_SetImage", (PyCFunction) _wrap_wxListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
7903 | { "wxListItem_SetText", (PyCFunction) _wrap_wxListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
7904 | { "wxListItem_SetStateMask", (PyCFunction) _wrap_wxListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
7905 | { "wxListItem_SetState", (PyCFunction) _wrap_wxListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
7906 | { "wxListItem_SetColumn", (PyCFunction) _wrap_wxListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
7907 | { "wxListItem_SetId", (PyCFunction) _wrap_wxListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
7908 | { "wxListItem_SetMask", (PyCFunction) _wrap_wxListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
7909 | { "wxListItem_ClearAttributes", (PyCFunction) _wrap_wxListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
7910 | { "wxListItem_Clear", (PyCFunction) _wrap_wxListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
7911 | { "delete_wxListItem", (PyCFunction) _wrap_delete_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
7912 | { "new_wxListItem", (PyCFunction) _wrap_new_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
7913 | { "wxListItemAttr_GetFont", (PyCFunction) _wrap_wxListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
7914 | { "wxListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
7915 | { "wxListItemAttr_GetTextColour", (PyCFunction) _wrap_wxListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
7916 | { "wxListItemAttr_HasFont", (PyCFunction) _wrap_wxListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
7917 | { "wxListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
7918 | { "wxListItemAttr_HasTextColour", (PyCFunction) _wrap_wxListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
7919 | { "wxListItemAttr_SetFont", (PyCFunction) _wrap_wxListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
7920 | { "wxListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
7921 | { "wxListItemAttr_SetTextColour", (PyCFunction) _wrap_wxListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
7922 | { "new_wxListItemAttr", (PyCFunction) _wrap_new_wxListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
8ab979d7 RD |
7923 | { NULL, NULL } |
7924 | }; | |
1d99702e RD |
7925 | #ifdef __cplusplus |
7926 | } | |
7927 | #endif | |
7928 | /* | |
7929 | * This table is used by the pointer type-checker | |
7930 | */ | |
7931 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
7932 | { "_wxAcceleratorTable","_class_wxAcceleratorTable",0}, | |
7933 | { "_wxEvent","_class_wxTreeEvent",SwigwxTreeEventTowxEvent}, | |
7934 | { "_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent}, | |
7935 | { "_wxEvent","_class_wxListEvent",SwigwxListEventTowxEvent}, | |
7936 | { "_wxEvent","_wxListEvent",SwigwxListEventTowxEvent}, | |
7937 | { "_wxEvent","_class_wxEvent",0}, | |
7938 | { "_class_wxActivateEvent","_wxActivateEvent",0}, | |
7939 | { "_signed_long","_long",0}, | |
7940 | { "_wxMenuEvent","_class_wxMenuEvent",0}, | |
65dd82cb | 7941 | { "_wxPyBitmapDataObject","_class_wxPyBitmapDataObject",0}, |
b1462dfa | 7942 | { "_wxBitmapDataObject","_class_wxBitmapDataObject",0}, |
2f90df85 | 7943 | { "_class_wxPyCommandEvent","_wxPyCommandEvent",0}, |
b1462dfa | 7944 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
7945 | { "_wxPrintQuality","_int",0}, |
7946 | { "_wxPrintQuality","_signed_int",0}, | |
7947 | { "_wxPrintQuality","_unsigned_int",0}, | |
7948 | { "_wxPrintQuality","_wxWindowID",0}, | |
7949 | { "_wxPrintQuality","_uint",0}, | |
7950 | { "_wxPrintQuality","_EBool",0}, | |
7951 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 7952 | { "_wxPrintQuality","_time_t",0}, |
b1462dfa | 7953 | { "_class_wxCustomDataObject","_wxCustomDataObject",0}, |
f6bcfd97 | 7954 | { "_wxSpinCtrl","_class_wxSpinCtrl",0}, |
1d99702e | 7955 | { "_class_wxRegionIterator","_wxRegionIterator",0}, |
b1462dfa | 7956 | { "_class_wxPyTextDropTarget","_wxPyTextDropTarget",0}, |
1d99702e RD |
7957 | { "_class_wxMenuBar","_wxMenuBar",0}, |
7958 | { "_class_wxPyTreeItemData","_wxPyTreeItemData",0}, | |
f6bcfd97 BP |
7959 | { "_class_wxEvtHandler","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, |
7960 | { "_class_wxEvtHandler","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, | |
1d99702e RD |
7961 | { "_class_wxEvtHandler","_class_wxListCtrl",SwigwxListCtrlTowxEvtHandler}, |
7962 | { "_class_wxEvtHandler","_wxListCtrl",SwigwxListCtrlTowxEvtHandler}, | |
7963 | { "_class_wxEvtHandler","_wxEvtHandler",0}, | |
7964 | { "_wxPaintEvent","_class_wxPaintEvent",0}, | |
7965 | { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0}, | |
7966 | { "_wxCursor","_class_wxCursor",0}, | |
7967 | { "_wxNotifyEvent","_class_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, | |
7968 | { "_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, | |
c368d904 RD |
7969 | { "_wxNotifyEvent","_class_wxListEvent",SwigwxListEventTowxNotifyEvent}, |
7970 | { "_wxNotifyEvent","_wxListEvent",SwigwxListEventTowxNotifyEvent}, | |
1d99702e | 7971 | { "_wxNotifyEvent","_class_wxNotifyEvent",0}, |
f6bcfd97 | 7972 | { "_wxPyTreeCtrl","_class_wxPyTreeCtrl",0}, |
1d99702e RD |
7973 | { "_wxMask","_class_wxMask",0}, |
7974 | { "_wxPen","_class_wxPen",0}, | |
7975 | { "_wxUpdateUIEvent","_class_wxUpdateUIEvent",0}, | |
7976 | { "_byte","_unsigned_char",0}, | |
b1462dfa | 7977 | { "_wxDataObject","_class_wxDataObject",0}, |
1d99702e | 7978 | { "_wxStaticBox","_class_wxStaticBox",0}, |
1c09ae54 | 7979 | { "_wxColourDatabase","_class_wxColourDatabase",0}, |
65dd82cb RD |
7980 | { "_wxPyDataObjectSimple","_class_wxPyDataObjectSimple",0}, |
7981 | { "_wxPyDropSource","_class_wxPyDropSource",0}, | |
1d99702e RD |
7982 | { "_wxChoice","_class_wxChoice",0}, |
7983 | { "_wxSlider","_class_wxSlider",0}, | |
1d99702e RD |
7984 | { "_long","_unsigned_long",0}, |
7985 | { "_long","_signed_long",0}, | |
7986 | { "_wxImageList","_class_wxImageList",0}, | |
b1462dfa | 7987 | { "_wxDataObjectSimple","_class_wxDataObjectSimple",0}, |
1d99702e RD |
7988 | { "_wxDropFilesEvent","_class_wxDropFilesEvent",0}, |
7989 | { "_wxBitmapButton","_class_wxBitmapButton",0}, | |
7990 | { "_class_wxAcceleratorTable","_wxAcceleratorTable",0}, | |
b1462dfa | 7991 | { "_class_wxClipboard","_wxClipboard",0}, |
1d99702e RD |
7992 | { "_class_wxGauge","_wxGauge",0}, |
7993 | { "_wxDC","_class_wxDC",0}, | |
b1462dfa | 7994 | { "_class_wxBitmapDataObject","_wxBitmapDataObject",0}, |
1d99702e RD |
7995 | { "_wxListEvent","_class_wxListEvent",0}, |
7996 | { "_wxSpinEvent","_class_wxSpinEvent",0}, | |
b1462dfa | 7997 | { "_size_t","_wxCoord",0}, |
1d99702e | 7998 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 7999 | { "_size_t","_time_t",0}, |
1d99702e RD |
8000 | { "_size_t","_unsigned_int",0}, |
8001 | { "_size_t","_int",0}, | |
8002 | { "_size_t","_wxWindowID",0}, | |
8003 | { "_size_t","_uint",0}, | |
8004 | { "_class_wxRealPoint","_wxRealPoint",0}, | |
48115f4a | 8005 | { "_wxNavigationKeyEvent","_class_wxNavigationKeyEvent",0}, |
48115f4a | 8006 | { "_wxWindowCreateEvent","_class_wxWindowCreateEvent",0}, |
1d99702e RD |
8007 | { "_class_wxMenuItem","_wxMenuItem",0}, |
8008 | { "_class_wxPaintEvent","_wxPaintEvent",0}, | |
8009 | { "_wxSysColourChangedEvent","_class_wxSysColourChangedEvent",0}, | |
f6bcfd97 | 8010 | { "_class_wxPostScriptDC","_wxPostScriptDC",0}, |
1d99702e RD |
8011 | { "_wxPanel","_class_wxPanel",0}, |
8012 | { "_wxInitDialogEvent","_class_wxInitDialogEvent",0}, | |
8013 | { "_wxCheckBox","_class_wxCheckBox",0}, | |
f6bcfd97 | 8014 | { "_class_wxPyTreeCtrl","_wxPyTreeCtrl",0}, |
1d99702e RD |
8015 | { "_wxPyEvent","_class_wxPyEvent",0}, |
8016 | { "_wxTextCtrl","_class_wxTextCtrl",0}, | |
8017 | { "_class_wxMask","_wxMask",0}, | |
b1462dfa | 8018 | { "_wxTextDataObject","_class_wxTextDataObject",0}, |
1d99702e RD |
8019 | { "_class_wxKeyEvent","_wxKeyEvent",0}, |
8020 | { "_wxColour","_class_wxColour",0}, | |
8021 | { "_class_wxDialog","_wxDialog",0}, | |
b1462dfa | 8022 | { "_class_wxFileDataObject","_wxFileDataObject",0}, |
1d99702e RD |
8023 | { "_wxIdleEvent","_class_wxIdleEvent",0}, |
8024 | { "_class_wxUpdateUIEvent","_wxUpdateUIEvent",0}, | |
b1462dfa | 8025 | { "_class_wxDataObject","_wxDataObject",0}, |
1d99702e RD |
8026 | { "_wxStaticLine","_class_wxStaticLine",0}, |
8027 | { "_wxBrush","_class_wxBrush",0}, | |
b1462dfa RD |
8028 | { "_wxDataFormat","_class_wxDataFormat",0}, |
8029 | { "_class_wxDataObjectSimple","_wxDataObjectSimple",0}, | |
1d99702e | 8030 | { "_wxShowEvent","_class_wxShowEvent",0}, |
b1462dfa | 8031 | { "_uint","_wxCoord",0}, |
1d99702e | 8032 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 8033 | { "_uint","_time_t",0}, |
1d99702e RD |
8034 | { "_uint","_size_t",0}, |
8035 | { "_uint","_unsigned_int",0}, | |
8036 | { "_uint","_int",0}, | |
8037 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 8038 | { "_wxChar","_char",0}, |
2f90df85 | 8039 | { "_wxPyValidator","_class_wxPyValidator",0}, |
1d99702e RD |
8040 | { "_class_wxEvent","_class_wxTreeEvent",SwigwxTreeEventTowxEvent}, |
8041 | { "_class_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent}, | |
8042 | { "_class_wxEvent","_class_wxListEvent",SwigwxListEventTowxEvent}, | |
8043 | { "_class_wxEvent","_wxListEvent",SwigwxListEventTowxEvent}, | |
8044 | { "_class_wxEvent","_wxEvent",0}, | |
8045 | { "_wxCheckListBox","_class_wxCheckListBox",0}, | |
8046 | { "_wxRect","_class_wxRect",0}, | |
8047 | { "_wxCommandEvent","_class_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, | |
8048 | { "_wxCommandEvent","_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, | |
8049 | { "_wxCommandEvent","_class_wxListEvent",SwigwxListEventTowxCommandEvent}, | |
8050 | { "_wxCommandEvent","_wxListEvent",SwigwxListEventTowxCommandEvent}, | |
8051 | { "_wxCommandEvent","_class_wxCommandEvent",0}, | |
8052 | { "_wxSizeEvent","_class_wxSizeEvent",0}, | |
8053 | { "_wxPoint","_class_wxPoint",0}, | |
8054 | { "_class_wxButton","_wxButton",0}, | |
8055 | { "_wxRadioBox","_class_wxRadioBox",0}, | |
f6bcfd97 BP |
8056 | { "_class_wxSpinCtrl","_wxSpinCtrl",0}, |
8057 | { "_char","_wxChar",0}, | |
1d99702e | 8058 | { "_wxBitmap","_class_wxBitmap",0}, |
1c09ae54 | 8059 | { "_wxPenList","_class_wxPenList",0}, |
1d99702e | 8060 | { "_wxWindowDC","_class_wxWindowDC",0}, |
f6bcfd97 | 8061 | { "_wxTimerEvent","_class_wxTimerEvent",0}, |
1d99702e RD |
8062 | { "_wxScrollBar","_class_wxScrollBar",0}, |
8063 | { "_wxSpinButton","_class_wxSpinButton",0}, | |
8064 | { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0}, | |
8065 | { "_class_wxNotifyEvent","_class_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, | |
8066 | { "_class_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, | |
c368d904 RD |
8067 | { "_class_wxNotifyEvent","_class_wxListEvent",SwigwxListEventTowxNotifyEvent}, |
8068 | { "_class_wxNotifyEvent","_wxListEvent",SwigwxListEventTowxNotifyEvent}, | |
1d99702e | 8069 | { "_class_wxNotifyEvent","_wxNotifyEvent",0}, |
2f90df85 | 8070 | { "_class_wxValidator","_wxValidator",0}, |
1d99702e RD |
8071 | { "_class_wxPyEvent","_wxPyEvent",0}, |
8072 | { "_class_wxIconizeEvent","_wxIconizeEvent",0}, | |
8073 | { "_class_wxStaticBitmap","_wxStaticBitmap",0}, | |
8074 | { "_wxListItem","_class_wxListItem",0}, | |
b1462dfa | 8075 | { "_wxDropTarget","_class_wxDropTarget",0}, |
1d99702e | 8076 | { "_class_wxStaticLine","_wxStaticLine",0}, |
1c09ae54 | 8077 | { "_class_wxColourDatabase","_wxColourDatabase",0}, |
1d99702e | 8078 | { "_wxScrollEvent","_class_wxScrollEvent",0}, |
b1462dfa | 8079 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
8080 | { "_EBool","_wxPrintQuality",0}, |
8081 | { "_EBool","_signed_int",0}, | |
8082 | { "_EBool","_int",0}, | |
8083 | { "_EBool","_wxWindowID",0}, | |
8084 | { "_class_wxRegion","_wxRegion",0}, | |
b1462dfa | 8085 | { "_class_wxDataFormat","_wxDataFormat",0}, |
1d99702e | 8086 | { "_class_wxDropFilesEvent","_wxDropFilesEvent",0}, |
48115f4a | 8087 | { "_wxWindowDestroyEvent","_class_wxWindowDestroyEvent",0}, |
1d99702e RD |
8088 | { "_wxStaticText","_class_wxStaticText",0}, |
8089 | { "_wxFont","_class_wxFont",0}, | |
b1462dfa | 8090 | { "_class_wxPyDropTarget","_wxPyDropTarget",0}, |
1d99702e | 8091 | { "_wxCloseEvent","_class_wxCloseEvent",0}, |
1d99702e RD |
8092 | { "_unsigned_long","_long",0}, |
8093 | { "_class_wxRect","_wxRect",0}, | |
8094 | { "_class_wxDC","_wxDC",0}, | |
d426c97e | 8095 | { "_wxScrollWinEvent","_class_wxScrollWinEvent",0}, |
1c09ae54 | 8096 | { "_class_wxBrushList","_wxBrushList",0}, |
48115f4a | 8097 | { "_wxQueryNewPaletteEvent","_class_wxQueryNewPaletteEvent",0}, |
1c09ae54 | 8098 | { "_class_wxPenList","_wxPenList",0}, |
48115f4a | 8099 | { "_class_wxWindowCreateEvent","_wxWindowCreateEvent",0}, |
1d99702e | 8100 | { "_class_wxTreeEvent","_wxTreeEvent",0}, |
1d99702e RD |
8101 | { "_wxFocusEvent","_class_wxFocusEvent",0}, |
8102 | { "_wxMaximizeEvent","_class_wxMaximizeEvent",0}, | |
f6bcfd97 | 8103 | { "_class_wxTimerEvent","_wxTimerEvent",0}, |
1d99702e RD |
8104 | { "_class_wxSpinButton","_wxSpinButton",0}, |
8105 | { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0}, | |
8106 | { "_class_wxPanel","_wxPanel",0}, | |
8107 | { "_class_wxCheckBox","_wxCheckBox",0}, | |
8108 | { "_wxComboBox","_class_wxComboBox",0}, | |
8109 | { "_wxRadioButton","_class_wxRadioButton",0}, | |
b1462dfa | 8110 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
8111 | { "_signed_int","_wxPrintQuality",0}, |
8112 | { "_signed_int","_EBool",0}, | |
8113 | { "_signed_int","_wxWindowID",0}, | |
8114 | { "_signed_int","_int",0}, | |
8115 | { "_class_wxTextCtrl","_wxTextCtrl",0}, | |
f6bcfd97 | 8116 | { "_class_wxListItemAttr","_wxListItemAttr",0}, |
1d99702e | 8117 | { "_wxLayoutConstraints","_class_wxLayoutConstraints",0}, |
b1462dfa | 8118 | { "_class_wxTextDataObject","_wxTextDataObject",0}, |
1d99702e RD |
8119 | { "_wxMenu","_class_wxMenu",0}, |
8120 | { "_class_wxMoveEvent","_wxMoveEvent",0}, | |
8121 | { "_wxListBox","_class_wxListBox",0}, | |
8122 | { "_wxScreenDC","_class_wxScreenDC",0}, | |
8123 | { "_WXTYPE","_short",0}, | |
8124 | { "_WXTYPE","_signed_short",0}, | |
8125 | { "_WXTYPE","_unsigned_short",0}, | |
b1462dfa | 8126 | { "_class_wxDropTarget","_wxDropTarget",0}, |
1d99702e RD |
8127 | { "_class_wxBrush","_wxBrush",0}, |
8128 | { "_unsigned_short","_WXTYPE",0}, | |
8129 | { "_unsigned_short","_short",0}, | |
f6bcfd97 BP |
8130 | { "_class_wxWindow","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, |
8131 | { "_class_wxWindow","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, | |
1d99702e RD |
8132 | { "_class_wxWindow","_class_wxListCtrl",SwigwxListCtrlTowxWindow}, |
8133 | { "_class_wxWindow","_wxListCtrl",SwigwxListCtrlTowxWindow}, | |
8134 | { "_class_wxWindow","_wxWindow",0}, | |
8135 | { "_class_wxStaticText","_wxStaticText",0}, | |
8136 | { "_class_wxFont","_wxFont",0}, | |
b1462dfa | 8137 | { "_wxClipboard","_class_wxClipboard",0}, |
2f90df85 | 8138 | { "_class_wxPyValidator","_wxPyValidator",0}, |
1d99702e | 8139 | { "_class_wxCloseEvent","_wxCloseEvent",0}, |
2abc0a0f | 8140 | { "_wxBusyInfo","_class_wxBusyInfo",0}, |
1c09ae54 | 8141 | { "_wxFontList","_class_wxFontList",0}, |
1d99702e | 8142 | { "_class_wxMenuEvent","_wxMenuEvent",0}, |
48115f4a | 8143 | { "_wxPaletteChangedEvent","_class_wxPaletteChangedEvent",0}, |
65dd82cb | 8144 | { "_class_wxPyBitmapDataObject","_wxPyBitmapDataObject",0}, |
1d99702e RD |
8145 | { "_wxClientDC","_class_wxClientDC",0}, |
8146 | { "_wxMouseEvent","_class_wxMouseEvent",0}, | |
8147 | { "_wxListCtrl","_class_wxListCtrl",0}, | |
8148 | { "_class_wxPoint","_wxPoint",0}, | |
8149 | { "_wxRealPoint","_class_wxRealPoint",0}, | |
8150 | { "_class_wxRadioBox","_wxRadioBox",0}, | |
8151 | { "_signed_short","_WXTYPE",0}, | |
8152 | { "_signed_short","_short",0}, | |
8153 | { "_wxMemoryDC","_class_wxMemoryDC",0}, | |
65dd82cb | 8154 | { "_wxPyTextDataObject","_class_wxPyTextDataObject",0}, |
1d99702e RD |
8155 | { "_wxPaintDC","_class_wxPaintDC",0}, |
8156 | { "_class_wxWindowDC","_wxWindowDC",0}, | |
8157 | { "_class_wxFocusEvent","_wxFocusEvent",0}, | |
8158 | { "_class_wxMaximizeEvent","_wxMaximizeEvent",0}, | |
8159 | { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0}, | |
8160 | { "_class_wxCursor","_wxCursor",0}, | |
f6bcfd97 | 8161 | { "_wxPostScriptDC","_class_wxPostScriptDC",0}, |
b1462dfa | 8162 | { "_wxPyFileDropTarget","_class_wxPyFileDropTarget",0}, |
1d99702e RD |
8163 | { "_wxScrolledWindow","_class_wxScrolledWindow",0}, |
8164 | { "_wxTreeItemId","_class_wxTreeItemId",0}, | |
8165 | { "_unsigned_char","_byte",0}, | |
1d99702e | 8166 | { "_class_wxMenu","_wxMenu",0}, |
f6bcfd97 BP |
8167 | { "_wxControl","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, |
8168 | { "_wxControl","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, | |
1d99702e RD |
8169 | { "_wxControl","_class_wxListCtrl",SwigwxListCtrlTowxControl}, |
8170 | { "_wxControl","_wxListCtrl",SwigwxListCtrlTowxControl}, | |
8171 | { "_wxControl","_class_wxControl",0}, | |
8172 | { "_class_wxListBox","_wxListBox",0}, | |
b1462dfa | 8173 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 8174 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 8175 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
8176 | { "_unsigned_int","_size_t",0}, |
8177 | { "_unsigned_int","_uint",0}, | |
8178 | { "_unsigned_int","_wxWindowID",0}, | |
8179 | { "_unsigned_int","_int",0}, | |
8180 | { "_wxIcon","_class_wxIcon",0}, | |
8181 | { "_wxDialog","_class_wxDialog",0}, | |
8182 | { "_class_wxListItem","_wxListItem",0}, | |
8183 | { "_class_wxPen","_wxPen",0}, | |
8184 | { "_short","_WXTYPE",0}, | |
8185 | { "_short","_unsigned_short",0}, | |
8186 | { "_short","_signed_short",0}, | |
8187 | { "_class_wxStaticBox","_wxStaticBox",0}, | |
65dd82cb RD |
8188 | { "_class_wxPyDataObjectSimple","_wxPyDataObjectSimple",0}, |
8189 | { "_class_wxPyDropSource","_wxPyDropSource",0}, | |
1d99702e RD |
8190 | { "_class_wxScrollEvent","_wxScrollEvent",0}, |
8191 | { "_wxJoystickEvent","_class_wxJoystickEvent",0}, | |
8192 | { "_class_wxChoice","_wxChoice",0}, | |
8193 | { "_class_wxSlider","_wxSlider",0}, | |
8194 | { "_class_wxImageList","_wxImageList",0}, | |
8195 | { "_class_wxBitmapButton","_wxBitmapButton",0}, | |
48115f4a | 8196 | { "_class_wxPaletteChangedEvent","_wxPaletteChangedEvent",0}, |
b1462dfa | 8197 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 8198 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 8199 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
8200 | { "_wxWindowID","_size_t",0}, |
8201 | { "_wxWindowID","_EBool",0}, | |
8202 | { "_wxWindowID","_uint",0}, | |
8203 | { "_wxWindowID","_int",0}, | |
8204 | { "_wxWindowID","_signed_int",0}, | |
8205 | { "_wxWindowID","_unsigned_int",0}, | |
d426c97e | 8206 | { "_class_wxScrollWinEvent","_wxScrollWinEvent",0}, |
b1462dfa | 8207 | { "_int","_wxCoord",0}, |
1d99702e | 8208 | { "_int","_wxPrintQuality",0}, |
c368d904 | 8209 | { "_int","_time_t",0}, |
1d99702e RD |
8210 | { "_int","_size_t",0}, |
8211 | { "_int","_EBool",0}, | |
8212 | { "_int","_uint",0}, | |
8213 | { "_int","_wxWindowID",0}, | |
8214 | { "_int","_unsigned_int",0}, | |
8215 | { "_int","_signed_int",0}, | |
8216 | { "_class_wxMouseEvent","_wxMouseEvent",0}, | |
2f90df85 | 8217 | { "_wxPyCommandEvent","_class_wxPyCommandEvent",0}, |
1d99702e RD |
8218 | { "_class_wxListEvent","_wxListEvent",0}, |
8219 | { "_class_wxSpinEvent","_wxSpinEvent",0}, | |
48115f4a | 8220 | { "_class_wxQueryNewPaletteEvent","_wxQueryNewPaletteEvent",0}, |
c368d904 RD |
8221 | { "_time_t","_wxCoord",0}, |
8222 | { "_time_t","_wxPrintQuality",0}, | |
8223 | { "_time_t","_unsigned_int",0}, | |
8224 | { "_time_t","_int",0}, | |
8225 | { "_time_t","_wxWindowID",0}, | |
8226 | { "_time_t","_uint",0}, | |
8227 | { "_time_t","_size_t",0}, | |
48115f4a | 8228 | { "_class_wxNavigationKeyEvent","_wxNavigationKeyEvent",0}, |
1d99702e RD |
8229 | { "_wxButton","_class_wxButton",0}, |
8230 | { "_wxSize","_class_wxSize",0}, | |
8231 | { "_wxRegionIterator","_class_wxRegionIterator",0}, | |
65dd82cb | 8232 | { "_class_wxPyTextDataObject","_wxPyTextDataObject",0}, |
1d99702e RD |
8233 | { "_wxPyTreeItemData","_class_wxPyTreeItemData",0}, |
8234 | { "_class_wxPaintDC","_wxPaintDC",0}, | |
8235 | { "_class_wxSysColourChangedEvent","_wxSysColourChangedEvent",0}, | |
b1462dfa | 8236 | { "_class_wxPyFileDropTarget","_wxPyFileDropTarget",0}, |
1d99702e RD |
8237 | { "_class_wxInitDialogEvent","_wxInitDialogEvent",0}, |
8238 | { "_class_wxComboBox","_wxComboBox",0}, | |
8239 | { "_class_wxRadioButton","_wxRadioButton",0}, | |
2f90df85 | 8240 | { "_wxValidator","_class_wxValidator",0}, |
1d99702e | 8241 | { "_class_wxTreeItemId","_wxTreeItemId",0}, |
1d99702e RD |
8242 | { "_class_wxLayoutConstraints","_wxLayoutConstraints",0}, |
8243 | { "_wxIconizeEvent","_class_wxIconizeEvent",0}, | |
f6bcfd97 BP |
8244 | { "_class_wxControl","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, |
8245 | { "_class_wxControl","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, | |
1d99702e RD |
8246 | { "_class_wxControl","_class_wxListCtrl",SwigwxListCtrlTowxControl}, |
8247 | { "_class_wxControl","_wxListCtrl",SwigwxListCtrlTowxControl}, | |
8248 | { "_class_wxControl","_wxControl",0}, | |
8249 | { "_wxStaticBitmap","_class_wxStaticBitmap",0}, | |
8250 | { "_class_wxIcon","_wxIcon",0}, | |
8251 | { "_class_wxColour","_wxColour",0}, | |
8252 | { "_class_wxScreenDC","_wxScreenDC",0}, | |
8253 | { "_wxPalette","_class_wxPalette",0}, | |
8254 | { "_class_wxIdleEvent","_wxIdleEvent",0}, | |
b1462dfa RD |
8255 | { "_wxCoord","_int",0}, |
8256 | { "_wxCoord","_signed_int",0}, | |
8257 | { "_wxCoord","_unsigned_int",0}, | |
8258 | { "_wxCoord","_wxWindowID",0}, | |
8259 | { "_wxCoord","_uint",0}, | |
8260 | { "_wxCoord","_EBool",0}, | |
8261 | { "_wxCoord","_size_t",0}, | |
c368d904 | 8262 | { "_wxCoord","_time_t",0}, |
b1462dfa | 8263 | { "_wxCoord","_wxPrintQuality",0}, |
1d99702e | 8264 | { "_wxEraseEvent","_class_wxEraseEvent",0}, |
b1462dfa | 8265 | { "_wxDataObjectComposite","_class_wxDataObjectComposite",0}, |
1d99702e RD |
8266 | { "_class_wxJoystickEvent","_wxJoystickEvent",0}, |
8267 | { "_wxRegion","_class_wxRegion",0}, | |
8268 | { "_class_wxShowEvent","_wxShowEvent",0}, | |
b1462dfa | 8269 | { "_wxPyDropTarget","_class_wxPyDropTarget",0}, |
1d99702e RD |
8270 | { "_wxActivateEvent","_class_wxActivateEvent",0}, |
8271 | { "_wxGauge","_class_wxGauge",0}, | |
8272 | { "_class_wxCheckListBox","_wxCheckListBox",0}, | |
2abc0a0f | 8273 | { "_class_wxBusyInfo","_wxBusyInfo",0}, |
1c09ae54 | 8274 | { "_class_wxFontList","_wxFontList",0}, |
1d99702e RD |
8275 | { "_class_wxCommandEvent","_class_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, |
8276 | { "_class_wxCommandEvent","_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, | |
8277 | { "_class_wxCommandEvent","_class_wxListEvent",SwigwxListEventTowxCommandEvent}, | |
8278 | { "_class_wxCommandEvent","_wxListEvent",SwigwxListEventTowxCommandEvent}, | |
8279 | { "_class_wxCommandEvent","_wxCommandEvent",0}, | |
8280 | { "_class_wxClientDC","_wxClientDC",0}, | |
8281 | { "_class_wxSizeEvent","_wxSizeEvent",0}, | |
8282 | { "_class_wxListCtrl","_wxListCtrl",0}, | |
1c09ae54 | 8283 | { "_wxBrushList","_class_wxBrushList",0}, |
b1462dfa | 8284 | { "_wxCustomDataObject","_class_wxCustomDataObject",0}, |
1d99702e RD |
8285 | { "_class_wxSize","_wxSize",0}, |
8286 | { "_class_wxBitmap","_wxBitmap",0}, | |
8287 | { "_class_wxMemoryDC","_wxMemoryDC",0}, | |
b1462dfa | 8288 | { "_wxPyTextDropTarget","_class_wxPyTextDropTarget",0}, |
1d99702e RD |
8289 | { "_wxMenuBar","_class_wxMenuBar",0}, |
8290 | { "_wxTreeEvent","_class_wxTreeEvent",0}, | |
f6bcfd97 BP |
8291 | { "_wxEvtHandler","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, |
8292 | { "_wxEvtHandler","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, | |
1d99702e RD |
8293 | { "_wxEvtHandler","_class_wxListCtrl",SwigwxListCtrlTowxEvtHandler}, |
8294 | { "_wxEvtHandler","_wxListCtrl",SwigwxListCtrlTowxEvtHandler}, | |
8295 | { "_wxEvtHandler","_class_wxEvtHandler",0}, | |
8296 | { "_wxMenuItem","_class_wxMenuItem",0}, | |
8297 | { "_class_wxScrollBar","_wxScrollBar",0}, | |
1d99702e | 8298 | { "_class_wxScrolledWindow","_wxScrolledWindow",0}, |
f6bcfd97 | 8299 | { "_wxListItemAttr","_class_wxListItemAttr",0}, |
1d99702e RD |
8300 | { "_wxKeyEvent","_class_wxKeyEvent",0}, |
8301 | { "_wxMoveEvent","_class_wxMoveEvent",0}, | |
8302 | { "_class_wxPalette","_wxPalette",0}, | |
b1462dfa | 8303 | { "_wxFileDataObject","_class_wxFileDataObject",0}, |
1d99702e | 8304 | { "_class_wxEraseEvent","_wxEraseEvent",0}, |
b1462dfa | 8305 | { "_class_wxDataObjectComposite","_wxDataObjectComposite",0}, |
f6bcfd97 BP |
8306 | { "_wxWindow","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, |
8307 | { "_wxWindow","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, | |
1d99702e RD |
8308 | { "_wxWindow","_class_wxListCtrl",SwigwxListCtrlTowxWindow}, |
8309 | { "_wxWindow","_wxListCtrl",SwigwxListCtrlTowxWindow}, | |
8310 | { "_wxWindow","_class_wxWindow",0}, | |
48115f4a | 8311 | { "_class_wxWindowDestroyEvent","_wxWindowDestroyEvent",0}, |
1d99702e RD |
8312 | {0,0,0}}; |
8313 | ||
8ab979d7 RD |
8314 | static PyObject *SWIG_globals; |
8315 | #ifdef __cplusplus | |
8316 | extern "C" | |
8317 | #endif | |
1d99702e | 8318 | SWIGEXPORT(void) initcontrols2c() { |
8ab979d7 RD |
8319 | PyObject *m, *d; |
8320 | SWIG_globals = SWIG_newvarlink(); | |
8321 | m = Py_InitModule("controls2c", controls2cMethods); | |
8322 | d = PyModule_GetDict(m); | |
af309447 RD |
8323 | PyDict_SetItemString(d,"wxLIST_MASK_TEXT", PyInt_FromLong((long) wxLIST_MASK_TEXT)); |
8324 | PyDict_SetItemString(d,"wxLIST_MASK_IMAGE", PyInt_FromLong((long) wxLIST_MASK_IMAGE)); | |
8325 | PyDict_SetItemString(d,"wxLIST_MASK_DATA", PyInt_FromLong((long) wxLIST_MASK_DATA)); | |
8326 | PyDict_SetItemString(d,"wxLIST_MASK_WIDTH", PyInt_FromLong((long) wxLIST_MASK_WIDTH)); | |
8327 | PyDict_SetItemString(d,"wxLIST_MASK_FORMAT", PyInt_FromLong((long) wxLIST_MASK_FORMAT)); | |
bb0054cd | 8328 | PyDict_SetItemString(d,"wxLIST_MASK_STATE", PyInt_FromLong((long) wxLIST_MASK_STATE)); |
af309447 RD |
8329 | PyDict_SetItemString(d,"wxLIST_STATE_DONTCARE", PyInt_FromLong((long) wxLIST_STATE_DONTCARE)); |
8330 | PyDict_SetItemString(d,"wxLIST_STATE_DROPHILITED", PyInt_FromLong((long) wxLIST_STATE_DROPHILITED)); | |
8331 | PyDict_SetItemString(d,"wxLIST_STATE_FOCUSED", PyInt_FromLong((long) wxLIST_STATE_FOCUSED)); | |
8332 | PyDict_SetItemString(d,"wxLIST_STATE_SELECTED", PyInt_FromLong((long) wxLIST_STATE_SELECTED)); | |
8333 | PyDict_SetItemString(d,"wxLIST_STATE_CUT", PyInt_FromLong((long) wxLIST_STATE_CUT)); | |
8334 | PyDict_SetItemString(d,"wxLIST_HITTEST_ABOVE", PyInt_FromLong((long) wxLIST_HITTEST_ABOVE)); | |
8335 | PyDict_SetItemString(d,"wxLIST_HITTEST_BELOW", PyInt_FromLong((long) wxLIST_HITTEST_BELOW)); | |
8336 | PyDict_SetItemString(d,"wxLIST_HITTEST_NOWHERE", PyInt_FromLong((long) wxLIST_HITTEST_NOWHERE)); | |
8337 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMICON)); | |
8338 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMLABEL)); | |
8339 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMRIGHT)); | |
8340 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMSTATEICON)); | |
8341 | PyDict_SetItemString(d,"wxLIST_HITTEST_TOLEFT", PyInt_FromLong((long) wxLIST_HITTEST_TOLEFT)); | |
8342 | PyDict_SetItemString(d,"wxLIST_HITTEST_TORIGHT", PyInt_FromLong((long) wxLIST_HITTEST_TORIGHT)); | |
8343 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEM", PyInt_FromLong((long) wxLIST_HITTEST_ONITEM)); | |
8344 | PyDict_SetItemString(d,"wxLIST_NEXT_ABOVE", PyInt_FromLong((long) wxLIST_NEXT_ABOVE)); | |
8345 | PyDict_SetItemString(d,"wxLIST_NEXT_ALL", PyInt_FromLong((long) wxLIST_NEXT_ALL)); | |
8346 | PyDict_SetItemString(d,"wxLIST_NEXT_BELOW", PyInt_FromLong((long) wxLIST_NEXT_BELOW)); | |
8347 | PyDict_SetItemString(d,"wxLIST_NEXT_LEFT", PyInt_FromLong((long) wxLIST_NEXT_LEFT)); | |
8348 | PyDict_SetItemString(d,"wxLIST_NEXT_RIGHT", PyInt_FromLong((long) wxLIST_NEXT_RIGHT)); | |
8349 | PyDict_SetItemString(d,"wxLIST_ALIGN_DEFAULT", PyInt_FromLong((long) wxLIST_ALIGN_DEFAULT)); | |
8350 | PyDict_SetItemString(d,"wxLIST_ALIGN_LEFT", PyInt_FromLong((long) wxLIST_ALIGN_LEFT)); | |
8351 | PyDict_SetItemString(d,"wxLIST_ALIGN_TOP", PyInt_FromLong((long) wxLIST_ALIGN_TOP)); | |
8352 | PyDict_SetItemString(d,"wxLIST_ALIGN_SNAP_TO_GRID", PyInt_FromLong((long) wxLIST_ALIGN_SNAP_TO_GRID)); | |
af309447 RD |
8353 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE", PyInt_FromLong((long) wxLIST_AUTOSIZE)); |
8354 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE_USEHEADER", PyInt_FromLong((long) wxLIST_AUTOSIZE_USEHEADER)); | |
8355 | PyDict_SetItemString(d,"wxLIST_RECT_BOUNDS", PyInt_FromLong((long) wxLIST_RECT_BOUNDS)); | |
8356 | PyDict_SetItemString(d,"wxLIST_RECT_ICON", PyInt_FromLong((long) wxLIST_RECT_ICON)); | |
8357 | PyDict_SetItemString(d,"wxLIST_RECT_LABEL", PyInt_FromLong((long) wxLIST_RECT_LABEL)); | |
8358 | PyDict_SetItemString(d,"wxLIST_FIND_UP", PyInt_FromLong((long) wxLIST_FIND_UP)); | |
8359 | PyDict_SetItemString(d,"wxLIST_FIND_DOWN", PyInt_FromLong((long) wxLIST_FIND_DOWN)); | |
8360 | PyDict_SetItemString(d,"wxLIST_FIND_LEFT", PyInt_FromLong((long) wxLIST_FIND_LEFT)); | |
8361 | PyDict_SetItemString(d,"wxLIST_FIND_RIGHT", PyInt_FromLong((long) wxLIST_FIND_RIGHT)); | |
f6bcfd97 BP |
8362 | PyDict_SetItemString(d,"wxLIST_FORMAT_LEFT", PyInt_FromLong((long) wxLIST_FORMAT_LEFT)); |
8363 | PyDict_SetItemString(d,"wxLIST_FORMAT_RIGHT", PyInt_FromLong((long) wxLIST_FORMAT_RIGHT)); | |
8364 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTRE", PyInt_FromLong((long) wxLIST_FORMAT_CENTRE)); | |
8365 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTER", PyInt_FromLong((long) wxLIST_FORMAT_CENTER)); | |
9c4165ad RD |
8366 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
8367 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
8368 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
8369 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
8370 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
8371 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
8372 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_GET_INFO)); | |
8373 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_SET_INFO)); | |
8374 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
8375 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
8376 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_LIST_KEY_DOWN)); | |
8377 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
8378 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_CLICK)); | |
8379 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
8380 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
8381 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
694759cf RD |
8382 | PyDict_SetItemString(d,"wxTreeItemIcon_Normal", PyInt_FromLong((long) wxTreeItemIcon_Normal)); |
8383 | PyDict_SetItemString(d,"wxTreeItemIcon_Selected", PyInt_FromLong((long) wxTreeItemIcon_Selected)); | |
8384 | PyDict_SetItemString(d,"wxTreeItemIcon_Expanded", PyInt_FromLong((long) wxTreeItemIcon_Expanded)); | |
8385 | PyDict_SetItemString(d,"wxTreeItemIcon_SelectedExpanded", PyInt_FromLong((long) wxTreeItemIcon_SelectedExpanded)); | |
8386 | PyDict_SetItemString(d,"wxTreeItemIcon_Max", PyInt_FromLong((long) wxTreeItemIcon_Max)); | |
164b735b RD |
8387 | PyDict_SetItemString(d,"wxTREE_HITTEST_ABOVE", PyInt_FromLong((long) wxTREE_HITTEST_ABOVE)); |
8388 | PyDict_SetItemString(d,"wxTREE_HITTEST_BELOW", PyInt_FromLong((long) wxTREE_HITTEST_BELOW)); | |
8389 | PyDict_SetItemString(d,"wxTREE_HITTEST_NOWHERE", PyInt_FromLong((long) wxTREE_HITTEST_NOWHERE)); | |
8390 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMBUTTON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMBUTTON)); | |
8391 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMICON)); | |
8392 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMINDENT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMINDENT)); | |
8393 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLABEL)); | |
8394 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMRIGHT)); | |
8395 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMSTATEICON)); | |
8396 | PyDict_SetItemString(d,"wxTREE_HITTEST_TOLEFT", PyInt_FromLong((long) wxTREE_HITTEST_TOLEFT)); | |
8397 | PyDict_SetItemString(d,"wxTREE_HITTEST_TORIGHT", PyInt_FromLong((long) wxTREE_HITTEST_TORIGHT)); | |
8398 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMUPPERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMUPPERPART)); | |
8399 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLOWERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLOWERPART)); | |
8400 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEM", PyInt_FromLong((long) wxTREE_HITTEST_ONITEM)); | |
9c4165ad RD |
8401 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
8402 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
8403 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
8404 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
8405 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
8406 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_GET_INFO)); | |
8407 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SET_INFO)); | |
8408 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
8409 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
8410 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
8411 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
8412 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
8413 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
8414 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_TREE_KEY_DOWN)); | |
8415 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
8416 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
8417 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
1d99702e RD |
8418 | { |
8419 | int i; | |
8420 | for (i = 0; _swig_mapping[i].n1; i++) | |
8421 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
8422 | } | |
8ab979d7 | 8423 | } |