]>
Commit | Line | Data |
---|---|---|
8ab979d7 | 1 | /* |
c368d904 | 2 | * FILE : src/gtk/controls2.cpp |
8ab979d7 RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
2cd2fac8 | 6 | * Version 1.1 (Build 883) |
8ab979d7 RD |
7 | * |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
1d99702e | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
8ab979d7 RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
1c09ae54 | 30 | # define SWIGEXPORT(a) a _export |
8ab979d7 | 31 | # else |
1c09ae54 | 32 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
1c09ae54 | 36 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
37 | #endif |
38 | ||
1c09ae54 RD |
39 | #include "Python.h" |
40 | ||
8ab979d7 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
1c09ae54 | 44 | |
8ab979d7 RD |
45 | extern void SWIG_MakePtr(char *, void *, char *); |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
1d99702e | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
8ab979d7 RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
8ab979d7 RD |
54 | #define SWIG_init initcontrols2c |
55 | ||
56 | #define SWIG_name "controls2c" | |
57 | ||
58 | #include "helpers.h" | |
2f90df85 RD |
59 | #ifdef __WXMSW__ |
60 | #include <windows.h> | |
61 | #endif | |
8ab979d7 RD |
62 | #include <wx/listctrl.h> |
63 | #include <wx/treectrl.h> | |
9df61a29 | 64 | #include <wx/imaglist.h> |
8ab979d7 | 65 | |
8ab979d7 RD |
66 | |
67 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
68 | PyObject* o2; | |
69 | PyObject* o3; | |
70 | ||
1c09ae54 | 71 | if (!target) { |
8ab979d7 | 72 | target = o; |
1c09ae54 | 73 | } else if (target == Py_None) { |
8ab979d7 RD |
74 | Py_DECREF(Py_None); |
75 | target = o; | |
1c09ae54 | 76 | } else { |
8ab979d7 RD |
77 | if (!PyTuple_Check(target)) { |
78 | o2 = target; | |
79 | target = PyTuple_New(1); | |
80 | PyTuple_SetItem(target, 0, o2); | |
81 | } | |
1c09ae54 RD |
82 | o3 = PyTuple_New(1); |
83 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
84 | |
85 | o2 = target; | |
1c09ae54 RD |
86 | target = PySequence_Concat(o2, o3); |
87 | Py_DECREF(o2); | |
8ab979d7 RD |
88 | Py_DECREF(o3); |
89 | } | |
90 | return target; | |
91 | } | |
92 | ||
7a446686 RD |
93 | #if PYTHON_API_VERSION >= 1009 |
94 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
95 | #else | |
96 | static char* wxStringErrorMsg = "string type is required for parameter"; | |
97 | #endif | |
aa2a5b86 | 98 | // C++ Version of a Python aware class |
cd096152 RD |
99 | class wxPyListCtrl : public wxListCtrl { |
100 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl); | |
101 | public: | |
aa2a5b86 | 102 | wxPyListCtrl() : wxListCtrl() {} |
cd096152 RD |
103 | wxPyListCtrl(wxWindow* parent, wxWindowID id, |
104 | const wxPoint& pos, | |
105 | const wxSize& size, | |
106 | long style, | |
107 | const wxValidator& validator, | |
108 | char* name) : | |
109 | wxListCtrl(parent, id, pos, size, style, validator, name) {} | |
110 | ||
aa2a5b86 RD |
111 | bool Create(wxWindow* parent, wxWindowID id, |
112 | const wxPoint& pos, | |
113 | const wxSize& size, | |
114 | long style, | |
115 | const wxValidator& validator, | |
116 | char* name) { | |
117 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); | |
118 | } | |
119 | ||
cd096152 RD |
120 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); |
121 | DEC_PYCALLBACK_INT_LONG(OnGetItemImage); | |
122 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); | |
123 | ||
124 | PYPRIVATE; | |
125 | }; | |
126 | ||
127 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
128 | ||
129 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
130 | IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage); | |
131 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); | |
132 | ||
f6bcfd97 | 133 | int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { |
dcd38683 RD |
134 | int retval = 0; |
135 | PyObject* func = (PyObject*)funcPtr; | |
136 | bool doSave = wxPyRestoreThread(); | |
137 | ||
138 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
139 | PyObject* result = PyEval_CallObject(func, args); | |
140 | Py_DECREF(args); | |
141 | if (result) { | |
142 | retval = PyInt_AsLong(result); | |
143 | Py_DECREF(result); | |
144 | } | |
145 | ||
146 | wxPySaveThread(doSave); | |
147 | return retval; | |
148 | } | |
149 | ||
150 | ||
cf694132 RD |
151 | class wxPyTreeItemData : public wxTreeItemData { |
152 | public: | |
153 | wxPyTreeItemData(PyObject* obj = NULL) { | |
c368d904 | 154 | if (obj == NULL) |
cf694132 | 155 | obj = Py_None; |
c368d904 RD |
156 | Py_INCREF(obj); |
157 | m_obj = obj; | |
cf694132 RD |
158 | } |
159 | ||
160 | ~wxPyTreeItemData() { | |
1afc06c2 | 161 | bool doSave = wxPyRestoreThread(); |
c368d904 | 162 | Py_DECREF(m_obj); |
1afc06c2 | 163 | wxPySaveThread(doSave); |
cf694132 RD |
164 | } |
165 | ||
166 | PyObject* GetData() { | |
167 | Py_INCREF(m_obj); | |
168 | return m_obj; | |
169 | } | |
170 | ||
171 | void SetData(PyObject* obj) { | |
c368d904 | 172 | bool doSave = wxPyRestoreThread(); |
cf694132 | 173 | Py_DECREF(m_obj); |
c368d904 | 174 | wxPySaveThread(doSave); |
cf694132 RD |
175 | m_obj = obj; |
176 | Py_INCREF(obj); | |
177 | } | |
178 | ||
179 | PyObject* m_obj; | |
180 | }; | |
aa2a5b86 | 181 | // C++ version of Python aware wxTreeCtrl |
f6bcfd97 | 182 | class wxPyTreeCtrl : public wxTreeCtrl { |
9df61a29 | 183 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); |
f6bcfd97 | 184 | public: |
aa2a5b86 | 185 | wxPyTreeCtrl() : wxTreeCtrl() {} |
f6bcfd97 BP |
186 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, |
187 | const wxPoint& pos, | |
188 | const wxSize& size, | |
189 | long style, | |
190 | const wxValidator& validator, | |
191 | char* name) : | |
192 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
193 | ||
aa2a5b86 RD |
194 | bool Create(wxWindow *parent, wxWindowID id, |
195 | const wxPoint& pos, | |
196 | const wxSize& size, | |
197 | long style, | |
198 | const wxValidator& validator, | |
199 | char* name) { | |
200 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); | |
201 | } | |
202 | ||
203 | ||
f6bcfd97 BP |
204 | int OnCompareItems(const wxTreeItemId& item1, |
205 | const wxTreeItemId& item2) { | |
206 | int rval = 0; | |
207 | bool doSave = wxPyRestoreThread(); | |
208 | if (m_myInst.findCallback("OnCompareItems")) | |
209 | rval = m_myInst.callCallback(Py_BuildValue( | |
210 | "(OO)", | |
211 | wxPyConstructObject((void*)&item1, "wxTreeItemId"), | |
212 | wxPyConstructObject((void*)&item2, "wxTreeItemId"))); | |
213 | else | |
214 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
215 | wxPySaveThread(doSave); | |
216 | return rval; | |
217 | } | |
218 | PYPRIVATE; | |
219 | }; | |
220 | ||
9df61a29 RD |
221 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); |
222 | ||
1d99702e RD |
223 | #ifdef __cplusplus |
224 | extern "C" { | |
225 | #endif | |
cd096152 | 226 | #define new_wxListItemAttr(_swigarg0,_swigarg1,_swigarg2) (new wxListItemAttr(_swigarg0,_swigarg1,_swigarg2)) |
f6bcfd97 BP |
227 | static PyObject *_wrap_new_wxListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
228 | PyObject * _resultobj; | |
229 | wxListItemAttr * _result; | |
cd096152 RD |
230 | wxColour * _arg0 = (wxColour *) &wxNullColour; |
231 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
232 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
233 | wxColour temp; | |
234 | PyObject * _obj0 = 0; | |
235 | wxColour temp0; | |
236 | PyObject * _obj1 = 0; | |
237 | PyObject * _argo2 = 0; | |
238 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
f6bcfd97 BP |
239 | char _ptemp[128]; |
240 | ||
241 | self = self; | |
cd096152 RD |
242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxListItemAttr",_kwnames,&_obj0,&_obj1,&_argo2)) |
243 | return NULL; | |
244 | if (_obj0) | |
245 | { | |
246 | _arg0 = &temp; | |
247 | if (! wxColour_helper(_obj0, &_arg0)) | |
248 | return NULL; | |
249 | } | |
250 | if (_obj1) | |
251 | { | |
252 | _arg1 = &temp0; | |
253 | if (! wxColour_helper(_obj1, &_arg1)) | |
254 | return NULL; | |
255 | } | |
256 | if (_argo2) { | |
257 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
258 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
259 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxListItemAttr. Expected _wxFont_p."); | |
f6bcfd97 | 260 | return NULL; |
cd096152 RD |
261 | } |
262 | } | |
f6bcfd97 BP |
263 | { |
264 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 265 | _result = (wxListItemAttr *)new_wxListItemAttr(*_arg0,*_arg1,*_arg2); |
f6bcfd97 BP |
266 | |
267 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 268 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
269 | } if (_result) { |
270 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
271 | _resultobj = Py_BuildValue("s",_ptemp); | |
272 | } else { | |
273 | Py_INCREF(Py_None); | |
274 | _resultobj = Py_None; | |
275 | } | |
276 | return _resultobj; | |
277 | } | |
278 | ||
279 | #define wxListItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
280 | static PyObject *_wrap_wxListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
281 | PyObject * _resultobj; | |
282 | wxListItemAttr * _arg0; | |
283 | wxColour * _arg1; | |
284 | PyObject * _argo0 = 0; | |
285 | wxColour temp; | |
286 | PyObject * _obj1 = 0; | |
287 | char *_kwnames[] = { "self","colText", NULL }; | |
288 | ||
289 | self = self; | |
290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
291 | return NULL; | |
292 | if (_argo0) { | |
293 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
294 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
295 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetTextColour. Expected _wxListItemAttr_p."); | |
296 | return NULL; | |
297 | } | |
298 | } | |
299 | { | |
300 | _arg1 = &temp; | |
301 | if (! wxColour_helper(_obj1, &_arg1)) | |
302 | return NULL; | |
303 | } | |
304 | { | |
305 | wxPy_BEGIN_ALLOW_THREADS; | |
306 | wxListItemAttr_SetTextColour(_arg0,*_arg1); | |
307 | ||
308 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 309 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
310 | } Py_INCREF(Py_None); |
311 | _resultobj = Py_None; | |
312 | return _resultobj; | |
313 | } | |
314 | ||
315 | #define wxListItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
316 | static PyObject *_wrap_wxListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
317 | PyObject * _resultobj; | |
318 | wxListItemAttr * _arg0; | |
319 | wxColour * _arg1; | |
320 | PyObject * _argo0 = 0; | |
321 | wxColour temp; | |
322 | PyObject * _obj1 = 0; | |
323 | char *_kwnames[] = { "self","colBack", NULL }; | |
324 | ||
325 | self = self; | |
326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
327 | return NULL; | |
328 | if (_argo0) { | |
329 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
330 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetBackgroundColour. Expected _wxListItemAttr_p."); | |
332 | return NULL; | |
333 | } | |
334 | } | |
335 | { | |
336 | _arg1 = &temp; | |
337 | if (! wxColour_helper(_obj1, &_arg1)) | |
338 | return NULL; | |
339 | } | |
340 | { | |
341 | wxPy_BEGIN_ALLOW_THREADS; | |
342 | wxListItemAttr_SetBackgroundColour(_arg0,*_arg1); | |
343 | ||
344 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 345 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
346 | } Py_INCREF(Py_None); |
347 | _resultobj = Py_None; | |
348 | return _resultobj; | |
349 | } | |
350 | ||
351 | #define wxListItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
352 | static PyObject *_wrap_wxListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
353 | PyObject * _resultobj; | |
354 | wxListItemAttr * _arg0; | |
355 | wxFont * _arg1; | |
356 | PyObject * _argo0 = 0; | |
357 | PyObject * _argo1 = 0; | |
358 | char *_kwnames[] = { "self","font", NULL }; | |
359 | ||
360 | self = self; | |
361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetFont",_kwnames,&_argo0,&_argo1)) | |
362 | return NULL; | |
363 | if (_argo0) { | |
364 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
365 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
366 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetFont. Expected _wxListItemAttr_p."); | |
367 | return NULL; | |
368 | } | |
369 | } | |
370 | if (_argo1) { | |
371 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
372 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
373 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItemAttr_SetFont. Expected _wxFont_p."); | |
374 | return NULL; | |
375 | } | |
376 | } | |
377 | { | |
378 | wxPy_BEGIN_ALLOW_THREADS; | |
379 | wxListItemAttr_SetFont(_arg0,*_arg1); | |
380 | ||
381 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 382 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
383 | } Py_INCREF(Py_None); |
384 | _resultobj = Py_None; | |
385 | return _resultobj; | |
386 | } | |
387 | ||
388 | #define wxListItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) | |
389 | static PyObject *_wrap_wxListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
390 | PyObject * _resultobj; | |
391 | bool _result; | |
392 | wxListItemAttr * _arg0; | |
393 | PyObject * _argo0 = 0; | |
394 | char *_kwnames[] = { "self", NULL }; | |
395 | ||
396 | self = self; | |
397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasTextColour",_kwnames,&_argo0)) | |
398 | return NULL; | |
399 | if (_argo0) { | |
400 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
401 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
402 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasTextColour. Expected _wxListItemAttr_p."); | |
403 | return NULL; | |
404 | } | |
405 | } | |
406 | { | |
407 | wxPy_BEGIN_ALLOW_THREADS; | |
408 | _result = (bool )wxListItemAttr_HasTextColour(_arg0); | |
409 | ||
410 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 411 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
412 | } _resultobj = Py_BuildValue("i",_result); |
413 | return _resultobj; | |
414 | } | |
415 | ||
416 | #define wxListItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) | |
417 | static PyObject *_wrap_wxListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
418 | PyObject * _resultobj; | |
419 | bool _result; | |
420 | wxListItemAttr * _arg0; | |
421 | PyObject * _argo0 = 0; | |
422 | char *_kwnames[] = { "self", NULL }; | |
423 | ||
424 | self = self; | |
425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasBackgroundColour",_kwnames,&_argo0)) | |
426 | return NULL; | |
427 | if (_argo0) { | |
428 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
429 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
430 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasBackgroundColour. Expected _wxListItemAttr_p."); | |
431 | return NULL; | |
432 | } | |
433 | } | |
434 | { | |
435 | wxPy_BEGIN_ALLOW_THREADS; | |
436 | _result = (bool )wxListItemAttr_HasBackgroundColour(_arg0); | |
437 | ||
438 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 439 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
440 | } _resultobj = Py_BuildValue("i",_result); |
441 | return _resultobj; | |
442 | } | |
443 | ||
444 | #define wxListItemAttr_HasFont(_swigobj) (_swigobj->HasFont()) | |
445 | static PyObject *_wrap_wxListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
446 | PyObject * _resultobj; | |
447 | bool _result; | |
448 | wxListItemAttr * _arg0; | |
449 | PyObject * _argo0 = 0; | |
450 | char *_kwnames[] = { "self", NULL }; | |
451 | ||
452 | self = self; | |
453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasFont",_kwnames,&_argo0)) | |
454 | return NULL; | |
455 | if (_argo0) { | |
456 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
457 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
458 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasFont. Expected _wxListItemAttr_p."); | |
459 | return NULL; | |
460 | } | |
461 | } | |
462 | { | |
463 | wxPy_BEGIN_ALLOW_THREADS; | |
464 | _result = (bool )wxListItemAttr_HasFont(_arg0); | |
465 | ||
466 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 467 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
468 | } _resultobj = Py_BuildValue("i",_result); |
469 | return _resultobj; | |
470 | } | |
471 | ||
472 | #define wxListItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
473 | static PyObject *_wrap_wxListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
474 | PyObject * _resultobj; | |
475 | wxColour * _result; | |
476 | wxListItemAttr * _arg0; | |
477 | PyObject * _argo0 = 0; | |
478 | char *_kwnames[] = { "self", NULL }; | |
479 | char _ptemp[128]; | |
480 | ||
481 | self = self; | |
482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetTextColour",_kwnames,&_argo0)) | |
483 | return NULL; | |
484 | if (_argo0) { | |
485 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
486 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
487 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetTextColour. Expected _wxListItemAttr_p."); | |
488 | return NULL; | |
489 | } | |
490 | } | |
491 | { | |
492 | wxPy_BEGIN_ALLOW_THREADS; | |
493 | const wxColour & _result_ref = wxListItemAttr_GetTextColour(_arg0); | |
494 | _result = (wxColour *) &_result_ref; | |
495 | ||
496 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 497 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
498 | } if (_result) { |
499 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
500 | _resultobj = Py_BuildValue("s",_ptemp); | |
501 | } else { | |
502 | Py_INCREF(Py_None); | |
503 | _resultobj = Py_None; | |
504 | } | |
505 | return _resultobj; | |
506 | } | |
507 | ||
508 | #define wxListItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
509 | static PyObject *_wrap_wxListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
510 | PyObject * _resultobj; | |
511 | wxColour * _result; | |
512 | wxListItemAttr * _arg0; | |
513 | PyObject * _argo0 = 0; | |
514 | char *_kwnames[] = { "self", NULL }; | |
515 | char _ptemp[128]; | |
516 | ||
517 | self = self; | |
518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetBackgroundColour",_kwnames,&_argo0)) | |
519 | return NULL; | |
520 | if (_argo0) { | |
521 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
522 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
523 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetBackgroundColour. Expected _wxListItemAttr_p."); | |
524 | return NULL; | |
525 | } | |
526 | } | |
527 | { | |
528 | wxPy_BEGIN_ALLOW_THREADS; | |
529 | const wxColour & _result_ref = wxListItemAttr_GetBackgroundColour(_arg0); | |
530 | _result = (wxColour *) &_result_ref; | |
531 | ||
532 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 533 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
534 | } if (_result) { |
535 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
536 | _resultobj = Py_BuildValue("s",_ptemp); | |
537 | } else { | |
538 | Py_INCREF(Py_None); | |
539 | _resultobj = Py_None; | |
540 | } | |
541 | return _resultobj; | |
542 | } | |
543 | ||
544 | #define wxListItemAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
545 | static PyObject *_wrap_wxListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
546 | PyObject * _resultobj; | |
547 | wxFont * _result; | |
548 | wxListItemAttr * _arg0; | |
549 | PyObject * _argo0 = 0; | |
550 | char *_kwnames[] = { "self", NULL }; | |
551 | char _ptemp[128]; | |
552 | ||
553 | self = self; | |
554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetFont",_kwnames,&_argo0)) | |
555 | return NULL; | |
556 | if (_argo0) { | |
557 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
558 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
559 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetFont. Expected _wxListItemAttr_p."); | |
560 | return NULL; | |
561 | } | |
562 | } | |
563 | { | |
564 | wxPy_BEGIN_ALLOW_THREADS; | |
565 | const wxFont & _result_ref = wxListItemAttr_GetFont(_arg0); | |
566 | _result = (wxFont *) &_result_ref; | |
567 | ||
568 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 569 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
570 | } if (_result) { |
571 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
572 | _resultobj = Py_BuildValue("s",_ptemp); | |
573 | } else { | |
574 | Py_INCREF(Py_None); | |
575 | _resultobj = Py_None; | |
576 | } | |
577 | return _resultobj; | |
578 | } | |
579 | ||
9df61a29 RD |
580 | static void *SwigwxListItemTowxObject(void *ptr) { |
581 | wxListItem *src; | |
582 | wxObject *dest; | |
583 | src = (wxListItem *) ptr; | |
584 | dest = (wxObject *) src; | |
585 | return (void *) dest; | |
586 | } | |
587 | ||
f6bcfd97 BP |
588 | #define new_wxListItem() (new wxListItem()) |
589 | static PyObject *_wrap_new_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
590 | PyObject * _resultobj; | |
591 | wxListItem * _result; | |
592 | char *_kwnames[] = { NULL }; | |
593 | char _ptemp[128]; | |
594 | ||
595 | self = self; | |
596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxListItem",_kwnames)) | |
597 | return NULL; | |
598 | { | |
599 | wxPy_BEGIN_ALLOW_THREADS; | |
600 | _result = (wxListItem *)new_wxListItem(); | |
601 | ||
602 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 603 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
604 | } if (_result) { |
605 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p"); | |
606 | _resultobj = Py_BuildValue("s",_ptemp); | |
607 | } else { | |
608 | Py_INCREF(Py_None); | |
609 | _resultobj = Py_None; | |
610 | } | |
611 | return _resultobj; | |
612 | } | |
613 | ||
614 | #define delete_wxListItem(_swigobj) (delete _swigobj) | |
615 | static PyObject *_wrap_delete_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
616 | PyObject * _resultobj; | |
617 | wxListItem * _arg0; | |
618 | PyObject * _argo0 = 0; | |
619 | char *_kwnames[] = { "self", NULL }; | |
620 | ||
621 | self = self; | |
622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxListItem",_kwnames,&_argo0)) | |
623 | return NULL; | |
624 | if (_argo0) { | |
625 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
626 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
627 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxListItem. Expected _wxListItem_p."); | |
628 | return NULL; | |
629 | } | |
630 | } | |
631 | { | |
632 | wxPy_BEGIN_ALLOW_THREADS; | |
633 | delete_wxListItem(_arg0); | |
634 | ||
635 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 636 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
637 | } Py_INCREF(Py_None); |
638 | _resultobj = Py_None; | |
639 | return _resultobj; | |
640 | } | |
641 | ||
642 | #define wxListItem_Clear(_swigobj) (_swigobj->Clear()) | |
643 | static PyObject *_wrap_wxListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
644 | PyObject * _resultobj; | |
645 | wxListItem * _arg0; | |
646 | PyObject * _argo0 = 0; | |
647 | char *_kwnames[] = { "self", NULL }; | |
648 | ||
649 | self = self; | |
650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_Clear",_kwnames,&_argo0)) | |
651 | return NULL; | |
652 | if (_argo0) { | |
653 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
654 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
655 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_Clear. Expected _wxListItem_p."); | |
656 | return NULL; | |
657 | } | |
658 | } | |
659 | { | |
660 | wxPy_BEGIN_ALLOW_THREADS; | |
661 | wxListItem_Clear(_arg0); | |
662 | ||
663 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 664 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
665 | } Py_INCREF(Py_None); |
666 | _resultobj = Py_None; | |
667 | return _resultobj; | |
668 | } | |
669 | ||
670 | #define wxListItem_ClearAttributes(_swigobj) (_swigobj->ClearAttributes()) | |
671 | static PyObject *_wrap_wxListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
672 | PyObject * _resultobj; | |
673 | wxListItem * _arg0; | |
674 | PyObject * _argo0 = 0; | |
675 | char *_kwnames[] = { "self", NULL }; | |
676 | ||
677 | self = self; | |
678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_ClearAttributes",_kwnames,&_argo0)) | |
679 | return NULL; | |
680 | if (_argo0) { | |
681 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
682 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
683 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_ClearAttributes. Expected _wxListItem_p."); | |
684 | return NULL; | |
685 | } | |
686 | } | |
687 | { | |
688 | wxPy_BEGIN_ALLOW_THREADS; | |
689 | wxListItem_ClearAttributes(_arg0); | |
690 | ||
691 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 692 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
693 | } Py_INCREF(Py_None); |
694 | _resultobj = Py_None; | |
695 | return _resultobj; | |
696 | } | |
697 | ||
698 | #define wxListItem_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) | |
699 | static PyObject *_wrap_wxListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
700 | PyObject * _resultobj; | |
701 | wxListItem * _arg0; | |
702 | long _arg1; | |
703 | PyObject * _argo0 = 0; | |
704 | char *_kwnames[] = { "self","mask", NULL }; | |
705 | ||
706 | self = self; | |
707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetMask",_kwnames,&_argo0,&_arg1)) | |
708 | return NULL; | |
709 | if (_argo0) { | |
710 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
711 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
712 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetMask. Expected _wxListItem_p."); | |
713 | return NULL; | |
714 | } | |
715 | } | |
716 | { | |
717 | wxPy_BEGIN_ALLOW_THREADS; | |
718 | wxListItem_SetMask(_arg0,_arg1); | |
719 | ||
720 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 721 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
722 | } Py_INCREF(Py_None); |
723 | _resultobj = Py_None; | |
724 | return _resultobj; | |
725 | } | |
726 | ||
727 | #define wxListItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
728 | static PyObject *_wrap_wxListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
729 | PyObject * _resultobj; | |
730 | wxListItem * _arg0; | |
731 | long _arg1; | |
732 | PyObject * _argo0 = 0; | |
733 | char *_kwnames[] = { "self","id", NULL }; | |
734 | ||
735 | self = self; | |
736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetId",_kwnames,&_argo0,&_arg1)) | |
737 | return NULL; | |
738 | if (_argo0) { | |
739 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
740 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
741 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetId. Expected _wxListItem_p."); | |
742 | return NULL; | |
743 | } | |
744 | } | |
745 | { | |
746 | wxPy_BEGIN_ALLOW_THREADS; | |
747 | wxListItem_SetId(_arg0,_arg1); | |
748 | ||
749 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 750 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
751 | } Py_INCREF(Py_None); |
752 | _resultobj = Py_None; | |
753 | return _resultobj; | |
754 | } | |
755 | ||
756 | #define wxListItem_SetColumn(_swigobj,_swigarg0) (_swigobj->SetColumn(_swigarg0)) | |
757 | static PyObject *_wrap_wxListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
758 | PyObject * _resultobj; | |
759 | wxListItem * _arg0; | |
760 | int _arg1; | |
761 | PyObject * _argo0 = 0; | |
762 | char *_kwnames[] = { "self","col", NULL }; | |
763 | ||
764 | self = self; | |
765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetColumn",_kwnames,&_argo0,&_arg1)) | |
766 | return NULL; | |
767 | if (_argo0) { | |
768 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
769 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
770 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetColumn. Expected _wxListItem_p."); | |
771 | return NULL; | |
772 | } | |
773 | } | |
774 | { | |
775 | wxPy_BEGIN_ALLOW_THREADS; | |
776 | wxListItem_SetColumn(_arg0,_arg1); | |
777 | ||
778 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 779 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
780 | } Py_INCREF(Py_None); |
781 | _resultobj = Py_None; | |
782 | return _resultobj; | |
783 | } | |
784 | ||
785 | #define wxListItem_SetState(_swigobj,_swigarg0) (_swigobj->SetState(_swigarg0)) | |
786 | static PyObject *_wrap_wxListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
787 | PyObject * _resultobj; | |
788 | wxListItem * _arg0; | |
789 | long _arg1; | |
790 | PyObject * _argo0 = 0; | |
791 | char *_kwnames[] = { "self","state", NULL }; | |
792 | ||
793 | self = self; | |
794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetState",_kwnames,&_argo0,&_arg1)) | |
795 | return NULL; | |
796 | if (_argo0) { | |
797 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
798 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
799 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetState. Expected _wxListItem_p."); | |
800 | return NULL; | |
801 | } | |
802 | } | |
803 | { | |
804 | wxPy_BEGIN_ALLOW_THREADS; | |
805 | wxListItem_SetState(_arg0,_arg1); | |
806 | ||
807 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 808 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
809 | } Py_INCREF(Py_None); |
810 | _resultobj = Py_None; | |
811 | return _resultobj; | |
812 | } | |
813 | ||
814 | #define wxListItem_SetStateMask(_swigobj,_swigarg0) (_swigobj->SetStateMask(_swigarg0)) | |
815 | static PyObject *_wrap_wxListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
816 | PyObject * _resultobj; | |
817 | wxListItem * _arg0; | |
818 | long _arg1; | |
819 | PyObject * _argo0 = 0; | |
820 | char *_kwnames[] = { "self","stateMask", NULL }; | |
821 | ||
822 | self = self; | |
823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetStateMask",_kwnames,&_argo0,&_arg1)) | |
824 | return NULL; | |
825 | if (_argo0) { | |
826 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
827 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
828 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetStateMask. Expected _wxListItem_p."); | |
829 | return NULL; | |
830 | } | |
831 | } | |
832 | { | |
833 | wxPy_BEGIN_ALLOW_THREADS; | |
834 | wxListItem_SetStateMask(_arg0,_arg1); | |
835 | ||
836 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 837 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
838 | } Py_INCREF(Py_None); |
839 | _resultobj = Py_None; | |
840 | return _resultobj; | |
841 | } | |
842 | ||
843 | #define wxListItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) | |
844 | static PyObject *_wrap_wxListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
845 | PyObject * _resultobj; | |
846 | wxListItem * _arg0; | |
847 | wxString * _arg1; | |
848 | PyObject * _argo0 = 0; | |
849 | PyObject * _obj1 = 0; | |
850 | char *_kwnames[] = { "self","text", NULL }; | |
851 | ||
852 | self = self; | |
853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetText",_kwnames,&_argo0,&_obj1)) | |
854 | return NULL; | |
855 | if (_argo0) { | |
856 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
857 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
858 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetText. Expected _wxListItem_p."); | |
859 | return NULL; | |
860 | } | |
861 | } | |
862 | { | |
2cd2fac8 RD |
863 | #if PYTHON_API_VERSION >= 1009 |
864 | char* tmpPtr; int tmpSize; | |
865 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 866 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
867 | return NULL; |
868 | } | |
869 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
870 | return NULL; | |
871 | _arg1 = new wxString(tmpPtr, tmpSize); | |
872 | #else | |
f6bcfd97 BP |
873 | if (!PyString_Check(_obj1)) { |
874 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
875 | return NULL; | |
876 | } | |
2cd2fac8 RD |
877 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
878 | #endif | |
f6bcfd97 BP |
879 | } |
880 | { | |
881 | wxPy_BEGIN_ALLOW_THREADS; | |
882 | wxListItem_SetText(_arg0,*_arg1); | |
883 | ||
884 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 885 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
886 | } Py_INCREF(Py_None); |
887 | _resultobj = Py_None; | |
888 | { | |
889 | if (_obj1) | |
890 | delete _arg1; | |
891 | } | |
892 | return _resultobj; | |
893 | } | |
894 | ||
895 | #define wxListItem_SetImage(_swigobj,_swigarg0) (_swigobj->SetImage(_swigarg0)) | |
896 | static PyObject *_wrap_wxListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
897 | PyObject * _resultobj; | |
898 | wxListItem * _arg0; | |
899 | int _arg1; | |
900 | PyObject * _argo0 = 0; | |
901 | char *_kwnames[] = { "self","image", NULL }; | |
902 | ||
903 | self = self; | |
904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetImage",_kwnames,&_argo0,&_arg1)) | |
905 | return NULL; | |
906 | if (_argo0) { | |
907 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
908 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
909 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetImage. Expected _wxListItem_p."); | |
910 | return NULL; | |
911 | } | |
912 | } | |
913 | { | |
914 | wxPy_BEGIN_ALLOW_THREADS; | |
915 | wxListItem_SetImage(_arg0,_arg1); | |
916 | ||
917 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 918 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
919 | } Py_INCREF(Py_None); |
920 | _resultobj = Py_None; | |
921 | return _resultobj; | |
922 | } | |
923 | ||
924 | #define wxListItem_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
925 | static PyObject *_wrap_wxListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
926 | PyObject * _resultobj; | |
927 | wxListItem * _arg0; | |
928 | long _arg1; | |
929 | PyObject * _argo0 = 0; | |
930 | char *_kwnames[] = { "self","data", NULL }; | |
931 | ||
932 | self = self; | |
933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetData",_kwnames,&_argo0,&_arg1)) | |
934 | return NULL; | |
935 | if (_argo0) { | |
936 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
937 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
938 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetData. Expected _wxListItem_p."); | |
939 | return NULL; | |
940 | } | |
941 | } | |
942 | { | |
943 | wxPy_BEGIN_ALLOW_THREADS; | |
944 | wxListItem_SetData(_arg0,_arg1); | |
945 | ||
946 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 947 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
948 | } Py_INCREF(Py_None); |
949 | _resultobj = Py_None; | |
950 | return _resultobj; | |
951 | } | |
952 | ||
953 | #define wxListItem_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
954 | static PyObject *_wrap_wxListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
955 | PyObject * _resultobj; | |
956 | wxListItem * _arg0; | |
957 | int _arg1; | |
958 | PyObject * _argo0 = 0; | |
959 | char *_kwnames[] = { "self","width", NULL }; | |
960 | ||
961 | self = self; | |
962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetWidth",_kwnames,&_argo0,&_arg1)) | |
963 | return NULL; | |
964 | if (_argo0) { | |
965 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
966 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
967 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetWidth. Expected _wxListItem_p."); | |
968 | return NULL; | |
969 | } | |
970 | } | |
971 | { | |
972 | wxPy_BEGIN_ALLOW_THREADS; | |
973 | wxListItem_SetWidth(_arg0,_arg1); | |
974 | ||
975 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 976 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
977 | } Py_INCREF(Py_None); |
978 | _resultobj = Py_None; | |
979 | return _resultobj; | |
980 | } | |
981 | ||
982 | #define wxListItem_SetAlign(_swigobj,_swigarg0) (_swigobj->SetAlign(_swigarg0)) | |
983 | static PyObject *_wrap_wxListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
984 | PyObject * _resultobj; | |
985 | wxListItem * _arg0; | |
986 | wxListColumnFormat _arg1; | |
987 | PyObject * _argo0 = 0; | |
988 | char *_kwnames[] = { "self","align", NULL }; | |
989 | ||
990 | self = self; | |
991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetAlign",_kwnames,&_argo0,&_arg1)) | |
992 | return NULL; | |
993 | if (_argo0) { | |
994 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
995 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
996 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetAlign. Expected _wxListItem_p."); | |
997 | return NULL; | |
998 | } | |
999 | } | |
1000 | { | |
1001 | wxPy_BEGIN_ALLOW_THREADS; | |
1002 | wxListItem_SetAlign(_arg0,_arg1); | |
1003 | ||
1004 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1005 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1006 | } Py_INCREF(Py_None); |
1007 | _resultobj = Py_None; | |
1008 | return _resultobj; | |
1009 | } | |
1010 | ||
1011 | #define wxListItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
1012 | static PyObject *_wrap_wxListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1013 | PyObject * _resultobj; | |
1014 | wxListItem * _arg0; | |
1015 | wxColour * _arg1; | |
1016 | PyObject * _argo0 = 0; | |
1017 | wxColour temp; | |
1018 | PyObject * _obj1 = 0; | |
1019 | char *_kwnames[] = { "self","colText", NULL }; | |
1020 | ||
1021 | self = self; | |
1022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
1023 | return NULL; | |
1024 | if (_argo0) { | |
1025 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1026 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1027 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetTextColour. Expected _wxListItem_p."); | |
1028 | return NULL; | |
1029 | } | |
1030 | } | |
1031 | { | |
1032 | _arg1 = &temp; | |
1033 | if (! wxColour_helper(_obj1, &_arg1)) | |
1034 | return NULL; | |
1035 | } | |
1036 | { | |
1037 | wxPy_BEGIN_ALLOW_THREADS; | |
1038 | wxListItem_SetTextColour(_arg0,*_arg1); | |
1039 | ||
1040 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1041 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1042 | } Py_INCREF(Py_None); |
1043 | _resultobj = Py_None; | |
1044 | return _resultobj; | |
1045 | } | |
1046 | ||
1047 | #define wxListItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
1048 | static PyObject *_wrap_wxListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1049 | PyObject * _resultobj; | |
1050 | wxListItem * _arg0; | |
1051 | wxColour * _arg1; | |
1052 | PyObject * _argo0 = 0; | |
1053 | wxColour temp; | |
1054 | PyObject * _obj1 = 0; | |
1055 | char *_kwnames[] = { "self","colBack", NULL }; | |
1056 | ||
1057 | self = self; | |
1058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
1059 | return NULL; | |
1060 | if (_argo0) { | |
1061 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1062 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1063 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetBackgroundColour. Expected _wxListItem_p."); | |
1064 | return NULL; | |
1065 | } | |
1066 | } | |
1067 | { | |
1068 | _arg1 = &temp; | |
1069 | if (! wxColour_helper(_obj1, &_arg1)) | |
1070 | return NULL; | |
1071 | } | |
1072 | { | |
1073 | wxPy_BEGIN_ALLOW_THREADS; | |
1074 | wxListItem_SetBackgroundColour(_arg0,*_arg1); | |
1075 | ||
1076 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1077 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1078 | } Py_INCREF(Py_None); |
1079 | _resultobj = Py_None; | |
1080 | return _resultobj; | |
1081 | } | |
1082 | ||
1083 | #define wxListItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
1084 | static PyObject *_wrap_wxListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1085 | PyObject * _resultobj; | |
1086 | wxListItem * _arg0; | |
1087 | wxFont * _arg1; | |
1088 | PyObject * _argo0 = 0; | |
1089 | PyObject * _argo1 = 0; | |
1090 | char *_kwnames[] = { "self","font", NULL }; | |
1091 | ||
1092 | self = self; | |
1093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetFont",_kwnames,&_argo0,&_argo1)) | |
1094 | return NULL; | |
1095 | if (_argo0) { | |
1096 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1097 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1098 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetFont. Expected _wxListItem_p."); | |
1099 | return NULL; | |
1100 | } | |
1101 | } | |
1102 | if (_argo1) { | |
1103 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1104 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
1105 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItem_SetFont. Expected _wxFont_p."); | |
1106 | return NULL; | |
1107 | } | |
1108 | } | |
1109 | { | |
1110 | wxPy_BEGIN_ALLOW_THREADS; | |
1111 | wxListItem_SetFont(_arg0,*_arg1); | |
1112 | ||
1113 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1114 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1115 | } Py_INCREF(Py_None); |
1116 | _resultobj = Py_None; | |
1117 | return _resultobj; | |
1118 | } | |
1119 | ||
1120 | #define wxListItem_GetMask(_swigobj) (_swigobj->GetMask()) | |
1121 | static PyObject *_wrap_wxListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1122 | PyObject * _resultobj; | |
1123 | long _result; | |
1124 | wxListItem * _arg0; | |
1125 | PyObject * _argo0 = 0; | |
1126 | char *_kwnames[] = { "self", NULL }; | |
1127 | ||
1128 | self = self; | |
1129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetMask",_kwnames,&_argo0)) | |
1130 | return NULL; | |
1131 | if (_argo0) { | |
1132 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1133 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1134 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetMask. Expected _wxListItem_p."); | |
1135 | return NULL; | |
1136 | } | |
1137 | } | |
1138 | { | |
1139 | wxPy_BEGIN_ALLOW_THREADS; | |
1140 | _result = (long )wxListItem_GetMask(_arg0); | |
1141 | ||
1142 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1143 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1144 | } _resultobj = Py_BuildValue("l",_result); |
1145 | return _resultobj; | |
1146 | } | |
1147 | ||
1148 | #define wxListItem_GetId(_swigobj) (_swigobj->GetId()) | |
1149 | static PyObject *_wrap_wxListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1150 | PyObject * _resultobj; | |
1151 | long _result; | |
1152 | wxListItem * _arg0; | |
1153 | PyObject * _argo0 = 0; | |
1154 | char *_kwnames[] = { "self", NULL }; | |
1155 | ||
1156 | self = self; | |
1157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetId",_kwnames,&_argo0)) | |
1158 | return NULL; | |
1159 | if (_argo0) { | |
1160 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1161 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1162 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetId. Expected _wxListItem_p."); | |
1163 | return NULL; | |
1164 | } | |
1165 | } | |
1166 | { | |
1167 | wxPy_BEGIN_ALLOW_THREADS; | |
1168 | _result = (long )wxListItem_GetId(_arg0); | |
1169 | ||
1170 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1171 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1172 | } _resultobj = Py_BuildValue("l",_result); |
1173 | return _resultobj; | |
1174 | } | |
1175 | ||
1176 | #define wxListItem_GetColumn(_swigobj) (_swigobj->GetColumn()) | |
1177 | static PyObject *_wrap_wxListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1178 | PyObject * _resultobj; | |
1179 | int _result; | |
1180 | wxListItem * _arg0; | |
1181 | PyObject * _argo0 = 0; | |
1182 | char *_kwnames[] = { "self", NULL }; | |
1183 | ||
1184 | self = self; | |
1185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetColumn",_kwnames,&_argo0)) | |
1186 | return NULL; | |
1187 | if (_argo0) { | |
1188 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1189 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1190 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetColumn. Expected _wxListItem_p."); | |
1191 | return NULL; | |
1192 | } | |
1193 | } | |
1194 | { | |
1195 | wxPy_BEGIN_ALLOW_THREADS; | |
1196 | _result = (int )wxListItem_GetColumn(_arg0); | |
1197 | ||
1198 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1199 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1200 | } _resultobj = Py_BuildValue("i",_result); |
1201 | return _resultobj; | |
1202 | } | |
1203 | ||
1204 | #define wxListItem_GetState(_swigobj) (_swigobj->GetState()) | |
1205 | static PyObject *_wrap_wxListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1206 | PyObject * _resultobj; | |
1207 | long _result; | |
1208 | wxListItem * _arg0; | |
1209 | PyObject * _argo0 = 0; | |
1210 | char *_kwnames[] = { "self", NULL }; | |
1211 | ||
1212 | self = self; | |
1213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetState",_kwnames,&_argo0)) | |
1214 | return NULL; | |
1215 | if (_argo0) { | |
1216 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1217 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1218 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetState. Expected _wxListItem_p."); | |
1219 | return NULL; | |
1220 | } | |
1221 | } | |
1222 | { | |
1223 | wxPy_BEGIN_ALLOW_THREADS; | |
1224 | _result = (long )wxListItem_GetState(_arg0); | |
1225 | ||
1226 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1227 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1228 | } _resultobj = Py_BuildValue("l",_result); |
1229 | return _resultobj; | |
1230 | } | |
1231 | ||
1232 | #define wxListItem_GetText(_swigobj) (_swigobj->GetText()) | |
1233 | static PyObject *_wrap_wxListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1234 | PyObject * _resultobj; | |
1235 | wxString * _result; | |
1236 | wxListItem * _arg0; | |
1237 | PyObject * _argo0 = 0; | |
1238 | char *_kwnames[] = { "self", NULL }; | |
1239 | ||
1240 | self = self; | |
1241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetText",_kwnames,&_argo0)) | |
1242 | return NULL; | |
1243 | if (_argo0) { | |
1244 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1245 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1246 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetText. Expected _wxListItem_p."); | |
1247 | return NULL; | |
1248 | } | |
1249 | } | |
1250 | { | |
1251 | wxPy_BEGIN_ALLOW_THREADS; | |
1252 | const wxString & _result_ref = wxListItem_GetText(_arg0); | |
1253 | _result = (wxString *) &_result_ref; | |
1254 | ||
1255 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1256 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1257 | }{ |
1258 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1259 | } | |
1260 | return _resultobj; | |
1261 | } | |
1262 | ||
1263 | #define wxListItem_GetImage(_swigobj) (_swigobj->GetImage()) | |
1264 | static PyObject *_wrap_wxListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1265 | PyObject * _resultobj; | |
1266 | int _result; | |
1267 | wxListItem * _arg0; | |
1268 | PyObject * _argo0 = 0; | |
1269 | char *_kwnames[] = { "self", NULL }; | |
1270 | ||
1271 | self = self; | |
1272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetImage",_kwnames,&_argo0)) | |
1273 | return NULL; | |
1274 | if (_argo0) { | |
1275 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1276 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1277 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetImage. Expected _wxListItem_p."); | |
1278 | return NULL; | |
1279 | } | |
1280 | } | |
1281 | { | |
1282 | wxPy_BEGIN_ALLOW_THREADS; | |
1283 | _result = (int )wxListItem_GetImage(_arg0); | |
1284 | ||
1285 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1286 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1287 | } _resultobj = Py_BuildValue("i",_result); |
1288 | return _resultobj; | |
1289 | } | |
1290 | ||
1291 | #define wxListItem_GetData(_swigobj) (_swigobj->GetData()) | |
1292 | static PyObject *_wrap_wxListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1293 | PyObject * _resultobj; | |
1294 | long _result; | |
1295 | wxListItem * _arg0; | |
1296 | PyObject * _argo0 = 0; | |
1297 | char *_kwnames[] = { "self", NULL }; | |
1298 | ||
1299 | self = self; | |
1300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetData",_kwnames,&_argo0)) | |
1301 | return NULL; | |
1302 | if (_argo0) { | |
1303 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1304 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1305 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetData. Expected _wxListItem_p."); | |
1306 | return NULL; | |
1307 | } | |
1308 | } | |
1309 | { | |
1310 | wxPy_BEGIN_ALLOW_THREADS; | |
1311 | _result = (long )wxListItem_GetData(_arg0); | |
1312 | ||
1313 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1314 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1315 | } _resultobj = Py_BuildValue("l",_result); |
1316 | return _resultobj; | |
1317 | } | |
1318 | ||
1319 | #define wxListItem_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1320 | static PyObject *_wrap_wxListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1321 | PyObject * _resultobj; | |
1322 | int _result; | |
1323 | wxListItem * _arg0; | |
1324 | PyObject * _argo0 = 0; | |
1325 | char *_kwnames[] = { "self", NULL }; | |
1326 | ||
1327 | self = self; | |
1328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetWidth",_kwnames,&_argo0)) | |
1329 | return NULL; | |
1330 | if (_argo0) { | |
1331 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1332 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1333 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetWidth. Expected _wxListItem_p."); | |
1334 | return NULL; | |
1335 | } | |
1336 | } | |
1337 | { | |
1338 | wxPy_BEGIN_ALLOW_THREADS; | |
1339 | _result = (int )wxListItem_GetWidth(_arg0); | |
1340 | ||
1341 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1342 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1343 | } _resultobj = Py_BuildValue("i",_result); |
1344 | return _resultobj; | |
1345 | } | |
1346 | ||
1347 | #define wxListItem_GetAlign(_swigobj) (_swigobj->GetAlign()) | |
1348 | static PyObject *_wrap_wxListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1349 | PyObject * _resultobj; | |
1350 | wxListColumnFormat _result; | |
1351 | wxListItem * _arg0; | |
1352 | PyObject * _argo0 = 0; | |
1353 | char *_kwnames[] = { "self", NULL }; | |
1354 | ||
1355 | self = self; | |
1356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAlign",_kwnames,&_argo0)) | |
1357 | return NULL; | |
1358 | if (_argo0) { | |
1359 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1360 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1361 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAlign. Expected _wxListItem_p."); | |
1362 | return NULL; | |
1363 | } | |
1364 | } | |
1365 | { | |
1366 | wxPy_BEGIN_ALLOW_THREADS; | |
1367 | _result = (wxListColumnFormat )wxListItem_GetAlign(_arg0); | |
1368 | ||
1369 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1370 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1371 | } _resultobj = Py_BuildValue("i",_result); |
1372 | return _resultobj; | |
1373 | } | |
1374 | ||
1375 | #define wxListItem_GetAttributes(_swigobj) (_swigobj->GetAttributes()) | |
1376 | static PyObject *_wrap_wxListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1377 | PyObject * _resultobj; | |
1378 | wxListItemAttr * _result; | |
1379 | wxListItem * _arg0; | |
1380 | PyObject * _argo0 = 0; | |
1381 | char *_kwnames[] = { "self", NULL }; | |
1382 | char _ptemp[128]; | |
1383 | ||
1384 | self = self; | |
1385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAttributes",_kwnames,&_argo0)) | |
1386 | return NULL; | |
1387 | if (_argo0) { | |
1388 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1389 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1390 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAttributes. Expected _wxListItem_p."); | |
1391 | return NULL; | |
1392 | } | |
1393 | } | |
1394 | { | |
1395 | wxPy_BEGIN_ALLOW_THREADS; | |
1396 | _result = (wxListItemAttr *)wxListItem_GetAttributes(_arg0); | |
1397 | ||
1398 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1399 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1400 | } if (_result) { |
1401 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
1402 | _resultobj = Py_BuildValue("s",_ptemp); | |
1403 | } else { | |
1404 | Py_INCREF(Py_None); | |
1405 | _resultobj = Py_None; | |
1406 | } | |
1407 | return _resultobj; | |
1408 | } | |
1409 | ||
1410 | #define wxListItem_HasAttributes(_swigobj) (_swigobj->HasAttributes()) | |
1411 | static PyObject *_wrap_wxListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1412 | PyObject * _resultobj; | |
1413 | bool _result; | |
1414 | wxListItem * _arg0; | |
1415 | PyObject * _argo0 = 0; | |
1416 | char *_kwnames[] = { "self", NULL }; | |
1417 | ||
1418 | self = self; | |
1419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_HasAttributes",_kwnames,&_argo0)) | |
1420 | return NULL; | |
1421 | if (_argo0) { | |
1422 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1423 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1424 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_HasAttributes. Expected _wxListItem_p."); | |
1425 | return NULL; | |
1426 | } | |
1427 | } | |
1428 | { | |
1429 | wxPy_BEGIN_ALLOW_THREADS; | |
1430 | _result = (bool )wxListItem_HasAttributes(_arg0); | |
1431 | ||
1432 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1433 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1434 | } _resultobj = Py_BuildValue("i",_result); |
1435 | return _resultobj; | |
1436 | } | |
1437 | ||
1438 | #define wxListItem_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
1439 | static PyObject *_wrap_wxListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1440 | PyObject * _resultobj; | |
1441 | wxColour * _result; | |
1442 | wxListItem * _arg0; | |
1443 | PyObject * _argo0 = 0; | |
1444 | char *_kwnames[] = { "self", NULL }; | |
1445 | char _ptemp[128]; | |
1446 | ||
1447 | self = self; | |
1448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetTextColour",_kwnames,&_argo0)) | |
1449 | return NULL; | |
1450 | if (_argo0) { | |
1451 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1452 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1453 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetTextColour. Expected _wxListItem_p."); | |
1454 | return NULL; | |
1455 | } | |
1456 | } | |
1457 | { | |
1458 | wxPy_BEGIN_ALLOW_THREADS; | |
1459 | _result = new wxColour (wxListItem_GetTextColour(_arg0)); | |
1460 | ||
1461 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1462 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1463 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
1464 | _resultobj = Py_BuildValue("s",_ptemp); | |
1465 | return _resultobj; | |
1466 | } | |
1467 | ||
1468 | #define wxListItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
1469 | static PyObject *_wrap_wxListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1470 | PyObject * _resultobj; | |
1471 | wxColour * _result; | |
1472 | wxListItem * _arg0; | |
1473 | PyObject * _argo0 = 0; | |
1474 | char *_kwnames[] = { "self", NULL }; | |
1475 | char _ptemp[128]; | |
1476 | ||
1477 | self = self; | |
1478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetBackgroundColour",_kwnames,&_argo0)) | |
1479 | return NULL; | |
1480 | if (_argo0) { | |
1481 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1482 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1483 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetBackgroundColour. Expected _wxListItem_p."); | |
1484 | return NULL; | |
1485 | } | |
1486 | } | |
1487 | { | |
1488 | wxPy_BEGIN_ALLOW_THREADS; | |
1489 | _result = new wxColour (wxListItem_GetBackgroundColour(_arg0)); | |
1490 | ||
1491 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1492 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1493 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
1494 | _resultobj = Py_BuildValue("s",_ptemp); | |
1495 | return _resultobj; | |
1496 | } | |
1497 | ||
1498 | #define wxListItem_GetFont(_swigobj) (_swigobj->GetFont()) | |
1499 | static PyObject *_wrap_wxListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1500 | PyObject * _resultobj; | |
1501 | wxFont * _result; | |
1502 | wxListItem * _arg0; | |
1503 | PyObject * _argo0 = 0; | |
1504 | char *_kwnames[] = { "self", NULL }; | |
1505 | char _ptemp[128]; | |
1506 | ||
1507 | self = self; | |
1508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetFont",_kwnames,&_argo0)) | |
1509 | return NULL; | |
1510 | if (_argo0) { | |
1511 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1512 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1513 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetFont. Expected _wxListItem_p."); | |
1514 | return NULL; | |
1515 | } | |
1516 | } | |
1517 | { | |
1518 | wxPy_BEGIN_ALLOW_THREADS; | |
1519 | _result = new wxFont (wxListItem_GetFont(_arg0)); | |
1520 | ||
1521 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1522 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1523 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
1524 | _resultobj = Py_BuildValue("s",_ptemp); | |
1525 | return _resultobj; | |
1526 | } | |
1527 | ||
1528 | #define wxListItem_m_mask_set(_swigobj,_swigval) (_swigobj->m_mask = _swigval,_swigval) | |
1529 | static PyObject *_wrap_wxListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1530 | PyObject * _resultobj; | |
1531 | long _result; | |
1532 | wxListItem * _arg0; | |
1533 | long _arg1; | |
1534 | PyObject * _argo0 = 0; | |
1535 | char *_kwnames[] = { "self","m_mask", NULL }; | |
1536 | ||
1537 | self = self; | |
1538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_mask_set",_kwnames,&_argo0,&_arg1)) | |
1539 | return NULL; | |
1540 | if (_argo0) { | |
1541 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1542 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1543 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_set. Expected _wxListItem_p."); | |
1544 | return NULL; | |
1545 | } | |
1546 | } | |
1547 | { | |
1548 | wxPy_BEGIN_ALLOW_THREADS; | |
1549 | _result = (long )wxListItem_m_mask_set(_arg0,_arg1); | |
1550 | ||
1551 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1552 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1553 | } _resultobj = Py_BuildValue("l",_result); |
1554 | return _resultobj; | |
1555 | } | |
1556 | ||
1557 | #define wxListItem_m_mask_get(_swigobj) ((long ) _swigobj->m_mask) | |
1558 | static PyObject *_wrap_wxListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1559 | PyObject * _resultobj; | |
1560 | long _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_mask_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_mask_get. Expected _wxListItem_p."); | |
1572 | return NULL; | |
1573 | } | |
1574 | } | |
1575 | { | |
1576 | wxPy_BEGIN_ALLOW_THREADS; | |
1577 | _result = (long )wxListItem_m_mask_get(_arg0); | |
1578 | ||
1579 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1580 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1581 | } _resultobj = Py_BuildValue("l",_result); |
1582 | return _resultobj; | |
1583 | } | |
1584 | ||
1585 | #define wxListItem_m_itemId_set(_swigobj,_swigval) (_swigobj->m_itemId = _swigval,_swigval) | |
1586 | static PyObject *_wrap_wxListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
1587 | PyObject * _resultobj; |
1588 | long _result; | |
1589 | wxListItem * _arg0; | |
1590 | long _arg1; | |
1d99702e | 1591 | PyObject * _argo0 = 0; |
f6bcfd97 | 1592 | char *_kwnames[] = { "self","m_itemId", NULL }; |
af309447 RD |
1593 | |
1594 | self = self; | |
f6bcfd97 | 1595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_itemId_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 1596 | return NULL; |
1d99702e RD |
1597 | if (_argo0) { |
1598 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1599 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1600 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_set. Expected _wxListItem_p."); |
af309447 RD |
1601 | return NULL; |
1602 | } | |
1603 | } | |
cf694132 RD |
1604 | { |
1605 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
1606 | _result = (long )wxListItem_m_itemId_set(_arg0,_arg1); |
1607 | ||
1608 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1609 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1610 | } _resultobj = Py_BuildValue("l",_result); |
1611 | return _resultobj; | |
1612 | } | |
1613 | ||
1614 | #define wxListItem_m_itemId_get(_swigobj) ((long ) _swigobj->m_itemId) | |
1615 | static PyObject *_wrap_wxListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1616 | PyObject * _resultobj; | |
1617 | long _result; | |
1618 | wxListItem * _arg0; | |
1619 | PyObject * _argo0 = 0; | |
1620 | char *_kwnames[] = { "self", NULL }; | |
1621 | ||
1622 | self = self; | |
1623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_itemId_get",_kwnames,&_argo0)) | |
1624 | return NULL; | |
1625 | if (_argo0) { | |
1626 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1627 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1628 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_get. Expected _wxListItem_p."); | |
1629 | return NULL; | |
1630 | } | |
1631 | } | |
1632 | { | |
1633 | wxPy_BEGIN_ALLOW_THREADS; | |
1634 | _result = (long )wxListItem_m_itemId_get(_arg0); | |
1635 | ||
1636 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1637 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1638 | } _resultobj = Py_BuildValue("l",_result); |
1639 | return _resultobj; | |
1640 | } | |
1641 | ||
1642 | #define wxListItem_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval) | |
1643 | static PyObject *_wrap_wxListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1644 | PyObject * _resultobj; | |
1645 | int _result; | |
1646 | wxListItem * _arg0; | |
1647 | int _arg1; | |
1648 | PyObject * _argo0 = 0; | |
1649 | char *_kwnames[] = { "self","m_col", NULL }; | |
1650 | ||
1651 | self = self; | |
1652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_col_set",_kwnames,&_argo0,&_arg1)) | |
1653 | return NULL; | |
1654 | if (_argo0) { | |
1655 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1656 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1657 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_set. Expected _wxListItem_p."); | |
1658 | return NULL; | |
1659 | } | |
1660 | } | |
1661 | { | |
1662 | wxPy_BEGIN_ALLOW_THREADS; | |
1663 | _result = (int )wxListItem_m_col_set(_arg0,_arg1); | |
1664 | ||
1665 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1666 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1667 | } _resultobj = Py_BuildValue("i",_result); |
1668 | return _resultobj; | |
1669 | } | |
1670 | ||
1671 | #define wxListItem_m_col_get(_swigobj) ((int ) _swigobj->m_col) | |
1672 | static PyObject *_wrap_wxListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1673 | PyObject * _resultobj; | |
1674 | int _result; | |
1675 | wxListItem * _arg0; | |
1676 | PyObject * _argo0 = 0; | |
1677 | char *_kwnames[] = { "self", NULL }; | |
1678 | ||
1679 | self = self; | |
1680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_col_get",_kwnames,&_argo0)) | |
1681 | return NULL; | |
1682 | if (_argo0) { | |
1683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_get. Expected _wxListItem_p."); | |
1686 | return NULL; | |
1687 | } | |
1688 | } | |
1689 | { | |
1690 | wxPy_BEGIN_ALLOW_THREADS; | |
1691 | _result = (int )wxListItem_m_col_get(_arg0); | |
1692 | ||
1693 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1694 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1695 | } _resultobj = Py_BuildValue("i",_result); |
1696 | return _resultobj; | |
1697 | } | |
1698 | ||
1699 | #define wxListItem_m_state_set(_swigobj,_swigval) (_swigobj->m_state = _swigval,_swigval) | |
1700 | static PyObject *_wrap_wxListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1701 | PyObject * _resultobj; | |
1702 | long _result; | |
1703 | wxListItem * _arg0; | |
1704 | long _arg1; | |
1705 | PyObject * _argo0 = 0; | |
1706 | char *_kwnames[] = { "self","m_state", NULL }; | |
1707 | ||
1708 | self = self; | |
1709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_state_set",_kwnames,&_argo0,&_arg1)) | |
1710 | return NULL; | |
1711 | if (_argo0) { | |
1712 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1713 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1714 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_set. Expected _wxListItem_p."); | |
1715 | return NULL; | |
1716 | } | |
1717 | } | |
1718 | { | |
1719 | wxPy_BEGIN_ALLOW_THREADS; | |
1720 | _result = (long )wxListItem_m_state_set(_arg0,_arg1); | |
1721 | ||
1722 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1723 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1724 | } _resultobj = Py_BuildValue("l",_result); |
1725 | return _resultobj; | |
1726 | } | |
1727 | ||
1728 | #define wxListItem_m_state_get(_swigobj) ((long ) _swigobj->m_state) | |
1729 | static PyObject *_wrap_wxListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1730 | PyObject * _resultobj; | |
1731 | long _result; | |
1732 | wxListItem * _arg0; | |
1733 | PyObject * _argo0 = 0; | |
1734 | char *_kwnames[] = { "self", NULL }; | |
1735 | ||
1736 | self = self; | |
1737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_state_get",_kwnames,&_argo0)) | |
1738 | return NULL; | |
1739 | if (_argo0) { | |
1740 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1741 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_get. Expected _wxListItem_p."); | |
1743 | return NULL; | |
1744 | } | |
1745 | } | |
1746 | { | |
1747 | wxPy_BEGIN_ALLOW_THREADS; | |
1748 | _result = (long )wxListItem_m_state_get(_arg0); | |
1749 | ||
1750 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1751 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1752 | } _resultobj = Py_BuildValue("l",_result); |
1753 | return _resultobj; | |
1754 | } | |
1755 | ||
1756 | #define wxListItem_m_stateMask_set(_swigobj,_swigval) (_swigobj->m_stateMask = _swigval,_swigval) | |
1757 | static PyObject *_wrap_wxListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1758 | PyObject * _resultobj; | |
1759 | long _result; | |
1760 | wxListItem * _arg0; | |
1761 | long _arg1; | |
1762 | PyObject * _argo0 = 0; | |
1763 | char *_kwnames[] = { "self","m_stateMask", NULL }; | |
1764 | ||
1765 | self = self; | |
1766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_stateMask_set",_kwnames,&_argo0,&_arg1)) | |
1767 | return NULL; | |
1768 | if (_argo0) { | |
1769 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1770 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_set. Expected _wxListItem_p."); | |
1772 | return NULL; | |
1773 | } | |
1774 | } | |
1775 | { | |
1776 | wxPy_BEGIN_ALLOW_THREADS; | |
1777 | _result = (long )wxListItem_m_stateMask_set(_arg0,_arg1); | |
1778 | ||
1779 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1780 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1781 | } _resultobj = Py_BuildValue("l",_result); |
1782 | return _resultobj; | |
1783 | } | |
1784 | ||
1785 | #define wxListItem_m_stateMask_get(_swigobj) ((long ) _swigobj->m_stateMask) | |
1786 | static PyObject *_wrap_wxListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1787 | PyObject * _resultobj; | |
1788 | long _result; | |
1789 | wxListItem * _arg0; | |
1790 | PyObject * _argo0 = 0; | |
1791 | char *_kwnames[] = { "self", NULL }; | |
1792 | ||
1793 | self = self; | |
1794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_stateMask_get",_kwnames,&_argo0)) | |
1795 | return NULL; | |
1796 | if (_argo0) { | |
1797 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1798 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1799 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_get. Expected _wxListItem_p."); | |
1800 | return NULL; | |
1801 | } | |
1802 | } | |
1803 | { | |
1804 | wxPy_BEGIN_ALLOW_THREADS; | |
1805 | _result = (long )wxListItem_m_stateMask_get(_arg0); | |
cf694132 RD |
1806 | |
1807 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1808 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1809 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
1810 | return _resultobj; |
1811 | } | |
1812 | ||
f6bcfd97 BP |
1813 | #define wxListItem_m_text_set(_swigobj,_swigval) (_swigobj->m_text = *(_swigval),_swigval) |
1814 | static PyObject *_wrap_wxListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1815 | PyObject * _resultobj; | |
1816 | wxString * _result; | |
1817 | wxListItem * _arg0; | |
1818 | wxString * _arg1; | |
1819 | PyObject * _argo0 = 0; | |
1820 | PyObject * _obj1 = 0; | |
1821 | char *_kwnames[] = { "self","m_text", NULL }; | |
1822 | ||
1823 | self = self; | |
1824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_m_text_set",_kwnames,&_argo0,&_obj1)) | |
1825 | return NULL; | |
1826 | if (_argo0) { | |
1827 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1828 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1829 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_set. Expected _wxListItem_p."); | |
1830 | return NULL; | |
1831 | } | |
1832 | } | |
1833 | { | |
2cd2fac8 RD |
1834 | #if PYTHON_API_VERSION >= 1009 |
1835 | char* tmpPtr; int tmpSize; | |
1836 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1837 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1838 | return NULL; |
1839 | } | |
1840 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1841 | return NULL; | |
1842 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1843 | #else | |
f6bcfd97 BP |
1844 | if (!PyString_Check(_obj1)) { |
1845 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1846 | return NULL; | |
1847 | } | |
2cd2fac8 RD |
1848 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1849 | #endif | |
f6bcfd97 BP |
1850 | } |
1851 | { | |
1852 | wxPy_BEGIN_ALLOW_THREADS; | |
1853 | _result = (wxString *)wxListItem_m_text_set(_arg0,_arg1); | |
1854 | ||
1855 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1856 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1857 | }{ |
1858 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1859 | } | |
1860 | { | |
1861 | if (_obj1) | |
1862 | delete _arg1; | |
1863 | } | |
1864 | return _resultobj; | |
1865 | } | |
1866 | ||
1867 | #define wxListItem_m_text_get(_swigobj) (&_swigobj->m_text) | |
1868 | static PyObject *_wrap_wxListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1869 | PyObject * _resultobj; |
f6bcfd97 | 1870 | wxString * _result; |
8ab979d7 | 1871 | wxListItem * _arg0; |
1d99702e | 1872 | PyObject * _argo0 = 0; |
efc5f224 | 1873 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1874 | |
1875 | self = self; | |
f6bcfd97 | 1876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_text_get",_kwnames,&_argo0)) |
8ab979d7 | 1877 | return NULL; |
1d99702e RD |
1878 | if (_argo0) { |
1879 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1880 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1881 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_get. Expected _wxListItem_p."); |
8ab979d7 RD |
1882 | return NULL; |
1883 | } | |
1884 | } | |
cf694132 RD |
1885 | { |
1886 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1887 | _result = (wxString *)wxListItem_m_text_get(_arg0); |
cf694132 RD |
1888 | |
1889 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1890 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1891 | }{ |
1892 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1893 | } | |
8ab979d7 RD |
1894 | return _resultobj; |
1895 | } | |
1896 | ||
f6bcfd97 BP |
1897 | #define wxListItem_m_image_set(_swigobj,_swigval) (_swigobj->m_image = _swigval,_swigval) |
1898 | static PyObject *_wrap_wxListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 1899 | PyObject * _resultobj; |
f6bcfd97 | 1900 | int _result; |
af309447 | 1901 | wxListItem * _arg0; |
f6bcfd97 | 1902 | int _arg1; |
1d99702e | 1903 | PyObject * _argo0 = 0; |
f6bcfd97 | 1904 | char *_kwnames[] = { "self","m_image", NULL }; |
af309447 RD |
1905 | |
1906 | self = self; | |
f6bcfd97 | 1907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_image_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 1908 | return NULL; |
1d99702e RD |
1909 | if (_argo0) { |
1910 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1911 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1912 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_set. Expected _wxListItem_p."); |
af309447 RD |
1913 | return NULL; |
1914 | } | |
1915 | } | |
cf694132 RD |
1916 | { |
1917 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1918 | _result = (int )wxListItem_m_image_set(_arg0,_arg1); |
cf694132 RD |
1919 | |
1920 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1921 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1922 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
1923 | return _resultobj; |
1924 | } | |
1925 | ||
f6bcfd97 BP |
1926 | #define wxListItem_m_image_get(_swigobj) ((int ) _swigobj->m_image) |
1927 | static PyObject *_wrap_wxListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1928 | PyObject * _resultobj; |
f6bcfd97 | 1929 | int _result; |
8ab979d7 | 1930 | wxListItem * _arg0; |
1d99702e | 1931 | PyObject * _argo0 = 0; |
efc5f224 | 1932 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1933 | |
1934 | self = self; | |
f6bcfd97 | 1935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_image_get",_kwnames,&_argo0)) |
8ab979d7 | 1936 | return NULL; |
1d99702e RD |
1937 | if (_argo0) { |
1938 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1939 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1940 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_get. Expected _wxListItem_p."); |
8ab979d7 RD |
1941 | return NULL; |
1942 | } | |
1943 | } | |
cf694132 RD |
1944 | { |
1945 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1946 | _result = (int )wxListItem_m_image_get(_arg0); |
cf694132 RD |
1947 | |
1948 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1949 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1950 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1951 | return _resultobj; |
1952 | } | |
1953 | ||
f6bcfd97 BP |
1954 | #define wxListItem_m_data_set(_swigobj,_swigval) (_swigobj->m_data = _swigval,_swigval) |
1955 | static PyObject *_wrap_wxListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 1956 | PyObject * _resultobj; |
f6bcfd97 | 1957 | long _result; |
af309447 | 1958 | wxListItem * _arg0; |
f6bcfd97 | 1959 | long _arg1; |
1d99702e | 1960 | PyObject * _argo0 = 0; |
f6bcfd97 | 1961 | char *_kwnames[] = { "self","m_data", NULL }; |
af309447 RD |
1962 | |
1963 | self = self; | |
f6bcfd97 | 1964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_data_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 1965 | return NULL; |
1d99702e RD |
1966 | if (_argo0) { |
1967 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1968 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1969 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_set. Expected _wxListItem_p."); |
af309447 RD |
1970 | return NULL; |
1971 | } | |
1972 | } | |
cf694132 RD |
1973 | { |
1974 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1975 | _result = (long )wxListItem_m_data_set(_arg0,_arg1); |
cf694132 RD |
1976 | |
1977 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1978 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1979 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
1980 | return _resultobj; |
1981 | } | |
1982 | ||
f6bcfd97 BP |
1983 | #define wxListItem_m_data_get(_swigobj) ((long ) _swigobj->m_data) |
1984 | static PyObject *_wrap_wxListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1985 | PyObject * _resultobj; |
f6bcfd97 | 1986 | long _result; |
8ab979d7 | 1987 | wxListItem * _arg0; |
1d99702e | 1988 | PyObject * _argo0 = 0; |
efc5f224 | 1989 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1990 | |
1991 | self = self; | |
f6bcfd97 | 1992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_data_get",_kwnames,&_argo0)) |
8ab979d7 | 1993 | return NULL; |
1d99702e RD |
1994 | if (_argo0) { |
1995 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1996 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1997 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_get. Expected _wxListItem_p."); |
8ab979d7 RD |
1998 | return NULL; |
1999 | } | |
2000 | } | |
cf694132 RD |
2001 | { |
2002 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2003 | _result = (long )wxListItem_m_data_get(_arg0); |
cf694132 RD |
2004 | |
2005 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2006 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2007 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2008 | return _resultobj; |
2009 | } | |
2010 | ||
f6bcfd97 BP |
2011 | #define wxListItem_m_format_set(_swigobj,_swigval) (_swigobj->m_format = _swigval,_swigval) |
2012 | static PyObject *_wrap_wxListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2013 | PyObject * _resultobj; |
f6bcfd97 | 2014 | int _result; |
af309447 | 2015 | wxListItem * _arg0; |
f6bcfd97 | 2016 | int _arg1; |
1d99702e | 2017 | PyObject * _argo0 = 0; |
f6bcfd97 | 2018 | char *_kwnames[] = { "self","m_format", NULL }; |
af309447 RD |
2019 | |
2020 | self = self; | |
f6bcfd97 | 2021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_format_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2022 | return NULL; |
1d99702e RD |
2023 | if (_argo0) { |
2024 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2025 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 2026 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_set. Expected _wxListItem_p."); |
af309447 RD |
2027 | return NULL; |
2028 | } | |
2029 | } | |
cf694132 RD |
2030 | { |
2031 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2032 | _result = (int )wxListItem_m_format_set(_arg0,_arg1); |
cf694132 RD |
2033 | |
2034 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2035 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2036 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2037 | return _resultobj; |
2038 | } | |
2039 | ||
f6bcfd97 BP |
2040 | #define wxListItem_m_format_get(_swigobj) ((int ) _swigobj->m_format) |
2041 | static PyObject *_wrap_wxListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2042 | PyObject * _resultobj; |
f6bcfd97 | 2043 | int _result; |
8ab979d7 | 2044 | wxListItem * _arg0; |
1d99702e | 2045 | PyObject * _argo0 = 0; |
efc5f224 | 2046 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2047 | |
2048 | self = self; | |
f6bcfd97 | 2049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_format_get",_kwnames,&_argo0)) |
8ab979d7 | 2050 | return NULL; |
1d99702e RD |
2051 | if (_argo0) { |
2052 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2053 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 2054 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_get. Expected _wxListItem_p."); |
8ab979d7 RD |
2055 | return NULL; |
2056 | } | |
2057 | } | |
cf694132 RD |
2058 | { |
2059 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2060 | _result = (int )wxListItem_m_format_get(_arg0); |
cf694132 RD |
2061 | |
2062 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2063 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2064 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2065 | return _resultobj; |
2066 | } | |
2067 | ||
f6bcfd97 BP |
2068 | #define wxListItem_m_width_set(_swigobj,_swigval) (_swigobj->m_width = _swigval,_swigval) |
2069 | static PyObject *_wrap_wxListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2070 | PyObject * _resultobj; |
f6bcfd97 | 2071 | int _result; |
af309447 | 2072 | wxListItem * _arg0; |
f6bcfd97 | 2073 | int _arg1; |
1d99702e | 2074 | PyObject * _argo0 = 0; |
f6bcfd97 | 2075 | char *_kwnames[] = { "self","m_width", NULL }; |
af309447 RD |
2076 | |
2077 | self = self; | |
f6bcfd97 | 2078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_width_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2079 | return NULL; |
1d99702e RD |
2080 | if (_argo0) { |
2081 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2082 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 2083 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_set. Expected _wxListItem_p."); |
af309447 RD |
2084 | return NULL; |
2085 | } | |
2086 | } | |
cf694132 RD |
2087 | { |
2088 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2089 | _result = (int )wxListItem_m_width_set(_arg0,_arg1); |
cf694132 RD |
2090 | |
2091 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2092 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2093 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2094 | return _resultobj; |
2095 | } | |
2096 | ||
f6bcfd97 BP |
2097 | #define wxListItem_m_width_get(_swigobj) ((int ) _swigobj->m_width) |
2098 | static PyObject *_wrap_wxListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2099 | PyObject * _resultobj; |
f6bcfd97 | 2100 | int _result; |
8ab979d7 | 2101 | wxListItem * _arg0; |
1d99702e | 2102 | PyObject * _argo0 = 0; |
efc5f224 | 2103 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2104 | |
2105 | self = self; | |
f6bcfd97 | 2106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_width_get",_kwnames,&_argo0)) |
8ab979d7 | 2107 | return NULL; |
1d99702e RD |
2108 | if (_argo0) { |
2109 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2110 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 2111 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_get. Expected _wxListItem_p."); |
8ab979d7 RD |
2112 | return NULL; |
2113 | } | |
2114 | } | |
cf694132 RD |
2115 | { |
2116 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2117 | _result = (int )wxListItem_m_width_get(_arg0); |
cf694132 RD |
2118 | |
2119 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2120 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2121 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2122 | return _resultobj; |
2123 | } | |
2124 | ||
c368d904 RD |
2125 | static void *SwigwxListEventTowxNotifyEvent(void *ptr) { |
2126 | wxListEvent *src; | |
2127 | wxNotifyEvent *dest; | |
2128 | src = (wxListEvent *) ptr; | |
2129 | dest = (wxNotifyEvent *) src; | |
2130 | return (void *) dest; | |
2131 | } | |
2132 | ||
f6bcfd97 BP |
2133 | static void *SwigwxListEventTowxCommandEvent(void *ptr) { |
2134 | wxListEvent *src; | |
2135 | wxCommandEvent *dest; | |
2136 | src = (wxListEvent *) ptr; | |
2137 | dest = (wxCommandEvent *) src; | |
2138 | return (void *) dest; | |
2139 | } | |
2140 | ||
2141 | static void *SwigwxListEventTowxEvent(void *ptr) { | |
2142 | wxListEvent *src; | |
2143 | wxEvent *dest; | |
2144 | src = (wxListEvent *) ptr; | |
2145 | dest = (wxEvent *) src; | |
2146 | return (void *) dest; | |
2147 | } | |
2148 | ||
9df61a29 RD |
2149 | static void *SwigwxListEventTowxObject(void *ptr) { |
2150 | wxListEvent *src; | |
2151 | wxObject *dest; | |
2152 | src = (wxListEvent *) ptr; | |
2153 | dest = (wxObject *) src; | |
2154 | return (void *) dest; | |
2155 | } | |
2156 | ||
f6bcfd97 BP |
2157 | #define wxListEvent_m_code_set(_swigobj,_swigval) (_swigobj->m_code = _swigval,_swigval) |
2158 | static PyObject *_wrap_wxListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2159 | PyObject * _resultobj; |
f6bcfd97 BP |
2160 | int _result; |
2161 | wxListEvent * _arg0; | |
2162 | int _arg1; | |
1d99702e | 2163 | PyObject * _argo0 = 0; |
f6bcfd97 | 2164 | char *_kwnames[] = { "self","m_code", NULL }; |
af309447 RD |
2165 | |
2166 | self = self; | |
f6bcfd97 | 2167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_code_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 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_code_set. Expected _wxListEvent_p."); | |
af309447 RD |
2173 | return NULL; |
2174 | } | |
2175 | } | |
af309447 | 2176 | { |
cf694132 | 2177 | wxPy_BEGIN_ALLOW_THREADS; |
f6bcfd97 | 2178 | _result = (int )wxListEvent_m_code_set(_arg0,_arg1); |
cf694132 RD |
2179 | |
2180 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2181 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2182 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2183 | return _resultobj; |
2184 | } | |
2185 | ||
f6bcfd97 BP |
2186 | #define wxListEvent_m_code_get(_swigobj) ((int ) _swigobj->m_code) |
2187 | static PyObject *_wrap_wxListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2188 | PyObject * _resultobj; |
f6bcfd97 BP |
2189 | int _result; |
2190 | wxListEvent * _arg0; | |
1d99702e | 2191 | PyObject * _argo0 = 0; |
efc5f224 | 2192 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2193 | |
2194 | self = self; | |
f6bcfd97 | 2195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_code_get",_kwnames,&_argo0)) |
8ab979d7 | 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_code_get. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2201 | return NULL; |
2202 | } | |
2203 | } | |
8ab979d7 | 2204 | { |
cf694132 | 2205 | wxPy_BEGIN_ALLOW_THREADS; |
f6bcfd97 | 2206 | _result = (int )wxListEvent_m_code_get(_arg0); |
cf694132 RD |
2207 | |
2208 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2209 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2210 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2211 | return _resultobj; |
2212 | } | |
2213 | ||
f6bcfd97 BP |
2214 | #define wxListEvent_m_itemIndex_set(_swigobj,_swigval) (_swigobj->m_itemIndex = _swigval,_swigval) |
2215 | static PyObject *_wrap_wxListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2216 | PyObject * _resultobj; |
f6bcfd97 BP |
2217 | long _result; |
2218 | wxListEvent * _arg0; | |
2219 | long _arg1; | |
1d99702e | 2220 | PyObject * _argo0 = 0; |
f6bcfd97 | 2221 | char *_kwnames[] = { "self","m_itemIndex", NULL }; |
af309447 RD |
2222 | |
2223 | self = self; | |
f6bcfd97 | 2224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListEvent_m_itemIndex_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2225 | return NULL; |
1d99702e RD |
2226 | if (_argo0) { |
2227 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2228 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2229 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_set. Expected _wxListEvent_p."); | |
af309447 RD |
2230 | return NULL; |
2231 | } | |
2232 | } | |
cf694132 RD |
2233 | { |
2234 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2235 | _result = (long )wxListEvent_m_itemIndex_set(_arg0,_arg1); |
cf694132 RD |
2236 | |
2237 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2238 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2239 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2240 | return _resultobj; |
2241 | } | |
2242 | ||
f6bcfd97 BP |
2243 | #define wxListEvent_m_itemIndex_get(_swigobj) ((long ) _swigobj->m_itemIndex) |
2244 | static PyObject *_wrap_wxListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2245 | PyObject * _resultobj; |
f6bcfd97 BP |
2246 | long _result; |
2247 | wxListEvent * _arg0; | |
1d99702e | 2248 | PyObject * _argo0 = 0; |
efc5f224 | 2249 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2250 | |
2251 | self = self; | |
f6bcfd97 | 2252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_itemIndex_get",_kwnames,&_argo0)) |
8ab979d7 | 2253 | return NULL; |
1d99702e RD |
2254 | if (_argo0) { |
2255 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2256 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2257 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_get. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2258 | return NULL; |
2259 | } | |
2260 | } | |
cf694132 RD |
2261 | { |
2262 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2263 | _result = (long )wxListEvent_m_itemIndex_get(_arg0); |
cf694132 RD |
2264 | |
2265 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2266 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2267 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2268 | return _resultobj; |
2269 | } | |
2270 | ||
f6bcfd97 BP |
2271 | #define wxListEvent_m_oldItemIndex_set(_swigobj,_swigval) (_swigobj->m_oldItemIndex = _swigval,_swigval) |
2272 | static PyObject *_wrap_wxListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
2273 | PyObject * _resultobj; |
2274 | long _result; | |
f6bcfd97 | 2275 | wxListEvent * _arg0; |
af309447 | 2276 | long _arg1; |
1d99702e | 2277 | PyObject * _argo0 = 0; |
f6bcfd97 | 2278 | char *_kwnames[] = { "self","m_oldItemIndex", NULL }; |
af309447 RD |
2279 | |
2280 | self = self; | |
f6bcfd97 | 2281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListEvent_m_oldItemIndex_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2282 | return NULL; |
1d99702e RD |
2283 | if (_argo0) { |
2284 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2285 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_set. Expected _wxListEvent_p."); | |
af309447 RD |
2287 | return NULL; |
2288 | } | |
2289 | } | |
cf694132 RD |
2290 | { |
2291 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2292 | _result = (long )wxListEvent_m_oldItemIndex_set(_arg0,_arg1); |
cf694132 RD |
2293 | |
2294 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2295 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2296 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2297 | return _resultobj; |
2298 | } | |
2299 | ||
f6bcfd97 BP |
2300 | #define wxListEvent_m_oldItemIndex_get(_swigobj) ((long ) _swigobj->m_oldItemIndex) |
2301 | static PyObject *_wrap_wxListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2302 | PyObject * _resultobj; |
2303 | long _result; | |
f6bcfd97 | 2304 | wxListEvent * _arg0; |
1d99702e | 2305 | PyObject * _argo0 = 0; |
efc5f224 | 2306 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2307 | |
2308 | self = self; | |
f6bcfd97 | 2309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_oldItemIndex_get",_kwnames,&_argo0)) |
8ab979d7 | 2310 | return NULL; |
1d99702e RD |
2311 | if (_argo0) { |
2312 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2313 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2314 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_get. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2315 | return NULL; |
2316 | } | |
2317 | } | |
cf694132 RD |
2318 | { |
2319 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2320 | _result = (long )wxListEvent_m_oldItemIndex_get(_arg0); |
cf694132 RD |
2321 | |
2322 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2323 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2324 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2325 | return _resultobj; |
2326 | } | |
2327 | ||
f6bcfd97 BP |
2328 | #define wxListEvent_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval) |
2329 | static PyObject *_wrap_wxListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
2330 | PyObject * _resultobj; |
2331 | int _result; | |
f6bcfd97 | 2332 | wxListEvent * _arg0; |
af309447 | 2333 | int _arg1; |
1d99702e | 2334 | PyObject * _argo0 = 0; |
f6bcfd97 | 2335 | char *_kwnames[] = { "self","m_col", NULL }; |
af309447 RD |
2336 | |
2337 | self = self; | |
f6bcfd97 | 2338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_col_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2339 | return NULL; |
1d99702e RD |
2340 | if (_argo0) { |
2341 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2342 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2343 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_set. Expected _wxListEvent_p."); | |
af309447 RD |
2344 | return NULL; |
2345 | } | |
2346 | } | |
cf694132 RD |
2347 | { |
2348 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2349 | _result = (int )wxListEvent_m_col_set(_arg0,_arg1); |
cf694132 RD |
2350 | |
2351 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2352 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2353 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2354 | return _resultobj; |
2355 | } | |
2356 | ||
f6bcfd97 BP |
2357 | #define wxListEvent_m_col_get(_swigobj) ((int ) _swigobj->m_col) |
2358 | static PyObject *_wrap_wxListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2359 | PyObject * _resultobj; |
2360 | int _result; | |
f6bcfd97 | 2361 | wxListEvent * _arg0; |
1d99702e | 2362 | PyObject * _argo0 = 0; |
efc5f224 | 2363 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2364 | |
2365 | self = self; | |
f6bcfd97 | 2366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_col_get",_kwnames,&_argo0)) |
8ab979d7 | 2367 | return NULL; |
1d99702e RD |
2368 | if (_argo0) { |
2369 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2370 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_get. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2372 | return NULL; |
2373 | } | |
2374 | } | |
cf694132 RD |
2375 | { |
2376 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2377 | _result = (int )wxListEvent_m_col_get(_arg0); |
cf694132 RD |
2378 | |
2379 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2380 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2381 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2382 | return _resultobj; |
2383 | } | |
2384 | ||
f6bcfd97 BP |
2385 | #define wxListEvent_m_cancelled_set(_swigobj,_swigval) (_swigobj->m_cancelled = _swigval,_swigval) |
2386 | static PyObject *_wrap_wxListEvent_m_cancelled_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2387 | PyObject * _resultobj; |
f6bcfd97 BP |
2388 | bool _result; |
2389 | wxListEvent * _arg0; | |
2390 | bool _arg1; | |
1d99702e | 2391 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
2392 | int tempbool1; |
2393 | char *_kwnames[] = { "self","m_cancelled", NULL }; | |
af309447 RD |
2394 | |
2395 | self = self; | |
f6bcfd97 | 2396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_cancelled_set",_kwnames,&_argo0,&tempbool1)) |
af309447 | 2397 | return NULL; |
1d99702e RD |
2398 | if (_argo0) { |
2399 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2400 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2401 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_cancelled_set. Expected _wxListEvent_p."); | |
af309447 RD |
2402 | return NULL; |
2403 | } | |
2404 | } | |
f6bcfd97 | 2405 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
2406 | { |
2407 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2408 | _result = (bool )wxListEvent_m_cancelled_set(_arg0,_arg1); |
cf694132 RD |
2409 | |
2410 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2411 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2412 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2413 | return _resultobj; |
2414 | } | |
2415 | ||
f6bcfd97 BP |
2416 | #define wxListEvent_m_cancelled_get(_swigobj) ((bool ) _swigobj->m_cancelled) |
2417 | static PyObject *_wrap_wxListEvent_m_cancelled_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2418 | PyObject * _resultobj; |
f6bcfd97 BP |
2419 | bool _result; |
2420 | wxListEvent * _arg0; | |
1d99702e | 2421 | PyObject * _argo0 = 0; |
efc5f224 | 2422 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2423 | |
2424 | self = self; | |
f6bcfd97 | 2425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_cancelled_get",_kwnames,&_argo0)) |
8ab979d7 | 2426 | return NULL; |
1d99702e RD |
2427 | if (_argo0) { |
2428 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2429 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2430 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_cancelled_get. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2431 | return NULL; |
2432 | } | |
2433 | } | |
cf694132 RD |
2434 | { |
2435 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2436 | _result = (bool )wxListEvent_m_cancelled_get(_arg0); |
cf694132 RD |
2437 | |
2438 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2439 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2440 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2441 | return _resultobj; |
2442 | } | |
2443 | ||
f6bcfd97 BP |
2444 | #define wxListEvent_m_pointDrag_set(_swigobj,_swigval) (_swigobj->m_pointDrag = *(_swigval),_swigval) |
2445 | static PyObject *_wrap_wxListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2446 | PyObject * _resultobj; |
f6bcfd97 BP |
2447 | wxPoint * _result; |
2448 | wxListEvent * _arg0; | |
2449 | wxPoint * _arg1; | |
2450 | PyObject * _argo0 = 0; | |
2451 | wxPoint temp; | |
2452 | PyObject * _obj1 = 0; | |
2453 | char *_kwnames[] = { "self","m_pointDrag", NULL }; | |
8ab979d7 RD |
2454 | char _ptemp[128]; |
2455 | ||
2456 | self = self; | |
f6bcfd97 BP |
2457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListEvent_m_pointDrag_set",_kwnames,&_argo0,&_obj1)) |
2458 | return NULL; | |
2459 | if (_argo0) { | |
2460 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2461 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2462 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_set. Expected _wxListEvent_p."); | |
2463 | return NULL; | |
2464 | } | |
2465 | } | |
2466 | { | |
2467 | _arg1 = &temp; | |
2468 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 2469 | return NULL; |
f6bcfd97 | 2470 | } |
cf694132 RD |
2471 | { |
2472 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2473 | _result = (wxPoint *)wxListEvent_m_pointDrag_set(_arg0,_arg1); |
cf694132 RD |
2474 | |
2475 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2476 | if (PyErr_Occurred()) return NULL; |
1d99702e | 2477 | } if (_result) { |
f6bcfd97 | 2478 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); |
1d99702e RD |
2479 | _resultobj = Py_BuildValue("s",_ptemp); |
2480 | } else { | |
2481 | Py_INCREF(Py_None); | |
2482 | _resultobj = Py_None; | |
2483 | } | |
8ab979d7 RD |
2484 | return _resultobj; |
2485 | } | |
2486 | ||
f6bcfd97 BP |
2487 | #define wxListEvent_m_pointDrag_get(_swigobj) (&_swigobj->m_pointDrag) |
2488 | static PyObject *_wrap_wxListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2489 | PyObject * _resultobj; |
f6bcfd97 BP |
2490 | wxPoint * _result; |
2491 | wxListEvent * _arg0; | |
1d99702e | 2492 | PyObject * _argo0 = 0; |
efc5f224 | 2493 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 2494 | char _ptemp[128]; |
8ab979d7 RD |
2495 | |
2496 | self = self; | |
f6bcfd97 | 2497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_pointDrag_get",_kwnames,&_argo0)) |
8ab979d7 | 2498 | return NULL; |
1d99702e RD |
2499 | if (_argo0) { |
2500 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2501 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2502 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_get. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2503 | return NULL; |
2504 | } | |
2505 | } | |
cf694132 RD |
2506 | { |
2507 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2508 | _result = (wxPoint *)wxListEvent_m_pointDrag_get(_arg0); |
cf694132 RD |
2509 | |
2510 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2511 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2512 | } if (_result) { |
2513 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
2514 | _resultobj = Py_BuildValue("s",_ptemp); | |
2515 | } else { | |
2516 | Py_INCREF(Py_None); | |
2517 | _resultobj = Py_None; | |
2518 | } | |
8ab979d7 RD |
2519 | return _resultobj; |
2520 | } | |
2521 | ||
f6bcfd97 BP |
2522 | #define wxListEvent_m_item_set(_swigobj,_swigval) (_swigobj->m_item = *(_swigval),_swigval) |
2523 | static PyObject *_wrap_wxListEvent_m_item_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2524 | PyObject * _resultobj; | |
2525 | wxListItem * _result; | |
2526 | wxListEvent * _arg0; | |
2527 | wxListItem * _arg1; | |
2528 | PyObject * _argo0 = 0; | |
2529 | PyObject * _argo1 = 0; | |
2530 | char *_kwnames[] = { "self","m_item", NULL }; | |
8ab979d7 | 2531 | |
f6bcfd97 BP |
2532 | self = self; |
2533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListEvent_m_item_set",_kwnames,&_argo0,&_argo1)) | |
2534 | return NULL; | |
2535 | if (_argo0) { | |
2536 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2537 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2538 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_set. Expected _wxListEvent_p."); | |
2539 | return NULL; | |
2540 | } | |
2541 | } | |
2542 | if (_argo1) { | |
2543 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2544 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
2545 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListEvent_m_item_set. Expected _wxListItem_p."); | |
2546 | return NULL; | |
2547 | } | |
2548 | } | |
2549 | { | |
2550 | wxPy_BEGIN_ALLOW_THREADS; | |
2551 | _result = (wxListItem *)wxListEvent_m_item_set(_arg0,_arg1); | |
2552 | ||
2553 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2554 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 2555 | }{ _resultobj = wxPyMake_wxObject(_result); } |
f6bcfd97 | 2556 | return _resultobj; |
8ab979d7 RD |
2557 | } |
2558 | ||
f6bcfd97 BP |
2559 | #define wxListEvent_m_item_get(_swigobj) (&_swigobj->m_item) |
2560 | static PyObject *_wrap_wxListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2561 | PyObject * _resultobj; |
f6bcfd97 | 2562 | wxListItem * _result; |
af309447 | 2563 | wxListEvent * _arg0; |
1d99702e | 2564 | PyObject * _argo0 = 0; |
f6bcfd97 | 2565 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2566 | |
2567 | self = self; | |
f6bcfd97 | 2568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_item_get",_kwnames,&_argo0)) |
af309447 | 2569 | return NULL; |
1d99702e RD |
2570 | if (_argo0) { |
2571 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2572 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2573 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_get. Expected _wxListEvent_p."); |
af309447 RD |
2574 | return NULL; |
2575 | } | |
2576 | } | |
cf694132 RD |
2577 | { |
2578 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2579 | _result = (wxListItem *)wxListEvent_m_item_get(_arg0); |
cf694132 RD |
2580 | |
2581 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2582 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 2583 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
2584 | return _resultobj; |
2585 | } | |
2586 | ||
f6bcfd97 BP |
2587 | #define wxListEvent_GetCode(_swigobj) (_swigobj->GetCode()) |
2588 | static PyObject *_wrap_wxListEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2589 | PyObject * _resultobj; |
2590 | int _result; | |
2591 | wxListEvent * _arg0; | |
1d99702e | 2592 | PyObject * _argo0 = 0; |
efc5f224 | 2593 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2594 | |
2595 | self = self; | |
f6bcfd97 | 2596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCode",_kwnames,&_argo0)) |
8ab979d7 | 2597 | return NULL; |
1d99702e RD |
2598 | if (_argo0) { |
2599 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2600 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2601 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCode. Expected _wxListEvent_p."); |
8ab979d7 RD |
2602 | return NULL; |
2603 | } | |
2604 | } | |
cf694132 RD |
2605 | { |
2606 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2607 | _result = (int )wxListEvent_GetCode(_arg0); |
cf694132 RD |
2608 | |
2609 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2610 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2611 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2612 | return _resultobj; |
2613 | } | |
2614 | ||
f6bcfd97 BP |
2615 | #define wxListEvent_GetIndex(_swigobj) (_swigobj->GetIndex()) |
2616 | static PyObject *_wrap_wxListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
2617 | PyObject * _resultobj; |
2618 | long _result; | |
2619 | wxListEvent * _arg0; | |
1d99702e | 2620 | PyObject * _argo0 = 0; |
f6bcfd97 | 2621 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2622 | |
2623 | self = self; | |
f6bcfd97 | 2624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetIndex",_kwnames,&_argo0)) |
af309447 | 2625 | return NULL; |
1d99702e RD |
2626 | if (_argo0) { |
2627 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2628 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetIndex. Expected _wxListEvent_p."); |
af309447 RD |
2630 | return NULL; |
2631 | } | |
2632 | } | |
cf694132 RD |
2633 | { |
2634 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2635 | _result = (long )wxListEvent_GetIndex(_arg0); |
cf694132 RD |
2636 | |
2637 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2638 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2639 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2640 | return _resultobj; |
2641 | } | |
2642 | ||
f6bcfd97 BP |
2643 | #define wxListEvent_GetOldIndex(_swigobj) (_swigobj->GetOldIndex()) |
2644 | static PyObject *_wrap_wxListEvent_GetOldIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2645 | PyObject * _resultobj; |
2646 | long _result; | |
2647 | wxListEvent * _arg0; | |
1d99702e | 2648 | PyObject * _argo0 = 0; |
efc5f224 | 2649 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2650 | |
2651 | self = self; | |
f6bcfd97 | 2652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetOldIndex",_kwnames,&_argo0)) |
8ab979d7 | 2653 | return NULL; |
1d99702e RD |
2654 | if (_argo0) { |
2655 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2656 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2657 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetOldIndex. Expected _wxListEvent_p."); |
8ab979d7 RD |
2658 | return NULL; |
2659 | } | |
2660 | } | |
cf694132 RD |
2661 | { |
2662 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2663 | _result = (long )wxListEvent_GetOldIndex(_arg0); |
cf694132 RD |
2664 | |
2665 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2666 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2667 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2668 | return _resultobj; |
2669 | } | |
2670 | ||
f6bcfd97 BP |
2671 | #define wxListEvent_GetOldItem(_swigobj) (_swigobj->GetOldItem()) |
2672 | static PyObject *_wrap_wxListEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
2673 | PyObject * _resultobj; |
2674 | long _result; | |
2675 | wxListEvent * _arg0; | |
1d99702e | 2676 | PyObject * _argo0 = 0; |
f6bcfd97 | 2677 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2678 | |
2679 | self = self; | |
f6bcfd97 | 2680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetOldItem",_kwnames,&_argo0)) |
af309447 | 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_GetOldItem. Expected _wxListEvent_p."); |
af309447 RD |
2686 | return NULL; |
2687 | } | |
2688 | } | |
cf694132 RD |
2689 | { |
2690 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2691 | _result = (long )wxListEvent_GetOldItem(_arg0); |
cf694132 RD |
2692 | |
2693 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2694 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2695 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2696 | return _resultobj; |
2697 | } | |
2698 | ||
f6bcfd97 BP |
2699 | #define wxListEvent_GetColumn(_swigobj) (_swigobj->GetColumn()) |
2700 | static PyObject *_wrap_wxListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2701 | PyObject * _resultobj; |
f6bcfd97 | 2702 | int _result; |
8ab979d7 | 2703 | wxListEvent * _arg0; |
1d99702e | 2704 | PyObject * _argo0 = 0; |
efc5f224 | 2705 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2706 | |
2707 | self = self; | |
f6bcfd97 | 2708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetColumn",_kwnames,&_argo0)) |
8ab979d7 | 2709 | return NULL; |
1d99702e RD |
2710 | if (_argo0) { |
2711 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2712 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetColumn. Expected _wxListEvent_p."); |
8ab979d7 RD |
2714 | return NULL; |
2715 | } | |
2716 | } | |
cf694132 RD |
2717 | { |
2718 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2719 | _result = (int )wxListEvent_GetColumn(_arg0); |
cf694132 RD |
2720 | |
2721 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2722 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2723 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2724 | return _resultobj; |
2725 | } | |
2726 | ||
f6bcfd97 BP |
2727 | #define wxListEvent_Cancelled(_swigobj) (_swigobj->Cancelled()) |
2728 | static PyObject *_wrap_wxListEvent_Cancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2729 | PyObject * _resultobj; |
f6bcfd97 | 2730 | bool _result; |
af309447 | 2731 | wxListEvent * _arg0; |
1d99702e | 2732 | PyObject * _argo0 = 0; |
f6bcfd97 | 2733 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2734 | |
2735 | self = self; | |
f6bcfd97 | 2736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_Cancelled",_kwnames,&_argo0)) |
af309447 | 2737 | return NULL; |
1d99702e RD |
2738 | if (_argo0) { |
2739 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2740 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2741 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_Cancelled. Expected _wxListEvent_p."); |
af309447 RD |
2742 | return NULL; |
2743 | } | |
2744 | } | |
cf694132 RD |
2745 | { |
2746 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2747 | _result = (bool )wxListEvent_Cancelled(_arg0); |
cf694132 RD |
2748 | |
2749 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2750 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2751 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2752 | return _resultobj; |
2753 | } | |
2754 | ||
f6bcfd97 BP |
2755 | #define wxListEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) |
2756 | static PyObject *_wrap_wxListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2757 | PyObject * _resultobj; |
f6bcfd97 | 2758 | wxPoint * _result; |
8ab979d7 | 2759 | wxListEvent * _arg0; |
1d99702e | 2760 | PyObject * _argo0 = 0; |
efc5f224 | 2761 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 2762 | char _ptemp[128]; |
8ab979d7 RD |
2763 | |
2764 | self = self; | |
f6bcfd97 | 2765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetPoint",_kwnames,&_argo0)) |
8ab979d7 | 2766 | return NULL; |
1d99702e RD |
2767 | if (_argo0) { |
2768 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2769 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2770 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetPoint. Expected _wxListEvent_p."); |
8ab979d7 RD |
2771 | return NULL; |
2772 | } | |
2773 | } | |
cf694132 RD |
2774 | { |
2775 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2776 | _result = new wxPoint (wxListEvent_GetPoint(_arg0)); |
cf694132 RD |
2777 | |
2778 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2779 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2780 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
2781 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
2782 | return _resultobj; |
2783 | } | |
2784 | ||
f6bcfd97 BP |
2785 | #define wxListEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) |
2786 | static PyObject *_wrap_wxListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2787 | PyObject * _resultobj; |
f6bcfd97 | 2788 | wxString * _result; |
af309447 | 2789 | wxListEvent * _arg0; |
1d99702e | 2790 | PyObject * _argo0 = 0; |
f6bcfd97 | 2791 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2792 | |
2793 | self = self; | |
f6bcfd97 | 2794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetLabel",_kwnames,&_argo0)) |
af309447 | 2795 | return NULL; |
1d99702e RD |
2796 | if (_argo0) { |
2797 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2798 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2799 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetLabel. Expected _wxListEvent_p."); |
af309447 RD |
2800 | return NULL; |
2801 | } | |
2802 | } | |
cf694132 RD |
2803 | { |
2804 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
2805 | const wxString & _result_ref = wxListEvent_GetLabel(_arg0); |
2806 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
2807 | |
2808 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2809 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2810 | }{ |
2811 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2812 | } | |
af309447 RD |
2813 | return _resultobj; |
2814 | } | |
2815 | ||
f6bcfd97 BP |
2816 | #define wxListEvent_GetText(_swigobj) (_swigobj->GetText()) |
2817 | static PyObject *_wrap_wxListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2818 | PyObject * _resultobj; |
f6bcfd97 | 2819 | wxString * _result; |
8ab979d7 | 2820 | wxListEvent * _arg0; |
1d99702e | 2821 | PyObject * _argo0 = 0; |
efc5f224 | 2822 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2823 | |
2824 | self = self; | |
f6bcfd97 | 2825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetText",_kwnames,&_argo0)) |
8ab979d7 | 2826 | return NULL; |
1d99702e RD |
2827 | if (_argo0) { |
2828 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2829 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2830 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetText. Expected _wxListEvent_p."); |
8ab979d7 RD |
2831 | return NULL; |
2832 | } | |
2833 | } | |
cf694132 RD |
2834 | { |
2835 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
2836 | const wxString & _result_ref = wxListEvent_GetText(_arg0); |
2837 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
2838 | |
2839 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2840 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2841 | }{ |
2842 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2843 | } | |
8ab979d7 RD |
2844 | return _resultobj; |
2845 | } | |
2846 | ||
f6bcfd97 BP |
2847 | #define wxListEvent_GetImage(_swigobj) (_swigobj->GetImage()) |
2848 | static PyObject *_wrap_wxListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2849 | PyObject * _resultobj; |
f6bcfd97 | 2850 | int _result; |
af309447 | 2851 | wxListEvent * _arg0; |
1d99702e | 2852 | PyObject * _argo0 = 0; |
f6bcfd97 | 2853 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2854 | |
2855 | self = self; | |
f6bcfd97 | 2856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetImage",_kwnames,&_argo0)) |
af309447 | 2857 | return NULL; |
1d99702e RD |
2858 | if (_argo0) { |
2859 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2860 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2861 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetImage. Expected _wxListEvent_p."); |
af309447 RD |
2862 | return NULL; |
2863 | } | |
2864 | } | |
cf694132 RD |
2865 | { |
2866 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2867 | _result = (int )wxListEvent_GetImage(_arg0); |
cf694132 RD |
2868 | |
2869 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2870 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2871 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2872 | return _resultobj; |
2873 | } | |
2874 | ||
f6bcfd97 BP |
2875 | #define wxListEvent_GetData(_swigobj) (_swigobj->GetData()) |
2876 | static PyObject *_wrap_wxListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2877 | PyObject * _resultobj; |
f6bcfd97 | 2878 | long _result; |
8ab979d7 | 2879 | wxListEvent * _arg0; |
1d99702e | 2880 | PyObject * _argo0 = 0; |
efc5f224 | 2881 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2882 | |
2883 | self = self; | |
f6bcfd97 | 2884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetData",_kwnames,&_argo0)) |
8ab979d7 | 2885 | return NULL; |
1d99702e RD |
2886 | if (_argo0) { |
2887 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2888 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2889 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetData. Expected _wxListEvent_p."); |
8ab979d7 RD |
2890 | return NULL; |
2891 | } | |
2892 | } | |
cf694132 RD |
2893 | { |
2894 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2895 | _result = (long )wxListEvent_GetData(_arg0); |
cf694132 RD |
2896 | |
2897 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2898 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2899 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2900 | return _resultobj; |
2901 | } | |
2902 | ||
f6bcfd97 BP |
2903 | #define wxListEvent_GetMask(_swigobj) (_swigobj->GetMask()) |
2904 | static PyObject *_wrap_wxListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2905 | PyObject * _resultobj; |
f6bcfd97 | 2906 | long _result; |
af309447 | 2907 | wxListEvent * _arg0; |
1d99702e | 2908 | PyObject * _argo0 = 0; |
f6bcfd97 | 2909 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2910 | |
2911 | self = self; | |
f6bcfd97 | 2912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetMask",_kwnames,&_argo0)) |
af309447 | 2913 | return NULL; |
1d99702e RD |
2914 | if (_argo0) { |
2915 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2916 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2917 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetMask. Expected _wxListEvent_p."); |
af309447 RD |
2918 | return NULL; |
2919 | } | |
2920 | } | |
cf694132 RD |
2921 | { |
2922 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2923 | _result = (long )wxListEvent_GetMask(_arg0); |
cf694132 RD |
2924 | |
2925 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2926 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2927 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2928 | return _resultobj; |
2929 | } | |
2930 | ||
f6bcfd97 BP |
2931 | #define wxListEvent_GetItem(_swigobj) (_swigobj->GetItem()) |
2932 | static PyObject *_wrap_wxListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2933 | PyObject * _resultobj; |
2934 | wxListItem * _result; | |
2935 | wxListEvent * _arg0; | |
1d99702e | 2936 | PyObject * _argo0 = 0; |
efc5f224 | 2937 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2938 | |
2939 | self = self; | |
f6bcfd97 | 2940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetItem",_kwnames,&_argo0)) |
8ab979d7 | 2941 | return NULL; |
1d99702e RD |
2942 | if (_argo0) { |
2943 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2944 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2945 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetItem. Expected _wxListEvent_p."); |
8ab979d7 RD |
2946 | return NULL; |
2947 | } | |
2948 | } | |
cf694132 RD |
2949 | { |
2950 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
2951 | const wxListItem & _result_ref = wxListEvent_GetItem(_arg0); |
2952 | _result = (wxListItem *) &_result_ref; | |
cf694132 RD |
2953 | |
2954 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2955 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 2956 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
2957 | return _resultobj; |
2958 | } | |
2959 | ||
cd096152 RD |
2960 | static void *SwigwxPyListCtrlTowxControl(void *ptr) { |
2961 | wxPyListCtrl *src; | |
8ab979d7 | 2962 | wxControl *dest; |
cd096152 | 2963 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
2964 | dest = (wxControl *) src; |
2965 | return (void *) dest; | |
2966 | } | |
2967 | ||
cd096152 RD |
2968 | static void *SwigwxPyListCtrlTowxWindow(void *ptr) { |
2969 | wxPyListCtrl *src; | |
8ab979d7 | 2970 | wxWindow *dest; |
cd096152 | 2971 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
2972 | dest = (wxWindow *) src; |
2973 | return (void *) dest; | |
2974 | } | |
2975 | ||
cd096152 RD |
2976 | static void *SwigwxPyListCtrlTowxEvtHandler(void *ptr) { |
2977 | wxPyListCtrl *src; | |
8ab979d7 | 2978 | wxEvtHandler *dest; |
cd096152 | 2979 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
2980 | dest = (wxEvtHandler *) src; |
2981 | return (void *) dest; | |
2982 | } | |
2983 | ||
cd096152 RD |
2984 | static void *SwigwxPyListCtrlTowxObject(void *ptr) { |
2985 | wxPyListCtrl *src; | |
9df61a29 | 2986 | wxObject *dest; |
cd096152 | 2987 | src = (wxPyListCtrl *) ptr; |
9df61a29 RD |
2988 | dest = (wxObject *) src; |
2989 | return (void *) dest; | |
2990 | } | |
2991 | ||
cd096152 | 2992 | #define new_wxListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 2993 | static PyObject *_wrap_new_wxListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 2994 | PyObject * _resultobj; |
cd096152 | 2995 | wxPyListCtrl * _result; |
8ab979d7 | 2996 | wxWindow * _arg0; |
cd096152 | 2997 | wxWindowID _arg1 = (wxWindowID ) -1; |
b68dc582 RD |
2998 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
2999 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2c8a649d | 3000 | long _arg4 = (long ) (wxLC_ICON); |
b68dc582 | 3001 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
3002 | char * _arg6 = (char *) "listCtrl"; |
3003 | PyObject * _argo0 = 0; | |
2f90df85 RD |
3004 | wxPoint temp; |
3005 | PyObject * _obj2 = 0; | |
3006 | wxSize temp0; | |
3007 | PyObject * _obj3 = 0; | |
1d99702e | 3008 | PyObject * _argo5 = 0; |
efc5f224 | 3009 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
3010 | char _ptemp[128]; |
3011 | ||
3012 | self = self; | |
cd096152 | 3013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) |
8ab979d7 | 3014 | return NULL; |
1d99702e RD |
3015 | if (_argo0) { |
3016 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3017 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3018 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListCtrl. Expected _wxWindow_p."); |
3019 | return NULL; | |
3020 | } | |
3021 | } | |
2f90df85 RD |
3022 | if (_obj2) |
3023 | { | |
3024 | _arg2 = &temp; | |
3025 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 3026 | return NULL; |
2f90df85 RD |
3027 | } |
3028 | if (_obj3) | |
3029 | { | |
3030 | _arg3 = &temp0; | |
3031 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 3032 | return NULL; |
2f90df85 | 3033 | } |
1d99702e RD |
3034 | if (_argo5) { |
3035 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
3036 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
8ab979d7 RD |
3037 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListCtrl. Expected _wxValidator_p."); |
3038 | return NULL; | |
3039 | } | |
3040 | } | |
cf694132 RD |
3041 | { |
3042 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3043 | _result = (wxPyListCtrl *)new_wxListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); |
cf694132 RD |
3044 | |
3045 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3046 | if (PyErr_Occurred()) return NULL; |
1d99702e | 3047 | } if (_result) { |
cd096152 | 3048 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyListCtrl_p"); |
1d99702e RD |
3049 | _resultobj = Py_BuildValue("s",_ptemp); |
3050 | } else { | |
3051 | Py_INCREF(Py_None); | |
3052 | _resultobj = Py_None; | |
3053 | } | |
8ab979d7 RD |
3054 | return _resultobj; |
3055 | } | |
3056 | ||
aa2a5b86 RD |
3057 | #define new_wxPreListCtrl() (new wxPyListCtrl()) |
3058 | static PyObject *_wrap_new_wxPreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3059 | PyObject * _resultobj; | |
3060 | wxPyListCtrl * _result; | |
3061 | char *_kwnames[] = { NULL }; | |
3062 | char _ptemp[128]; | |
3063 | ||
3064 | self = self; | |
3065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListCtrl",_kwnames)) | |
3066 | return NULL; | |
3067 | { | |
3068 | wxPy_BEGIN_ALLOW_THREADS; | |
3069 | _result = (wxPyListCtrl *)new_wxPreListCtrl(); | |
3070 | ||
3071 | wxPy_END_ALLOW_THREADS; | |
3072 | if (PyErr_Occurred()) return NULL; | |
3073 | } if (_result) { | |
3074 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyListCtrl_p"); | |
3075 | _resultobj = Py_BuildValue("s",_ptemp); | |
3076 | } else { | |
3077 | Py_INCREF(Py_None); | |
3078 | _resultobj = Py_None; | |
3079 | } | |
3080 | return _resultobj; | |
3081 | } | |
3082 | ||
3083 | #define wxListCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
3084 | static PyObject *_wrap_wxListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3085 | PyObject * _resultobj; | |
3086 | bool _result; | |
3087 | wxPyListCtrl * _arg0; | |
3088 | wxWindow * _arg1; | |
3089 | wxWindowID _arg2 = (wxWindowID ) -1; | |
3090 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
3091 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
3092 | long _arg5 = (long ) (wxLC_ICON); | |
3093 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
3094 | char * _arg7 = (char *) "listCtrl"; | |
3095 | PyObject * _argo0 = 0; | |
3096 | PyObject * _argo1 = 0; | |
3097 | wxPoint temp; | |
3098 | PyObject * _obj3 = 0; | |
3099 | wxSize temp0; | |
3100 | PyObject * _obj4 = 0; | |
3101 | PyObject * _argo6 = 0; | |
3102 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
3103 | ||
3104 | self = self; | |
3105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOs:wxListCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
3106 | return NULL; | |
3107 | if (_argo0) { | |
3108 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3109 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3110 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Create. Expected _wxPyListCtrl_p."); | |
3111 | return NULL; | |
3112 | } | |
3113 | } | |
3114 | if (_argo1) { | |
3115 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3116 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3117 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_Create. Expected _wxWindow_p."); | |
3118 | return NULL; | |
3119 | } | |
3120 | } | |
3121 | if (_obj3) | |
3122 | { | |
3123 | _arg3 = &temp; | |
3124 | if (! wxPoint_helper(_obj3, &_arg3)) | |
3125 | return NULL; | |
3126 | } | |
3127 | if (_obj4) | |
3128 | { | |
3129 | _arg4 = &temp0; | |
3130 | if (! wxSize_helper(_obj4, &_arg4)) | |
3131 | return NULL; | |
3132 | } | |
3133 | if (_argo6) { | |
3134 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
3135 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
3136 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxListCtrl_Create. Expected _wxValidator_p."); | |
3137 | return NULL; | |
3138 | } | |
3139 | } | |
3140 | { | |
3141 | wxPy_BEGIN_ALLOW_THREADS; | |
3142 | _result = (bool )wxListCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
3143 | ||
3144 | wxPy_END_ALLOW_THREADS; | |
3145 | if (PyErr_Occurred()) return NULL; | |
3146 | } _resultobj = Py_BuildValue("i",_result); | |
3147 | return _resultobj; | |
3148 | } | |
3149 | ||
cd096152 RD |
3150 | #define wxListCtrl__setSelf(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setSelf(_swigarg0,_swigarg1)) |
3151 | static PyObject *_wrap_wxListCtrl__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3152 | PyObject * _resultobj; |
cd096152 RD |
3153 | wxPyListCtrl * _arg0; |
3154 | PyObject * _arg1; | |
3155 | PyObject * _arg2; | |
1d99702e | 3156 | PyObject * _argo0 = 0; |
cd096152 RD |
3157 | PyObject * _obj1 = 0; |
3158 | PyObject * _obj2 = 0; | |
3159 | char *_kwnames[] = { "self","self","_class", NULL }; | |
8ab979d7 RD |
3160 | |
3161 | self = self; | |
cd096152 | 3162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxListCtrl__setSelf",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 3163 | return NULL; |
1d99702e RD |
3164 | if (_argo0) { |
3165 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3166 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3167 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl__setSelf. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3168 | return NULL; |
3169 | } | |
3170 | } | |
cd096152 RD |
3171 | { |
3172 | _arg1 = _obj1; | |
3173 | } | |
3174 | { | |
3175 | _arg2 = _obj2; | |
3176 | } | |
cf694132 RD |
3177 | { |
3178 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3179 | wxListCtrl__setSelf(_arg0,_arg1,_arg2); |
cf694132 RD |
3180 | |
3181 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3182 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
3183 | } Py_INCREF(Py_None); |
3184 | _resultobj = Py_None; | |
8ab979d7 RD |
3185 | return _resultobj; |
3186 | } | |
3187 | ||
cd096152 RD |
3188 | #define wxListCtrl_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) |
3189 | static PyObject *_wrap_wxListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c4165ad | 3190 | PyObject * _resultobj; |
cd096152 RD |
3191 | bool _result; |
3192 | wxPyListCtrl * _arg0; | |
3193 | wxColour * _arg1; | |
9c4165ad | 3194 | PyObject * _argo0 = 0; |
cd096152 RD |
3195 | wxColour temp; |
3196 | PyObject * _obj1 = 0; | |
3197 | char *_kwnames[] = { "self","col", NULL }; | |
9c4165ad RD |
3198 | |
3199 | self = self; | |
cd096152 | 3200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
9c4165ad RD |
3201 | return NULL; |
3202 | if (_argo0) { | |
3203 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3204 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3205 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetForegroundColour. Expected _wxPyListCtrl_p."); | |
9c4165ad RD |
3206 | return NULL; |
3207 | } | |
3208 | } | |
cd096152 RD |
3209 | { |
3210 | _arg1 = &temp; | |
3211 | if (! wxColour_helper(_obj1, &_arg1)) | |
3212 | return NULL; | |
3213 | } | |
3214 | { | |
3215 | wxPy_BEGIN_ALLOW_THREADS; | |
3216 | _result = (bool )wxListCtrl_SetForegroundColour(_arg0,*_arg1); | |
3217 | ||
3218 | wxPy_END_ALLOW_THREADS; | |
3219 | if (PyErr_Occurred()) return NULL; | |
3220 | } _resultobj = Py_BuildValue("i",_result); | |
3221 | return _resultobj; | |
3222 | } | |
3223 | ||
3224 | #define wxListCtrl_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
3225 | static PyObject *_wrap_wxListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3226 | PyObject * _resultobj; | |
3227 | bool _result; | |
3228 | wxPyListCtrl * _arg0; | |
3229 | wxColour * _arg1; | |
3230 | PyObject * _argo0 = 0; | |
3231 | wxColour temp; | |
3232 | PyObject * _obj1 = 0; | |
3233 | char *_kwnames[] = { "self","col", NULL }; | |
3234 | ||
3235 | self = self; | |
3236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
3237 | return NULL; | |
3238 | if (_argo0) { | |
3239 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3240 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3241 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetBackgroundColour. Expected _wxPyListCtrl_p."); | |
9c4165ad RD |
3242 | return NULL; |
3243 | } | |
3244 | } | |
cd096152 RD |
3245 | { |
3246 | _arg1 = &temp; | |
3247 | if (! wxColour_helper(_obj1, &_arg1)) | |
3248 | return NULL; | |
3249 | } | |
9c4165ad RD |
3250 | { |
3251 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3252 | _result = (bool )wxListCtrl_SetBackgroundColour(_arg0,*_arg1); |
9c4165ad RD |
3253 | |
3254 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3255 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3256 | } _resultobj = Py_BuildValue("i",_result); |
9c4165ad RD |
3257 | return _resultobj; |
3258 | } | |
3259 | ||
cd096152 RD |
3260 | #define wxListCtrl_GetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetColumn(_swigarg0,_swigarg1)) |
3261 | static PyObject *_wrap_wxListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3262 | PyObject * _resultobj; |
3263 | bool _result; | |
cd096152 RD |
3264 | wxPyListCtrl * _arg0; |
3265 | int _arg1; | |
3266 | wxListItem * _arg2; | |
1d99702e | 3267 | PyObject * _argo0 = 0; |
cd096152 RD |
3268 | PyObject * _argo2 = 0; |
3269 | char *_kwnames[] = { "self","col","item", NULL }; | |
8ab979d7 RD |
3270 | |
3271 | self = self; | |
cd096152 | 3272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_GetColumn",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 3273 | return NULL; |
1d99702e RD |
3274 | if (_argo0) { |
3275 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3276 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3277 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumn. Expected _wxPyListCtrl_p."); | |
3278 | return NULL; | |
3279 | } | |
3280 | } | |
3281 | if (_argo2) { | |
3282 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3283 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
3284 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_GetColumn. Expected _wxListItem_p."); | |
8ab979d7 RD |
3285 | return NULL; |
3286 | } | |
3287 | } | |
cf694132 RD |
3288 | { |
3289 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3290 | _result = (bool )wxListCtrl_GetColumn(_arg0,_arg1,*_arg2); |
cf694132 RD |
3291 | |
3292 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3293 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3294 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3295 | return _resultobj; |
3296 | } | |
3297 | ||
cd096152 RD |
3298 | #define wxListCtrl_SetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumn(_swigarg0,_swigarg1)) |
3299 | static PyObject *_wrap_wxListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3300 | PyObject * _resultobj; |
3301 | bool _result; | |
cd096152 RD |
3302 | wxPyListCtrl * _arg0; |
3303 | int _arg1; | |
3304 | wxListItem * _arg2; | |
1d99702e | 3305 | PyObject * _argo0 = 0; |
cd096152 RD |
3306 | PyObject * _argo2 = 0; |
3307 | char *_kwnames[] = { "self","col","item", NULL }; | |
8ab979d7 RD |
3308 | |
3309 | self = self; | |
cd096152 | 3310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_SetColumn",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 3311 | return NULL; |
1d99702e RD |
3312 | if (_argo0) { |
3313 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3314 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3315 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumn. Expected _wxPyListCtrl_p."); | |
3316 | return NULL; | |
3317 | } | |
3318 | } | |
3319 | if (_argo2) { | |
3320 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3321 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
3322 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_SetColumn. Expected _wxListItem_p."); | |
8ab979d7 RD |
3323 | return NULL; |
3324 | } | |
3325 | } | |
cf694132 RD |
3326 | { |
3327 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3328 | _result = (bool )wxListCtrl_SetColumn(_arg0,_arg1,*_arg2); |
cf694132 RD |
3329 | |
3330 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3331 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3332 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3333 | return _resultobj; |
3334 | } | |
3335 | ||
cd096152 RD |
3336 | #define wxListCtrl_GetColumnWidth(_swigobj,_swigarg0) (_swigobj->GetColumnWidth(_swigarg0)) |
3337 | static PyObject *_wrap_wxListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3338 | PyObject * _resultobj; |
cd096152 RD |
3339 | int _result; |
3340 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3341 | int _arg1; |
1d99702e | 3342 | PyObject * _argo0 = 0; |
efc5f224 | 3343 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
3344 | |
3345 | self = self; | |
cd096152 | 3346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetColumnWidth",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3347 | return NULL; |
1d99702e RD |
3348 | if (_argo0) { |
3349 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3350 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3351 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnWidth. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3352 | return NULL; |
3353 | } | |
3354 | } | |
cf694132 RD |
3355 | { |
3356 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3357 | _result = (int )wxListCtrl_GetColumnWidth(_arg0,_arg1); |
cf694132 RD |
3358 | |
3359 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3360 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3361 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3362 | return _resultobj; |
3363 | } | |
3364 | ||
cd096152 RD |
3365 | #define wxListCtrl_SetColumnWidth(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnWidth(_swigarg0,_swigarg1)) |
3366 | static PyObject *_wrap_wxListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3367 | PyObject * _resultobj; |
3368 | bool _result; | |
cd096152 RD |
3369 | wxPyListCtrl * _arg0; |
3370 | int _arg1; | |
3371 | int _arg2; | |
1d99702e | 3372 | PyObject * _argo0 = 0; |
cd096152 | 3373 | char *_kwnames[] = { "self","col","width", NULL }; |
8ab979d7 RD |
3374 | |
3375 | self = self; | |
cd096152 | 3376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_SetColumnWidth",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3377 | return NULL; |
1d99702e RD |
3378 | if (_argo0) { |
3379 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3380 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumnWidth. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3382 | return NULL; |
3383 | } | |
3384 | } | |
cf694132 RD |
3385 | { |
3386 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3387 | _result = (bool )wxListCtrl_SetColumnWidth(_arg0,_arg1,_arg2); |
cf694132 RD |
3388 | |
3389 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3390 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3391 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3392 | return _resultobj; |
3393 | } | |
3394 | ||
cd096152 RD |
3395 | #define wxListCtrl_GetCountPerPage(_swigobj) (_swigobj->GetCountPerPage()) |
3396 | static PyObject *_wrap_wxListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3397 | PyObject * _resultobj; |
cd096152 RD |
3398 | int _result; |
3399 | wxPyListCtrl * _arg0; | |
1d99702e | 3400 | PyObject * _argo0 = 0; |
efc5f224 | 3401 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3402 | |
3403 | self = self; | |
cd096152 | 3404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetCountPerPage",_kwnames,&_argo0)) |
8ab979d7 | 3405 | return NULL; |
1d99702e RD |
3406 | if (_argo0) { |
3407 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3408 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3409 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetCountPerPage. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3410 | return NULL; |
3411 | } | |
3412 | } | |
cf694132 RD |
3413 | { |
3414 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3415 | _result = (int )wxListCtrl_GetCountPerPage(_arg0); |
cf694132 RD |
3416 | |
3417 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3418 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3419 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3420 | return _resultobj; |
3421 | } | |
3422 | ||
cd096152 RD |
3423 | static wxListItem * wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col) { |
3424 | wxListItem* info = new wxListItem; | |
3425 | info->m_itemId = itemId; | |
3426 | info->m_col = col; | |
3427 | info->m_mask = 0xFFFF; | |
3428 | self->GetItem(*info); | |
3429 | return info; | |
3430 | } | |
3431 | static PyObject *_wrap_wxListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3432 | PyObject * _resultobj; |
cd096152 RD |
3433 | wxListItem * _result; |
3434 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3435 | long _arg1; |
cd096152 | 3436 | int _arg2 = (int ) 0; |
1d99702e | 3437 | PyObject * _argo0 = 0; |
cd096152 | 3438 | char *_kwnames[] = { "self","itemId","col", NULL }; |
8ab979d7 RD |
3439 | |
3440 | self = self; | |
cd096152 | 3441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItem",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3442 | return NULL; |
1d99702e RD |
3443 | if (_argo0) { |
3444 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3445 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3446 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3447 | return NULL; |
3448 | } | |
3449 | } | |
cf694132 RD |
3450 | { |
3451 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3452 | _result = (wxListItem *)wxPyListCtrl_GetItem(_arg0,_arg1,_arg2); |
cf694132 RD |
3453 | |
3454 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3455 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3456 | }{ _resultobj = wxPyMake_wxObject(_result); } |
be4d9c1f RD |
3457 | return _resultobj; |
3458 | } | |
3459 | ||
cd096152 RD |
3460 | #define wxListCtrl_SetItem(_swigobj,_swigarg0) (_swigobj->SetItem(_swigarg0)) |
3461 | static PyObject *_wrap_wxListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3462 | PyObject * _resultobj; |
3463 | bool _result; | |
cd096152 RD |
3464 | wxPyListCtrl * _arg0; |
3465 | wxListItem * _arg1; | |
1d99702e | 3466 | PyObject * _argo0 = 0; |
cd096152 RD |
3467 | PyObject * _argo1 = 0; |
3468 | char *_kwnames[] = { "self","info", NULL }; | |
8ab979d7 RD |
3469 | |
3470 | self = self; | |
cd096152 | 3471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3472 | return NULL; |
1d99702e RD |
3473 | if (_argo0) { |
3474 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3475 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3476 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItem. Expected _wxPyListCtrl_p."); | |
3477 | return NULL; | |
3478 | } | |
3479 | } | |
3480 | if (_argo1) { | |
3481 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3482 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
3483 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetItem. Expected _wxListItem_p."); | |
8ab979d7 RD |
3484 | return NULL; |
3485 | } | |
3486 | } | |
cf694132 RD |
3487 | { |
3488 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3489 | _result = (bool )wxListCtrl_SetItem(_arg0,*_arg1); |
cf694132 RD |
3490 | |
3491 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3492 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3493 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3494 | return _resultobj; |
3495 | } | |
3496 | ||
cd096152 RD |
3497 | #define wxListCtrl_SetStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
3498 | static PyObject *_wrap_wxListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3499 | PyObject * _resultobj; |
3500 | long _result; | |
cd096152 | 3501 | wxPyListCtrl * _arg0; |
8ab979d7 | 3502 | long _arg1; |
cd096152 RD |
3503 | int _arg2; |
3504 | wxString * _arg3; | |
3505 | int _arg4 = (int ) -1; | |
1d99702e | 3506 | PyObject * _argo0 = 0; |
cd096152 RD |
3507 | PyObject * _obj3 = 0; |
3508 | char *_kwnames[] = { "self","index","col","label","imageId", NULL }; | |
8ab979d7 RD |
3509 | |
3510 | self = self; | |
cd096152 | 3511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OliO|i:wxListCtrl_SetStringItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) |
8ab979d7 | 3512 | return NULL; |
1d99702e RD |
3513 | if (_argo0) { |
3514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetStringItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3517 | return NULL; |
3518 | } | |
3519 | } | |
3520 | { | |
2cd2fac8 RD |
3521 | #if PYTHON_API_VERSION >= 1009 |
3522 | char* tmpPtr; int tmpSize; | |
cd096152 | 3523 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { |
7a446686 | 3524 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
3525 | return NULL; |
3526 | } | |
cd096152 | 3527 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) |
2cd2fac8 | 3528 | return NULL; |
cd096152 | 3529 | _arg3 = new wxString(tmpPtr, tmpSize); |
2cd2fac8 | 3530 | #else |
cd096152 | 3531 | if (!PyString_Check(_obj3)) { |
8ab979d7 RD |
3532 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
3533 | return NULL; | |
3534 | } | |
cd096152 | 3535 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
2cd2fac8 | 3536 | #endif |
8ab979d7 | 3537 | } |
cf694132 RD |
3538 | { |
3539 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3540 | _result = (long )wxListCtrl_SetStringItem(_arg0,_arg1,_arg2,*_arg3,_arg4); |
cf694132 RD |
3541 | |
3542 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3543 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3544 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 | 3545 | { |
cd096152 RD |
3546 | if (_obj3) |
3547 | delete _arg3; | |
8ab979d7 RD |
3548 | } |
3549 | return _resultobj; | |
3550 | } | |
3551 | ||
cd096152 RD |
3552 | #define wxListCtrl_GetItemState(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemState(_swigarg0,_swigarg1)) |
3553 | static PyObject *_wrap_wxListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3554 | PyObject * _resultobj; |
cd096152 RD |
3555 | int _result; |
3556 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
3557 | long _arg1; |
3558 | long _arg2; | |
1d99702e | 3559 | PyObject * _argo0 = 0; |
cd096152 | 3560 | char *_kwnames[] = { "self","item","stateMask", NULL }; |
8ab979d7 RD |
3561 | |
3562 | self = self; | |
cd096152 | 3563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_GetItemState",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3564 | return NULL; |
1d99702e RD |
3565 | if (_argo0) { |
3566 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3567 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3568 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemState. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3569 | return NULL; |
3570 | } | |
3571 | } | |
cf694132 RD |
3572 | { |
3573 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3574 | _result = (int )wxListCtrl_GetItemState(_arg0,_arg1,_arg2); |
cf694132 RD |
3575 | |
3576 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3577 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3578 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3579 | return _resultobj; |
3580 | } | |
3581 | ||
cd096152 RD |
3582 | #define wxListCtrl_SetItemState(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemState(_swigarg0,_swigarg1,_swigarg2)) |
3583 | static PyObject *_wrap_wxListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3584 | PyObject * _resultobj; |
cd096152 RD |
3585 | bool _result; |
3586 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3587 | long _arg1; |
cd096152 RD |
3588 | long _arg2; |
3589 | long _arg3; | |
1d99702e | 3590 | PyObject * _argo0 = 0; |
cd096152 | 3591 | char *_kwnames[] = { "self","item","state","stateMask", NULL }; |
8ab979d7 RD |
3592 | |
3593 | self = self; | |
cd096152 | 3594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxListCtrl_SetItemState",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 3595 | return NULL; |
1d99702e RD |
3596 | if (_argo0) { |
3597 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3598 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3599 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemState. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3600 | return NULL; |
3601 | } | |
3602 | } | |
cf694132 RD |
3603 | { |
3604 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3605 | _result = (bool )wxListCtrl_SetItemState(_arg0,_arg1,_arg2,_arg3); |
cf694132 RD |
3606 | |
3607 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3608 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3609 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3610 | return _resultobj; |
3611 | } | |
3612 | ||
cd096152 RD |
3613 | #define wxListCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) |
3614 | static PyObject *_wrap_wxListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3615 | PyObject * _resultobj; |
3616 | bool _result; | |
cd096152 RD |
3617 | wxPyListCtrl * _arg0; |
3618 | long _arg1; | |
3619 | int _arg2; | |
3620 | int _arg3; | |
1d99702e | 3621 | PyObject * _argo0 = 0; |
cd096152 | 3622 | char *_kwnames[] = { "self","item","image","selImage", NULL }; |
8ab979d7 RD |
3623 | |
3624 | self = self; | |
cd096152 | 3625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olii:wxListCtrl_SetItemImage",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 3626 | return NULL; |
1d99702e RD |
3627 | if (_argo0) { |
3628 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3629 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3630 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemImage. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3631 | return NULL; |
3632 | } | |
3633 | } | |
cf694132 RD |
3634 | { |
3635 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3636 | _result = (bool )wxListCtrl_SetItemImage(_arg0,_arg1,_arg2,_arg3); |
cf694132 RD |
3637 | |
3638 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3639 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3640 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3641 | return _resultobj; |
3642 | } | |
3643 | ||
cd096152 RD |
3644 | #define wxListCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) |
3645 | static PyObject *_wrap_wxListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3646 | PyObject * _resultobj; |
cd096152 RD |
3647 | wxString * _result; |
3648 | wxPyListCtrl * _arg0; | |
3649 | long _arg1; | |
1d99702e | 3650 | PyObject * _argo0 = 0; |
cd096152 | 3651 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3652 | |
3653 | self = self; | |
cd096152 | 3654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemText",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3655 | return NULL; |
1d99702e RD |
3656 | if (_argo0) { |
3657 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3658 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3659 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemText. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3660 | return NULL; |
3661 | } | |
3662 | } | |
cf694132 RD |
3663 | { |
3664 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3665 | _result = new wxString (wxListCtrl_GetItemText(_arg0,_arg1)); |
cf694132 RD |
3666 | |
3667 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3668 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
3669 | }{ |
3670 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3671 | } | |
3672 | { | |
3673 | delete _result; | |
3674 | } | |
8ab979d7 RD |
3675 | return _resultobj; |
3676 | } | |
3677 | ||
cd096152 RD |
3678 | #define wxListCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) |
3679 | static PyObject *_wrap_wxListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3680 | PyObject * _resultobj; |
cd096152 RD |
3681 | wxPyListCtrl * _arg0; |
3682 | long _arg1; | |
3683 | wxString * _arg2; | |
1d99702e | 3684 | PyObject * _argo0 = 0; |
cd096152 RD |
3685 | PyObject * _obj2 = 0; |
3686 | char *_kwnames[] = { "self","item","str", NULL }; | |
8ab979d7 RD |
3687 | |
3688 | self = self; | |
cd096152 | 3689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemText",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 3690 | return NULL; |
1d99702e RD |
3691 | if (_argo0) { |
3692 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3693 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3694 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemText. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3695 | return NULL; |
3696 | } | |
3697 | } | |
cf694132 | 3698 | { |
cd096152 RD |
3699 | #if PYTHON_API_VERSION >= 1009 |
3700 | char* tmpPtr; int tmpSize; | |
3701 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
3702 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8ab979d7 | 3703 | return NULL; |
cd096152 RD |
3704 | } |
3705 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3706 | return NULL; | |
3707 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3708 | #else | |
3709 | if (!PyString_Check(_obj2)) { | |
3710 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8ab979d7 | 3711 | return NULL; |
8ab979d7 | 3712 | } |
cd096152 RD |
3713 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
3714 | #endif | |
3715 | } | |
cf694132 RD |
3716 | { |
3717 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3718 | wxListCtrl_SetItemText(_arg0,_arg1,*_arg2); |
cf694132 RD |
3719 | |
3720 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3721 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
3722 | } Py_INCREF(Py_None); |
3723 | _resultobj = Py_None; | |
3724 | { | |
3725 | if (_obj2) | |
3726 | delete _arg2; | |
3727 | } | |
8ab979d7 RD |
3728 | return _resultobj; |
3729 | } | |
3730 | ||
3731 | #define wxListCtrl_GetItemData(_swigobj,_swigarg0) (_swigobj->GetItemData(_swigarg0)) | |
efc5f224 | 3732 | static PyObject *_wrap_wxListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3733 | PyObject * _resultobj; |
3734 | long _result; | |
cd096152 | 3735 | wxPyListCtrl * _arg0; |
8ab979d7 | 3736 | long _arg1; |
1d99702e | 3737 | PyObject * _argo0 = 0; |
efc5f224 | 3738 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3739 | |
3740 | self = self; | |
efc5f224 | 3741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemData",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3742 | return NULL; |
1d99702e RD |
3743 | if (_argo0) { |
3744 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3745 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3746 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3747 | return NULL; |
3748 | } | |
3749 | } | |
cf694132 RD |
3750 | { |
3751 | wxPy_BEGIN_ALLOW_THREADS; | |
3752 | _result = (long )wxListCtrl_GetItemData(_arg0,_arg1); | |
3753 | ||
3754 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3755 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3756 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
3757 | return _resultobj; |
3758 | } | |
3759 | ||
cd096152 RD |
3760 | #define wxListCtrl_SetItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemData(_swigarg0,_swigarg1)) |
3761 | static PyObject *_wrap_wxListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3762 | PyObject * _resultobj; |
cd096152 RD |
3763 | bool _result; |
3764 | wxPyListCtrl * _arg0; | |
0699c864 | 3765 | long _arg1; |
cd096152 | 3766 | long _arg2; |
1d99702e | 3767 | PyObject * _argo0 = 0; |
cd096152 | 3768 | char *_kwnames[] = { "self","item","data", NULL }; |
8ab979d7 RD |
3769 | |
3770 | self = self; | |
cd096152 | 3771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_SetItemData",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3772 | return NULL; |
1d99702e RD |
3773 | if (_argo0) { |
3774 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3775 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3776 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3777 | return NULL; |
3778 | } | |
3779 | } | |
cf694132 RD |
3780 | { |
3781 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3782 | _result = (bool )wxListCtrl_SetItemData(_arg0,_arg1,_arg2); |
cf694132 RD |
3783 | |
3784 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3785 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3786 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3787 | return _resultobj; |
3788 | } | |
3789 | ||
cd096152 | 3790 | static wxPoint * wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item) { |
8ab979d7 RD |
3791 | wxPoint* pos = new wxPoint; |
3792 | self->GetItemPosition(item, *pos); | |
3793 | return pos; | |
3794 | } | |
efc5f224 | 3795 | static PyObject *_wrap_wxListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3796 | PyObject * _resultobj; |
3797 | wxPoint * _result; | |
cd096152 | 3798 | wxPyListCtrl * _arg0; |
8ab979d7 | 3799 | long _arg1; |
1d99702e | 3800 | PyObject * _argo0 = 0; |
efc5f224 | 3801 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3802 | char _ptemp[128]; |
3803 | ||
3804 | self = self; | |
efc5f224 | 3805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemPosition",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3806 | return NULL; |
1d99702e RD |
3807 | if (_argo0) { |
3808 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3809 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3810 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemPosition. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3811 | return NULL; |
3812 | } | |
3813 | } | |
cf694132 RD |
3814 | { |
3815 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3816 | _result = (wxPoint *)wxPyListCtrl_GetItemPosition(_arg0,_arg1); |
cf694132 RD |
3817 | |
3818 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3819 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3820 | } if (_result) { |
3821 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
3822 | _resultobj = Py_BuildValue("s",_ptemp); | |
3823 | } else { | |
3824 | Py_INCREF(Py_None); | |
3825 | _resultobj = Py_None; | |
3826 | } | |
8ab979d7 RD |
3827 | return _resultobj; |
3828 | } | |
3829 | ||
cd096152 | 3830 | static wxRect * wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code) { |
8ab979d7 RD |
3831 | wxRect* rect= new wxRect; |
3832 | self->GetItemRect(item, *rect, code); | |
3833 | return rect; | |
3834 | } | |
efc5f224 | 3835 | static PyObject *_wrap_wxListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3836 | PyObject * _resultobj; |
3837 | wxRect * _result; | |
cd096152 | 3838 | wxPyListCtrl * _arg0; |
8ab979d7 | 3839 | long _arg1; |
1d99702e RD |
3840 | int _arg2 = (int ) (wxLIST_RECT_BOUNDS); |
3841 | PyObject * _argo0 = 0; | |
efc5f224 | 3842 | char *_kwnames[] = { "self","item","code", NULL }; |
8ab979d7 RD |
3843 | char _ptemp[128]; |
3844 | ||
3845 | self = self; | |
efc5f224 | 3846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItemRect",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3847 | return NULL; |
1d99702e RD |
3848 | if (_argo0) { |
3849 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3850 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3851 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemRect. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3852 | return NULL; |
3853 | } | |
3854 | } | |
cf694132 RD |
3855 | { |
3856 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3857 | _result = (wxRect *)wxPyListCtrl_GetItemRect(_arg0,_arg1,_arg2); |
cf694132 RD |
3858 | |
3859 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3860 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3861 | } if (_result) { |
3862 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRect_p"); | |
3863 | _resultobj = Py_BuildValue("s",_ptemp); | |
3864 | } else { | |
3865 | Py_INCREF(Py_None); | |
3866 | _resultobj = Py_None; | |
3867 | } | |
8ab979d7 RD |
3868 | return _resultobj; |
3869 | } | |
3870 | ||
cd096152 RD |
3871 | #define wxListCtrl_SetItemPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemPosition(_swigarg0,_swigarg1)) |
3872 | static PyObject *_wrap_wxListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3873 | PyObject * _resultobj; |
cd096152 RD |
3874 | bool _result; |
3875 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3876 | long _arg1; |
cd096152 | 3877 | wxPoint * _arg2; |
1d99702e | 3878 | PyObject * _argo0 = 0; |
cd096152 RD |
3879 | wxPoint temp; |
3880 | PyObject * _obj2 = 0; | |
3881 | char *_kwnames[] = { "self","item","pos", NULL }; | |
8ab979d7 RD |
3882 | |
3883 | self = self; | |
cd096152 | 3884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemPosition",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 3885 | return NULL; |
1d99702e RD |
3886 | if (_argo0) { |
3887 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3888 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3889 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemPosition. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3890 | return NULL; |
3891 | } | |
3892 | } | |
cd096152 RD |
3893 | { |
3894 | _arg2 = &temp; | |
3895 | if (! wxPoint_helper(_obj2, &_arg2)) | |
3896 | return NULL; | |
3897 | } | |
cf694132 RD |
3898 | { |
3899 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3900 | _result = (bool )wxListCtrl_SetItemPosition(_arg0,_arg1,*_arg2); |
cf694132 RD |
3901 | |
3902 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3903 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3904 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3905 | return _resultobj; |
3906 | } | |
3907 | ||
3908 | #define wxListCtrl_GetItemCount(_swigobj) (_swigobj->GetItemCount()) | |
efc5f224 | 3909 | static PyObject *_wrap_wxListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3910 | PyObject * _resultobj; |
3911 | int _result; | |
cd096152 | 3912 | wxPyListCtrl * _arg0; |
1d99702e | 3913 | PyObject * _argo0 = 0; |
efc5f224 | 3914 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3915 | |
3916 | self = self; | |
efc5f224 | 3917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetItemCount",_kwnames,&_argo0)) |
8ab979d7 | 3918 | return NULL; |
1d99702e RD |
3919 | if (_argo0) { |
3920 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3921 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3922 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3923 | return NULL; |
3924 | } | |
3925 | } | |
cf694132 RD |
3926 | { |
3927 | wxPy_BEGIN_ALLOW_THREADS; | |
3928 | _result = (int )wxListCtrl_GetItemCount(_arg0); | |
3929 | ||
3930 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3931 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3932 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3933 | return _resultobj; |
3934 | } | |
3935 | ||
cd096152 RD |
3936 | #define wxListCtrl_GetColumnCount(_swigobj) (_swigobj->GetColumnCount()) |
3937 | static PyObject *_wrap_wxListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3938 | PyObject * _resultobj; | |
3939 | int _result; | |
3940 | wxPyListCtrl * _arg0; | |
3941 | PyObject * _argo0 = 0; | |
3942 | char *_kwnames[] = { "self", NULL }; | |
3943 | ||
3944 | self = self; | |
3945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetColumnCount",_kwnames,&_argo0)) | |
3946 | return NULL; | |
3947 | if (_argo0) { | |
3948 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3949 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnCount. Expected _wxPyListCtrl_p."); | |
3951 | return NULL; | |
3952 | } | |
3953 | } | |
3954 | { | |
3955 | wxPy_BEGIN_ALLOW_THREADS; | |
3956 | _result = (int )wxListCtrl_GetColumnCount(_arg0); | |
3957 | ||
3958 | wxPy_END_ALLOW_THREADS; | |
3959 | if (PyErr_Occurred()) return NULL; | |
3960 | } _resultobj = Py_BuildValue("i",_result); | |
3961 | return _resultobj; | |
3962 | } | |
3963 | ||
8ab979d7 | 3964 | #define wxListCtrl_GetItemSpacing(_swigobj,_swigarg0) (_swigobj->GetItemSpacing(_swigarg0)) |
efc5f224 | 3965 | static PyObject *_wrap_wxListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3966 | PyObject * _resultobj; |
3967 | int _result; | |
cd096152 | 3968 | wxPyListCtrl * _arg0; |
8ab979d7 | 3969 | bool _arg1; |
1d99702e | 3970 | PyObject * _argo0 = 0; |
8ab979d7 | 3971 | int tempbool1; |
efc5f224 | 3972 | char *_kwnames[] = { "self","isSmall", NULL }; |
8ab979d7 RD |
3973 | |
3974 | self = self; | |
efc5f224 | 3975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetItemSpacing",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3976 | return NULL; |
1d99702e RD |
3977 | if (_argo0) { |
3978 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3979 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3980 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemSpacing. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3981 | return NULL; |
3982 | } | |
3983 | } | |
3984 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
3985 | { |
3986 | wxPy_BEGIN_ALLOW_THREADS; | |
3987 | _result = (int )wxListCtrl_GetItemSpacing(_arg0,_arg1); | |
3988 | ||
3989 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3990 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3991 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3992 | return _resultobj; |
3993 | } | |
3994 | ||
cd096152 RD |
3995 | #define wxListCtrl_GetSelectedItemCount(_swigobj) (_swigobj->GetSelectedItemCount()) |
3996 | static PyObject *_wrap_wxListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3997 | PyObject * _resultobj; |
cd096152 RD |
3998 | int _result; |
3999 | wxPyListCtrl * _arg0; | |
1d99702e | 4000 | PyObject * _argo0 = 0; |
cd096152 | 4001 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4002 | |
4003 | self = self; | |
cd096152 | 4004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetSelectedItemCount",_kwnames,&_argo0)) |
8ab979d7 | 4005 | return NULL; |
1d99702e RD |
4006 | if (_argo0) { |
4007 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4008 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4009 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetSelectedItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4010 | return NULL; |
4011 | } | |
4012 | } | |
8ab979d7 | 4013 | { |
cf694132 | 4014 | wxPy_BEGIN_ALLOW_THREADS; |
cd096152 | 4015 | _result = (int )wxListCtrl_GetSelectedItemCount(_arg0); |
cf694132 RD |
4016 | |
4017 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4018 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4019 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4020 | return _resultobj; |
4021 | } | |
4022 | ||
cd096152 RD |
4023 | #define wxListCtrl_GetTextColour(_swigobj) (_swigobj->GetTextColour()) |
4024 | static PyObject *_wrap_wxListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4025 | PyObject * _resultobj; |
cd096152 RD |
4026 | wxColour * _result; |
4027 | wxPyListCtrl * _arg0; | |
1d99702e | 4028 | PyObject * _argo0 = 0; |
cd096152 RD |
4029 | char *_kwnames[] = { "self", NULL }; |
4030 | char _ptemp[128]; | |
8ab979d7 RD |
4031 | |
4032 | self = self; | |
cd096152 | 4033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTextColour",_kwnames,&_argo0)) |
8ab979d7 | 4034 | return NULL; |
1d99702e RD |
4035 | if (_argo0) { |
4036 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4037 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4038 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTextColour. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4039 | return NULL; |
4040 | } | |
4041 | } | |
cf694132 RD |
4042 | { |
4043 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4044 | _result = new wxColour (wxListCtrl_GetTextColour(_arg0)); |
cf694132 RD |
4045 | |
4046 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4047 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4048 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
4049 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
4050 | return _resultobj; |
4051 | } | |
4052 | ||
cd096152 RD |
4053 | #define wxListCtrl_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) |
4054 | static PyObject *_wrap_wxListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4055 | PyObject * _resultobj; |
cd096152 RD |
4056 | wxPyListCtrl * _arg0; |
4057 | wxColour * _arg1; | |
1d99702e | 4058 | PyObject * _argo0 = 0; |
cd096152 RD |
4059 | wxColour temp; |
4060 | PyObject * _obj1 = 0; | |
4061 | char *_kwnames[] = { "self","col", NULL }; | |
8ab979d7 RD |
4062 | |
4063 | self = self; | |
cd096152 | 4064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetTextColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4065 | return NULL; |
1d99702e RD |
4066 | if (_argo0) { |
4067 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4068 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4069 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetTextColour. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4070 | return NULL; |
4071 | } | |
4072 | } | |
cd096152 RD |
4073 | { |
4074 | _arg1 = &temp; | |
4075 | if (! wxColour_helper(_obj1, &_arg1)) | |
4076 | return NULL; | |
4077 | } | |
cf694132 RD |
4078 | { |
4079 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4080 | wxListCtrl_SetTextColour(_arg0,*_arg1); |
cf694132 RD |
4081 | |
4082 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4083 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4084 | } Py_INCREF(Py_None); |
4085 | _resultobj = Py_None; | |
8ab979d7 RD |
4086 | return _resultobj; |
4087 | } | |
4088 | ||
8ab979d7 | 4089 | #define wxListCtrl_GetTopItem(_swigobj) (_swigobj->GetTopItem()) |
efc5f224 | 4090 | static PyObject *_wrap_wxListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4091 | PyObject * _resultobj; |
4092 | long _result; | |
cd096152 | 4093 | wxPyListCtrl * _arg0; |
1d99702e | 4094 | PyObject * _argo0 = 0; |
efc5f224 | 4095 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4096 | |
4097 | self = self; | |
efc5f224 | 4098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTopItem",_kwnames,&_argo0)) |
8ab979d7 | 4099 | return NULL; |
1d99702e RD |
4100 | if (_argo0) { |
4101 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4102 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4103 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTopItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4104 | return NULL; |
4105 | } | |
4106 | } | |
cf694132 RD |
4107 | { |
4108 | wxPy_BEGIN_ALLOW_THREADS; | |
4109 | _result = (long )wxListCtrl_GetTopItem(_arg0); | |
4110 | ||
4111 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4112 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4113 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4114 | return _resultobj; |
4115 | } | |
4116 | ||
cd096152 RD |
4117 | #define wxListCtrl_SetSingleStyle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSingleStyle(_swigarg0,_swigarg1)) |
4118 | static PyObject *_wrap_wxListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4119 | PyObject * _resultobj; | |
4120 | wxPyListCtrl * _arg0; | |
4121 | long _arg1; | |
4122 | bool _arg2 = (bool ) TRUE; | |
1d99702e | 4123 | PyObject * _argo0 = 0; |
cd096152 RD |
4124 | int tempbool2 = (int) TRUE; |
4125 | char *_kwnames[] = { "self","style","add", NULL }; | |
8ab979d7 RD |
4126 | |
4127 | self = self; | |
cd096152 RD |
4128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_SetSingleStyle",_kwnames,&_argo0,&_arg1,&tempbool2)) |
4129 | return NULL; | |
4130 | if (_argo0) { | |
4131 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4132 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4133 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetSingleStyle. Expected _wxPyListCtrl_p."); | |
4134 | return NULL; | |
4135 | } | |
4136 | } | |
4137 | _arg2 = (bool ) tempbool2; | |
8ab979d7 | 4138 | { |
cd096152 RD |
4139 | wxPy_BEGIN_ALLOW_THREADS; |
4140 | wxListCtrl_SetSingleStyle(_arg0,_arg1,_arg2); | |
4141 | ||
4142 | wxPy_END_ALLOW_THREADS; | |
4143 | if (PyErr_Occurred()) return NULL; | |
4144 | } Py_INCREF(Py_None); | |
4145 | _resultobj = Py_None; | |
4146 | return _resultobj; | |
8ab979d7 | 4147 | } |
cd096152 RD |
4148 | |
4149 | #define wxListCtrl_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) | |
4150 | static PyObject *_wrap_wxListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4151 | PyObject * _resultobj; | |
4152 | wxPyListCtrl * _arg0; | |
4153 | long _arg1; | |
4154 | PyObject * _argo0 = 0; | |
4155 | char *_kwnames[] = { "self","style", NULL }; | |
4156 | ||
4157 | self = self; | |
4158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) | |
8ab979d7 | 4159 | return NULL; |
1d99702e RD |
4160 | if (_argo0) { |
4161 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4162 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4163 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetWindowStyleFlag. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4164 | return NULL; |
4165 | } | |
4166 | } | |
2f90df85 | 4167 | { |
cd096152 RD |
4168 | wxPy_BEGIN_ALLOW_THREADS; |
4169 | wxListCtrl_SetWindowStyleFlag(_arg0,_arg1); | |
4170 | ||
4171 | wxPy_END_ALLOW_THREADS; | |
4172 | if (PyErr_Occurred()) return NULL; | |
4173 | } Py_INCREF(Py_None); | |
4174 | _resultobj = Py_None; | |
4175 | return _resultobj; | |
2f90df85 | 4176 | } |
cd096152 RD |
4177 | |
4178 | #define wxListCtrl_GetNextItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetNextItem(_swigarg0,_swigarg1,_swigarg2)) | |
4179 | static PyObject *_wrap_wxListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4180 | PyObject * _resultobj; | |
4181 | long _result; | |
4182 | wxPyListCtrl * _arg0; | |
4183 | long _arg1; | |
4184 | int _arg2 = (int ) (wxLIST_NEXT_ALL); | |
4185 | int _arg3 = (int ) (wxLIST_STATE_DONTCARE); | |
4186 | PyObject * _argo0 = 0; | |
4187 | char *_kwnames[] = { "self","item","geometry","state", NULL }; | |
4188 | ||
4189 | self = self; | |
4190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:wxListCtrl_GetNextItem",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
4191 | return NULL; | |
4192 | if (_argo0) { | |
4193 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4194 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetNextItem. Expected _wxPyListCtrl_p."); | |
4196 | return NULL; | |
4197 | } | |
4198 | } | |
cf694132 RD |
4199 | { |
4200 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4201 | _result = (long )wxListCtrl_GetNextItem(_arg0,_arg1,_arg2,_arg3); |
cf694132 RD |
4202 | |
4203 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4204 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4205 | } _resultobj = Py_BuildValue("l",_result); |
cd096152 | 4206 | return _resultobj; |
8ab979d7 | 4207 | } |
cd096152 RD |
4208 | |
4209 | #define wxListCtrl_GetImageList(_swigobj,_swigarg0) (_swigobj->GetImageList(_swigarg0)) | |
4210 | static PyObject *_wrap_wxListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4211 | PyObject * _resultobj; | |
4212 | wxImageList * _result; | |
4213 | wxPyListCtrl * _arg0; | |
4214 | int _arg1; | |
4215 | PyObject * _argo0 = 0; | |
4216 | char *_kwnames[] = { "self","which", NULL }; | |
4217 | ||
4218 | self = self; | |
4219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetImageList",_kwnames,&_argo0,&_arg1)) | |
4220 | return NULL; | |
4221 | if (_argo0) { | |
4222 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4223 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4224 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetImageList. Expected _wxPyListCtrl_p."); | |
4225 | return NULL; | |
4226 | } | |
4227 | } | |
4228 | { | |
4229 | wxPy_BEGIN_ALLOW_THREADS; | |
4230 | _result = (wxImageList *)wxListCtrl_GetImageList(_arg0,_arg1); | |
4231 | ||
4232 | wxPy_END_ALLOW_THREADS; | |
4233 | if (PyErr_Occurred()) return NULL; | |
4234 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
8ab979d7 RD |
4235 | return _resultobj; |
4236 | } | |
4237 | ||
cd096152 RD |
4238 | #define wxListCtrl_SetImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetImageList(_swigarg0,_swigarg1)) |
4239 | static PyObject *_wrap_wxListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4240 | PyObject * _resultobj; |
cd096152 RD |
4241 | wxPyListCtrl * _arg0; |
4242 | wxImageList * _arg1; | |
4243 | int _arg2; | |
1d99702e | 4244 | PyObject * _argo0 = 0; |
cd096152 RD |
4245 | PyObject * _argo1 = 0; |
4246 | char *_kwnames[] = { "self","imageList","which", NULL }; | |
8ab979d7 RD |
4247 | |
4248 | self = self; | |
cd096152 | 4249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_SetImageList",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 4250 | return NULL; |
1d99702e RD |
4251 | if (_argo0) { |
4252 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4253 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4254 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetImageList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4255 | return NULL; |
4256 | } | |
4257 | } | |
cd096152 RD |
4258 | if (_argo1) { |
4259 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4260 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
4261 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetImageList. Expected _wxImageList_p."); | |
8ab979d7 RD |
4262 | return NULL; |
4263 | } | |
4264 | } | |
cf694132 RD |
4265 | { |
4266 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4267 | wxListCtrl_SetImageList(_arg0,_arg1,_arg2); |
cf694132 RD |
4268 | |
4269 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4270 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4271 | } Py_INCREF(Py_None); |
4272 | _resultobj = Py_None; | |
8ab979d7 RD |
4273 | return _resultobj; |
4274 | } | |
4275 | ||
cd096152 RD |
4276 | #define wxListCtrl_AssignImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->AssignImageList(_swigarg0,_swigarg1)) |
4277 | static PyObject *_wrap_wxListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4278 | PyObject * _resultobj; |
cd096152 RD |
4279 | wxPyListCtrl * _arg0; |
4280 | wxImageList * _arg1; | |
4281 | int _arg2; | |
1d99702e | 4282 | PyObject * _argo0 = 0; |
cd096152 RD |
4283 | PyObject * _argo1 = 0; |
4284 | char *_kwnames[] = { "self","imageList","which", NULL }; | |
8ab979d7 RD |
4285 | |
4286 | self = self; | |
cd096152 | 4287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_AssignImageList",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 4288 | return NULL; |
1d99702e RD |
4289 | if (_argo0) { |
4290 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4291 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4292 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_AssignImageList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4293 | return NULL; |
4294 | } | |
4295 | } | |
cd096152 RD |
4296 | if (_argo1) { |
4297 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4298 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
4299 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_AssignImageList. Expected _wxImageList_p."); | |
2cd2fac8 | 4300 | return NULL; |
cd096152 | 4301 | } |
2cd2fac8 | 4302 | } |
cd096152 RD |
4303 | { |
4304 | wxPy_BEGIN_ALLOW_THREADS; | |
4305 | wxListCtrl_AssignImageList(_arg0,_arg1,_arg2); | |
4306 | ||
4307 | wxPy_END_ALLOW_THREADS; | |
4308 | if (PyErr_Occurred()) return NULL; | |
4309 | } Py_INCREF(Py_None); | |
4310 | _resultobj = Py_None; | |
4311 | return _resultobj; | |
4312 | } | |
4313 | ||
4314 | #define wxListCtrl_IsVirtual(_swigobj) (_swigobj->IsVirtual()) | |
4315 | static PyObject *_wrap_wxListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4316 | PyObject * _resultobj; | |
4317 | bool _result; | |
4318 | wxPyListCtrl * _arg0; | |
4319 | PyObject * _argo0 = 0; | |
4320 | char *_kwnames[] = { "self", NULL }; | |
4321 | ||
4322 | self = self; | |
4323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_IsVirtual",_kwnames,&_argo0)) | |
2cd2fac8 | 4324 | return NULL; |
cd096152 RD |
4325 | if (_argo0) { |
4326 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4327 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4328 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_IsVirtual. Expected _wxPyListCtrl_p."); | |
8ab979d7 | 4329 | return NULL; |
cd096152 | 4330 | } |
8ab979d7 | 4331 | } |
cf694132 RD |
4332 | { |
4333 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4334 | _result = (bool )wxListCtrl_IsVirtual(_arg0); |
cf694132 RD |
4335 | |
4336 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4337 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4338 | } _resultobj = Py_BuildValue("i",_result); |
4339 | return _resultobj; | |
8ab979d7 | 4340 | } |
cd096152 RD |
4341 | |
4342 | #define wxListCtrl_RefreshItem(_swigobj,_swigarg0) (_swigobj->RefreshItem(_swigarg0)) | |
4343 | static PyObject *_wrap_wxListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4344 | PyObject * _resultobj; | |
4345 | wxPyListCtrl * _arg0; | |
4346 | long _arg1; | |
4347 | PyObject * _argo0 = 0; | |
4348 | char *_kwnames[] = { "self","item", NULL }; | |
4349 | ||
4350 | self = self; | |
4351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_RefreshItem",_kwnames,&_argo0,&_arg1)) | |
4352 | return NULL; | |
4353 | if (_argo0) { | |
4354 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4355 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4356 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItem. Expected _wxPyListCtrl_p."); | |
4357 | return NULL; | |
4358 | } | |
4359 | } | |
4360 | { | |
4361 | wxPy_BEGIN_ALLOW_THREADS; | |
4362 | wxListCtrl_RefreshItem(_arg0,_arg1); | |
4363 | ||
4364 | wxPy_END_ALLOW_THREADS; | |
4365 | if (PyErr_Occurred()) return NULL; | |
4366 | } Py_INCREF(Py_None); | |
4367 | _resultobj = Py_None; | |
8ab979d7 RD |
4368 | return _resultobj; |
4369 | } | |
4370 | ||
cd096152 RD |
4371 | #define wxListCtrl_RefreshItems(_swigobj,_swigarg0,_swigarg1) (_swigobj->RefreshItems(_swigarg0,_swigarg1)) |
4372 | static PyObject *_wrap_wxListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4373 | PyObject * _resultobj; |
cd096152 RD |
4374 | wxPyListCtrl * _arg0; |
4375 | long _arg1; | |
4376 | long _arg2; | |
1d99702e | 4377 | PyObject * _argo0 = 0; |
cd096152 | 4378 | char *_kwnames[] = { "self","itemFrom","itemTo", NULL }; |
8ab979d7 RD |
4379 | |
4380 | self = self; | |
cd096152 | 4381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_RefreshItems",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4382 | return NULL; |
1d99702e RD |
4383 | if (_argo0) { |
4384 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4385 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItems. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4387 | return NULL; |
4388 | } | |
4389 | } | |
cd096152 RD |
4390 | { |
4391 | wxPy_BEGIN_ALLOW_THREADS; | |
4392 | wxListCtrl_RefreshItems(_arg0,_arg1,_arg2); | |
4393 | ||
4394 | wxPy_END_ALLOW_THREADS; | |
4395 | if (PyErr_Occurred()) return NULL; | |
4396 | } Py_INCREF(Py_None); | |
4397 | _resultobj = Py_None; | |
4398 | return _resultobj; | |
4399 | } | |
4400 | ||
4401 | #define wxListCtrl_Arrange(_swigobj,_swigarg0) (_swigobj->Arrange(_swigarg0)) | |
4402 | static PyObject *_wrap_wxListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4403 | PyObject * _resultobj; | |
4404 | bool _result; | |
4405 | wxPyListCtrl * _arg0; | |
4406 | int _arg1 = (int ) (wxLIST_ALIGN_DEFAULT); | |
4407 | PyObject * _argo0 = 0; | |
4408 | char *_kwnames[] = { "self","flag", NULL }; | |
4409 | ||
4410 | self = self; | |
4411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxListCtrl_Arrange",_kwnames,&_argo0,&_arg1)) | |
4412 | return NULL; | |
4413 | if (_argo0) { | |
4414 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4415 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4416 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Arrange. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4417 | return NULL; |
4418 | } | |
4419 | } | |
cf694132 RD |
4420 | { |
4421 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4422 | _result = (bool )wxListCtrl_Arrange(_arg0,_arg1); |
cf694132 RD |
4423 | |
4424 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4425 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4426 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4427 | return _resultobj; |
4428 | } | |
4429 | ||
cd096152 RD |
4430 | #define wxListCtrl_DeleteItem(_swigobj,_swigarg0) (_swigobj->DeleteItem(_swigarg0)) |
4431 | static PyObject *_wrap_wxListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4432 | PyObject * _resultobj; |
cd096152 RD |
4433 | bool _result; |
4434 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4435 | long _arg1; |
1d99702e | 4436 | PyObject * _argo0 = 0; |
cd096152 | 4437 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
4438 | |
4439 | self = self; | |
cd096152 | 4440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_DeleteItem",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4441 | return NULL; |
1d99702e RD |
4442 | if (_argo0) { |
4443 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4444 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4445 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4446 | return NULL; |
4447 | } | |
4448 | } | |
4449 | { | |
cd096152 RD |
4450 | wxPy_BEGIN_ALLOW_THREADS; |
4451 | _result = (bool )wxListCtrl_DeleteItem(_arg0,_arg1); | |
4452 | ||
4453 | wxPy_END_ALLOW_THREADS; | |
4454 | if (PyErr_Occurred()) return NULL; | |
4455 | } _resultobj = Py_BuildValue("i",_result); | |
4456 | return _resultobj; | |
4457 | } | |
4458 | ||
4459 | #define wxListCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) | |
4460 | static PyObject *_wrap_wxListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4461 | PyObject * _resultobj; | |
4462 | bool _result; | |
4463 | wxPyListCtrl * _arg0; | |
4464 | PyObject * _argo0 = 0; | |
4465 | char *_kwnames[] = { "self", NULL }; | |
4466 | ||
4467 | self = self; | |
4468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllItems",_kwnames,&_argo0)) | |
4469 | return NULL; | |
4470 | if (_argo0) { | |
4471 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4472 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4473 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllItems. Expected _wxPyListCtrl_p."); | |
2cd2fac8 | 4474 | return NULL; |
cd096152 | 4475 | } |
2cd2fac8 | 4476 | } |
cd096152 RD |
4477 | { |
4478 | wxPy_BEGIN_ALLOW_THREADS; | |
4479 | _result = (bool )wxListCtrl_DeleteAllItems(_arg0); | |
4480 | ||
4481 | wxPy_END_ALLOW_THREADS; | |
4482 | if (PyErr_Occurred()) return NULL; | |
4483 | } _resultobj = Py_BuildValue("i",_result); | |
4484 | return _resultobj; | |
4485 | } | |
4486 | ||
4487 | #define wxListCtrl_DeleteColumn(_swigobj,_swigarg0) (_swigobj->DeleteColumn(_swigarg0)) | |
4488 | static PyObject *_wrap_wxListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4489 | PyObject * _resultobj; | |
4490 | bool _result; | |
4491 | wxPyListCtrl * _arg0; | |
4492 | int _arg1; | |
4493 | PyObject * _argo0 = 0; | |
4494 | char *_kwnames[] = { "self","col", NULL }; | |
4495 | ||
4496 | self = self; | |
4497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_DeleteColumn",_kwnames,&_argo0,&_arg1)) | |
2cd2fac8 | 4498 | return NULL; |
cd096152 RD |
4499 | if (_argo0) { |
4500 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4501 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4502 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteColumn. Expected _wxPyListCtrl_p."); | |
4503 | return NULL; | |
4504 | } | |
4505 | } | |
4506 | { | |
4507 | wxPy_BEGIN_ALLOW_THREADS; | |
4508 | _result = (bool )wxListCtrl_DeleteColumn(_arg0,_arg1); | |
4509 | ||
4510 | wxPy_END_ALLOW_THREADS; | |
4511 | if (PyErr_Occurred()) return NULL; | |
4512 | } _resultobj = Py_BuildValue("i",_result); | |
4513 | return _resultobj; | |
4514 | } | |
4515 | ||
4516 | #define wxListCtrl_DeleteAllColumns(_swigobj) (_swigobj->DeleteAllColumns()) | |
4517 | static PyObject *_wrap_wxListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4518 | PyObject * _resultobj; | |
4519 | bool _result; | |
4520 | wxPyListCtrl * _arg0; | |
4521 | PyObject * _argo0 = 0; | |
4522 | char *_kwnames[] = { "self", NULL }; | |
4523 | ||
4524 | self = self; | |
4525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllColumns",_kwnames,&_argo0)) | |
4526 | return NULL; | |
4527 | if (_argo0) { | |
4528 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4529 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4530 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllColumns. Expected _wxPyListCtrl_p."); | |
4531 | return NULL; | |
4532 | } | |
4533 | } | |
4534 | { | |
4535 | wxPy_BEGIN_ALLOW_THREADS; | |
4536 | _result = (bool )wxListCtrl_DeleteAllColumns(_arg0); | |
4537 | ||
4538 | wxPy_END_ALLOW_THREADS; | |
4539 | if (PyErr_Occurred()) return NULL; | |
4540 | } _resultobj = Py_BuildValue("i",_result); | |
4541 | return _resultobj; | |
4542 | } | |
4543 | ||
4544 | #define wxListCtrl_ClearAll(_swigobj) (_swigobj->ClearAll()) | |
4545 | static PyObject *_wrap_wxListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4546 | PyObject * _resultobj; | |
4547 | wxPyListCtrl * _arg0; | |
4548 | PyObject * _argo0 = 0; | |
4549 | char *_kwnames[] = { "self", NULL }; | |
4550 | ||
4551 | self = self; | |
4552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_ClearAll",_kwnames,&_argo0)) | |
8ab979d7 | 4553 | return NULL; |
cd096152 RD |
4554 | if (_argo0) { |
4555 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4556 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4557 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ClearAll. Expected _wxPyListCtrl_p."); | |
4558 | return NULL; | |
4559 | } | |
8ab979d7 | 4560 | } |
cf694132 RD |
4561 | { |
4562 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4563 | wxListCtrl_ClearAll(_arg0); |
cf694132 RD |
4564 | |
4565 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4566 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4567 | } Py_INCREF(Py_None); |
4568 | _resultobj = Py_None; | |
8ab979d7 RD |
4569 | return _resultobj; |
4570 | } | |
4571 | ||
cd096152 RD |
4572 | #define wxListCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) |
4573 | static PyObject *_wrap_wxListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4574 | PyObject * _resultobj; |
cd096152 RD |
4575 | bool _result; |
4576 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4577 | long _arg1; |
1d99702e | 4578 | PyObject * _argo0 = 0; |
cd096152 | 4579 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
4580 | |
4581 | self = self; | |
cd096152 | 4582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EnsureVisible",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4583 | return NULL; |
1d99702e RD |
4584 | if (_argo0) { |
4585 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4586 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4587 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EnsureVisible. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4588 | return NULL; |
4589 | } | |
4590 | } | |
cf694132 RD |
4591 | { |
4592 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4593 | _result = (bool )wxListCtrl_EnsureVisible(_arg0,_arg1); |
cf694132 RD |
4594 | |
4595 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4596 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4597 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4598 | return _resultobj; |
4599 | } | |
4600 | ||
cd096152 RD |
4601 | #define wxListCtrl_FindItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) |
4602 | static PyObject *_wrap_wxListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4603 | PyObject * _resultobj; |
4604 | long _result; | |
cd096152 | 4605 | wxPyListCtrl * _arg0; |
8ab979d7 RD |
4606 | long _arg1; |
4607 | wxString * _arg2; | |
cd096152 | 4608 | bool _arg3 = (bool ) FALSE; |
1d99702e | 4609 | PyObject * _argo0 = 0; |
8ab979d7 | 4610 | PyObject * _obj2 = 0; |
cd096152 RD |
4611 | int tempbool3 = (int) FALSE; |
4612 | char *_kwnames[] = { "self","start","str","partial", NULL }; | |
8ab979d7 RD |
4613 | |
4614 | self = self; | |
cd096152 | 4615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|i:wxListCtrl_FindItem",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3)) |
8ab979d7 | 4616 | return NULL; |
1d99702e RD |
4617 | if (_argo0) { |
4618 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4619 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4620 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4621 | return NULL; |
4622 | } | |
4623 | } | |
4624 | { | |
2cd2fac8 RD |
4625 | #if PYTHON_API_VERSION >= 1009 |
4626 | char* tmpPtr; int tmpSize; | |
4627 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 4628 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
4629 | return NULL; |
4630 | } | |
4631 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4632 | return NULL; | |
4633 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4634 | #else | |
8ab979d7 RD |
4635 | if (!PyString_Check(_obj2)) { |
4636 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4637 | return NULL; | |
4638 | } | |
2cd2fac8 RD |
4639 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
4640 | #endif | |
8ab979d7 | 4641 | } |
cd096152 | 4642 | _arg3 = (bool ) tempbool3; |
cf694132 RD |
4643 | { |
4644 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4645 | _result = (long )wxListCtrl_FindItem(_arg0,_arg1,*_arg2,_arg3); |
cf694132 RD |
4646 | |
4647 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4648 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4649 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4650 | { |
4651 | if (_obj2) | |
4652 | delete _arg2; | |
4653 | } | |
4654 | return _resultobj; | |
4655 | } | |
4656 | ||
cd096152 RD |
4657 | #define wxListCtrl_FindItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindItem(_swigarg0,_swigarg1)) |
4658 | static PyObject *_wrap_wxListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4659 | PyObject * _resultobj; |
cd096152 RD |
4660 | long _result; |
4661 | wxPyListCtrl * _arg0; | |
4662 | long _arg1; | |
4663 | long _arg2; | |
1d99702e | 4664 | PyObject * _argo0 = 0; |
cd096152 | 4665 | char *_kwnames[] = { "self","start","data", NULL }; |
8ab979d7 RD |
4666 | |
4667 | self = self; | |
cd096152 | 4668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_FindItemData",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4669 | return NULL; |
1d99702e RD |
4670 | if (_argo0) { |
4671 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4672 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4674 | return NULL; |
4675 | } | |
4676 | } | |
cf694132 RD |
4677 | { |
4678 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4679 | _result = (long )wxListCtrl_FindItemData(_arg0,_arg1,_arg2); |
cf694132 RD |
4680 | |
4681 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4682 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4683 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4684 | return _resultobj; |
4685 | } | |
4686 | ||
cd096152 RD |
4687 | #define wxListCtrl_FindItemAtPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) |
4688 | static PyObject *_wrap_wxListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4689 | PyObject * _resultobj; |
cd096152 RD |
4690 | long _result; |
4691 | wxPyListCtrl * _arg0; | |
4692 | long _arg1; | |
4693 | wxPoint * _arg2; | |
4694 | int _arg3; | |
1d99702e | 4695 | PyObject * _argo0 = 0; |
cd096152 RD |
4696 | wxPoint temp; |
4697 | PyObject * _obj2 = 0; | |
4698 | char *_kwnames[] = { "self","start","pt","direction", NULL }; | |
8ab979d7 RD |
4699 | |
4700 | self = self; | |
cd096152 | 4701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_FindItemAtPos",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) |
8ab979d7 | 4702 | return NULL; |
1d99702e RD |
4703 | if (_argo0) { |
4704 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4705 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4706 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemAtPos. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4707 | return NULL; |
4708 | } | |
4709 | } | |
f6bcfd97 | 4710 | { |
cd096152 RD |
4711 | _arg2 = &temp; |
4712 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 4713 | return NULL; |
f6bcfd97 | 4714 | } |
cf694132 RD |
4715 | { |
4716 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4717 | _result = (long )wxListCtrl_FindItemAtPos(_arg0,_arg1,*_arg2,_arg3); |
cf694132 RD |
4718 | |
4719 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4720 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4721 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4722 | return _resultobj; |
4723 | } | |
4724 | ||
cd096152 RD |
4725 | #define wxListCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) |
4726 | static PyObject *_wrap_wxListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4727 | PyObject * _resultobj; |
cd096152 RD |
4728 | long _result; |
4729 | wxPyListCtrl * _arg0; | |
4730 | wxPoint * _arg1; | |
4731 | int * _arg2; | |
4732 | int temp; | |
1d99702e | 4733 | PyObject * _argo0 = 0; |
cd096152 RD |
4734 | wxPoint temp0; |
4735 | PyObject * _obj1 = 0; | |
4736 | char *_kwnames[] = { "self","point", NULL }; | |
8ab979d7 RD |
4737 | |
4738 | self = self; | |
cf694132 | 4739 | { |
cd096152 | 4740 | _arg2 = &temp; |
8ab979d7 | 4741 | } |
cd096152 | 4742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_HitTest",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4743 | return NULL; |
1d99702e RD |
4744 | if (_argo0) { |
4745 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4746 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4747 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_HitTest. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4748 | return NULL; |
4749 | } | |
4750 | } | |
cf694132 | 4751 | { |
cd096152 RD |
4752 | _arg1 = &temp0; |
4753 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 4754 | return NULL; |
cd096152 | 4755 | } |
cf694132 RD |
4756 | { |
4757 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4758 | _result = (long )wxListCtrl_HitTest(_arg0,*_arg1,*_arg2); |
cf694132 RD |
4759 | |
4760 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4761 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4762 | } _resultobj = Py_BuildValue("l",_result); |
4763 | { | |
4764 | PyObject *o; | |
4765 | o = PyInt_FromLong((long) (*_arg2)); | |
4766 | _resultobj = t_output_helper(_resultobj, o); | |
4767 | } | |
8ab979d7 RD |
4768 | return _resultobj; |
4769 | } | |
4770 | ||
cd096152 RD |
4771 | #define wxListCtrl_InsertItem(_swigobj,_swigarg0) (_swigobj->InsertItem(_swigarg0)) |
4772 | static PyObject *_wrap_wxListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4773 | PyObject * _resultobj; |
cd096152 RD |
4774 | long _result; |
4775 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4776 | wxListItem * _arg1; |
1d99702e RD |
4777 | PyObject * _argo0 = 0; |
4778 | PyObject * _argo1 = 0; | |
efc5f224 | 4779 | char *_kwnames[] = { "self","info", NULL }; |
8ab979d7 RD |
4780 | |
4781 | self = self; | |
cd096152 | 4782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_InsertItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4783 | return NULL; |
1d99702e RD |
4784 | if (_argo0) { |
4785 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4786 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4787 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4788 | return NULL; |
4789 | } | |
4790 | } | |
1d99702e RD |
4791 | if (_argo1) { |
4792 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4793 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
cd096152 | 4794 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_InsertItem. Expected _wxListItem_p."); |
8ab979d7 RD |
4795 | return NULL; |
4796 | } | |
4797 | } | |
cf694132 RD |
4798 | { |
4799 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4800 | _result = (long )wxListCtrl_InsertItem(_arg0,*_arg1); |
cf694132 RD |
4801 | |
4802 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4803 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4804 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4805 | return _resultobj; |
4806 | } | |
4807 | ||
cd096152 RD |
4808 | #define wxListCtrl_InsertStringItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) |
4809 | static PyObject *_wrap_wxListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4810 | PyObject * _resultobj; |
4811 | long _result; | |
cd096152 | 4812 | wxPyListCtrl * _arg0; |
8ab979d7 | 4813 | long _arg1; |
cd096152 | 4814 | wxString * _arg2; |
1d99702e | 4815 | PyObject * _argo0 = 0; |
cd096152 RD |
4816 | PyObject * _obj2 = 0; |
4817 | char *_kwnames[] = { "self","index","label", NULL }; | |
8ab979d7 RD |
4818 | |
4819 | self = self; | |
cd096152 | 4820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertStringItem",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 4821 | return NULL; |
1d99702e RD |
4822 | if (_argo0) { |
4823 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4824 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4825 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertStringItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4826 | return NULL; |
4827 | } | |
4828 | } | |
4829 | { | |
2cd2fac8 RD |
4830 | #if PYTHON_API_VERSION >= 1009 |
4831 | char* tmpPtr; int tmpSize; | |
cd096152 | 4832 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { |
7a446686 | 4833 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
4834 | return NULL; |
4835 | } | |
cd096152 | 4836 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) |
2cd2fac8 | 4837 | return NULL; |
cd096152 | 4838 | _arg2 = new wxString(tmpPtr, tmpSize); |
2cd2fac8 | 4839 | #else |
cd096152 | 4840 | if (!PyString_Check(_obj2)) { |
8ab979d7 RD |
4841 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
4842 | return NULL; | |
4843 | } | |
cd096152 | 4844 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
2cd2fac8 | 4845 | #endif |
8ab979d7 | 4846 | } |
cf694132 RD |
4847 | { |
4848 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4849 | _result = (long )wxListCtrl_InsertStringItem(_arg0,_arg1,*_arg2); |
cf694132 RD |
4850 | |
4851 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4852 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4853 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 | 4854 | { |
cd096152 RD |
4855 | if (_obj2) |
4856 | delete _arg2; | |
4857 | } | |
8ab979d7 RD |
4858 | return _resultobj; |
4859 | } | |
4860 | ||
cd096152 RD |
4861 | #define wxListCtrl_InsertImageItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) |
4862 | static PyObject *_wrap_wxListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4863 | PyObject * _resultobj; |
cd096152 RD |
4864 | long _result; |
4865 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
4866 | long _arg1; |
4867 | int _arg2; | |
1d99702e | 4868 | PyObject * _argo0 = 0; |
cd096152 | 4869 | char *_kwnames[] = { "self","index","imageIndex", NULL }; |
8ab979d7 RD |
4870 | |
4871 | self = self; | |
cd096152 | 4872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oli:wxListCtrl_InsertImageItem",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4873 | return NULL; |
1d99702e RD |
4874 | if (_argo0) { |
4875 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4876 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4877 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4878 | return NULL; |
4879 | } | |
4880 | } | |
cf694132 RD |
4881 | { |
4882 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4883 | _result = (long )wxListCtrl_InsertImageItem(_arg0,_arg1,_arg2); |
cf694132 RD |
4884 | |
4885 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4886 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4887 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4888 | return _resultobj; |
4889 | } | |
4890 | ||
cd096152 RD |
4891 | #define wxListCtrl_InsertImageStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2)) |
4892 | static PyObject *_wrap_wxListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4893 | PyObject * _resultobj; |
cd096152 RD |
4894 | long _result; |
4895 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4896 | long _arg1; |
cd096152 RD |
4897 | wxString * _arg2; |
4898 | int _arg3; | |
1d99702e | 4899 | PyObject * _argo0 = 0; |
2f90df85 | 4900 | PyObject * _obj2 = 0; |
cd096152 | 4901 | char *_kwnames[] = { "self","index","label","imageIndex", NULL }; |
8ab979d7 RD |
4902 | |
4903 | self = self; | |
cd096152 | 4904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_InsertImageStringItem",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) |
8ab979d7 | 4905 | return NULL; |
1d99702e RD |
4906 | if (_argo0) { |
4907 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4908 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4909 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageStringItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4910 | return NULL; |
4911 | } | |
4912 | } | |
2f90df85 | 4913 | { |
cd096152 RD |
4914 | #if PYTHON_API_VERSION >= 1009 |
4915 | char* tmpPtr; int tmpSize; | |
4916 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
4917 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4918 | return NULL; | |
4919 | } | |
4920 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4921 | return NULL; | |
4922 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4923 | #else | |
4924 | if (!PyString_Check(_obj2)) { | |
4925 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8ab979d7 | 4926 | return NULL; |
cd096152 RD |
4927 | } |
4928 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
4929 | #endif | |
2f90df85 | 4930 | } |
cf694132 RD |
4931 | { |
4932 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4933 | _result = (long )wxListCtrl_InsertImageStringItem(_arg0,_arg1,*_arg2,_arg3); |
cf694132 RD |
4934 | |
4935 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4936 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4937 | } _resultobj = Py_BuildValue("l",_result); |
4938 | { | |
4939 | if (_obj2) | |
4940 | delete _arg2; | |
4941 | } | |
8ab979d7 RD |
4942 | return _resultobj; |
4943 | } | |
4944 | ||
cd096152 RD |
4945 | #define wxListCtrl_InsertColumnInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertColumn(_swigarg0,_swigarg1)) |
4946 | static PyObject *_wrap_wxListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4947 | PyObject * _resultobj; |
cd096152 RD |
4948 | long _result; |
4949 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4950 | long _arg1; |
cd096152 | 4951 | wxListItem * _arg2; |
1d99702e | 4952 | PyObject * _argo0 = 0; |
cd096152 RD |
4953 | PyObject * _argo2 = 0; |
4954 | char *_kwnames[] = { "self","col","info", NULL }; | |
8ab979d7 RD |
4955 | |
4956 | self = self; | |
cd096152 | 4957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertColumnInfo",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 4958 | return NULL; |
1d99702e RD |
4959 | if (_argo0) { |
4960 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4961 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4962 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumnInfo. Expected _wxPyListCtrl_p."); | |
4963 | return NULL; | |
4964 | } | |
4965 | } | |
4966 | if (_argo2) { | |
4967 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
4968 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
4969 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_InsertColumnInfo. Expected _wxListItem_p."); | |
8ab979d7 RD |
4970 | return NULL; |
4971 | } | |
4972 | } | |
cf694132 RD |
4973 | { |
4974 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4975 | _result = (long )wxListCtrl_InsertColumnInfo(_arg0,_arg1,*_arg2); |
cf694132 RD |
4976 | |
4977 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4978 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4979 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4980 | return _resultobj; |
4981 | } | |
4982 | ||
cd096152 RD |
4983 | #define wxListCtrl_InsertColumn(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertColumn(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
4984 | static PyObject *_wrap_wxListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4985 | PyObject * _resultobj; |
cd096152 RD |
4986 | long _result; |
4987 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
4988 | long _arg1; |
4989 | wxString * _arg2; | |
cd096152 RD |
4990 | int _arg3 = (int ) (wxLIST_FORMAT_LEFT); |
4991 | int _arg4 = (int ) -1; | |
1d99702e | 4992 | PyObject * _argo0 = 0; |
8ab979d7 | 4993 | PyObject * _obj2 = 0; |
cd096152 | 4994 | char *_kwnames[] = { "self","col","heading","format","width", NULL }; |
8ab979d7 RD |
4995 | |
4996 | self = self; | |
cd096152 | 4997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|ii:wxListCtrl_InsertColumn",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3,&_arg4)) |
8ab979d7 | 4998 | return NULL; |
1d99702e RD |
4999 | if (_argo0) { |
5000 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
5001 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
5002 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumn. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
5003 | return NULL; |
5004 | } | |
5005 | } | |
5006 | { | |
2cd2fac8 RD |
5007 | #if PYTHON_API_VERSION >= 1009 |
5008 | char* tmpPtr; int tmpSize; | |
5009 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 5010 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
5011 | return NULL; |
5012 | } | |
5013 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
5014 | return NULL; | |
5015 | _arg2 = new wxString(tmpPtr, tmpSize); | |
5016 | #else | |
8ab979d7 RD |
5017 | if (!PyString_Check(_obj2)) { |
5018 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5019 | return NULL; | |
5020 | } | |
2cd2fac8 RD |
5021 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
5022 | #endif | |
8ab979d7 | 5023 | } |
cf694132 RD |
5024 | { |
5025 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 5026 | _result = (long )wxListCtrl_InsertColumn(_arg0,_arg1,*_arg2,_arg3,_arg4); |
cf694132 RD |
5027 | |
5028 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5029 | if (PyErr_Occurred()) return NULL; |
cd096152 | 5030 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
5031 | { |
5032 | if (_obj2) | |
5033 | delete _arg2; | |
5034 | } | |
5035 | return _resultobj; | |
5036 | } | |
5037 | ||
cd096152 RD |
5038 | #define wxListCtrl_SetItemCount(_swigobj,_swigarg0) (_swigobj->SetItemCount(_swigarg0)) |
5039 | static PyObject *_wrap_wxListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5040 | PyObject * _resultobj; |
cd096152 | 5041 | wxPyListCtrl * _arg0; |
8ab979d7 | 5042 | long _arg1; |
1d99702e | 5043 | PyObject * _argo0 = 0; |
cd096152 | 5044 | char *_kwnames[] = { "self","count", NULL }; |
8ab979d7 RD |
5045 | |
5046 | self = self; | |
cd096152 | 5047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetItemCount",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5048 | return NULL; |
1d99702e RD |
5049 | if (_argo0) { |
5050 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
5051 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
5052 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
5053 | return NULL; |
5054 | } | |
5055 | } | |
cf694132 RD |
5056 | { |
5057 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 5058 | wxListCtrl_SetItemCount(_arg0,_arg1); |
cf694132 RD |
5059 | |
5060 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5061 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5062 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5063 | _resultobj = Py_None; |
5064 | return _resultobj; | |
5065 | } | |
5066 | ||
cd096152 RD |
5067 | #define wxListCtrl_ScrollList(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScrollList(_swigarg0,_swigarg1)) |
5068 | static PyObject *_wrap_wxListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5069 | PyObject * _resultobj; |
cd096152 RD |
5070 | bool _result; |
5071 | wxPyListCtrl * _arg0; | |
5072 | int _arg1; | |
5073 | int _arg2; | |
1d99702e | 5074 | PyObject * _argo0 = 0; |
cd096152 | 5075 | char *_kwnames[] = { "self","dx","dy", NULL }; |
8ab979d7 RD |
5076 | |
5077 | self = self; | |
cd096152 | 5078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_ScrollList",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 5079 | return NULL; |
1d99702e RD |
5080 | if (_argo0) { |
5081 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
5082 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
5083 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ScrollList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
5084 | return NULL; |
5085 | } | |
5086 | } | |
cf694132 RD |
5087 | { |
5088 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 5089 | _result = (bool )wxListCtrl_ScrollList(_arg0,_arg1,_arg2); |
cf694132 RD |
5090 | |
5091 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5092 | if (PyErr_Occurred()) return NULL; |
cd096152 | 5093 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5094 | return _resultobj; |
5095 | } | |
5096 | ||
cd096152 | 5097 | static bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject * func) { |
dcd38683 RD |
5098 | if (!PyCallable_Check(func)) |
5099 | return FALSE; | |
f6bcfd97 | 5100 | return self->SortItems(wxPyListCtrl_SortItems, (long)func); |
dcd38683 RD |
5101 | } |
5102 | static PyObject *_wrap_wxListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5103 | PyObject * _resultobj; | |
5104 | bool _result; | |
cd096152 | 5105 | wxPyListCtrl * _arg0; |
dcd38683 RD |
5106 | PyObject * _arg1; |
5107 | PyObject * _argo0 = 0; | |
5108 | PyObject * _obj1 = 0; | |
5109 | char *_kwnames[] = { "self","func", NULL }; | |
5110 | ||
5111 | self = self; | |
5112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SortItems",_kwnames,&_argo0,&_obj1)) | |
5113 | return NULL; | |
5114 | if (_argo0) { | |
5115 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
5116 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
5117 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SortItems. Expected _wxPyListCtrl_p."); | |
dcd38683 RD |
5118 | return NULL; |
5119 | } | |
5120 | } | |
5121 | { | |
5122 | _arg1 = _obj1; | |
5123 | } | |
5124 | { | |
5125 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 5126 | _result = (bool )wxPyListCtrl_SortItems(_arg0,_arg1); |
dcd38683 RD |
5127 | |
5128 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5129 | if (PyErr_Occurred()) return NULL; |
dcd38683 RD |
5130 | } _resultobj = Py_BuildValue("i",_result); |
5131 | return _resultobj; | |
5132 | } | |
5133 | ||
aa2a5b86 RD |
5134 | #define new_wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2) (new wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2)) |
5135 | static PyObject *_wrap_new_wxTreeItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5136 | PyObject * _resultobj; |
aa2a5b86 RD |
5137 | wxTreeItemAttr * _result; |
5138 | wxColour * _arg0 = (wxColour *) &wxNullColour; | |
5139 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
5140 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
5141 | wxColour temp; | |
5142 | PyObject * _obj0 = 0; | |
5143 | wxColour temp0; | |
5144 | PyObject * _obj1 = 0; | |
5145 | PyObject * _argo2 = 0; | |
5146 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
d5c9047a | 5147 | char _ptemp[128]; |
8ab979d7 RD |
5148 | |
5149 | self = self; | |
aa2a5b86 RD |
5150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxTreeItemAttr",_kwnames,&_obj0,&_obj1,&_argo2)) |
5151 | return NULL; | |
5152 | if (_obj0) | |
5153 | { | |
5154 | _arg0 = &temp; | |
5155 | if (! wxColour_helper(_obj0, &_arg0)) | |
5156 | return NULL; | |
5157 | } | |
5158 | if (_obj1) | |
5159 | { | |
5160 | _arg1 = &temp0; | |
5161 | if (! wxColour_helper(_obj1, &_arg1)) | |
5162 | return NULL; | |
5163 | } | |
5164 | if (_argo2) { | |
5165 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
5166 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
5167 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxTreeItemAttr. Expected _wxFont_p."); | |
8ab979d7 | 5168 | return NULL; |
aa2a5b86 RD |
5169 | } |
5170 | } | |
cf694132 RD |
5171 | { |
5172 | wxPy_BEGIN_ALLOW_THREADS; | |
aa2a5b86 | 5173 | _result = (wxTreeItemAttr *)new_wxTreeItemAttr(*_arg0,*_arg1,*_arg2); |
cf694132 RD |
5174 | |
5175 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5176 | if (PyErr_Occurred()) return NULL; |
1d99702e | 5177 | } if (_result) { |
aa2a5b86 | 5178 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemAttr_p"); |
1d99702e RD |
5179 | _resultobj = Py_BuildValue("s",_ptemp); |
5180 | } else { | |
5181 | Py_INCREF(Py_None); | |
5182 | _resultobj = Py_None; | |
5183 | } | |
8ab979d7 RD |
5184 | return _resultobj; |
5185 | } | |
5186 | ||
aa2a5b86 RD |
5187 | #define wxTreeItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) |
5188 | static PyObject *_wrap_wxTreeItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5189 | PyObject * _resultobj; |
aa2a5b86 RD |
5190 | wxTreeItemAttr * _arg0; |
5191 | wxColour * _arg1; | |
1d99702e | 5192 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
5193 | wxColour temp; |
5194 | PyObject * _obj1 = 0; | |
5195 | char *_kwnames[] = { "self","colText", NULL }; | |
8ab979d7 RD |
5196 | |
5197 | self = self; | |
aa2a5b86 | 5198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 5199 | return NULL; |
1d99702e RD |
5200 | if (_argo0) { |
5201 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5202 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5203 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetTextColour. Expected _wxTreeItemAttr_p."); | |
8ab979d7 RD |
5204 | return NULL; |
5205 | } | |
5206 | } | |
aa2a5b86 RD |
5207 | { |
5208 | _arg1 = &temp; | |
5209 | if (! wxColour_helper(_obj1, &_arg1)) | |
5210 | return NULL; | |
5211 | } | |
cf694132 RD |
5212 | { |
5213 | wxPy_BEGIN_ALLOW_THREADS; | |
aa2a5b86 | 5214 | wxTreeItemAttr_SetTextColour(_arg0,*_arg1); |
cf694132 RD |
5215 | |
5216 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5217 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5218 | } Py_INCREF(Py_None); |
d5c9047a | 5219 | _resultobj = Py_None; |
8ab979d7 RD |
5220 | return _resultobj; |
5221 | } | |
5222 | ||
aa2a5b86 RD |
5223 | #define wxTreeItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
5224 | static PyObject *_wrap_wxTreeItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5225 | PyObject * _resultobj; |
aa2a5b86 RD |
5226 | wxTreeItemAttr * _arg0; |
5227 | wxColour * _arg1; | |
1d99702e | 5228 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
5229 | wxColour temp; |
5230 | PyObject * _obj1 = 0; | |
5231 | char *_kwnames[] = { "self","colBack", NULL }; | |
8ab979d7 RD |
5232 | |
5233 | self = self; | |
aa2a5b86 | 5234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 5235 | return NULL; |
1d99702e RD |
5236 | if (_argo0) { |
5237 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5238 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5239 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetBackgroundColour. Expected _wxTreeItemAttr_p."); | |
8ab979d7 RD |
5240 | return NULL; |
5241 | } | |
5242 | } | |
aa2a5b86 RD |
5243 | { |
5244 | _arg1 = &temp; | |
5245 | if (! wxColour_helper(_obj1, &_arg1)) | |
5246 | return NULL; | |
5247 | } | |
cf694132 RD |
5248 | { |
5249 | wxPy_BEGIN_ALLOW_THREADS; | |
aa2a5b86 | 5250 | wxTreeItemAttr_SetBackgroundColour(_arg0,*_arg1); |
cf694132 RD |
5251 | |
5252 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5253 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 RD |
5254 | } Py_INCREF(Py_None); |
5255 | _resultobj = Py_None; | |
8ab979d7 RD |
5256 | return _resultobj; |
5257 | } | |
5258 | ||
aa2a5b86 RD |
5259 | #define wxTreeItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
5260 | static PyObject *_wrap_wxTreeItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f6bcfd97 | 5261 | PyObject * _resultobj; |
aa2a5b86 RD |
5262 | wxTreeItemAttr * _arg0; |
5263 | wxFont * _arg1; | |
f6bcfd97 BP |
5264 | PyObject * _argo0 = 0; |
5265 | PyObject * _argo1 = 0; | |
aa2a5b86 | 5266 | char *_kwnames[] = { "self","font", NULL }; |
f6bcfd97 BP |
5267 | |
5268 | self = self; | |
aa2a5b86 | 5269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetFont",_kwnames,&_argo0,&_argo1)) |
f6bcfd97 BP |
5270 | return NULL; |
5271 | if (_argo0) { | |
5272 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5273 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5274 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetFont. Expected _wxTreeItemAttr_p."); | |
f6bcfd97 BP |
5275 | return NULL; |
5276 | } | |
5277 | } | |
5278 | if (_argo1) { | |
5279 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
aa2a5b86 RD |
5280 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { |
5281 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemAttr_SetFont. Expected _wxFont_p."); | |
f6bcfd97 BP |
5282 | return NULL; |
5283 | } | |
5284 | } | |
5285 | { | |
5286 | wxPy_BEGIN_ALLOW_THREADS; | |
aa2a5b86 | 5287 | wxTreeItemAttr_SetFont(_arg0,*_arg1); |
f6bcfd97 BP |
5288 | |
5289 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5290 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 RD |
5291 | } Py_INCREF(Py_None); |
5292 | _resultobj = Py_None; | |
f6bcfd97 BP |
5293 | return _resultobj; |
5294 | } | |
5295 | ||
aa2a5b86 RD |
5296 | #define wxTreeItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) |
5297 | static PyObject *_wrap_wxTreeItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5298 | PyObject * _resultobj; |
aa2a5b86 RD |
5299 | bool _result; |
5300 | wxTreeItemAttr * _arg0; | |
5301 | PyObject * _argo0 = 0; | |
5302 | char *_kwnames[] = { "self", NULL }; | |
8ab979d7 RD |
5303 | |
5304 | self = self; | |
aa2a5b86 | 5305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasTextColour",_kwnames,&_argo0)) |
8ab979d7 | 5306 | return NULL; |
aa2a5b86 RD |
5307 | if (_argo0) { |
5308 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5309 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasTextColour. Expected _wxTreeItemAttr_p."); | |
5311 | return NULL; | |
5312 | } | |
5313 | } | |
cf694132 RD |
5314 | { |
5315 | wxPy_BEGIN_ALLOW_THREADS; | |
aa2a5b86 | 5316 | _result = (bool )wxTreeItemAttr_HasTextColour(_arg0); |
cf694132 RD |
5317 | |
5318 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5319 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 5320 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5321 | return _resultobj; |
5322 | } | |
5323 | ||
aa2a5b86 RD |
5324 | #define wxTreeItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) |
5325 | static PyObject *_wrap_wxTreeItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 5326 | PyObject * _resultobj; |
aa2a5b86 RD |
5327 | bool _result; |
5328 | wxTreeItemAttr * _arg0; | |
1d99702e | 5329 | PyObject * _argo0 = 0; |
efc5f224 | 5330 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
5331 | |
5332 | self = self; | |
aa2a5b86 | 5333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasBackgroundColour",_kwnames,&_argo0)) |
cf694132 | 5334 | return NULL; |
1d99702e RD |
5335 | if (_argo0) { |
5336 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5337 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5338 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasBackgroundColour. Expected _wxTreeItemAttr_p."); | |
cf694132 RD |
5339 | return NULL; |
5340 | } | |
5341 | } | |
5342 | { | |
5343 | wxPy_BEGIN_ALLOW_THREADS; | |
aa2a5b86 | 5344 | _result = (bool )wxTreeItemAttr_HasBackgroundColour(_arg0); |
cf694132 RD |
5345 | |
5346 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5347 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 5348 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
5349 | return _resultobj; |
5350 | } | |
5351 | ||
aa2a5b86 RD |
5352 | #define wxTreeItemAttr_HasFont(_swigobj) (_swigobj->HasFont()) |
5353 | static PyObject *_wrap_wxTreeItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5354 | PyObject * _resultobj; |
aa2a5b86 RD |
5355 | bool _result; |
5356 | wxTreeItemAttr * _arg0; | |
1d99702e | 5357 | PyObject * _argo0 = 0; |
aa2a5b86 | 5358 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5359 | |
5360 | self = self; | |
aa2a5b86 | 5361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasFont",_kwnames,&_argo0)) |
8ab979d7 | 5362 | return NULL; |
1d99702e RD |
5363 | if (_argo0) { |
5364 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5365 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5366 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasFont. Expected _wxTreeItemAttr_p."); | |
8ab979d7 RD |
5367 | return NULL; |
5368 | } | |
5369 | } | |
cf694132 RD |
5370 | { |
5371 | wxPy_BEGIN_ALLOW_THREADS; | |
aa2a5b86 | 5372 | _result = (bool )wxTreeItemAttr_HasFont(_arg0); |
cf694132 RD |
5373 | |
5374 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5375 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 5376 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5377 | return _resultobj; |
5378 | } | |
5379 | ||
aa2a5b86 RD |
5380 | #define wxTreeItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) |
5381 | static PyObject *_wrap_wxTreeItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5382 | PyObject * _resultobj; |
aa2a5b86 RD |
5383 | wxColour * _result; |
5384 | wxTreeItemAttr * _arg0; | |
1d99702e | 5385 | PyObject * _argo0 = 0; |
efc5f224 | 5386 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5387 | char _ptemp[128]; |
5388 | ||
5389 | self = self; | |
aa2a5b86 | 5390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetTextColour",_kwnames,&_argo0)) |
8ab979d7 | 5391 | return NULL; |
1d99702e RD |
5392 | if (_argo0) { |
5393 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5394 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5395 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetTextColour. Expected _wxTreeItemAttr_p."); | |
8ab979d7 RD |
5396 | return NULL; |
5397 | } | |
5398 | } | |
cf694132 RD |
5399 | { |
5400 | wxPy_BEGIN_ALLOW_THREADS; | |
aa2a5b86 RD |
5401 | const wxColour & _result_ref = wxTreeItemAttr_GetTextColour(_arg0); |
5402 | _result = (wxColour *) &_result_ref; | |
cf694132 RD |
5403 | |
5404 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5405 | if (PyErr_Occurred()) return NULL; |
1d99702e | 5406 | } if (_result) { |
aa2a5b86 | 5407 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); |
1d99702e RD |
5408 | _resultobj = Py_BuildValue("s",_ptemp); |
5409 | } else { | |
5410 | Py_INCREF(Py_None); | |
5411 | _resultobj = Py_None; | |
5412 | } | |
8ab979d7 RD |
5413 | return _resultobj; |
5414 | } | |
5415 | ||
aa2a5b86 RD |
5416 | #define wxTreeItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) |
5417 | static PyObject *_wrap_wxTreeItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
630d84f2 | 5418 | PyObject * _resultobj; |
aa2a5b86 RD |
5419 | wxColour * _result; |
5420 | wxTreeItemAttr * _arg0; | |
1d99702e | 5421 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
5422 | char *_kwnames[] = { "self", NULL }; |
5423 | char _ptemp[128]; | |
5424 | ||
5425 | self = self; | |
5426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetBackgroundColour",_kwnames,&_argo0)) | |
5427 | return NULL; | |
5428 | if (_argo0) { | |
5429 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5430 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5431 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetBackgroundColour. Expected _wxTreeItemAttr_p."); | |
5432 | return NULL; | |
5433 | } | |
5434 | } | |
5435 | { | |
5436 | wxPy_BEGIN_ALLOW_THREADS; | |
5437 | const wxColour & _result_ref = wxTreeItemAttr_GetBackgroundColour(_arg0); | |
5438 | _result = (wxColour *) &_result_ref; | |
5439 | ||
5440 | wxPy_END_ALLOW_THREADS; | |
5441 | if (PyErr_Occurred()) return NULL; | |
5442 | } if (_result) { | |
5443 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
5444 | _resultobj = Py_BuildValue("s",_ptemp); | |
5445 | } else { | |
5446 | Py_INCREF(Py_None); | |
5447 | _resultobj = Py_None; | |
5448 | } | |
5449 | return _resultobj; | |
5450 | } | |
5451 | ||
5452 | #define wxTreeItemAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
5453 | static PyObject *_wrap_wxTreeItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5454 | PyObject * _resultobj; | |
5455 | wxFont * _result; | |
5456 | wxTreeItemAttr * _arg0; | |
5457 | PyObject * _argo0 = 0; | |
5458 | char *_kwnames[] = { "self", NULL }; | |
5459 | char _ptemp[128]; | |
5460 | ||
5461 | self = self; | |
5462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetFont",_kwnames,&_argo0)) | |
5463 | return NULL; | |
5464 | if (_argo0) { | |
5465 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5466 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5467 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetFont. Expected _wxTreeItemAttr_p."); | |
5468 | return NULL; | |
5469 | } | |
5470 | } | |
5471 | { | |
5472 | wxPy_BEGIN_ALLOW_THREADS; | |
5473 | const wxFont & _result_ref = wxTreeItemAttr_GetFont(_arg0); | |
5474 | _result = (wxFont *) &_result_ref; | |
5475 | ||
5476 | wxPy_END_ALLOW_THREADS; | |
5477 | if (PyErr_Occurred()) return NULL; | |
5478 | } if (_result) { | |
5479 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
5480 | _resultobj = Py_BuildValue("s",_ptemp); | |
5481 | } else { | |
5482 | Py_INCREF(Py_None); | |
5483 | _resultobj = Py_None; | |
5484 | } | |
5485 | return _resultobj; | |
5486 | } | |
5487 | ||
5488 | #define new_wxTreeItemId() (new wxTreeItemId()) | |
5489 | static PyObject *_wrap_new_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5490 | PyObject * _resultobj; | |
5491 | wxTreeItemId * _result; | |
5492 | char *_kwnames[] = { NULL }; | |
5493 | char _ptemp[128]; | |
5494 | ||
5495 | self = self; | |
5496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxTreeItemId",_kwnames)) | |
5497 | return NULL; | |
5498 | { | |
5499 | wxPy_BEGIN_ALLOW_THREADS; | |
5500 | _result = (wxTreeItemId *)new_wxTreeItemId(); | |
5501 | ||
5502 | wxPy_END_ALLOW_THREADS; | |
5503 | if (PyErr_Occurred()) return NULL; | |
5504 | } if (_result) { | |
5505 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
5506 | _resultobj = Py_BuildValue("s",_ptemp); | |
5507 | } else { | |
5508 | Py_INCREF(Py_None); | |
5509 | _resultobj = Py_None; | |
5510 | } | |
5511 | return _resultobj; | |
5512 | } | |
5513 | ||
5514 | #define delete_wxTreeItemId(_swigobj) (delete _swigobj) | |
5515 | static PyObject *_wrap_delete_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5516 | PyObject * _resultobj; | |
5517 | wxTreeItemId * _arg0; | |
5518 | PyObject * _argo0 = 0; | |
5519 | char *_kwnames[] = { "self", NULL }; | |
5520 | ||
5521 | self = self; | |
5522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTreeItemId",_kwnames,&_argo0)) | |
5523 | return NULL; | |
5524 | if (_argo0) { | |
5525 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5526 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
5527 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTreeItemId. Expected _wxTreeItemId_p."); | |
5528 | return NULL; | |
5529 | } | |
5530 | } | |
5531 | { | |
5532 | wxPy_BEGIN_ALLOW_THREADS; | |
5533 | delete_wxTreeItemId(_arg0); | |
5534 | ||
5535 | wxPy_END_ALLOW_THREADS; | |
5536 | if (PyErr_Occurred()) return NULL; | |
5537 | } Py_INCREF(Py_None); | |
5538 | _resultobj = Py_None; | |
5539 | return _resultobj; | |
5540 | } | |
5541 | ||
5542 | #define wxTreeItemId_IsOk(_swigobj) (_swigobj->IsOk()) | |
5543 | static PyObject *_wrap_wxTreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5544 | PyObject * _resultobj; | |
5545 | bool _result; | |
5546 | wxTreeItemId * _arg0; | |
5547 | PyObject * _argo0 = 0; | |
5548 | char *_kwnames[] = { "self", NULL }; | |
5549 | ||
5550 | self = self; | |
5551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemId_IsOk",_kwnames,&_argo0)) | |
5552 | return NULL; | |
5553 | if (_argo0) { | |
5554 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5555 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
5556 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId_IsOk. Expected _wxTreeItemId_p."); | |
5557 | return NULL; | |
5558 | } | |
5559 | } | |
5560 | { | |
5561 | wxPy_BEGIN_ALLOW_THREADS; | |
5562 | _result = (bool )wxTreeItemId_IsOk(_arg0); | |
5563 | ||
5564 | wxPy_END_ALLOW_THREADS; | |
5565 | if (PyErr_Occurred()) return NULL; | |
5566 | } _resultobj = Py_BuildValue("i",_result); | |
5567 | return _resultobj; | |
5568 | } | |
5569 | ||
5570 | static int wxTreeItemId___cmp__(wxTreeItemId *self,wxTreeItemId * other) { | |
5571 | if (! other) return -1; | |
5572 | return *self != *other; | |
5573 | } | |
5574 | static PyObject *_wrap_wxTreeItemId___cmp__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5575 | PyObject * _resultobj; | |
5576 | int _result; | |
5577 | wxTreeItemId * _arg0; | |
5578 | wxTreeItemId * _arg1; | |
5579 | PyObject * _argo0 = 0; | |
5580 | PyObject * _argo1 = 0; | |
5581 | char *_kwnames[] = { "self","other", NULL }; | |
5582 | ||
5583 | self = self; | |
5584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemId___cmp__",_kwnames,&_argo0,&_argo1)) | |
5585 | return NULL; | |
5586 | if (_argo0) { | |
5587 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5588 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
5589 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
5590 | return NULL; | |
5591 | } | |
5592 | } | |
5593 | if (_argo1) { | |
5594 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5595 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
5596 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
5597 | return NULL; | |
5598 | } | |
5599 | } | |
5600 | { | |
5601 | wxPy_BEGIN_ALLOW_THREADS; | |
5602 | _result = (int )wxTreeItemId___cmp__(_arg0,_arg1); | |
5603 | ||
5604 | wxPy_END_ALLOW_THREADS; | |
5605 | if (PyErr_Occurred()) return NULL; | |
5606 | } _resultobj = Py_BuildValue("i",_result); | |
5607 | return _resultobj; | |
5608 | } | |
5609 | ||
5610 | static void *SwigwxPyTreeItemDataTowxObject(void *ptr) { | |
5611 | wxPyTreeItemData *src; | |
5612 | wxObject *dest; | |
5613 | src = (wxPyTreeItemData *) ptr; | |
5614 | dest = (wxObject *) src; | |
5615 | return (void *) dest; | |
5616 | } | |
5617 | ||
5618 | #define new_wxTreeItemData(_swigarg0) (new wxPyTreeItemData(_swigarg0)) | |
5619 | static PyObject *_wrap_new_wxTreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5620 | PyObject * _resultobj; | |
5621 | wxPyTreeItemData * _result; | |
5622 | PyObject * _arg0 = (PyObject *) NULL; | |
5623 | PyObject * _obj0 = 0; | |
5624 | char *_kwnames[] = { "obj", NULL }; | |
5625 | char _ptemp[128]; | |
5626 | ||
5627 | self = self; | |
5628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxTreeItemData",_kwnames,&_obj0)) | |
5629 | return NULL; | |
5630 | if (_obj0) | |
5631 | { | |
5632 | _arg0 = _obj0; | |
5633 | } | |
5634 | { | |
5635 | wxPy_BEGIN_ALLOW_THREADS; | |
5636 | _result = (wxPyTreeItemData *)new_wxTreeItemData(_arg0); | |
5637 | ||
5638 | wxPy_END_ALLOW_THREADS; | |
5639 | if (PyErr_Occurred()) return NULL; | |
5640 | } if (_result) { | |
5641 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
5642 | _resultobj = Py_BuildValue("s",_ptemp); | |
5643 | } else { | |
5644 | Py_INCREF(Py_None); | |
5645 | _resultobj = Py_None; | |
5646 | } | |
5647 | return _resultobj; | |
5648 | } | |
5649 | ||
5650 | #define wxTreeItemData_GetData(_swigobj) (_swigobj->GetData()) | |
5651 | static PyObject *_wrap_wxTreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5652 | PyObject * _resultobj; | |
5653 | PyObject * _result; | |
5654 | wxPyTreeItemData * _arg0; | |
5655 | PyObject * _argo0 = 0; | |
5656 | char *_kwnames[] = { "self", NULL }; | |
5657 | ||
5658 | self = self; | |
5659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetData",_kwnames,&_argo0)) | |
5660 | return NULL; | |
5661 | if (_argo0) { | |
5662 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5663 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
5664 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetData. Expected _wxPyTreeItemData_p."); | |
5665 | return NULL; | |
5666 | } | |
5667 | } | |
5668 | { | |
5669 | wxPy_BEGIN_ALLOW_THREADS; | |
5670 | _result = (PyObject *)wxTreeItemData_GetData(_arg0); | |
5671 | ||
5672 | wxPy_END_ALLOW_THREADS; | |
5673 | if (PyErr_Occurred()) return NULL; | |
5674 | }{ | |
5675 | _resultobj = _result; | |
5676 | } | |
5677 | return _resultobj; | |
5678 | } | |
5679 | ||
5680 | #define wxTreeItemData_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
5681 | static PyObject *_wrap_wxTreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5682 | PyObject * _resultobj; | |
5683 | wxPyTreeItemData * _arg0; | |
5684 | PyObject * _arg1; | |
5685 | PyObject * _argo0 = 0; | |
5686 | PyObject * _obj1 = 0; | |
5687 | char *_kwnames[] = { "self","obj", NULL }; | |
5688 | ||
5689 | self = self; | |
5690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetData",_kwnames,&_argo0,&_obj1)) | |
5691 | return NULL; | |
5692 | if (_argo0) { | |
5693 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5694 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
5695 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetData. Expected _wxPyTreeItemData_p."); | |
5696 | return NULL; | |
5697 | } | |
5698 | } | |
5699 | { | |
5700 | _arg1 = _obj1; | |
5701 | } | |
5702 | { | |
5703 | wxPy_BEGIN_ALLOW_THREADS; | |
5704 | wxTreeItemData_SetData(_arg0,_arg1); | |
5705 | ||
5706 | wxPy_END_ALLOW_THREADS; | |
5707 | if (PyErr_Occurred()) return NULL; | |
5708 | } Py_INCREF(Py_None); | |
5709 | _resultobj = Py_None; | |
5710 | return _resultobj; | |
5711 | } | |
5712 | ||
5713 | #define wxTreeItemData_GetId(_swigobj) (_swigobj->GetId()) | |
5714 | static PyObject *_wrap_wxTreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5715 | PyObject * _resultobj; | |
5716 | wxTreeItemId * _result; | |
5717 | wxPyTreeItemData * _arg0; | |
5718 | PyObject * _argo0 = 0; | |
5719 | char *_kwnames[] = { "self", NULL }; | |
5720 | char _ptemp[128]; | |
5721 | ||
5722 | self = self; | |
5723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetId",_kwnames,&_argo0)) | |
5724 | return NULL; | |
5725 | if (_argo0) { | |
5726 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5727 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
5728 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetId. Expected _wxPyTreeItemData_p."); | |
5729 | return NULL; | |
5730 | } | |
5731 | } | |
5732 | { | |
5733 | wxPy_BEGIN_ALLOW_THREADS; | |
5734 | const wxTreeItemId & _result_ref = wxTreeItemData_GetId(_arg0); | |
5735 | _result = (wxTreeItemId *) &_result_ref; | |
5736 | ||
5737 | wxPy_END_ALLOW_THREADS; | |
5738 | if (PyErr_Occurred()) return NULL; | |
5739 | } if (_result) { | |
5740 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
5741 | _resultobj = Py_BuildValue("s",_ptemp); | |
5742 | } else { | |
5743 | Py_INCREF(Py_None); | |
5744 | _resultobj = Py_None; | |
5745 | } | |
5746 | return _resultobj; | |
5747 | } | |
5748 | ||
5749 | #define wxTreeItemData_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
5750 | static PyObject *_wrap_wxTreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5751 | PyObject * _resultobj; | |
5752 | wxPyTreeItemData * _arg0; | |
5753 | wxTreeItemId * _arg1; | |
5754 | PyObject * _argo0 = 0; | |
5755 | PyObject * _argo1 = 0; | |
5756 | char *_kwnames[] = { "self","id", NULL }; | |
630d84f2 RD |
5757 | |
5758 | self = self; | |
efc5f224 | 5759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetId",_kwnames,&_argo0,&_argo1)) |
630d84f2 | 5760 | return NULL; |
1d99702e RD |
5761 | if (_argo0) { |
5762 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5763 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 5764 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetId. Expected _wxPyTreeItemData_p."); |
630d84f2 RD |
5765 | return NULL; |
5766 | } | |
5767 | } | |
1d99702e RD |
5768 | if (_argo1) { |
5769 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5770 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
630d84f2 RD |
5771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemData_SetId. Expected _wxTreeItemId_p."); |
5772 | return NULL; | |
5773 | } | |
5774 | } | |
cf694132 RD |
5775 | { |
5776 | wxPy_BEGIN_ALLOW_THREADS; | |
5777 | wxTreeItemData_SetId(_arg0,*_arg1); | |
5778 | ||
5779 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5780 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5781 | } Py_INCREF(Py_None); |
630d84f2 RD |
5782 | _resultobj = Py_None; |
5783 | return _resultobj; | |
5784 | } | |
5785 | ||
8bf5d46e RD |
5786 | static void *SwigwxTreeEventTowxNotifyEvent(void *ptr) { |
5787 | wxTreeEvent *src; | |
5788 | wxNotifyEvent *dest; | |
5789 | src = (wxTreeEvent *) ptr; | |
5790 | dest = (wxNotifyEvent *) src; | |
5791 | return (void *) dest; | |
5792 | } | |
5793 | ||
8ab979d7 RD |
5794 | static void *SwigwxTreeEventTowxCommandEvent(void *ptr) { |
5795 | wxTreeEvent *src; | |
5796 | wxCommandEvent *dest; | |
5797 | src = (wxTreeEvent *) ptr; | |
5798 | dest = (wxCommandEvent *) src; | |
5799 | return (void *) dest; | |
5800 | } | |
5801 | ||
5802 | static void *SwigwxTreeEventTowxEvent(void *ptr) { | |
5803 | wxTreeEvent *src; | |
5804 | wxEvent *dest; | |
5805 | src = (wxTreeEvent *) ptr; | |
5806 | dest = (wxEvent *) src; | |
5807 | return (void *) dest; | |
5808 | } | |
5809 | ||
9df61a29 RD |
5810 | static void *SwigwxTreeEventTowxObject(void *ptr) { |
5811 | wxTreeEvent *src; | |
5812 | wxObject *dest; | |
5813 | src = (wxTreeEvent *) ptr; | |
5814 | dest = (wxObject *) src; | |
5815 | return (void *) dest; | |
5816 | } | |
5817 | ||
aa2a5b86 RD |
5818 | #define new_wxTreeEvent(_swigarg0,_swigarg1) (new wxTreeEvent(_swigarg0,_swigarg1)) |
5819 | static PyObject *_wrap_new_wxTreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5820 | PyObject * _resultobj; | |
5821 | wxTreeEvent * _result; | |
5822 | wxEventType _arg0 = (wxEventType ) wxEVT_NULL; | |
5823 | int _arg1 = (int ) 0; | |
5824 | char *_kwnames[] = { "commandType","id", NULL }; | |
5825 | char _ptemp[128]; | |
5826 | ||
5827 | self = self; | |
5828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxTreeEvent",_kwnames,&_arg0,&_arg1)) | |
5829 | return NULL; | |
5830 | { | |
5831 | wxPy_BEGIN_ALLOW_THREADS; | |
5832 | _result = (wxTreeEvent *)new_wxTreeEvent(_arg0,_arg1); | |
5833 | ||
5834 | wxPy_END_ALLOW_THREADS; | |
5835 | if (PyErr_Occurred()) return NULL; | |
5836 | } if (_result) { | |
5837 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeEvent_p"); | |
5838 | _resultobj = Py_BuildValue("s",_ptemp); | |
5839 | } else { | |
5840 | Py_INCREF(Py_None); | |
5841 | _resultobj = Py_None; | |
5842 | } | |
5843 | return _resultobj; | |
5844 | } | |
5845 | ||
d5c9047a | 5846 | #define wxTreeEvent_GetItem(_swigobj) (_swigobj->GetItem()) |
efc5f224 | 5847 | static PyObject *_wrap_wxTreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5848 | PyObject * _resultobj; |
d5c9047a | 5849 | wxTreeItemId * _result; |
8ab979d7 | 5850 | wxTreeEvent * _arg0; |
1d99702e | 5851 | PyObject * _argo0 = 0; |
efc5f224 | 5852 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 5853 | char _ptemp[128]; |
8ab979d7 RD |
5854 | |
5855 | self = self; | |
efc5f224 | 5856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetItem",_kwnames,&_argo0)) |
8ab979d7 | 5857 | return NULL; |
1d99702e RD |
5858 | if (_argo0) { |
5859 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5860 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 5861 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetItem. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
5862 | return NULL; |
5863 | } | |
5864 | } | |
cf694132 RD |
5865 | { |
5866 | wxPy_BEGIN_ALLOW_THREADS; | |
5867 | _result = new wxTreeItemId (wxTreeEvent_GetItem(_arg0)); | |
5868 | ||
5869 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5870 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5871 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 5872 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
5873 | return _resultobj; |
5874 | } | |
5875 | ||
d5c9047a | 5876 | #define wxTreeEvent_GetOldItem(_swigobj) (_swigobj->GetOldItem()) |
efc5f224 | 5877 | static PyObject *_wrap_wxTreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5878 | PyObject * _resultobj; |
d5c9047a | 5879 | wxTreeItemId * _result; |
8ab979d7 | 5880 | wxTreeEvent * _arg0; |
1d99702e | 5881 | PyObject * _argo0 = 0; |
efc5f224 | 5882 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5883 | char _ptemp[128]; |
5884 | ||
5885 | self = self; | |
efc5f224 | 5886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetOldItem",_kwnames,&_argo0)) |
8ab979d7 | 5887 | return NULL; |
1d99702e RD |
5888 | if (_argo0) { |
5889 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5890 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 5891 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetOldItem. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
5892 | return NULL; |
5893 | } | |
5894 | } | |
cf694132 RD |
5895 | { |
5896 | wxPy_BEGIN_ALLOW_THREADS; | |
5897 | _result = new wxTreeItemId (wxTreeEvent_GetOldItem(_arg0)); | |
5898 | ||
5899 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5900 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5901 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
8ab979d7 RD |
5902 | _resultobj = Py_BuildValue("s",_ptemp); |
5903 | return _resultobj; | |
5904 | } | |
5905 | ||
d5c9047a | 5906 | #define wxTreeEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) |
efc5f224 | 5907 | static PyObject *_wrap_wxTreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5908 | PyObject * _resultobj; |
d5c9047a | 5909 | wxPoint * _result; |
8ab979d7 | 5910 | wxTreeEvent * _arg0; |
1d99702e | 5911 | PyObject * _argo0 = 0; |
efc5f224 | 5912 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 5913 | char _ptemp[128]; |
8ab979d7 RD |
5914 | |
5915 | self = self; | |
efc5f224 | 5916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetPoint",_kwnames,&_argo0)) |
8ab979d7 | 5917 | return NULL; |
1d99702e RD |
5918 | if (_argo0) { |
5919 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5920 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 5921 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetPoint. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
5922 | return NULL; |
5923 | } | |
5924 | } | |
cf694132 RD |
5925 | { |
5926 | wxPy_BEGIN_ALLOW_THREADS; | |
5927 | _result = new wxPoint (wxTreeEvent_GetPoint(_arg0)); | |
5928 | ||
5929 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5930 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5931 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
d5c9047a | 5932 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
5933 | return _resultobj; |
5934 | } | |
5935 | ||
d5c9047a | 5936 | #define wxTreeEvent_GetCode(_swigobj) (_swigobj->GetCode()) |
efc5f224 | 5937 | static PyObject *_wrap_wxTreeEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5938 | PyObject * _resultobj; |
d5c9047a | 5939 | int _result; |
8ab979d7 | 5940 | wxTreeEvent * _arg0; |
1d99702e | 5941 | PyObject * _argo0 = 0; |
efc5f224 | 5942 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5943 | |
5944 | self = self; | |
efc5f224 | 5945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetCode",_kwnames,&_argo0)) |
8ab979d7 | 5946 | return NULL; |
1d99702e RD |
5947 | if (_argo0) { |
5948 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5949 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 5950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetCode. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
5951 | return NULL; |
5952 | } | |
5953 | } | |
cf694132 RD |
5954 | { |
5955 | wxPy_BEGIN_ALLOW_THREADS; | |
5956 | _result = (int )wxTreeEvent_GetCode(_arg0); | |
5957 | ||
5958 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5959 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5960 | } _resultobj = Py_BuildValue("i",_result); |
d5c9047a RD |
5961 | return _resultobj; |
5962 | } | |
5963 | ||
8bf5d46e | 5964 | #define wxTreeEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 5965 | static PyObject *_wrap_wxTreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 5966 | PyObject * _resultobj; |
8bf5d46e | 5967 | wxString * _result; |
d5c9047a | 5968 | wxTreeEvent * _arg0; |
1d99702e | 5969 | PyObject * _argo0 = 0; |
efc5f224 | 5970 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
5971 | |
5972 | self = self; | |
efc5f224 | 5973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetLabel",_kwnames,&_argo0)) |
d5c9047a | 5974 | return NULL; |
1d99702e RD |
5975 | if (_argo0) { |
5976 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5977 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
8bf5d46e | 5978 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetLabel. Expected _wxTreeEvent_p."); |
d5c9047a RD |
5979 | return NULL; |
5980 | } | |
5981 | } | |
cf694132 RD |
5982 | { |
5983 | wxPy_BEGIN_ALLOW_THREADS; | |
8bf5d46e RD |
5984 | const wxString & _result_ref = wxTreeEvent_GetLabel(_arg0); |
5985 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
5986 | |
5987 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5988 | if (PyErr_Occurred()) return NULL; |
8bf5d46e | 5989 | }{ |
eec92d76 | 5990 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8bf5d46e | 5991 | } |
8ab979d7 RD |
5992 | return _resultobj; |
5993 | } | |
5994 | ||
f6bcfd97 BP |
5995 | static void *SwigwxPyTreeCtrlTowxControl(void *ptr) { |
5996 | wxPyTreeCtrl *src; | |
8ab979d7 | 5997 | wxControl *dest; |
f6bcfd97 | 5998 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
5999 | dest = (wxControl *) src; |
6000 | return (void *) dest; | |
6001 | } | |
6002 | ||
f6bcfd97 BP |
6003 | static void *SwigwxPyTreeCtrlTowxWindow(void *ptr) { |
6004 | wxPyTreeCtrl *src; | |
8ab979d7 | 6005 | wxWindow *dest; |
f6bcfd97 | 6006 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
6007 | dest = (wxWindow *) src; |
6008 | return (void *) dest; | |
6009 | } | |
6010 | ||
f6bcfd97 BP |
6011 | static void *SwigwxPyTreeCtrlTowxEvtHandler(void *ptr) { |
6012 | wxPyTreeCtrl *src; | |
8ab979d7 | 6013 | wxEvtHandler *dest; |
f6bcfd97 | 6014 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
6015 | dest = (wxEvtHandler *) src; |
6016 | return (void *) dest; | |
6017 | } | |
6018 | ||
9df61a29 RD |
6019 | static void *SwigwxPyTreeCtrlTowxObject(void *ptr) { |
6020 | wxPyTreeCtrl *src; | |
6021 | wxObject *dest; | |
6022 | src = (wxPyTreeCtrl *) ptr; | |
6023 | dest = (wxObject *) src; | |
6024 | return (void *) dest; | |
6025 | } | |
6026 | ||
f6bcfd97 | 6027 | #define new_wxTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 6028 | static PyObject *_wrap_new_wxTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6029 | PyObject * _resultobj; |
f6bcfd97 | 6030 | wxPyTreeCtrl * _result; |
8ab979d7 | 6031 | wxWindow * _arg0; |
1d99702e | 6032 | wxWindowID _arg1 = (wxWindowID ) -1; |
b68dc582 RD |
6033 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
6034 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
aa2a5b86 | 6035 | long _arg4 = (long ) (wxTR_HAS_BUTTONS)|(wxTR_LINES_AT_ROOT); |
b68dc582 | 6036 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
6037 | char * _arg6 = (char *) "wxTreeCtrl"; |
6038 | PyObject * _argo0 = 0; | |
2f90df85 RD |
6039 | wxPoint temp; |
6040 | PyObject * _obj2 = 0; | |
6041 | wxSize temp0; | |
6042 | PyObject * _obj3 = 0; | |
1d99702e | 6043 | PyObject * _argo5 = 0; |
efc5f224 | 6044 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
6045 | char _ptemp[128]; |
6046 | ||
6047 | self = self; | |
2f90df85 | 6048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxTreeCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) |
8ab979d7 | 6049 | return NULL; |
1d99702e RD |
6050 | if (_argo0) { |
6051 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6052 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6053 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTreeCtrl. Expected _wxWindow_p."); |
6054 | return NULL; | |
6055 | } | |
6056 | } | |
2f90df85 RD |
6057 | if (_obj2) |
6058 | { | |
6059 | _arg2 = &temp; | |
6060 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 6061 | return NULL; |
2f90df85 RD |
6062 | } |
6063 | if (_obj3) | |
6064 | { | |
6065 | _arg3 = &temp0; | |
6066 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 6067 | return NULL; |
2f90df85 | 6068 | } |
1d99702e RD |
6069 | if (_argo5) { |
6070 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
6071 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
8ab979d7 RD |
6072 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxTreeCtrl. Expected _wxValidator_p."); |
6073 | return NULL; | |
6074 | } | |
6075 | } | |
cf694132 RD |
6076 | { |
6077 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 6078 | _result = (wxPyTreeCtrl *)new_wxTreeCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); |
cf694132 RD |
6079 | |
6080 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6081 | if (PyErr_Occurred()) return NULL; |
1d99702e | 6082 | } if (_result) { |
f6bcfd97 | 6083 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p"); |
1d99702e RD |
6084 | _resultobj = Py_BuildValue("s",_ptemp); |
6085 | } else { | |
6086 | Py_INCREF(Py_None); | |
6087 | _resultobj = Py_None; | |
6088 | } | |
8ab979d7 RD |
6089 | return _resultobj; |
6090 | } | |
6091 | ||
aa2a5b86 RD |
6092 | #define new_wxPreTreeCtrl() (new wxPyTreeCtrl()) |
6093 | static PyObject *_wrap_new_wxPreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f6bcfd97 | 6094 | PyObject * _resultobj; |
aa2a5b86 RD |
6095 | wxPyTreeCtrl * _result; |
6096 | char *_kwnames[] = { NULL }; | |
6097 | char _ptemp[128]; | |
6098 | ||
6099 | self = self; | |
6100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreTreeCtrl",_kwnames)) | |
6101 | return NULL; | |
6102 | { | |
6103 | wxPy_BEGIN_ALLOW_THREADS; | |
6104 | _result = (wxPyTreeCtrl *)new_wxPreTreeCtrl(); | |
6105 | ||
6106 | wxPy_END_ALLOW_THREADS; | |
6107 | if (PyErr_Occurred()) return NULL; | |
6108 | } if (_result) { | |
6109 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p"); | |
6110 | _resultobj = Py_BuildValue("s",_ptemp); | |
6111 | } else { | |
6112 | Py_INCREF(Py_None); | |
6113 | _resultobj = Py_None; | |
6114 | } | |
6115 | return _resultobj; | |
6116 | } | |
6117 | ||
6118 | #define wxTreeCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
6119 | static PyObject *_wrap_wxTreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6120 | PyObject * _resultobj; | |
6121 | bool _result; | |
f6bcfd97 | 6122 | wxPyTreeCtrl * _arg0; |
aa2a5b86 RD |
6123 | wxWindow * _arg1; |
6124 | wxWindowID _arg2 = (wxWindowID ) -1; | |
6125 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6126 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6127 | long _arg5 = (long ) (wxTR_HAS_BUTTONS)|(wxTR_LINES_AT_ROOT); | |
6128 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
6129 | char * _arg7 = (char *) "wxTreeCtrl"; | |
f6bcfd97 | 6130 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
6131 | PyObject * _argo1 = 0; |
6132 | wxPoint temp; | |
6133 | PyObject * _obj3 = 0; | |
6134 | wxSize temp0; | |
6135 | PyObject * _obj4 = 0; | |
6136 | PyObject * _argo6 = 0; | |
6137 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
f6bcfd97 BP |
6138 | |
6139 | self = self; | |
aa2a5b86 | 6140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOs:wxTreeCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
f6bcfd97 BP |
6141 | return NULL; |
6142 | if (_argo0) { | |
6143 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6144 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
aa2a5b86 RD |
6145 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Create. Expected _wxPyTreeCtrl_p."); |
6146 | return NULL; | |
6147 | } | |
6148 | } | |
6149 | if (_argo1) { | |
6150 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6151 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6152 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Create. Expected _wxWindow_p."); | |
f6bcfd97 BP |
6153 | return NULL; |
6154 | } | |
6155 | } | |
aa2a5b86 | 6156 | if (_obj3) |
f6bcfd97 | 6157 | { |
aa2a5b86 RD |
6158 | _arg3 = &temp; |
6159 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6160 | return NULL; | |
f6bcfd97 | 6161 | } |
aa2a5b86 | 6162 | if (_obj4) |
f6bcfd97 | 6163 | { |
aa2a5b86 RD |
6164 | _arg4 = &temp0; |
6165 | if (! wxSize_helper(_obj4, &_arg4)) | |
6166 | return NULL; | |
f6bcfd97 | 6167 | } |
aa2a5b86 RD |
6168 | if (_argo6) { |
6169 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
6170 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
6171 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_Create. Expected _wxValidator_p."); | |
6172 | return NULL; | |
6173 | } | |
6174 | } | |
f6bcfd97 BP |
6175 | { |
6176 | wxPy_BEGIN_ALLOW_THREADS; | |
aa2a5b86 | 6177 | _result = (bool )wxTreeCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); |
f6bcfd97 BP |
6178 | |
6179 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6180 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 6181 | } _resultobj = Py_BuildValue("i",_result); |
f6bcfd97 BP |
6182 | return _resultobj; |
6183 | } | |
6184 | ||
aa2a5b86 RD |
6185 | #define wxTreeCtrl__setSelf(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setSelf(_swigarg0,_swigarg1)) |
6186 | static PyObject *_wrap_wxTreeCtrl__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c4165ad RD |
6187 | PyObject * _resultobj; |
6188 | wxPyTreeCtrl * _arg0; | |
aa2a5b86 RD |
6189 | PyObject * _arg1; |
6190 | PyObject * _arg2; | |
9c4165ad | 6191 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
6192 | PyObject * _obj1 = 0; |
6193 | PyObject * _obj2 = 0; | |
6194 | char *_kwnames[] = { "self","self","_class", NULL }; | |
9c4165ad RD |
6195 | |
6196 | self = self; | |
aa2a5b86 | 6197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl__setSelf",_kwnames,&_argo0,&_obj1,&_obj2)) |
9c4165ad RD |
6198 | return NULL; |
6199 | if (_argo0) { | |
6200 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6201 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
aa2a5b86 | 6202 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl__setSelf. Expected _wxPyTreeCtrl_p."); |
9c4165ad RD |
6203 | return NULL; |
6204 | } | |
6205 | } | |
aa2a5b86 RD |
6206 | { |
6207 | _arg1 = _obj1; | |
6208 | } | |
6209 | { | |
6210 | _arg2 = _obj2; | |
6211 | } | |
9c4165ad RD |
6212 | { |
6213 | wxPy_BEGIN_ALLOW_THREADS; | |
aa2a5b86 | 6214 | wxTreeCtrl__setSelf(_arg0,_arg1,_arg2); |
9c4165ad RD |
6215 | |
6216 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6217 | if (PyErr_Occurred()) return NULL; |
9c4165ad RD |
6218 | } Py_INCREF(Py_None); |
6219 | _resultobj = Py_None; | |
6220 | return _resultobj; | |
6221 | } | |
6222 | ||
d5c9047a | 6223 | #define wxTreeCtrl_GetCount(_swigobj) (_swigobj->GetCount()) |
efc5f224 | 6224 | static PyObject *_wrap_wxTreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6225 | PyObject * _resultobj; |
c127177f | 6226 | size_t _result; |
f6bcfd97 | 6227 | wxPyTreeCtrl * _arg0; |
1d99702e | 6228 | PyObject * _argo0 = 0; |
efc5f224 | 6229 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6230 | |
6231 | self = self; | |
efc5f224 | 6232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetCount",_kwnames,&_argo0)) |
8ab979d7 | 6233 | return NULL; |
1d99702e RD |
6234 | if (_argo0) { |
6235 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6236 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6237 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetCount. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6238 | return NULL; |
6239 | } | |
6240 | } | |
cf694132 RD |
6241 | { |
6242 | wxPy_BEGIN_ALLOW_THREADS; | |
c127177f | 6243 | _result = (size_t )wxTreeCtrl_GetCount(_arg0); |
cf694132 RD |
6244 | |
6245 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6246 | if (PyErr_Occurred()) return NULL; |
c127177f | 6247 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6248 | return _resultobj; |
6249 | } | |
6250 | ||
d5c9047a | 6251 | #define wxTreeCtrl_GetIndent(_swigobj) (_swigobj->GetIndent()) |
efc5f224 | 6252 | static PyObject *_wrap_wxTreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6253 | PyObject * _resultobj; |
d5c9047a | 6254 | unsigned int _result; |
f6bcfd97 | 6255 | wxPyTreeCtrl * _arg0; |
1d99702e | 6256 | PyObject * _argo0 = 0; |
efc5f224 | 6257 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6258 | |
6259 | self = self; | |
efc5f224 | 6260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetIndent",_kwnames,&_argo0)) |
8ab979d7 | 6261 | return NULL; |
1d99702e RD |
6262 | if (_argo0) { |
6263 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6264 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6265 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetIndent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6266 | return NULL; |
6267 | } | |
6268 | } | |
cf694132 RD |
6269 | { |
6270 | wxPy_BEGIN_ALLOW_THREADS; | |
6271 | _result = (unsigned int )wxTreeCtrl_GetIndent(_arg0); | |
6272 | ||
6273 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6274 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6275 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6276 | return _resultobj; |
6277 | } | |
6278 | ||
d5c9047a | 6279 | #define wxTreeCtrl_SetIndent(_swigobj,_swigarg0) (_swigobj->SetIndent(_swigarg0)) |
efc5f224 | 6280 | static PyObject *_wrap_wxTreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6281 | PyObject * _resultobj; |
f6bcfd97 | 6282 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6283 | unsigned int _arg1; |
1d99702e | 6284 | PyObject * _argo0 = 0; |
efc5f224 | 6285 | char *_kwnames[] = { "self","indent", NULL }; |
8ab979d7 RD |
6286 | |
6287 | self = self; | |
efc5f224 | 6288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetIndent",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6289 | return NULL; |
1d99702e RD |
6290 | if (_argo0) { |
6291 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6292 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6293 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetIndent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6294 | return NULL; |
6295 | } | |
6296 | } | |
cf694132 RD |
6297 | { |
6298 | wxPy_BEGIN_ALLOW_THREADS; | |
6299 | wxTreeCtrl_SetIndent(_arg0,_arg1); | |
6300 | ||
6301 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6302 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6303 | } Py_INCREF(Py_None); |
d5c9047a | 6304 | _resultobj = Py_None; |
8ab979d7 RD |
6305 | return _resultobj; |
6306 | } | |
6307 | ||
d5c9047a | 6308 | #define wxTreeCtrl_GetImageList(_swigobj) (_swigobj->GetImageList()) |
efc5f224 | 6309 | static PyObject *_wrap_wxTreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6310 | PyObject * _resultobj; |
d5c9047a | 6311 | wxImageList * _result; |
f6bcfd97 | 6312 | wxPyTreeCtrl * _arg0; |
1d99702e | 6313 | PyObject * _argo0 = 0; |
efc5f224 | 6314 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6315 | |
6316 | self = self; | |
efc5f224 | 6317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetImageList",_kwnames,&_argo0)) |
8ab979d7 | 6318 | return NULL; |
1d99702e RD |
6319 | if (_argo0) { |
6320 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6321 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6322 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6323 | return NULL; |
6324 | } | |
6325 | } | |
cf694132 RD |
6326 | { |
6327 | wxPy_BEGIN_ALLOW_THREADS; | |
6328 | _result = (wxImageList *)wxTreeCtrl_GetImageList(_arg0); | |
6329 | ||
6330 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6331 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 6332 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
6333 | return _resultobj; |
6334 | } | |
6335 | ||
d5c9047a | 6336 | #define wxTreeCtrl_GetStateImageList(_swigobj) (_swigobj->GetStateImageList()) |
efc5f224 | 6337 | static PyObject *_wrap_wxTreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6338 | PyObject * _resultobj; |
d5c9047a | 6339 | wxImageList * _result; |
f6bcfd97 | 6340 | wxPyTreeCtrl * _arg0; |
1d99702e | 6341 | PyObject * _argo0 = 0; |
efc5f224 | 6342 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6343 | |
6344 | self = self; | |
efc5f224 | 6345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetStateImageList",_kwnames,&_argo0)) |
8ab979d7 | 6346 | return NULL; |
1d99702e RD |
6347 | if (_argo0) { |
6348 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6349 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6350 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetStateImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6351 | return NULL; |
6352 | } | |
6353 | } | |
cf694132 RD |
6354 | { |
6355 | wxPy_BEGIN_ALLOW_THREADS; | |
6356 | _result = (wxImageList *)wxTreeCtrl_GetStateImageList(_arg0); | |
6357 | ||
6358 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6359 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 6360 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
6361 | return _resultobj; |
6362 | } | |
6363 | ||
d5c9047a | 6364 | #define wxTreeCtrl_SetImageList(_swigobj,_swigarg0) (_swigobj->SetImageList(_swigarg0)) |
efc5f224 | 6365 | static PyObject *_wrap_wxTreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6366 | PyObject * _resultobj; |
f6bcfd97 | 6367 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6368 | wxImageList * _arg1; |
1d99702e RD |
6369 | PyObject * _argo0 = 0; |
6370 | PyObject * _argo1 = 0; | |
efc5f224 | 6371 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
6372 | |
6373 | self = self; | |
efc5f224 | 6374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6375 | return NULL; |
1d99702e RD |
6376 | if (_argo0) { |
6377 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6378 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6379 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6380 | return NULL; |
6381 | } | |
6382 | } | |
1d99702e RD |
6383 | if (_argo1) { |
6384 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6385 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
d5c9047a RD |
6386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetImageList. Expected _wxImageList_p."); |
6387 | return NULL; | |
6388 | } | |
6389 | } | |
cf694132 RD |
6390 | { |
6391 | wxPy_BEGIN_ALLOW_THREADS; | |
6392 | wxTreeCtrl_SetImageList(_arg0,_arg1); | |
6393 | ||
6394 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6395 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6396 | } Py_INCREF(Py_None); |
d5c9047a | 6397 | _resultobj = Py_None; |
8ab979d7 RD |
6398 | return _resultobj; |
6399 | } | |
6400 | ||
d5c9047a | 6401 | #define wxTreeCtrl_SetStateImageList(_swigobj,_swigarg0) (_swigobj->SetStateImageList(_swigarg0)) |
efc5f224 | 6402 | static PyObject *_wrap_wxTreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6403 | PyObject * _resultobj; |
f6bcfd97 | 6404 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6405 | wxImageList * _arg1; |
1d99702e RD |
6406 | PyObject * _argo0 = 0; |
6407 | PyObject * _argo1 = 0; | |
efc5f224 | 6408 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
6409 | |
6410 | self = self; | |
efc5f224 | 6411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetStateImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6412 | return NULL; |
1d99702e RD |
6413 | if (_argo0) { |
6414 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6415 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6416 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetStateImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6417 | return NULL; |
6418 | } | |
6419 | } | |
1d99702e RD |
6420 | if (_argo1) { |
6421 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6422 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
d5c9047a RD |
6423 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetStateImageList. Expected _wxImageList_p."); |
6424 | return NULL; | |
6425 | } | |
6426 | } | |
cf694132 RD |
6427 | { |
6428 | wxPy_BEGIN_ALLOW_THREADS; | |
6429 | wxTreeCtrl_SetStateImageList(_arg0,_arg1); | |
6430 | ||
6431 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6432 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6433 | } Py_INCREF(Py_None); |
d5c9047a | 6434 | _resultobj = Py_None; |
8ab979d7 RD |
6435 | return _resultobj; |
6436 | } | |
6437 | ||
aa2a5b86 RD |
6438 | #define wxTreeCtrl_AssignImageList(_swigobj,_swigarg0) (_swigobj->AssignImageList(_swigarg0)) |
6439 | static PyObject *_wrap_wxTreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6440 | PyObject * _resultobj; | |
6441 | wxPyTreeCtrl * _arg0; | |
6442 | wxImageList * _arg1; | |
6443 | PyObject * _argo0 = 0; | |
6444 | PyObject * _argo1 = 0; | |
6445 | char *_kwnames[] = { "self","imageList", NULL }; | |
6446 | ||
6447 | self = self; | |
6448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignImageList",_kwnames,&_argo0,&_argo1)) | |
6449 | return NULL; | |
6450 | if (_argo0) { | |
6451 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6452 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6453 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignImageList. Expected _wxPyTreeCtrl_p."); | |
6454 | return NULL; | |
6455 | } | |
6456 | } | |
6457 | if (_argo1) { | |
6458 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6459 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
6460 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignImageList. Expected _wxImageList_p."); | |
6461 | return NULL; | |
6462 | } | |
6463 | } | |
6464 | { | |
6465 | wxPy_BEGIN_ALLOW_THREADS; | |
6466 | wxTreeCtrl_AssignImageList(_arg0,_arg1); | |
6467 | ||
6468 | wxPy_END_ALLOW_THREADS; | |
6469 | if (PyErr_Occurred()) return NULL; | |
6470 | } Py_INCREF(Py_None); | |
6471 | _resultobj = Py_None; | |
6472 | return _resultobj; | |
6473 | } | |
6474 | ||
6475 | #define wxTreeCtrl_AssignStateImageList(_swigobj,_swigarg0) (_swigobj->AssignStateImageList(_swigarg0)) | |
6476 | static PyObject *_wrap_wxTreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6477 | PyObject * _resultobj; | |
6478 | wxPyTreeCtrl * _arg0; | |
6479 | wxImageList * _arg1; | |
6480 | PyObject * _argo0 = 0; | |
6481 | PyObject * _argo1 = 0; | |
6482 | char *_kwnames[] = { "self","imageList", NULL }; | |
6483 | ||
6484 | self = self; | |
6485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignStateImageList",_kwnames,&_argo0,&_argo1)) | |
6486 | return NULL; | |
6487 | if (_argo0) { | |
6488 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6489 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6490 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignStateImageList. Expected _wxPyTreeCtrl_p."); | |
6491 | return NULL; | |
6492 | } | |
6493 | } | |
6494 | if (_argo1) { | |
6495 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6496 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
6497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignStateImageList. Expected _wxImageList_p."); | |
6498 | return NULL; | |
6499 | } | |
6500 | } | |
6501 | { | |
6502 | wxPy_BEGIN_ALLOW_THREADS; | |
6503 | wxTreeCtrl_AssignStateImageList(_arg0,_arg1); | |
6504 | ||
6505 | wxPy_END_ALLOW_THREADS; | |
6506 | if (PyErr_Occurred()) return NULL; | |
6507 | } Py_INCREF(Py_None); | |
6508 | _resultobj = Py_None; | |
6509 | return _resultobj; | |
6510 | } | |
6511 | ||
b1462dfa RD |
6512 | #define wxTreeCtrl_GetSpacing(_swigobj) (_swigobj->GetSpacing()) |
6513 | static PyObject *_wrap_wxTreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6514 | PyObject * _resultobj; | |
6515 | unsigned int _result; | |
f6bcfd97 | 6516 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
6517 | PyObject * _argo0 = 0; |
6518 | char *_kwnames[] = { "self", NULL }; | |
6519 | ||
6520 | self = self; | |
6521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSpacing",_kwnames,&_argo0)) | |
6522 | return NULL; | |
6523 | if (_argo0) { | |
6524 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6525 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6526 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSpacing. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
6527 | return NULL; |
6528 | } | |
6529 | } | |
6530 | { | |
6531 | wxPy_BEGIN_ALLOW_THREADS; | |
6532 | _result = (unsigned int )wxTreeCtrl_GetSpacing(_arg0); | |
6533 | ||
6534 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6535 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
6536 | } _resultobj = Py_BuildValue("i",_result); |
6537 | return _resultobj; | |
6538 | } | |
6539 | ||
6540 | #define wxTreeCtrl_SetSpacing(_swigobj,_swigarg0) (_swigobj->SetSpacing(_swigarg0)) | |
6541 | static PyObject *_wrap_wxTreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6542 | PyObject * _resultobj; | |
f6bcfd97 | 6543 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
6544 | unsigned int _arg1; |
6545 | PyObject * _argo0 = 0; | |
6546 | char *_kwnames[] = { "self","spacing", NULL }; | |
6547 | ||
6548 | self = self; | |
6549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetSpacing",_kwnames,&_argo0,&_arg1)) | |
6550 | return NULL; | |
6551 | if (_argo0) { | |
6552 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6553 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6554 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetSpacing. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
6555 | return NULL; |
6556 | } | |
6557 | } | |
6558 | { | |
6559 | wxPy_BEGIN_ALLOW_THREADS; | |
6560 | wxTreeCtrl_SetSpacing(_arg0,_arg1); | |
6561 | ||
6562 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6563 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
6564 | } Py_INCREF(Py_None); |
6565 | _resultobj = Py_None; | |
6566 | return _resultobj; | |
6567 | } | |
6568 | ||
d5c9047a | 6569 | #define wxTreeCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) |
efc5f224 | 6570 | static PyObject *_wrap_wxTreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6571 | PyObject * _resultobj; |
d5c9047a | 6572 | wxString * _result; |
f6bcfd97 | 6573 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6574 | wxTreeItemId * _arg1; |
1d99702e RD |
6575 | PyObject * _argo0 = 0; |
6576 | PyObject * _argo1 = 0; | |
efc5f224 | 6577 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
6578 | |
6579 | self = self; | |
efc5f224 | 6580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemText",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6581 | return NULL; |
1d99702e RD |
6582 | if (_argo0) { |
6583 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6584 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6585 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemText. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6586 | return NULL; |
6587 | } | |
6588 | } | |
1d99702e RD |
6589 | if (_argo1) { |
6590 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6591 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6592 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemText. Expected _wxTreeItemId_p."); |
6593 | return NULL; | |
6594 | } | |
6595 | } | |
d5c9047a | 6596 | { |
cf694132 RD |
6597 | wxPy_BEGIN_ALLOW_THREADS; |
6598 | _result = new wxString (wxTreeCtrl_GetItemText(_arg0,*_arg1)); | |
6599 | ||
6600 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6601 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6602 | }{ |
eec92d76 | 6603 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
d5c9047a RD |
6604 | } |
6605 | { | |
6606 | delete _result; | |
6607 | } | |
8ab979d7 RD |
6608 | return _resultobj; |
6609 | } | |
6610 | ||
694759cf | 6611 | #define wxTreeCtrl_GetItemImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemImage(_swigarg0,_swigarg1)) |
efc5f224 | 6612 | static PyObject *_wrap_wxTreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6613 | PyObject * _resultobj; |
d5c9047a | 6614 | int _result; |
f6bcfd97 | 6615 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6616 | wxTreeItemId * _arg1; |
694759cf | 6617 | wxTreeItemIcon _arg2 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); |
1d99702e RD |
6618 | PyObject * _argo0 = 0; |
6619 | PyObject * _argo1 = 0; | |
694759cf | 6620 | char *_kwnames[] = { "self","item","which", NULL }; |
8ab979d7 RD |
6621 | |
6622 | self = self; | |
694759cf | 6623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetItemImage",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 6624 | return NULL; |
1d99702e RD |
6625 | if (_argo0) { |
6626 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6627 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6628 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6629 | return NULL; |
6630 | } | |
6631 | } | |
1d99702e RD |
6632 | if (_argo1) { |
6633 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6634 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6635 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemImage. Expected _wxTreeItemId_p."); |
6636 | return NULL; | |
6637 | } | |
6638 | } | |
cf694132 RD |
6639 | { |
6640 | wxPy_BEGIN_ALLOW_THREADS; | |
694759cf | 6641 | _result = (int )wxTreeCtrl_GetItemImage(_arg0,*_arg1,_arg2); |
cf694132 RD |
6642 | |
6643 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6644 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6645 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6646 | return _resultobj; |
6647 | } | |
6648 | ||
d5c9047a | 6649 | #define wxTreeCtrl_GetItemSelectedImage(_swigobj,_swigarg0) (_swigobj->GetItemSelectedImage(_swigarg0)) |
efc5f224 | 6650 | static PyObject *_wrap_wxTreeCtrl_GetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6651 | PyObject * _resultobj; |
d5c9047a | 6652 | int _result; |
f6bcfd97 | 6653 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6654 | wxTreeItemId * _arg1; |
1d99702e RD |
6655 | PyObject * _argo0 = 0; |
6656 | PyObject * _argo1 = 0; | |
efc5f224 | 6657 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
6658 | |
6659 | self = self; | |
efc5f224 | 6660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemSelectedImage",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6661 | return NULL; |
1d99702e RD |
6662 | if (_argo0) { |
6663 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6664 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6665 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6666 | return NULL; |
6667 | } | |
6668 | } | |
1d99702e RD |
6669 | if (_argo1) { |
6670 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6671 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemSelectedImage. Expected _wxTreeItemId_p."); |
6673 | return NULL; | |
6674 | } | |
6675 | } | |
cf694132 RD |
6676 | { |
6677 | wxPy_BEGIN_ALLOW_THREADS; | |
6678 | _result = (int )wxTreeCtrl_GetItemSelectedImage(_arg0,*_arg1); | |
8ab979d7 | 6679 | |
cf694132 | 6680 | wxPy_END_ALLOW_THREADS; |
4dfaa61e | 6681 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6682 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6683 | return _resultobj; |
6684 | } | |
6685 | ||
d5c9047a | 6686 | #define wxTreeCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) |
efc5f224 | 6687 | static PyObject *_wrap_wxTreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6688 | PyObject * _resultobj; |
f6bcfd97 | 6689 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
6690 | wxTreeItemId * _arg1; |
6691 | wxString * _arg2; | |
1d99702e RD |
6692 | PyObject * _argo0 = 0; |
6693 | PyObject * _argo1 = 0; | |
d5c9047a | 6694 | PyObject * _obj2 = 0; |
efc5f224 | 6695 | char *_kwnames[] = { "self","item","text", NULL }; |
8ab979d7 RD |
6696 | |
6697 | self = self; | |
efc5f224 | 6698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemText",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 6699 | return NULL; |
1d99702e RD |
6700 | if (_argo0) { |
6701 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6702 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6703 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemText. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6704 | return NULL; |
6705 | } | |
6706 | } | |
1d99702e RD |
6707 | if (_argo1) { |
6708 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6709 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6710 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemText. Expected _wxTreeItemId_p."); |
6711 | return NULL; | |
6712 | } | |
6713 | } | |
6714 | { | |
2cd2fac8 RD |
6715 | #if PYTHON_API_VERSION >= 1009 |
6716 | char* tmpPtr; int tmpSize; | |
6717 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 6718 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
6719 | return NULL; |
6720 | } | |
6721 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
6722 | return NULL; | |
6723 | _arg2 = new wxString(tmpPtr, tmpSize); | |
6724 | #else | |
d5c9047a RD |
6725 | if (!PyString_Check(_obj2)) { |
6726 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6727 | return NULL; | |
6728 | } | |
2cd2fac8 RD |
6729 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
6730 | #endif | |
d5c9047a | 6731 | } |
cf694132 RD |
6732 | { |
6733 | wxPy_BEGIN_ALLOW_THREADS; | |
6734 | wxTreeCtrl_SetItemText(_arg0,*_arg1,*_arg2); | |
6735 | ||
6736 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6737 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6738 | } Py_INCREF(Py_None); |
d5c9047a RD |
6739 | _resultobj = Py_None; |
6740 | { | |
6741 | if (_obj2) | |
6742 | delete _arg2; | |
6743 | } | |
8ab979d7 RD |
6744 | return _resultobj; |
6745 | } | |
6746 | ||
694759cf | 6747 | #define wxTreeCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 6748 | static PyObject *_wrap_wxTreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6749 | PyObject * _resultobj; |
f6bcfd97 | 6750 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
6751 | wxTreeItemId * _arg1; |
6752 | int _arg2; | |
694759cf | 6753 | wxTreeItemIcon _arg3 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); |
1d99702e RD |
6754 | PyObject * _argo0 = 0; |
6755 | PyObject * _argo1 = 0; | |
694759cf | 6756 | char *_kwnames[] = { "self","item","image","which", NULL }; |
8ab979d7 RD |
6757 | |
6758 | self = self; | |
694759cf | 6759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|i:wxTreeCtrl_SetItemImage",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8ab979d7 | 6760 | return NULL; |
1d99702e RD |
6761 | if (_argo0) { |
6762 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6763 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6764 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6765 | return NULL; |
6766 | } | |
6767 | } | |
1d99702e RD |
6768 | if (_argo1) { |
6769 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6770 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemImage. Expected _wxTreeItemId_p."); |
6772 | return NULL; | |
6773 | } | |
6774 | } | |
cf694132 RD |
6775 | { |
6776 | wxPy_BEGIN_ALLOW_THREADS; | |
694759cf | 6777 | wxTreeCtrl_SetItemImage(_arg0,*_arg1,_arg2,_arg3); |
cf694132 RD |
6778 | |
6779 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6780 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6781 | } Py_INCREF(Py_None); |
d5c9047a | 6782 | _resultobj = Py_None; |
8ab979d7 RD |
6783 | return _resultobj; |
6784 | } | |
6785 | ||
d5c9047a | 6786 | #define wxTreeCtrl_SetItemSelectedImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemSelectedImage(_swigarg0,_swigarg1)) |
efc5f224 | 6787 | static PyObject *_wrap_wxTreeCtrl_SetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6788 | PyObject * _resultobj; |
f6bcfd97 | 6789 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
6790 | wxTreeItemId * _arg1; |
6791 | int _arg2; | |
1d99702e RD |
6792 | PyObject * _argo0 = 0; |
6793 | PyObject * _argo1 = 0; | |
efc5f224 | 6794 | char *_kwnames[] = { "self","item","image", NULL }; |
8ab979d7 RD |
6795 | |
6796 | self = self; | |
efc5f224 | 6797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxTreeCtrl_SetItemSelectedImage",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 6798 | return NULL; |
1d99702e RD |
6799 | if (_argo0) { |
6800 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6801 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6802 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6803 | return NULL; |
6804 | } | |
6805 | } | |
1d99702e RD |
6806 | if (_argo1) { |
6807 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6808 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6809 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemSelectedImage. Expected _wxTreeItemId_p."); |
6810 | return NULL; | |
6811 | } | |
6812 | } | |
cf694132 RD |
6813 | { |
6814 | wxPy_BEGIN_ALLOW_THREADS; | |
6815 | wxTreeCtrl_SetItemSelectedImage(_arg0,*_arg1,_arg2); | |
6816 | ||
6817 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6818 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
6819 | } Py_INCREF(Py_None); |
6820 | _resultobj = Py_None; | |
6821 | return _resultobj; | |
6822 | } | |
6823 | ||
6824 | #define wxTreeCtrl_SetItemHasChildren(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemHasChildren(_swigarg0,_swigarg1)) | |
efc5f224 | 6825 | static PyObject *_wrap_wxTreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 | 6826 | PyObject * _resultobj; |
f6bcfd97 | 6827 | wxPyTreeCtrl * _arg0; |
cf694132 | 6828 | wxTreeItemId * _arg1; |
1d99702e RD |
6829 | bool _arg2 = (bool ) TRUE; |
6830 | PyObject * _argo0 = 0; | |
6831 | PyObject * _argo1 = 0; | |
6832 | int tempbool2 = (int) TRUE; | |
efc5f224 | 6833 | char *_kwnames[] = { "self","item","hasChildren", NULL }; |
cf694132 RD |
6834 | |
6835 | self = self; | |
efc5f224 | 6836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemHasChildren",_kwnames,&_argo0,&_argo1,&tempbool2)) |
cf694132 | 6837 | return NULL; |
1d99702e RD |
6838 | if (_argo0) { |
6839 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6840 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6841 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
6842 | return NULL; |
6843 | } | |
6844 | } | |
1d99702e RD |
6845 | if (_argo1) { |
6846 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6847 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
6848 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemHasChildren. Expected _wxTreeItemId_p."); |
6849 | return NULL; | |
6850 | } | |
6851 | } | |
6852 | _arg2 = (bool ) tempbool2; | |
6853 | { | |
6854 | wxPy_BEGIN_ALLOW_THREADS; | |
6855 | wxTreeCtrl_SetItemHasChildren(_arg0,*_arg1,_arg2); | |
6856 | ||
6857 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6858 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6859 | } Py_INCREF(Py_None); |
d5c9047a | 6860 | _resultobj = Py_None; |
8ab979d7 RD |
6861 | return _resultobj; |
6862 | } | |
6863 | ||
f6bcfd97 | 6864 | static wxPyTreeItemData * wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item) { |
cf694132 RD |
6865 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
6866 | if (data == NULL) { | |
6867 | data = new wxPyTreeItemData(); | |
f6bcfd97 | 6868 | data->SetId(item); // set the id |
cf694132 RD |
6869 | self->SetItemData(item, data); |
6870 | } | |
6871 | return data; | |
6872 | } | |
efc5f224 | 6873 | static PyObject *_wrap_wxTreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
6874 | PyObject * _resultobj; |
6875 | wxPyTreeItemData * _result; | |
f6bcfd97 | 6876 | wxPyTreeCtrl * _arg0; |
cf694132 | 6877 | wxTreeItemId * _arg1; |
1d99702e RD |
6878 | PyObject * _argo0 = 0; |
6879 | PyObject * _argo1 = 0; | |
efc5f224 | 6880 | char *_kwnames[] = { "self","item", NULL }; |
cf694132 RD |
6881 | char _ptemp[128]; |
6882 | ||
6883 | self = self; | |
efc5f224 | 6884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemData",_kwnames,&_argo0,&_argo1)) |
cf694132 | 6885 | return NULL; |
1d99702e RD |
6886 | if (_argo0) { |
6887 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6888 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6889 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemData. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
6890 | return NULL; |
6891 | } | |
6892 | } | |
1d99702e RD |
6893 | if (_argo1) { |
6894 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6895 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
6896 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemData. Expected _wxTreeItemId_p."); |
6897 | return NULL; | |
6898 | } | |
6899 | } | |
6900 | { | |
6901 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 6902 | _result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(_arg0,*_arg1); |
cf694132 RD |
6903 | |
6904 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6905 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6906 | } if (_result) { |
6907 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
6908 | _resultobj = Py_BuildValue("s",_ptemp); | |
6909 | } else { | |
6910 | Py_INCREF(Py_None); | |
6911 | _resultobj = Py_None; | |
6912 | } | |
cf694132 RD |
6913 | return _resultobj; |
6914 | } | |
6915 | ||
f6bcfd97 BP |
6916 | static void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item,wxPyTreeItemData * data) { |
6917 | data->SetId(item); // set the id | |
6918 | self->SetItemData(item, data); | |
c368d904 | 6919 | } |
efc5f224 | 6920 | static PyObject *_wrap_wxTreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6921 | PyObject * _resultobj; |
f6bcfd97 | 6922 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6923 | wxTreeItemId * _arg1; |
cf694132 | 6924 | wxPyTreeItemData * _arg2; |
1d99702e RD |
6925 | PyObject * _argo0 = 0; |
6926 | PyObject * _argo1 = 0; | |
6927 | PyObject * _argo2 = 0; | |
efc5f224 | 6928 | char *_kwnames[] = { "self","item","data", NULL }; |
8ab979d7 RD |
6929 | |
6930 | self = self; | |
efc5f224 | 6931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemData",_kwnames,&_argo0,&_argo1,&_argo2)) |
8ab979d7 | 6932 | return NULL; |
1d99702e RD |
6933 | if (_argo0) { |
6934 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6935 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6936 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemData. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6937 | return NULL; |
6938 | } | |
6939 | } | |
1d99702e RD |
6940 | if (_argo1) { |
6941 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6942 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemData. Expected _wxTreeItemId_p."); |
6944 | return NULL; | |
6945 | } | |
6946 | } | |
1d99702e RD |
6947 | if (_argo2) { |
6948 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
6949 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyTreeItemData_p")) { | |
cf694132 | 6950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemData. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
6951 | return NULL; |
6952 | } | |
6953 | } | |
cf694132 RD |
6954 | { |
6955 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 6956 | wxPyTreeCtrl_SetItemData(_arg0,*_arg1,_arg2); |
cf694132 RD |
6957 | |
6958 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6959 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6960 | } Py_INCREF(Py_None); |
d5c9047a | 6961 | _resultobj = Py_None; |
8ab979d7 RD |
6962 | return _resultobj; |
6963 | } | |
6964 | ||
f6bcfd97 | 6965 | static PyObject * wxPyTreeCtrl_GetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item) { |
cf694132 RD |
6966 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
6967 | if (data == NULL) { | |
6968 | data = new wxPyTreeItemData(); | |
f6bcfd97 | 6969 | data->SetId(item); // set the id |
cf694132 RD |
6970 | self->SetItemData(item, data); |
6971 | } | |
6972 | return data->GetData(); | |
c368d904 | 6973 | } |
efc5f224 | 6974 | static PyObject *_wrap_wxTreeCtrl_GetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 | 6975 | PyObject * _resultobj; |
cf694132 | 6976 | PyObject * _result; |
f6bcfd97 | 6977 | wxPyTreeCtrl * _arg0; |
08127323 | 6978 | wxTreeItemId * _arg1; |
1d99702e RD |
6979 | PyObject * _argo0 = 0; |
6980 | PyObject * _argo1 = 0; | |
efc5f224 | 6981 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
6982 | |
6983 | self = self; | |
efc5f224 | 6984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPyData",_kwnames,&_argo0,&_argo1)) |
08127323 | 6985 | return NULL; |
1d99702e RD |
6986 | if (_argo0) { |
6987 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6988 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6989 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPyData. Expected _wxPyTreeCtrl_p."); | |
08127323 RD |
6990 | return NULL; |
6991 | } | |
6992 | } | |
1d99702e RD |
6993 | if (_argo1) { |
6994 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6995 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 | 6996 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPyData. Expected _wxTreeItemId_p."); |
08127323 RD |
6997 | return NULL; |
6998 | } | |
6999 | } | |
cf694132 RD |
7000 | { |
7001 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 7002 | _result = (PyObject *)wxPyTreeCtrl_GetPyData(_arg0,*_arg1); |
cf694132 RD |
7003 | |
7004 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7005 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
7006 | }{ |
7007 | _resultobj = _result; | |
7008 | } | |
7009 | return _resultobj; | |
7010 | } | |
7011 | ||
f6bcfd97 | 7012 | static void wxPyTreeCtrl_SetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item,PyObject * obj) { |
cf694132 RD |
7013 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
7014 | if (data == NULL) { | |
7015 | data = new wxPyTreeItemData(obj); | |
f6bcfd97 | 7016 | data->SetId(item); // set the id |
cf694132 RD |
7017 | self->SetItemData(item, data); |
7018 | } else | |
7019 | data->SetData(obj); | |
c368d904 | 7020 | } |
efc5f224 | 7021 | static PyObject *_wrap_wxTreeCtrl_SetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 | 7022 | PyObject * _resultobj; |
f6bcfd97 | 7023 | wxPyTreeCtrl * _arg0; |
cf694132 RD |
7024 | wxTreeItemId * _arg1; |
7025 | PyObject * _arg2; | |
1d99702e RD |
7026 | PyObject * _argo0 = 0; |
7027 | PyObject * _argo1 = 0; | |
cf694132 | 7028 | PyObject * _obj2 = 0; |
efc5f224 | 7029 | char *_kwnames[] = { "self","item","obj", NULL }; |
cf694132 RD |
7030 | |
7031 | self = self; | |
efc5f224 | 7032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetPyData",_kwnames,&_argo0,&_argo1,&_obj2)) |
cf694132 | 7033 | return NULL; |
1d99702e RD |
7034 | if (_argo0) { |
7035 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7036 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7037 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetPyData. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
7038 | return NULL; |
7039 | } | |
7040 | } | |
1d99702e RD |
7041 | if (_argo1) { |
7042 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7043 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
7044 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetPyData. Expected _wxTreeItemId_p."); |
7045 | return NULL; | |
7046 | } | |
7047 | } | |
7048 | { | |
7049 | _arg2 = _obj2; | |
7050 | } | |
7051 | { | |
7052 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 7053 | wxPyTreeCtrl_SetPyData(_arg0,*_arg1,_arg2); |
cf694132 RD |
7054 | |
7055 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7056 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7057 | } Py_INCREF(Py_None); |
08127323 RD |
7058 | _resultobj = Py_None; |
7059 | return _resultobj; | |
7060 | } | |
7061 | ||
d5c9047a | 7062 | #define wxTreeCtrl_IsVisible(_swigobj,_swigarg0) (_swigobj->IsVisible(_swigarg0)) |
efc5f224 | 7063 | static PyObject *_wrap_wxTreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7064 | PyObject * _resultobj; |
d5c9047a | 7065 | bool _result; |
f6bcfd97 | 7066 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7067 | wxTreeItemId * _arg1; |
1d99702e RD |
7068 | PyObject * _argo0 = 0; |
7069 | PyObject * _argo1 = 0; | |
efc5f224 | 7070 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7071 | |
7072 | self = self; | |
efc5f224 | 7073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7074 | return NULL; |
1d99702e RD |
7075 | if (_argo0) { |
7076 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7077 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7078 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7079 | return NULL; |
7080 | } | |
7081 | } | |
1d99702e RD |
7082 | if (_argo1) { |
7083 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7084 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7085 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsVisible. Expected _wxTreeItemId_p."); |
7086 | return NULL; | |
7087 | } | |
7088 | } | |
cf694132 RD |
7089 | { |
7090 | wxPy_BEGIN_ALLOW_THREADS; | |
7091 | _result = (bool )wxTreeCtrl_IsVisible(_arg0,*_arg1); | |
7092 | ||
7093 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7094 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7095 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7096 | return _resultobj; |
7097 | } | |
7098 | ||
d5c9047a | 7099 | #define wxTreeCtrl_ItemHasChildren(_swigobj,_swigarg0) (_swigobj->ItemHasChildren(_swigarg0)) |
efc5f224 | 7100 | static PyObject *_wrap_wxTreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7101 | PyObject * _resultobj; |
d5c9047a | 7102 | bool _result; |
f6bcfd97 | 7103 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7104 | wxTreeItemId * _arg1; |
1d99702e RD |
7105 | PyObject * _argo0 = 0; |
7106 | PyObject * _argo1 = 0; | |
efc5f224 | 7107 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7108 | |
7109 | self = self; | |
efc5f224 | 7110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ItemHasChildren",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7111 | return NULL; |
1d99702e RD |
7112 | if (_argo0) { |
7113 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7114 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7115 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7116 | return NULL; |
7117 | } | |
7118 | } | |
1d99702e RD |
7119 | if (_argo1) { |
7120 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7121 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7122 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ItemHasChildren. Expected _wxTreeItemId_p."); |
7123 | return NULL; | |
7124 | } | |
7125 | } | |
cf694132 RD |
7126 | { |
7127 | wxPy_BEGIN_ALLOW_THREADS; | |
7128 | _result = (bool )wxTreeCtrl_ItemHasChildren(_arg0,*_arg1); | |
7129 | ||
7130 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7131 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7132 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7133 | return _resultobj; |
7134 | } | |
7135 | ||
d5c9047a | 7136 | #define wxTreeCtrl_IsExpanded(_swigobj,_swigarg0) (_swigobj->IsExpanded(_swigarg0)) |
efc5f224 | 7137 | static PyObject *_wrap_wxTreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7138 | PyObject * _resultobj; |
d5c9047a | 7139 | bool _result; |
f6bcfd97 | 7140 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7141 | wxTreeItemId * _arg1; |
1d99702e RD |
7142 | PyObject * _argo0 = 0; |
7143 | PyObject * _argo1 = 0; | |
efc5f224 | 7144 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7145 | |
7146 | self = self; | |
efc5f224 | 7147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsExpanded",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7148 | return NULL; |
1d99702e RD |
7149 | if (_argo0) { |
7150 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7151 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7152 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsExpanded. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7153 | return NULL; |
7154 | } | |
7155 | } | |
1d99702e RD |
7156 | if (_argo1) { |
7157 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7158 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7159 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsExpanded. Expected _wxTreeItemId_p."); |
7160 | return NULL; | |
7161 | } | |
7162 | } | |
cf694132 RD |
7163 | { |
7164 | wxPy_BEGIN_ALLOW_THREADS; | |
7165 | _result = (bool )wxTreeCtrl_IsExpanded(_arg0,*_arg1); | |
7166 | ||
7167 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7168 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7169 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7170 | return _resultobj; |
7171 | } | |
7172 | ||
d5c9047a | 7173 | #define wxTreeCtrl_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) |
efc5f224 | 7174 | static PyObject *_wrap_wxTreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7175 | PyObject * _resultobj; |
d5c9047a | 7176 | bool _result; |
f6bcfd97 | 7177 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7178 | wxTreeItemId * _arg1; |
1d99702e RD |
7179 | PyObject * _argo0 = 0; |
7180 | PyObject * _argo1 = 0; | |
efc5f224 | 7181 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7182 | |
7183 | self = self; | |
efc5f224 | 7184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsSelected",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7185 | return NULL; |
1d99702e RD |
7186 | if (_argo0) { |
7187 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7188 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7189 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsSelected. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7190 | return NULL; |
7191 | } | |
7192 | } | |
1d99702e RD |
7193 | if (_argo1) { |
7194 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7195 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7196 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsSelected. Expected _wxTreeItemId_p."); |
7197 | return NULL; | |
7198 | } | |
7199 | } | |
cf694132 RD |
7200 | { |
7201 | wxPy_BEGIN_ALLOW_THREADS; | |
7202 | _result = (bool )wxTreeCtrl_IsSelected(_arg0,*_arg1); | |
7203 | ||
7204 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7205 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7206 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7207 | return _resultobj; |
7208 | } | |
7209 | ||
7210 | #define wxTreeCtrl_GetRootItem(_swigobj) (_swigobj->GetRootItem()) | |
efc5f224 | 7211 | static PyObject *_wrap_wxTreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7212 | PyObject * _resultobj; |
d5c9047a | 7213 | wxTreeItemId * _result; |
f6bcfd97 | 7214 | wxPyTreeCtrl * _arg0; |
1d99702e | 7215 | PyObject * _argo0 = 0; |
efc5f224 | 7216 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 7217 | char _ptemp[128]; |
8ab979d7 RD |
7218 | |
7219 | self = self; | |
efc5f224 | 7220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetRootItem",_kwnames,&_argo0)) |
8ab979d7 | 7221 | return NULL; |
1d99702e RD |
7222 | if (_argo0) { |
7223 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7224 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetRootItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7226 | return NULL; |
7227 | } | |
7228 | } | |
cf694132 RD |
7229 | { |
7230 | wxPy_BEGIN_ALLOW_THREADS; | |
7231 | _result = new wxTreeItemId (wxTreeCtrl_GetRootItem(_arg0)); | |
7232 | ||
7233 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7234 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7235 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7236 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7237 | return _resultobj; |
7238 | } | |
7239 | ||
7240 | #define wxTreeCtrl_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
efc5f224 | 7241 | static PyObject *_wrap_wxTreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7242 | PyObject * _resultobj; |
d5c9047a | 7243 | wxTreeItemId * _result; |
f6bcfd97 | 7244 | wxPyTreeCtrl * _arg0; |
1d99702e | 7245 | PyObject * _argo0 = 0; |
efc5f224 | 7246 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 7247 | char _ptemp[128]; |
8ab979d7 RD |
7248 | |
7249 | self = self; | |
efc5f224 | 7250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelection",_kwnames,&_argo0)) |
8ab979d7 | 7251 | return NULL; |
1d99702e RD |
7252 | if (_argo0) { |
7253 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7254 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7255 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelection. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7256 | return NULL; |
7257 | } | |
7258 | } | |
cf694132 RD |
7259 | { |
7260 | wxPy_BEGIN_ALLOW_THREADS; | |
7261 | _result = new wxTreeItemId (wxTreeCtrl_GetSelection(_arg0)); | |
7262 | ||
7263 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7264 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7265 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7266 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7267 | return _resultobj; |
7268 | } | |
7269 | ||
eb715945 RD |
7270 | #define wxTreeCtrl_GetItemParent(_swigobj,_swigarg0) (_swigobj->GetParent(_swigarg0)) |
7271 | static PyObject *_wrap_wxTreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7272 | PyObject * _resultobj; |
d5c9047a | 7273 | wxTreeItemId * _result; |
f6bcfd97 | 7274 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7275 | wxTreeItemId * _arg1; |
1d99702e RD |
7276 | PyObject * _argo0 = 0; |
7277 | PyObject * _argo1 = 0; | |
efc5f224 | 7278 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7279 | char _ptemp[128]; |
8ab979d7 RD |
7280 | |
7281 | self = self; | |
eb715945 | 7282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 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_GetItemParent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 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")) { | |
eb715945 | 7294 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemParent. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
7295 | return NULL; |
7296 | } | |
7297 | } | |
cf694132 RD |
7298 | { |
7299 | wxPy_BEGIN_ALLOW_THREADS; | |
eb715945 | 7300 | _result = new wxTreeItemId (wxTreeCtrl_GetItemParent(_arg0,*_arg1)); |
cf694132 RD |
7301 | |
7302 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7303 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7304 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7305 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7306 | return _resultobj; |
7307 | } | |
7308 | ||
f6bcfd97 | 7309 | static PyObject * wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self) { |
26b9cf27 | 7310 | bool doSave = wxPyRestoreThread(); |
d426c97e RD |
7311 | PyObject* rval = PyList_New(0); |
7312 | wxArrayTreeItemIds array; | |
7313 | size_t num, x; | |
7314 | num = self->GetSelections(array); | |
7315 | for (x=0; x < num; x++) { | |
c368d904 RD |
7316 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); |
7317 | PyObject* item = wxPyConstructObject((void*)tii, "wxTreeItemId", TRUE); | |
d426c97e RD |
7318 | PyList_Append(rval, item); |
7319 | } | |
26b9cf27 | 7320 | wxPySaveThread(doSave); |
d426c97e RD |
7321 | return rval; |
7322 | } | |
7323 | static PyObject *_wrap_wxTreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7324 | PyObject * _resultobj; | |
7325 | PyObject * _result; | |
f6bcfd97 | 7326 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
7327 | PyObject * _argo0 = 0; |
7328 | char *_kwnames[] = { "self", NULL }; | |
7329 | ||
7330 | self = self; | |
7331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelections",_kwnames,&_argo0)) | |
7332 | return NULL; | |
7333 | if (_argo0) { | |
7334 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7335 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7336 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelections. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
7337 | return NULL; |
7338 | } | |
7339 | } | |
7340 | { | |
7341 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 7342 | _result = (PyObject *)wxPyTreeCtrl_GetSelections(_arg0); |
d426c97e RD |
7343 | |
7344 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7345 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
7346 | }{ |
7347 | _resultobj = _result; | |
7348 | } | |
7349 | return _resultobj; | |
7350 | } | |
7351 | ||
bb0054cd | 7352 | #define wxTreeCtrl_GetChildrenCount(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetChildrenCount(_swigarg0,_swigarg1)) |
efc5f224 | 7353 | static PyObject *_wrap_wxTreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
7354 | PyObject * _resultobj; |
7355 | size_t _result; | |
f6bcfd97 | 7356 | wxPyTreeCtrl * _arg0; |
bb0054cd | 7357 | wxTreeItemId * _arg1; |
1d99702e RD |
7358 | bool _arg2 = (bool ) TRUE; |
7359 | PyObject * _argo0 = 0; | |
7360 | PyObject * _argo1 = 0; | |
7361 | int tempbool2 = (int) TRUE; | |
efc5f224 | 7362 | char *_kwnames[] = { "self","item","recursively", NULL }; |
bb0054cd RD |
7363 | |
7364 | self = self; | |
efc5f224 | 7365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetChildrenCount",_kwnames,&_argo0,&_argo1,&tempbool2)) |
bb0054cd | 7366 | return NULL; |
1d99702e RD |
7367 | if (_argo0) { |
7368 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7369 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7370 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetChildrenCount. Expected _wxPyTreeCtrl_p."); | |
bb0054cd RD |
7371 | return NULL; |
7372 | } | |
7373 | } | |
1d99702e RD |
7374 | if (_argo1) { |
7375 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7376 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
bb0054cd RD |
7377 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetChildrenCount. Expected _wxTreeItemId_p."); |
7378 | return NULL; | |
7379 | } | |
7380 | } | |
7381 | _arg2 = (bool ) tempbool2; | |
7382 | { | |
7383 | wxPy_BEGIN_ALLOW_THREADS; | |
7384 | _result = (size_t )wxTreeCtrl_GetChildrenCount(_arg0,*_arg1,_arg2); | |
7385 | ||
7386 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7387 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
7388 | } _resultobj = Py_BuildValue("i",_result); |
7389 | return _resultobj; | |
7390 | } | |
7391 | ||
d5c9047a | 7392 | #define wxTreeCtrl_GetFirstChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetFirstChild(_swigarg0,_swigarg1)) |
efc5f224 | 7393 | static PyObject *_wrap_wxTreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7394 | PyObject * _resultobj; |
d5c9047a | 7395 | wxTreeItemId * _result; |
f6bcfd97 | 7396 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7397 | wxTreeItemId * _arg1; |
7398 | long * _arg2; | |
1d99702e RD |
7399 | PyObject * _argo0 = 0; |
7400 | PyObject * _argo1 = 0; | |
d5c9047a RD |
7401 | long temp; |
7402 | PyObject * _obj2 = 0; | |
efc5f224 | 7403 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 7404 | char _ptemp[128]; |
8ab979d7 RD |
7405 | |
7406 | self = self; | |
efc5f224 | 7407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetFirstChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 7408 | return NULL; |
1d99702e RD |
7409 | if (_argo0) { |
7410 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7411 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7412 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstChild. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7413 | return NULL; |
7414 | } | |
7415 | } | |
1d99702e RD |
7416 | if (_argo1) { |
7417 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7418 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 7419 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetFirstChild. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
7420 | return NULL; |
7421 | } | |
7422 | } | |
d5c9047a RD |
7423 | { |
7424 | temp = (long) PyInt_AsLong(_obj2); | |
7425 | _arg2 = &temp; | |
7426 | } | |
cf694132 RD |
7427 | { |
7428 | wxPy_BEGIN_ALLOW_THREADS; | |
7429 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstChild(_arg0,*_arg1,*_arg2)); | |
7430 | ||
7431 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7432 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7433 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
7434 | _resultobj = Py_BuildValue("s",_ptemp); |
7435 | { | |
7436 | PyObject *o; | |
7437 | o = PyInt_FromLong((long) (*_arg2)); | |
7438 | _resultobj = t_output_helper(_resultobj, o); | |
7439 | } | |
8ab979d7 RD |
7440 | return _resultobj; |
7441 | } | |
7442 | ||
d5c9047a | 7443 | #define wxTreeCtrl_GetNextChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetNextChild(_swigarg0,_swigarg1)) |
efc5f224 | 7444 | static PyObject *_wrap_wxTreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7445 | PyObject * _resultobj; |
d5c9047a | 7446 | wxTreeItemId * _result; |
f6bcfd97 | 7447 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7448 | wxTreeItemId * _arg1; |
7449 | long * _arg2; | |
1d99702e RD |
7450 | PyObject * _argo0 = 0; |
7451 | PyObject * _argo1 = 0; | |
d5c9047a | 7452 | long temp; |
8ab979d7 | 7453 | PyObject * _obj2 = 0; |
efc5f224 | 7454 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 7455 | char _ptemp[128]; |
8ab979d7 RD |
7456 | |
7457 | self = self; | |
efc5f224 | 7458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetNextChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 7459 | return NULL; |
1d99702e RD |
7460 | if (_argo0) { |
7461 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7462 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7463 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextChild. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7464 | return NULL; |
7465 | } | |
7466 | } | |
1d99702e RD |
7467 | if (_argo1) { |
7468 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7469 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 7470 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextChild. Expected _wxTreeItemId_p."); |
8ab979d7 | 7471 | return NULL; |
d5c9047a | 7472 | } |
8ab979d7 | 7473 | } |
d5c9047a RD |
7474 | { |
7475 | temp = (long) PyInt_AsLong(_obj2); | |
7476 | _arg2 = &temp; | |
8ab979d7 | 7477 | } |
cf694132 RD |
7478 | { |
7479 | wxPy_BEGIN_ALLOW_THREADS; | |
7480 | _result = new wxTreeItemId (wxTreeCtrl_GetNextChild(_arg0,*_arg1,*_arg2)); | |
7481 | ||
7482 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7483 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7484 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7485 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 | 7486 | { |
d5c9047a RD |
7487 | PyObject *o; |
7488 | o = PyInt_FromLong((long) (*_arg2)); | |
7489 | _resultobj = t_output_helper(_resultobj, o); | |
8ab979d7 RD |
7490 | } |
7491 | return _resultobj; | |
7492 | } | |
7493 | ||
d5c9047a | 7494 | #define wxTreeCtrl_GetNextSibling(_swigobj,_swigarg0) (_swigobj->GetNextSibling(_swigarg0)) |
efc5f224 | 7495 | static PyObject *_wrap_wxTreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7496 | PyObject * _resultobj; |
d5c9047a | 7497 | wxTreeItemId * _result; |
f6bcfd97 | 7498 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7499 | wxTreeItemId * _arg1; |
1d99702e RD |
7500 | PyObject * _argo0 = 0; |
7501 | PyObject * _argo1 = 0; | |
efc5f224 | 7502 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7503 | char _ptemp[128]; |
8ab979d7 RD |
7504 | |
7505 | self = self; | |
efc5f224 | 7506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7507 | return NULL; |
1d99702e RD |
7508 | if (_argo0) { |
7509 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7510 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7511 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextSibling. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7512 | return NULL; |
7513 | } | |
7514 | } | |
1d99702e RD |
7515 | if (_argo1) { |
7516 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7517 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7518 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextSibling. Expected _wxTreeItemId_p."); |
7519 | return NULL; | |
7520 | } | |
7521 | } | |
cf694132 RD |
7522 | { |
7523 | wxPy_BEGIN_ALLOW_THREADS; | |
7524 | _result = new wxTreeItemId (wxTreeCtrl_GetNextSibling(_arg0,*_arg1)); | |
7525 | ||
7526 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7527 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7528 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7529 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7530 | return _resultobj; |
7531 | } | |
7532 | ||
d5c9047a | 7533 | #define wxTreeCtrl_GetPrevSibling(_swigobj,_swigarg0) (_swigobj->GetPrevSibling(_swigarg0)) |
efc5f224 | 7534 | static PyObject *_wrap_wxTreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7535 | PyObject * _resultobj; |
d5c9047a | 7536 | wxTreeItemId * _result; |
f6bcfd97 | 7537 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7538 | wxTreeItemId * _arg1; |
1d99702e RD |
7539 | PyObject * _argo0 = 0; |
7540 | PyObject * _argo1 = 0; | |
efc5f224 | 7541 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7542 | char _ptemp[128]; |
8ab979d7 RD |
7543 | |
7544 | self = self; | |
efc5f224 | 7545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7546 | return NULL; |
1d99702e RD |
7547 | if (_argo0) { |
7548 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7549 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7550 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevSibling. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7551 | return NULL; |
7552 | } | |
7553 | } | |
1d99702e RD |
7554 | if (_argo1) { |
7555 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7556 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7557 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevSibling. Expected _wxTreeItemId_p."); |
7558 | return NULL; | |
7559 | } | |
7560 | } | |
cf694132 RD |
7561 | { |
7562 | wxPy_BEGIN_ALLOW_THREADS; | |
7563 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevSibling(_arg0,*_arg1)); | |
7564 | ||
7565 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7566 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7567 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7568 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7569 | return _resultobj; |
7570 | } | |
7571 | ||
d5c9047a | 7572 | #define wxTreeCtrl_GetFirstVisibleItem(_swigobj) (_swigobj->GetFirstVisibleItem()) |
efc5f224 | 7573 | static PyObject *_wrap_wxTreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7574 | PyObject * _resultobj; |
d5c9047a | 7575 | wxTreeItemId * _result; |
f6bcfd97 | 7576 | wxPyTreeCtrl * _arg0; |
1d99702e | 7577 | PyObject * _argo0 = 0; |
efc5f224 | 7578 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 7579 | char _ptemp[128]; |
8ab979d7 RD |
7580 | |
7581 | self = self; | |
efc5f224 | 7582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetFirstVisibleItem",_kwnames,&_argo0)) |
8ab979d7 | 7583 | return NULL; |
1d99702e RD |
7584 | if (_argo0) { |
7585 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7586 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7587 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstVisibleItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7588 | return NULL; |
7589 | } | |
7590 | } | |
cf694132 RD |
7591 | { |
7592 | wxPy_BEGIN_ALLOW_THREADS; | |
7593 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstVisibleItem(_arg0)); | |
7594 | ||
7595 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7596 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7597 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7598 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7599 | return _resultobj; |
7600 | } | |
7601 | ||
d5c9047a | 7602 | #define wxTreeCtrl_GetNextVisible(_swigobj,_swigarg0) (_swigobj->GetNextVisible(_swigarg0)) |
efc5f224 | 7603 | static PyObject *_wrap_wxTreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7604 | PyObject * _resultobj; |
d5c9047a | 7605 | wxTreeItemId * _result; |
f6bcfd97 | 7606 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7607 | wxTreeItemId * _arg1; |
1d99702e RD |
7608 | PyObject * _argo0 = 0; |
7609 | PyObject * _argo1 = 0; | |
efc5f224 | 7610 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7611 | char _ptemp[128]; |
8ab979d7 RD |
7612 | |
7613 | self = self; | |
efc5f224 | 7614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7615 | return NULL; |
1d99702e RD |
7616 | if (_argo0) { |
7617 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7618 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7620 | return NULL; |
7621 | } | |
7622 | } | |
1d99702e RD |
7623 | if (_argo1) { |
7624 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7625 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7626 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextVisible. Expected _wxTreeItemId_p."); |
7627 | return NULL; | |
7628 | } | |
7629 | } | |
cf694132 RD |
7630 | { |
7631 | wxPy_BEGIN_ALLOW_THREADS; | |
7632 | _result = new wxTreeItemId (wxTreeCtrl_GetNextVisible(_arg0,*_arg1)); | |
7633 | ||
7634 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7635 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7636 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7637 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7638 | return _resultobj; |
7639 | } | |
7640 | ||
d5c9047a | 7641 | #define wxTreeCtrl_GetPrevVisible(_swigobj,_swigarg0) (_swigobj->GetPrevVisible(_swigarg0)) |
efc5f224 | 7642 | static PyObject *_wrap_wxTreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7643 | PyObject * _resultobj; |
d5c9047a | 7644 | wxTreeItemId * _result; |
f6bcfd97 | 7645 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7646 | wxTreeItemId * _arg1; |
1d99702e RD |
7647 | PyObject * _argo0 = 0; |
7648 | PyObject * _argo1 = 0; | |
efc5f224 | 7649 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7650 | char _ptemp[128]; |
8ab979d7 RD |
7651 | |
7652 | self = self; | |
efc5f224 | 7653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7654 | return NULL; |
1d99702e RD |
7655 | if (_argo0) { |
7656 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7657 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7658 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7659 | return NULL; |
7660 | } | |
7661 | } | |
1d99702e RD |
7662 | if (_argo1) { |
7663 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7664 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 7665 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevVisible. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
7666 | return NULL; |
7667 | } | |
7668 | } | |
cf694132 RD |
7669 | { |
7670 | wxPy_BEGIN_ALLOW_THREADS; | |
7671 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevVisible(_arg0,*_arg1)); | |
7672 | ||
7673 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7674 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7675 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7676 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7677 | return _resultobj; |
7678 | } | |
7679 | ||
d426c97e RD |
7680 | #define wxTreeCtrl_GetLastChild(_swigobj,_swigarg0) (_swigobj->GetLastChild(_swigarg0)) |
7681 | static PyObject *_wrap_wxTreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7682 | PyObject * _resultobj; | |
7683 | wxTreeItemId * _result; | |
f6bcfd97 | 7684 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
7685 | wxTreeItemId * _arg1; |
7686 | PyObject * _argo0 = 0; | |
7687 | PyObject * _argo1 = 0; | |
7688 | char *_kwnames[] = { "self","item", NULL }; | |
7689 | char _ptemp[128]; | |
7690 | ||
7691 | self = self; | |
7692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetLastChild",_kwnames,&_argo0,&_argo1)) | |
7693 | return NULL; | |
7694 | if (_argo0) { | |
7695 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7696 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7697 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetLastChild. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
7698 | return NULL; |
7699 | } | |
7700 | } | |
7701 | if (_argo1) { | |
7702 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7703 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7704 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetLastChild. Expected _wxTreeItemId_p."); | |
7705 | return NULL; | |
7706 | } | |
7707 | } | |
7708 | { | |
7709 | wxPy_BEGIN_ALLOW_THREADS; | |
7710 | _result = new wxTreeItemId (wxTreeCtrl_GetLastChild(_arg0,*_arg1)); | |
7711 | ||
7712 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7713 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
7714 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
7715 | _resultobj = Py_BuildValue("s",_ptemp); | |
7716 | return _resultobj; | |
7717 | } | |
7718 | ||
d5c9047a | 7719 | #define wxTreeCtrl_AddRoot(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->AddRoot(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
efc5f224 | 7720 | static PyObject *_wrap_wxTreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7721 | PyObject * _resultobj; |
d5c9047a | 7722 | wxTreeItemId * _result; |
f6bcfd97 | 7723 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7724 | wxString * _arg1; |
1d99702e RD |
7725 | int _arg2 = (int ) -1; |
7726 | int _arg3 = (int ) -1; | |
7727 | wxPyTreeItemData * _arg4 = (wxPyTreeItemData *) NULL; | |
7728 | PyObject * _argo0 = 0; | |
d5c9047a | 7729 | PyObject * _obj1 = 0; |
1d99702e | 7730 | PyObject * _argo4 = 0; |
efc5f224 | 7731 | char *_kwnames[] = { "self","text","image","selectedImage","data", NULL }; |
d5c9047a | 7732 | char _ptemp[128]; |
8ab979d7 RD |
7733 | |
7734 | self = self; | |
efc5f224 | 7735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iiO:wxTreeCtrl_AddRoot",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_argo4)) |
8ab979d7 | 7736 | return NULL; |
1d99702e RD |
7737 | if (_argo0) { |
7738 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7739 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7740 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AddRoot. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7741 | return NULL; |
7742 | } | |
7743 | } | |
d5c9047a | 7744 | { |
2cd2fac8 RD |
7745 | #if PYTHON_API_VERSION >= 1009 |
7746 | char* tmpPtr; int tmpSize; | |
7747 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 7748 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
7749 | return NULL; |
7750 | } | |
7751 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7752 | return NULL; | |
7753 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7754 | #else | |
d5c9047a RD |
7755 | if (!PyString_Check(_obj1)) { |
7756 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7757 | return NULL; | |
7758 | } | |
2cd2fac8 RD |
7759 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7760 | #endif | |
d5c9047a | 7761 | } |
1d99702e RD |
7762 | if (_argo4) { |
7763 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
7764 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxPyTreeItemData_p")) { | |
cf694132 | 7765 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxTreeCtrl_AddRoot. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
7766 | return NULL; |
7767 | } | |
7768 | } | |
cf694132 RD |
7769 | { |
7770 | wxPy_BEGIN_ALLOW_THREADS; | |
7771 | _result = new wxTreeItemId (wxTreeCtrl_AddRoot(_arg0,*_arg1,_arg2,_arg3,_arg4)); | |
7772 | ||
7773 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7774 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7775 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
7776 | _resultobj = Py_BuildValue("s",_ptemp); |
7777 | { | |
7778 | if (_obj1) | |
7779 | delete _arg1; | |
7780 | } | |
8ab979d7 RD |
7781 | return _resultobj; |
7782 | } | |
7783 | ||
d5c9047a | 7784 | #define wxTreeCtrl_PrependItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->PrependItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 7785 | static PyObject *_wrap_wxTreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7786 | PyObject * _resultobj; |
d5c9047a | 7787 | wxTreeItemId * _result; |
f6bcfd97 | 7788 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7789 | wxTreeItemId * _arg1; |
7790 | wxString * _arg2; | |
1d99702e RD |
7791 | int _arg3 = (int ) -1; |
7792 | int _arg4 = (int ) -1; | |
7793 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
7794 | PyObject * _argo0 = 0; | |
7795 | PyObject * _argo1 = 0; | |
d5c9047a | 7796 | PyObject * _obj2 = 0; |
1d99702e | 7797 | PyObject * _argo5 = 0; |
efc5f224 | 7798 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 7799 | char _ptemp[128]; |
8ab979d7 RD |
7800 | |
7801 | self = self; | |
efc5f224 | 7802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_PrependItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 7803 | return NULL; |
1d99702e RD |
7804 | if (_argo0) { |
7805 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7806 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7807 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_PrependItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7808 | return NULL; |
7809 | } | |
7810 | } | |
1d99702e RD |
7811 | if (_argo1) { |
7812 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7813 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7814 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_PrependItem. Expected _wxTreeItemId_p."); |
7815 | return NULL; | |
7816 | } | |
7817 | } | |
7818 | { | |
2cd2fac8 RD |
7819 | #if PYTHON_API_VERSION >= 1009 |
7820 | char* tmpPtr; int tmpSize; | |
7821 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 7822 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
7823 | return NULL; |
7824 | } | |
7825 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7826 | return NULL; | |
7827 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7828 | #else | |
d5c9047a RD |
7829 | if (!PyString_Check(_obj2)) { |
7830 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7831 | return NULL; | |
7832 | } | |
2cd2fac8 RD |
7833 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7834 | #endif | |
d5c9047a | 7835 | } |
1d99702e RD |
7836 | if (_argo5) { |
7837 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
7838 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 7839 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_PrependItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
7840 | return NULL; |
7841 | } | |
7842 | } | |
cf694132 RD |
7843 | { |
7844 | wxPy_BEGIN_ALLOW_THREADS; | |
7845 | _result = new wxTreeItemId (wxTreeCtrl_PrependItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); | |
7846 | ||
7847 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7848 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7849 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
7850 | _resultobj = Py_BuildValue("s",_ptemp); |
7851 | { | |
7852 | if (_obj2) | |
7853 | delete _arg2; | |
7854 | } | |
8ab979d7 RD |
7855 | return _resultobj; |
7856 | } | |
7857 | ||
d5c9047a | 7858 | #define wxTreeCtrl_InsertItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 7859 | static PyObject *_wrap_wxTreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7860 | PyObject * _resultobj; |
d5c9047a | 7861 | wxTreeItemId * _result; |
f6bcfd97 | 7862 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7863 | wxTreeItemId * _arg1; |
7864 | wxTreeItemId * _arg2; | |
7865 | wxString * _arg3; | |
1d99702e RD |
7866 | int _arg4 = (int ) -1; |
7867 | int _arg5 = (int ) -1; | |
7868 | wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL; | |
7869 | PyObject * _argo0 = 0; | |
7870 | PyObject * _argo1 = 0; | |
7871 | PyObject * _argo2 = 0; | |
d5c9047a | 7872 | PyObject * _obj3 = 0; |
1d99702e | 7873 | PyObject * _argo6 = 0; |
efc5f224 | 7874 | char *_kwnames[] = { "self","parent","idPrevious","text","image","selectedImage","data", NULL }; |
d5c9047a | 7875 | char _ptemp[128]; |
8ab979d7 RD |
7876 | |
7877 | self = self; | |
efc5f224 | 7878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|iiO:wxTreeCtrl_InsertItem",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3,&_arg4,&_arg5,&_argo6)) |
8ab979d7 | 7879 | return NULL; |
1d99702e RD |
7880 | if (_argo0) { |
7881 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7882 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7883 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7884 | return NULL; |
7885 | } | |
7886 | } | |
1d99702e RD |
7887 | if (_argo1) { |
7888 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7889 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7890 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
7891 | return NULL; | |
7892 | } | |
7893 | } | |
1d99702e RD |
7894 | if (_argo2) { |
7895 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7896 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7897 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
7898 | return NULL; | |
7899 | } | |
7900 | } | |
7901 | { | |
2cd2fac8 RD |
7902 | #if PYTHON_API_VERSION >= 1009 |
7903 | char* tmpPtr; int tmpSize; | |
7904 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
7a446686 | 7905 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
7906 | return NULL; |
7907 | } | |
7908 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
7909 | return NULL; | |
7910 | _arg3 = new wxString(tmpPtr, tmpSize); | |
7911 | #else | |
d5c9047a RD |
7912 | if (!PyString_Check(_obj3)) { |
7913 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7914 | return NULL; | |
7915 | } | |
2cd2fac8 RD |
7916 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
7917 | #endif | |
d5c9047a | 7918 | } |
1d99702e RD |
7919 | if (_argo6) { |
7920 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
7921 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) { | |
cf694132 | 7922 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
7923 | return NULL; |
7924 | } | |
7925 | } | |
cf694132 RD |
7926 | { |
7927 | wxPy_BEGIN_ALLOW_THREADS; | |
7928 | _result = new wxTreeItemId (wxTreeCtrl_InsertItem(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6)); | |
7929 | ||
7930 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7931 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7932 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
7933 | _resultobj = Py_BuildValue("s",_ptemp); |
7934 | { | |
7935 | if (_obj3) | |
7936 | delete _arg3; | |
7937 | } | |
8ab979d7 RD |
7938 | return _resultobj; |
7939 | } | |
7940 | ||
f6bcfd97 BP |
7941 | #define wxTreeCtrl_InsertItemBefore(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
7942 | static PyObject *_wrap_wxTreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7943 | PyObject * _resultobj; | |
7944 | wxTreeItemId * _result; | |
7945 | wxPyTreeCtrl * _arg0; | |
7946 | wxTreeItemId * _arg1; | |
7947 | size_t _arg2; | |
7948 | wxString * _arg3; | |
7949 | int _arg4 = (int ) -1; | |
7950 | int _arg5 = (int ) -1; | |
7951 | wxTreeItemData * _arg6 = (wxTreeItemData *) NULL; | |
7952 | PyObject * _argo0 = 0; | |
7953 | PyObject * _argo1 = 0; | |
7954 | PyObject * _obj3 = 0; | |
7955 | PyObject * _argo6 = 0; | |
7956 | char *_kwnames[] = { "self","parent","before","text","image","selectedImage","data", NULL }; | |
7957 | char _ptemp[128]; | |
7958 | ||
7959 | self = self; | |
7960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|iiO:wxTreeCtrl_InsertItemBefore",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_arg4,&_arg5,&_argo6)) | |
7961 | return NULL; | |
7962 | if (_argo0) { | |
7963 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7964 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7965 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItemBefore. Expected _wxPyTreeCtrl_p."); | |
7966 | return NULL; | |
7967 | } | |
7968 | } | |
7969 | if (_argo1) { | |
7970 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7971 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7972 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemId_p."); | |
7973 | return NULL; | |
7974 | } | |
7975 | } | |
7976 | { | |
2cd2fac8 RD |
7977 | #if PYTHON_API_VERSION >= 1009 |
7978 | char* tmpPtr; int tmpSize; | |
7979 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
7a446686 | 7980 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
7981 | return NULL; |
7982 | } | |
7983 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
7984 | return NULL; | |
7985 | _arg3 = new wxString(tmpPtr, tmpSize); | |
7986 | #else | |
f6bcfd97 BP |
7987 | if (!PyString_Check(_obj3)) { |
7988 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7989 | return NULL; | |
7990 | } | |
2cd2fac8 RD |
7991 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
7992 | #endif | |
f6bcfd97 BP |
7993 | } |
7994 | if (_argo6) { | |
7995 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
7996 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxTreeItemData_p")) { | |
7997 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemData_p."); | |
7998 | return NULL; | |
7999 | } | |
8000 | } | |
8001 | { | |
8002 | wxPy_BEGIN_ALLOW_THREADS; | |
8003 | _result = new wxTreeItemId (wxTreeCtrl_InsertItemBefore(_arg0,*_arg1,_arg2,*_arg3,_arg4,_arg5,_arg6)); | |
8004 | ||
8005 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8006 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
8007 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
8008 | _resultobj = Py_BuildValue("s",_ptemp); | |
8009 | { | |
8010 | if (_obj3) | |
8011 | delete _arg3; | |
8012 | } | |
8013 | return _resultobj; | |
8014 | } | |
8015 | ||
d5c9047a | 8016 | #define wxTreeCtrl_AppendItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->AppendItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 8017 | static PyObject *_wrap_wxTreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8018 | PyObject * _resultobj; |
d5c9047a | 8019 | wxTreeItemId * _result; |
f6bcfd97 | 8020 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8021 | wxTreeItemId * _arg1; |
8ab979d7 | 8022 | wxString * _arg2; |
1d99702e RD |
8023 | int _arg3 = (int ) -1; |
8024 | int _arg4 = (int ) -1; | |
8025 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
8026 | PyObject * _argo0 = 0; | |
8027 | PyObject * _argo1 = 0; | |
8ab979d7 | 8028 | PyObject * _obj2 = 0; |
1d99702e | 8029 | PyObject * _argo5 = 0; |
efc5f224 | 8030 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 8031 | char _ptemp[128]; |
8ab979d7 RD |
8032 | |
8033 | self = self; | |
efc5f224 | 8034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_AppendItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 8035 | return NULL; |
1d99702e RD |
8036 | if (_argo0) { |
8037 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8038 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8039 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AppendItem. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8040 | return NULL; |
8041 | } | |
8042 | } | |
1d99702e RD |
8043 | if (_argo1) { |
8044 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8045 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 8046 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AppendItem. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
8047 | return NULL; |
8048 | } | |
8049 | } | |
8050 | { | |
2cd2fac8 RD |
8051 | #if PYTHON_API_VERSION >= 1009 |
8052 | char* tmpPtr; int tmpSize; | |
8053 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 8054 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
8055 | return NULL; |
8056 | } | |
8057 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8058 | return NULL; | |
8059 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8060 | #else | |
8ab979d7 RD |
8061 | if (!PyString_Check(_obj2)) { |
8062 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8063 | return NULL; | |
8064 | } | |
2cd2fac8 RD |
8065 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8066 | #endif | |
8ab979d7 | 8067 | } |
1d99702e RD |
8068 | if (_argo5) { |
8069 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
8070 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 8071 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_AppendItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
8072 | return NULL; |
8073 | } | |
8074 | } | |
cf694132 RD |
8075 | { |
8076 | wxPy_BEGIN_ALLOW_THREADS; | |
8077 | _result = new wxTreeItemId (wxTreeCtrl_AppendItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); | |
8078 | ||
8079 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8080 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8081 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8082 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8083 | { |
8084 | if (_obj2) | |
8085 | delete _arg2; | |
8086 | } | |
8087 | return _resultobj; | |
8088 | } | |
8089 | ||
d5c9047a | 8090 | #define wxTreeCtrl_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
efc5f224 | 8091 | static PyObject *_wrap_wxTreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8092 | PyObject * _resultobj; |
f6bcfd97 | 8093 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8094 | wxTreeItemId * _arg1; |
1d99702e RD |
8095 | PyObject * _argo0 = 0; |
8096 | PyObject * _argo1 = 0; | |
efc5f224 | 8097 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
8098 | |
8099 | self = self; | |
efc5f224 | 8100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Delete",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8101 | return NULL; |
1d99702e RD |
8102 | if (_argo0) { |
8103 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8104 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8105 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Delete. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8106 | return NULL; |
8107 | } | |
8108 | } | |
1d99702e RD |
8109 | if (_argo1) { |
8110 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8111 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8112 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Delete. Expected _wxTreeItemId_p."); |
8113 | return NULL; | |
8114 | } | |
8115 | } | |
cf694132 RD |
8116 | { |
8117 | wxPy_BEGIN_ALLOW_THREADS; | |
8118 | wxTreeCtrl_Delete(_arg0,*_arg1); | |
8119 | ||
8120 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8121 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8122 | } Py_INCREF(Py_None); |
d5c9047a RD |
8123 | _resultobj = Py_None; |
8124 | return _resultobj; | |
8125 | } | |
8126 | ||
08127323 | 8127 | #define wxTreeCtrl_DeleteChildren(_swigobj,_swigarg0) (_swigobj->DeleteChildren(_swigarg0)) |
efc5f224 | 8128 | static PyObject *_wrap_wxTreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 | 8129 | PyObject * _resultobj; |
f6bcfd97 | 8130 | wxPyTreeCtrl * _arg0; |
08127323 | 8131 | wxTreeItemId * _arg1; |
1d99702e RD |
8132 | PyObject * _argo0 = 0; |
8133 | PyObject * _argo1 = 0; | |
efc5f224 | 8134 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
8135 | |
8136 | self = self; | |
efc5f224 | 8137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_DeleteChildren",_kwnames,&_argo0,&_argo1)) |
08127323 | 8138 | return NULL; |
1d99702e RD |
8139 | if (_argo0) { |
8140 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8141 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8142 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteChildren. Expected _wxPyTreeCtrl_p."); | |
08127323 RD |
8143 | return NULL; |
8144 | } | |
8145 | } | |
1d99702e RD |
8146 | if (_argo1) { |
8147 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8148 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
08127323 RD |
8149 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_DeleteChildren. Expected _wxTreeItemId_p."); |
8150 | return NULL; | |
8151 | } | |
8152 | } | |
cf694132 RD |
8153 | { |
8154 | wxPy_BEGIN_ALLOW_THREADS; | |
8155 | wxTreeCtrl_DeleteChildren(_arg0,*_arg1); | |
8156 | ||
8157 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8158 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8159 | } Py_INCREF(Py_None); |
08127323 RD |
8160 | _resultobj = Py_None; |
8161 | return _resultobj; | |
8162 | } | |
8163 | ||
d5c9047a | 8164 | #define wxTreeCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) |
efc5f224 | 8165 | static PyObject *_wrap_wxTreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8166 | PyObject * _resultobj; |
f6bcfd97 | 8167 | wxPyTreeCtrl * _arg0; |
1d99702e | 8168 | PyObject * _argo0 = 0; |
efc5f224 | 8169 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
8170 | |
8171 | self = self; | |
efc5f224 | 8172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_DeleteAllItems",_kwnames,&_argo0)) |
d5c9047a | 8173 | return NULL; |
1d99702e RD |
8174 | if (_argo0) { |
8175 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8176 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8177 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteAllItems. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8178 | return NULL; |
8179 | } | |
8180 | } | |
cf694132 RD |
8181 | { |
8182 | wxPy_BEGIN_ALLOW_THREADS; | |
8183 | wxTreeCtrl_DeleteAllItems(_arg0); | |
8184 | ||
8185 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8186 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8187 | } Py_INCREF(Py_None); |
d5c9047a RD |
8188 | _resultobj = Py_None; |
8189 | return _resultobj; | |
8190 | } | |
8191 | ||
8192 | #define wxTreeCtrl_Expand(_swigobj,_swigarg0) (_swigobj->Expand(_swigarg0)) | |
efc5f224 | 8193 | static PyObject *_wrap_wxTreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8194 | PyObject * _resultobj; |
f6bcfd97 | 8195 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8196 | wxTreeItemId * _arg1; |
1d99702e RD |
8197 | PyObject * _argo0 = 0; |
8198 | PyObject * _argo1 = 0; | |
efc5f224 | 8199 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8200 | |
8201 | self = self; | |
efc5f224 | 8202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Expand",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8203 | return NULL; |
1d99702e RD |
8204 | if (_argo0) { |
8205 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8206 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8207 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Expand. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8208 | return NULL; |
8209 | } | |
8210 | } | |
1d99702e RD |
8211 | if (_argo1) { |
8212 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8213 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8214 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Expand. Expected _wxTreeItemId_p."); |
8215 | return NULL; | |
8216 | } | |
8217 | } | |
cf694132 RD |
8218 | { |
8219 | wxPy_BEGIN_ALLOW_THREADS; | |
8220 | wxTreeCtrl_Expand(_arg0,*_arg1); | |
8221 | ||
8222 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8223 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8224 | } Py_INCREF(Py_None); |
d5c9047a RD |
8225 | _resultobj = Py_None; |
8226 | return _resultobj; | |
8227 | } | |
8228 | ||
8229 | #define wxTreeCtrl_Collapse(_swigobj,_swigarg0) (_swigobj->Collapse(_swigarg0)) | |
efc5f224 | 8230 | static PyObject *_wrap_wxTreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8231 | PyObject * _resultobj; |
f6bcfd97 | 8232 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8233 | wxTreeItemId * _arg1; |
1d99702e RD |
8234 | PyObject * _argo0 = 0; |
8235 | PyObject * _argo1 = 0; | |
efc5f224 | 8236 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8237 | |
8238 | self = self; | |
efc5f224 | 8239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Collapse",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8240 | return NULL; |
1d99702e RD |
8241 | if (_argo0) { |
8242 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8243 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8244 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Collapse. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8245 | return NULL; |
8246 | } | |
8247 | } | |
1d99702e RD |
8248 | if (_argo1) { |
8249 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8250 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8251 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Collapse. Expected _wxTreeItemId_p."); |
8252 | return NULL; | |
8253 | } | |
8254 | } | |
cf694132 RD |
8255 | { |
8256 | wxPy_BEGIN_ALLOW_THREADS; | |
8257 | wxTreeCtrl_Collapse(_arg0,*_arg1); | |
8258 | ||
8259 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8260 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8261 | } Py_INCREF(Py_None); |
d5c9047a RD |
8262 | _resultobj = Py_None; |
8263 | return _resultobj; | |
8264 | } | |
8265 | ||
8266 | #define wxTreeCtrl_CollapseAndReset(_swigobj,_swigarg0) (_swigobj->CollapseAndReset(_swigarg0)) | |
efc5f224 | 8267 | static PyObject *_wrap_wxTreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8268 | PyObject * _resultobj; |
f6bcfd97 | 8269 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8270 | wxTreeItemId * _arg1; |
1d99702e RD |
8271 | PyObject * _argo0 = 0; |
8272 | PyObject * _argo1 = 0; | |
efc5f224 | 8273 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8274 | |
8275 | self = self; | |
efc5f224 | 8276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_CollapseAndReset",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8277 | return NULL; |
1d99702e RD |
8278 | if (_argo0) { |
8279 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8280 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8281 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_CollapseAndReset. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8282 | return NULL; |
8283 | } | |
8284 | } | |
1d99702e RD |
8285 | if (_argo1) { |
8286 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8287 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8288 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_CollapseAndReset. Expected _wxTreeItemId_p."); |
8289 | return NULL; | |
8290 | } | |
8291 | } | |
cf694132 RD |
8292 | { |
8293 | wxPy_BEGIN_ALLOW_THREADS; | |
8294 | wxTreeCtrl_CollapseAndReset(_arg0,*_arg1); | |
8295 | ||
8296 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8297 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8298 | } Py_INCREF(Py_None); |
d5c9047a RD |
8299 | _resultobj = Py_None; |
8300 | return _resultobj; | |
8301 | } | |
8302 | ||
8303 | #define wxTreeCtrl_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0)) | |
efc5f224 | 8304 | static PyObject *_wrap_wxTreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8305 | PyObject * _resultobj; |
f6bcfd97 | 8306 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8307 | wxTreeItemId * _arg1; |
1d99702e RD |
8308 | PyObject * _argo0 = 0; |
8309 | PyObject * _argo1 = 0; | |
efc5f224 | 8310 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8311 | |
8312 | self = self; | |
efc5f224 | 8313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Toggle",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8314 | return NULL; |
1d99702e RD |
8315 | if (_argo0) { |
8316 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8317 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8318 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Toggle. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8319 | return NULL; |
8320 | } | |
8321 | } | |
1d99702e RD |
8322 | if (_argo1) { |
8323 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8324 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8325 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Toggle. Expected _wxTreeItemId_p."); |
8326 | return NULL; | |
8327 | } | |
8328 | } | |
cf694132 RD |
8329 | { |
8330 | wxPy_BEGIN_ALLOW_THREADS; | |
8331 | wxTreeCtrl_Toggle(_arg0,*_arg1); | |
8332 | ||
8333 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8334 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8335 | } Py_INCREF(Py_None); |
d5c9047a RD |
8336 | _resultobj = Py_None; |
8337 | return _resultobj; | |
8338 | } | |
8339 | ||
8340 | #define wxTreeCtrl_Unselect(_swigobj) (_swigobj->Unselect()) | |
efc5f224 | 8341 | static PyObject *_wrap_wxTreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8342 | PyObject * _resultobj; |
f6bcfd97 | 8343 | wxPyTreeCtrl * _arg0; |
1d99702e | 8344 | PyObject * _argo0 = 0; |
efc5f224 | 8345 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
8346 | |
8347 | self = self; | |
efc5f224 | 8348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_Unselect",_kwnames,&_argo0)) |
d5c9047a | 8349 | return NULL; |
1d99702e RD |
8350 | if (_argo0) { |
8351 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8352 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Unselect. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8354 | return NULL; |
8355 | } | |
8356 | } | |
cf694132 RD |
8357 | { |
8358 | wxPy_BEGIN_ALLOW_THREADS; | |
8359 | wxTreeCtrl_Unselect(_arg0); | |
8360 | ||
8361 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8362 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8363 | } Py_INCREF(Py_None); |
d5c9047a RD |
8364 | _resultobj = Py_None; |
8365 | return _resultobj; | |
8366 | } | |
8367 | ||
8bf5d46e | 8368 | #define wxTreeCtrl_UnselectAll(_swigobj) (_swigobj->UnselectAll()) |
efc5f224 | 8369 | static PyObject *_wrap_wxTreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e | 8370 | PyObject * _resultobj; |
f6bcfd97 | 8371 | wxPyTreeCtrl * _arg0; |
1d99702e | 8372 | PyObject * _argo0 = 0; |
efc5f224 | 8373 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
8374 | |
8375 | self = self; | |
efc5f224 | 8376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_UnselectAll",_kwnames,&_argo0)) |
8bf5d46e | 8377 | return NULL; |
1d99702e RD |
8378 | if (_argo0) { |
8379 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8380 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_UnselectAll. Expected _wxPyTreeCtrl_p."); | |
8bf5d46e RD |
8382 | return NULL; |
8383 | } | |
8384 | } | |
8385 | { | |
8386 | wxPy_BEGIN_ALLOW_THREADS; | |
8387 | wxTreeCtrl_UnselectAll(_arg0); | |
8388 | ||
8389 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8390 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
8391 | } Py_INCREF(Py_None); |
8392 | _resultobj = Py_None; | |
8393 | return _resultobj; | |
8394 | } | |
8395 | ||
d5c9047a | 8396 | #define wxTreeCtrl_SelectItem(_swigobj,_swigarg0) (_swigobj->SelectItem(_swigarg0)) |
efc5f224 | 8397 | static PyObject *_wrap_wxTreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8398 | PyObject * _resultobj; |
f6bcfd97 | 8399 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8400 | wxTreeItemId * _arg1; |
1d99702e RD |
8401 | PyObject * _argo0 = 0; |
8402 | PyObject * _argo1 = 0; | |
efc5f224 | 8403 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8404 | |
8405 | self = self; | |
efc5f224 | 8406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SelectItem",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8407 | return NULL; |
1d99702e RD |
8408 | if (_argo0) { |
8409 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8410 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SelectItem. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8412 | return NULL; |
8413 | } | |
8414 | } | |
1d99702e RD |
8415 | if (_argo1) { |
8416 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8417 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8418 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SelectItem. Expected _wxTreeItemId_p."); |
8419 | return NULL; | |
8420 | } | |
8421 | } | |
cf694132 RD |
8422 | { |
8423 | wxPy_BEGIN_ALLOW_THREADS; | |
8424 | wxTreeCtrl_SelectItem(_arg0,*_arg1); | |
8425 | ||
8426 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8427 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8428 | } Py_INCREF(Py_None); |
d5c9047a RD |
8429 | _resultobj = Py_None; |
8430 | return _resultobj; | |
8431 | } | |
8432 | ||
8433 | #define wxTreeCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) | |
efc5f224 | 8434 | static PyObject *_wrap_wxTreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8435 | PyObject * _resultobj; |
f6bcfd97 | 8436 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8437 | wxTreeItemId * _arg1; |
1d99702e RD |
8438 | PyObject * _argo0 = 0; |
8439 | PyObject * _argo1 = 0; | |
efc5f224 | 8440 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8441 | |
8442 | self = self; | |
efc5f224 | 8443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EnsureVisible",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8444 | return NULL; |
1d99702e RD |
8445 | if (_argo0) { |
8446 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8447 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8448 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EnsureVisible. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8449 | return NULL; |
8450 | } | |
8451 | } | |
1d99702e RD |
8452 | if (_argo1) { |
8453 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8454 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8455 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EnsureVisible. Expected _wxTreeItemId_p."); |
8456 | return NULL; | |
8457 | } | |
8458 | } | |
cf694132 RD |
8459 | { |
8460 | wxPy_BEGIN_ALLOW_THREADS; | |
8461 | wxTreeCtrl_EnsureVisible(_arg0,*_arg1); | |
8462 | ||
8463 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8464 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8465 | } Py_INCREF(Py_None); |
d5c9047a RD |
8466 | _resultobj = Py_None; |
8467 | return _resultobj; | |
8468 | } | |
8469 | ||
8470 | #define wxTreeCtrl_ScrollTo(_swigobj,_swigarg0) (_swigobj->ScrollTo(_swigarg0)) | |
efc5f224 | 8471 | static PyObject *_wrap_wxTreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8472 | PyObject * _resultobj; |
f6bcfd97 | 8473 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8474 | wxTreeItemId * _arg1; |
1d99702e RD |
8475 | PyObject * _argo0 = 0; |
8476 | PyObject * _argo1 = 0; | |
efc5f224 | 8477 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8478 | |
8479 | self = self; | |
efc5f224 | 8480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ScrollTo",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8481 | return NULL; |
1d99702e RD |
8482 | if (_argo0) { |
8483 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8484 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8485 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ScrollTo. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8486 | return NULL; |
8487 | } | |
8488 | } | |
1d99702e RD |
8489 | if (_argo1) { |
8490 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8491 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ScrollTo. Expected _wxTreeItemId_p."); |
8493 | return NULL; | |
8494 | } | |
8495 | } | |
cf694132 RD |
8496 | { |
8497 | wxPy_BEGIN_ALLOW_THREADS; | |
8498 | wxTreeCtrl_ScrollTo(_arg0,*_arg1); | |
8499 | ||
8500 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8501 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8502 | } Py_INCREF(Py_None); |
d5c9047a RD |
8503 | _resultobj = Py_None; |
8504 | return _resultobj; | |
8505 | } | |
8506 | ||
8507 | #define wxTreeCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0)) | |
efc5f224 | 8508 | static PyObject *_wrap_wxTreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8509 | PyObject * _resultobj; |
f6bcfd97 | 8510 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8511 | wxTreeItemId * _arg1; |
1d99702e RD |
8512 | PyObject * _argo0 = 0; |
8513 | PyObject * _argo1 = 0; | |
efc5f224 | 8514 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8515 | |
8516 | self = self; | |
efc5f224 | 8517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EditLabel",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8518 | return NULL; |
1d99702e RD |
8519 | if (_argo0) { |
8520 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8521 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8522 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EditLabel. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8523 | return NULL; |
8524 | } | |
8525 | } | |
1d99702e RD |
8526 | if (_argo1) { |
8527 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8528 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8529 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EditLabel. Expected _wxTreeItemId_p."); |
8530 | return NULL; | |
8531 | } | |
8532 | } | |
cf694132 RD |
8533 | { |
8534 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 8535 | wxTreeCtrl_EditLabel(_arg0,*_arg1); |
cf694132 RD |
8536 | |
8537 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8538 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8539 | } Py_INCREF(Py_None); |
d5c9047a | 8540 | _resultobj = Py_None; |
8ab979d7 RD |
8541 | return _resultobj; |
8542 | } | |
8543 | ||
d426c97e RD |
8544 | #define wxTreeCtrl_SortChildren(_swigobj,_swigarg0) (_swigobj->SortChildren(_swigarg0)) |
8545 | static PyObject *_wrap_wxTreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8546 | PyObject * _resultobj; | |
f6bcfd97 | 8547 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
8548 | wxTreeItemId * _arg1; |
8549 | PyObject * _argo0 = 0; | |
8550 | PyObject * _argo1 = 0; | |
8551 | char *_kwnames[] = { "self","item", NULL }; | |
8552 | ||
8553 | self = self; | |
8554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SortChildren",_kwnames,&_argo0,&_argo1)) | |
8555 | return NULL; | |
8556 | if (_argo0) { | |
8557 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8558 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8559 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SortChildren. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
8560 | return NULL; |
8561 | } | |
8562 | } | |
8563 | if (_argo1) { | |
8564 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8565 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8566 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SortChildren. Expected _wxTreeItemId_p."); | |
8567 | return NULL; | |
8568 | } | |
8569 | } | |
8570 | { | |
8571 | wxPy_BEGIN_ALLOW_THREADS; | |
8572 | wxTreeCtrl_SortChildren(_arg0,*_arg1); | |
8573 | ||
8574 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8575 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
8576 | } Py_INCREF(Py_None); |
8577 | _resultobj = Py_None; | |
8578 | return _resultobj; | |
8579 | } | |
8580 | ||
b8b8dda7 | 8581 | #define wxTreeCtrl_SetItemBold(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBold(_swigarg0,_swigarg1)) |
efc5f224 | 8582 | static PyObject *_wrap_wxTreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 | 8583 | PyObject * _resultobj; |
f6bcfd97 | 8584 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 8585 | wxTreeItemId * _arg1; |
b1462dfa | 8586 | int _arg2 = (int ) TRUE; |
1d99702e RD |
8587 | PyObject * _argo0 = 0; |
8588 | PyObject * _argo1 = 0; | |
efc5f224 | 8589 | char *_kwnames[] = { "self","item","bold", NULL }; |
b8b8dda7 RD |
8590 | |
8591 | self = self; | |
b1462dfa | 8592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemBold",_kwnames,&_argo0,&_argo1,&_arg2)) |
b8b8dda7 | 8593 | return NULL; |
1d99702e RD |
8594 | if (_argo0) { |
8595 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8596 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8597 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBold. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
8598 | return NULL; |
8599 | } | |
8600 | } | |
1d99702e RD |
8601 | if (_argo1) { |
8602 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8603 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
b8b8dda7 RD |
8604 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBold. Expected _wxTreeItemId_p."); |
8605 | return NULL; | |
8606 | } | |
8607 | } | |
cf694132 RD |
8608 | { |
8609 | wxPy_BEGIN_ALLOW_THREADS; | |
8610 | wxTreeCtrl_SetItemBold(_arg0,*_arg1,_arg2); | |
8611 | ||
8612 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8613 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8614 | } Py_INCREF(Py_None); |
b8b8dda7 RD |
8615 | _resultobj = Py_None; |
8616 | return _resultobj; | |
8617 | } | |
8618 | ||
8619 | #define wxTreeCtrl_IsBold(_swigobj,_swigarg0) (_swigobj->IsBold(_swigarg0)) | |
efc5f224 | 8620 | static PyObject *_wrap_wxTreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
8621 | PyObject * _resultobj; |
8622 | bool _result; | |
f6bcfd97 | 8623 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 8624 | wxTreeItemId * _arg1; |
1d99702e RD |
8625 | PyObject * _argo0 = 0; |
8626 | PyObject * _argo1 = 0; | |
efc5f224 | 8627 | char *_kwnames[] = { "self","item", NULL }; |
b8b8dda7 RD |
8628 | |
8629 | self = self; | |
efc5f224 | 8630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsBold",_kwnames,&_argo0,&_argo1)) |
b8b8dda7 | 8631 | return NULL; |
1d99702e RD |
8632 | if (_argo0) { |
8633 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8634 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8635 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsBold. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
8636 | return NULL; |
8637 | } | |
8638 | } | |
1d99702e RD |
8639 | if (_argo1) { |
8640 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8641 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
b8b8dda7 RD |
8642 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsBold. Expected _wxTreeItemId_p."); |
8643 | return NULL; | |
8644 | } | |
8645 | } | |
cf694132 RD |
8646 | { |
8647 | wxPy_BEGIN_ALLOW_THREADS; | |
8648 | _result = (bool )wxTreeCtrl_IsBold(_arg0,*_arg1); | |
8649 | ||
8650 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8651 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8652 | } _resultobj = Py_BuildValue("i",_result); |
b8b8dda7 RD |
8653 | return _resultobj; |
8654 | } | |
8655 | ||
164b735b | 8656 | #define wxTreeCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) |
efc5f224 | 8657 | static PyObject *_wrap_wxTreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
8658 | PyObject * _resultobj; |
8659 | wxTreeItemId * _result; | |
f6bcfd97 | 8660 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 8661 | wxPoint * _arg1; |
164b735b RD |
8662 | int * _arg2; |
8663 | int temp; | |
1d99702e | 8664 | PyObject * _argo0 = 0; |
164b735b | 8665 | wxPoint temp0; |
2f90df85 | 8666 | PyObject * _obj1 = 0; |
efc5f224 | 8667 | char *_kwnames[] = { "self","point", NULL }; |
b8b8dda7 RD |
8668 | char _ptemp[128]; |
8669 | ||
8670 | self = self; | |
164b735b RD |
8671 | { |
8672 | _arg2 = &temp; | |
8673 | } | |
2f90df85 | 8674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_HitTest",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 8675 | return NULL; |
1d99702e RD |
8676 | if (_argo0) { |
8677 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8678 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8679 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_HitTest. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
8680 | return NULL; |
8681 | } | |
8682 | } | |
2f90df85 | 8683 | { |
164b735b | 8684 | _arg1 = &temp0; |
2f90df85 | 8685 | if (! wxPoint_helper(_obj1, &_arg1)) |
b8b8dda7 | 8686 | return NULL; |
2f90df85 | 8687 | } |
cf694132 RD |
8688 | { |
8689 | wxPy_BEGIN_ALLOW_THREADS; | |
164b735b | 8690 | _result = new wxTreeItemId (wxTreeCtrl_HitTest(_arg0,*_arg1,*_arg2)); |
cf694132 RD |
8691 | |
8692 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8693 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8694 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
b8b8dda7 | 8695 | _resultobj = Py_BuildValue("s",_ptemp); |
164b735b RD |
8696 | { |
8697 | PyObject *o; | |
8698 | o = PyInt_FromLong((long) (*_arg2)); | |
8699 | _resultobj = t_output_helper(_resultobj, o); | |
8700 | } | |
b8b8dda7 RD |
8701 | return _resultobj; |
8702 | } | |
8703 | ||
b7e72427 RD |
8704 | #define wxTreeCtrl_SetItemTextColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemTextColour(_swigarg0,_swigarg1)) |
8705 | static PyObject *_wrap_wxTreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8706 | PyObject * _resultobj; | |
f6bcfd97 | 8707 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
8708 | wxTreeItemId * _arg1; |
8709 | wxColour * _arg2; | |
8710 | PyObject * _argo0 = 0; | |
8711 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
8712 | wxColour temp; |
8713 | PyObject * _obj2 = 0; | |
b7e72427 RD |
8714 | char *_kwnames[] = { "self","item","col", NULL }; |
8715 | ||
8716 | self = self; | |
f6bcfd97 | 8717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemTextColour",_kwnames,&_argo0,&_argo1,&_obj2)) |
b7e72427 RD |
8718 | return NULL; |
8719 | if (_argo0) { | |
8720 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8721 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8722 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemTextColour. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
8723 | return NULL; |
8724 | } | |
8725 | } | |
8726 | if (_argo1) { | |
8727 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8728 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8729 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemTextColour. Expected _wxTreeItemId_p."); | |
8730 | return NULL; | |
8731 | } | |
8732 | } | |
f6bcfd97 BP |
8733 | { |
8734 | _arg2 = &temp; | |
8735 | if (! wxColour_helper(_obj2, &_arg2)) | |
b7e72427 | 8736 | return NULL; |
f6bcfd97 | 8737 | } |
b7e72427 RD |
8738 | { |
8739 | wxPy_BEGIN_ALLOW_THREADS; | |
8740 | wxTreeCtrl_SetItemTextColour(_arg0,*_arg1,*_arg2); | |
8741 | ||
8742 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8743 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
8744 | } Py_INCREF(Py_None); |
8745 | _resultobj = Py_None; | |
8746 | return _resultobj; | |
8747 | } | |
8748 | ||
8749 | #define wxTreeCtrl_SetItemBackgroundColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBackgroundColour(_swigarg0,_swigarg1)) | |
8750 | static PyObject *_wrap_wxTreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8751 | PyObject * _resultobj; | |
f6bcfd97 | 8752 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
8753 | wxTreeItemId * _arg1; |
8754 | wxColour * _arg2; | |
8755 | PyObject * _argo0 = 0; | |
8756 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
8757 | wxColour temp; |
8758 | PyObject * _obj2 = 0; | |
b7e72427 RD |
8759 | char *_kwnames[] = { "self","item","col", NULL }; |
8760 | ||
8761 | self = self; | |
f6bcfd97 | 8762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemBackgroundColour",_kwnames,&_argo0,&_argo1,&_obj2)) |
b7e72427 RD |
8763 | return NULL; |
8764 | if (_argo0) { | |
8765 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8766 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8767 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
8768 | return NULL; |
8769 | } | |
8770 | } | |
8771 | if (_argo1) { | |
8772 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8773 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8774 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxTreeItemId_p."); | |
8775 | return NULL; | |
8776 | } | |
8777 | } | |
f6bcfd97 BP |
8778 | { |
8779 | _arg2 = &temp; | |
8780 | if (! wxColour_helper(_obj2, &_arg2)) | |
b7e72427 | 8781 | return NULL; |
f6bcfd97 | 8782 | } |
b7e72427 RD |
8783 | { |
8784 | wxPy_BEGIN_ALLOW_THREADS; | |
8785 | wxTreeCtrl_SetItemBackgroundColour(_arg0,*_arg1,*_arg2); | |
8786 | ||
8787 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8788 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
8789 | } Py_INCREF(Py_None); |
8790 | _resultobj = Py_None; | |
8791 | return _resultobj; | |
8792 | } | |
8793 | ||
8794 | #define wxTreeCtrl_SetItemFont(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemFont(_swigarg0,_swigarg1)) | |
8795 | static PyObject *_wrap_wxTreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8796 | PyObject * _resultobj; | |
f6bcfd97 | 8797 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
8798 | wxTreeItemId * _arg1; |
8799 | wxFont * _arg2; | |
8800 | PyObject * _argo0 = 0; | |
8801 | PyObject * _argo1 = 0; | |
8802 | PyObject * _argo2 = 0; | |
8803 | char *_kwnames[] = { "self","item","font", NULL }; | |
8804 | ||
8805 | self = self; | |
8806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemFont",_kwnames,&_argo0,&_argo1,&_argo2)) | |
8807 | return NULL; | |
8808 | if (_argo0) { | |
8809 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8810 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8811 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemFont. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
8812 | return NULL; |
8813 | } | |
8814 | } | |
8815 | if (_argo1) { | |
8816 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8817 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemFont. Expected _wxTreeItemId_p."); | |
8819 | return NULL; | |
8820 | } | |
8821 | } | |
8822 | if (_argo2) { | |
8823 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8824 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
8825 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemFont. Expected _wxFont_p."); | |
8826 | return NULL; | |
8827 | } | |
8828 | } | |
8829 | { | |
8830 | wxPy_BEGIN_ALLOW_THREADS; | |
8831 | wxTreeCtrl_SetItemFont(_arg0,*_arg1,*_arg2); | |
8832 | ||
8833 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8834 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
8835 | } Py_INCREF(Py_None); |
8836 | _resultobj = Py_None; | |
8837 | return _resultobj; | |
8838 | } | |
8839 | ||
8ab979d7 | 8840 | static PyMethodDef controls2cMethods[] = { |
b7e72427 RD |
8841 | { "wxTreeCtrl_SetItemFont", (PyCFunction) _wrap_wxTreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, |
8842 | { "wxTreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8843 | { "wxTreeCtrl_SetItemTextColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
8844 | { "wxTreeCtrl_HitTest", (PyCFunction) _wrap_wxTreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
8845 | { "wxTreeCtrl_IsBold", (PyCFunction) _wrap_wxTreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
8846 | { "wxTreeCtrl_SetItemBold", (PyCFunction) _wrap_wxTreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 8847 | { "wxTreeCtrl_SortChildren", (PyCFunction) _wrap_wxTreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8848 | { "wxTreeCtrl_EditLabel", (PyCFunction) _wrap_wxTreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, |
8849 | { "wxTreeCtrl_ScrollTo", (PyCFunction) _wrap_wxTreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
8850 | { "wxTreeCtrl_EnsureVisible", (PyCFunction) _wrap_wxTreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
8851 | { "wxTreeCtrl_SelectItem", (PyCFunction) _wrap_wxTreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
8852 | { "wxTreeCtrl_UnselectAll", (PyCFunction) _wrap_wxTreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, | |
8853 | { "wxTreeCtrl_Unselect", (PyCFunction) _wrap_wxTreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
8854 | { "wxTreeCtrl_Toggle", (PyCFunction) _wrap_wxTreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
8855 | { "wxTreeCtrl_CollapseAndReset", (PyCFunction) _wrap_wxTreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
8856 | { "wxTreeCtrl_Collapse", (PyCFunction) _wrap_wxTreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
8857 | { "wxTreeCtrl_Expand", (PyCFunction) _wrap_wxTreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
8858 | { "wxTreeCtrl_DeleteAllItems", (PyCFunction) _wrap_wxTreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
8859 | { "wxTreeCtrl_DeleteChildren", (PyCFunction) _wrap_wxTreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
8860 | { "wxTreeCtrl_Delete", (PyCFunction) _wrap_wxTreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
8861 | { "wxTreeCtrl_AppendItem", (PyCFunction) _wrap_wxTreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 8862 | { "wxTreeCtrl_InsertItemBefore", (PyCFunction) _wrap_wxTreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8863 | { "wxTreeCtrl_InsertItem", (PyCFunction) _wrap_wxTreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, |
8864 | { "wxTreeCtrl_PrependItem", (PyCFunction) _wrap_wxTreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
8865 | { "wxTreeCtrl_AddRoot", (PyCFunction) _wrap_wxTreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 8866 | { "wxTreeCtrl_GetLastChild", (PyCFunction) _wrap_wxTreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8867 | { "wxTreeCtrl_GetPrevVisible", (PyCFunction) _wrap_wxTreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, |
8868 | { "wxTreeCtrl_GetNextVisible", (PyCFunction) _wrap_wxTreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
8869 | { "wxTreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_wxTreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
8870 | { "wxTreeCtrl_GetPrevSibling", (PyCFunction) _wrap_wxTreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
8871 | { "wxTreeCtrl_GetNextSibling", (PyCFunction) _wrap_wxTreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
8872 | { "wxTreeCtrl_GetNextChild", (PyCFunction) _wrap_wxTreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
8873 | { "wxTreeCtrl_GetFirstChild", (PyCFunction) _wrap_wxTreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
8874 | { "wxTreeCtrl_GetChildrenCount", (PyCFunction) _wrap_wxTreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 8875 | { "wxTreeCtrl_GetSelections", (PyCFunction) _wrap_wxTreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 8876 | { "wxTreeCtrl_GetItemParent", (PyCFunction) _wrap_wxTreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8877 | { "wxTreeCtrl_GetSelection", (PyCFunction) _wrap_wxTreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, |
8878 | { "wxTreeCtrl_GetRootItem", (PyCFunction) _wrap_wxTreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
8879 | { "wxTreeCtrl_IsSelected", (PyCFunction) _wrap_wxTreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
8880 | { "wxTreeCtrl_IsExpanded", (PyCFunction) _wrap_wxTreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
8881 | { "wxTreeCtrl_ItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
8882 | { "wxTreeCtrl_IsVisible", (PyCFunction) _wrap_wxTreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
8883 | { "wxTreeCtrl_SetPyData", (PyCFunction) _wrap_wxTreeCtrl_SetPyData, METH_VARARGS | METH_KEYWORDS }, | |
8884 | { "wxTreeCtrl_GetPyData", (PyCFunction) _wrap_wxTreeCtrl_GetPyData, METH_VARARGS | METH_KEYWORDS }, | |
8885 | { "wxTreeCtrl_SetItemData", (PyCFunction) _wrap_wxTreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
8886 | { "wxTreeCtrl_GetItemData", (PyCFunction) _wrap_wxTreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
8887 | { "wxTreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
8888 | { "wxTreeCtrl_SetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
8889 | { "wxTreeCtrl_SetItemImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
8890 | { "wxTreeCtrl_SetItemText", (PyCFunction) _wrap_wxTreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
8891 | { "wxTreeCtrl_GetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
8892 | { "wxTreeCtrl_GetItemImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
8893 | { "wxTreeCtrl_GetItemText", (PyCFunction) _wrap_wxTreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
8894 | { "wxTreeCtrl_SetSpacing", (PyCFunction) _wrap_wxTreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, |
8895 | { "wxTreeCtrl_GetSpacing", (PyCFunction) _wrap_wxTreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
8896 | { "wxTreeCtrl_AssignStateImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, |
8897 | { "wxTreeCtrl_AssignImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
8898 | { "wxTreeCtrl_SetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, |
8899 | { "wxTreeCtrl_SetImageList", (PyCFunction) _wrap_wxTreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
8900 | { "wxTreeCtrl_GetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
8901 | { "wxTreeCtrl_GetImageList", (PyCFunction) _wrap_wxTreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
8902 | { "wxTreeCtrl_SetIndent", (PyCFunction) _wrap_wxTreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
8903 | { "wxTreeCtrl_GetIndent", (PyCFunction) _wrap_wxTreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
8904 | { "wxTreeCtrl_GetCount", (PyCFunction) _wrap_wxTreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 8905 | { "wxTreeCtrl__setSelf", (PyCFunction) _wrap_wxTreeCtrl__setSelf, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
8906 | { "wxTreeCtrl_Create", (PyCFunction) _wrap_wxTreeCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
8907 | { "new_wxPreTreeCtrl", (PyCFunction) _wrap_new_wxPreTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
8908 | { "new_wxTreeCtrl", (PyCFunction) _wrap_new_wxTreeCtrl, METH_VARARGS | METH_KEYWORDS }, |
8909 | { "wxTreeEvent_GetLabel", (PyCFunction) _wrap_wxTreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
8910 | { "wxTreeEvent_GetCode", (PyCFunction) _wrap_wxTreeEvent_GetCode, METH_VARARGS | METH_KEYWORDS }, | |
8911 | { "wxTreeEvent_GetPoint", (PyCFunction) _wrap_wxTreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
8912 | { "wxTreeEvent_GetOldItem", (PyCFunction) _wrap_wxTreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
8913 | { "wxTreeEvent_GetItem", (PyCFunction) _wrap_wxTreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 | 8914 | { "new_wxTreeEvent", (PyCFunction) _wrap_new_wxTreeEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8915 | { "wxTreeItemData_SetId", (PyCFunction) _wrap_wxTreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, |
8916 | { "wxTreeItemData_GetId", (PyCFunction) _wrap_wxTreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
8917 | { "wxTreeItemData_SetData", (PyCFunction) _wrap_wxTreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
8918 | { "wxTreeItemData_GetData", (PyCFunction) _wrap_wxTreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
8919 | { "new_wxTreeItemData", (PyCFunction) _wrap_new_wxTreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 8920 | { "wxTreeItemId___cmp__", (PyCFunction) _wrap_wxTreeItemId___cmp__, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8921 | { "wxTreeItemId_IsOk", (PyCFunction) _wrap_wxTreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, |
8922 | { "delete_wxTreeItemId", (PyCFunction) _wrap_delete_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
8923 | { "new_wxTreeItemId", (PyCFunction) _wrap_new_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
8924 | { "wxTreeItemAttr_GetFont", (PyCFunction) _wrap_wxTreeItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, |
8925 | { "wxTreeItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8926 | { "wxTreeItemAttr_GetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8927 | { "wxTreeItemAttr_HasFont", (PyCFunction) _wrap_wxTreeItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
8928 | { "wxTreeItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8929 | { "wxTreeItemAttr_HasTextColour", (PyCFunction) _wrap_wxTreeItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8930 | { "wxTreeItemAttr_SetFont", (PyCFunction) _wrap_wxTreeItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
8931 | { "wxTreeItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8932 | { "wxTreeItemAttr_SetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8933 | { "new_wxTreeItemAttr", (PyCFunction) _wrap_new_wxTreeItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
dcd38683 | 8934 | { "wxListCtrl_SortItems", (PyCFunction) _wrap_wxListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 8935 | { "wxListCtrl_ScrollList", (PyCFunction) _wrap_wxListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, |
cd096152 RD |
8936 | { "wxListCtrl_SetItemCount", (PyCFunction) _wrap_wxListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, |
8937 | { "wxListCtrl_InsertColumn", (PyCFunction) _wrap_wxListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
8938 | { "wxListCtrl_InsertColumnInfo", (PyCFunction) _wrap_wxListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
8939 | { "wxListCtrl_InsertImageStringItem", (PyCFunction) _wrap_wxListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, |
8940 | { "wxListCtrl_InsertImageItem", (PyCFunction) _wrap_wxListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
8941 | { "wxListCtrl_InsertStringItem", (PyCFunction) _wrap_wxListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
8942 | { "wxListCtrl_InsertItem", (PyCFunction) _wrap_wxListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 8943 | { "wxListCtrl_HitTest", (PyCFunction) _wrap_wxListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8944 | { "wxListCtrl_FindItemAtPos", (PyCFunction) _wrap_wxListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, |
8945 | { "wxListCtrl_FindItemData", (PyCFunction) _wrap_wxListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
8946 | { "wxListCtrl_FindItem", (PyCFunction) _wrap_wxListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
8947 | { "wxListCtrl_EnsureVisible", (PyCFunction) _wrap_wxListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
8948 | { "wxListCtrl_ClearAll", (PyCFunction) _wrap_wxListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, |
8949 | { "wxListCtrl_DeleteAllColumns", (PyCFunction) _wrap_wxListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
8950 | { "wxListCtrl_DeleteColumn", (PyCFunction) _wrap_wxListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
8951 | { "wxListCtrl_DeleteAllItems", (PyCFunction) _wrap_wxListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
8952 | { "wxListCtrl_DeleteItem", (PyCFunction) _wrap_wxListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
8953 | { "wxListCtrl_Arrange", (PyCFunction) _wrap_wxListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
cd096152 RD |
8954 | { "wxListCtrl_RefreshItems", (PyCFunction) _wrap_wxListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, |
8955 | { "wxListCtrl_RefreshItem", (PyCFunction) _wrap_wxListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, | |
8956 | { "wxListCtrl_IsVirtual", (PyCFunction) _wrap_wxListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, | |
8957 | { "wxListCtrl_AssignImageList", (PyCFunction) _wrap_wxListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
8958 | { "wxListCtrl_SetImageList", (PyCFunction) _wrap_wxListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
8959 | { "wxListCtrl_GetImageList", (PyCFunction) _wrap_wxListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
8960 | { "wxListCtrl_GetNextItem", (PyCFunction) _wrap_wxListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
8961 | { "wxListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_wxListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
8962 | { "wxListCtrl_SetSingleStyle", (PyCFunction) _wrap_wxListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
8963 | { "wxListCtrl_GetTopItem", (PyCFunction) _wrap_wxListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
8964 | { "wxListCtrl_SetTextColour", (PyCFunction) _wrap_wxListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8965 | { "wxListCtrl_GetTextColour", (PyCFunction) _wrap_wxListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8966 | { "wxListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_wxListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
8967 | { "wxListCtrl_GetItemSpacing", (PyCFunction) _wrap_wxListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
8968 | { "wxListCtrl_GetColumnCount", (PyCFunction) _wrap_wxListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
8969 | { "wxListCtrl_GetItemCount", (PyCFunction) _wrap_wxListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
8970 | { "wxListCtrl_SetItemPosition", (PyCFunction) _wrap_wxListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
8971 | { "wxListCtrl_GetItemRect", (PyCFunction) _wrap_wxListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
8972 | { "wxListCtrl_GetItemPosition", (PyCFunction) _wrap_wxListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
8973 | { "wxListCtrl_SetItemData", (PyCFunction) _wrap_wxListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
8974 | { "wxListCtrl_GetItemData", (PyCFunction) _wrap_wxListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
8975 | { "wxListCtrl_SetItemText", (PyCFunction) _wrap_wxListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
8976 | { "wxListCtrl_GetItemText", (PyCFunction) _wrap_wxListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
8977 | { "wxListCtrl_SetItemImage", (PyCFunction) _wrap_wxListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
8978 | { "wxListCtrl_SetItemState", (PyCFunction) _wrap_wxListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
8979 | { "wxListCtrl_GetItemState", (PyCFunction) _wrap_wxListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
8980 | { "wxListCtrl_SetStringItem", (PyCFunction) _wrap_wxListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
8981 | { "wxListCtrl_SetItem", (PyCFunction) _wrap_wxListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
8982 | { "wxListCtrl_GetItem", (PyCFunction) _wrap_wxListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
8983 | { "wxListCtrl_GetCountPerPage", (PyCFunction) _wrap_wxListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
8984 | { "wxListCtrl_SetColumnWidth", (PyCFunction) _wrap_wxListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
8985 | { "wxListCtrl_GetColumnWidth", (PyCFunction) _wrap_wxListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
8986 | { "wxListCtrl_SetColumn", (PyCFunction) _wrap_wxListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
8987 | { "wxListCtrl_GetColumn", (PyCFunction) _wrap_wxListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
8988 | { "wxListCtrl_SetBackgroundColour", (PyCFunction) _wrap_wxListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8989 | { "wxListCtrl_SetForegroundColour", (PyCFunction) _wrap_wxListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8990 | { "wxListCtrl__setSelf", (PyCFunction) _wrap_wxListCtrl__setSelf, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
8991 | { "wxListCtrl_Create", (PyCFunction) _wrap_wxListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
8992 | { "new_wxPreListCtrl", (PyCFunction) _wrap_new_wxPreListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 8993 | { "new_wxListCtrl", (PyCFunction) _wrap_new_wxListCtrl, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
8994 | { "wxListEvent_GetItem", (PyCFunction) _wrap_wxListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, |
8995 | { "wxListEvent_GetMask", (PyCFunction) _wrap_wxListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
8996 | { "wxListEvent_GetData", (PyCFunction) _wrap_wxListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
8997 | { "wxListEvent_GetImage", (PyCFunction) _wrap_wxListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
8998 | { "wxListEvent_GetText", (PyCFunction) _wrap_wxListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
8999 | { "wxListEvent_GetLabel", (PyCFunction) _wrap_wxListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
9000 | { "wxListEvent_GetPoint", (PyCFunction) _wrap_wxListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
9001 | { "wxListEvent_Cancelled", (PyCFunction) _wrap_wxListEvent_Cancelled, METH_VARARGS | METH_KEYWORDS }, | |
9002 | { "wxListEvent_GetColumn", (PyCFunction) _wrap_wxListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
9003 | { "wxListEvent_GetOldItem", (PyCFunction) _wrap_wxListEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
9004 | { "wxListEvent_GetOldIndex", (PyCFunction) _wrap_wxListEvent_GetOldIndex, METH_VARARGS | METH_KEYWORDS }, | |
9005 | { "wxListEvent_GetIndex", (PyCFunction) _wrap_wxListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
9006 | { "wxListEvent_GetCode", (PyCFunction) _wrap_wxListEvent_GetCode, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9007 | { "wxListEvent_m_item_get", (PyCFunction) _wrap_wxListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, |
9008 | { "wxListEvent_m_item_set", (PyCFunction) _wrap_wxListEvent_m_item_set, METH_VARARGS | METH_KEYWORDS }, | |
9009 | { "wxListEvent_m_pointDrag_get", (PyCFunction) _wrap_wxListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, | |
9010 | { "wxListEvent_m_pointDrag_set", (PyCFunction) _wrap_wxListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS }, | |
9011 | { "wxListEvent_m_cancelled_get", (PyCFunction) _wrap_wxListEvent_m_cancelled_get, METH_VARARGS | METH_KEYWORDS }, | |
9012 | { "wxListEvent_m_cancelled_set", (PyCFunction) _wrap_wxListEvent_m_cancelled_set, METH_VARARGS | METH_KEYWORDS }, | |
9013 | { "wxListEvent_m_col_get", (PyCFunction) _wrap_wxListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
9014 | { "wxListEvent_m_col_set", (PyCFunction) _wrap_wxListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
9015 | { "wxListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
9016 | { "wxListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
9017 | { "wxListEvent_m_itemIndex_get", (PyCFunction) _wrap_wxListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
9018 | { "wxListEvent_m_itemIndex_set", (PyCFunction) _wrap_wxListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
9019 | { "wxListEvent_m_code_get", (PyCFunction) _wrap_wxListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, | |
9020 | { "wxListEvent_m_code_set", (PyCFunction) _wrap_wxListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9021 | { "wxListItem_m_width_get", (PyCFunction) _wrap_wxListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, |
9022 | { "wxListItem_m_width_set", (PyCFunction) _wrap_wxListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
9023 | { "wxListItem_m_format_get", (PyCFunction) _wrap_wxListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
9024 | { "wxListItem_m_format_set", (PyCFunction) _wrap_wxListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
9025 | { "wxListItem_m_data_get", (PyCFunction) _wrap_wxListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
9026 | { "wxListItem_m_data_set", (PyCFunction) _wrap_wxListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
9027 | { "wxListItem_m_image_get", (PyCFunction) _wrap_wxListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
9028 | { "wxListItem_m_image_set", (PyCFunction) _wrap_wxListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
9029 | { "wxListItem_m_text_get", (PyCFunction) _wrap_wxListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
9030 | { "wxListItem_m_text_set", (PyCFunction) _wrap_wxListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
9031 | { "wxListItem_m_stateMask_get", (PyCFunction) _wrap_wxListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
9032 | { "wxListItem_m_stateMask_set", (PyCFunction) _wrap_wxListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
9033 | { "wxListItem_m_state_get", (PyCFunction) _wrap_wxListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
9034 | { "wxListItem_m_state_set", (PyCFunction) _wrap_wxListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
9035 | { "wxListItem_m_col_get", (PyCFunction) _wrap_wxListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
9036 | { "wxListItem_m_col_set", (PyCFunction) _wrap_wxListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
9037 | { "wxListItem_m_itemId_get", (PyCFunction) _wrap_wxListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
9038 | { "wxListItem_m_itemId_set", (PyCFunction) _wrap_wxListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
9039 | { "wxListItem_m_mask_get", (PyCFunction) _wrap_wxListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
9040 | { "wxListItem_m_mask_set", (PyCFunction) _wrap_wxListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
9041 | { "wxListItem_GetFont", (PyCFunction) _wrap_wxListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, |
9042 | { "wxListItem_GetBackgroundColour", (PyCFunction) _wrap_wxListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9043 | { "wxListItem_GetTextColour", (PyCFunction) _wrap_wxListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9044 | { "wxListItem_HasAttributes", (PyCFunction) _wrap_wxListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
9045 | { "wxListItem_GetAttributes", (PyCFunction) _wrap_wxListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
9046 | { "wxListItem_GetAlign", (PyCFunction) _wrap_wxListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
9047 | { "wxListItem_GetWidth", (PyCFunction) _wrap_wxListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
9048 | { "wxListItem_GetData", (PyCFunction) _wrap_wxListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
9049 | { "wxListItem_GetImage", (PyCFunction) _wrap_wxListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
9050 | { "wxListItem_GetText", (PyCFunction) _wrap_wxListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
9051 | { "wxListItem_GetState", (PyCFunction) _wrap_wxListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
9052 | { "wxListItem_GetColumn", (PyCFunction) _wrap_wxListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
9053 | { "wxListItem_GetId", (PyCFunction) _wrap_wxListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
9054 | { "wxListItem_GetMask", (PyCFunction) _wrap_wxListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
9055 | { "wxListItem_SetFont", (PyCFunction) _wrap_wxListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
9056 | { "wxListItem_SetBackgroundColour", (PyCFunction) _wrap_wxListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9057 | { "wxListItem_SetTextColour", (PyCFunction) _wrap_wxListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9058 | { "wxListItem_SetAlign", (PyCFunction) _wrap_wxListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
9059 | { "wxListItem_SetWidth", (PyCFunction) _wrap_wxListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
9060 | { "wxListItem_SetData", (PyCFunction) _wrap_wxListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
9061 | { "wxListItem_SetImage", (PyCFunction) _wrap_wxListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
9062 | { "wxListItem_SetText", (PyCFunction) _wrap_wxListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
9063 | { "wxListItem_SetStateMask", (PyCFunction) _wrap_wxListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
9064 | { "wxListItem_SetState", (PyCFunction) _wrap_wxListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
9065 | { "wxListItem_SetColumn", (PyCFunction) _wrap_wxListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
9066 | { "wxListItem_SetId", (PyCFunction) _wrap_wxListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
9067 | { "wxListItem_SetMask", (PyCFunction) _wrap_wxListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
9068 | { "wxListItem_ClearAttributes", (PyCFunction) _wrap_wxListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
9069 | { "wxListItem_Clear", (PyCFunction) _wrap_wxListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
9070 | { "delete_wxListItem", (PyCFunction) _wrap_delete_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
9071 | { "new_wxListItem", (PyCFunction) _wrap_new_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
9072 | { "wxListItemAttr_GetFont", (PyCFunction) _wrap_wxListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
9073 | { "wxListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9074 | { "wxListItemAttr_GetTextColour", (PyCFunction) _wrap_wxListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9075 | { "wxListItemAttr_HasFont", (PyCFunction) _wrap_wxListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
9076 | { "wxListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9077 | { "wxListItemAttr_HasTextColour", (PyCFunction) _wrap_wxListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9078 | { "wxListItemAttr_SetFont", (PyCFunction) _wrap_wxListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
9079 | { "wxListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9080 | { "wxListItemAttr_SetTextColour", (PyCFunction) _wrap_wxListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9081 | { "new_wxListItemAttr", (PyCFunction) _wrap_new_wxListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
8ab979d7 RD |
9082 | { NULL, NULL } |
9083 | }; | |
1d99702e RD |
9084 | #ifdef __cplusplus |
9085 | } | |
9086 | #endif | |
9087 | /* | |
9088 | * This table is used by the pointer type-checker | |
9089 | */ | |
9090 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e RD |
9091 | { "_wxEvent","_class_wxTreeEvent",SwigwxTreeEventTowxEvent}, |
9092 | { "_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent}, | |
9093 | { "_wxEvent","_class_wxListEvent",SwigwxListEventTowxEvent}, | |
9094 | { "_wxEvent","_wxListEvent",SwigwxListEventTowxEvent}, | |
1d99702e | 9095 | { "_signed_long","_long",0}, |
b1462dfa | 9096 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
9097 | { "_wxPrintQuality","_int",0}, |
9098 | { "_wxPrintQuality","_signed_int",0}, | |
9099 | { "_wxPrintQuality","_unsigned_int",0}, | |
9100 | { "_wxPrintQuality","_wxWindowID",0}, | |
9101 | { "_wxPrintQuality","_uint",0}, | |
9102 | { "_wxPrintQuality","_EBool",0}, | |
9103 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 9104 | { "_wxPrintQuality","_time_t",0}, |
f6bcfd97 BP |
9105 | { "_class_wxEvtHandler","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, |
9106 | { "_class_wxEvtHandler","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, | |
cd096152 RD |
9107 | { "_class_wxEvtHandler","_class_wxPyListCtrl",SwigwxPyListCtrlTowxEvtHandler}, |
9108 | { "_class_wxEvtHandler","_wxPyListCtrl",SwigwxPyListCtrlTowxEvtHandler}, | |
1d99702e RD |
9109 | { "_wxNotifyEvent","_class_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, |
9110 | { "_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, | |
c368d904 RD |
9111 | { "_wxNotifyEvent","_class_wxListEvent",SwigwxListEventTowxNotifyEvent}, |
9112 | { "_wxNotifyEvent","_wxListEvent",SwigwxListEventTowxNotifyEvent}, | |
1d99702e | 9113 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
9114 | { "_long","_unsigned_long",0}, |
9115 | { "_long","_signed_long",0}, | |
9df61a29 RD |
9116 | { "_class_wxObject","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxObject}, |
9117 | { "_class_wxObject","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxObject}, | |
9118 | { "_class_wxObject","_class_wxTreeEvent",SwigwxTreeEventTowxObject}, | |
9119 | { "_class_wxObject","_wxTreeEvent",SwigwxTreeEventTowxObject}, | |
9120 | { "_class_wxObject","_class_wxPyTreeItemData",SwigwxPyTreeItemDataTowxObject}, | |
9121 | { "_class_wxObject","_wxPyTreeItemData",SwigwxPyTreeItemDataTowxObject}, | |
cd096152 RD |
9122 | { "_class_wxObject","_class_wxPyListCtrl",SwigwxPyListCtrlTowxObject}, |
9123 | { "_class_wxObject","_wxPyListCtrl",SwigwxPyListCtrlTowxObject}, | |
9df61a29 RD |
9124 | { "_class_wxObject","_class_wxListEvent",SwigwxListEventTowxObject}, |
9125 | { "_class_wxObject","_wxListEvent",SwigwxListEventTowxObject}, | |
9126 | { "_class_wxObject","_class_wxListItem",SwigwxListItemTowxObject}, | |
9127 | { "_class_wxObject","_wxListItem",SwigwxListItemTowxObject}, | |
b1462dfa | 9128 | { "_size_t","_wxCoord",0}, |
1d99702e | 9129 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 9130 | { "_size_t","_time_t",0}, |
1d99702e RD |
9131 | { "_size_t","_unsigned_int",0}, |
9132 | { "_size_t","_int",0}, | |
9133 | { "_size_t","_wxWindowID",0}, | |
9134 | { "_size_t","_uint",0}, | |
b1462dfa | 9135 | { "_uint","_wxCoord",0}, |
1d99702e | 9136 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 9137 | { "_uint","_time_t",0}, |
1d99702e RD |
9138 | { "_uint","_size_t",0}, |
9139 | { "_uint","_unsigned_int",0}, | |
9140 | { "_uint","_int",0}, | |
9141 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 9142 | { "_wxChar","_char",0}, |
1d99702e RD |
9143 | { "_class_wxEvent","_class_wxTreeEvent",SwigwxTreeEventTowxEvent}, |
9144 | { "_class_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent}, | |
9145 | { "_class_wxEvent","_class_wxListEvent",SwigwxListEventTowxEvent}, | |
9146 | { "_class_wxEvent","_wxListEvent",SwigwxListEventTowxEvent}, | |
1d99702e RD |
9147 | { "_wxCommandEvent","_class_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, |
9148 | { "_wxCommandEvent","_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, | |
9149 | { "_wxCommandEvent","_class_wxListEvent",SwigwxListEventTowxCommandEvent}, | |
9150 | { "_wxCommandEvent","_wxListEvent",SwigwxListEventTowxCommandEvent}, | |
f6bcfd97 | 9151 | { "_char","_wxChar",0}, |
1d99702e RD |
9152 | { "_class_wxNotifyEvent","_class_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, |
9153 | { "_class_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, | |
c368d904 RD |
9154 | { "_class_wxNotifyEvent","_class_wxListEvent",SwigwxListEventTowxNotifyEvent}, |
9155 | { "_class_wxNotifyEvent","_wxListEvent",SwigwxListEventTowxNotifyEvent}, | |
b1462dfa | 9156 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
9157 | { "_EBool","_wxPrintQuality",0}, |
9158 | { "_EBool","_signed_int",0}, | |
9159 | { "_EBool","_int",0}, | |
9160 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 9161 | { "_unsigned_long","_long",0}, |
b1462dfa | 9162 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
9163 | { "_signed_int","_wxPrintQuality",0}, |
9164 | { "_signed_int","_EBool",0}, | |
9165 | { "_signed_int","_wxWindowID",0}, | |
9166 | { "_signed_int","_int",0}, | |
1d99702e RD |
9167 | { "_WXTYPE","_short",0}, |
9168 | { "_WXTYPE","_signed_short",0}, | |
9169 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
9170 | { "_unsigned_short","_WXTYPE",0}, |
9171 | { "_unsigned_short","_short",0}, | |
f6bcfd97 BP |
9172 | { "_class_wxWindow","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, |
9173 | { "_class_wxWindow","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, | |
cd096152 RD |
9174 | { "_class_wxWindow","_class_wxPyListCtrl",SwigwxPyListCtrlTowxWindow}, |
9175 | { "_class_wxWindow","_wxPyListCtrl",SwigwxPyListCtrlTowxWindow}, | |
9df61a29 RD |
9176 | { "_wxObject","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxObject}, |
9177 | { "_wxObject","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxObject}, | |
9178 | { "_wxObject","_class_wxTreeEvent",SwigwxTreeEventTowxObject}, | |
9179 | { "_wxObject","_wxTreeEvent",SwigwxTreeEventTowxObject}, | |
9180 | { "_wxObject","_class_wxPyTreeItemData",SwigwxPyTreeItemDataTowxObject}, | |
9181 | { "_wxObject","_wxPyTreeItemData",SwigwxPyTreeItemDataTowxObject}, | |
cd096152 RD |
9182 | { "_wxObject","_class_wxPyListCtrl",SwigwxPyListCtrlTowxObject}, |
9183 | { "_wxObject","_wxPyListCtrl",SwigwxPyListCtrlTowxObject}, | |
9df61a29 RD |
9184 | { "_wxObject","_class_wxListEvent",SwigwxListEventTowxObject}, |
9185 | { "_wxObject","_wxListEvent",SwigwxListEventTowxObject}, | |
9186 | { "_wxObject","_class_wxListItem",SwigwxListItemTowxObject}, | |
9187 | { "_wxObject","_wxListItem",SwigwxListItemTowxObject}, | |
1d99702e RD |
9188 | { "_signed_short","_WXTYPE",0}, |
9189 | { "_signed_short","_short",0}, | |
1d99702e | 9190 | { "_unsigned_char","_byte",0}, |
f6bcfd97 BP |
9191 | { "_wxControl","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, |
9192 | { "_wxControl","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, | |
cd096152 RD |
9193 | { "_wxControl","_class_wxPyListCtrl",SwigwxPyListCtrlTowxControl}, |
9194 | { "_wxControl","_wxPyListCtrl",SwigwxPyListCtrlTowxControl}, | |
b1462dfa | 9195 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 9196 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 9197 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
9198 | { "_unsigned_int","_size_t",0}, |
9199 | { "_unsigned_int","_uint",0}, | |
9200 | { "_unsigned_int","_wxWindowID",0}, | |
9201 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
9202 | { "_short","_WXTYPE",0}, |
9203 | { "_short","_unsigned_short",0}, | |
9204 | { "_short","_signed_short",0}, | |
b1462dfa | 9205 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 9206 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 9207 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
9208 | { "_wxWindowID","_size_t",0}, |
9209 | { "_wxWindowID","_EBool",0}, | |
9210 | { "_wxWindowID","_uint",0}, | |
9211 | { "_wxWindowID","_int",0}, | |
9212 | { "_wxWindowID","_signed_int",0}, | |
9213 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 9214 | { "_int","_wxCoord",0}, |
1d99702e | 9215 | { "_int","_wxPrintQuality",0}, |
c368d904 | 9216 | { "_int","_time_t",0}, |
1d99702e RD |
9217 | { "_int","_size_t",0}, |
9218 | { "_int","_EBool",0}, | |
9219 | { "_int","_uint",0}, | |
9220 | { "_int","_wxWindowID",0}, | |
9221 | { "_int","_unsigned_int",0}, | |
9222 | { "_int","_signed_int",0}, | |
c368d904 RD |
9223 | { "_time_t","_wxCoord",0}, |
9224 | { "_time_t","_wxPrintQuality",0}, | |
9225 | { "_time_t","_unsigned_int",0}, | |
9226 | { "_time_t","_int",0}, | |
9227 | { "_time_t","_wxWindowID",0}, | |
9228 | { "_time_t","_uint",0}, | |
9229 | { "_time_t","_size_t",0}, | |
f6bcfd97 BP |
9230 | { "_class_wxControl","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, |
9231 | { "_class_wxControl","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, | |
cd096152 RD |
9232 | { "_class_wxControl","_class_wxPyListCtrl",SwigwxPyListCtrlTowxControl}, |
9233 | { "_class_wxControl","_wxPyListCtrl",SwigwxPyListCtrlTowxControl}, | |
b1462dfa RD |
9234 | { "_wxCoord","_int",0}, |
9235 | { "_wxCoord","_signed_int",0}, | |
9236 | { "_wxCoord","_unsigned_int",0}, | |
9237 | { "_wxCoord","_wxWindowID",0}, | |
9238 | { "_wxCoord","_uint",0}, | |
9239 | { "_wxCoord","_EBool",0}, | |
9240 | { "_wxCoord","_size_t",0}, | |
c368d904 | 9241 | { "_wxCoord","_time_t",0}, |
b1462dfa | 9242 | { "_wxCoord","_wxPrintQuality",0}, |
1d99702e RD |
9243 | { "_class_wxCommandEvent","_class_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, |
9244 | { "_class_wxCommandEvent","_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, | |
9245 | { "_class_wxCommandEvent","_class_wxListEvent",SwigwxListEventTowxCommandEvent}, | |
9246 | { "_class_wxCommandEvent","_wxListEvent",SwigwxListEventTowxCommandEvent}, | |
f6bcfd97 BP |
9247 | { "_wxEvtHandler","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, |
9248 | { "_wxEvtHandler","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, | |
cd096152 RD |
9249 | { "_wxEvtHandler","_class_wxPyListCtrl",SwigwxPyListCtrlTowxEvtHandler}, |
9250 | { "_wxEvtHandler","_wxPyListCtrl",SwigwxPyListCtrlTowxEvtHandler}, | |
f6bcfd97 BP |
9251 | { "_wxWindow","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, |
9252 | { "_wxWindow","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, | |
cd096152 RD |
9253 | { "_wxWindow","_class_wxPyListCtrl",SwigwxPyListCtrlTowxWindow}, |
9254 | { "_wxWindow","_wxPyListCtrl",SwigwxPyListCtrlTowxWindow}, | |
1d99702e RD |
9255 | {0,0,0}}; |
9256 | ||
8ab979d7 RD |
9257 | static PyObject *SWIG_globals; |
9258 | #ifdef __cplusplus | |
9259 | extern "C" | |
9260 | #endif | |
1d99702e | 9261 | SWIGEXPORT(void) initcontrols2c() { |
8ab979d7 RD |
9262 | PyObject *m, *d; |
9263 | SWIG_globals = SWIG_newvarlink(); | |
9264 | m = Py_InitModule("controls2c", controls2cMethods); | |
9265 | d = PyModule_GetDict(m); | |
cd096152 RD |
9266 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
9267 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
9268 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
9269 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
9270 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
9271 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
9272 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_GET_INFO)); | |
9273 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_SET_INFO)); | |
9274 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
9275 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
9276 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_LIST_KEY_DOWN)); | |
9277 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
9278 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_CLICK)); | |
9279 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
9280 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
9281 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
9282 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_CACHE_HINT)); | |
9283 | PyDict_SetItemString(d,"wxLC_VRULES", PyInt_FromLong((long) wxLC_VRULES)); | |
9284 | PyDict_SetItemString(d,"wxLC_HRULES", PyInt_FromLong((long) wxLC_HRULES)); | |
9285 | PyDict_SetItemString(d,"wxLC_ICON", PyInt_FromLong((long) wxLC_ICON)); | |
9286 | PyDict_SetItemString(d,"wxLC_SMALL_ICON", PyInt_FromLong((long) wxLC_SMALL_ICON)); | |
9287 | PyDict_SetItemString(d,"wxLC_LIST", PyInt_FromLong((long) wxLC_LIST)); | |
9288 | PyDict_SetItemString(d,"wxLC_REPORT", PyInt_FromLong((long) wxLC_REPORT)); | |
9289 | PyDict_SetItemString(d,"wxLC_ALIGN_TOP", PyInt_FromLong((long) wxLC_ALIGN_TOP)); | |
9290 | PyDict_SetItemString(d,"wxLC_ALIGN_LEFT", PyInt_FromLong((long) wxLC_ALIGN_LEFT)); | |
9291 | PyDict_SetItemString(d,"wxLC_AUTOARRANGE", PyInt_FromLong((long) wxLC_AUTOARRANGE)); | |
9292 | PyDict_SetItemString(d,"wxLC_VIRTUAL", PyInt_FromLong((long) wxLC_VIRTUAL)); | |
9293 | PyDict_SetItemString(d,"wxLC_EDIT_LABELS", PyInt_FromLong((long) wxLC_EDIT_LABELS)); | |
9294 | PyDict_SetItemString(d,"wxLC_NO_HEADER", PyInt_FromLong((long) wxLC_NO_HEADER)); | |
9295 | PyDict_SetItemString(d,"wxLC_NO_SORT_HEADER", PyInt_FromLong((long) wxLC_NO_SORT_HEADER)); | |
9296 | PyDict_SetItemString(d,"wxLC_SINGLE_SEL", PyInt_FromLong((long) wxLC_SINGLE_SEL)); | |
9297 | PyDict_SetItemString(d,"wxLC_SORT_ASCENDING", PyInt_FromLong((long) wxLC_SORT_ASCENDING)); | |
9298 | PyDict_SetItemString(d,"wxLC_SORT_DESCENDING", PyInt_FromLong((long) wxLC_SORT_DESCENDING)); | |
9299 | PyDict_SetItemString(d,"wxLC_MASK_TYPE", PyInt_FromLong((long) wxLC_MASK_TYPE)); | |
9300 | PyDict_SetItemString(d,"wxLC_MASK_ALIGN", PyInt_FromLong((long) wxLC_MASK_ALIGN)); | |
9301 | PyDict_SetItemString(d,"wxLC_MASK_SORT", PyInt_FromLong((long) wxLC_MASK_SORT)); | |
9302 | PyDict_SetItemString(d,"wxLIST_MASK_STATE", PyInt_FromLong((long) wxLIST_MASK_STATE)); | |
af309447 RD |
9303 | PyDict_SetItemString(d,"wxLIST_MASK_TEXT", PyInt_FromLong((long) wxLIST_MASK_TEXT)); |
9304 | PyDict_SetItemString(d,"wxLIST_MASK_IMAGE", PyInt_FromLong((long) wxLIST_MASK_IMAGE)); | |
9305 | PyDict_SetItemString(d,"wxLIST_MASK_DATA", PyInt_FromLong((long) wxLIST_MASK_DATA)); | |
cd096152 | 9306 | PyDict_SetItemString(d,"wxLIST_SET_ITEM", PyInt_FromLong((long) wxLIST_SET_ITEM)); |
af309447 RD |
9307 | PyDict_SetItemString(d,"wxLIST_MASK_WIDTH", PyInt_FromLong((long) wxLIST_MASK_WIDTH)); |
9308 | PyDict_SetItemString(d,"wxLIST_MASK_FORMAT", PyInt_FromLong((long) wxLIST_MASK_FORMAT)); | |
9309 | PyDict_SetItemString(d,"wxLIST_STATE_DONTCARE", PyInt_FromLong((long) wxLIST_STATE_DONTCARE)); | |
9310 | PyDict_SetItemString(d,"wxLIST_STATE_DROPHILITED", PyInt_FromLong((long) wxLIST_STATE_DROPHILITED)); | |
9311 | PyDict_SetItemString(d,"wxLIST_STATE_FOCUSED", PyInt_FromLong((long) wxLIST_STATE_FOCUSED)); | |
9312 | PyDict_SetItemString(d,"wxLIST_STATE_SELECTED", PyInt_FromLong((long) wxLIST_STATE_SELECTED)); | |
9313 | PyDict_SetItemString(d,"wxLIST_STATE_CUT", PyInt_FromLong((long) wxLIST_STATE_CUT)); | |
9314 | PyDict_SetItemString(d,"wxLIST_HITTEST_ABOVE", PyInt_FromLong((long) wxLIST_HITTEST_ABOVE)); | |
9315 | PyDict_SetItemString(d,"wxLIST_HITTEST_BELOW", PyInt_FromLong((long) wxLIST_HITTEST_BELOW)); | |
9316 | PyDict_SetItemString(d,"wxLIST_HITTEST_NOWHERE", PyInt_FromLong((long) wxLIST_HITTEST_NOWHERE)); | |
9317 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMICON)); | |
9318 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMLABEL)); | |
9319 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMRIGHT)); | |
9320 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMSTATEICON)); | |
9321 | PyDict_SetItemString(d,"wxLIST_HITTEST_TOLEFT", PyInt_FromLong((long) wxLIST_HITTEST_TOLEFT)); | |
9322 | PyDict_SetItemString(d,"wxLIST_HITTEST_TORIGHT", PyInt_FromLong((long) wxLIST_HITTEST_TORIGHT)); | |
9323 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEM", PyInt_FromLong((long) wxLIST_HITTEST_ONITEM)); | |
9324 | PyDict_SetItemString(d,"wxLIST_NEXT_ABOVE", PyInt_FromLong((long) wxLIST_NEXT_ABOVE)); | |
9325 | PyDict_SetItemString(d,"wxLIST_NEXT_ALL", PyInt_FromLong((long) wxLIST_NEXT_ALL)); | |
9326 | PyDict_SetItemString(d,"wxLIST_NEXT_BELOW", PyInt_FromLong((long) wxLIST_NEXT_BELOW)); | |
9327 | PyDict_SetItemString(d,"wxLIST_NEXT_LEFT", PyInt_FromLong((long) wxLIST_NEXT_LEFT)); | |
9328 | PyDict_SetItemString(d,"wxLIST_NEXT_RIGHT", PyInt_FromLong((long) wxLIST_NEXT_RIGHT)); | |
9329 | PyDict_SetItemString(d,"wxLIST_ALIGN_DEFAULT", PyInt_FromLong((long) wxLIST_ALIGN_DEFAULT)); | |
9330 | PyDict_SetItemString(d,"wxLIST_ALIGN_LEFT", PyInt_FromLong((long) wxLIST_ALIGN_LEFT)); | |
9331 | PyDict_SetItemString(d,"wxLIST_ALIGN_TOP", PyInt_FromLong((long) wxLIST_ALIGN_TOP)); | |
9332 | PyDict_SetItemString(d,"wxLIST_ALIGN_SNAP_TO_GRID", PyInt_FromLong((long) wxLIST_ALIGN_SNAP_TO_GRID)); | |
af309447 RD |
9333 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE", PyInt_FromLong((long) wxLIST_AUTOSIZE)); |
9334 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE_USEHEADER", PyInt_FromLong((long) wxLIST_AUTOSIZE_USEHEADER)); | |
9335 | PyDict_SetItemString(d,"wxLIST_RECT_BOUNDS", PyInt_FromLong((long) wxLIST_RECT_BOUNDS)); | |
9336 | PyDict_SetItemString(d,"wxLIST_RECT_ICON", PyInt_FromLong((long) wxLIST_RECT_ICON)); | |
9337 | PyDict_SetItemString(d,"wxLIST_RECT_LABEL", PyInt_FromLong((long) wxLIST_RECT_LABEL)); | |
9338 | PyDict_SetItemString(d,"wxLIST_FIND_UP", PyInt_FromLong((long) wxLIST_FIND_UP)); | |
9339 | PyDict_SetItemString(d,"wxLIST_FIND_DOWN", PyInt_FromLong((long) wxLIST_FIND_DOWN)); | |
9340 | PyDict_SetItemString(d,"wxLIST_FIND_LEFT", PyInt_FromLong((long) wxLIST_FIND_LEFT)); | |
9341 | PyDict_SetItemString(d,"wxLIST_FIND_RIGHT", PyInt_FromLong((long) wxLIST_FIND_RIGHT)); | |
f6bcfd97 BP |
9342 | PyDict_SetItemString(d,"wxLIST_FORMAT_LEFT", PyInt_FromLong((long) wxLIST_FORMAT_LEFT)); |
9343 | PyDict_SetItemString(d,"wxLIST_FORMAT_RIGHT", PyInt_FromLong((long) wxLIST_FORMAT_RIGHT)); | |
9344 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTRE", PyInt_FromLong((long) wxLIST_FORMAT_CENTRE)); | |
9345 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTER", PyInt_FromLong((long) wxLIST_FORMAT_CENTER)); | |
aa2a5b86 RD |
9346 | PyDict_SetItemString(d,"wxTR_NO_BUTTONS", PyInt_FromLong((long) wxTR_NO_BUTTONS)); |
9347 | PyDict_SetItemString(d,"wxTR_HAS_BUTTONS", PyInt_FromLong((long) wxTR_HAS_BUTTONS)); | |
9348 | PyDict_SetItemString(d,"wxTR_TWIST_BUTTONS", PyInt_FromLong((long) wxTR_TWIST_BUTTONS)); | |
9349 | PyDict_SetItemString(d,"wxTR_NO_LINES", PyInt_FromLong((long) wxTR_NO_LINES)); | |
9350 | PyDict_SetItemString(d,"wxTR_MAC_BUTTONS", PyInt_FromLong((long) wxTR_MAC_BUTTONS)); | |
9351 | PyDict_SetItemString(d,"wxTR_SINGLE", PyInt_FromLong((long) wxTR_SINGLE)); | |
9352 | PyDict_SetItemString(d,"wxTR_MULTIPLE", PyInt_FromLong((long) wxTR_MULTIPLE)); | |
9353 | PyDict_SetItemString(d,"wxTR_EXTENDED", PyInt_FromLong((long) wxTR_EXTENDED)); | |
9354 | PyDict_SetItemString(d,"wxTR_EDIT_LABELS", PyInt_FromLong((long) wxTR_EDIT_LABELS)); | |
9355 | PyDict_SetItemString(d,"wxTR_LINES_AT_ROOT", PyInt_FromLong((long) wxTR_LINES_AT_ROOT)); | |
9356 | PyDict_SetItemString(d,"wxTR_HIDE_ROOT", PyInt_FromLong((long) wxTR_HIDE_ROOT)); | |
9357 | PyDict_SetItemString(d,"wxTR_ROW_LINES", PyInt_FromLong((long) wxTR_ROW_LINES)); | |
9358 | PyDict_SetItemString(d,"wxTR_HAS_VARIABLE_ROW_HEIGHT", PyInt_FromLong((long) wxTR_HAS_VARIABLE_ROW_HEIGHT)); | |
9359 | PyDict_SetItemString(d,"wxTR_DEFAULT_STYLE", PyInt_FromLong((long) wxTR_DEFAULT_STYLE)); | |
694759cf RD |
9360 | PyDict_SetItemString(d,"wxTreeItemIcon_Normal", PyInt_FromLong((long) wxTreeItemIcon_Normal)); |
9361 | PyDict_SetItemString(d,"wxTreeItemIcon_Selected", PyInt_FromLong((long) wxTreeItemIcon_Selected)); | |
9362 | PyDict_SetItemString(d,"wxTreeItemIcon_Expanded", PyInt_FromLong((long) wxTreeItemIcon_Expanded)); | |
9363 | PyDict_SetItemString(d,"wxTreeItemIcon_SelectedExpanded", PyInt_FromLong((long) wxTreeItemIcon_SelectedExpanded)); | |
9364 | PyDict_SetItemString(d,"wxTreeItemIcon_Max", PyInt_FromLong((long) wxTreeItemIcon_Max)); | |
164b735b RD |
9365 | PyDict_SetItemString(d,"wxTREE_HITTEST_ABOVE", PyInt_FromLong((long) wxTREE_HITTEST_ABOVE)); |
9366 | PyDict_SetItemString(d,"wxTREE_HITTEST_BELOW", PyInt_FromLong((long) wxTREE_HITTEST_BELOW)); | |
9367 | PyDict_SetItemString(d,"wxTREE_HITTEST_NOWHERE", PyInt_FromLong((long) wxTREE_HITTEST_NOWHERE)); | |
9368 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMBUTTON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMBUTTON)); | |
9369 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMICON)); | |
9370 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMINDENT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMINDENT)); | |
9371 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLABEL)); | |
9372 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMRIGHT)); | |
9373 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMSTATEICON)); | |
9374 | PyDict_SetItemString(d,"wxTREE_HITTEST_TOLEFT", PyInt_FromLong((long) wxTREE_HITTEST_TOLEFT)); | |
9375 | PyDict_SetItemString(d,"wxTREE_HITTEST_TORIGHT", PyInt_FromLong((long) wxTREE_HITTEST_TORIGHT)); | |
9376 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMUPPERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMUPPERPART)); | |
9377 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLOWERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLOWERPART)); | |
9378 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEM", PyInt_FromLong((long) wxTREE_HITTEST_ONITEM)); | |
9c4165ad RD |
9379 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
9380 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
9381 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
9382 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
9383 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
9384 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_GET_INFO)); | |
9385 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SET_INFO)); | |
9386 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
9387 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
9388 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
9389 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
9390 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
9391 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
9392 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_TREE_KEY_DOWN)); | |
9393 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
9394 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
9395 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
7a446686 | 9396 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_DRAG)); |
9df61a29 RD |
9397 | |
9398 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
9399 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
1d99702e RD |
9400 | { |
9401 | int i; | |
9402 | for (i = 0; _swig_mapping[i].n1; i++) | |
9403 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
9404 | } | |
8ab979d7 | 9405 | } |