]>
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__) | |
3bcd5e1c | 30 | # define SWIGEXPORT(a) a _export |
8ab979d7 | 31 | # else |
3bcd5e1c | 32 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
3bcd5e1c | 36 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
37 | #endif |
38 | ||
3bcd5e1c RD |
39 | #include "Python.h" |
40 | ||
8ab979d7 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
3bcd5e1c | 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 | ||
3bcd5e1c | 71 | if (!target) { |
8ab979d7 | 72 | target = o; |
3bcd5e1c | 73 | } else if (target == Py_None) { |
8ab979d7 RD |
74 | Py_DECREF(Py_None); |
75 | target = o; | |
3bcd5e1c | 76 | } else { |
8ab979d7 RD |
77 | if (!PyTuple_Check(target)) { |
78 | o2 = target; | |
79 | target = PyTuple_New(1); | |
80 | PyTuple_SetItem(target, 0, o2); | |
81 | } | |
3bcd5e1c RD |
82 | o3 = PyTuple_New(1); |
83 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
84 | |
85 | o2 = target; | |
3bcd5e1c 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 | |
0220cbc1 | 96 | static char* wxStringErrorMsg = "String type required"; |
7a446686 | 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); | |
059a841c | 132 | // Python aware sorting function for wxPyListCtrl |
f6bcfd97 | 133 | int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { |
dcd38683 RD |
134 | int retval = 0; |
135 | PyObject* func = (PyObject*)funcPtr; | |
059a841c | 136 | wxPyTState* state = wxPyBeginBlockThreads(); |
dcd38683 RD |
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 | ||
059a841c | 146 | wxPyEndBlockThreads(state); |
dcd38683 RD |
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() { | |
059a841c | 161 | wxPyTState* state = wxPyBeginBlockThreads(); |
c368d904 | 162 | Py_DECREF(m_obj); |
059a841c | 163 | wxPyEndBlockThreads(state); |
cf694132 RD |
164 | } |
165 | ||
166 | PyObject* GetData() { | |
167 | Py_INCREF(m_obj); | |
168 | return m_obj; | |
169 | } | |
170 | ||
171 | void SetData(PyObject* obj) { | |
059a841c | 172 | wxPyTState* state = wxPyBeginBlockThreads(); |
cf694132 | 173 | Py_DECREF(m_obj); |
059a841c | 174 | wxPyEndBlockThreads(state); |
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; | |
059a841c RD |
207 | bool found; |
208 | wxPyTState* state = wxPyBeginBlockThreads(); | |
209 | if ((found = m_myInst.findCallback("OnCompareItems"))) | |
f6bcfd97 BP |
210 | rval = m_myInst.callCallback(Py_BuildValue( |
211 | "(OO)", | |
212 | wxPyConstructObject((void*)&item1, "wxTreeItemId"), | |
213 | wxPyConstructObject((void*)&item2, "wxTreeItemId"))); | |
059a841c RD |
214 | wxPyEndBlockThreads(state); |
215 | if (! found) | |
f6bcfd97 | 216 | rval = wxTreeCtrl::OnCompareItems(item1, item2); |
f6bcfd97 BP |
217 | return rval; |
218 | } | |
219 | PYPRIVATE; | |
220 | }; | |
221 | ||
9df61a29 RD |
222 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); |
223 | ||
1d99702e RD |
224 | #ifdef __cplusplus |
225 | extern "C" { | |
226 | #endif | |
cd096152 | 227 | #define new_wxListItemAttr(_swigarg0,_swigarg1,_swigarg2) (new wxListItemAttr(_swigarg0,_swigarg1,_swigarg2)) |
f6bcfd97 BP |
228 | static PyObject *_wrap_new_wxListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
229 | PyObject * _resultobj; | |
230 | wxListItemAttr * _result; | |
cd096152 RD |
231 | wxColour * _arg0 = (wxColour *) &wxNullColour; |
232 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
233 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
234 | wxColour temp; | |
235 | PyObject * _obj0 = 0; | |
236 | wxColour temp0; | |
237 | PyObject * _obj1 = 0; | |
238 | PyObject * _argo2 = 0; | |
239 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
f6bcfd97 BP |
240 | char _ptemp[128]; |
241 | ||
242 | self = self; | |
cd096152 RD |
243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxListItemAttr",_kwnames,&_obj0,&_obj1,&_argo2)) |
244 | return NULL; | |
245 | if (_obj0) | |
246 | { | |
247 | _arg0 = &temp; | |
248 | if (! wxColour_helper(_obj0, &_arg0)) | |
249 | return NULL; | |
250 | } | |
251 | if (_obj1) | |
252 | { | |
253 | _arg1 = &temp0; | |
254 | if (! wxColour_helper(_obj1, &_arg1)) | |
255 | return NULL; | |
256 | } | |
257 | if (_argo2) { | |
258 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
259 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxListItemAttr. Expected _wxFont_p."); | |
f6bcfd97 | 261 | return NULL; |
cd096152 RD |
262 | } |
263 | } | |
f6bcfd97 BP |
264 | { |
265 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 266 | _result = (wxListItemAttr *)new_wxListItemAttr(*_arg0,*_arg1,*_arg2); |
f6bcfd97 BP |
267 | |
268 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 269 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
270 | } if (_result) { |
271 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
272 | _resultobj = Py_BuildValue("s",_ptemp); | |
273 | } else { | |
274 | Py_INCREF(Py_None); | |
275 | _resultobj = Py_None; | |
276 | } | |
277 | return _resultobj; | |
278 | } | |
279 | ||
280 | #define wxListItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
281 | static PyObject *_wrap_wxListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
282 | PyObject * _resultobj; | |
283 | wxListItemAttr * _arg0; | |
284 | wxColour * _arg1; | |
285 | PyObject * _argo0 = 0; | |
286 | wxColour temp; | |
287 | PyObject * _obj1 = 0; | |
288 | char *_kwnames[] = { "self","colText", NULL }; | |
289 | ||
290 | self = self; | |
291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
292 | return NULL; | |
293 | if (_argo0) { | |
294 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
295 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
296 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetTextColour. Expected _wxListItemAttr_p."); | |
297 | return NULL; | |
298 | } | |
299 | } | |
300 | { | |
301 | _arg1 = &temp; | |
302 | if (! wxColour_helper(_obj1, &_arg1)) | |
303 | return NULL; | |
304 | } | |
305 | { | |
306 | wxPy_BEGIN_ALLOW_THREADS; | |
307 | wxListItemAttr_SetTextColour(_arg0,*_arg1); | |
308 | ||
309 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 310 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
311 | } Py_INCREF(Py_None); |
312 | _resultobj = Py_None; | |
313 | return _resultobj; | |
314 | } | |
315 | ||
316 | #define wxListItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
317 | static PyObject *_wrap_wxListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
318 | PyObject * _resultobj; | |
319 | wxListItemAttr * _arg0; | |
320 | wxColour * _arg1; | |
321 | PyObject * _argo0 = 0; | |
322 | wxColour temp; | |
323 | PyObject * _obj1 = 0; | |
324 | char *_kwnames[] = { "self","colBack", NULL }; | |
325 | ||
326 | self = self; | |
327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
328 | return NULL; | |
329 | if (_argo0) { | |
330 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
331 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
332 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetBackgroundColour. Expected _wxListItemAttr_p."); | |
333 | return NULL; | |
334 | } | |
335 | } | |
336 | { | |
337 | _arg1 = &temp; | |
338 | if (! wxColour_helper(_obj1, &_arg1)) | |
339 | return NULL; | |
340 | } | |
341 | { | |
342 | wxPy_BEGIN_ALLOW_THREADS; | |
343 | wxListItemAttr_SetBackgroundColour(_arg0,*_arg1); | |
344 | ||
345 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 346 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
347 | } Py_INCREF(Py_None); |
348 | _resultobj = Py_None; | |
349 | return _resultobj; | |
350 | } | |
351 | ||
352 | #define wxListItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
353 | static PyObject *_wrap_wxListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
354 | PyObject * _resultobj; | |
355 | wxListItemAttr * _arg0; | |
356 | wxFont * _arg1; | |
357 | PyObject * _argo0 = 0; | |
358 | PyObject * _argo1 = 0; | |
359 | char *_kwnames[] = { "self","font", NULL }; | |
360 | ||
361 | self = self; | |
362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetFont",_kwnames,&_argo0,&_argo1)) | |
363 | return NULL; | |
364 | if (_argo0) { | |
365 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
366 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
367 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetFont. Expected _wxListItemAttr_p."); | |
368 | return NULL; | |
369 | } | |
370 | } | |
371 | if (_argo1) { | |
372 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
373 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItemAttr_SetFont. Expected _wxFont_p."); | |
375 | return NULL; | |
376 | } | |
377 | } | |
378 | { | |
379 | wxPy_BEGIN_ALLOW_THREADS; | |
380 | wxListItemAttr_SetFont(_arg0,*_arg1); | |
381 | ||
382 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 383 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
384 | } Py_INCREF(Py_None); |
385 | _resultobj = Py_None; | |
386 | return _resultobj; | |
387 | } | |
388 | ||
389 | #define wxListItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) | |
390 | static PyObject *_wrap_wxListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
391 | PyObject * _resultobj; | |
392 | bool _result; | |
393 | wxListItemAttr * _arg0; | |
394 | PyObject * _argo0 = 0; | |
395 | char *_kwnames[] = { "self", NULL }; | |
396 | ||
397 | self = self; | |
398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasTextColour",_kwnames,&_argo0)) | |
399 | return NULL; | |
400 | if (_argo0) { | |
401 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
402 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasTextColour. Expected _wxListItemAttr_p."); | |
404 | return NULL; | |
405 | } | |
406 | } | |
407 | { | |
408 | wxPy_BEGIN_ALLOW_THREADS; | |
409 | _result = (bool )wxListItemAttr_HasTextColour(_arg0); | |
410 | ||
411 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 412 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
413 | } _resultobj = Py_BuildValue("i",_result); |
414 | return _resultobj; | |
415 | } | |
416 | ||
417 | #define wxListItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) | |
418 | static PyObject *_wrap_wxListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
419 | PyObject * _resultobj; | |
420 | bool _result; | |
421 | wxListItemAttr * _arg0; | |
422 | PyObject * _argo0 = 0; | |
423 | char *_kwnames[] = { "self", NULL }; | |
424 | ||
425 | self = self; | |
426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasBackgroundColour",_kwnames,&_argo0)) | |
427 | return NULL; | |
428 | if (_argo0) { | |
429 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
430 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
431 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasBackgroundColour. Expected _wxListItemAttr_p."); | |
432 | return NULL; | |
433 | } | |
434 | } | |
435 | { | |
436 | wxPy_BEGIN_ALLOW_THREADS; | |
437 | _result = (bool )wxListItemAttr_HasBackgroundColour(_arg0); | |
438 | ||
439 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 440 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
441 | } _resultobj = Py_BuildValue("i",_result); |
442 | return _resultobj; | |
443 | } | |
444 | ||
445 | #define wxListItemAttr_HasFont(_swigobj) (_swigobj->HasFont()) | |
446 | static PyObject *_wrap_wxListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
447 | PyObject * _resultobj; | |
448 | bool _result; | |
449 | wxListItemAttr * _arg0; | |
450 | PyObject * _argo0 = 0; | |
451 | char *_kwnames[] = { "self", NULL }; | |
452 | ||
453 | self = self; | |
454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasFont",_kwnames,&_argo0)) | |
455 | return NULL; | |
456 | if (_argo0) { | |
457 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
458 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
459 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasFont. Expected _wxListItemAttr_p."); | |
460 | return NULL; | |
461 | } | |
462 | } | |
463 | { | |
464 | wxPy_BEGIN_ALLOW_THREADS; | |
465 | _result = (bool )wxListItemAttr_HasFont(_arg0); | |
466 | ||
467 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 468 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
469 | } _resultobj = Py_BuildValue("i",_result); |
470 | return _resultobj; | |
471 | } | |
472 | ||
473 | #define wxListItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
474 | static PyObject *_wrap_wxListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
475 | PyObject * _resultobj; | |
476 | wxColour * _result; | |
477 | wxListItemAttr * _arg0; | |
478 | PyObject * _argo0 = 0; | |
479 | char *_kwnames[] = { "self", NULL }; | |
480 | char _ptemp[128]; | |
481 | ||
482 | self = self; | |
483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetTextColour",_kwnames,&_argo0)) | |
484 | return NULL; | |
485 | if (_argo0) { | |
486 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
487 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetTextColour. Expected _wxListItemAttr_p."); | |
489 | return NULL; | |
490 | } | |
491 | } | |
492 | { | |
493 | wxPy_BEGIN_ALLOW_THREADS; | |
3e212503 | 494 | _result = new wxColour (wxListItemAttr_GetTextColour(_arg0)); |
f6bcfd97 BP |
495 | |
496 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 497 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
498 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
499 | _resultobj = Py_BuildValue("s",_ptemp); | |
f6bcfd97 BP |
500 | return _resultobj; |
501 | } | |
502 | ||
503 | #define wxListItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
504 | static PyObject *_wrap_wxListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
505 | PyObject * _resultobj; | |
506 | wxColour * _result; | |
507 | wxListItemAttr * _arg0; | |
508 | PyObject * _argo0 = 0; | |
509 | char *_kwnames[] = { "self", NULL }; | |
510 | char _ptemp[128]; | |
511 | ||
512 | self = self; | |
513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetBackgroundColour",_kwnames,&_argo0)) | |
514 | return NULL; | |
515 | if (_argo0) { | |
516 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
517 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
518 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetBackgroundColour. Expected _wxListItemAttr_p."); | |
519 | return NULL; | |
520 | } | |
521 | } | |
522 | { | |
523 | wxPy_BEGIN_ALLOW_THREADS; | |
3e212503 | 524 | _result = new wxColour (wxListItemAttr_GetBackgroundColour(_arg0)); |
f6bcfd97 BP |
525 | |
526 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 527 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
528 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
529 | _resultobj = Py_BuildValue("s",_ptemp); | |
f6bcfd97 BP |
530 | return _resultobj; |
531 | } | |
532 | ||
533 | #define wxListItemAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
534 | static PyObject *_wrap_wxListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
535 | PyObject * _resultobj; | |
536 | wxFont * _result; | |
537 | wxListItemAttr * _arg0; | |
538 | PyObject * _argo0 = 0; | |
539 | char *_kwnames[] = { "self", NULL }; | |
540 | char _ptemp[128]; | |
541 | ||
542 | self = self; | |
543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetFont",_kwnames,&_argo0)) | |
544 | return NULL; | |
545 | if (_argo0) { | |
546 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
547 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
548 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetFont. Expected _wxListItemAttr_p."); | |
549 | return NULL; | |
550 | } | |
551 | } | |
552 | { | |
553 | wxPy_BEGIN_ALLOW_THREADS; | |
3e212503 | 554 | _result = new wxFont (wxListItemAttr_GetFont(_arg0)); |
f6bcfd97 BP |
555 | |
556 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 557 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
558 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
559 | _resultobj = Py_BuildValue("s",_ptemp); | |
f6bcfd97 BP |
560 | return _resultobj; |
561 | } | |
562 | ||
9df61a29 RD |
563 | static void *SwigwxListItemTowxObject(void *ptr) { |
564 | wxListItem *src; | |
565 | wxObject *dest; | |
566 | src = (wxListItem *) ptr; | |
567 | dest = (wxObject *) src; | |
568 | return (void *) dest; | |
569 | } | |
570 | ||
f6bcfd97 BP |
571 | #define new_wxListItem() (new wxListItem()) |
572 | static PyObject *_wrap_new_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
573 | PyObject * _resultobj; | |
574 | wxListItem * _result; | |
575 | char *_kwnames[] = { NULL }; | |
576 | char _ptemp[128]; | |
577 | ||
578 | self = self; | |
579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxListItem",_kwnames)) | |
580 | return NULL; | |
581 | { | |
582 | wxPy_BEGIN_ALLOW_THREADS; | |
583 | _result = (wxListItem *)new_wxListItem(); | |
584 | ||
585 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 586 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
587 | } if (_result) { |
588 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p"); | |
589 | _resultobj = Py_BuildValue("s",_ptemp); | |
590 | } else { | |
591 | Py_INCREF(Py_None); | |
592 | _resultobj = Py_None; | |
593 | } | |
594 | return _resultobj; | |
595 | } | |
596 | ||
597 | #define delete_wxListItem(_swigobj) (delete _swigobj) | |
598 | static PyObject *_wrap_delete_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
599 | PyObject * _resultobj; | |
600 | wxListItem * _arg0; | |
601 | PyObject * _argo0 = 0; | |
602 | char *_kwnames[] = { "self", NULL }; | |
603 | ||
604 | self = self; | |
605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxListItem",_kwnames,&_argo0)) | |
606 | return NULL; | |
607 | if (_argo0) { | |
608 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
609 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
610 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxListItem. Expected _wxListItem_p."); | |
611 | return NULL; | |
612 | } | |
613 | } | |
614 | { | |
615 | wxPy_BEGIN_ALLOW_THREADS; | |
616 | delete_wxListItem(_arg0); | |
617 | ||
618 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 619 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
620 | } Py_INCREF(Py_None); |
621 | _resultobj = Py_None; | |
622 | return _resultobj; | |
623 | } | |
624 | ||
625 | #define wxListItem_Clear(_swigobj) (_swigobj->Clear()) | |
626 | static PyObject *_wrap_wxListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
627 | PyObject * _resultobj; | |
628 | wxListItem * _arg0; | |
629 | PyObject * _argo0 = 0; | |
630 | char *_kwnames[] = { "self", NULL }; | |
631 | ||
632 | self = self; | |
633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_Clear",_kwnames,&_argo0)) | |
634 | return NULL; | |
635 | if (_argo0) { | |
636 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
637 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
638 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_Clear. Expected _wxListItem_p."); | |
639 | return NULL; | |
640 | } | |
641 | } | |
642 | { | |
643 | wxPy_BEGIN_ALLOW_THREADS; | |
644 | wxListItem_Clear(_arg0); | |
645 | ||
646 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 647 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
648 | } Py_INCREF(Py_None); |
649 | _resultobj = Py_None; | |
650 | return _resultobj; | |
651 | } | |
652 | ||
653 | #define wxListItem_ClearAttributes(_swigobj) (_swigobj->ClearAttributes()) | |
654 | static PyObject *_wrap_wxListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
655 | PyObject * _resultobj; | |
656 | wxListItem * _arg0; | |
657 | PyObject * _argo0 = 0; | |
658 | char *_kwnames[] = { "self", NULL }; | |
659 | ||
660 | self = self; | |
661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_ClearAttributes",_kwnames,&_argo0)) | |
662 | return NULL; | |
663 | if (_argo0) { | |
664 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
665 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
666 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_ClearAttributes. Expected _wxListItem_p."); | |
667 | return NULL; | |
668 | } | |
669 | } | |
670 | { | |
671 | wxPy_BEGIN_ALLOW_THREADS; | |
672 | wxListItem_ClearAttributes(_arg0); | |
673 | ||
674 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 675 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
676 | } Py_INCREF(Py_None); |
677 | _resultobj = Py_None; | |
678 | return _resultobj; | |
679 | } | |
680 | ||
681 | #define wxListItem_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) | |
682 | static PyObject *_wrap_wxListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
683 | PyObject * _resultobj; | |
684 | wxListItem * _arg0; | |
685 | long _arg1; | |
686 | PyObject * _argo0 = 0; | |
687 | char *_kwnames[] = { "self","mask", NULL }; | |
688 | ||
689 | self = self; | |
690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetMask",_kwnames,&_argo0,&_arg1)) | |
691 | return NULL; | |
692 | if (_argo0) { | |
693 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
694 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
695 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetMask. Expected _wxListItem_p."); | |
696 | return NULL; | |
697 | } | |
698 | } | |
699 | { | |
700 | wxPy_BEGIN_ALLOW_THREADS; | |
701 | wxListItem_SetMask(_arg0,_arg1); | |
702 | ||
703 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 704 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
705 | } Py_INCREF(Py_None); |
706 | _resultobj = Py_None; | |
707 | return _resultobj; | |
708 | } | |
709 | ||
710 | #define wxListItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
711 | static PyObject *_wrap_wxListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
712 | PyObject * _resultobj; | |
713 | wxListItem * _arg0; | |
714 | long _arg1; | |
715 | PyObject * _argo0 = 0; | |
716 | char *_kwnames[] = { "self","id", NULL }; | |
717 | ||
718 | self = self; | |
719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetId",_kwnames,&_argo0,&_arg1)) | |
720 | return NULL; | |
721 | if (_argo0) { | |
722 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
723 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
724 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetId. Expected _wxListItem_p."); | |
725 | return NULL; | |
726 | } | |
727 | } | |
728 | { | |
729 | wxPy_BEGIN_ALLOW_THREADS; | |
730 | wxListItem_SetId(_arg0,_arg1); | |
731 | ||
732 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 733 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
734 | } Py_INCREF(Py_None); |
735 | _resultobj = Py_None; | |
736 | return _resultobj; | |
737 | } | |
738 | ||
739 | #define wxListItem_SetColumn(_swigobj,_swigarg0) (_swigobj->SetColumn(_swigarg0)) | |
740 | static PyObject *_wrap_wxListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
741 | PyObject * _resultobj; | |
742 | wxListItem * _arg0; | |
743 | int _arg1; | |
744 | PyObject * _argo0 = 0; | |
745 | char *_kwnames[] = { "self","col", NULL }; | |
746 | ||
747 | self = self; | |
748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetColumn",_kwnames,&_argo0,&_arg1)) | |
749 | return NULL; | |
750 | if (_argo0) { | |
751 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
752 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
753 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetColumn. Expected _wxListItem_p."); | |
754 | return NULL; | |
755 | } | |
756 | } | |
757 | { | |
758 | wxPy_BEGIN_ALLOW_THREADS; | |
759 | wxListItem_SetColumn(_arg0,_arg1); | |
760 | ||
761 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 762 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
763 | } Py_INCREF(Py_None); |
764 | _resultobj = Py_None; | |
765 | return _resultobj; | |
766 | } | |
767 | ||
768 | #define wxListItem_SetState(_swigobj,_swigarg0) (_swigobj->SetState(_swigarg0)) | |
769 | static PyObject *_wrap_wxListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
770 | PyObject * _resultobj; | |
771 | wxListItem * _arg0; | |
772 | long _arg1; | |
773 | PyObject * _argo0 = 0; | |
774 | char *_kwnames[] = { "self","state", NULL }; | |
775 | ||
776 | self = self; | |
777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetState",_kwnames,&_argo0,&_arg1)) | |
778 | return NULL; | |
779 | if (_argo0) { | |
780 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
781 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
782 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetState. Expected _wxListItem_p."); | |
783 | return NULL; | |
784 | } | |
785 | } | |
786 | { | |
787 | wxPy_BEGIN_ALLOW_THREADS; | |
788 | wxListItem_SetState(_arg0,_arg1); | |
789 | ||
790 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 791 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
792 | } Py_INCREF(Py_None); |
793 | _resultobj = Py_None; | |
794 | return _resultobj; | |
795 | } | |
796 | ||
797 | #define wxListItem_SetStateMask(_swigobj,_swigarg0) (_swigobj->SetStateMask(_swigarg0)) | |
798 | static PyObject *_wrap_wxListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
799 | PyObject * _resultobj; | |
800 | wxListItem * _arg0; | |
801 | long _arg1; | |
802 | PyObject * _argo0 = 0; | |
803 | char *_kwnames[] = { "self","stateMask", NULL }; | |
804 | ||
805 | self = self; | |
806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetStateMask",_kwnames,&_argo0,&_arg1)) | |
807 | return NULL; | |
808 | if (_argo0) { | |
809 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
810 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
811 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetStateMask. Expected _wxListItem_p."); | |
812 | return NULL; | |
813 | } | |
814 | } | |
815 | { | |
816 | wxPy_BEGIN_ALLOW_THREADS; | |
817 | wxListItem_SetStateMask(_arg0,_arg1); | |
818 | ||
819 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 820 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
821 | } Py_INCREF(Py_None); |
822 | _resultobj = Py_None; | |
823 | return _resultobj; | |
824 | } | |
825 | ||
826 | #define wxListItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) | |
827 | static PyObject *_wrap_wxListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
828 | PyObject * _resultobj; | |
829 | wxListItem * _arg0; | |
830 | wxString * _arg1; | |
831 | PyObject * _argo0 = 0; | |
832 | PyObject * _obj1 = 0; | |
833 | char *_kwnames[] = { "self","text", NULL }; | |
834 | ||
835 | self = self; | |
836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetText",_kwnames,&_argo0,&_obj1)) | |
837 | return NULL; | |
838 | if (_argo0) { | |
839 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
840 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
841 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetText. Expected _wxListItem_p."); | |
842 | return NULL; | |
843 | } | |
844 | } | |
845 | { | |
2cd2fac8 RD |
846 | #if PYTHON_API_VERSION >= 1009 |
847 | char* tmpPtr; int tmpSize; | |
848 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 849 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
850 | return NULL; |
851 | } | |
852 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
853 | return NULL; | |
854 | _arg1 = new wxString(tmpPtr, tmpSize); | |
855 | #else | |
f6bcfd97 BP |
856 | if (!PyString_Check(_obj1)) { |
857 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
858 | return NULL; | |
859 | } | |
2cd2fac8 RD |
860 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
861 | #endif | |
f6bcfd97 BP |
862 | } |
863 | { | |
864 | wxPy_BEGIN_ALLOW_THREADS; | |
865 | wxListItem_SetText(_arg0,*_arg1); | |
866 | ||
867 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 868 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
869 | } Py_INCREF(Py_None); |
870 | _resultobj = Py_None; | |
871 | { | |
872 | if (_obj1) | |
873 | delete _arg1; | |
874 | } | |
875 | return _resultobj; | |
876 | } | |
877 | ||
878 | #define wxListItem_SetImage(_swigobj,_swigarg0) (_swigobj->SetImage(_swigarg0)) | |
879 | static PyObject *_wrap_wxListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
880 | PyObject * _resultobj; | |
881 | wxListItem * _arg0; | |
882 | int _arg1; | |
883 | PyObject * _argo0 = 0; | |
884 | char *_kwnames[] = { "self","image", NULL }; | |
885 | ||
886 | self = self; | |
887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetImage",_kwnames,&_argo0,&_arg1)) | |
888 | return NULL; | |
889 | if (_argo0) { | |
890 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
891 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
892 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetImage. Expected _wxListItem_p."); | |
893 | return NULL; | |
894 | } | |
895 | } | |
896 | { | |
897 | wxPy_BEGIN_ALLOW_THREADS; | |
898 | wxListItem_SetImage(_arg0,_arg1); | |
899 | ||
900 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 901 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
902 | } Py_INCREF(Py_None); |
903 | _resultobj = Py_None; | |
904 | return _resultobj; | |
905 | } | |
906 | ||
907 | #define wxListItem_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
908 | static PyObject *_wrap_wxListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
909 | PyObject * _resultobj; | |
910 | wxListItem * _arg0; | |
911 | long _arg1; | |
912 | PyObject * _argo0 = 0; | |
913 | char *_kwnames[] = { "self","data", NULL }; | |
914 | ||
915 | self = self; | |
916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetData",_kwnames,&_argo0,&_arg1)) | |
917 | return NULL; | |
918 | if (_argo0) { | |
919 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
920 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
921 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetData. Expected _wxListItem_p."); | |
922 | return NULL; | |
923 | } | |
924 | } | |
925 | { | |
926 | wxPy_BEGIN_ALLOW_THREADS; | |
927 | wxListItem_SetData(_arg0,_arg1); | |
928 | ||
929 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 930 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
931 | } Py_INCREF(Py_None); |
932 | _resultobj = Py_None; | |
933 | return _resultobj; | |
934 | } | |
935 | ||
936 | #define wxListItem_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
937 | static PyObject *_wrap_wxListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
938 | PyObject * _resultobj; | |
939 | wxListItem * _arg0; | |
940 | int _arg1; | |
941 | PyObject * _argo0 = 0; | |
942 | char *_kwnames[] = { "self","width", NULL }; | |
943 | ||
944 | self = self; | |
945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetWidth",_kwnames,&_argo0,&_arg1)) | |
946 | return NULL; | |
947 | if (_argo0) { | |
948 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
949 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetWidth. Expected _wxListItem_p."); | |
951 | return NULL; | |
952 | } | |
953 | } | |
954 | { | |
955 | wxPy_BEGIN_ALLOW_THREADS; | |
956 | wxListItem_SetWidth(_arg0,_arg1); | |
957 | ||
958 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 959 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
960 | } Py_INCREF(Py_None); |
961 | _resultobj = Py_None; | |
962 | return _resultobj; | |
963 | } | |
964 | ||
965 | #define wxListItem_SetAlign(_swigobj,_swigarg0) (_swigobj->SetAlign(_swigarg0)) | |
966 | static PyObject *_wrap_wxListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
967 | PyObject * _resultobj; | |
968 | wxListItem * _arg0; | |
969 | wxListColumnFormat _arg1; | |
970 | PyObject * _argo0 = 0; | |
971 | char *_kwnames[] = { "self","align", NULL }; | |
972 | ||
973 | self = self; | |
974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetAlign",_kwnames,&_argo0,&_arg1)) | |
975 | return NULL; | |
976 | if (_argo0) { | |
977 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
978 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
979 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetAlign. Expected _wxListItem_p."); | |
980 | return NULL; | |
981 | } | |
982 | } | |
983 | { | |
984 | wxPy_BEGIN_ALLOW_THREADS; | |
985 | wxListItem_SetAlign(_arg0,_arg1); | |
986 | ||
987 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 988 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
989 | } Py_INCREF(Py_None); |
990 | _resultobj = Py_None; | |
991 | return _resultobj; | |
992 | } | |
993 | ||
994 | #define wxListItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
995 | static PyObject *_wrap_wxListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
996 | PyObject * _resultobj; | |
997 | wxListItem * _arg0; | |
998 | wxColour * _arg1; | |
999 | PyObject * _argo0 = 0; | |
1000 | wxColour temp; | |
1001 | PyObject * _obj1 = 0; | |
1002 | char *_kwnames[] = { "self","colText", NULL }; | |
1003 | ||
1004 | self = self; | |
1005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
1006 | return NULL; | |
1007 | if (_argo0) { | |
1008 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1009 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1010 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetTextColour. Expected _wxListItem_p."); | |
1011 | return NULL; | |
1012 | } | |
1013 | } | |
1014 | { | |
1015 | _arg1 = &temp; | |
1016 | if (! wxColour_helper(_obj1, &_arg1)) | |
1017 | return NULL; | |
1018 | } | |
1019 | { | |
1020 | wxPy_BEGIN_ALLOW_THREADS; | |
1021 | wxListItem_SetTextColour(_arg0,*_arg1); | |
1022 | ||
1023 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1024 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1025 | } Py_INCREF(Py_None); |
1026 | _resultobj = Py_None; | |
1027 | return _resultobj; | |
1028 | } | |
1029 | ||
1030 | #define wxListItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
1031 | static PyObject *_wrap_wxListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1032 | PyObject * _resultobj; | |
1033 | wxListItem * _arg0; | |
1034 | wxColour * _arg1; | |
1035 | PyObject * _argo0 = 0; | |
1036 | wxColour temp; | |
1037 | PyObject * _obj1 = 0; | |
1038 | char *_kwnames[] = { "self","colBack", NULL }; | |
1039 | ||
1040 | self = self; | |
1041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
1042 | return NULL; | |
1043 | if (_argo0) { | |
1044 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1045 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1046 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetBackgroundColour. Expected _wxListItem_p."); | |
1047 | return NULL; | |
1048 | } | |
1049 | } | |
1050 | { | |
1051 | _arg1 = &temp; | |
1052 | if (! wxColour_helper(_obj1, &_arg1)) | |
1053 | return NULL; | |
1054 | } | |
1055 | { | |
1056 | wxPy_BEGIN_ALLOW_THREADS; | |
1057 | wxListItem_SetBackgroundColour(_arg0,*_arg1); | |
1058 | ||
1059 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1060 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1061 | } Py_INCREF(Py_None); |
1062 | _resultobj = Py_None; | |
1063 | return _resultobj; | |
1064 | } | |
1065 | ||
1066 | #define wxListItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
1067 | static PyObject *_wrap_wxListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1068 | PyObject * _resultobj; | |
1069 | wxListItem * _arg0; | |
1070 | wxFont * _arg1; | |
1071 | PyObject * _argo0 = 0; | |
1072 | PyObject * _argo1 = 0; | |
1073 | char *_kwnames[] = { "self","font", NULL }; | |
1074 | ||
1075 | self = self; | |
1076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetFont",_kwnames,&_argo0,&_argo1)) | |
1077 | return NULL; | |
1078 | if (_argo0) { | |
1079 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1080 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1081 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetFont. Expected _wxListItem_p."); | |
1082 | return NULL; | |
1083 | } | |
1084 | } | |
1085 | if (_argo1) { | |
1086 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1087 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
1088 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItem_SetFont. Expected _wxFont_p."); | |
1089 | return NULL; | |
1090 | } | |
1091 | } | |
1092 | { | |
1093 | wxPy_BEGIN_ALLOW_THREADS; | |
1094 | wxListItem_SetFont(_arg0,*_arg1); | |
1095 | ||
1096 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1097 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1098 | } Py_INCREF(Py_None); |
1099 | _resultobj = Py_None; | |
1100 | return _resultobj; | |
1101 | } | |
1102 | ||
1103 | #define wxListItem_GetMask(_swigobj) (_swigobj->GetMask()) | |
1104 | static PyObject *_wrap_wxListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1105 | PyObject * _resultobj; | |
1106 | long _result; | |
1107 | wxListItem * _arg0; | |
1108 | PyObject * _argo0 = 0; | |
1109 | char *_kwnames[] = { "self", NULL }; | |
1110 | ||
1111 | self = self; | |
1112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetMask",_kwnames,&_argo0)) | |
1113 | return NULL; | |
1114 | if (_argo0) { | |
1115 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1116 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1117 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetMask. Expected _wxListItem_p."); | |
1118 | return NULL; | |
1119 | } | |
1120 | } | |
1121 | { | |
1122 | wxPy_BEGIN_ALLOW_THREADS; | |
1123 | _result = (long )wxListItem_GetMask(_arg0); | |
1124 | ||
1125 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1126 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1127 | } _resultobj = Py_BuildValue("l",_result); |
1128 | return _resultobj; | |
1129 | } | |
1130 | ||
1131 | #define wxListItem_GetId(_swigobj) (_swigobj->GetId()) | |
1132 | static PyObject *_wrap_wxListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1133 | PyObject * _resultobj; | |
1134 | long _result; | |
1135 | wxListItem * _arg0; | |
1136 | PyObject * _argo0 = 0; | |
1137 | char *_kwnames[] = { "self", NULL }; | |
1138 | ||
1139 | self = self; | |
1140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetId",_kwnames,&_argo0)) | |
1141 | return NULL; | |
1142 | if (_argo0) { | |
1143 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1144 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1145 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetId. Expected _wxListItem_p."); | |
1146 | return NULL; | |
1147 | } | |
1148 | } | |
1149 | { | |
1150 | wxPy_BEGIN_ALLOW_THREADS; | |
1151 | _result = (long )wxListItem_GetId(_arg0); | |
1152 | ||
1153 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1154 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1155 | } _resultobj = Py_BuildValue("l",_result); |
1156 | return _resultobj; | |
1157 | } | |
1158 | ||
1159 | #define wxListItem_GetColumn(_swigobj) (_swigobj->GetColumn()) | |
1160 | static PyObject *_wrap_wxListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1161 | PyObject * _resultobj; | |
1162 | int _result; | |
1163 | wxListItem * _arg0; | |
1164 | PyObject * _argo0 = 0; | |
1165 | char *_kwnames[] = { "self", NULL }; | |
1166 | ||
1167 | self = self; | |
1168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetColumn",_kwnames,&_argo0)) | |
1169 | return NULL; | |
1170 | if (_argo0) { | |
1171 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1172 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1173 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetColumn. Expected _wxListItem_p."); | |
1174 | return NULL; | |
1175 | } | |
1176 | } | |
1177 | { | |
1178 | wxPy_BEGIN_ALLOW_THREADS; | |
1179 | _result = (int )wxListItem_GetColumn(_arg0); | |
1180 | ||
1181 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1182 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1183 | } _resultobj = Py_BuildValue("i",_result); |
1184 | return _resultobj; | |
1185 | } | |
1186 | ||
1187 | #define wxListItem_GetState(_swigobj) (_swigobj->GetState()) | |
1188 | static PyObject *_wrap_wxListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1189 | PyObject * _resultobj; | |
1190 | long _result; | |
1191 | wxListItem * _arg0; | |
1192 | PyObject * _argo0 = 0; | |
1193 | char *_kwnames[] = { "self", NULL }; | |
1194 | ||
1195 | self = self; | |
1196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetState",_kwnames,&_argo0)) | |
1197 | return NULL; | |
1198 | if (_argo0) { | |
1199 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1200 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1201 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetState. Expected _wxListItem_p."); | |
1202 | return NULL; | |
1203 | } | |
1204 | } | |
1205 | { | |
1206 | wxPy_BEGIN_ALLOW_THREADS; | |
1207 | _result = (long )wxListItem_GetState(_arg0); | |
1208 | ||
1209 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1210 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1211 | } _resultobj = Py_BuildValue("l",_result); |
1212 | return _resultobj; | |
1213 | } | |
1214 | ||
1215 | #define wxListItem_GetText(_swigobj) (_swigobj->GetText()) | |
1216 | static PyObject *_wrap_wxListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1217 | PyObject * _resultobj; | |
1218 | wxString * _result; | |
1219 | wxListItem * _arg0; | |
1220 | PyObject * _argo0 = 0; | |
1221 | char *_kwnames[] = { "self", NULL }; | |
1222 | ||
1223 | self = self; | |
1224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetText",_kwnames,&_argo0)) | |
1225 | return NULL; | |
1226 | if (_argo0) { | |
1227 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1228 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1229 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetText. Expected _wxListItem_p."); | |
1230 | return NULL; | |
1231 | } | |
1232 | } | |
1233 | { | |
1234 | wxPy_BEGIN_ALLOW_THREADS; | |
1235 | const wxString & _result_ref = wxListItem_GetText(_arg0); | |
1236 | _result = (wxString *) &_result_ref; | |
1237 | ||
1238 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1239 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1240 | }{ |
1241 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1242 | } | |
1243 | return _resultobj; | |
1244 | } | |
1245 | ||
1246 | #define wxListItem_GetImage(_swigobj) (_swigobj->GetImage()) | |
1247 | static PyObject *_wrap_wxListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1248 | PyObject * _resultobj; | |
1249 | int _result; | |
1250 | wxListItem * _arg0; | |
1251 | PyObject * _argo0 = 0; | |
1252 | char *_kwnames[] = { "self", NULL }; | |
1253 | ||
1254 | self = self; | |
1255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetImage",_kwnames,&_argo0)) | |
1256 | return NULL; | |
1257 | if (_argo0) { | |
1258 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1259 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetImage. Expected _wxListItem_p."); | |
1261 | return NULL; | |
1262 | } | |
1263 | } | |
1264 | { | |
1265 | wxPy_BEGIN_ALLOW_THREADS; | |
1266 | _result = (int )wxListItem_GetImage(_arg0); | |
1267 | ||
1268 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1269 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1270 | } _resultobj = Py_BuildValue("i",_result); |
1271 | return _resultobj; | |
1272 | } | |
1273 | ||
1274 | #define wxListItem_GetData(_swigobj) (_swigobj->GetData()) | |
1275 | static PyObject *_wrap_wxListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1276 | PyObject * _resultobj; | |
1277 | long _result; | |
1278 | wxListItem * _arg0; | |
1279 | PyObject * _argo0 = 0; | |
1280 | char *_kwnames[] = { "self", NULL }; | |
1281 | ||
1282 | self = self; | |
1283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetData",_kwnames,&_argo0)) | |
1284 | return NULL; | |
1285 | if (_argo0) { | |
1286 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1287 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1288 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetData. Expected _wxListItem_p."); | |
1289 | return NULL; | |
1290 | } | |
1291 | } | |
1292 | { | |
1293 | wxPy_BEGIN_ALLOW_THREADS; | |
1294 | _result = (long )wxListItem_GetData(_arg0); | |
1295 | ||
1296 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1297 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1298 | } _resultobj = Py_BuildValue("l",_result); |
1299 | return _resultobj; | |
1300 | } | |
1301 | ||
1302 | #define wxListItem_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1303 | static PyObject *_wrap_wxListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1304 | PyObject * _resultobj; | |
1305 | int _result; | |
1306 | wxListItem * _arg0; | |
1307 | PyObject * _argo0 = 0; | |
1308 | char *_kwnames[] = { "self", NULL }; | |
1309 | ||
1310 | self = self; | |
1311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetWidth",_kwnames,&_argo0)) | |
1312 | return NULL; | |
1313 | if (_argo0) { | |
1314 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1315 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1316 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetWidth. Expected _wxListItem_p."); | |
1317 | return NULL; | |
1318 | } | |
1319 | } | |
1320 | { | |
1321 | wxPy_BEGIN_ALLOW_THREADS; | |
1322 | _result = (int )wxListItem_GetWidth(_arg0); | |
1323 | ||
1324 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1325 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1326 | } _resultobj = Py_BuildValue("i",_result); |
1327 | return _resultobj; | |
1328 | } | |
1329 | ||
1330 | #define wxListItem_GetAlign(_swigobj) (_swigobj->GetAlign()) | |
1331 | static PyObject *_wrap_wxListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1332 | PyObject * _resultobj; | |
1333 | wxListColumnFormat _result; | |
1334 | wxListItem * _arg0; | |
1335 | PyObject * _argo0 = 0; | |
1336 | char *_kwnames[] = { "self", NULL }; | |
1337 | ||
1338 | self = self; | |
1339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAlign",_kwnames,&_argo0)) | |
1340 | return NULL; | |
1341 | if (_argo0) { | |
1342 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1343 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1344 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAlign. Expected _wxListItem_p."); | |
1345 | return NULL; | |
1346 | } | |
1347 | } | |
1348 | { | |
1349 | wxPy_BEGIN_ALLOW_THREADS; | |
1350 | _result = (wxListColumnFormat )wxListItem_GetAlign(_arg0); | |
1351 | ||
1352 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1353 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1354 | } _resultobj = Py_BuildValue("i",_result); |
1355 | return _resultobj; | |
1356 | } | |
1357 | ||
1358 | #define wxListItem_GetAttributes(_swigobj) (_swigobj->GetAttributes()) | |
1359 | static PyObject *_wrap_wxListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1360 | PyObject * _resultobj; | |
1361 | wxListItemAttr * _result; | |
1362 | wxListItem * _arg0; | |
1363 | PyObject * _argo0 = 0; | |
1364 | char *_kwnames[] = { "self", NULL }; | |
1365 | char _ptemp[128]; | |
1366 | ||
1367 | self = self; | |
1368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAttributes",_kwnames,&_argo0)) | |
1369 | return NULL; | |
1370 | if (_argo0) { | |
1371 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1372 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1373 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAttributes. Expected _wxListItem_p."); | |
1374 | return NULL; | |
1375 | } | |
1376 | } | |
1377 | { | |
1378 | wxPy_BEGIN_ALLOW_THREADS; | |
1379 | _result = (wxListItemAttr *)wxListItem_GetAttributes(_arg0); | |
1380 | ||
1381 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1382 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1383 | } if (_result) { |
1384 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
1385 | _resultobj = Py_BuildValue("s",_ptemp); | |
1386 | } else { | |
1387 | Py_INCREF(Py_None); | |
1388 | _resultobj = Py_None; | |
1389 | } | |
1390 | return _resultobj; | |
1391 | } | |
1392 | ||
1393 | #define wxListItem_HasAttributes(_swigobj) (_swigobj->HasAttributes()) | |
1394 | static PyObject *_wrap_wxListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1395 | PyObject * _resultobj; | |
1396 | bool _result; | |
1397 | wxListItem * _arg0; | |
1398 | PyObject * _argo0 = 0; | |
1399 | char *_kwnames[] = { "self", NULL }; | |
1400 | ||
1401 | self = self; | |
1402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_HasAttributes",_kwnames,&_argo0)) | |
1403 | return NULL; | |
1404 | if (_argo0) { | |
1405 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1406 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1407 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_HasAttributes. Expected _wxListItem_p."); | |
1408 | return NULL; | |
1409 | } | |
1410 | } | |
1411 | { | |
1412 | wxPy_BEGIN_ALLOW_THREADS; | |
1413 | _result = (bool )wxListItem_HasAttributes(_arg0); | |
1414 | ||
1415 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1416 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1417 | } _resultobj = Py_BuildValue("i",_result); |
1418 | return _resultobj; | |
1419 | } | |
1420 | ||
1421 | #define wxListItem_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
1422 | static PyObject *_wrap_wxListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1423 | PyObject * _resultobj; | |
1424 | wxColour * _result; | |
1425 | wxListItem * _arg0; | |
1426 | PyObject * _argo0 = 0; | |
1427 | char *_kwnames[] = { "self", NULL }; | |
1428 | char _ptemp[128]; | |
1429 | ||
1430 | self = self; | |
1431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetTextColour",_kwnames,&_argo0)) | |
1432 | return NULL; | |
1433 | if (_argo0) { | |
1434 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1435 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1436 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetTextColour. Expected _wxListItem_p."); | |
1437 | return NULL; | |
1438 | } | |
1439 | } | |
1440 | { | |
1441 | wxPy_BEGIN_ALLOW_THREADS; | |
1442 | _result = new wxColour (wxListItem_GetTextColour(_arg0)); | |
1443 | ||
1444 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1445 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1446 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
1447 | _resultobj = Py_BuildValue("s",_ptemp); | |
1448 | return _resultobj; | |
1449 | } | |
1450 | ||
1451 | #define wxListItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
1452 | static PyObject *_wrap_wxListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1453 | PyObject * _resultobj; | |
1454 | wxColour * _result; | |
1455 | wxListItem * _arg0; | |
1456 | PyObject * _argo0 = 0; | |
1457 | char *_kwnames[] = { "self", NULL }; | |
1458 | char _ptemp[128]; | |
1459 | ||
1460 | self = self; | |
1461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetBackgroundColour",_kwnames,&_argo0)) | |
1462 | return NULL; | |
1463 | if (_argo0) { | |
1464 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1465 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetBackgroundColour. Expected _wxListItem_p."); | |
1467 | return NULL; | |
1468 | } | |
1469 | } | |
1470 | { | |
1471 | wxPy_BEGIN_ALLOW_THREADS; | |
1472 | _result = new wxColour (wxListItem_GetBackgroundColour(_arg0)); | |
1473 | ||
1474 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1475 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1476 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
1477 | _resultobj = Py_BuildValue("s",_ptemp); | |
1478 | return _resultobj; | |
1479 | } | |
1480 | ||
1481 | #define wxListItem_GetFont(_swigobj) (_swigobj->GetFont()) | |
1482 | static PyObject *_wrap_wxListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1483 | PyObject * _resultobj; | |
1484 | wxFont * _result; | |
1485 | wxListItem * _arg0; | |
1486 | PyObject * _argo0 = 0; | |
1487 | char *_kwnames[] = { "self", NULL }; | |
1488 | char _ptemp[128]; | |
1489 | ||
1490 | self = self; | |
1491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetFont",_kwnames,&_argo0)) | |
1492 | return NULL; | |
1493 | if (_argo0) { | |
1494 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1495 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1496 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetFont. Expected _wxListItem_p."); | |
1497 | return NULL; | |
1498 | } | |
1499 | } | |
1500 | { | |
1501 | wxPy_BEGIN_ALLOW_THREADS; | |
1502 | _result = new wxFont (wxListItem_GetFont(_arg0)); | |
1503 | ||
1504 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1505 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1506 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
1507 | _resultobj = Py_BuildValue("s",_ptemp); | |
1508 | return _resultobj; | |
1509 | } | |
1510 | ||
1511 | #define wxListItem_m_mask_set(_swigobj,_swigval) (_swigobj->m_mask = _swigval,_swigval) | |
1512 | static PyObject *_wrap_wxListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1513 | PyObject * _resultobj; | |
1514 | long _result; | |
1515 | wxListItem * _arg0; | |
1516 | long _arg1; | |
1517 | PyObject * _argo0 = 0; | |
1518 | char *_kwnames[] = { "self","m_mask", NULL }; | |
1519 | ||
1520 | self = self; | |
1521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_mask_set",_kwnames,&_argo0,&_arg1)) | |
1522 | return NULL; | |
1523 | if (_argo0) { | |
1524 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1525 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1526 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_set. Expected _wxListItem_p."); | |
1527 | return NULL; | |
1528 | } | |
1529 | } | |
1530 | { | |
1531 | wxPy_BEGIN_ALLOW_THREADS; | |
1532 | _result = (long )wxListItem_m_mask_set(_arg0,_arg1); | |
1533 | ||
1534 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1535 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1536 | } _resultobj = Py_BuildValue("l",_result); |
1537 | return _resultobj; | |
1538 | } | |
1539 | ||
1540 | #define wxListItem_m_mask_get(_swigobj) ((long ) _swigobj->m_mask) | |
1541 | static PyObject *_wrap_wxListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1542 | PyObject * _resultobj; | |
1543 | long _result; | |
1544 | wxListItem * _arg0; | |
1545 | PyObject * _argo0 = 0; | |
1546 | char *_kwnames[] = { "self", NULL }; | |
1547 | ||
1548 | self = self; | |
1549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_mask_get",_kwnames,&_argo0)) | |
1550 | return NULL; | |
1551 | if (_argo0) { | |
1552 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1553 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1554 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_get. Expected _wxListItem_p."); | |
1555 | return NULL; | |
1556 | } | |
1557 | } | |
1558 | { | |
1559 | wxPy_BEGIN_ALLOW_THREADS; | |
1560 | _result = (long )wxListItem_m_mask_get(_arg0); | |
1561 | ||
1562 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1563 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1564 | } _resultobj = Py_BuildValue("l",_result); |
1565 | return _resultobj; | |
1566 | } | |
1567 | ||
1568 | #define wxListItem_m_itemId_set(_swigobj,_swigval) (_swigobj->m_itemId = _swigval,_swigval) | |
1569 | static PyObject *_wrap_wxListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
1570 | PyObject * _resultobj; |
1571 | long _result; | |
1572 | wxListItem * _arg0; | |
1573 | long _arg1; | |
1d99702e | 1574 | PyObject * _argo0 = 0; |
f6bcfd97 | 1575 | char *_kwnames[] = { "self","m_itemId", NULL }; |
af309447 RD |
1576 | |
1577 | self = self; | |
f6bcfd97 | 1578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_itemId_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 1579 | return NULL; |
1d99702e RD |
1580 | if (_argo0) { |
1581 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1582 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1583 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_set. Expected _wxListItem_p."); |
af309447 RD |
1584 | return NULL; |
1585 | } | |
1586 | } | |
cf694132 RD |
1587 | { |
1588 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
1589 | _result = (long )wxListItem_m_itemId_set(_arg0,_arg1); |
1590 | ||
1591 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1592 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1593 | } _resultobj = Py_BuildValue("l",_result); |
1594 | return _resultobj; | |
1595 | } | |
1596 | ||
1597 | #define wxListItem_m_itemId_get(_swigobj) ((long ) _swigobj->m_itemId) | |
1598 | static PyObject *_wrap_wxListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1599 | PyObject * _resultobj; | |
1600 | long _result; | |
1601 | wxListItem * _arg0; | |
1602 | PyObject * _argo0 = 0; | |
1603 | char *_kwnames[] = { "self", NULL }; | |
1604 | ||
1605 | self = self; | |
1606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_itemId_get",_kwnames,&_argo0)) | |
1607 | return NULL; | |
1608 | if (_argo0) { | |
1609 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1610 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_get. Expected _wxListItem_p."); | |
1612 | return NULL; | |
1613 | } | |
1614 | } | |
1615 | { | |
1616 | wxPy_BEGIN_ALLOW_THREADS; | |
1617 | _result = (long )wxListItem_m_itemId_get(_arg0); | |
1618 | ||
1619 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1620 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1621 | } _resultobj = Py_BuildValue("l",_result); |
1622 | return _resultobj; | |
1623 | } | |
1624 | ||
1625 | #define wxListItem_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval) | |
1626 | static PyObject *_wrap_wxListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1627 | PyObject * _resultobj; | |
1628 | int _result; | |
1629 | wxListItem * _arg0; | |
1630 | int _arg1; | |
1631 | PyObject * _argo0 = 0; | |
1632 | char *_kwnames[] = { "self","m_col", NULL }; | |
1633 | ||
1634 | self = self; | |
1635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_col_set",_kwnames,&_argo0,&_arg1)) | |
1636 | return NULL; | |
1637 | if (_argo0) { | |
1638 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1639 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1640 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_set. Expected _wxListItem_p."); | |
1641 | return NULL; | |
1642 | } | |
1643 | } | |
1644 | { | |
1645 | wxPy_BEGIN_ALLOW_THREADS; | |
1646 | _result = (int )wxListItem_m_col_set(_arg0,_arg1); | |
1647 | ||
1648 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1649 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1650 | } _resultobj = Py_BuildValue("i",_result); |
1651 | return _resultobj; | |
1652 | } | |
1653 | ||
1654 | #define wxListItem_m_col_get(_swigobj) ((int ) _swigobj->m_col) | |
1655 | static PyObject *_wrap_wxListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1656 | PyObject * _resultobj; | |
1657 | int _result; | |
1658 | wxListItem * _arg0; | |
1659 | PyObject * _argo0 = 0; | |
1660 | char *_kwnames[] = { "self", NULL }; | |
1661 | ||
1662 | self = self; | |
1663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_col_get",_kwnames,&_argo0)) | |
1664 | return NULL; | |
1665 | if (_argo0) { | |
1666 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1667 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1668 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_get. Expected _wxListItem_p."); | |
1669 | return NULL; | |
1670 | } | |
1671 | } | |
1672 | { | |
1673 | wxPy_BEGIN_ALLOW_THREADS; | |
1674 | _result = (int )wxListItem_m_col_get(_arg0); | |
1675 | ||
1676 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1677 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1678 | } _resultobj = Py_BuildValue("i",_result); |
1679 | return _resultobj; | |
1680 | } | |
1681 | ||
1682 | #define wxListItem_m_state_set(_swigobj,_swigval) (_swigobj->m_state = _swigval,_swigval) | |
1683 | static PyObject *_wrap_wxListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1684 | PyObject * _resultobj; | |
1685 | long _result; | |
1686 | wxListItem * _arg0; | |
1687 | long _arg1; | |
1688 | PyObject * _argo0 = 0; | |
1689 | char *_kwnames[] = { "self","m_state", NULL }; | |
1690 | ||
1691 | self = self; | |
1692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_state_set",_kwnames,&_argo0,&_arg1)) | |
1693 | return NULL; | |
1694 | if (_argo0) { | |
1695 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1696 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1697 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_set. Expected _wxListItem_p."); | |
1698 | return NULL; | |
1699 | } | |
1700 | } | |
1701 | { | |
1702 | wxPy_BEGIN_ALLOW_THREADS; | |
1703 | _result = (long )wxListItem_m_state_set(_arg0,_arg1); | |
1704 | ||
1705 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1706 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1707 | } _resultobj = Py_BuildValue("l",_result); |
1708 | return _resultobj; | |
1709 | } | |
1710 | ||
1711 | #define wxListItem_m_state_get(_swigobj) ((long ) _swigobj->m_state) | |
1712 | static PyObject *_wrap_wxListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1713 | PyObject * _resultobj; | |
1714 | long _result; | |
1715 | wxListItem * _arg0; | |
1716 | PyObject * _argo0 = 0; | |
1717 | char *_kwnames[] = { "self", NULL }; | |
1718 | ||
1719 | self = self; | |
1720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_state_get",_kwnames,&_argo0)) | |
1721 | return NULL; | |
1722 | if (_argo0) { | |
1723 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1724 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1725 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_get. Expected _wxListItem_p."); | |
1726 | return NULL; | |
1727 | } | |
1728 | } | |
1729 | { | |
1730 | wxPy_BEGIN_ALLOW_THREADS; | |
1731 | _result = (long )wxListItem_m_state_get(_arg0); | |
1732 | ||
1733 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1734 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1735 | } _resultobj = Py_BuildValue("l",_result); |
1736 | return _resultobj; | |
1737 | } | |
1738 | ||
1739 | #define wxListItem_m_stateMask_set(_swigobj,_swigval) (_swigobj->m_stateMask = _swigval,_swigval) | |
1740 | static PyObject *_wrap_wxListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1741 | PyObject * _resultobj; | |
1742 | long _result; | |
1743 | wxListItem * _arg0; | |
1744 | long _arg1; | |
1745 | PyObject * _argo0 = 0; | |
1746 | char *_kwnames[] = { "self","m_stateMask", NULL }; | |
1747 | ||
1748 | self = self; | |
1749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_stateMask_set",_kwnames,&_argo0,&_arg1)) | |
1750 | return NULL; | |
1751 | if (_argo0) { | |
1752 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1753 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1754 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_set. Expected _wxListItem_p."); | |
1755 | return NULL; | |
1756 | } | |
1757 | } | |
1758 | { | |
1759 | wxPy_BEGIN_ALLOW_THREADS; | |
1760 | _result = (long )wxListItem_m_stateMask_set(_arg0,_arg1); | |
1761 | ||
1762 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1763 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1764 | } _resultobj = Py_BuildValue("l",_result); |
1765 | return _resultobj; | |
1766 | } | |
1767 | ||
1768 | #define wxListItem_m_stateMask_get(_swigobj) ((long ) _swigobj->m_stateMask) | |
1769 | static PyObject *_wrap_wxListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1770 | PyObject * _resultobj; | |
1771 | long _result; | |
1772 | wxListItem * _arg0; | |
1773 | PyObject * _argo0 = 0; | |
1774 | char *_kwnames[] = { "self", NULL }; | |
1775 | ||
1776 | self = self; | |
1777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_stateMask_get",_kwnames,&_argo0)) | |
1778 | return NULL; | |
1779 | if (_argo0) { | |
1780 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1781 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1782 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_get. Expected _wxListItem_p."); | |
1783 | return NULL; | |
1784 | } | |
1785 | } | |
1786 | { | |
1787 | wxPy_BEGIN_ALLOW_THREADS; | |
1788 | _result = (long )wxListItem_m_stateMask_get(_arg0); | |
cf694132 RD |
1789 | |
1790 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1791 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1792 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
1793 | return _resultobj; |
1794 | } | |
1795 | ||
f6bcfd97 BP |
1796 | #define wxListItem_m_text_set(_swigobj,_swigval) (_swigobj->m_text = *(_swigval),_swigval) |
1797 | static PyObject *_wrap_wxListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1798 | PyObject * _resultobj; | |
1799 | wxString * _result; | |
1800 | wxListItem * _arg0; | |
1801 | wxString * _arg1; | |
1802 | PyObject * _argo0 = 0; | |
1803 | PyObject * _obj1 = 0; | |
1804 | char *_kwnames[] = { "self","m_text", NULL }; | |
1805 | ||
1806 | self = self; | |
1807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_m_text_set",_kwnames,&_argo0,&_obj1)) | |
1808 | return NULL; | |
1809 | if (_argo0) { | |
1810 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1811 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1812 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_set. Expected _wxListItem_p."); | |
1813 | return NULL; | |
1814 | } | |
1815 | } | |
1816 | { | |
2cd2fac8 RD |
1817 | #if PYTHON_API_VERSION >= 1009 |
1818 | char* tmpPtr; int tmpSize; | |
1819 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1820 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1821 | return NULL; |
1822 | } | |
1823 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1824 | return NULL; | |
1825 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1826 | #else | |
f6bcfd97 BP |
1827 | if (!PyString_Check(_obj1)) { |
1828 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1829 | return NULL; | |
1830 | } | |
2cd2fac8 RD |
1831 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1832 | #endif | |
f6bcfd97 BP |
1833 | } |
1834 | { | |
1835 | wxPy_BEGIN_ALLOW_THREADS; | |
1836 | _result = (wxString *)wxListItem_m_text_set(_arg0,_arg1); | |
1837 | ||
1838 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1839 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1840 | }{ |
1841 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1842 | } | |
1843 | { | |
1844 | if (_obj1) | |
1845 | delete _arg1; | |
1846 | } | |
1847 | return _resultobj; | |
1848 | } | |
1849 | ||
1850 | #define wxListItem_m_text_get(_swigobj) (&_swigobj->m_text) | |
1851 | static PyObject *_wrap_wxListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1852 | PyObject * _resultobj; |
f6bcfd97 | 1853 | wxString * _result; |
8ab979d7 | 1854 | wxListItem * _arg0; |
1d99702e | 1855 | PyObject * _argo0 = 0; |
efc5f224 | 1856 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1857 | |
1858 | self = self; | |
f6bcfd97 | 1859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_text_get",_kwnames,&_argo0)) |
8ab979d7 | 1860 | return NULL; |
1d99702e RD |
1861 | if (_argo0) { |
1862 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1863 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1864 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_get. Expected _wxListItem_p."); |
8ab979d7 RD |
1865 | return NULL; |
1866 | } | |
1867 | } | |
cf694132 RD |
1868 | { |
1869 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1870 | _result = (wxString *)wxListItem_m_text_get(_arg0); |
cf694132 RD |
1871 | |
1872 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1873 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1874 | }{ |
1875 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1876 | } | |
8ab979d7 RD |
1877 | return _resultobj; |
1878 | } | |
1879 | ||
f6bcfd97 BP |
1880 | #define wxListItem_m_image_set(_swigobj,_swigval) (_swigobj->m_image = _swigval,_swigval) |
1881 | static PyObject *_wrap_wxListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 1882 | PyObject * _resultobj; |
f6bcfd97 | 1883 | int _result; |
af309447 | 1884 | wxListItem * _arg0; |
f6bcfd97 | 1885 | int _arg1; |
1d99702e | 1886 | PyObject * _argo0 = 0; |
f6bcfd97 | 1887 | char *_kwnames[] = { "self","m_image", NULL }; |
af309447 RD |
1888 | |
1889 | self = self; | |
f6bcfd97 | 1890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_image_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 1891 | return NULL; |
1d99702e RD |
1892 | if (_argo0) { |
1893 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1894 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1895 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_set. Expected _wxListItem_p."); |
af309447 RD |
1896 | return NULL; |
1897 | } | |
1898 | } | |
cf694132 RD |
1899 | { |
1900 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1901 | _result = (int )wxListItem_m_image_set(_arg0,_arg1); |
cf694132 RD |
1902 | |
1903 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1904 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1905 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
1906 | return _resultobj; |
1907 | } | |
1908 | ||
f6bcfd97 BP |
1909 | #define wxListItem_m_image_get(_swigobj) ((int ) _swigobj->m_image) |
1910 | static PyObject *_wrap_wxListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1911 | PyObject * _resultobj; |
f6bcfd97 | 1912 | int _result; |
8ab979d7 | 1913 | wxListItem * _arg0; |
1d99702e | 1914 | PyObject * _argo0 = 0; |
efc5f224 | 1915 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1916 | |
1917 | self = self; | |
f6bcfd97 | 1918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_image_get",_kwnames,&_argo0)) |
8ab979d7 | 1919 | return NULL; |
1d99702e RD |
1920 | if (_argo0) { |
1921 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1922 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1923 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_get. Expected _wxListItem_p."); |
8ab979d7 RD |
1924 | return NULL; |
1925 | } | |
1926 | } | |
cf694132 RD |
1927 | { |
1928 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1929 | _result = (int )wxListItem_m_image_get(_arg0); |
cf694132 RD |
1930 | |
1931 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1932 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1933 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1934 | return _resultobj; |
1935 | } | |
1936 | ||
f6bcfd97 BP |
1937 | #define wxListItem_m_data_set(_swigobj,_swigval) (_swigobj->m_data = _swigval,_swigval) |
1938 | static PyObject *_wrap_wxListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 1939 | PyObject * _resultobj; |
f6bcfd97 | 1940 | long _result; |
af309447 | 1941 | wxListItem * _arg0; |
f6bcfd97 | 1942 | long _arg1; |
1d99702e | 1943 | PyObject * _argo0 = 0; |
f6bcfd97 | 1944 | char *_kwnames[] = { "self","m_data", NULL }; |
af309447 RD |
1945 | |
1946 | self = self; | |
f6bcfd97 | 1947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_data_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 1948 | return NULL; |
1d99702e RD |
1949 | if (_argo0) { |
1950 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1951 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1952 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_set. Expected _wxListItem_p."); |
af309447 RD |
1953 | return NULL; |
1954 | } | |
1955 | } | |
cf694132 RD |
1956 | { |
1957 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1958 | _result = (long )wxListItem_m_data_set(_arg0,_arg1); |
cf694132 RD |
1959 | |
1960 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1961 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1962 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
1963 | return _resultobj; |
1964 | } | |
1965 | ||
f6bcfd97 BP |
1966 | #define wxListItem_m_data_get(_swigobj) ((long ) _swigobj->m_data) |
1967 | static PyObject *_wrap_wxListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1968 | PyObject * _resultobj; |
f6bcfd97 | 1969 | long _result; |
8ab979d7 | 1970 | wxListItem * _arg0; |
1d99702e | 1971 | PyObject * _argo0 = 0; |
efc5f224 | 1972 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1973 | |
1974 | self = self; | |
f6bcfd97 | 1975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_data_get",_kwnames,&_argo0)) |
8ab979d7 | 1976 | return NULL; |
1d99702e RD |
1977 | if (_argo0) { |
1978 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1979 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1980 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_get. Expected _wxListItem_p."); |
8ab979d7 RD |
1981 | return NULL; |
1982 | } | |
1983 | } | |
cf694132 RD |
1984 | { |
1985 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1986 | _result = (long )wxListItem_m_data_get(_arg0); |
cf694132 RD |
1987 | |
1988 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1989 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1990 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
1991 | return _resultobj; |
1992 | } | |
1993 | ||
f6bcfd97 BP |
1994 | #define wxListItem_m_format_set(_swigobj,_swigval) (_swigobj->m_format = _swigval,_swigval) |
1995 | static PyObject *_wrap_wxListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 1996 | PyObject * _resultobj; |
f6bcfd97 | 1997 | int _result; |
af309447 | 1998 | wxListItem * _arg0; |
f6bcfd97 | 1999 | int _arg1; |
1d99702e | 2000 | PyObject * _argo0 = 0; |
f6bcfd97 | 2001 | char *_kwnames[] = { "self","m_format", NULL }; |
af309447 RD |
2002 | |
2003 | self = self; | |
f6bcfd97 | 2004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_format_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2005 | return NULL; |
1d99702e RD |
2006 | if (_argo0) { |
2007 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2008 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 2009 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_set. Expected _wxListItem_p."); |
af309447 RD |
2010 | return NULL; |
2011 | } | |
2012 | } | |
cf694132 RD |
2013 | { |
2014 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2015 | _result = (int )wxListItem_m_format_set(_arg0,_arg1); |
cf694132 RD |
2016 | |
2017 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2018 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2019 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2020 | return _resultobj; |
2021 | } | |
2022 | ||
f6bcfd97 BP |
2023 | #define wxListItem_m_format_get(_swigobj) ((int ) _swigobj->m_format) |
2024 | static PyObject *_wrap_wxListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2025 | PyObject * _resultobj; |
f6bcfd97 | 2026 | int _result; |
8ab979d7 | 2027 | wxListItem * _arg0; |
1d99702e | 2028 | PyObject * _argo0 = 0; |
efc5f224 | 2029 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2030 | |
2031 | self = self; | |
f6bcfd97 | 2032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_format_get",_kwnames,&_argo0)) |
8ab979d7 | 2033 | return NULL; |
1d99702e RD |
2034 | if (_argo0) { |
2035 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2036 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 2037 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_get. Expected _wxListItem_p."); |
8ab979d7 RD |
2038 | return NULL; |
2039 | } | |
2040 | } | |
cf694132 RD |
2041 | { |
2042 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2043 | _result = (int )wxListItem_m_format_get(_arg0); |
cf694132 RD |
2044 | |
2045 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2046 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2047 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2048 | return _resultobj; |
2049 | } | |
2050 | ||
f6bcfd97 BP |
2051 | #define wxListItem_m_width_set(_swigobj,_swigval) (_swigobj->m_width = _swigval,_swigval) |
2052 | static PyObject *_wrap_wxListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2053 | PyObject * _resultobj; |
f6bcfd97 | 2054 | int _result; |
af309447 | 2055 | wxListItem * _arg0; |
f6bcfd97 | 2056 | int _arg1; |
1d99702e | 2057 | PyObject * _argo0 = 0; |
f6bcfd97 | 2058 | char *_kwnames[] = { "self","m_width", NULL }; |
af309447 RD |
2059 | |
2060 | self = self; | |
f6bcfd97 | 2061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_width_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2062 | return NULL; |
1d99702e RD |
2063 | if (_argo0) { |
2064 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2065 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 2066 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_set. Expected _wxListItem_p."); |
af309447 RD |
2067 | return NULL; |
2068 | } | |
2069 | } | |
cf694132 RD |
2070 | { |
2071 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2072 | _result = (int )wxListItem_m_width_set(_arg0,_arg1); |
cf694132 RD |
2073 | |
2074 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2075 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2076 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2077 | return _resultobj; |
2078 | } | |
2079 | ||
f6bcfd97 BP |
2080 | #define wxListItem_m_width_get(_swigobj) ((int ) _swigobj->m_width) |
2081 | static PyObject *_wrap_wxListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2082 | PyObject * _resultobj; |
f6bcfd97 | 2083 | int _result; |
8ab979d7 | 2084 | wxListItem * _arg0; |
1d99702e | 2085 | PyObject * _argo0 = 0; |
efc5f224 | 2086 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2087 | |
2088 | self = self; | |
f6bcfd97 | 2089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_width_get",_kwnames,&_argo0)) |
8ab979d7 | 2090 | return NULL; |
1d99702e RD |
2091 | if (_argo0) { |
2092 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2093 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 2094 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_get. Expected _wxListItem_p."); |
8ab979d7 RD |
2095 | return NULL; |
2096 | } | |
2097 | } | |
cf694132 RD |
2098 | { |
2099 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2100 | _result = (int )wxListItem_m_width_get(_arg0); |
cf694132 RD |
2101 | |
2102 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2103 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2104 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2105 | return _resultobj; |
2106 | } | |
2107 | ||
c368d904 RD |
2108 | static void *SwigwxListEventTowxNotifyEvent(void *ptr) { |
2109 | wxListEvent *src; | |
2110 | wxNotifyEvent *dest; | |
2111 | src = (wxListEvent *) ptr; | |
2112 | dest = (wxNotifyEvent *) src; | |
2113 | return (void *) dest; | |
2114 | } | |
2115 | ||
f6bcfd97 BP |
2116 | static void *SwigwxListEventTowxCommandEvent(void *ptr) { |
2117 | wxListEvent *src; | |
2118 | wxCommandEvent *dest; | |
2119 | src = (wxListEvent *) ptr; | |
2120 | dest = (wxCommandEvent *) src; | |
2121 | return (void *) dest; | |
2122 | } | |
2123 | ||
2124 | static void *SwigwxListEventTowxEvent(void *ptr) { | |
2125 | wxListEvent *src; | |
2126 | wxEvent *dest; | |
2127 | src = (wxListEvent *) ptr; | |
2128 | dest = (wxEvent *) src; | |
2129 | return (void *) dest; | |
2130 | } | |
2131 | ||
9df61a29 RD |
2132 | static void *SwigwxListEventTowxObject(void *ptr) { |
2133 | wxListEvent *src; | |
2134 | wxObject *dest; | |
2135 | src = (wxListEvent *) ptr; | |
2136 | dest = (wxObject *) src; | |
2137 | return (void *) dest; | |
2138 | } | |
2139 | ||
059a841c RD |
2140 | #define new_wxListEvent(_swigarg0,_swigarg1) (new wxListEvent(_swigarg0,_swigarg1)) |
2141 | static PyObject *_wrap_new_wxListEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2142 | PyObject * _resultobj; | |
2143 | wxListEvent * _result; | |
2144 | wxEventType _arg0 = (wxEventType ) wxEVT_NULL; | |
2145 | int _arg1 = (int ) 0; | |
2146 | char *_kwnames[] = { "commandType","id", NULL }; | |
2147 | char _ptemp[128]; | |
2148 | ||
2149 | self = self; | |
2150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxListEvent",_kwnames,&_arg0,&_arg1)) | |
2151 | return NULL; | |
2152 | { | |
2153 | wxPy_BEGIN_ALLOW_THREADS; | |
2154 | _result = (wxListEvent *)new_wxListEvent(_arg0,_arg1); | |
2155 | ||
2156 | wxPy_END_ALLOW_THREADS; | |
2157 | if (PyErr_Occurred()) return NULL; | |
2158 | } if (_result) { | |
2159 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListEvent_p"); | |
2160 | _resultobj = Py_BuildValue("s",_ptemp); | |
2161 | } else { | |
2162 | Py_INCREF(Py_None); | |
2163 | _resultobj = Py_None; | |
2164 | } | |
2165 | return _resultobj; | |
2166 | } | |
2167 | ||
f6bcfd97 BP |
2168 | #define wxListEvent_m_code_set(_swigobj,_swigval) (_swigobj->m_code = _swigval,_swigval) |
2169 | static PyObject *_wrap_wxListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2170 | PyObject * _resultobj; |
f6bcfd97 BP |
2171 | int _result; |
2172 | wxListEvent * _arg0; | |
2173 | int _arg1; | |
1d99702e | 2174 | PyObject * _argo0 = 0; |
f6bcfd97 | 2175 | char *_kwnames[] = { "self","m_code", NULL }; |
af309447 RD |
2176 | |
2177 | self = self; | |
f6bcfd97 | 2178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_code_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2179 | return NULL; |
1d99702e RD |
2180 | if (_argo0) { |
2181 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2182 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2183 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_code_set. Expected _wxListEvent_p."); | |
af309447 RD |
2184 | return NULL; |
2185 | } | |
2186 | } | |
af309447 | 2187 | { |
cf694132 | 2188 | wxPy_BEGIN_ALLOW_THREADS; |
f6bcfd97 | 2189 | _result = (int )wxListEvent_m_code_set(_arg0,_arg1); |
cf694132 RD |
2190 | |
2191 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2192 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2193 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2194 | return _resultobj; |
2195 | } | |
2196 | ||
f6bcfd97 BP |
2197 | #define wxListEvent_m_code_get(_swigobj) ((int ) _swigobj->m_code) |
2198 | static PyObject *_wrap_wxListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2199 | PyObject * _resultobj; |
f6bcfd97 BP |
2200 | int _result; |
2201 | wxListEvent * _arg0; | |
1d99702e | 2202 | PyObject * _argo0 = 0; |
efc5f224 | 2203 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2204 | |
2205 | self = self; | |
f6bcfd97 | 2206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_code_get",_kwnames,&_argo0)) |
8ab979d7 | 2207 | return NULL; |
1d99702e RD |
2208 | if (_argo0) { |
2209 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2210 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2211 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_code_get. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2212 | return NULL; |
2213 | } | |
2214 | } | |
8ab979d7 | 2215 | { |
cf694132 | 2216 | wxPy_BEGIN_ALLOW_THREADS; |
f6bcfd97 | 2217 | _result = (int )wxListEvent_m_code_get(_arg0); |
cf694132 RD |
2218 | |
2219 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2220 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2221 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2222 | return _resultobj; |
2223 | } | |
2224 | ||
6e8a778a RD |
2225 | #define wxListEvent_m_oldItemIndex_set(_swigobj,_swigval) (_swigobj->m_oldItemIndex = _swigval,_swigval) |
2226 | static PyObject *_wrap_wxListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2227 | PyObject * _resultobj; |
f6bcfd97 BP |
2228 | long _result; |
2229 | wxListEvent * _arg0; | |
2230 | long _arg1; | |
1d99702e | 2231 | PyObject * _argo0 = 0; |
6e8a778a | 2232 | char *_kwnames[] = { "self","m_oldItemIndex", NULL }; |
af309447 RD |
2233 | |
2234 | self = self; | |
6e8a778a | 2235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListEvent_m_oldItemIndex_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2236 | return NULL; |
1d99702e RD |
2237 | if (_argo0) { |
2238 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 | 2239 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
6e8a778a | 2240 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_set. Expected _wxListEvent_p."); |
af309447 RD |
2241 | return NULL; |
2242 | } | |
2243 | } | |
cf694132 RD |
2244 | { |
2245 | wxPy_BEGIN_ALLOW_THREADS; | |
6e8a778a | 2246 | _result = (long )wxListEvent_m_oldItemIndex_set(_arg0,_arg1); |
cf694132 RD |
2247 | |
2248 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2249 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2250 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2251 | return _resultobj; |
2252 | } | |
2253 | ||
6e8a778a RD |
2254 | #define wxListEvent_m_oldItemIndex_get(_swigobj) ((long ) _swigobj->m_oldItemIndex) |
2255 | static PyObject *_wrap_wxListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2256 | PyObject * _resultobj; |
f6bcfd97 BP |
2257 | long _result; |
2258 | wxListEvent * _arg0; | |
1d99702e | 2259 | PyObject * _argo0 = 0; |
efc5f224 | 2260 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2261 | |
2262 | self = self; | |
6e8a778a | 2263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_oldItemIndex_get",_kwnames,&_argo0)) |
8ab979d7 | 2264 | return NULL; |
1d99702e RD |
2265 | if (_argo0) { |
2266 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 | 2267 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
6e8a778a | 2268 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_get. Expected _wxListEvent_p."); |
8ab979d7 RD |
2269 | return NULL; |
2270 | } | |
2271 | } | |
cf694132 RD |
2272 | { |
2273 | wxPy_BEGIN_ALLOW_THREADS; | |
6e8a778a | 2274 | _result = (long )wxListEvent_m_oldItemIndex_get(_arg0); |
cf694132 RD |
2275 | |
2276 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2277 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2278 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2279 | return _resultobj; |
2280 | } | |
2281 | ||
6e8a778a RD |
2282 | #define wxListEvent_m_itemIndex_set(_swigobj,_swigval) (_swigobj->m_itemIndex = _swigval,_swigval) |
2283 | static PyObject *_wrap_wxListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2284 | PyObject * _resultobj; |
6e8a778a | 2285 | long _result; |
f6bcfd97 | 2286 | wxListEvent * _arg0; |
6e8a778a | 2287 | long _arg1; |
1d99702e | 2288 | PyObject * _argo0 = 0; |
6e8a778a | 2289 | char *_kwnames[] = { "self","m_itemIndex", NULL }; |
af309447 RD |
2290 | |
2291 | self = self; | |
6e8a778a | 2292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListEvent_m_itemIndex_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2293 | return NULL; |
1d99702e RD |
2294 | if (_argo0) { |
2295 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 | 2296 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
6e8a778a | 2297 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_set. Expected _wxListEvent_p."); |
af309447 RD |
2298 | return NULL; |
2299 | } | |
2300 | } | |
cf694132 RD |
2301 | { |
2302 | wxPy_BEGIN_ALLOW_THREADS; | |
6e8a778a | 2303 | _result = (long )wxListEvent_m_itemIndex_set(_arg0,_arg1); |
cf694132 RD |
2304 | |
2305 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2306 | if (PyErr_Occurred()) return NULL; |
6e8a778a | 2307 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2308 | return _resultobj; |
2309 | } | |
2310 | ||
6e8a778a RD |
2311 | #define wxListEvent_m_itemIndex_get(_swigobj) ((long ) _swigobj->m_itemIndex) |
2312 | static PyObject *_wrap_wxListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2313 | PyObject * _resultobj; |
6e8a778a | 2314 | long _result; |
f6bcfd97 | 2315 | wxListEvent * _arg0; |
1d99702e | 2316 | PyObject * _argo0 = 0; |
efc5f224 | 2317 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2318 | |
2319 | self = self; | |
6e8a778a | 2320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_itemIndex_get",_kwnames,&_argo0)) |
8ab979d7 | 2321 | return NULL; |
1d99702e RD |
2322 | if (_argo0) { |
2323 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 | 2324 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
6e8a778a | 2325 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_get. Expected _wxListEvent_p."); |
8ab979d7 RD |
2326 | return NULL; |
2327 | } | |
2328 | } | |
cf694132 RD |
2329 | { |
2330 | wxPy_BEGIN_ALLOW_THREADS; | |
6e8a778a | 2331 | _result = (long )wxListEvent_m_itemIndex_get(_arg0); |
cf694132 RD |
2332 | |
2333 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2334 | if (PyErr_Occurred()) return NULL; |
6e8a778a | 2335 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2336 | return _resultobj; |
2337 | } | |
2338 | ||
6e8a778a RD |
2339 | #define wxListEvent_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval) |
2340 | static PyObject *_wrap_wxListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2341 | PyObject * _resultobj; |
6e8a778a | 2342 | int _result; |
f6bcfd97 | 2343 | wxListEvent * _arg0; |
6e8a778a | 2344 | int _arg1; |
1d99702e | 2345 | PyObject * _argo0 = 0; |
6e8a778a | 2346 | char *_kwnames[] = { "self","m_col", NULL }; |
af309447 RD |
2347 | |
2348 | self = self; | |
6e8a778a | 2349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_col_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2350 | return NULL; |
1d99702e RD |
2351 | if (_argo0) { |
2352 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 | 2353 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
6e8a778a | 2354 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_set. Expected _wxListEvent_p."); |
af309447 RD |
2355 | return NULL; |
2356 | } | |
2357 | } | |
cf694132 RD |
2358 | { |
2359 | wxPy_BEGIN_ALLOW_THREADS; | |
6e8a778a | 2360 | _result = (int )wxListEvent_m_col_set(_arg0,_arg1); |
cf694132 RD |
2361 | |
2362 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2363 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2364 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2365 | return _resultobj; |
2366 | } | |
2367 | ||
6e8a778a RD |
2368 | #define wxListEvent_m_col_get(_swigobj) ((int ) _swigobj->m_col) |
2369 | static PyObject *_wrap_wxListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2370 | PyObject * _resultobj; |
6e8a778a | 2371 | int _result; |
f6bcfd97 | 2372 | wxListEvent * _arg0; |
1d99702e | 2373 | PyObject * _argo0 = 0; |
efc5f224 | 2374 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2375 | |
2376 | self = self; | |
6e8a778a | 2377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_col_get",_kwnames,&_argo0)) |
8ab979d7 | 2378 | return NULL; |
1d99702e RD |
2379 | if (_argo0) { |
2380 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 | 2381 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
6e8a778a | 2382 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_get. Expected _wxListEvent_p."); |
8ab979d7 RD |
2383 | return NULL; |
2384 | } | |
2385 | } | |
cf694132 RD |
2386 | { |
2387 | wxPy_BEGIN_ALLOW_THREADS; | |
6e8a778a | 2388 | _result = (int )wxListEvent_m_col_get(_arg0); |
cf694132 RD |
2389 | |
2390 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2391 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2392 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2393 | return _resultobj; |
2394 | } | |
2395 | ||
f6bcfd97 BP |
2396 | #define wxListEvent_m_pointDrag_set(_swigobj,_swigval) (_swigobj->m_pointDrag = *(_swigval),_swigval) |
2397 | static PyObject *_wrap_wxListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2398 | PyObject * _resultobj; |
f6bcfd97 BP |
2399 | wxPoint * _result; |
2400 | wxListEvent * _arg0; | |
2401 | wxPoint * _arg1; | |
2402 | PyObject * _argo0 = 0; | |
2403 | wxPoint temp; | |
2404 | PyObject * _obj1 = 0; | |
2405 | char *_kwnames[] = { "self","m_pointDrag", NULL }; | |
8ab979d7 RD |
2406 | char _ptemp[128]; |
2407 | ||
2408 | self = self; | |
f6bcfd97 BP |
2409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListEvent_m_pointDrag_set",_kwnames,&_argo0,&_obj1)) |
2410 | return NULL; | |
2411 | if (_argo0) { | |
2412 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2413 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2414 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_set. Expected _wxListEvent_p."); | |
2415 | return NULL; | |
2416 | } | |
2417 | } | |
2418 | { | |
2419 | _arg1 = &temp; | |
2420 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 2421 | return NULL; |
f6bcfd97 | 2422 | } |
cf694132 RD |
2423 | { |
2424 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2425 | _result = (wxPoint *)wxListEvent_m_pointDrag_set(_arg0,_arg1); |
cf694132 RD |
2426 | |
2427 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2428 | if (PyErr_Occurred()) return NULL; |
1d99702e | 2429 | } if (_result) { |
f6bcfd97 | 2430 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); |
1d99702e RD |
2431 | _resultobj = Py_BuildValue("s",_ptemp); |
2432 | } else { | |
2433 | Py_INCREF(Py_None); | |
2434 | _resultobj = Py_None; | |
2435 | } | |
8ab979d7 RD |
2436 | return _resultobj; |
2437 | } | |
2438 | ||
f6bcfd97 BP |
2439 | #define wxListEvent_m_pointDrag_get(_swigobj) (&_swigobj->m_pointDrag) |
2440 | static PyObject *_wrap_wxListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2441 | PyObject * _resultobj; |
f6bcfd97 BP |
2442 | wxPoint * _result; |
2443 | wxListEvent * _arg0; | |
1d99702e | 2444 | PyObject * _argo0 = 0; |
efc5f224 | 2445 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 2446 | char _ptemp[128]; |
8ab979d7 RD |
2447 | |
2448 | self = self; | |
f6bcfd97 | 2449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_pointDrag_get",_kwnames,&_argo0)) |
8ab979d7 | 2450 | return NULL; |
1d99702e RD |
2451 | if (_argo0) { |
2452 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2453 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2454 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_get. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2455 | return NULL; |
2456 | } | |
2457 | } | |
cf694132 RD |
2458 | { |
2459 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2460 | _result = (wxPoint *)wxListEvent_m_pointDrag_get(_arg0); |
cf694132 RD |
2461 | |
2462 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2463 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2464 | } if (_result) { |
2465 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
2466 | _resultobj = Py_BuildValue("s",_ptemp); | |
2467 | } else { | |
2468 | Py_INCREF(Py_None); | |
2469 | _resultobj = Py_None; | |
2470 | } | |
8ab979d7 RD |
2471 | return _resultobj; |
2472 | } | |
2473 | ||
f6bcfd97 BP |
2474 | #define wxListEvent_m_item_set(_swigobj,_swigval) (_swigobj->m_item = *(_swigval),_swigval) |
2475 | static PyObject *_wrap_wxListEvent_m_item_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2476 | PyObject * _resultobj; | |
2477 | wxListItem * _result; | |
2478 | wxListEvent * _arg0; | |
2479 | wxListItem * _arg1; | |
2480 | PyObject * _argo0 = 0; | |
2481 | PyObject * _argo1 = 0; | |
2482 | char *_kwnames[] = { "self","m_item", NULL }; | |
8ab979d7 | 2483 | |
f6bcfd97 BP |
2484 | self = self; |
2485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListEvent_m_item_set",_kwnames,&_argo0,&_argo1)) | |
2486 | return NULL; | |
2487 | if (_argo0) { | |
2488 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2489 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2490 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_set. Expected _wxListEvent_p."); | |
2491 | return NULL; | |
2492 | } | |
2493 | } | |
2494 | if (_argo1) { | |
2495 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2496 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
2497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListEvent_m_item_set. Expected _wxListItem_p."); | |
2498 | return NULL; | |
2499 | } | |
2500 | } | |
2501 | { | |
2502 | wxPy_BEGIN_ALLOW_THREADS; | |
2503 | _result = (wxListItem *)wxListEvent_m_item_set(_arg0,_arg1); | |
2504 | ||
2505 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2506 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 2507 | }{ _resultobj = wxPyMake_wxObject(_result); } |
f6bcfd97 | 2508 | return _resultobj; |
8ab979d7 RD |
2509 | } |
2510 | ||
f6bcfd97 BP |
2511 | #define wxListEvent_m_item_get(_swigobj) (&_swigobj->m_item) |
2512 | static PyObject *_wrap_wxListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2513 | PyObject * _resultobj; |
f6bcfd97 | 2514 | wxListItem * _result; |
af309447 | 2515 | wxListEvent * _arg0; |
1d99702e | 2516 | PyObject * _argo0 = 0; |
f6bcfd97 | 2517 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2518 | |
2519 | self = self; | |
f6bcfd97 | 2520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_item_get",_kwnames,&_argo0)) |
af309447 | 2521 | return NULL; |
1d99702e RD |
2522 | if (_argo0) { |
2523 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2524 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2525 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_get. Expected _wxListEvent_p."); |
af309447 RD |
2526 | return NULL; |
2527 | } | |
2528 | } | |
cf694132 RD |
2529 | { |
2530 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2531 | _result = (wxListItem *)wxListEvent_m_item_get(_arg0); |
cf694132 RD |
2532 | |
2533 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2534 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 2535 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
2536 | return _resultobj; |
2537 | } | |
2538 | ||
f6bcfd97 BP |
2539 | #define wxListEvent_GetCode(_swigobj) (_swigobj->GetCode()) |
2540 | static PyObject *_wrap_wxListEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2541 | PyObject * _resultobj; |
2542 | int _result; | |
2543 | wxListEvent * _arg0; | |
1d99702e | 2544 | PyObject * _argo0 = 0; |
efc5f224 | 2545 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2546 | |
2547 | self = self; | |
f6bcfd97 | 2548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCode",_kwnames,&_argo0)) |
8ab979d7 | 2549 | return NULL; |
1d99702e RD |
2550 | if (_argo0) { |
2551 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2552 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCode. Expected _wxListEvent_p."); |
8ab979d7 RD |
2554 | return NULL; |
2555 | } | |
2556 | } | |
cf694132 RD |
2557 | { |
2558 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2559 | _result = (int )wxListEvent_GetCode(_arg0); |
cf694132 RD |
2560 | |
2561 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2562 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2563 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2564 | return _resultobj; |
2565 | } | |
2566 | ||
f6bcfd97 BP |
2567 | #define wxListEvent_GetIndex(_swigobj) (_swigobj->GetIndex()) |
2568 | static PyObject *_wrap_wxListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
2569 | PyObject * _resultobj; |
2570 | long _result; | |
2571 | wxListEvent * _arg0; | |
1d99702e | 2572 | PyObject * _argo0 = 0; |
f6bcfd97 | 2573 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2574 | |
2575 | self = self; | |
f6bcfd97 | 2576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetIndex",_kwnames,&_argo0)) |
af309447 | 2577 | return NULL; |
1d99702e RD |
2578 | if (_argo0) { |
2579 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2580 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2581 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetIndex. Expected _wxListEvent_p."); |
af309447 RD |
2582 | return NULL; |
2583 | } | |
2584 | } | |
cf694132 RD |
2585 | { |
2586 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2587 | _result = (long )wxListEvent_GetIndex(_arg0); |
cf694132 RD |
2588 | |
2589 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2590 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2591 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2592 | return _resultobj; |
2593 | } | |
2594 | ||
f6bcfd97 BP |
2595 | #define wxListEvent_GetColumn(_swigobj) (_swigobj->GetColumn()) |
2596 | static PyObject *_wrap_wxListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2597 | PyObject * _resultobj; |
f6bcfd97 | 2598 | int _result; |
8ab979d7 | 2599 | wxListEvent * _arg0; |
1d99702e | 2600 | PyObject * _argo0 = 0; |
efc5f224 | 2601 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2602 | |
2603 | self = self; | |
f6bcfd97 | 2604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetColumn",_kwnames,&_argo0)) |
8ab979d7 | 2605 | return NULL; |
1d99702e RD |
2606 | if (_argo0) { |
2607 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2608 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2609 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetColumn. Expected _wxListEvent_p."); |
8ab979d7 RD |
2610 | return NULL; |
2611 | } | |
2612 | } | |
cf694132 RD |
2613 | { |
2614 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2615 | _result = (int )wxListEvent_GetColumn(_arg0); |
cf694132 RD |
2616 | |
2617 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2618 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2619 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2620 | return _resultobj; |
2621 | } | |
2622 | ||
f6bcfd97 BP |
2623 | #define wxListEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) |
2624 | static PyObject *_wrap_wxListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2625 | PyObject * _resultobj; |
f6bcfd97 | 2626 | wxPoint * _result; |
8ab979d7 | 2627 | wxListEvent * _arg0; |
1d99702e | 2628 | PyObject * _argo0 = 0; |
efc5f224 | 2629 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 2630 | char _ptemp[128]; |
8ab979d7 RD |
2631 | |
2632 | self = self; | |
f6bcfd97 | 2633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetPoint",_kwnames,&_argo0)) |
8ab979d7 | 2634 | return NULL; |
1d99702e RD |
2635 | if (_argo0) { |
2636 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2637 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2638 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetPoint. Expected _wxListEvent_p."); |
8ab979d7 RD |
2639 | return NULL; |
2640 | } | |
2641 | } | |
cf694132 RD |
2642 | { |
2643 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2644 | _result = new wxPoint (wxListEvent_GetPoint(_arg0)); |
cf694132 RD |
2645 | |
2646 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2647 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2648 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
2649 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
2650 | return _resultobj; |
2651 | } | |
2652 | ||
f6bcfd97 BP |
2653 | #define wxListEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) |
2654 | static PyObject *_wrap_wxListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2655 | PyObject * _resultobj; |
f6bcfd97 | 2656 | wxString * _result; |
af309447 | 2657 | wxListEvent * _arg0; |
1d99702e | 2658 | PyObject * _argo0 = 0; |
f6bcfd97 | 2659 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2660 | |
2661 | self = self; | |
f6bcfd97 | 2662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetLabel",_kwnames,&_argo0)) |
af309447 | 2663 | return NULL; |
1d99702e RD |
2664 | if (_argo0) { |
2665 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2666 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2667 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetLabel. Expected _wxListEvent_p."); |
af309447 RD |
2668 | return NULL; |
2669 | } | |
2670 | } | |
cf694132 RD |
2671 | { |
2672 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
2673 | const wxString & _result_ref = wxListEvent_GetLabel(_arg0); |
2674 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
2675 | |
2676 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2677 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2678 | }{ |
2679 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2680 | } | |
af309447 RD |
2681 | return _resultobj; |
2682 | } | |
2683 | ||
f6bcfd97 BP |
2684 | #define wxListEvent_GetText(_swigobj) (_swigobj->GetText()) |
2685 | static PyObject *_wrap_wxListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2686 | PyObject * _resultobj; |
f6bcfd97 | 2687 | wxString * _result; |
8ab979d7 | 2688 | wxListEvent * _arg0; |
1d99702e | 2689 | PyObject * _argo0 = 0; |
efc5f224 | 2690 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2691 | |
2692 | self = self; | |
f6bcfd97 | 2693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetText",_kwnames,&_argo0)) |
8ab979d7 | 2694 | return NULL; |
1d99702e RD |
2695 | if (_argo0) { |
2696 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2697 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2698 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetText. Expected _wxListEvent_p."); |
8ab979d7 RD |
2699 | return NULL; |
2700 | } | |
2701 | } | |
cf694132 RD |
2702 | { |
2703 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
2704 | const wxString & _result_ref = wxListEvent_GetText(_arg0); |
2705 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
2706 | |
2707 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2708 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2709 | }{ |
2710 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2711 | } | |
8ab979d7 RD |
2712 | return _resultobj; |
2713 | } | |
2714 | ||
f6bcfd97 BP |
2715 | #define wxListEvent_GetImage(_swigobj) (_swigobj->GetImage()) |
2716 | static PyObject *_wrap_wxListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2717 | PyObject * _resultobj; |
f6bcfd97 | 2718 | int _result; |
af309447 | 2719 | wxListEvent * _arg0; |
1d99702e | 2720 | PyObject * _argo0 = 0; |
f6bcfd97 | 2721 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2722 | |
2723 | self = self; | |
f6bcfd97 | 2724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetImage",_kwnames,&_argo0)) |
af309447 | 2725 | return NULL; |
1d99702e RD |
2726 | if (_argo0) { |
2727 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2728 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2729 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetImage. Expected _wxListEvent_p."); |
af309447 RD |
2730 | return NULL; |
2731 | } | |
2732 | } | |
cf694132 RD |
2733 | { |
2734 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2735 | _result = (int )wxListEvent_GetImage(_arg0); |
cf694132 RD |
2736 | |
2737 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2738 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2739 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2740 | return _resultobj; |
2741 | } | |
2742 | ||
f6bcfd97 BP |
2743 | #define wxListEvent_GetData(_swigobj) (_swigobj->GetData()) |
2744 | static PyObject *_wrap_wxListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2745 | PyObject * _resultobj; |
f6bcfd97 | 2746 | long _result; |
8ab979d7 | 2747 | wxListEvent * _arg0; |
1d99702e | 2748 | PyObject * _argo0 = 0; |
efc5f224 | 2749 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2750 | |
2751 | self = self; | |
f6bcfd97 | 2752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetData",_kwnames,&_argo0)) |
8ab979d7 | 2753 | return NULL; |
1d99702e RD |
2754 | if (_argo0) { |
2755 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2756 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2757 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetData. Expected _wxListEvent_p."); |
8ab979d7 RD |
2758 | return NULL; |
2759 | } | |
2760 | } | |
cf694132 RD |
2761 | { |
2762 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2763 | _result = (long )wxListEvent_GetData(_arg0); |
cf694132 RD |
2764 | |
2765 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2766 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2767 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2768 | return _resultobj; |
2769 | } | |
2770 | ||
f6bcfd97 BP |
2771 | #define wxListEvent_GetMask(_swigobj) (_swigobj->GetMask()) |
2772 | static PyObject *_wrap_wxListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2773 | PyObject * _resultobj; |
f6bcfd97 | 2774 | long _result; |
af309447 | 2775 | wxListEvent * _arg0; |
1d99702e | 2776 | PyObject * _argo0 = 0; |
f6bcfd97 | 2777 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2778 | |
2779 | self = self; | |
f6bcfd97 | 2780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetMask",_kwnames,&_argo0)) |
af309447 | 2781 | return NULL; |
1d99702e RD |
2782 | if (_argo0) { |
2783 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2784 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2785 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetMask. Expected _wxListEvent_p."); |
af309447 RD |
2786 | return NULL; |
2787 | } | |
2788 | } | |
cf694132 RD |
2789 | { |
2790 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2791 | _result = (long )wxListEvent_GetMask(_arg0); |
cf694132 RD |
2792 | |
2793 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2794 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2795 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2796 | return _resultobj; |
2797 | } | |
2798 | ||
f6bcfd97 BP |
2799 | #define wxListEvent_GetItem(_swigobj) (_swigobj->GetItem()) |
2800 | static PyObject *_wrap_wxListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2801 | PyObject * _resultobj; |
2802 | wxListItem * _result; | |
2803 | wxListEvent * _arg0; | |
1d99702e | 2804 | PyObject * _argo0 = 0; |
efc5f224 | 2805 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2806 | |
2807 | self = self; | |
f6bcfd97 | 2808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetItem",_kwnames,&_argo0)) |
8ab979d7 | 2809 | return NULL; |
1d99702e RD |
2810 | if (_argo0) { |
2811 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2812 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2813 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetItem. Expected _wxListEvent_p."); |
8ab979d7 RD |
2814 | return NULL; |
2815 | } | |
2816 | } | |
cf694132 RD |
2817 | { |
2818 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
2819 | const wxListItem & _result_ref = wxListEvent_GetItem(_arg0); |
2820 | _result = (wxListItem *) &_result_ref; | |
cf694132 RD |
2821 | |
2822 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2823 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 2824 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
2825 | return _resultobj; |
2826 | } | |
2827 | ||
059a841c RD |
2828 | #define wxListEvent_GetCacheFrom(_swigobj) (_swigobj->GetCacheFrom()) |
2829 | static PyObject *_wrap_wxListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2830 | PyObject * _resultobj; | |
2831 | long _result; | |
2832 | wxListEvent * _arg0; | |
2833 | PyObject * _argo0 = 0; | |
2834 | char *_kwnames[] = { "self", NULL }; | |
2835 | ||
2836 | self = self; | |
2837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCacheFrom",_kwnames,&_argo0)) | |
2838 | return NULL; | |
2839 | if (_argo0) { | |
2840 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2841 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2842 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCacheFrom. Expected _wxListEvent_p."); | |
2843 | return NULL; | |
2844 | } | |
2845 | } | |
2846 | { | |
2847 | wxPy_BEGIN_ALLOW_THREADS; | |
2848 | _result = (long )wxListEvent_GetCacheFrom(_arg0); | |
2849 | ||
2850 | wxPy_END_ALLOW_THREADS; | |
2851 | if (PyErr_Occurred()) return NULL; | |
2852 | } _resultobj = Py_BuildValue("l",_result); | |
2853 | return _resultobj; | |
2854 | } | |
2855 | ||
2856 | #define wxListEvent_GetCacheTo(_swigobj) (_swigobj->GetCacheTo()) | |
2857 | static PyObject *_wrap_wxListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2858 | PyObject * _resultobj; | |
2859 | long _result; | |
2860 | wxListEvent * _arg0; | |
2861 | PyObject * _argo0 = 0; | |
2862 | char *_kwnames[] = { "self", NULL }; | |
2863 | ||
2864 | self = self; | |
2865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCacheTo",_kwnames,&_argo0)) | |
2866 | return NULL; | |
2867 | if (_argo0) { | |
2868 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2869 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2870 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCacheTo. Expected _wxListEvent_p."); | |
2871 | return NULL; | |
2872 | } | |
2873 | } | |
2874 | { | |
2875 | wxPy_BEGIN_ALLOW_THREADS; | |
2876 | _result = (long )wxListEvent_GetCacheTo(_arg0); | |
2877 | ||
2878 | wxPy_END_ALLOW_THREADS; | |
2879 | if (PyErr_Occurred()) return NULL; | |
2880 | } _resultobj = Py_BuildValue("l",_result); | |
2881 | return _resultobj; | |
2882 | } | |
2883 | ||
cd096152 RD |
2884 | static void *SwigwxPyListCtrlTowxControl(void *ptr) { |
2885 | wxPyListCtrl *src; | |
8ab979d7 | 2886 | wxControl *dest; |
cd096152 | 2887 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
2888 | dest = (wxControl *) src; |
2889 | return (void *) dest; | |
2890 | } | |
2891 | ||
cd096152 RD |
2892 | static void *SwigwxPyListCtrlTowxWindow(void *ptr) { |
2893 | wxPyListCtrl *src; | |
8ab979d7 | 2894 | wxWindow *dest; |
cd096152 | 2895 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
2896 | dest = (wxWindow *) src; |
2897 | return (void *) dest; | |
2898 | } | |
2899 | ||
cd096152 RD |
2900 | static void *SwigwxPyListCtrlTowxEvtHandler(void *ptr) { |
2901 | wxPyListCtrl *src; | |
8ab979d7 | 2902 | wxEvtHandler *dest; |
cd096152 | 2903 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
2904 | dest = (wxEvtHandler *) src; |
2905 | return (void *) dest; | |
2906 | } | |
2907 | ||
cd096152 RD |
2908 | static void *SwigwxPyListCtrlTowxObject(void *ptr) { |
2909 | wxPyListCtrl *src; | |
9df61a29 | 2910 | wxObject *dest; |
cd096152 | 2911 | src = (wxPyListCtrl *) ptr; |
9df61a29 RD |
2912 | dest = (wxObject *) src; |
2913 | return (void *) dest; | |
2914 | } | |
2915 | ||
cd096152 | 2916 | #define new_wxListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 2917 | static PyObject *_wrap_new_wxListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 2918 | PyObject * _resultobj; |
cd096152 | 2919 | wxPyListCtrl * _result; |
8ab979d7 | 2920 | wxWindow * _arg0; |
cd096152 | 2921 | wxWindowID _arg1 = (wxWindowID ) -1; |
b68dc582 RD |
2922 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
2923 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2c8a649d | 2924 | long _arg4 = (long ) (wxLC_ICON); |
b68dc582 | 2925 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
2926 | char * _arg6 = (char *) "listCtrl"; |
2927 | PyObject * _argo0 = 0; | |
2f90df85 RD |
2928 | wxPoint temp; |
2929 | PyObject * _obj2 = 0; | |
2930 | wxSize temp0; | |
2931 | PyObject * _obj3 = 0; | |
1d99702e | 2932 | PyObject * _argo5 = 0; |
efc5f224 | 2933 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
2934 | char _ptemp[128]; |
2935 | ||
2936 | self = self; | |
cd096152 | 2937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) |
8ab979d7 | 2938 | return NULL; |
1d99702e RD |
2939 | if (_argo0) { |
2940 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2941 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2942 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListCtrl. Expected _wxWindow_p."); |
2943 | return NULL; | |
2944 | } | |
2945 | } | |
2f90df85 RD |
2946 | if (_obj2) |
2947 | { | |
2948 | _arg2 = &temp; | |
2949 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 2950 | return NULL; |
2f90df85 RD |
2951 | } |
2952 | if (_obj3) | |
2953 | { | |
2954 | _arg3 = &temp0; | |
2955 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 2956 | return NULL; |
2f90df85 | 2957 | } |
1d99702e RD |
2958 | if (_argo5) { |
2959 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
2960 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
8ab979d7 RD |
2961 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListCtrl. Expected _wxValidator_p."); |
2962 | return NULL; | |
2963 | } | |
2964 | } | |
cf694132 RD |
2965 | { |
2966 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 2967 | _result = (wxPyListCtrl *)new_wxListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); |
cf694132 RD |
2968 | |
2969 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2970 | if (PyErr_Occurred()) return NULL; |
1d99702e | 2971 | } if (_result) { |
cd096152 | 2972 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyListCtrl_p"); |
1d99702e RD |
2973 | _resultobj = Py_BuildValue("s",_ptemp); |
2974 | } else { | |
2975 | Py_INCREF(Py_None); | |
2976 | _resultobj = Py_None; | |
2977 | } | |
8ab979d7 RD |
2978 | return _resultobj; |
2979 | } | |
2980 | ||
aa2a5b86 RD |
2981 | #define new_wxPreListCtrl() (new wxPyListCtrl()) |
2982 | static PyObject *_wrap_new_wxPreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2983 | PyObject * _resultobj; | |
2984 | wxPyListCtrl * _result; | |
2985 | char *_kwnames[] = { NULL }; | |
2986 | char _ptemp[128]; | |
2987 | ||
2988 | self = self; | |
2989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListCtrl",_kwnames)) | |
2990 | return NULL; | |
2991 | { | |
2992 | wxPy_BEGIN_ALLOW_THREADS; | |
2993 | _result = (wxPyListCtrl *)new_wxPreListCtrl(); | |
2994 | ||
2995 | wxPy_END_ALLOW_THREADS; | |
2996 | if (PyErr_Occurred()) return NULL; | |
2997 | } if (_result) { | |
2998 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyListCtrl_p"); | |
2999 | _resultobj = Py_BuildValue("s",_ptemp); | |
3000 | } else { | |
3001 | Py_INCREF(Py_None); | |
3002 | _resultobj = Py_None; | |
3003 | } | |
3004 | return _resultobj; | |
3005 | } | |
3006 | ||
3007 | #define wxListCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
3008 | static PyObject *_wrap_wxListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3009 | PyObject * _resultobj; | |
3010 | bool _result; | |
3011 | wxPyListCtrl * _arg0; | |
3012 | wxWindow * _arg1; | |
3013 | wxWindowID _arg2 = (wxWindowID ) -1; | |
3014 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
3015 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
3016 | long _arg5 = (long ) (wxLC_ICON); | |
3017 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
3018 | char * _arg7 = (char *) "listCtrl"; | |
3019 | PyObject * _argo0 = 0; | |
3020 | PyObject * _argo1 = 0; | |
3021 | wxPoint temp; | |
3022 | PyObject * _obj3 = 0; | |
3023 | wxSize temp0; | |
3024 | PyObject * _obj4 = 0; | |
3025 | PyObject * _argo6 = 0; | |
3026 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
3027 | ||
3028 | self = self; | |
3029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOs:wxListCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
3030 | return NULL; | |
3031 | if (_argo0) { | |
3032 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3033 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3034 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Create. Expected _wxPyListCtrl_p."); | |
3035 | return NULL; | |
3036 | } | |
3037 | } | |
3038 | if (_argo1) { | |
3039 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3040 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3041 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_Create. Expected _wxWindow_p."); | |
3042 | return NULL; | |
3043 | } | |
3044 | } | |
3045 | if (_obj3) | |
3046 | { | |
3047 | _arg3 = &temp; | |
3048 | if (! wxPoint_helper(_obj3, &_arg3)) | |
3049 | return NULL; | |
3050 | } | |
3051 | if (_obj4) | |
3052 | { | |
3053 | _arg4 = &temp0; | |
3054 | if (! wxSize_helper(_obj4, &_arg4)) | |
3055 | return NULL; | |
3056 | } | |
3057 | if (_argo6) { | |
3058 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
3059 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
3060 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxListCtrl_Create. Expected _wxValidator_p."); | |
3061 | return NULL; | |
3062 | } | |
3063 | } | |
3064 | { | |
3065 | wxPy_BEGIN_ALLOW_THREADS; | |
3066 | _result = (bool )wxListCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
3067 | ||
3068 | wxPy_END_ALLOW_THREADS; | |
3069 | if (PyErr_Occurred()) return NULL; | |
3070 | } _resultobj = Py_BuildValue("i",_result); | |
3071 | return _resultobj; | |
3072 | } | |
3073 | ||
0220cbc1 RD |
3074 | #define wxListCtrl__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
3075 | static PyObject *_wrap_wxListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3076 | PyObject * _resultobj; |
cd096152 RD |
3077 | wxPyListCtrl * _arg0; |
3078 | PyObject * _arg1; | |
3079 | PyObject * _arg2; | |
1d99702e | 3080 | PyObject * _argo0 = 0; |
cd096152 RD |
3081 | PyObject * _obj1 = 0; |
3082 | PyObject * _obj2 = 0; | |
3083 | char *_kwnames[] = { "self","self","_class", NULL }; | |
8ab979d7 RD |
3084 | |
3085 | self = self; | |
0220cbc1 | 3086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxListCtrl__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 3087 | return NULL; |
1d99702e RD |
3088 | if (_argo0) { |
3089 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 | 3090 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
0220cbc1 | 3091 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl__setCallbackInfo. Expected _wxPyListCtrl_p."); |
8ab979d7 RD |
3092 | return NULL; |
3093 | } | |
3094 | } | |
cd096152 RD |
3095 | { |
3096 | _arg1 = _obj1; | |
3097 | } | |
3098 | { | |
3099 | _arg2 = _obj2; | |
3100 | } | |
cf694132 RD |
3101 | { |
3102 | wxPy_BEGIN_ALLOW_THREADS; | |
0220cbc1 | 3103 | wxListCtrl__setCallbackInfo(_arg0,_arg1,_arg2); |
cf694132 RD |
3104 | |
3105 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3106 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
3107 | } Py_INCREF(Py_None); |
3108 | _resultobj = Py_None; | |
8ab979d7 RD |
3109 | return _resultobj; |
3110 | } | |
3111 | ||
cd096152 RD |
3112 | #define wxListCtrl_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) |
3113 | static PyObject *_wrap_wxListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c4165ad | 3114 | PyObject * _resultobj; |
cd096152 RD |
3115 | bool _result; |
3116 | wxPyListCtrl * _arg0; | |
3117 | wxColour * _arg1; | |
9c4165ad | 3118 | PyObject * _argo0 = 0; |
cd096152 RD |
3119 | wxColour temp; |
3120 | PyObject * _obj1 = 0; | |
3121 | char *_kwnames[] = { "self","col", NULL }; | |
9c4165ad RD |
3122 | |
3123 | self = self; | |
cd096152 | 3124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
9c4165ad RD |
3125 | return NULL; |
3126 | if (_argo0) { | |
3127 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3128 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3129 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetForegroundColour. Expected _wxPyListCtrl_p."); | |
9c4165ad RD |
3130 | return NULL; |
3131 | } | |
3132 | } | |
cd096152 RD |
3133 | { |
3134 | _arg1 = &temp; | |
3135 | if (! wxColour_helper(_obj1, &_arg1)) | |
3136 | return NULL; | |
3137 | } | |
3138 | { | |
3139 | wxPy_BEGIN_ALLOW_THREADS; | |
3140 | _result = (bool )wxListCtrl_SetForegroundColour(_arg0,*_arg1); | |
3141 | ||
3142 | wxPy_END_ALLOW_THREADS; | |
3143 | if (PyErr_Occurred()) return NULL; | |
3144 | } _resultobj = Py_BuildValue("i",_result); | |
3145 | return _resultobj; | |
3146 | } | |
3147 | ||
3148 | #define wxListCtrl_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
3149 | static PyObject *_wrap_wxListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3150 | PyObject * _resultobj; | |
3151 | bool _result; | |
3152 | wxPyListCtrl * _arg0; | |
3153 | wxColour * _arg1; | |
3154 | PyObject * _argo0 = 0; | |
3155 | wxColour temp; | |
3156 | PyObject * _obj1 = 0; | |
3157 | char *_kwnames[] = { "self","col", NULL }; | |
3158 | ||
3159 | self = self; | |
3160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
3161 | return NULL; | |
3162 | if (_argo0) { | |
3163 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3164 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3165 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetBackgroundColour. Expected _wxPyListCtrl_p."); | |
9c4165ad RD |
3166 | return NULL; |
3167 | } | |
3168 | } | |
cd096152 RD |
3169 | { |
3170 | _arg1 = &temp; | |
3171 | if (! wxColour_helper(_obj1, &_arg1)) | |
3172 | return NULL; | |
3173 | } | |
9c4165ad RD |
3174 | { |
3175 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3176 | _result = (bool )wxListCtrl_SetBackgroundColour(_arg0,*_arg1); |
9c4165ad RD |
3177 | |
3178 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3179 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3180 | } _resultobj = Py_BuildValue("i",_result); |
9c4165ad RD |
3181 | return _resultobj; |
3182 | } | |
3183 | ||
cd096152 RD |
3184 | #define wxListCtrl_GetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetColumn(_swigarg0,_swigarg1)) |
3185 | static PyObject *_wrap_wxListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3186 | PyObject * _resultobj; |
3187 | bool _result; | |
cd096152 RD |
3188 | wxPyListCtrl * _arg0; |
3189 | int _arg1; | |
3190 | wxListItem * _arg2; | |
1d99702e | 3191 | PyObject * _argo0 = 0; |
cd096152 RD |
3192 | PyObject * _argo2 = 0; |
3193 | char *_kwnames[] = { "self","col","item", NULL }; | |
8ab979d7 RD |
3194 | |
3195 | self = self; | |
cd096152 | 3196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_GetColumn",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 3197 | return NULL; |
1d99702e RD |
3198 | if (_argo0) { |
3199 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3200 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3201 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumn. Expected _wxPyListCtrl_p."); | |
3202 | return NULL; | |
3203 | } | |
3204 | } | |
3205 | if (_argo2) { | |
3206 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3207 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
3208 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_GetColumn. Expected _wxListItem_p."); | |
8ab979d7 RD |
3209 | return NULL; |
3210 | } | |
3211 | } | |
cf694132 RD |
3212 | { |
3213 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3214 | _result = (bool )wxListCtrl_GetColumn(_arg0,_arg1,*_arg2); |
cf694132 RD |
3215 | |
3216 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3217 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3218 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3219 | return _resultobj; |
3220 | } | |
3221 | ||
cd096152 RD |
3222 | #define wxListCtrl_SetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumn(_swigarg0,_swigarg1)) |
3223 | static PyObject *_wrap_wxListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3224 | PyObject * _resultobj; |
3225 | bool _result; | |
cd096152 RD |
3226 | wxPyListCtrl * _arg0; |
3227 | int _arg1; | |
3228 | wxListItem * _arg2; | |
1d99702e | 3229 | PyObject * _argo0 = 0; |
cd096152 RD |
3230 | PyObject * _argo2 = 0; |
3231 | char *_kwnames[] = { "self","col","item", NULL }; | |
8ab979d7 RD |
3232 | |
3233 | self = self; | |
cd096152 | 3234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_SetColumn",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 3235 | return NULL; |
1d99702e RD |
3236 | if (_argo0) { |
3237 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3238 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3239 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumn. Expected _wxPyListCtrl_p."); | |
3240 | return NULL; | |
3241 | } | |
3242 | } | |
3243 | if (_argo2) { | |
3244 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3245 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
3246 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_SetColumn. Expected _wxListItem_p."); | |
8ab979d7 RD |
3247 | return NULL; |
3248 | } | |
3249 | } | |
cf694132 RD |
3250 | { |
3251 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3252 | _result = (bool )wxListCtrl_SetColumn(_arg0,_arg1,*_arg2); |
cf694132 RD |
3253 | |
3254 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3255 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3256 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3257 | return _resultobj; |
3258 | } | |
3259 | ||
cd096152 RD |
3260 | #define wxListCtrl_GetColumnWidth(_swigobj,_swigarg0) (_swigobj->GetColumnWidth(_swigarg0)) |
3261 | static PyObject *_wrap_wxListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3262 | PyObject * _resultobj; |
cd096152 RD |
3263 | int _result; |
3264 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3265 | int _arg1; |
1d99702e | 3266 | PyObject * _argo0 = 0; |
efc5f224 | 3267 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
3268 | |
3269 | self = self; | |
cd096152 | 3270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetColumnWidth",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3271 | return NULL; |
1d99702e RD |
3272 | if (_argo0) { |
3273 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3274 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3275 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnWidth. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3276 | return NULL; |
3277 | } | |
3278 | } | |
cf694132 RD |
3279 | { |
3280 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3281 | _result = (int )wxListCtrl_GetColumnWidth(_arg0,_arg1); |
cf694132 RD |
3282 | |
3283 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3284 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3285 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3286 | return _resultobj; |
3287 | } | |
3288 | ||
cd096152 RD |
3289 | #define wxListCtrl_SetColumnWidth(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnWidth(_swigarg0,_swigarg1)) |
3290 | static PyObject *_wrap_wxListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3291 | PyObject * _resultobj; |
3292 | bool _result; | |
cd096152 RD |
3293 | wxPyListCtrl * _arg0; |
3294 | int _arg1; | |
3295 | int _arg2; | |
1d99702e | 3296 | PyObject * _argo0 = 0; |
cd096152 | 3297 | char *_kwnames[] = { "self","col","width", NULL }; |
8ab979d7 RD |
3298 | |
3299 | self = self; | |
cd096152 | 3300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_SetColumnWidth",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3301 | return NULL; |
1d99702e RD |
3302 | if (_argo0) { |
3303 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3304 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3305 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumnWidth. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3306 | return NULL; |
3307 | } | |
3308 | } | |
cf694132 RD |
3309 | { |
3310 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3311 | _result = (bool )wxListCtrl_SetColumnWidth(_arg0,_arg1,_arg2); |
cf694132 RD |
3312 | |
3313 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3314 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3315 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3316 | return _resultobj; |
3317 | } | |
3318 | ||
cd096152 RD |
3319 | #define wxListCtrl_GetCountPerPage(_swigobj) (_swigobj->GetCountPerPage()) |
3320 | static PyObject *_wrap_wxListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3321 | PyObject * _resultobj; |
cd096152 RD |
3322 | int _result; |
3323 | wxPyListCtrl * _arg0; | |
1d99702e | 3324 | PyObject * _argo0 = 0; |
efc5f224 | 3325 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3326 | |
3327 | self = self; | |
cd096152 | 3328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetCountPerPage",_kwnames,&_argo0)) |
8ab979d7 | 3329 | return NULL; |
1d99702e RD |
3330 | if (_argo0) { |
3331 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3332 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3333 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetCountPerPage. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3334 | return NULL; |
3335 | } | |
3336 | } | |
cf694132 RD |
3337 | { |
3338 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3339 | _result = (int )wxListCtrl_GetCountPerPage(_arg0); |
cf694132 RD |
3340 | |
3341 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3342 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3343 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3344 | return _resultobj; |
3345 | } | |
3346 | ||
cd096152 RD |
3347 | static wxListItem * wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col) { |
3348 | wxListItem* info = new wxListItem; | |
3349 | info->m_itemId = itemId; | |
3350 | info->m_col = col; | |
3351 | info->m_mask = 0xFFFF; | |
3352 | self->GetItem(*info); | |
3353 | return info; | |
3354 | } | |
3355 | static PyObject *_wrap_wxListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3356 | PyObject * _resultobj; |
cd096152 RD |
3357 | wxListItem * _result; |
3358 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3359 | long _arg1; |
cd096152 | 3360 | int _arg2 = (int ) 0; |
1d99702e | 3361 | PyObject * _argo0 = 0; |
cd096152 | 3362 | char *_kwnames[] = { "self","itemId","col", NULL }; |
8ab979d7 RD |
3363 | |
3364 | self = self; | |
cd096152 | 3365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItem",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3366 | return NULL; |
1d99702e RD |
3367 | if (_argo0) { |
3368 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3369 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3370 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3371 | return NULL; |
3372 | } | |
3373 | } | |
cf694132 RD |
3374 | { |
3375 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3376 | _result = (wxListItem *)wxPyListCtrl_GetItem(_arg0,_arg1,_arg2); |
cf694132 RD |
3377 | |
3378 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3379 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3380 | }{ _resultobj = wxPyMake_wxObject(_result); } |
be4d9c1f RD |
3381 | return _resultobj; |
3382 | } | |
3383 | ||
cd096152 RD |
3384 | #define wxListCtrl_SetItem(_swigobj,_swigarg0) (_swigobj->SetItem(_swigarg0)) |
3385 | static PyObject *_wrap_wxListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3386 | PyObject * _resultobj; |
3387 | bool _result; | |
cd096152 RD |
3388 | wxPyListCtrl * _arg0; |
3389 | wxListItem * _arg1; | |
1d99702e | 3390 | PyObject * _argo0 = 0; |
cd096152 RD |
3391 | PyObject * _argo1 = 0; |
3392 | char *_kwnames[] = { "self","info", NULL }; | |
8ab979d7 RD |
3393 | |
3394 | self = self; | |
cd096152 | 3395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3396 | return NULL; |
1d99702e RD |
3397 | if (_argo0) { |
3398 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3399 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3400 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItem. Expected _wxPyListCtrl_p."); | |
3401 | return NULL; | |
3402 | } | |
3403 | } | |
3404 | if (_argo1) { | |
3405 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3406 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
3407 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetItem. Expected _wxListItem_p."); | |
8ab979d7 RD |
3408 | return NULL; |
3409 | } | |
3410 | } | |
cf694132 RD |
3411 | { |
3412 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3413 | _result = (bool )wxListCtrl_SetItem(_arg0,*_arg1); |
cf694132 RD |
3414 | |
3415 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3416 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3417 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3418 | return _resultobj; |
3419 | } | |
3420 | ||
cd096152 RD |
3421 | #define wxListCtrl_SetStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
3422 | static PyObject *_wrap_wxListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3423 | PyObject * _resultobj; |
3424 | long _result; | |
cd096152 | 3425 | wxPyListCtrl * _arg0; |
8ab979d7 | 3426 | long _arg1; |
cd096152 RD |
3427 | int _arg2; |
3428 | wxString * _arg3; | |
3429 | int _arg4 = (int ) -1; | |
1d99702e | 3430 | PyObject * _argo0 = 0; |
cd096152 RD |
3431 | PyObject * _obj3 = 0; |
3432 | char *_kwnames[] = { "self","index","col","label","imageId", NULL }; | |
8ab979d7 RD |
3433 | |
3434 | self = self; | |
cd096152 | 3435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OliO|i:wxListCtrl_SetStringItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) |
8ab979d7 | 3436 | return NULL; |
1d99702e RD |
3437 | if (_argo0) { |
3438 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3439 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3440 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetStringItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3441 | return NULL; |
3442 | } | |
3443 | } | |
3444 | { | |
2cd2fac8 RD |
3445 | #if PYTHON_API_VERSION >= 1009 |
3446 | char* tmpPtr; int tmpSize; | |
cd096152 | 3447 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { |
7a446686 | 3448 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
3449 | return NULL; |
3450 | } | |
cd096152 | 3451 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) |
2cd2fac8 | 3452 | return NULL; |
cd096152 | 3453 | _arg3 = new wxString(tmpPtr, tmpSize); |
2cd2fac8 | 3454 | #else |
cd096152 | 3455 | if (!PyString_Check(_obj3)) { |
8ab979d7 RD |
3456 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
3457 | return NULL; | |
3458 | } | |
cd096152 | 3459 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
2cd2fac8 | 3460 | #endif |
8ab979d7 | 3461 | } |
cf694132 RD |
3462 | { |
3463 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3464 | _result = (long )wxListCtrl_SetStringItem(_arg0,_arg1,_arg2,*_arg3,_arg4); |
cf694132 RD |
3465 | |
3466 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3467 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3468 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 | 3469 | { |
cd096152 RD |
3470 | if (_obj3) |
3471 | delete _arg3; | |
8ab979d7 RD |
3472 | } |
3473 | return _resultobj; | |
3474 | } | |
3475 | ||
cd096152 RD |
3476 | #define wxListCtrl_GetItemState(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemState(_swigarg0,_swigarg1)) |
3477 | static PyObject *_wrap_wxListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3478 | PyObject * _resultobj; |
cd096152 RD |
3479 | int _result; |
3480 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
3481 | long _arg1; |
3482 | long _arg2; | |
1d99702e | 3483 | PyObject * _argo0 = 0; |
cd096152 | 3484 | char *_kwnames[] = { "self","item","stateMask", NULL }; |
8ab979d7 RD |
3485 | |
3486 | self = self; | |
cd096152 | 3487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_GetItemState",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3488 | return NULL; |
1d99702e RD |
3489 | if (_argo0) { |
3490 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3491 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemState. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3493 | return NULL; |
3494 | } | |
3495 | } | |
cf694132 RD |
3496 | { |
3497 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3498 | _result = (int )wxListCtrl_GetItemState(_arg0,_arg1,_arg2); |
cf694132 RD |
3499 | |
3500 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3501 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3502 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3503 | return _resultobj; |
3504 | } | |
3505 | ||
cd096152 RD |
3506 | #define wxListCtrl_SetItemState(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemState(_swigarg0,_swigarg1,_swigarg2)) |
3507 | static PyObject *_wrap_wxListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3508 | PyObject * _resultobj; |
cd096152 RD |
3509 | bool _result; |
3510 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3511 | long _arg1; |
cd096152 RD |
3512 | long _arg2; |
3513 | long _arg3; | |
1d99702e | 3514 | PyObject * _argo0 = 0; |
cd096152 | 3515 | char *_kwnames[] = { "self","item","state","stateMask", NULL }; |
8ab979d7 RD |
3516 | |
3517 | self = self; | |
cd096152 | 3518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxListCtrl_SetItemState",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 3519 | return NULL; |
1d99702e RD |
3520 | if (_argo0) { |
3521 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3522 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3523 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemState. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3524 | return NULL; |
3525 | } | |
3526 | } | |
cf694132 RD |
3527 | { |
3528 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3529 | _result = (bool )wxListCtrl_SetItemState(_arg0,_arg1,_arg2,_arg3); |
cf694132 RD |
3530 | |
3531 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3532 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3533 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3534 | return _resultobj; |
3535 | } | |
3536 | ||
cd096152 RD |
3537 | #define wxListCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) |
3538 | static PyObject *_wrap_wxListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3539 | PyObject * _resultobj; |
3540 | bool _result; | |
cd096152 RD |
3541 | wxPyListCtrl * _arg0; |
3542 | long _arg1; | |
3543 | int _arg2; | |
3544 | int _arg3; | |
1d99702e | 3545 | PyObject * _argo0 = 0; |
cd096152 | 3546 | char *_kwnames[] = { "self","item","image","selImage", NULL }; |
8ab979d7 RD |
3547 | |
3548 | self = self; | |
cd096152 | 3549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olii:wxListCtrl_SetItemImage",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 3550 | return NULL; |
1d99702e RD |
3551 | if (_argo0) { |
3552 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3553 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3554 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemImage. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3555 | return NULL; |
3556 | } | |
3557 | } | |
cf694132 RD |
3558 | { |
3559 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3560 | _result = (bool )wxListCtrl_SetItemImage(_arg0,_arg1,_arg2,_arg3); |
cf694132 RD |
3561 | |
3562 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3563 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3564 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3565 | return _resultobj; |
3566 | } | |
3567 | ||
cd096152 RD |
3568 | #define wxListCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) |
3569 | static PyObject *_wrap_wxListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3570 | PyObject * _resultobj; |
cd096152 RD |
3571 | wxString * _result; |
3572 | wxPyListCtrl * _arg0; | |
3573 | long _arg1; | |
1d99702e | 3574 | PyObject * _argo0 = 0; |
cd096152 | 3575 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3576 | |
3577 | self = self; | |
cd096152 | 3578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemText",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3579 | return NULL; |
1d99702e RD |
3580 | if (_argo0) { |
3581 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3582 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3583 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemText. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3584 | return NULL; |
3585 | } | |
3586 | } | |
cf694132 RD |
3587 | { |
3588 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3589 | _result = new wxString (wxListCtrl_GetItemText(_arg0,_arg1)); |
cf694132 RD |
3590 | |
3591 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3592 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
3593 | }{ |
3594 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3595 | } | |
3596 | { | |
3597 | delete _result; | |
3598 | } | |
8ab979d7 RD |
3599 | return _resultobj; |
3600 | } | |
3601 | ||
cd096152 RD |
3602 | #define wxListCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) |
3603 | static PyObject *_wrap_wxListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3604 | PyObject * _resultobj; |
cd096152 RD |
3605 | wxPyListCtrl * _arg0; |
3606 | long _arg1; | |
3607 | wxString * _arg2; | |
1d99702e | 3608 | PyObject * _argo0 = 0; |
cd096152 RD |
3609 | PyObject * _obj2 = 0; |
3610 | char *_kwnames[] = { "self","item","str", NULL }; | |
8ab979d7 RD |
3611 | |
3612 | self = self; | |
cd096152 | 3613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemText",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 3614 | return NULL; |
1d99702e RD |
3615 | if (_argo0) { |
3616 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3617 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3618 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemText. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3619 | return NULL; |
3620 | } | |
3621 | } | |
cf694132 | 3622 | { |
cd096152 RD |
3623 | #if PYTHON_API_VERSION >= 1009 |
3624 | char* tmpPtr; int tmpSize; | |
3625 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
3626 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8ab979d7 | 3627 | return NULL; |
cd096152 RD |
3628 | } |
3629 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3630 | return NULL; | |
3631 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3632 | #else | |
3633 | if (!PyString_Check(_obj2)) { | |
3634 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8ab979d7 | 3635 | return NULL; |
8ab979d7 | 3636 | } |
cd096152 RD |
3637 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
3638 | #endif | |
3639 | } | |
cf694132 RD |
3640 | { |
3641 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3642 | wxListCtrl_SetItemText(_arg0,_arg1,*_arg2); |
cf694132 RD |
3643 | |
3644 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3645 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
3646 | } Py_INCREF(Py_None); |
3647 | _resultobj = Py_None; | |
3648 | { | |
3649 | if (_obj2) | |
3650 | delete _arg2; | |
3651 | } | |
8ab979d7 RD |
3652 | return _resultobj; |
3653 | } | |
3654 | ||
3655 | #define wxListCtrl_GetItemData(_swigobj,_swigarg0) (_swigobj->GetItemData(_swigarg0)) | |
efc5f224 | 3656 | static PyObject *_wrap_wxListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3657 | PyObject * _resultobj; |
3658 | long _result; | |
cd096152 | 3659 | wxPyListCtrl * _arg0; |
8ab979d7 | 3660 | long _arg1; |
1d99702e | 3661 | PyObject * _argo0 = 0; |
efc5f224 | 3662 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3663 | |
3664 | self = self; | |
efc5f224 | 3665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemData",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3666 | return NULL; |
1d99702e RD |
3667 | if (_argo0) { |
3668 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3669 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3670 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3671 | return NULL; |
3672 | } | |
3673 | } | |
cf694132 RD |
3674 | { |
3675 | wxPy_BEGIN_ALLOW_THREADS; | |
3676 | _result = (long )wxListCtrl_GetItemData(_arg0,_arg1); | |
3677 | ||
3678 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3679 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3680 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
3681 | return _resultobj; |
3682 | } | |
3683 | ||
cd096152 RD |
3684 | #define wxListCtrl_SetItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemData(_swigarg0,_swigarg1)) |
3685 | static PyObject *_wrap_wxListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3686 | PyObject * _resultobj; |
cd096152 RD |
3687 | bool _result; |
3688 | wxPyListCtrl * _arg0; | |
0699c864 | 3689 | long _arg1; |
cd096152 | 3690 | long _arg2; |
1d99702e | 3691 | PyObject * _argo0 = 0; |
cd096152 | 3692 | char *_kwnames[] = { "self","item","data", NULL }; |
8ab979d7 RD |
3693 | |
3694 | self = self; | |
cd096152 | 3695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_SetItemData",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3696 | return NULL; |
1d99702e RD |
3697 | if (_argo0) { |
3698 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3699 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3700 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3701 | return NULL; |
3702 | } | |
3703 | } | |
cf694132 RD |
3704 | { |
3705 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3706 | _result = (bool )wxListCtrl_SetItemData(_arg0,_arg1,_arg2); |
cf694132 RD |
3707 | |
3708 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3709 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3710 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3711 | return _resultobj; |
3712 | } | |
3713 | ||
cd096152 | 3714 | static wxPoint * wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item) { |
8ab979d7 RD |
3715 | wxPoint* pos = new wxPoint; |
3716 | self->GetItemPosition(item, *pos); | |
3717 | return pos; | |
3718 | } | |
efc5f224 | 3719 | static PyObject *_wrap_wxListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3720 | PyObject * _resultobj; |
3721 | wxPoint * _result; | |
cd096152 | 3722 | wxPyListCtrl * _arg0; |
8ab979d7 | 3723 | long _arg1; |
1d99702e | 3724 | PyObject * _argo0 = 0; |
efc5f224 | 3725 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3726 | char _ptemp[128]; |
3727 | ||
3728 | self = self; | |
efc5f224 | 3729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemPosition",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3730 | return NULL; |
1d99702e RD |
3731 | if (_argo0) { |
3732 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3733 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3734 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemPosition. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3735 | return NULL; |
3736 | } | |
3737 | } | |
cf694132 RD |
3738 | { |
3739 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3740 | _result = (wxPoint *)wxPyListCtrl_GetItemPosition(_arg0,_arg1); |
cf694132 RD |
3741 | |
3742 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3743 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3744 | } if (_result) { |
3745 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
3746 | _resultobj = Py_BuildValue("s",_ptemp); | |
3747 | } else { | |
3748 | Py_INCREF(Py_None); | |
3749 | _resultobj = Py_None; | |
3750 | } | |
8ab979d7 RD |
3751 | return _resultobj; |
3752 | } | |
3753 | ||
cd096152 | 3754 | static wxRect * wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code) { |
8ab979d7 RD |
3755 | wxRect* rect= new wxRect; |
3756 | self->GetItemRect(item, *rect, code); | |
3757 | return rect; | |
3758 | } | |
efc5f224 | 3759 | static PyObject *_wrap_wxListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3760 | PyObject * _resultobj; |
3761 | wxRect * _result; | |
cd096152 | 3762 | wxPyListCtrl * _arg0; |
8ab979d7 | 3763 | long _arg1; |
1d99702e RD |
3764 | int _arg2 = (int ) (wxLIST_RECT_BOUNDS); |
3765 | PyObject * _argo0 = 0; | |
efc5f224 | 3766 | char *_kwnames[] = { "self","item","code", NULL }; |
8ab979d7 RD |
3767 | char _ptemp[128]; |
3768 | ||
3769 | self = self; | |
efc5f224 | 3770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItemRect",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3771 | return NULL; |
1d99702e RD |
3772 | if (_argo0) { |
3773 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3774 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3775 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemRect. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3776 | return NULL; |
3777 | } | |
3778 | } | |
cf694132 RD |
3779 | { |
3780 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3781 | _result = (wxRect *)wxPyListCtrl_GetItemRect(_arg0,_arg1,_arg2); |
cf694132 RD |
3782 | |
3783 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3784 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3785 | } if (_result) { |
3786 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRect_p"); | |
3787 | _resultobj = Py_BuildValue("s",_ptemp); | |
3788 | } else { | |
3789 | Py_INCREF(Py_None); | |
3790 | _resultobj = Py_None; | |
3791 | } | |
8ab979d7 RD |
3792 | return _resultobj; |
3793 | } | |
3794 | ||
cd096152 RD |
3795 | #define wxListCtrl_SetItemPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemPosition(_swigarg0,_swigarg1)) |
3796 | static PyObject *_wrap_wxListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3797 | PyObject * _resultobj; |
cd096152 RD |
3798 | bool _result; |
3799 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3800 | long _arg1; |
cd096152 | 3801 | wxPoint * _arg2; |
1d99702e | 3802 | PyObject * _argo0 = 0; |
cd096152 RD |
3803 | wxPoint temp; |
3804 | PyObject * _obj2 = 0; | |
3805 | char *_kwnames[] = { "self","item","pos", NULL }; | |
8ab979d7 RD |
3806 | |
3807 | self = self; | |
cd096152 | 3808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemPosition",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 3809 | return NULL; |
1d99702e RD |
3810 | if (_argo0) { |
3811 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3812 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3813 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemPosition. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3814 | return NULL; |
3815 | } | |
3816 | } | |
cd096152 RD |
3817 | { |
3818 | _arg2 = &temp; | |
3819 | if (! wxPoint_helper(_obj2, &_arg2)) | |
3820 | return NULL; | |
3821 | } | |
cf694132 RD |
3822 | { |
3823 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3824 | _result = (bool )wxListCtrl_SetItemPosition(_arg0,_arg1,*_arg2); |
cf694132 RD |
3825 | |
3826 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3827 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3828 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3829 | return _resultobj; |
3830 | } | |
3831 | ||
3832 | #define wxListCtrl_GetItemCount(_swigobj) (_swigobj->GetItemCount()) | |
efc5f224 | 3833 | static PyObject *_wrap_wxListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3834 | PyObject * _resultobj; |
3835 | int _result; | |
cd096152 | 3836 | wxPyListCtrl * _arg0; |
1d99702e | 3837 | PyObject * _argo0 = 0; |
efc5f224 | 3838 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3839 | |
3840 | self = self; | |
efc5f224 | 3841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetItemCount",_kwnames,&_argo0)) |
8ab979d7 | 3842 | return NULL; |
1d99702e RD |
3843 | if (_argo0) { |
3844 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3845 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3846 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3847 | return NULL; |
3848 | } | |
3849 | } | |
cf694132 RD |
3850 | { |
3851 | wxPy_BEGIN_ALLOW_THREADS; | |
3852 | _result = (int )wxListCtrl_GetItemCount(_arg0); | |
3853 | ||
3854 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3855 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3856 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3857 | return _resultobj; |
3858 | } | |
3859 | ||
cd096152 RD |
3860 | #define wxListCtrl_GetColumnCount(_swigobj) (_swigobj->GetColumnCount()) |
3861 | static PyObject *_wrap_wxListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3862 | PyObject * _resultobj; | |
3863 | int _result; | |
3864 | wxPyListCtrl * _arg0; | |
3865 | PyObject * _argo0 = 0; | |
3866 | char *_kwnames[] = { "self", NULL }; | |
3867 | ||
3868 | self = self; | |
3869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetColumnCount",_kwnames,&_argo0)) | |
3870 | return NULL; | |
3871 | if (_argo0) { | |
3872 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3873 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3874 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnCount. Expected _wxPyListCtrl_p."); | |
3875 | return NULL; | |
3876 | } | |
3877 | } | |
3878 | { | |
3879 | wxPy_BEGIN_ALLOW_THREADS; | |
3880 | _result = (int )wxListCtrl_GetColumnCount(_arg0); | |
3881 | ||
3882 | wxPy_END_ALLOW_THREADS; | |
3883 | if (PyErr_Occurred()) return NULL; | |
3884 | } _resultobj = Py_BuildValue("i",_result); | |
3885 | return _resultobj; | |
3886 | } | |
3887 | ||
8ab979d7 | 3888 | #define wxListCtrl_GetItemSpacing(_swigobj,_swigarg0) (_swigobj->GetItemSpacing(_swigarg0)) |
efc5f224 | 3889 | static PyObject *_wrap_wxListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3890 | PyObject * _resultobj; |
3891 | int _result; | |
cd096152 | 3892 | wxPyListCtrl * _arg0; |
8ab979d7 | 3893 | bool _arg1; |
1d99702e | 3894 | PyObject * _argo0 = 0; |
8ab979d7 | 3895 | int tempbool1; |
efc5f224 | 3896 | char *_kwnames[] = { "self","isSmall", NULL }; |
8ab979d7 RD |
3897 | |
3898 | self = self; | |
efc5f224 | 3899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetItemSpacing",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3900 | return NULL; |
1d99702e RD |
3901 | if (_argo0) { |
3902 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3903 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3904 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemSpacing. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3905 | return NULL; |
3906 | } | |
3907 | } | |
3908 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
3909 | { |
3910 | wxPy_BEGIN_ALLOW_THREADS; | |
3911 | _result = (int )wxListCtrl_GetItemSpacing(_arg0,_arg1); | |
3912 | ||
3913 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3914 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3915 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3916 | return _resultobj; |
3917 | } | |
3918 | ||
cd096152 RD |
3919 | #define wxListCtrl_GetSelectedItemCount(_swigobj) (_swigobj->GetSelectedItemCount()) |
3920 | static PyObject *_wrap_wxListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3921 | PyObject * _resultobj; |
cd096152 RD |
3922 | int _result; |
3923 | wxPyListCtrl * _arg0; | |
1d99702e | 3924 | PyObject * _argo0 = 0; |
cd096152 | 3925 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3926 | |
3927 | self = self; | |
cd096152 | 3928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetSelectedItemCount",_kwnames,&_argo0)) |
8ab979d7 | 3929 | return NULL; |
1d99702e RD |
3930 | if (_argo0) { |
3931 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3932 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3933 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetSelectedItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3934 | return NULL; |
3935 | } | |
3936 | } | |
8ab979d7 | 3937 | { |
cf694132 | 3938 | wxPy_BEGIN_ALLOW_THREADS; |
cd096152 | 3939 | _result = (int )wxListCtrl_GetSelectedItemCount(_arg0); |
cf694132 RD |
3940 | |
3941 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3942 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3943 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3944 | return _resultobj; |
3945 | } | |
3946 | ||
cd096152 RD |
3947 | #define wxListCtrl_GetTextColour(_swigobj) (_swigobj->GetTextColour()) |
3948 | static PyObject *_wrap_wxListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3949 | PyObject * _resultobj; |
cd096152 RD |
3950 | wxColour * _result; |
3951 | wxPyListCtrl * _arg0; | |
1d99702e | 3952 | PyObject * _argo0 = 0; |
cd096152 RD |
3953 | char *_kwnames[] = { "self", NULL }; |
3954 | char _ptemp[128]; | |
8ab979d7 RD |
3955 | |
3956 | self = self; | |
cd096152 | 3957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTextColour",_kwnames,&_argo0)) |
8ab979d7 | 3958 | return NULL; |
1d99702e RD |
3959 | if (_argo0) { |
3960 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3961 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3962 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTextColour. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3963 | return NULL; |
3964 | } | |
3965 | } | |
cf694132 RD |
3966 | { |
3967 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3968 | _result = new wxColour (wxListCtrl_GetTextColour(_arg0)); |
cf694132 RD |
3969 | |
3970 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3971 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
3972 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
3973 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
3974 | return _resultobj; |
3975 | } | |
3976 | ||
cd096152 RD |
3977 | #define wxListCtrl_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) |
3978 | static PyObject *_wrap_wxListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3979 | PyObject * _resultobj; |
cd096152 RD |
3980 | wxPyListCtrl * _arg0; |
3981 | wxColour * _arg1; | |
1d99702e | 3982 | PyObject * _argo0 = 0; |
cd096152 RD |
3983 | wxColour temp; |
3984 | PyObject * _obj1 = 0; | |
3985 | char *_kwnames[] = { "self","col", NULL }; | |
8ab979d7 RD |
3986 | |
3987 | self = self; | |
cd096152 | 3988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetTextColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3989 | return NULL; |
1d99702e RD |
3990 | if (_argo0) { |
3991 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3992 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3993 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetTextColour. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3994 | return NULL; |
3995 | } | |
3996 | } | |
cd096152 RD |
3997 | { |
3998 | _arg1 = &temp; | |
3999 | if (! wxColour_helper(_obj1, &_arg1)) | |
4000 | return NULL; | |
4001 | } | |
cf694132 RD |
4002 | { |
4003 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4004 | wxListCtrl_SetTextColour(_arg0,*_arg1); |
cf694132 RD |
4005 | |
4006 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4007 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4008 | } Py_INCREF(Py_None); |
4009 | _resultobj = Py_None; | |
8ab979d7 RD |
4010 | return _resultobj; |
4011 | } | |
4012 | ||
8ab979d7 | 4013 | #define wxListCtrl_GetTopItem(_swigobj) (_swigobj->GetTopItem()) |
efc5f224 | 4014 | static PyObject *_wrap_wxListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4015 | PyObject * _resultobj; |
4016 | long _result; | |
cd096152 | 4017 | wxPyListCtrl * _arg0; |
1d99702e | 4018 | PyObject * _argo0 = 0; |
efc5f224 | 4019 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4020 | |
4021 | self = self; | |
efc5f224 | 4022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTopItem",_kwnames,&_argo0)) |
8ab979d7 | 4023 | return NULL; |
1d99702e RD |
4024 | if (_argo0) { |
4025 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4026 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4027 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTopItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4028 | return NULL; |
4029 | } | |
4030 | } | |
cf694132 RD |
4031 | { |
4032 | wxPy_BEGIN_ALLOW_THREADS; | |
4033 | _result = (long )wxListCtrl_GetTopItem(_arg0); | |
4034 | ||
4035 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4036 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4037 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4038 | return _resultobj; |
4039 | } | |
4040 | ||
cd096152 RD |
4041 | #define wxListCtrl_SetSingleStyle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSingleStyle(_swigarg0,_swigarg1)) |
4042 | static PyObject *_wrap_wxListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4043 | PyObject * _resultobj; | |
4044 | wxPyListCtrl * _arg0; | |
4045 | long _arg1; | |
4046 | bool _arg2 = (bool ) TRUE; | |
1d99702e | 4047 | PyObject * _argo0 = 0; |
cd096152 RD |
4048 | int tempbool2 = (int) TRUE; |
4049 | char *_kwnames[] = { "self","style","add", NULL }; | |
8ab979d7 RD |
4050 | |
4051 | self = self; | |
cd096152 RD |
4052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_SetSingleStyle",_kwnames,&_argo0,&_arg1,&tempbool2)) |
4053 | return NULL; | |
4054 | if (_argo0) { | |
4055 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4056 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4057 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetSingleStyle. Expected _wxPyListCtrl_p."); | |
4058 | return NULL; | |
4059 | } | |
4060 | } | |
4061 | _arg2 = (bool ) tempbool2; | |
8ab979d7 | 4062 | { |
cd096152 RD |
4063 | wxPy_BEGIN_ALLOW_THREADS; |
4064 | wxListCtrl_SetSingleStyle(_arg0,_arg1,_arg2); | |
4065 | ||
4066 | wxPy_END_ALLOW_THREADS; | |
4067 | if (PyErr_Occurred()) return NULL; | |
4068 | } Py_INCREF(Py_None); | |
4069 | _resultobj = Py_None; | |
4070 | return _resultobj; | |
8ab979d7 | 4071 | } |
cd096152 RD |
4072 | |
4073 | #define wxListCtrl_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) | |
4074 | static PyObject *_wrap_wxListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4075 | PyObject * _resultobj; | |
4076 | wxPyListCtrl * _arg0; | |
4077 | long _arg1; | |
4078 | PyObject * _argo0 = 0; | |
4079 | char *_kwnames[] = { "self","style", NULL }; | |
4080 | ||
4081 | self = self; | |
4082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) | |
8ab979d7 | 4083 | return NULL; |
1d99702e RD |
4084 | if (_argo0) { |
4085 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4086 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4087 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetWindowStyleFlag. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4088 | return NULL; |
4089 | } | |
4090 | } | |
2f90df85 | 4091 | { |
cd096152 RD |
4092 | wxPy_BEGIN_ALLOW_THREADS; |
4093 | wxListCtrl_SetWindowStyleFlag(_arg0,_arg1); | |
4094 | ||
4095 | wxPy_END_ALLOW_THREADS; | |
4096 | if (PyErr_Occurred()) return NULL; | |
4097 | } Py_INCREF(Py_None); | |
4098 | _resultobj = Py_None; | |
4099 | return _resultobj; | |
2f90df85 | 4100 | } |
cd096152 RD |
4101 | |
4102 | #define wxListCtrl_GetNextItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetNextItem(_swigarg0,_swigarg1,_swigarg2)) | |
4103 | static PyObject *_wrap_wxListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4104 | PyObject * _resultobj; | |
4105 | long _result; | |
4106 | wxPyListCtrl * _arg0; | |
4107 | long _arg1; | |
4108 | int _arg2 = (int ) (wxLIST_NEXT_ALL); | |
4109 | int _arg3 = (int ) (wxLIST_STATE_DONTCARE); | |
4110 | PyObject * _argo0 = 0; | |
4111 | char *_kwnames[] = { "self","item","geometry","state", NULL }; | |
4112 | ||
4113 | self = self; | |
4114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:wxListCtrl_GetNextItem",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
4115 | return NULL; | |
4116 | if (_argo0) { | |
4117 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4118 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4119 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetNextItem. Expected _wxPyListCtrl_p."); | |
4120 | return NULL; | |
4121 | } | |
4122 | } | |
cf694132 RD |
4123 | { |
4124 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4125 | _result = (long )wxListCtrl_GetNextItem(_arg0,_arg1,_arg2,_arg3); |
cf694132 RD |
4126 | |
4127 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4128 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4129 | } _resultobj = Py_BuildValue("l",_result); |
cd096152 | 4130 | return _resultobj; |
8ab979d7 | 4131 | } |
cd096152 RD |
4132 | |
4133 | #define wxListCtrl_GetImageList(_swigobj,_swigarg0) (_swigobj->GetImageList(_swigarg0)) | |
4134 | static PyObject *_wrap_wxListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4135 | PyObject * _resultobj; | |
4136 | wxImageList * _result; | |
4137 | wxPyListCtrl * _arg0; | |
4138 | int _arg1; | |
4139 | PyObject * _argo0 = 0; | |
4140 | char *_kwnames[] = { "self","which", NULL }; | |
4141 | ||
4142 | self = self; | |
4143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetImageList",_kwnames,&_argo0,&_arg1)) | |
4144 | return NULL; | |
4145 | if (_argo0) { | |
4146 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4147 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4148 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetImageList. Expected _wxPyListCtrl_p."); | |
4149 | return NULL; | |
4150 | } | |
4151 | } | |
4152 | { | |
4153 | wxPy_BEGIN_ALLOW_THREADS; | |
4154 | _result = (wxImageList *)wxListCtrl_GetImageList(_arg0,_arg1); | |
4155 | ||
4156 | wxPy_END_ALLOW_THREADS; | |
4157 | if (PyErr_Occurred()) return NULL; | |
4158 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
8ab979d7 RD |
4159 | return _resultobj; |
4160 | } | |
4161 | ||
cd096152 RD |
4162 | #define wxListCtrl_SetImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetImageList(_swigarg0,_swigarg1)) |
4163 | static PyObject *_wrap_wxListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4164 | PyObject * _resultobj; |
cd096152 RD |
4165 | wxPyListCtrl * _arg0; |
4166 | wxImageList * _arg1; | |
4167 | int _arg2; | |
1d99702e | 4168 | PyObject * _argo0 = 0; |
cd096152 RD |
4169 | PyObject * _argo1 = 0; |
4170 | char *_kwnames[] = { "self","imageList","which", NULL }; | |
8ab979d7 RD |
4171 | |
4172 | self = self; | |
cd096152 | 4173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_SetImageList",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 4174 | return NULL; |
1d99702e RD |
4175 | if (_argo0) { |
4176 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4177 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4178 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetImageList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4179 | return NULL; |
4180 | } | |
4181 | } | |
cd096152 RD |
4182 | if (_argo1) { |
4183 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4184 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
4185 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetImageList. Expected _wxImageList_p."); | |
8ab979d7 RD |
4186 | return NULL; |
4187 | } | |
4188 | } | |
cf694132 RD |
4189 | { |
4190 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4191 | wxListCtrl_SetImageList(_arg0,_arg1,_arg2); |
cf694132 RD |
4192 | |
4193 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4194 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4195 | } Py_INCREF(Py_None); |
4196 | _resultobj = Py_None; | |
8ab979d7 RD |
4197 | return _resultobj; |
4198 | } | |
4199 | ||
cd096152 RD |
4200 | #define wxListCtrl_AssignImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->AssignImageList(_swigarg0,_swigarg1)) |
4201 | static PyObject *_wrap_wxListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4202 | PyObject * _resultobj; |
cd096152 RD |
4203 | wxPyListCtrl * _arg0; |
4204 | wxImageList * _arg1; | |
4205 | int _arg2; | |
1d99702e | 4206 | PyObject * _argo0 = 0; |
cd096152 RD |
4207 | PyObject * _argo1 = 0; |
4208 | char *_kwnames[] = { "self","imageList","which", NULL }; | |
8ab979d7 RD |
4209 | |
4210 | self = self; | |
cd096152 | 4211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_AssignImageList",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 4212 | return NULL; |
1d99702e RD |
4213 | if (_argo0) { |
4214 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4215 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4216 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_AssignImageList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4217 | return NULL; |
4218 | } | |
4219 | } | |
cd096152 RD |
4220 | if (_argo1) { |
4221 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4222 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
4223 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_AssignImageList. Expected _wxImageList_p."); | |
2cd2fac8 | 4224 | return NULL; |
cd096152 | 4225 | } |
2cd2fac8 | 4226 | } |
cd096152 RD |
4227 | { |
4228 | wxPy_BEGIN_ALLOW_THREADS; | |
4229 | wxListCtrl_AssignImageList(_arg0,_arg1,_arg2); | |
4230 | ||
4231 | wxPy_END_ALLOW_THREADS; | |
4232 | if (PyErr_Occurred()) return NULL; | |
4233 | } Py_INCREF(Py_None); | |
4234 | _resultobj = Py_None; | |
4235 | return _resultobj; | |
4236 | } | |
4237 | ||
4238 | #define wxListCtrl_IsVirtual(_swigobj) (_swigobj->IsVirtual()) | |
4239 | static PyObject *_wrap_wxListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4240 | PyObject * _resultobj; | |
4241 | bool _result; | |
4242 | wxPyListCtrl * _arg0; | |
4243 | PyObject * _argo0 = 0; | |
4244 | char *_kwnames[] = { "self", NULL }; | |
4245 | ||
4246 | self = self; | |
4247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_IsVirtual",_kwnames,&_argo0)) | |
2cd2fac8 | 4248 | return NULL; |
cd096152 RD |
4249 | if (_argo0) { |
4250 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4251 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4252 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_IsVirtual. Expected _wxPyListCtrl_p."); | |
8ab979d7 | 4253 | return NULL; |
cd096152 | 4254 | } |
8ab979d7 | 4255 | } |
cf694132 RD |
4256 | { |
4257 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4258 | _result = (bool )wxListCtrl_IsVirtual(_arg0); |
cf694132 RD |
4259 | |
4260 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4261 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4262 | } _resultobj = Py_BuildValue("i",_result); |
4263 | return _resultobj; | |
8ab979d7 | 4264 | } |
cd096152 RD |
4265 | |
4266 | #define wxListCtrl_RefreshItem(_swigobj,_swigarg0) (_swigobj->RefreshItem(_swigarg0)) | |
4267 | static PyObject *_wrap_wxListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4268 | PyObject * _resultobj; | |
4269 | wxPyListCtrl * _arg0; | |
4270 | long _arg1; | |
4271 | PyObject * _argo0 = 0; | |
4272 | char *_kwnames[] = { "self","item", NULL }; | |
4273 | ||
4274 | self = self; | |
4275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_RefreshItem",_kwnames,&_argo0,&_arg1)) | |
4276 | return NULL; | |
4277 | if (_argo0) { | |
4278 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4279 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4280 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItem. Expected _wxPyListCtrl_p."); | |
4281 | return NULL; | |
4282 | } | |
4283 | } | |
4284 | { | |
4285 | wxPy_BEGIN_ALLOW_THREADS; | |
4286 | wxListCtrl_RefreshItem(_arg0,_arg1); | |
4287 | ||
4288 | wxPy_END_ALLOW_THREADS; | |
4289 | if (PyErr_Occurred()) return NULL; | |
4290 | } Py_INCREF(Py_None); | |
4291 | _resultobj = Py_None; | |
8ab979d7 RD |
4292 | return _resultobj; |
4293 | } | |
4294 | ||
cd096152 RD |
4295 | #define wxListCtrl_RefreshItems(_swigobj,_swigarg0,_swigarg1) (_swigobj->RefreshItems(_swigarg0,_swigarg1)) |
4296 | static PyObject *_wrap_wxListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4297 | PyObject * _resultobj; |
cd096152 RD |
4298 | wxPyListCtrl * _arg0; |
4299 | long _arg1; | |
4300 | long _arg2; | |
1d99702e | 4301 | PyObject * _argo0 = 0; |
cd096152 | 4302 | char *_kwnames[] = { "self","itemFrom","itemTo", NULL }; |
8ab979d7 RD |
4303 | |
4304 | self = self; | |
cd096152 | 4305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_RefreshItems",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4306 | return NULL; |
1d99702e RD |
4307 | if (_argo0) { |
4308 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4309 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItems. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4311 | return NULL; |
4312 | } | |
4313 | } | |
cd096152 RD |
4314 | { |
4315 | wxPy_BEGIN_ALLOW_THREADS; | |
4316 | wxListCtrl_RefreshItems(_arg0,_arg1,_arg2); | |
4317 | ||
4318 | wxPy_END_ALLOW_THREADS; | |
4319 | if (PyErr_Occurred()) return NULL; | |
4320 | } Py_INCREF(Py_None); | |
4321 | _resultobj = Py_None; | |
4322 | return _resultobj; | |
4323 | } | |
4324 | ||
4325 | #define wxListCtrl_Arrange(_swigobj,_swigarg0) (_swigobj->Arrange(_swigarg0)) | |
4326 | static PyObject *_wrap_wxListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4327 | PyObject * _resultobj; | |
4328 | bool _result; | |
4329 | wxPyListCtrl * _arg0; | |
4330 | int _arg1 = (int ) (wxLIST_ALIGN_DEFAULT); | |
4331 | PyObject * _argo0 = 0; | |
4332 | char *_kwnames[] = { "self","flag", NULL }; | |
4333 | ||
4334 | self = self; | |
4335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxListCtrl_Arrange",_kwnames,&_argo0,&_arg1)) | |
4336 | return NULL; | |
4337 | if (_argo0) { | |
4338 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4339 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4340 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Arrange. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4341 | return NULL; |
4342 | } | |
4343 | } | |
cf694132 RD |
4344 | { |
4345 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4346 | _result = (bool )wxListCtrl_Arrange(_arg0,_arg1); |
cf694132 RD |
4347 | |
4348 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4349 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4350 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4351 | return _resultobj; |
4352 | } | |
4353 | ||
cd096152 RD |
4354 | #define wxListCtrl_DeleteItem(_swigobj,_swigarg0) (_swigobj->DeleteItem(_swigarg0)) |
4355 | static PyObject *_wrap_wxListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4356 | PyObject * _resultobj; |
cd096152 RD |
4357 | bool _result; |
4358 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4359 | long _arg1; |
1d99702e | 4360 | PyObject * _argo0 = 0; |
cd096152 | 4361 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
4362 | |
4363 | self = self; | |
cd096152 | 4364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_DeleteItem",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4365 | return NULL; |
1d99702e RD |
4366 | if (_argo0) { |
4367 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4368 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4369 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4370 | return NULL; |
4371 | } | |
4372 | } | |
4373 | { | |
cd096152 RD |
4374 | wxPy_BEGIN_ALLOW_THREADS; |
4375 | _result = (bool )wxListCtrl_DeleteItem(_arg0,_arg1); | |
4376 | ||
4377 | wxPy_END_ALLOW_THREADS; | |
4378 | if (PyErr_Occurred()) return NULL; | |
4379 | } _resultobj = Py_BuildValue("i",_result); | |
4380 | return _resultobj; | |
4381 | } | |
4382 | ||
4383 | #define wxListCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) | |
4384 | static PyObject *_wrap_wxListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4385 | PyObject * _resultobj; | |
4386 | bool _result; | |
4387 | wxPyListCtrl * _arg0; | |
4388 | PyObject * _argo0 = 0; | |
4389 | char *_kwnames[] = { "self", NULL }; | |
4390 | ||
4391 | self = self; | |
4392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllItems",_kwnames,&_argo0)) | |
4393 | return NULL; | |
4394 | if (_argo0) { | |
4395 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4396 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4397 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllItems. Expected _wxPyListCtrl_p."); | |
2cd2fac8 | 4398 | return NULL; |
cd096152 | 4399 | } |
2cd2fac8 | 4400 | } |
cd096152 RD |
4401 | { |
4402 | wxPy_BEGIN_ALLOW_THREADS; | |
4403 | _result = (bool )wxListCtrl_DeleteAllItems(_arg0); | |
4404 | ||
4405 | wxPy_END_ALLOW_THREADS; | |
4406 | if (PyErr_Occurred()) return NULL; | |
4407 | } _resultobj = Py_BuildValue("i",_result); | |
4408 | return _resultobj; | |
4409 | } | |
4410 | ||
4411 | #define wxListCtrl_DeleteColumn(_swigobj,_swigarg0) (_swigobj->DeleteColumn(_swigarg0)) | |
4412 | static PyObject *_wrap_wxListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4413 | PyObject * _resultobj; | |
4414 | bool _result; | |
4415 | wxPyListCtrl * _arg0; | |
4416 | int _arg1; | |
4417 | PyObject * _argo0 = 0; | |
4418 | char *_kwnames[] = { "self","col", NULL }; | |
4419 | ||
4420 | self = self; | |
4421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_DeleteColumn",_kwnames,&_argo0,&_arg1)) | |
2cd2fac8 | 4422 | return NULL; |
cd096152 RD |
4423 | if (_argo0) { |
4424 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4425 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4426 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteColumn. Expected _wxPyListCtrl_p."); | |
4427 | return NULL; | |
4428 | } | |
4429 | } | |
4430 | { | |
4431 | wxPy_BEGIN_ALLOW_THREADS; | |
4432 | _result = (bool )wxListCtrl_DeleteColumn(_arg0,_arg1); | |
4433 | ||
4434 | wxPy_END_ALLOW_THREADS; | |
4435 | if (PyErr_Occurred()) return NULL; | |
4436 | } _resultobj = Py_BuildValue("i",_result); | |
4437 | return _resultobj; | |
4438 | } | |
4439 | ||
4440 | #define wxListCtrl_DeleteAllColumns(_swigobj) (_swigobj->DeleteAllColumns()) | |
4441 | static PyObject *_wrap_wxListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4442 | PyObject * _resultobj; | |
4443 | bool _result; | |
4444 | wxPyListCtrl * _arg0; | |
4445 | PyObject * _argo0 = 0; | |
4446 | char *_kwnames[] = { "self", NULL }; | |
4447 | ||
4448 | self = self; | |
4449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllColumns",_kwnames,&_argo0)) | |
4450 | return NULL; | |
4451 | if (_argo0) { | |
4452 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4453 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4454 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllColumns. Expected _wxPyListCtrl_p."); | |
4455 | return NULL; | |
4456 | } | |
4457 | } | |
4458 | { | |
4459 | wxPy_BEGIN_ALLOW_THREADS; | |
4460 | _result = (bool )wxListCtrl_DeleteAllColumns(_arg0); | |
4461 | ||
4462 | wxPy_END_ALLOW_THREADS; | |
4463 | if (PyErr_Occurred()) return NULL; | |
4464 | } _resultobj = Py_BuildValue("i",_result); | |
4465 | return _resultobj; | |
4466 | } | |
4467 | ||
4468 | #define wxListCtrl_ClearAll(_swigobj) (_swigobj->ClearAll()) | |
4469 | static PyObject *_wrap_wxListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4470 | PyObject * _resultobj; | |
4471 | wxPyListCtrl * _arg0; | |
4472 | PyObject * _argo0 = 0; | |
4473 | char *_kwnames[] = { "self", NULL }; | |
4474 | ||
4475 | self = self; | |
4476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_ClearAll",_kwnames,&_argo0)) | |
8ab979d7 | 4477 | return NULL; |
cd096152 RD |
4478 | if (_argo0) { |
4479 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4480 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4481 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ClearAll. Expected _wxPyListCtrl_p."); | |
4482 | return NULL; | |
4483 | } | |
8ab979d7 | 4484 | } |
cf694132 RD |
4485 | { |
4486 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4487 | wxListCtrl_ClearAll(_arg0); |
cf694132 RD |
4488 | |
4489 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4490 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4491 | } Py_INCREF(Py_None); |
4492 | _resultobj = Py_None; | |
8ab979d7 RD |
4493 | return _resultobj; |
4494 | } | |
4495 | ||
cd096152 RD |
4496 | #define wxListCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) |
4497 | static PyObject *_wrap_wxListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4498 | PyObject * _resultobj; |
cd096152 RD |
4499 | bool _result; |
4500 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4501 | long _arg1; |
1d99702e | 4502 | PyObject * _argo0 = 0; |
cd096152 | 4503 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
4504 | |
4505 | self = self; | |
cd096152 | 4506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EnsureVisible",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4507 | return NULL; |
1d99702e RD |
4508 | if (_argo0) { |
4509 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4510 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4511 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EnsureVisible. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4512 | return NULL; |
4513 | } | |
4514 | } | |
cf694132 RD |
4515 | { |
4516 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4517 | _result = (bool )wxListCtrl_EnsureVisible(_arg0,_arg1); |
cf694132 RD |
4518 | |
4519 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4520 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4521 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4522 | return _resultobj; |
4523 | } | |
4524 | ||
cd096152 RD |
4525 | #define wxListCtrl_FindItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) |
4526 | static PyObject *_wrap_wxListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4527 | PyObject * _resultobj; |
4528 | long _result; | |
cd096152 | 4529 | wxPyListCtrl * _arg0; |
8ab979d7 RD |
4530 | long _arg1; |
4531 | wxString * _arg2; | |
cd096152 | 4532 | bool _arg3 = (bool ) FALSE; |
1d99702e | 4533 | PyObject * _argo0 = 0; |
8ab979d7 | 4534 | PyObject * _obj2 = 0; |
cd096152 RD |
4535 | int tempbool3 = (int) FALSE; |
4536 | char *_kwnames[] = { "self","start","str","partial", NULL }; | |
8ab979d7 RD |
4537 | |
4538 | self = self; | |
cd096152 | 4539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|i:wxListCtrl_FindItem",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3)) |
8ab979d7 | 4540 | return NULL; |
1d99702e RD |
4541 | if (_argo0) { |
4542 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4543 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4545 | return NULL; |
4546 | } | |
4547 | } | |
4548 | { | |
2cd2fac8 RD |
4549 | #if PYTHON_API_VERSION >= 1009 |
4550 | char* tmpPtr; int tmpSize; | |
4551 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 4552 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
4553 | return NULL; |
4554 | } | |
4555 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4556 | return NULL; | |
4557 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4558 | #else | |
8ab979d7 RD |
4559 | if (!PyString_Check(_obj2)) { |
4560 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4561 | return NULL; | |
4562 | } | |
2cd2fac8 RD |
4563 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
4564 | #endif | |
8ab979d7 | 4565 | } |
cd096152 | 4566 | _arg3 = (bool ) tempbool3; |
cf694132 RD |
4567 | { |
4568 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4569 | _result = (long )wxListCtrl_FindItem(_arg0,_arg1,*_arg2,_arg3); |
cf694132 RD |
4570 | |
4571 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4572 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4573 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4574 | { |
4575 | if (_obj2) | |
4576 | delete _arg2; | |
4577 | } | |
4578 | return _resultobj; | |
4579 | } | |
4580 | ||
cd096152 RD |
4581 | #define wxListCtrl_FindItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindItem(_swigarg0,_swigarg1)) |
4582 | static PyObject *_wrap_wxListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4583 | PyObject * _resultobj; |
cd096152 RD |
4584 | long _result; |
4585 | wxPyListCtrl * _arg0; | |
4586 | long _arg1; | |
4587 | long _arg2; | |
1d99702e | 4588 | PyObject * _argo0 = 0; |
cd096152 | 4589 | char *_kwnames[] = { "self","start","data", NULL }; |
8ab979d7 RD |
4590 | |
4591 | self = self; | |
cd096152 | 4592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_FindItemData",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4593 | return NULL; |
1d99702e RD |
4594 | if (_argo0) { |
4595 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4596 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4597 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4598 | return NULL; |
4599 | } | |
4600 | } | |
cf694132 RD |
4601 | { |
4602 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4603 | _result = (long )wxListCtrl_FindItemData(_arg0,_arg1,_arg2); |
cf694132 RD |
4604 | |
4605 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4606 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4607 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4608 | return _resultobj; |
4609 | } | |
4610 | ||
cd096152 RD |
4611 | #define wxListCtrl_FindItemAtPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) |
4612 | static PyObject *_wrap_wxListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4613 | PyObject * _resultobj; |
cd096152 RD |
4614 | long _result; |
4615 | wxPyListCtrl * _arg0; | |
4616 | long _arg1; | |
4617 | wxPoint * _arg2; | |
4618 | int _arg3; | |
1d99702e | 4619 | PyObject * _argo0 = 0; |
cd096152 RD |
4620 | wxPoint temp; |
4621 | PyObject * _obj2 = 0; | |
4622 | char *_kwnames[] = { "self","start","pt","direction", NULL }; | |
8ab979d7 RD |
4623 | |
4624 | self = self; | |
cd096152 | 4625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_FindItemAtPos",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) |
8ab979d7 | 4626 | return NULL; |
1d99702e RD |
4627 | if (_argo0) { |
4628 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4629 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4630 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemAtPos. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4631 | return NULL; |
4632 | } | |
4633 | } | |
f6bcfd97 | 4634 | { |
cd096152 RD |
4635 | _arg2 = &temp; |
4636 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 4637 | return NULL; |
f6bcfd97 | 4638 | } |
cf694132 RD |
4639 | { |
4640 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4641 | _result = (long )wxListCtrl_FindItemAtPos(_arg0,_arg1,*_arg2,_arg3); |
cf694132 RD |
4642 | |
4643 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4644 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4645 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4646 | return _resultobj; |
4647 | } | |
4648 | ||
cd096152 RD |
4649 | #define wxListCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) |
4650 | static PyObject *_wrap_wxListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4651 | PyObject * _resultobj; |
cd096152 RD |
4652 | long _result; |
4653 | wxPyListCtrl * _arg0; | |
4654 | wxPoint * _arg1; | |
4655 | int * _arg2; | |
4656 | int temp; | |
1d99702e | 4657 | PyObject * _argo0 = 0; |
cd096152 RD |
4658 | wxPoint temp0; |
4659 | PyObject * _obj1 = 0; | |
4660 | char *_kwnames[] = { "self","point", NULL }; | |
8ab979d7 RD |
4661 | |
4662 | self = self; | |
cf694132 | 4663 | { |
cd096152 | 4664 | _arg2 = &temp; |
8ab979d7 | 4665 | } |
cd096152 | 4666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_HitTest",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4667 | return NULL; |
1d99702e RD |
4668 | if (_argo0) { |
4669 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4670 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4671 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_HitTest. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4672 | return NULL; |
4673 | } | |
4674 | } | |
cf694132 | 4675 | { |
cd096152 RD |
4676 | _arg1 = &temp0; |
4677 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 4678 | return NULL; |
cd096152 | 4679 | } |
cf694132 RD |
4680 | { |
4681 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4682 | _result = (long )wxListCtrl_HitTest(_arg0,*_arg1,*_arg2); |
cf694132 RD |
4683 | |
4684 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4685 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4686 | } _resultobj = Py_BuildValue("l",_result); |
4687 | { | |
4688 | PyObject *o; | |
4689 | o = PyInt_FromLong((long) (*_arg2)); | |
4690 | _resultobj = t_output_helper(_resultobj, o); | |
4691 | } | |
8ab979d7 RD |
4692 | return _resultobj; |
4693 | } | |
4694 | ||
cd096152 RD |
4695 | #define wxListCtrl_InsertItem(_swigobj,_swigarg0) (_swigobj->InsertItem(_swigarg0)) |
4696 | static PyObject *_wrap_wxListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4697 | PyObject * _resultobj; |
cd096152 RD |
4698 | long _result; |
4699 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4700 | wxListItem * _arg1; |
1d99702e RD |
4701 | PyObject * _argo0 = 0; |
4702 | PyObject * _argo1 = 0; | |
efc5f224 | 4703 | char *_kwnames[] = { "self","info", NULL }; |
8ab979d7 RD |
4704 | |
4705 | self = self; | |
cd096152 | 4706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_InsertItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4707 | return NULL; |
1d99702e RD |
4708 | if (_argo0) { |
4709 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4710 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4711 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4712 | return NULL; |
4713 | } | |
4714 | } | |
1d99702e RD |
4715 | if (_argo1) { |
4716 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4717 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
cd096152 | 4718 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_InsertItem. Expected _wxListItem_p."); |
8ab979d7 RD |
4719 | return NULL; |
4720 | } | |
4721 | } | |
cf694132 RD |
4722 | { |
4723 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4724 | _result = (long )wxListCtrl_InsertItem(_arg0,*_arg1); |
cf694132 RD |
4725 | |
4726 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4727 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4728 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4729 | return _resultobj; |
4730 | } | |
4731 | ||
cd096152 RD |
4732 | #define wxListCtrl_InsertStringItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) |
4733 | static PyObject *_wrap_wxListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4734 | PyObject * _resultobj; |
4735 | long _result; | |
cd096152 | 4736 | wxPyListCtrl * _arg0; |
8ab979d7 | 4737 | long _arg1; |
cd096152 | 4738 | wxString * _arg2; |
1d99702e | 4739 | PyObject * _argo0 = 0; |
cd096152 RD |
4740 | PyObject * _obj2 = 0; |
4741 | char *_kwnames[] = { "self","index","label", NULL }; | |
8ab979d7 RD |
4742 | |
4743 | self = self; | |
cd096152 | 4744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertStringItem",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 4745 | return NULL; |
1d99702e RD |
4746 | if (_argo0) { |
4747 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4748 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4749 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertStringItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4750 | return NULL; |
4751 | } | |
4752 | } | |
4753 | { | |
2cd2fac8 RD |
4754 | #if PYTHON_API_VERSION >= 1009 |
4755 | char* tmpPtr; int tmpSize; | |
cd096152 | 4756 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { |
7a446686 | 4757 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
4758 | return NULL; |
4759 | } | |
cd096152 | 4760 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) |
2cd2fac8 | 4761 | return NULL; |
cd096152 | 4762 | _arg2 = new wxString(tmpPtr, tmpSize); |
2cd2fac8 | 4763 | #else |
cd096152 | 4764 | if (!PyString_Check(_obj2)) { |
8ab979d7 RD |
4765 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
4766 | return NULL; | |
4767 | } | |
cd096152 | 4768 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
2cd2fac8 | 4769 | #endif |
8ab979d7 | 4770 | } |
cf694132 RD |
4771 | { |
4772 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4773 | _result = (long )wxListCtrl_InsertStringItem(_arg0,_arg1,*_arg2); |
cf694132 RD |
4774 | |
4775 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4776 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4777 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 | 4778 | { |
cd096152 RD |
4779 | if (_obj2) |
4780 | delete _arg2; | |
4781 | } | |
8ab979d7 RD |
4782 | return _resultobj; |
4783 | } | |
4784 | ||
cd096152 RD |
4785 | #define wxListCtrl_InsertImageItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) |
4786 | static PyObject *_wrap_wxListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4787 | PyObject * _resultobj; |
cd096152 RD |
4788 | long _result; |
4789 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
4790 | long _arg1; |
4791 | int _arg2; | |
1d99702e | 4792 | PyObject * _argo0 = 0; |
cd096152 | 4793 | char *_kwnames[] = { "self","index","imageIndex", NULL }; |
8ab979d7 RD |
4794 | |
4795 | self = self; | |
cd096152 | 4796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oli:wxListCtrl_InsertImageItem",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4797 | return NULL; |
1d99702e RD |
4798 | if (_argo0) { |
4799 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4800 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4801 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4802 | return NULL; |
4803 | } | |
4804 | } | |
cf694132 RD |
4805 | { |
4806 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4807 | _result = (long )wxListCtrl_InsertImageItem(_arg0,_arg1,_arg2); |
cf694132 RD |
4808 | |
4809 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4810 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4811 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4812 | return _resultobj; |
4813 | } | |
4814 | ||
cd096152 RD |
4815 | #define wxListCtrl_InsertImageStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2)) |
4816 | static PyObject *_wrap_wxListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4817 | PyObject * _resultobj; |
cd096152 RD |
4818 | long _result; |
4819 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4820 | long _arg1; |
cd096152 RD |
4821 | wxString * _arg2; |
4822 | int _arg3; | |
1d99702e | 4823 | PyObject * _argo0 = 0; |
2f90df85 | 4824 | PyObject * _obj2 = 0; |
cd096152 | 4825 | char *_kwnames[] = { "self","index","label","imageIndex", NULL }; |
8ab979d7 RD |
4826 | |
4827 | self = self; | |
cd096152 | 4828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_InsertImageStringItem",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) |
8ab979d7 | 4829 | return NULL; |
1d99702e RD |
4830 | if (_argo0) { |
4831 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4832 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4833 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageStringItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4834 | return NULL; |
4835 | } | |
4836 | } | |
2f90df85 | 4837 | { |
cd096152 RD |
4838 | #if PYTHON_API_VERSION >= 1009 |
4839 | char* tmpPtr; int tmpSize; | |
4840 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
4841 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4842 | return NULL; | |
4843 | } | |
4844 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4845 | return NULL; | |
4846 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4847 | #else | |
4848 | if (!PyString_Check(_obj2)) { | |
4849 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8ab979d7 | 4850 | return NULL; |
cd096152 RD |
4851 | } |
4852 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
4853 | #endif | |
2f90df85 | 4854 | } |
cf694132 RD |
4855 | { |
4856 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4857 | _result = (long )wxListCtrl_InsertImageStringItem(_arg0,_arg1,*_arg2,_arg3); |
cf694132 RD |
4858 | |
4859 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4860 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4861 | } _resultobj = Py_BuildValue("l",_result); |
4862 | { | |
4863 | if (_obj2) | |
4864 | delete _arg2; | |
4865 | } | |
8ab979d7 RD |
4866 | return _resultobj; |
4867 | } | |
4868 | ||
cd096152 RD |
4869 | #define wxListCtrl_InsertColumnInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertColumn(_swigarg0,_swigarg1)) |
4870 | static PyObject *_wrap_wxListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4871 | PyObject * _resultobj; |
cd096152 RD |
4872 | long _result; |
4873 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4874 | long _arg1; |
cd096152 | 4875 | wxListItem * _arg2; |
1d99702e | 4876 | PyObject * _argo0 = 0; |
cd096152 RD |
4877 | PyObject * _argo2 = 0; |
4878 | char *_kwnames[] = { "self","col","info", NULL }; | |
8ab979d7 RD |
4879 | |
4880 | self = self; | |
cd096152 | 4881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertColumnInfo",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 4882 | return NULL; |
1d99702e RD |
4883 | if (_argo0) { |
4884 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4885 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4886 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumnInfo. Expected _wxPyListCtrl_p."); | |
4887 | return NULL; | |
4888 | } | |
4889 | } | |
4890 | if (_argo2) { | |
4891 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
4892 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
4893 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_InsertColumnInfo. Expected _wxListItem_p."); | |
8ab979d7 RD |
4894 | return NULL; |
4895 | } | |
4896 | } | |
cf694132 RD |
4897 | { |
4898 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4899 | _result = (long )wxListCtrl_InsertColumnInfo(_arg0,_arg1,*_arg2); |
cf694132 RD |
4900 | |
4901 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4902 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4903 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4904 | return _resultobj; |
4905 | } | |
4906 | ||
cd096152 RD |
4907 | #define wxListCtrl_InsertColumn(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertColumn(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
4908 | static PyObject *_wrap_wxListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4909 | PyObject * _resultobj; |
cd096152 RD |
4910 | long _result; |
4911 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
4912 | long _arg1; |
4913 | wxString * _arg2; | |
cd096152 RD |
4914 | int _arg3 = (int ) (wxLIST_FORMAT_LEFT); |
4915 | int _arg4 = (int ) -1; | |
1d99702e | 4916 | PyObject * _argo0 = 0; |
8ab979d7 | 4917 | PyObject * _obj2 = 0; |
cd096152 | 4918 | char *_kwnames[] = { "self","col","heading","format","width", NULL }; |
8ab979d7 RD |
4919 | |
4920 | self = self; | |
cd096152 | 4921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|ii:wxListCtrl_InsertColumn",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3,&_arg4)) |
8ab979d7 | 4922 | return NULL; |
1d99702e RD |
4923 | if (_argo0) { |
4924 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4925 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4926 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumn. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4927 | return NULL; |
4928 | } | |
4929 | } | |
4930 | { | |
2cd2fac8 RD |
4931 | #if PYTHON_API_VERSION >= 1009 |
4932 | char* tmpPtr; int tmpSize; | |
4933 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 4934 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
4935 | return NULL; |
4936 | } | |
4937 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4938 | return NULL; | |
4939 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4940 | #else | |
8ab979d7 RD |
4941 | if (!PyString_Check(_obj2)) { |
4942 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4943 | return NULL; | |
4944 | } | |
2cd2fac8 RD |
4945 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
4946 | #endif | |
8ab979d7 | 4947 | } |
cf694132 RD |
4948 | { |
4949 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4950 | _result = (long )wxListCtrl_InsertColumn(_arg0,_arg1,*_arg2,_arg3,_arg4); |
cf694132 RD |
4951 | |
4952 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4953 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4954 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4955 | { |
4956 | if (_obj2) | |
4957 | delete _arg2; | |
4958 | } | |
4959 | return _resultobj; | |
4960 | } | |
4961 | ||
cd096152 RD |
4962 | #define wxListCtrl_SetItemCount(_swigobj,_swigarg0) (_swigobj->SetItemCount(_swigarg0)) |
4963 | static PyObject *_wrap_wxListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4964 | PyObject * _resultobj; |
cd096152 | 4965 | wxPyListCtrl * _arg0; |
8ab979d7 | 4966 | long _arg1; |
1d99702e | 4967 | PyObject * _argo0 = 0; |
cd096152 | 4968 | char *_kwnames[] = { "self","count", NULL }; |
8ab979d7 RD |
4969 | |
4970 | self = self; | |
cd096152 | 4971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetItemCount",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4972 | return NULL; |
1d99702e RD |
4973 | if (_argo0) { |
4974 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4975 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4976 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4977 | return NULL; |
4978 | } | |
4979 | } | |
cf694132 RD |
4980 | { |
4981 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4982 | wxListCtrl_SetItemCount(_arg0,_arg1); |
cf694132 RD |
4983 | |
4984 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4985 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4986 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4987 | _resultobj = Py_None; |
4988 | return _resultobj; | |
4989 | } | |
4990 | ||
cd096152 RD |
4991 | #define wxListCtrl_ScrollList(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScrollList(_swigarg0,_swigarg1)) |
4992 | static PyObject *_wrap_wxListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4993 | PyObject * _resultobj; |
cd096152 RD |
4994 | bool _result; |
4995 | wxPyListCtrl * _arg0; | |
4996 | int _arg1; | |
4997 | int _arg2; | |
1d99702e | 4998 | PyObject * _argo0 = 0; |
cd096152 | 4999 | char *_kwnames[] = { "self","dx","dy", NULL }; |
8ab979d7 RD |
5000 | |
5001 | self = self; | |
cd096152 | 5002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_ScrollList",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 5003 | return NULL; |
1d99702e RD |
5004 | if (_argo0) { |
5005 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
5006 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
5007 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ScrollList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
5008 | return NULL; |
5009 | } | |
5010 | } | |
cf694132 RD |
5011 | { |
5012 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 5013 | _result = (bool )wxListCtrl_ScrollList(_arg0,_arg1,_arg2); |
cf694132 RD |
5014 | |
5015 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5016 | if (PyErr_Occurred()) return NULL; |
cd096152 | 5017 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5018 | return _resultobj; |
5019 | } | |
5020 | ||
cd096152 | 5021 | static bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject * func) { |
dcd38683 RD |
5022 | if (!PyCallable_Check(func)) |
5023 | return FALSE; | |
f6bcfd97 | 5024 | return self->SortItems(wxPyListCtrl_SortItems, (long)func); |
dcd38683 RD |
5025 | } |
5026 | static PyObject *_wrap_wxListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5027 | PyObject * _resultobj; | |
5028 | bool _result; | |
cd096152 | 5029 | wxPyListCtrl * _arg0; |
dcd38683 RD |
5030 | PyObject * _arg1; |
5031 | PyObject * _argo0 = 0; | |
5032 | PyObject * _obj1 = 0; | |
5033 | char *_kwnames[] = { "self","func", NULL }; | |
5034 | ||
5035 | self = self; | |
5036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SortItems",_kwnames,&_argo0,&_obj1)) | |
5037 | return NULL; | |
5038 | if (_argo0) { | |
5039 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
5040 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
5041 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SortItems. Expected _wxPyListCtrl_p."); | |
dcd38683 RD |
5042 | return NULL; |
5043 | } | |
5044 | } | |
5045 | { | |
5046 | _arg1 = _obj1; | |
5047 | } | |
5048 | { | |
5049 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 5050 | _result = (bool )wxPyListCtrl_SortItems(_arg0,_arg1); |
dcd38683 RD |
5051 | |
5052 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5053 | if (PyErr_Occurred()) return NULL; |
dcd38683 RD |
5054 | } _resultobj = Py_BuildValue("i",_result); |
5055 | return _resultobj; | |
5056 | } | |
5057 | ||
059a841c RD |
5058 | static void *SwigwxListViewTowxPyListCtrl(void *ptr) { |
5059 | wxListView *src; | |
5060 | wxPyListCtrl *dest; | |
5061 | src = (wxListView *) ptr; | |
5062 | dest = (wxPyListCtrl *) src; | |
5063 | return (void *) dest; | |
5064 | } | |
5065 | ||
5066 | static void *SwigwxListViewTowxControl(void *ptr) { | |
5067 | wxListView *src; | |
5068 | wxControl *dest; | |
5069 | src = (wxListView *) ptr; | |
5070 | dest = (wxControl *) src; | |
5071 | return (void *) dest; | |
5072 | } | |
5073 | ||
5074 | static void *SwigwxListViewTowxWindow(void *ptr) { | |
5075 | wxListView *src; | |
5076 | wxWindow *dest; | |
5077 | src = (wxListView *) ptr; | |
5078 | dest = (wxWindow *) src; | |
5079 | return (void *) dest; | |
5080 | } | |
5081 | ||
5082 | static void *SwigwxListViewTowxEvtHandler(void *ptr) { | |
5083 | wxListView *src; | |
5084 | wxEvtHandler *dest; | |
5085 | src = (wxListView *) ptr; | |
5086 | dest = (wxEvtHandler *) src; | |
5087 | return (void *) dest; | |
5088 | } | |
5089 | ||
5090 | static void *SwigwxListViewTowxObject(void *ptr) { | |
5091 | wxListView *src; | |
5092 | wxObject *dest; | |
5093 | src = (wxListView *) ptr; | |
5094 | dest = (wxObject *) src; | |
5095 | return (void *) dest; | |
5096 | } | |
5097 | ||
5098 | #define new_wxListView(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxListView(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
5099 | static PyObject *_wrap_new_wxListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5100 | PyObject * _resultobj; | |
5101 | wxListView * _result; | |
5102 | wxWindow * _arg0; | |
5103 | wxWindowID _arg1 = (wxWindowID ) -1; | |
5104 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
5105 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
5106 | long _arg4 = (long ) (wxLC_REPORT); | |
5107 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; | |
5108 | wxString * _arg6 = (wxString *) &"listctrl"; | |
5109 | PyObject * _argo0 = 0; | |
5110 | wxPoint temp; | |
5111 | PyObject * _obj2 = 0; | |
5112 | wxSize temp0; | |
5113 | PyObject * _obj3 = 0; | |
5114 | PyObject * _argo5 = 0; | |
5115 | PyObject * _obj6 = 0; | |
5116 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; | |
5117 | char _ptemp[128]; | |
5118 | ||
5119 | self = self; | |
5120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxListView",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) | |
5121 | return NULL; | |
5122 | if (_argo0) { | |
5123 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5124 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5125 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListView. Expected _wxWindow_p."); | |
5126 | return NULL; | |
5127 | } | |
5128 | } | |
5129 | if (_obj2) | |
5130 | { | |
5131 | _arg2 = &temp; | |
5132 | if (! wxPoint_helper(_obj2, &_arg2)) | |
5133 | return NULL; | |
5134 | } | |
5135 | if (_obj3) | |
5136 | { | |
5137 | _arg3 = &temp0; | |
5138 | if (! wxSize_helper(_obj3, &_arg3)) | |
5139 | return NULL; | |
5140 | } | |
5141 | if (_argo5) { | |
5142 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
5143 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
5144 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListView. Expected _wxValidator_p."); | |
5145 | return NULL; | |
5146 | } | |
5147 | } | |
5148 | if (_obj6) | |
5149 | { | |
5150 | #if PYTHON_API_VERSION >= 1009 | |
5151 | char* tmpPtr; int tmpSize; | |
5152 | if (!PyString_Check(_obj6) && !PyUnicode_Check(_obj6)) { | |
5153 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5154 | return NULL; | |
5155 | } | |
5156 | if (PyString_AsStringAndSize(_obj6, &tmpPtr, &tmpSize) == -1) | |
5157 | return NULL; | |
5158 | _arg6 = new wxString(tmpPtr, tmpSize); | |
5159 | #else | |
5160 | if (!PyString_Check(_obj6)) { | |
5161 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5162 | return NULL; | |
5163 | } | |
5164 | _arg6 = new wxString(PyString_AS_STRING(_obj6), PyString_GET_SIZE(_obj6)); | |
5165 | #endif | |
5166 | } | |
5167 | { | |
5168 | wxPy_BEGIN_ALLOW_THREADS; | |
5169 | _result = (wxListView *)new_wxListView(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); | |
5170 | ||
5171 | wxPy_END_ALLOW_THREADS; | |
5172 | if (PyErr_Occurred()) return NULL; | |
5173 | } if (_result) { | |
5174 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListView_p"); | |
5175 | _resultobj = Py_BuildValue("s",_ptemp); | |
5176 | } else { | |
5177 | Py_INCREF(Py_None); | |
5178 | _resultobj = Py_None; | |
5179 | } | |
5180 | { | |
5181 | if (_obj6) | |
5182 | delete _arg6; | |
5183 | } | |
5184 | return _resultobj; | |
5185 | } | |
5186 | ||
5187 | #define new_wxPreListView() (new wxListView()) | |
5188 | static PyObject *_wrap_new_wxPreListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5189 | PyObject * _resultobj; | |
5190 | wxListView * _result; | |
5191 | char *_kwnames[] = { NULL }; | |
5192 | char _ptemp[128]; | |
5193 | ||
5194 | self = self; | |
5195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListView",_kwnames)) | |
5196 | return NULL; | |
5197 | { | |
5198 | wxPy_BEGIN_ALLOW_THREADS; | |
5199 | _result = (wxListView *)new_wxPreListView(); | |
5200 | ||
5201 | wxPy_END_ALLOW_THREADS; | |
5202 | if (PyErr_Occurred()) return NULL; | |
5203 | } if (_result) { | |
5204 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListView_p"); | |
5205 | _resultobj = Py_BuildValue("s",_ptemp); | |
5206 | } else { | |
5207 | Py_INCREF(Py_None); | |
5208 | _resultobj = Py_None; | |
5209 | } | |
5210 | return _resultobj; | |
5211 | } | |
5212 | ||
5213 | #define wxListView_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
5214 | static PyObject *_wrap_wxListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5215 | PyObject * _resultobj; | |
5216 | bool _result; | |
5217 | wxListView * _arg0; | |
5218 | wxWindow * _arg1; | |
5219 | wxWindowID _arg2 = (wxWindowID ) -1; | |
5220 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
5221 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
5222 | long _arg5 = (long ) (wxLC_REPORT); | |
5223 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
5224 | wxString * _arg7 = (wxString *) &"listctrl"; | |
5225 | PyObject * _argo0 = 0; | |
5226 | PyObject * _argo1 = 0; | |
5227 | wxPoint temp; | |
5228 | PyObject * _obj3 = 0; | |
5229 | wxSize temp0; | |
5230 | PyObject * _obj4 = 0; | |
5231 | PyObject * _argo6 = 0; | |
5232 | PyObject * _obj7 = 0; | |
5233 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
5234 | ||
5235 | self = self; | |
5236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxListView_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) | |
5237 | return NULL; | |
5238 | if (_argo0) { | |
5239 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5240 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5241 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Create. Expected _wxListView_p."); | |
5242 | return NULL; | |
5243 | } | |
5244 | } | |
5245 | if (_argo1) { | |
5246 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5247 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
5248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListView_Create. Expected _wxWindow_p."); | |
5249 | return NULL; | |
5250 | } | |
5251 | } | |
5252 | if (_obj3) | |
5253 | { | |
5254 | _arg3 = &temp; | |
5255 | if (! wxPoint_helper(_obj3, &_arg3)) | |
5256 | return NULL; | |
5257 | } | |
5258 | if (_obj4) | |
5259 | { | |
5260 | _arg4 = &temp0; | |
5261 | if (! wxSize_helper(_obj4, &_arg4)) | |
5262 | return NULL; | |
5263 | } | |
5264 | if (_argo6) { | |
5265 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
5266 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
5267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxListView_Create. Expected _wxValidator_p."); | |
5268 | return NULL; | |
5269 | } | |
5270 | } | |
5271 | if (_obj7) | |
5272 | { | |
5273 | #if PYTHON_API_VERSION >= 1009 | |
5274 | char* tmpPtr; int tmpSize; | |
5275 | if (!PyString_Check(_obj7) && !PyUnicode_Check(_obj7)) { | |
5276 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5277 | return NULL; | |
5278 | } | |
5279 | if (PyString_AsStringAndSize(_obj7, &tmpPtr, &tmpSize) == -1) | |
5280 | return NULL; | |
5281 | _arg7 = new wxString(tmpPtr, tmpSize); | |
5282 | #else | |
5283 | if (!PyString_Check(_obj7)) { | |
5284 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5285 | return NULL; | |
5286 | } | |
5287 | _arg7 = new wxString(PyString_AS_STRING(_obj7), PyString_GET_SIZE(_obj7)); | |
5288 | #endif | |
5289 | } | |
5290 | { | |
5291 | wxPy_BEGIN_ALLOW_THREADS; | |
5292 | _result = (bool )wxListView_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); | |
5293 | ||
5294 | wxPy_END_ALLOW_THREADS; | |
5295 | if (PyErr_Occurred()) return NULL; | |
5296 | } _resultobj = Py_BuildValue("i",_result); | |
5297 | { | |
5298 | if (_obj7) | |
5299 | delete _arg7; | |
5300 | } | |
5301 | return _resultobj; | |
5302 | } | |
5303 | ||
5304 | #define wxListView_Select(_swigobj,_swigarg0,_swigarg1) (_swigobj->Select(_swigarg0,_swigarg1)) | |
5305 | static PyObject *_wrap_wxListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5306 | PyObject * _resultobj; | |
5307 | wxListView * _arg0; | |
5308 | long _arg1; | |
5309 | bool _arg2 = (bool ) TRUE; | |
5310 | PyObject * _argo0 = 0; | |
5311 | int tempbool2 = (int) TRUE; | |
5312 | char *_kwnames[] = { "self","n","on", NULL }; | |
5313 | ||
5314 | self = self; | |
5315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListView_Select",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
5316 | return NULL; | |
5317 | if (_argo0) { | |
5318 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5319 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5320 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Select. Expected _wxListView_p."); | |
5321 | return NULL; | |
5322 | } | |
5323 | } | |
5324 | _arg2 = (bool ) tempbool2; | |
5325 | { | |
5326 | wxPy_BEGIN_ALLOW_THREADS; | |
5327 | wxListView_Select(_arg0,_arg1,_arg2); | |
5328 | ||
5329 | wxPy_END_ALLOW_THREADS; | |
5330 | if (PyErr_Occurred()) return NULL; | |
5331 | } Py_INCREF(Py_None); | |
5332 | _resultobj = Py_None; | |
5333 | return _resultobj; | |
5334 | } | |
5335 | ||
5336 | #define wxListView_Focus(_swigobj,_swigarg0) (_swigobj->Focus(_swigarg0)) | |
5337 | static PyObject *_wrap_wxListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5338 | PyObject * _resultobj; | |
5339 | wxListView * _arg0; | |
5340 | long _arg1; | |
5341 | PyObject * _argo0 = 0; | |
5342 | char *_kwnames[] = { "self","index", NULL }; | |
5343 | ||
5344 | self = self; | |
5345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_Focus",_kwnames,&_argo0,&_arg1)) | |
5346 | return NULL; | |
5347 | if (_argo0) { | |
5348 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5349 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5350 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Focus. Expected _wxListView_p."); | |
5351 | return NULL; | |
5352 | } | |
5353 | } | |
5354 | { | |
5355 | wxPy_BEGIN_ALLOW_THREADS; | |
5356 | wxListView_Focus(_arg0,_arg1); | |
5357 | ||
5358 | wxPy_END_ALLOW_THREADS; | |
5359 | if (PyErr_Occurred()) return NULL; | |
5360 | } Py_INCREF(Py_None); | |
5361 | _resultobj = Py_None; | |
5362 | return _resultobj; | |
5363 | } | |
5364 | ||
5365 | #define wxListView_GetFocusedItem(_swigobj) (_swigobj->GetFocusedItem()) | |
5366 | static PyObject *_wrap_wxListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5367 | PyObject * _resultobj; | |
5368 | long _result; | |
5369 | wxListView * _arg0; | |
5370 | PyObject * _argo0 = 0; | |
5371 | char *_kwnames[] = { "self", NULL }; | |
5372 | ||
5373 | self = self; | |
5374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListView_GetFocusedItem",_kwnames,&_argo0)) | |
5375 | return NULL; | |
5376 | if (_argo0) { | |
5377 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5378 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5379 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetFocusedItem. Expected _wxListView_p."); | |
5380 | return NULL; | |
5381 | } | |
5382 | } | |
5383 | { | |
5384 | wxPy_BEGIN_ALLOW_THREADS; | |
5385 | _result = (long )wxListView_GetFocusedItem(_arg0); | |
5386 | ||
5387 | wxPy_END_ALLOW_THREADS; | |
5388 | if (PyErr_Occurred()) return NULL; | |
5389 | } _resultobj = Py_BuildValue("l",_result); | |
5390 | return _resultobj; | |
5391 | } | |
5392 | ||
5393 | #define wxListView_GetNextSelected(_swigobj,_swigarg0) (_swigobj->GetNextSelected(_swigarg0)) | |
5394 | static PyObject *_wrap_wxListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5395 | PyObject * _resultobj; | |
5396 | long _result; | |
5397 | wxListView * _arg0; | |
5398 | long _arg1; | |
5399 | PyObject * _argo0 = 0; | |
5400 | char *_kwnames[] = { "self","item", NULL }; | |
5401 | ||
5402 | self = self; | |
5403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_GetNextSelected",_kwnames,&_argo0,&_arg1)) | |
5404 | return NULL; | |
5405 | if (_argo0) { | |
5406 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5407 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5408 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetNextSelected. Expected _wxListView_p."); | |
5409 | return NULL; | |
5410 | } | |
5411 | } | |
5412 | { | |
5413 | wxPy_BEGIN_ALLOW_THREADS; | |
5414 | _result = (long )wxListView_GetNextSelected(_arg0,_arg1); | |
5415 | ||
5416 | wxPy_END_ALLOW_THREADS; | |
5417 | if (PyErr_Occurred()) return NULL; | |
5418 | } _resultobj = Py_BuildValue("l",_result); | |
5419 | return _resultobj; | |
5420 | } | |
5421 | ||
5422 | #define wxListView_GetFirstSelected(_swigobj) (_swigobj->GetFirstSelected()) | |
5423 | static PyObject *_wrap_wxListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5424 | PyObject * _resultobj; | |
5425 | long _result; | |
5426 | wxListView * _arg0; | |
5427 | PyObject * _argo0 = 0; | |
5428 | char *_kwnames[] = { "self", NULL }; | |
5429 | ||
5430 | self = self; | |
5431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListView_GetFirstSelected",_kwnames,&_argo0)) | |
5432 | return NULL; | |
5433 | if (_argo0) { | |
5434 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5435 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5436 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetFirstSelected. Expected _wxListView_p."); | |
5437 | return NULL; | |
5438 | } | |
5439 | } | |
5440 | { | |
5441 | wxPy_BEGIN_ALLOW_THREADS; | |
5442 | _result = (long )wxListView_GetFirstSelected(_arg0); | |
5443 | ||
5444 | wxPy_END_ALLOW_THREADS; | |
5445 | if (PyErr_Occurred()) return NULL; | |
5446 | } _resultobj = Py_BuildValue("l",_result); | |
5447 | return _resultobj; | |
5448 | } | |
5449 | ||
5450 | #define wxListView_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) | |
5451 | static PyObject *_wrap_wxListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5452 | PyObject * _resultobj; | |
5453 | bool _result; | |
5454 | wxListView * _arg0; | |
5455 | long _arg1; | |
5456 | PyObject * _argo0 = 0; | |
5457 | char *_kwnames[] = { "self","index", NULL }; | |
5458 | ||
5459 | self = self; | |
5460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_IsSelected",_kwnames,&_argo0,&_arg1)) | |
5461 | return NULL; | |
5462 | if (_argo0) { | |
5463 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5464 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5465 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_IsSelected. Expected _wxListView_p."); | |
5466 | return NULL; | |
5467 | } | |
5468 | } | |
5469 | { | |
5470 | wxPy_BEGIN_ALLOW_THREADS; | |
5471 | _result = (bool )wxListView_IsSelected(_arg0,_arg1); | |
5472 | ||
5473 | wxPy_END_ALLOW_THREADS; | |
5474 | if (PyErr_Occurred()) return NULL; | |
5475 | } _resultobj = Py_BuildValue("i",_result); | |
5476 | return _resultobj; | |
5477 | } | |
5478 | ||
5479 | #define wxListView_SetColumnImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnImage(_swigarg0,_swigarg1)) | |
5480 | static PyObject *_wrap_wxListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5481 | PyObject * _resultobj; | |
5482 | wxListView * _arg0; | |
5483 | int _arg1; | |
5484 | int _arg2; | |
5485 | PyObject * _argo0 = 0; | |
5486 | char *_kwnames[] = { "self","col","image", NULL }; | |
5487 | ||
5488 | self = self; | |
5489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListView_SetColumnImage",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5490 | return NULL; | |
5491 | if (_argo0) { | |
5492 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5493 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5494 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_SetColumnImage. Expected _wxListView_p."); | |
5495 | return NULL; | |
5496 | } | |
5497 | } | |
5498 | { | |
5499 | wxPy_BEGIN_ALLOW_THREADS; | |
5500 | wxListView_SetColumnImage(_arg0,_arg1,_arg2); | |
5501 | ||
5502 | wxPy_END_ALLOW_THREADS; | |
5503 | if (PyErr_Occurred()) return NULL; | |
5504 | } Py_INCREF(Py_None); | |
5505 | _resultobj = Py_None; | |
5506 | return _resultobj; | |
5507 | } | |
5508 | ||
5509 | #define wxListView_ClearColumnImage(_swigobj,_swigarg0) (_swigobj->ClearColumnImage(_swigarg0)) | |
5510 | static PyObject *_wrap_wxListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5511 | PyObject * _resultobj; | |
5512 | wxListView * _arg0; | |
5513 | int _arg1; | |
5514 | PyObject * _argo0 = 0; | |
5515 | char *_kwnames[] = { "self","col", NULL }; | |
5516 | ||
5517 | self = self; | |
5518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListView_ClearColumnImage",_kwnames,&_argo0,&_arg1)) | |
5519 | return NULL; | |
5520 | if (_argo0) { | |
5521 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5522 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5523 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_ClearColumnImage. Expected _wxListView_p."); | |
5524 | return NULL; | |
5525 | } | |
5526 | } | |
5527 | { | |
5528 | wxPy_BEGIN_ALLOW_THREADS; | |
5529 | wxListView_ClearColumnImage(_arg0,_arg1); | |
5530 | ||
5531 | wxPy_END_ALLOW_THREADS; | |
5532 | if (PyErr_Occurred()) return NULL; | |
5533 | } Py_INCREF(Py_None); | |
5534 | _resultobj = Py_None; | |
5535 | return _resultobj; | |
5536 | } | |
5537 | ||
aa2a5b86 RD |
5538 | #define new_wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2) (new wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2)) |
5539 | static PyObject *_wrap_new_wxTreeItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5540 | PyObject * _resultobj; |
aa2a5b86 RD |
5541 | wxTreeItemAttr * _result; |
5542 | wxColour * _arg0 = (wxColour *) &wxNullColour; | |
5543 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
5544 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
5545 | wxColour temp; | |
5546 | PyObject * _obj0 = 0; | |
5547 | wxColour temp0; | |
5548 | PyObject * _obj1 = 0; | |
5549 | PyObject * _argo2 = 0; | |
5550 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
d5c9047a | 5551 | char _ptemp[128]; |
8ab979d7 RD |
5552 | |
5553 | self = self; | |
aa2a5b86 RD |
5554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxTreeItemAttr",_kwnames,&_obj0,&_obj1,&_argo2)) |
5555 | return NULL; | |
5556 | if (_obj0) | |
5557 | { | |
5558 | _arg0 = &temp; | |
5559 | if (! wxColour_helper(_obj0, &_arg0)) | |
5560 | return NULL; | |
5561 | } | |
5562 | if (_obj1) | |
5563 | { | |
5564 | _arg1 = &temp0; | |
5565 | if (! wxColour_helper(_obj1, &_arg1)) | |
5566 | return NULL; | |
5567 | } | |
5568 | if (_argo2) { | |
5569 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
5570 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
5571 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxTreeItemAttr. Expected _wxFont_p."); | |
8ab979d7 | 5572 | return NULL; |
aa2a5b86 RD |
5573 | } |
5574 | } | |
cf694132 RD |
5575 | { |
5576 | wxPy_BEGIN_ALLOW_THREADS; | |
aa2a5b86 | 5577 | _result = (wxTreeItemAttr *)new_wxTreeItemAttr(*_arg0,*_arg1,*_arg2); |
cf694132 RD |
5578 | |
5579 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5580 | if (PyErr_Occurred()) return NULL; |
1d99702e | 5581 | } if (_result) { |
aa2a5b86 | 5582 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemAttr_p"); |
1d99702e RD |
5583 | _resultobj = Py_BuildValue("s",_ptemp); |
5584 | } else { | |
5585 | Py_INCREF(Py_None); | |
5586 | _resultobj = Py_None; | |
5587 | } | |
8ab979d7 RD |
5588 | return _resultobj; |
5589 | } | |
5590 | ||
aa2a5b86 RD |
5591 | #define wxTreeItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) |
5592 | static PyObject *_wrap_wxTreeItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5593 | PyObject * _resultobj; |
aa2a5b86 RD |
5594 | wxTreeItemAttr * _arg0; |
5595 | wxColour * _arg1; | |
1d99702e | 5596 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
5597 | wxColour temp; |
5598 | PyObject * _obj1 = 0; | |
5599 | char *_kwnames[] = { "self","colText", NULL }; | |
8ab979d7 RD |
5600 | |
5601 | self = self; | |
aa2a5b86 | 5602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 5603 | return NULL; |
1d99702e RD |
5604 | if (_argo0) { |
5605 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5606 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5607 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetTextColour. Expected _wxTreeItemAttr_p."); | |
8ab979d7 RD |
5608 | return NULL; |
5609 | } | |
5610 | } | |
aa2a5b86 RD |
5611 | { |
5612 | _arg1 = &temp; | |
5613 | if (! wxColour_helper(_obj1, &_arg1)) | |
5614 | return NULL; | |
5615 | } | |
cf694132 RD |
5616 | { |
5617 | wxPy_BEGIN_ALLOW_THREADS; | |
aa2a5b86 | 5618 | wxTreeItemAttr_SetTextColour(_arg0,*_arg1); |
cf694132 RD |
5619 | |
5620 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5621 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5622 | } Py_INCREF(Py_None); |
d5c9047a | 5623 | _resultobj = Py_None; |
8ab979d7 RD |
5624 | return _resultobj; |
5625 | } | |
5626 | ||
aa2a5b86 RD |
5627 | #define wxTreeItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
5628 | static PyObject *_wrap_wxTreeItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5629 | PyObject * _resultobj; |
aa2a5b86 RD |
5630 | wxTreeItemAttr * _arg0; |
5631 | wxColour * _arg1; | |
1d99702e | 5632 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
5633 | wxColour temp; |
5634 | PyObject * _obj1 = 0; | |
5635 | char *_kwnames[] = { "self","colBack", NULL }; | |
8ab979d7 RD |
5636 | |
5637 | self = self; | |
aa2a5b86 | 5638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 5639 | return NULL; |
1d99702e RD |
5640 | if (_argo0) { |
5641 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5642 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5643 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetBackgroundColour. Expected _wxTreeItemAttr_p."); | |
8ab979d7 RD |
5644 | return NULL; |
5645 | } | |
5646 | } | |
aa2a5b86 RD |
5647 | { |
5648 | _arg1 = &temp; | |
5649 | if (! wxColour_helper(_obj1, &_arg1)) | |
5650 | return NULL; | |
5651 | } | |
cf694132 RD |
5652 | { |
5653 | wxPy_BEGIN_ALLOW_THREADS; | |
aa2a5b86 | 5654 | wxTreeItemAttr_SetBackgroundColour(_arg0,*_arg1); |
cf694132 RD |
5655 | |
5656 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5657 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 RD |
5658 | } Py_INCREF(Py_None); |
5659 | _resultobj = Py_None; | |
8ab979d7 RD |
5660 | return _resultobj; |
5661 | } | |
5662 | ||
aa2a5b86 RD |
5663 | #define wxTreeItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
5664 | static PyObject *_wrap_wxTreeItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f6bcfd97 | 5665 | PyObject * _resultobj; |
aa2a5b86 RD |
5666 | wxTreeItemAttr * _arg0; |
5667 | wxFont * _arg1; | |
f6bcfd97 BP |
5668 | PyObject * _argo0 = 0; |
5669 | PyObject * _argo1 = 0; | |
aa2a5b86 | 5670 | char *_kwnames[] = { "self","font", NULL }; |
f6bcfd97 BP |
5671 | |
5672 | self = self; | |
aa2a5b86 | 5673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetFont",_kwnames,&_argo0,&_argo1)) |
f6bcfd97 BP |
5674 | return NULL; |
5675 | if (_argo0) { | |
5676 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5677 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5678 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetFont. Expected _wxTreeItemAttr_p."); | |
f6bcfd97 BP |
5679 | return NULL; |
5680 | } | |
5681 | } | |
5682 | if (_argo1) { | |
5683 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
aa2a5b86 RD |
5684 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { |
5685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemAttr_SetFont. Expected _wxFont_p."); | |
f6bcfd97 BP |
5686 | return NULL; |
5687 | } | |
5688 | } | |
5689 | { | |
5690 | wxPy_BEGIN_ALLOW_THREADS; | |
aa2a5b86 | 5691 | wxTreeItemAttr_SetFont(_arg0,*_arg1); |
f6bcfd97 BP |
5692 | |
5693 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5694 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 RD |
5695 | } Py_INCREF(Py_None); |
5696 | _resultobj = Py_None; | |
f6bcfd97 BP |
5697 | return _resultobj; |
5698 | } | |
5699 | ||
aa2a5b86 RD |
5700 | #define wxTreeItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) |
5701 | static PyObject *_wrap_wxTreeItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5702 | PyObject * _resultobj; |
aa2a5b86 RD |
5703 | bool _result; |
5704 | wxTreeItemAttr * _arg0; | |
5705 | PyObject * _argo0 = 0; | |
5706 | char *_kwnames[] = { "self", NULL }; | |
8ab979d7 RD |
5707 | |
5708 | self = self; | |
aa2a5b86 | 5709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasTextColour",_kwnames,&_argo0)) |
8ab979d7 | 5710 | return NULL; |
aa2a5b86 RD |
5711 | if (_argo0) { |
5712 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5713 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5714 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasTextColour. Expected _wxTreeItemAttr_p."); | |
5715 | return NULL; | |
5716 | } | |
5717 | } | |
cf694132 RD |
5718 | { |
5719 | wxPy_BEGIN_ALLOW_THREADS; | |
aa2a5b86 | 5720 | _result = (bool )wxTreeItemAttr_HasTextColour(_arg0); |
cf694132 RD |
5721 | |
5722 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5723 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 5724 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5725 | return _resultobj; |
5726 | } | |
5727 | ||
aa2a5b86 RD |
5728 | #define wxTreeItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) |
5729 | static PyObject *_wrap_wxTreeItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 5730 | PyObject * _resultobj; |
aa2a5b86 RD |
5731 | bool _result; |
5732 | wxTreeItemAttr * _arg0; | |
1d99702e | 5733 | PyObject * _argo0 = 0; |
efc5f224 | 5734 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
5735 | |
5736 | self = self; | |
aa2a5b86 | 5737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasBackgroundColour",_kwnames,&_argo0)) |
cf694132 | 5738 | return NULL; |
1d99702e RD |
5739 | if (_argo0) { |
5740 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5741 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasBackgroundColour. Expected _wxTreeItemAttr_p."); | |
cf694132 RD |
5743 | return NULL; |
5744 | } | |
5745 | } | |
5746 | { | |
5747 | wxPy_BEGIN_ALLOW_THREADS; | |
aa2a5b86 | 5748 | _result = (bool )wxTreeItemAttr_HasBackgroundColour(_arg0); |
cf694132 RD |
5749 | |
5750 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5751 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 5752 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
5753 | return _resultobj; |
5754 | } | |
5755 | ||
aa2a5b86 RD |
5756 | #define wxTreeItemAttr_HasFont(_swigobj) (_swigobj->HasFont()) |
5757 | static PyObject *_wrap_wxTreeItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5758 | PyObject * _resultobj; |
aa2a5b86 RD |
5759 | bool _result; |
5760 | wxTreeItemAttr * _arg0; | |
1d99702e | 5761 | PyObject * _argo0 = 0; |
aa2a5b86 | 5762 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5763 | |
5764 | self = self; | |
aa2a5b86 | 5765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasFont",_kwnames,&_argo0)) |
8ab979d7 | 5766 | return NULL; |
1d99702e RD |
5767 | if (_argo0) { |
5768 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5769 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5770 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasFont. Expected _wxTreeItemAttr_p."); | |
8ab979d7 RD |
5771 | return NULL; |
5772 | } | |
5773 | } | |
cf694132 RD |
5774 | { |
5775 | wxPy_BEGIN_ALLOW_THREADS; | |
aa2a5b86 | 5776 | _result = (bool )wxTreeItemAttr_HasFont(_arg0); |
cf694132 RD |
5777 | |
5778 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5779 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 5780 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5781 | return _resultobj; |
5782 | } | |
5783 | ||
aa2a5b86 RD |
5784 | #define wxTreeItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) |
5785 | static PyObject *_wrap_wxTreeItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5786 | PyObject * _resultobj; |
aa2a5b86 RD |
5787 | wxColour * _result; |
5788 | wxTreeItemAttr * _arg0; | |
1d99702e | 5789 | PyObject * _argo0 = 0; |
efc5f224 | 5790 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5791 | char _ptemp[128]; |
5792 | ||
5793 | self = self; | |
aa2a5b86 | 5794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetTextColour",_kwnames,&_argo0)) |
8ab979d7 | 5795 | return NULL; |
1d99702e RD |
5796 | if (_argo0) { |
5797 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5798 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5799 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetTextColour. Expected _wxTreeItemAttr_p."); | |
8ab979d7 RD |
5800 | return NULL; |
5801 | } | |
5802 | } | |
cf694132 RD |
5803 | { |
5804 | wxPy_BEGIN_ALLOW_THREADS; | |
3e212503 | 5805 | _result = new wxColour (wxTreeItemAttr_GetTextColour(_arg0)); |
cf694132 RD |
5806 | |
5807 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5808 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
5809 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
5810 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
5811 | return _resultobj; |
5812 | } | |
5813 | ||
aa2a5b86 RD |
5814 | #define wxTreeItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) |
5815 | static PyObject *_wrap_wxTreeItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
630d84f2 | 5816 | PyObject * _resultobj; |
aa2a5b86 RD |
5817 | wxColour * _result; |
5818 | wxTreeItemAttr * _arg0; | |
1d99702e | 5819 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
5820 | char *_kwnames[] = { "self", NULL }; |
5821 | char _ptemp[128]; | |
5822 | ||
5823 | self = self; | |
5824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetBackgroundColour",_kwnames,&_argo0)) | |
5825 | return NULL; | |
5826 | if (_argo0) { | |
5827 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5828 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5829 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetBackgroundColour. Expected _wxTreeItemAttr_p."); | |
5830 | return NULL; | |
5831 | } | |
5832 | } | |
5833 | { | |
5834 | wxPy_BEGIN_ALLOW_THREADS; | |
3e212503 | 5835 | _result = new wxColour (wxTreeItemAttr_GetBackgroundColour(_arg0)); |
aa2a5b86 RD |
5836 | |
5837 | wxPy_END_ALLOW_THREADS; | |
5838 | if (PyErr_Occurred()) return NULL; | |
3e212503 RD |
5839 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
5840 | _resultobj = Py_BuildValue("s",_ptemp); | |
aa2a5b86 RD |
5841 | return _resultobj; |
5842 | } | |
5843 | ||
5844 | #define wxTreeItemAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
5845 | static PyObject *_wrap_wxTreeItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5846 | PyObject * _resultobj; | |
5847 | wxFont * _result; | |
5848 | wxTreeItemAttr * _arg0; | |
5849 | PyObject * _argo0 = 0; | |
5850 | char *_kwnames[] = { "self", NULL }; | |
5851 | char _ptemp[128]; | |
5852 | ||
5853 | self = self; | |
5854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetFont",_kwnames,&_argo0)) | |
5855 | return NULL; | |
5856 | if (_argo0) { | |
5857 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5858 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5859 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetFont. Expected _wxTreeItemAttr_p."); | |
5860 | return NULL; | |
5861 | } | |
5862 | } | |
5863 | { | |
5864 | wxPy_BEGIN_ALLOW_THREADS; | |
3e212503 | 5865 | _result = new wxFont (wxTreeItemAttr_GetFont(_arg0)); |
aa2a5b86 RD |
5866 | |
5867 | wxPy_END_ALLOW_THREADS; | |
5868 | if (PyErr_Occurred()) return NULL; | |
3e212503 RD |
5869 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
5870 | _resultobj = Py_BuildValue("s",_ptemp); | |
aa2a5b86 RD |
5871 | return _resultobj; |
5872 | } | |
5873 | ||
5874 | #define new_wxTreeItemId() (new wxTreeItemId()) | |
5875 | static PyObject *_wrap_new_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5876 | PyObject * _resultobj; | |
5877 | wxTreeItemId * _result; | |
5878 | char *_kwnames[] = { NULL }; | |
5879 | char _ptemp[128]; | |
5880 | ||
5881 | self = self; | |
5882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxTreeItemId",_kwnames)) | |
5883 | return NULL; | |
5884 | { | |
5885 | wxPy_BEGIN_ALLOW_THREADS; | |
5886 | _result = (wxTreeItemId *)new_wxTreeItemId(); | |
5887 | ||
5888 | wxPy_END_ALLOW_THREADS; | |
5889 | if (PyErr_Occurred()) return NULL; | |
5890 | } if (_result) { | |
5891 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
5892 | _resultobj = Py_BuildValue("s",_ptemp); | |
5893 | } else { | |
5894 | Py_INCREF(Py_None); | |
5895 | _resultobj = Py_None; | |
5896 | } | |
5897 | return _resultobj; | |
5898 | } | |
5899 | ||
5900 | #define delete_wxTreeItemId(_swigobj) (delete _swigobj) | |
5901 | static PyObject *_wrap_delete_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5902 | PyObject * _resultobj; | |
5903 | wxTreeItemId * _arg0; | |
5904 | PyObject * _argo0 = 0; | |
5905 | char *_kwnames[] = { "self", NULL }; | |
5906 | ||
5907 | self = self; | |
5908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTreeItemId",_kwnames,&_argo0)) | |
5909 | return NULL; | |
5910 | if (_argo0) { | |
5911 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5912 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
5913 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTreeItemId. Expected _wxTreeItemId_p."); | |
5914 | return NULL; | |
5915 | } | |
5916 | } | |
5917 | { | |
5918 | wxPy_BEGIN_ALLOW_THREADS; | |
5919 | delete_wxTreeItemId(_arg0); | |
5920 | ||
5921 | wxPy_END_ALLOW_THREADS; | |
5922 | if (PyErr_Occurred()) return NULL; | |
5923 | } Py_INCREF(Py_None); | |
5924 | _resultobj = Py_None; | |
5925 | return _resultobj; | |
5926 | } | |
5927 | ||
5928 | #define wxTreeItemId_IsOk(_swigobj) (_swigobj->IsOk()) | |
5929 | static PyObject *_wrap_wxTreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5930 | PyObject * _resultobj; | |
5931 | bool _result; | |
5932 | wxTreeItemId * _arg0; | |
5933 | PyObject * _argo0 = 0; | |
5934 | char *_kwnames[] = { "self", NULL }; | |
5935 | ||
5936 | self = self; | |
5937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemId_IsOk",_kwnames,&_argo0)) | |
5938 | return NULL; | |
5939 | if (_argo0) { | |
5940 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5941 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
5942 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId_IsOk. Expected _wxTreeItemId_p."); | |
5943 | return NULL; | |
5944 | } | |
5945 | } | |
5946 | { | |
5947 | wxPy_BEGIN_ALLOW_THREADS; | |
5948 | _result = (bool )wxTreeItemId_IsOk(_arg0); | |
5949 | ||
5950 | wxPy_END_ALLOW_THREADS; | |
5951 | if (PyErr_Occurred()) return NULL; | |
5952 | } _resultobj = Py_BuildValue("i",_result); | |
5953 | return _resultobj; | |
5954 | } | |
5955 | ||
5956 | static int wxTreeItemId___cmp__(wxTreeItemId *self,wxTreeItemId * other) { | |
5957 | if (! other) return -1; | |
5958 | return *self != *other; | |
5959 | } | |
5960 | static PyObject *_wrap_wxTreeItemId___cmp__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5961 | PyObject * _resultobj; | |
5962 | int _result; | |
5963 | wxTreeItemId * _arg0; | |
5964 | wxTreeItemId * _arg1; | |
5965 | PyObject * _argo0 = 0; | |
5966 | PyObject * _argo1 = 0; | |
5967 | char *_kwnames[] = { "self","other", NULL }; | |
5968 | ||
5969 | self = self; | |
5970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemId___cmp__",_kwnames,&_argo0,&_argo1)) | |
5971 | return NULL; | |
5972 | if (_argo0) { | |
5973 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5974 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
5975 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
5976 | return NULL; | |
5977 | } | |
5978 | } | |
5979 | if (_argo1) { | |
5980 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5981 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
5982 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
5983 | return NULL; | |
5984 | } | |
5985 | } | |
5986 | { | |
5987 | wxPy_BEGIN_ALLOW_THREADS; | |
5988 | _result = (int )wxTreeItemId___cmp__(_arg0,_arg1); | |
5989 | ||
5990 | wxPy_END_ALLOW_THREADS; | |
5991 | if (PyErr_Occurred()) return NULL; | |
5992 | } _resultobj = Py_BuildValue("i",_result); | |
5993 | return _resultobj; | |
5994 | } | |
5995 | ||
5996 | static void *SwigwxPyTreeItemDataTowxObject(void *ptr) { | |
5997 | wxPyTreeItemData *src; | |
5998 | wxObject *dest; | |
5999 | src = (wxPyTreeItemData *) ptr; | |
6000 | dest = (wxObject *) src; | |
6001 | return (void *) dest; | |
6002 | } | |
6003 | ||
6004 | #define new_wxTreeItemData(_swigarg0) (new wxPyTreeItemData(_swigarg0)) | |
6005 | static PyObject *_wrap_new_wxTreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6006 | PyObject * _resultobj; | |
6007 | wxPyTreeItemData * _result; | |
6008 | PyObject * _arg0 = (PyObject *) NULL; | |
6009 | PyObject * _obj0 = 0; | |
6010 | char *_kwnames[] = { "obj", NULL }; | |
6011 | char _ptemp[128]; | |
6012 | ||
6013 | self = self; | |
6014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxTreeItemData",_kwnames,&_obj0)) | |
6015 | return NULL; | |
6016 | if (_obj0) | |
6017 | { | |
6018 | _arg0 = _obj0; | |
6019 | } | |
6020 | { | |
6021 | wxPy_BEGIN_ALLOW_THREADS; | |
6022 | _result = (wxPyTreeItemData *)new_wxTreeItemData(_arg0); | |
6023 | ||
6024 | wxPy_END_ALLOW_THREADS; | |
6025 | if (PyErr_Occurred()) return NULL; | |
6026 | } if (_result) { | |
6027 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
6028 | _resultobj = Py_BuildValue("s",_ptemp); | |
6029 | } else { | |
6030 | Py_INCREF(Py_None); | |
6031 | _resultobj = Py_None; | |
6032 | } | |
6033 | return _resultobj; | |
6034 | } | |
6035 | ||
6036 | #define wxTreeItemData_GetData(_swigobj) (_swigobj->GetData()) | |
6037 | static PyObject *_wrap_wxTreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6038 | PyObject * _resultobj; | |
6039 | PyObject * _result; | |
6040 | wxPyTreeItemData * _arg0; | |
6041 | PyObject * _argo0 = 0; | |
6042 | char *_kwnames[] = { "self", NULL }; | |
6043 | ||
6044 | self = self; | |
6045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetData",_kwnames,&_argo0)) | |
6046 | return NULL; | |
6047 | if (_argo0) { | |
6048 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6049 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
6050 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetData. Expected _wxPyTreeItemData_p."); | |
6051 | return NULL; | |
6052 | } | |
6053 | } | |
6054 | { | |
6055 | wxPy_BEGIN_ALLOW_THREADS; | |
6056 | _result = (PyObject *)wxTreeItemData_GetData(_arg0); | |
6057 | ||
6058 | wxPy_END_ALLOW_THREADS; | |
6059 | if (PyErr_Occurred()) return NULL; | |
6060 | }{ | |
6061 | _resultobj = _result; | |
6062 | } | |
6063 | return _resultobj; | |
6064 | } | |
6065 | ||
6066 | #define wxTreeItemData_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
6067 | static PyObject *_wrap_wxTreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6068 | PyObject * _resultobj; | |
6069 | wxPyTreeItemData * _arg0; | |
6070 | PyObject * _arg1; | |
6071 | PyObject * _argo0 = 0; | |
6072 | PyObject * _obj1 = 0; | |
6073 | char *_kwnames[] = { "self","obj", NULL }; | |
6074 | ||
6075 | self = self; | |
6076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetData",_kwnames,&_argo0,&_obj1)) | |
6077 | return NULL; | |
6078 | if (_argo0) { | |
6079 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6080 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
6081 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetData. Expected _wxPyTreeItemData_p."); | |
6082 | return NULL; | |
6083 | } | |
6084 | } | |
6085 | { | |
6086 | _arg1 = _obj1; | |
6087 | } | |
6088 | { | |
6089 | wxPy_BEGIN_ALLOW_THREADS; | |
6090 | wxTreeItemData_SetData(_arg0,_arg1); | |
6091 | ||
6092 | wxPy_END_ALLOW_THREADS; | |
6093 | if (PyErr_Occurred()) return NULL; | |
6094 | } Py_INCREF(Py_None); | |
6095 | _resultobj = Py_None; | |
6096 | return _resultobj; | |
6097 | } | |
6098 | ||
6099 | #define wxTreeItemData_GetId(_swigobj) (_swigobj->GetId()) | |
6100 | static PyObject *_wrap_wxTreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6101 | PyObject * _resultobj; | |
6102 | wxTreeItemId * _result; | |
6103 | wxPyTreeItemData * _arg0; | |
6104 | PyObject * _argo0 = 0; | |
6105 | char *_kwnames[] = { "self", NULL }; | |
6106 | char _ptemp[128]; | |
6107 | ||
6108 | self = self; | |
6109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetId",_kwnames,&_argo0)) | |
6110 | return NULL; | |
6111 | if (_argo0) { | |
6112 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6113 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
6114 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetId. Expected _wxPyTreeItemData_p."); | |
6115 | return NULL; | |
6116 | } | |
6117 | } | |
6118 | { | |
6119 | wxPy_BEGIN_ALLOW_THREADS; | |
6120 | const wxTreeItemId & _result_ref = wxTreeItemData_GetId(_arg0); | |
6121 | _result = (wxTreeItemId *) &_result_ref; | |
6122 | ||
6123 | wxPy_END_ALLOW_THREADS; | |
6124 | if (PyErr_Occurred()) return NULL; | |
6125 | } if (_result) { | |
6126 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
6127 | _resultobj = Py_BuildValue("s",_ptemp); | |
6128 | } else { | |
6129 | Py_INCREF(Py_None); | |
6130 | _resultobj = Py_None; | |
6131 | } | |
6132 | return _resultobj; | |
6133 | } | |
6134 | ||
6135 | #define wxTreeItemData_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
6136 | static PyObject *_wrap_wxTreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6137 | PyObject * _resultobj; | |
6138 | wxPyTreeItemData * _arg0; | |
6139 | wxTreeItemId * _arg1; | |
6140 | PyObject * _argo0 = 0; | |
6141 | PyObject * _argo1 = 0; | |
6142 | char *_kwnames[] = { "self","id", NULL }; | |
630d84f2 RD |
6143 | |
6144 | self = self; | |
efc5f224 | 6145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetId",_kwnames,&_argo0,&_argo1)) |
630d84f2 | 6146 | return NULL; |
1d99702e RD |
6147 | if (_argo0) { |
6148 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6149 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 6150 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetId. Expected _wxPyTreeItemData_p."); |
630d84f2 RD |
6151 | return NULL; |
6152 | } | |
6153 | } | |
1d99702e RD |
6154 | if (_argo1) { |
6155 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6156 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
630d84f2 RD |
6157 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemData_SetId. Expected _wxTreeItemId_p."); |
6158 | return NULL; | |
6159 | } | |
6160 | } | |
cf694132 RD |
6161 | { |
6162 | wxPy_BEGIN_ALLOW_THREADS; | |
6163 | wxTreeItemData_SetId(_arg0,*_arg1); | |
6164 | ||
6165 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6166 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6167 | } Py_INCREF(Py_None); |
630d84f2 RD |
6168 | _resultobj = Py_None; |
6169 | return _resultobj; | |
6170 | } | |
6171 | ||
8bf5d46e RD |
6172 | static void *SwigwxTreeEventTowxNotifyEvent(void *ptr) { |
6173 | wxTreeEvent *src; | |
6174 | wxNotifyEvent *dest; | |
6175 | src = (wxTreeEvent *) ptr; | |
6176 | dest = (wxNotifyEvent *) src; | |
6177 | return (void *) dest; | |
6178 | } | |
6179 | ||
8ab979d7 RD |
6180 | static void *SwigwxTreeEventTowxCommandEvent(void *ptr) { |
6181 | wxTreeEvent *src; | |
6182 | wxCommandEvent *dest; | |
6183 | src = (wxTreeEvent *) ptr; | |
6184 | dest = (wxCommandEvent *) src; | |
6185 | return (void *) dest; | |
6186 | } | |
6187 | ||
6188 | static void *SwigwxTreeEventTowxEvent(void *ptr) { | |
6189 | wxTreeEvent *src; | |
6190 | wxEvent *dest; | |
6191 | src = (wxTreeEvent *) ptr; | |
6192 | dest = (wxEvent *) src; | |
6193 | return (void *) dest; | |
6194 | } | |
6195 | ||
9df61a29 RD |
6196 | static void *SwigwxTreeEventTowxObject(void *ptr) { |
6197 | wxTreeEvent *src; | |
6198 | wxObject *dest; | |
6199 | src = (wxTreeEvent *) ptr; | |
6200 | dest = (wxObject *) src; | |
6201 | return (void *) dest; | |
6202 | } | |
6203 | ||
aa2a5b86 RD |
6204 | #define new_wxTreeEvent(_swigarg0,_swigarg1) (new wxTreeEvent(_swigarg0,_swigarg1)) |
6205 | static PyObject *_wrap_new_wxTreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6206 | PyObject * _resultobj; | |
6207 | wxTreeEvent * _result; | |
6208 | wxEventType _arg0 = (wxEventType ) wxEVT_NULL; | |
6209 | int _arg1 = (int ) 0; | |
6210 | char *_kwnames[] = { "commandType","id", NULL }; | |
6211 | char _ptemp[128]; | |
6212 | ||
6213 | self = self; | |
6214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxTreeEvent",_kwnames,&_arg0,&_arg1)) | |
6215 | return NULL; | |
6216 | { | |
6217 | wxPy_BEGIN_ALLOW_THREADS; | |
6218 | _result = (wxTreeEvent *)new_wxTreeEvent(_arg0,_arg1); | |
6219 | ||
6220 | wxPy_END_ALLOW_THREADS; | |
6221 | if (PyErr_Occurred()) return NULL; | |
6222 | } if (_result) { | |
6223 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeEvent_p"); | |
6224 | _resultobj = Py_BuildValue("s",_ptemp); | |
6225 | } else { | |
6226 | Py_INCREF(Py_None); | |
6227 | _resultobj = Py_None; | |
6228 | } | |
6229 | return _resultobj; | |
6230 | } | |
6231 | ||
d5c9047a | 6232 | #define wxTreeEvent_GetItem(_swigobj) (_swigobj->GetItem()) |
efc5f224 | 6233 | static PyObject *_wrap_wxTreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6234 | PyObject * _resultobj; |
d5c9047a | 6235 | wxTreeItemId * _result; |
8ab979d7 | 6236 | wxTreeEvent * _arg0; |
1d99702e | 6237 | PyObject * _argo0 = 0; |
efc5f224 | 6238 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 6239 | char _ptemp[128]; |
8ab979d7 RD |
6240 | |
6241 | self = self; | |
efc5f224 | 6242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetItem",_kwnames,&_argo0)) |
8ab979d7 | 6243 | return NULL; |
1d99702e RD |
6244 | if (_argo0) { |
6245 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6246 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6247 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetItem. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6248 | return NULL; |
6249 | } | |
6250 | } | |
cf694132 RD |
6251 | { |
6252 | wxPy_BEGIN_ALLOW_THREADS; | |
6253 | _result = new wxTreeItemId (wxTreeEvent_GetItem(_arg0)); | |
6254 | ||
6255 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6256 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6257 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 6258 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6259 | return _resultobj; |
6260 | } | |
6261 | ||
d5c9047a | 6262 | #define wxTreeEvent_GetOldItem(_swigobj) (_swigobj->GetOldItem()) |
efc5f224 | 6263 | static PyObject *_wrap_wxTreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6264 | PyObject * _resultobj; |
d5c9047a | 6265 | wxTreeItemId * _result; |
8ab979d7 | 6266 | wxTreeEvent * _arg0; |
1d99702e | 6267 | PyObject * _argo0 = 0; |
efc5f224 | 6268 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6269 | char _ptemp[128]; |
6270 | ||
6271 | self = self; | |
efc5f224 | 6272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetOldItem",_kwnames,&_argo0)) |
8ab979d7 | 6273 | return NULL; |
1d99702e RD |
6274 | if (_argo0) { |
6275 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6276 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6277 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetOldItem. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6278 | return NULL; |
6279 | } | |
6280 | } | |
cf694132 RD |
6281 | { |
6282 | wxPy_BEGIN_ALLOW_THREADS; | |
6283 | _result = new wxTreeItemId (wxTreeEvent_GetOldItem(_arg0)); | |
6284 | ||
6285 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6286 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6287 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
8ab979d7 RD |
6288 | _resultobj = Py_BuildValue("s",_ptemp); |
6289 | return _resultobj; | |
6290 | } | |
6291 | ||
d5c9047a | 6292 | #define wxTreeEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) |
efc5f224 | 6293 | static PyObject *_wrap_wxTreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6294 | PyObject * _resultobj; |
d5c9047a | 6295 | wxPoint * _result; |
8ab979d7 | 6296 | wxTreeEvent * _arg0; |
1d99702e | 6297 | PyObject * _argo0 = 0; |
efc5f224 | 6298 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 6299 | char _ptemp[128]; |
8ab979d7 RD |
6300 | |
6301 | self = self; | |
efc5f224 | 6302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetPoint",_kwnames,&_argo0)) |
8ab979d7 | 6303 | return NULL; |
1d99702e RD |
6304 | if (_argo0) { |
6305 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6306 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6307 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetPoint. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6308 | return NULL; |
6309 | } | |
6310 | } | |
cf694132 RD |
6311 | { |
6312 | wxPy_BEGIN_ALLOW_THREADS; | |
6313 | _result = new wxPoint (wxTreeEvent_GetPoint(_arg0)); | |
6314 | ||
6315 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6316 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6317 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
d5c9047a | 6318 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6319 | return _resultobj; |
6320 | } | |
6321 | ||
65191ae8 RD |
6322 | #define wxTreeEvent_GetKeyEvent(_swigobj) (_swigobj->GetKeyEvent()) |
6323 | static PyObject *_wrap_wxTreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6324 | PyObject * _resultobj; | |
6325 | wxKeyEvent * _result; | |
6326 | wxTreeEvent * _arg0; | |
6327 | PyObject * _argo0 = 0; | |
6328 | char *_kwnames[] = { "self", NULL }; | |
6329 | char _ptemp[128]; | |
6330 | ||
6331 | self = self; | |
6332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetKeyEvent",_kwnames,&_argo0)) | |
6333 | return NULL; | |
6334 | if (_argo0) { | |
6335 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6336 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
6337 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetKeyEvent. Expected _wxTreeEvent_p."); | |
6338 | return NULL; | |
6339 | } | |
6340 | } | |
6341 | { | |
6342 | wxPy_BEGIN_ALLOW_THREADS; | |
6343 | const wxKeyEvent & _result_ref = wxTreeEvent_GetKeyEvent(_arg0); | |
6344 | _result = (wxKeyEvent *) &_result_ref; | |
6345 | ||
6346 | wxPy_END_ALLOW_THREADS; | |
6347 | if (PyErr_Occurred()) return NULL; | |
6348 | } if (_result) { | |
6349 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxKeyEvent_p"); | |
6350 | _resultobj = Py_BuildValue("s",_ptemp); | |
6351 | } else { | |
6352 | Py_INCREF(Py_None); | |
6353 | _resultobj = Py_None; | |
6354 | } | |
6355 | return _resultobj; | |
6356 | } | |
6357 | ||
d5c9047a | 6358 | #define wxTreeEvent_GetCode(_swigobj) (_swigobj->GetCode()) |
efc5f224 | 6359 | static PyObject *_wrap_wxTreeEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6360 | PyObject * _resultobj; |
d5c9047a | 6361 | int _result; |
8ab979d7 | 6362 | wxTreeEvent * _arg0; |
1d99702e | 6363 | PyObject * _argo0 = 0; |
efc5f224 | 6364 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6365 | |
6366 | self = self; | |
efc5f224 | 6367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetCode",_kwnames,&_argo0)) |
8ab979d7 | 6368 | return NULL; |
1d99702e RD |
6369 | if (_argo0) { |
6370 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6371 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6372 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetCode. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6373 | return NULL; |
6374 | } | |
6375 | } | |
cf694132 RD |
6376 | { |
6377 | wxPy_BEGIN_ALLOW_THREADS; | |
6378 | _result = (int )wxTreeEvent_GetCode(_arg0); | |
6379 | ||
6380 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6381 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6382 | } _resultobj = Py_BuildValue("i",_result); |
d5c9047a RD |
6383 | return _resultobj; |
6384 | } | |
6385 | ||
8bf5d46e | 6386 | #define wxTreeEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 6387 | static PyObject *_wrap_wxTreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 6388 | PyObject * _resultobj; |
8bf5d46e | 6389 | wxString * _result; |
d5c9047a | 6390 | wxTreeEvent * _arg0; |
1d99702e | 6391 | PyObject * _argo0 = 0; |
efc5f224 | 6392 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
6393 | |
6394 | self = self; | |
efc5f224 | 6395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetLabel",_kwnames,&_argo0)) |
d5c9047a | 6396 | return NULL; |
1d99702e RD |
6397 | if (_argo0) { |
6398 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6399 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
8bf5d46e | 6400 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetLabel. Expected _wxTreeEvent_p."); |
d5c9047a RD |
6401 | return NULL; |
6402 | } | |
6403 | } | |
cf694132 RD |
6404 | { |
6405 | wxPy_BEGIN_ALLOW_THREADS; | |
8bf5d46e RD |
6406 | const wxString & _result_ref = wxTreeEvent_GetLabel(_arg0); |
6407 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
6408 | |
6409 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6410 | if (PyErr_Occurred()) return NULL; |
8bf5d46e | 6411 | }{ |
eec92d76 | 6412 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8bf5d46e | 6413 | } |
8ab979d7 RD |
6414 | return _resultobj; |
6415 | } | |
6416 | ||
f6bcfd97 BP |
6417 | static void *SwigwxPyTreeCtrlTowxControl(void *ptr) { |
6418 | wxPyTreeCtrl *src; | |
8ab979d7 | 6419 | wxControl *dest; |
f6bcfd97 | 6420 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
6421 | dest = (wxControl *) src; |
6422 | return (void *) dest; | |
6423 | } | |
6424 | ||
f6bcfd97 BP |
6425 | static void *SwigwxPyTreeCtrlTowxWindow(void *ptr) { |
6426 | wxPyTreeCtrl *src; | |
8ab979d7 | 6427 | wxWindow *dest; |
f6bcfd97 | 6428 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
6429 | dest = (wxWindow *) src; |
6430 | return (void *) dest; | |
6431 | } | |
6432 | ||
f6bcfd97 BP |
6433 | static void *SwigwxPyTreeCtrlTowxEvtHandler(void *ptr) { |
6434 | wxPyTreeCtrl *src; | |
8ab979d7 | 6435 | wxEvtHandler *dest; |
f6bcfd97 | 6436 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
6437 | dest = (wxEvtHandler *) src; |
6438 | return (void *) dest; | |
6439 | } | |
6440 | ||
9df61a29 RD |
6441 | static void *SwigwxPyTreeCtrlTowxObject(void *ptr) { |
6442 | wxPyTreeCtrl *src; | |
6443 | wxObject *dest; | |
6444 | src = (wxPyTreeCtrl *) ptr; | |
6445 | dest = (wxObject *) src; | |
6446 | return (void *) dest; | |
6447 | } | |
6448 | ||
f6bcfd97 | 6449 | #define new_wxTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 6450 | static PyObject *_wrap_new_wxTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6451 | PyObject * _resultobj; |
f6bcfd97 | 6452 | wxPyTreeCtrl * _result; |
8ab979d7 | 6453 | wxWindow * _arg0; |
1d99702e | 6454 | wxWindowID _arg1 = (wxWindowID ) -1; |
b68dc582 RD |
6455 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
6456 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
aa2a5b86 | 6457 | long _arg4 = (long ) (wxTR_HAS_BUTTONS)|(wxTR_LINES_AT_ROOT); |
b68dc582 | 6458 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
6459 | char * _arg6 = (char *) "wxTreeCtrl"; |
6460 | PyObject * _argo0 = 0; | |
2f90df85 RD |
6461 | wxPoint temp; |
6462 | PyObject * _obj2 = 0; | |
6463 | wxSize temp0; | |
6464 | PyObject * _obj3 = 0; | |
1d99702e | 6465 | PyObject * _argo5 = 0; |
efc5f224 | 6466 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
6467 | char _ptemp[128]; |
6468 | ||
6469 | self = self; | |
2f90df85 | 6470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxTreeCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) |
8ab979d7 | 6471 | return NULL; |
1d99702e RD |
6472 | if (_argo0) { |
6473 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6474 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6475 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTreeCtrl. Expected _wxWindow_p."); |
6476 | return NULL; | |
6477 | } | |
6478 | } | |
2f90df85 RD |
6479 | if (_obj2) |
6480 | { | |
6481 | _arg2 = &temp; | |
6482 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 6483 | return NULL; |
2f90df85 RD |
6484 | } |
6485 | if (_obj3) | |
6486 | { | |
6487 | _arg3 = &temp0; | |
6488 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 6489 | return NULL; |
2f90df85 | 6490 | } |
1d99702e RD |
6491 | if (_argo5) { |
6492 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
6493 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
8ab979d7 RD |
6494 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxTreeCtrl. Expected _wxValidator_p."); |
6495 | return NULL; | |
6496 | } | |
6497 | } | |
cf694132 RD |
6498 | { |
6499 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 6500 | _result = (wxPyTreeCtrl *)new_wxTreeCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); |
cf694132 RD |
6501 | |
6502 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6503 | if (PyErr_Occurred()) return NULL; |
1d99702e | 6504 | } if (_result) { |
f6bcfd97 | 6505 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p"); |
1d99702e RD |
6506 | _resultobj = Py_BuildValue("s",_ptemp); |
6507 | } else { | |
6508 | Py_INCREF(Py_None); | |
6509 | _resultobj = Py_None; | |
6510 | } | |
8ab979d7 RD |
6511 | return _resultobj; |
6512 | } | |
6513 | ||
aa2a5b86 RD |
6514 | #define new_wxPreTreeCtrl() (new wxPyTreeCtrl()) |
6515 | static PyObject *_wrap_new_wxPreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f6bcfd97 | 6516 | PyObject * _resultobj; |
aa2a5b86 RD |
6517 | wxPyTreeCtrl * _result; |
6518 | char *_kwnames[] = { NULL }; | |
6519 | char _ptemp[128]; | |
6520 | ||
6521 | self = self; | |
6522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreTreeCtrl",_kwnames)) | |
6523 | return NULL; | |
6524 | { | |
6525 | wxPy_BEGIN_ALLOW_THREADS; | |
6526 | _result = (wxPyTreeCtrl *)new_wxPreTreeCtrl(); | |
6527 | ||
6528 | wxPy_END_ALLOW_THREADS; | |
6529 | if (PyErr_Occurred()) return NULL; | |
6530 | } if (_result) { | |
6531 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p"); | |
6532 | _resultobj = Py_BuildValue("s",_ptemp); | |
6533 | } else { | |
6534 | Py_INCREF(Py_None); | |
6535 | _resultobj = Py_None; | |
6536 | } | |
6537 | return _resultobj; | |
6538 | } | |
6539 | ||
6540 | #define wxTreeCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
6541 | static PyObject *_wrap_wxTreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6542 | PyObject * _resultobj; | |
6543 | bool _result; | |
f6bcfd97 | 6544 | wxPyTreeCtrl * _arg0; |
aa2a5b86 RD |
6545 | wxWindow * _arg1; |
6546 | wxWindowID _arg2 = (wxWindowID ) -1; | |
6547 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6548 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6549 | long _arg5 = (long ) (wxTR_HAS_BUTTONS)|(wxTR_LINES_AT_ROOT); | |
6550 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
6551 | char * _arg7 = (char *) "wxTreeCtrl"; | |
f6bcfd97 | 6552 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
6553 | PyObject * _argo1 = 0; |
6554 | wxPoint temp; | |
6555 | PyObject * _obj3 = 0; | |
6556 | wxSize temp0; | |
6557 | PyObject * _obj4 = 0; | |
6558 | PyObject * _argo6 = 0; | |
6559 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
f6bcfd97 BP |
6560 | |
6561 | self = self; | |
aa2a5b86 | 6562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOs:wxTreeCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
f6bcfd97 BP |
6563 | return NULL; |
6564 | if (_argo0) { | |
6565 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6566 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
aa2a5b86 RD |
6567 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Create. Expected _wxPyTreeCtrl_p."); |
6568 | return NULL; | |
6569 | } | |
6570 | } | |
6571 | if (_argo1) { | |
6572 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6573 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6574 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Create. Expected _wxWindow_p."); | |
f6bcfd97 BP |
6575 | return NULL; |
6576 | } | |
6577 | } | |
aa2a5b86 | 6578 | if (_obj3) |
f6bcfd97 | 6579 | { |
aa2a5b86 RD |
6580 | _arg3 = &temp; |
6581 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6582 | return NULL; | |
f6bcfd97 | 6583 | } |
aa2a5b86 | 6584 | if (_obj4) |
f6bcfd97 | 6585 | { |
aa2a5b86 RD |
6586 | _arg4 = &temp0; |
6587 | if (! wxSize_helper(_obj4, &_arg4)) | |
6588 | return NULL; | |
f6bcfd97 | 6589 | } |
aa2a5b86 RD |
6590 | if (_argo6) { |
6591 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
6592 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
6593 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_Create. Expected _wxValidator_p."); | |
6594 | return NULL; | |
6595 | } | |
6596 | } | |
f6bcfd97 BP |
6597 | { |
6598 | wxPy_BEGIN_ALLOW_THREADS; | |
aa2a5b86 | 6599 | _result = (bool )wxTreeCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); |
f6bcfd97 BP |
6600 | |
6601 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6602 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 6603 | } _resultobj = Py_BuildValue("i",_result); |
f6bcfd97 BP |
6604 | return _resultobj; |
6605 | } | |
6606 | ||
0220cbc1 RD |
6607 | #define wxTreeCtrl__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
6608 | static PyObject *_wrap_wxTreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c4165ad RD |
6609 | PyObject * _resultobj; |
6610 | wxPyTreeCtrl * _arg0; | |
aa2a5b86 RD |
6611 | PyObject * _arg1; |
6612 | PyObject * _arg2; | |
9c4165ad | 6613 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
6614 | PyObject * _obj1 = 0; |
6615 | PyObject * _obj2 = 0; | |
6616 | char *_kwnames[] = { "self","self","_class", NULL }; | |
9c4165ad RD |
6617 | |
6618 | self = self; | |
0220cbc1 | 6619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
9c4165ad RD |
6620 | return NULL; |
6621 | if (_argo0) { | |
6622 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6623 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
0220cbc1 | 6624 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl__setCallbackInfo. Expected _wxPyTreeCtrl_p."); |
9c4165ad RD |
6625 | return NULL; |
6626 | } | |
6627 | } | |
aa2a5b86 RD |
6628 | { |
6629 | _arg1 = _obj1; | |
6630 | } | |
6631 | { | |
6632 | _arg2 = _obj2; | |
6633 | } | |
9c4165ad RD |
6634 | { |
6635 | wxPy_BEGIN_ALLOW_THREADS; | |
0220cbc1 | 6636 | wxTreeCtrl__setCallbackInfo(_arg0,_arg1,_arg2); |
9c4165ad RD |
6637 | |
6638 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6639 | if (PyErr_Occurred()) return NULL; |
9c4165ad RD |
6640 | } Py_INCREF(Py_None); |
6641 | _resultobj = Py_None; | |
6642 | return _resultobj; | |
6643 | } | |
6644 | ||
d5c9047a | 6645 | #define wxTreeCtrl_GetCount(_swigobj) (_swigobj->GetCount()) |
efc5f224 | 6646 | static PyObject *_wrap_wxTreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6647 | PyObject * _resultobj; |
c127177f | 6648 | size_t _result; |
f6bcfd97 | 6649 | wxPyTreeCtrl * _arg0; |
1d99702e | 6650 | PyObject * _argo0 = 0; |
efc5f224 | 6651 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6652 | |
6653 | self = self; | |
efc5f224 | 6654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetCount",_kwnames,&_argo0)) |
8ab979d7 | 6655 | return NULL; |
1d99702e RD |
6656 | if (_argo0) { |
6657 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6658 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6659 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetCount. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6660 | return NULL; |
6661 | } | |
6662 | } | |
cf694132 RD |
6663 | { |
6664 | wxPy_BEGIN_ALLOW_THREADS; | |
c127177f | 6665 | _result = (size_t )wxTreeCtrl_GetCount(_arg0); |
cf694132 RD |
6666 | |
6667 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6668 | if (PyErr_Occurred()) return NULL; |
c127177f | 6669 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6670 | return _resultobj; |
6671 | } | |
6672 | ||
d5c9047a | 6673 | #define wxTreeCtrl_GetIndent(_swigobj) (_swigobj->GetIndent()) |
efc5f224 | 6674 | static PyObject *_wrap_wxTreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6675 | PyObject * _resultobj; |
d5c9047a | 6676 | unsigned int _result; |
f6bcfd97 | 6677 | wxPyTreeCtrl * _arg0; |
1d99702e | 6678 | PyObject * _argo0 = 0; |
efc5f224 | 6679 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6680 | |
6681 | self = self; | |
efc5f224 | 6682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetIndent",_kwnames,&_argo0)) |
8ab979d7 | 6683 | return NULL; |
1d99702e RD |
6684 | if (_argo0) { |
6685 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6686 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6687 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetIndent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6688 | return NULL; |
6689 | } | |
6690 | } | |
cf694132 RD |
6691 | { |
6692 | wxPy_BEGIN_ALLOW_THREADS; | |
6693 | _result = (unsigned int )wxTreeCtrl_GetIndent(_arg0); | |
6694 | ||
6695 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6696 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6697 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6698 | return _resultobj; |
6699 | } | |
6700 | ||
d5c9047a | 6701 | #define wxTreeCtrl_SetIndent(_swigobj,_swigarg0) (_swigobj->SetIndent(_swigarg0)) |
efc5f224 | 6702 | static PyObject *_wrap_wxTreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6703 | PyObject * _resultobj; |
f6bcfd97 | 6704 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6705 | unsigned int _arg1; |
1d99702e | 6706 | PyObject * _argo0 = 0; |
efc5f224 | 6707 | char *_kwnames[] = { "self","indent", NULL }; |
8ab979d7 RD |
6708 | |
6709 | self = self; | |
efc5f224 | 6710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetIndent",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6711 | return NULL; |
1d99702e RD |
6712 | if (_argo0) { |
6713 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6714 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetIndent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6716 | return NULL; |
6717 | } | |
6718 | } | |
cf694132 RD |
6719 | { |
6720 | wxPy_BEGIN_ALLOW_THREADS; | |
6721 | wxTreeCtrl_SetIndent(_arg0,_arg1); | |
6722 | ||
6723 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6724 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6725 | } Py_INCREF(Py_None); |
d5c9047a | 6726 | _resultobj = Py_None; |
8ab979d7 RD |
6727 | return _resultobj; |
6728 | } | |
6729 | ||
d5c9047a | 6730 | #define wxTreeCtrl_GetImageList(_swigobj) (_swigobj->GetImageList()) |
efc5f224 | 6731 | static PyObject *_wrap_wxTreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6732 | PyObject * _resultobj; |
d5c9047a | 6733 | wxImageList * _result; |
f6bcfd97 | 6734 | wxPyTreeCtrl * _arg0; |
1d99702e | 6735 | PyObject * _argo0 = 0; |
efc5f224 | 6736 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6737 | |
6738 | self = self; | |
efc5f224 | 6739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetImageList",_kwnames,&_argo0)) |
8ab979d7 | 6740 | return NULL; |
1d99702e RD |
6741 | if (_argo0) { |
6742 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6743 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6744 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6745 | return NULL; |
6746 | } | |
6747 | } | |
cf694132 RD |
6748 | { |
6749 | wxPy_BEGIN_ALLOW_THREADS; | |
6750 | _result = (wxImageList *)wxTreeCtrl_GetImageList(_arg0); | |
6751 | ||
6752 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6753 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 6754 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
6755 | return _resultobj; |
6756 | } | |
6757 | ||
d5c9047a | 6758 | #define wxTreeCtrl_GetStateImageList(_swigobj) (_swigobj->GetStateImageList()) |
efc5f224 | 6759 | static PyObject *_wrap_wxTreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6760 | PyObject * _resultobj; |
d5c9047a | 6761 | wxImageList * _result; |
f6bcfd97 | 6762 | wxPyTreeCtrl * _arg0; |
1d99702e | 6763 | PyObject * _argo0 = 0; |
efc5f224 | 6764 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6765 | |
6766 | self = self; | |
efc5f224 | 6767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetStateImageList",_kwnames,&_argo0)) |
8ab979d7 | 6768 | return NULL; |
1d99702e RD |
6769 | if (_argo0) { |
6770 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6771 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6772 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetStateImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6773 | return NULL; |
6774 | } | |
6775 | } | |
cf694132 RD |
6776 | { |
6777 | wxPy_BEGIN_ALLOW_THREADS; | |
6778 | _result = (wxImageList *)wxTreeCtrl_GetStateImageList(_arg0); | |
6779 | ||
6780 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6781 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 6782 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
6783 | return _resultobj; |
6784 | } | |
6785 | ||
d5c9047a | 6786 | #define wxTreeCtrl_SetImageList(_swigobj,_swigarg0) (_swigobj->SetImageList(_swigarg0)) |
efc5f224 | 6787 | static PyObject *_wrap_wxTreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6788 | PyObject * _resultobj; |
f6bcfd97 | 6789 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6790 | wxImageList * _arg1; |
1d99702e RD |
6791 | PyObject * _argo0 = 0; |
6792 | PyObject * _argo1 = 0; | |
efc5f224 | 6793 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
6794 | |
6795 | self = self; | |
efc5f224 | 6796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6797 | return NULL; |
1d99702e RD |
6798 | if (_argo0) { |
6799 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6800 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6801 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6802 | return NULL; |
6803 | } | |
6804 | } | |
1d99702e RD |
6805 | if (_argo1) { |
6806 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6807 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
d5c9047a RD |
6808 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetImageList. Expected _wxImageList_p."); |
6809 | return NULL; | |
6810 | } | |
6811 | } | |
cf694132 RD |
6812 | { |
6813 | wxPy_BEGIN_ALLOW_THREADS; | |
6814 | wxTreeCtrl_SetImageList(_arg0,_arg1); | |
6815 | ||
6816 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6817 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6818 | } Py_INCREF(Py_None); |
d5c9047a | 6819 | _resultobj = Py_None; |
8ab979d7 RD |
6820 | return _resultobj; |
6821 | } | |
6822 | ||
d5c9047a | 6823 | #define wxTreeCtrl_SetStateImageList(_swigobj,_swigarg0) (_swigobj->SetStateImageList(_swigarg0)) |
efc5f224 | 6824 | static PyObject *_wrap_wxTreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6825 | PyObject * _resultobj; |
f6bcfd97 | 6826 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6827 | wxImageList * _arg1; |
1d99702e RD |
6828 | PyObject * _argo0 = 0; |
6829 | PyObject * _argo1 = 0; | |
efc5f224 | 6830 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
6831 | |
6832 | self = self; | |
efc5f224 | 6833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetStateImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6834 | return NULL; |
1d99702e RD |
6835 | if (_argo0) { |
6836 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6837 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6838 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetStateImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6839 | return NULL; |
6840 | } | |
6841 | } | |
1d99702e RD |
6842 | if (_argo1) { |
6843 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6844 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
d5c9047a RD |
6845 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetStateImageList. Expected _wxImageList_p."); |
6846 | return NULL; | |
6847 | } | |
6848 | } | |
cf694132 RD |
6849 | { |
6850 | wxPy_BEGIN_ALLOW_THREADS; | |
6851 | wxTreeCtrl_SetStateImageList(_arg0,_arg1); | |
6852 | ||
6853 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6854 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6855 | } Py_INCREF(Py_None); |
d5c9047a | 6856 | _resultobj = Py_None; |
8ab979d7 RD |
6857 | return _resultobj; |
6858 | } | |
6859 | ||
aa2a5b86 RD |
6860 | #define wxTreeCtrl_AssignImageList(_swigobj,_swigarg0) (_swigobj->AssignImageList(_swigarg0)) |
6861 | static PyObject *_wrap_wxTreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6862 | PyObject * _resultobj; | |
6863 | wxPyTreeCtrl * _arg0; | |
6864 | wxImageList * _arg1; | |
6865 | PyObject * _argo0 = 0; | |
6866 | PyObject * _argo1 = 0; | |
6867 | char *_kwnames[] = { "self","imageList", NULL }; | |
6868 | ||
6869 | self = self; | |
6870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignImageList",_kwnames,&_argo0,&_argo1)) | |
6871 | return NULL; | |
6872 | if (_argo0) { | |
6873 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6874 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6875 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignImageList. Expected _wxPyTreeCtrl_p."); | |
6876 | return NULL; | |
6877 | } | |
6878 | } | |
6879 | if (_argo1) { | |
6880 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6881 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
6882 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignImageList. Expected _wxImageList_p."); | |
6883 | return NULL; | |
6884 | } | |
6885 | } | |
6886 | { | |
6887 | wxPy_BEGIN_ALLOW_THREADS; | |
6888 | wxTreeCtrl_AssignImageList(_arg0,_arg1); | |
6889 | ||
6890 | wxPy_END_ALLOW_THREADS; | |
6891 | if (PyErr_Occurred()) return NULL; | |
6892 | } Py_INCREF(Py_None); | |
6893 | _resultobj = Py_None; | |
6894 | return _resultobj; | |
6895 | } | |
6896 | ||
6897 | #define wxTreeCtrl_AssignStateImageList(_swigobj,_swigarg0) (_swigobj->AssignStateImageList(_swigarg0)) | |
6898 | static PyObject *_wrap_wxTreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6899 | PyObject * _resultobj; | |
6900 | wxPyTreeCtrl * _arg0; | |
6901 | wxImageList * _arg1; | |
6902 | PyObject * _argo0 = 0; | |
6903 | PyObject * _argo1 = 0; | |
6904 | char *_kwnames[] = { "self","imageList", NULL }; | |
6905 | ||
6906 | self = self; | |
6907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignStateImageList",_kwnames,&_argo0,&_argo1)) | |
6908 | return NULL; | |
6909 | if (_argo0) { | |
6910 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6911 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6912 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignStateImageList. Expected _wxPyTreeCtrl_p."); | |
6913 | return NULL; | |
6914 | } | |
6915 | } | |
6916 | if (_argo1) { | |
6917 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6918 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
6919 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignStateImageList. Expected _wxImageList_p."); | |
6920 | return NULL; | |
6921 | } | |
6922 | } | |
6923 | { | |
6924 | wxPy_BEGIN_ALLOW_THREADS; | |
6925 | wxTreeCtrl_AssignStateImageList(_arg0,_arg1); | |
6926 | ||
6927 | wxPy_END_ALLOW_THREADS; | |
6928 | if (PyErr_Occurred()) return NULL; | |
6929 | } Py_INCREF(Py_None); | |
6930 | _resultobj = Py_None; | |
6931 | return _resultobj; | |
6932 | } | |
6933 | ||
b1462dfa RD |
6934 | #define wxTreeCtrl_GetSpacing(_swigobj) (_swigobj->GetSpacing()) |
6935 | static PyObject *_wrap_wxTreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6936 | PyObject * _resultobj; | |
6937 | unsigned int _result; | |
f6bcfd97 | 6938 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
6939 | PyObject * _argo0 = 0; |
6940 | char *_kwnames[] = { "self", NULL }; | |
6941 | ||
6942 | self = self; | |
6943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSpacing",_kwnames,&_argo0)) | |
6944 | return NULL; | |
6945 | if (_argo0) { | |
6946 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6947 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6948 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSpacing. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
6949 | return NULL; |
6950 | } | |
6951 | } | |
6952 | { | |
6953 | wxPy_BEGIN_ALLOW_THREADS; | |
6954 | _result = (unsigned int )wxTreeCtrl_GetSpacing(_arg0); | |
6955 | ||
6956 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6957 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
6958 | } _resultobj = Py_BuildValue("i",_result); |
6959 | return _resultobj; | |
6960 | } | |
6961 | ||
6962 | #define wxTreeCtrl_SetSpacing(_swigobj,_swigarg0) (_swigobj->SetSpacing(_swigarg0)) | |
6963 | static PyObject *_wrap_wxTreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6964 | PyObject * _resultobj; | |
f6bcfd97 | 6965 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
6966 | unsigned int _arg1; |
6967 | PyObject * _argo0 = 0; | |
6968 | char *_kwnames[] = { "self","spacing", NULL }; | |
6969 | ||
6970 | self = self; | |
6971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetSpacing",_kwnames,&_argo0,&_arg1)) | |
6972 | return NULL; | |
6973 | if (_argo0) { | |
6974 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6975 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6976 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetSpacing. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
6977 | return NULL; |
6978 | } | |
6979 | } | |
6980 | { | |
6981 | wxPy_BEGIN_ALLOW_THREADS; | |
6982 | wxTreeCtrl_SetSpacing(_arg0,_arg1); | |
6983 | ||
6984 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6985 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
6986 | } Py_INCREF(Py_None); |
6987 | _resultobj = Py_None; | |
6988 | return _resultobj; | |
6989 | } | |
6990 | ||
d5c9047a | 6991 | #define wxTreeCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) |
efc5f224 | 6992 | static PyObject *_wrap_wxTreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6993 | PyObject * _resultobj; |
d5c9047a | 6994 | wxString * _result; |
f6bcfd97 | 6995 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6996 | wxTreeItemId * _arg1; |
1d99702e RD |
6997 | PyObject * _argo0 = 0; |
6998 | PyObject * _argo1 = 0; | |
efc5f224 | 6999 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7000 | |
7001 | self = self; | |
efc5f224 | 7002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemText",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7003 | return NULL; |
1d99702e RD |
7004 | if (_argo0) { |
7005 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7006 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7007 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemText. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7008 | return NULL; |
7009 | } | |
7010 | } | |
1d99702e RD |
7011 | if (_argo1) { |
7012 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7013 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7014 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemText. Expected _wxTreeItemId_p."); |
7015 | return NULL; | |
7016 | } | |
7017 | } | |
d5c9047a | 7018 | { |
cf694132 RD |
7019 | wxPy_BEGIN_ALLOW_THREADS; |
7020 | _result = new wxString (wxTreeCtrl_GetItemText(_arg0,*_arg1)); | |
7021 | ||
7022 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7023 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7024 | }{ |
eec92d76 | 7025 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
d5c9047a RD |
7026 | } |
7027 | { | |
7028 | delete _result; | |
7029 | } | |
8ab979d7 RD |
7030 | return _resultobj; |
7031 | } | |
7032 | ||
694759cf | 7033 | #define wxTreeCtrl_GetItemImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemImage(_swigarg0,_swigarg1)) |
efc5f224 | 7034 | static PyObject *_wrap_wxTreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7035 | PyObject * _resultobj; |
d5c9047a | 7036 | int _result; |
f6bcfd97 | 7037 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7038 | wxTreeItemId * _arg1; |
694759cf | 7039 | wxTreeItemIcon _arg2 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); |
1d99702e RD |
7040 | PyObject * _argo0 = 0; |
7041 | PyObject * _argo1 = 0; | |
694759cf | 7042 | char *_kwnames[] = { "self","item","which", NULL }; |
8ab979d7 RD |
7043 | |
7044 | self = self; | |
694759cf | 7045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetItemImage",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 7046 | return NULL; |
1d99702e RD |
7047 | if (_argo0) { |
7048 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7049 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7050 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7051 | return NULL; |
7052 | } | |
7053 | } | |
1d99702e RD |
7054 | if (_argo1) { |
7055 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7056 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7057 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemImage. Expected _wxTreeItemId_p."); |
7058 | return NULL; | |
7059 | } | |
7060 | } | |
cf694132 RD |
7061 | { |
7062 | wxPy_BEGIN_ALLOW_THREADS; | |
694759cf | 7063 | _result = (int )wxTreeCtrl_GetItemImage(_arg0,*_arg1,_arg2); |
cf694132 RD |
7064 | |
7065 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7066 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7067 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7068 | return _resultobj; |
7069 | } | |
7070 | ||
d5c9047a | 7071 | #define wxTreeCtrl_GetItemSelectedImage(_swigobj,_swigarg0) (_swigobj->GetItemSelectedImage(_swigarg0)) |
efc5f224 | 7072 | static PyObject *_wrap_wxTreeCtrl_GetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7073 | PyObject * _resultobj; |
d5c9047a | 7074 | int _result; |
f6bcfd97 | 7075 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7076 | wxTreeItemId * _arg1; |
1d99702e RD |
7077 | PyObject * _argo0 = 0; |
7078 | PyObject * _argo1 = 0; | |
efc5f224 | 7079 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7080 | |
7081 | self = self; | |
efc5f224 | 7082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemSelectedImage",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7083 | return NULL; |
1d99702e RD |
7084 | if (_argo0) { |
7085 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7086 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7087 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7088 | return NULL; |
7089 | } | |
7090 | } | |
1d99702e RD |
7091 | if (_argo1) { |
7092 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7093 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7094 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemSelectedImage. Expected _wxTreeItemId_p."); |
7095 | return NULL; | |
7096 | } | |
7097 | } | |
cf694132 RD |
7098 | { |
7099 | wxPy_BEGIN_ALLOW_THREADS; | |
7100 | _result = (int )wxTreeCtrl_GetItemSelectedImage(_arg0,*_arg1); | |
8ab979d7 | 7101 | |
cf694132 | 7102 | wxPy_END_ALLOW_THREADS; |
4dfaa61e | 7103 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7104 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7105 | return _resultobj; |
7106 | } | |
7107 | ||
d5c9047a | 7108 | #define wxTreeCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) |
efc5f224 | 7109 | static PyObject *_wrap_wxTreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7110 | PyObject * _resultobj; |
f6bcfd97 | 7111 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7112 | wxTreeItemId * _arg1; |
7113 | wxString * _arg2; | |
1d99702e RD |
7114 | PyObject * _argo0 = 0; |
7115 | PyObject * _argo1 = 0; | |
d5c9047a | 7116 | PyObject * _obj2 = 0; |
efc5f224 | 7117 | char *_kwnames[] = { "self","item","text", NULL }; |
8ab979d7 RD |
7118 | |
7119 | self = self; | |
efc5f224 | 7120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemText",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 7121 | return NULL; |
1d99702e RD |
7122 | if (_argo0) { |
7123 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7124 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7125 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemText. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7126 | return NULL; |
7127 | } | |
7128 | } | |
1d99702e RD |
7129 | if (_argo1) { |
7130 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7131 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7132 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemText. Expected _wxTreeItemId_p."); |
7133 | return NULL; | |
7134 | } | |
7135 | } | |
7136 | { | |
2cd2fac8 RD |
7137 | #if PYTHON_API_VERSION >= 1009 |
7138 | char* tmpPtr; int tmpSize; | |
7139 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 7140 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
7141 | return NULL; |
7142 | } | |
7143 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7144 | return NULL; | |
7145 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7146 | #else | |
d5c9047a RD |
7147 | if (!PyString_Check(_obj2)) { |
7148 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7149 | return NULL; | |
7150 | } | |
2cd2fac8 RD |
7151 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7152 | #endif | |
d5c9047a | 7153 | } |
cf694132 RD |
7154 | { |
7155 | wxPy_BEGIN_ALLOW_THREADS; | |
7156 | wxTreeCtrl_SetItemText(_arg0,*_arg1,*_arg2); | |
7157 | ||
7158 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7159 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7160 | } Py_INCREF(Py_None); |
d5c9047a RD |
7161 | _resultobj = Py_None; |
7162 | { | |
7163 | if (_obj2) | |
7164 | delete _arg2; | |
7165 | } | |
8ab979d7 RD |
7166 | return _resultobj; |
7167 | } | |
7168 | ||
694759cf | 7169 | #define wxTreeCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 7170 | static PyObject *_wrap_wxTreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7171 | PyObject * _resultobj; |
f6bcfd97 | 7172 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7173 | wxTreeItemId * _arg1; |
7174 | int _arg2; | |
694759cf | 7175 | wxTreeItemIcon _arg3 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); |
1d99702e RD |
7176 | PyObject * _argo0 = 0; |
7177 | PyObject * _argo1 = 0; | |
694759cf | 7178 | char *_kwnames[] = { "self","item","image","which", NULL }; |
8ab979d7 RD |
7179 | |
7180 | self = self; | |
694759cf | 7181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|i:wxTreeCtrl_SetItemImage",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8ab979d7 | 7182 | return NULL; |
1d99702e RD |
7183 | if (_argo0) { |
7184 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7185 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7186 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7187 | return NULL; |
7188 | } | |
7189 | } | |
1d99702e RD |
7190 | if (_argo1) { |
7191 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7192 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7193 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemImage. Expected _wxTreeItemId_p."); |
7194 | return NULL; | |
7195 | } | |
7196 | } | |
cf694132 RD |
7197 | { |
7198 | wxPy_BEGIN_ALLOW_THREADS; | |
694759cf | 7199 | wxTreeCtrl_SetItemImage(_arg0,*_arg1,_arg2,_arg3); |
cf694132 RD |
7200 | |
7201 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7202 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7203 | } Py_INCREF(Py_None); |
d5c9047a | 7204 | _resultobj = Py_None; |
8ab979d7 RD |
7205 | return _resultobj; |
7206 | } | |
7207 | ||
d5c9047a | 7208 | #define wxTreeCtrl_SetItemSelectedImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemSelectedImage(_swigarg0,_swigarg1)) |
efc5f224 | 7209 | static PyObject *_wrap_wxTreeCtrl_SetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7210 | PyObject * _resultobj; |
f6bcfd97 | 7211 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7212 | wxTreeItemId * _arg1; |
7213 | int _arg2; | |
1d99702e RD |
7214 | PyObject * _argo0 = 0; |
7215 | PyObject * _argo1 = 0; | |
efc5f224 | 7216 | char *_kwnames[] = { "self","item","image", NULL }; |
8ab979d7 RD |
7217 | |
7218 | self = self; | |
efc5f224 | 7219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxTreeCtrl_SetItemSelectedImage",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 7220 | return NULL; |
1d99702e RD |
7221 | if (_argo0) { |
7222 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7223 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7224 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7225 | return NULL; |
7226 | } | |
7227 | } | |
1d99702e RD |
7228 | if (_argo1) { |
7229 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7230 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7231 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemSelectedImage. Expected _wxTreeItemId_p."); |
7232 | return NULL; | |
7233 | } | |
7234 | } | |
cf694132 RD |
7235 | { |
7236 | wxPy_BEGIN_ALLOW_THREADS; | |
7237 | wxTreeCtrl_SetItemSelectedImage(_arg0,*_arg1,_arg2); | |
7238 | ||
7239 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7240 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
7241 | } Py_INCREF(Py_None); |
7242 | _resultobj = Py_None; | |
7243 | return _resultobj; | |
7244 | } | |
7245 | ||
7246 | #define wxTreeCtrl_SetItemHasChildren(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemHasChildren(_swigarg0,_swigarg1)) | |
efc5f224 | 7247 | static PyObject *_wrap_wxTreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 | 7248 | PyObject * _resultobj; |
f6bcfd97 | 7249 | wxPyTreeCtrl * _arg0; |
cf694132 | 7250 | wxTreeItemId * _arg1; |
1d99702e RD |
7251 | bool _arg2 = (bool ) TRUE; |
7252 | PyObject * _argo0 = 0; | |
7253 | PyObject * _argo1 = 0; | |
7254 | int tempbool2 = (int) TRUE; | |
efc5f224 | 7255 | char *_kwnames[] = { "self","item","hasChildren", NULL }; |
cf694132 RD |
7256 | |
7257 | self = self; | |
efc5f224 | 7258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemHasChildren",_kwnames,&_argo0,&_argo1,&tempbool2)) |
cf694132 | 7259 | return NULL; |
1d99702e RD |
7260 | if (_argo0) { |
7261 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7262 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7263 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
7264 | return NULL; |
7265 | } | |
7266 | } | |
1d99702e RD |
7267 | if (_argo1) { |
7268 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7269 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
7270 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemHasChildren. Expected _wxTreeItemId_p."); |
7271 | return NULL; | |
7272 | } | |
7273 | } | |
7274 | _arg2 = (bool ) tempbool2; | |
7275 | { | |
7276 | wxPy_BEGIN_ALLOW_THREADS; | |
7277 | wxTreeCtrl_SetItemHasChildren(_arg0,*_arg1,_arg2); | |
7278 | ||
7279 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7280 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7281 | } Py_INCREF(Py_None); |
d5c9047a | 7282 | _resultobj = Py_None; |
8ab979d7 RD |
7283 | return _resultobj; |
7284 | } | |
7285 | ||
f6bcfd97 | 7286 | static wxPyTreeItemData * wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item) { |
cf694132 RD |
7287 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
7288 | if (data == NULL) { | |
7289 | data = new wxPyTreeItemData(); | |
f6bcfd97 | 7290 | data->SetId(item); // set the id |
cf694132 RD |
7291 | self->SetItemData(item, data); |
7292 | } | |
7293 | return data; | |
7294 | } | |
efc5f224 | 7295 | static PyObject *_wrap_wxTreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
7296 | PyObject * _resultobj; |
7297 | wxPyTreeItemData * _result; | |
f6bcfd97 | 7298 | wxPyTreeCtrl * _arg0; |
cf694132 | 7299 | wxTreeItemId * _arg1; |
1d99702e RD |
7300 | PyObject * _argo0 = 0; |
7301 | PyObject * _argo1 = 0; | |
efc5f224 | 7302 | char *_kwnames[] = { "self","item", NULL }; |
cf694132 RD |
7303 | char _ptemp[128]; |
7304 | ||
7305 | self = self; | |
efc5f224 | 7306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemData",_kwnames,&_argo0,&_argo1)) |
cf694132 | 7307 | return NULL; |
1d99702e RD |
7308 | if (_argo0) { |
7309 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7310 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7311 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemData. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
7312 | return NULL; |
7313 | } | |
7314 | } | |
1d99702e RD |
7315 | if (_argo1) { |
7316 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7317 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
7318 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemData. Expected _wxTreeItemId_p."); |
7319 | return NULL; | |
7320 | } | |
7321 | } | |
7322 | { | |
7323 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 7324 | _result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(_arg0,*_arg1); |
cf694132 RD |
7325 | |
7326 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7327 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
7328 | } if (_result) { |
7329 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
7330 | _resultobj = Py_BuildValue("s",_ptemp); | |
7331 | } else { | |
7332 | Py_INCREF(Py_None); | |
7333 | _resultobj = Py_None; | |
7334 | } | |
cf694132 RD |
7335 | return _resultobj; |
7336 | } | |
7337 | ||
f6bcfd97 BP |
7338 | static void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item,wxPyTreeItemData * data) { |
7339 | data->SetId(item); // set the id | |
7340 | self->SetItemData(item, data); | |
c368d904 | 7341 | } |
efc5f224 | 7342 | static PyObject *_wrap_wxTreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7343 | PyObject * _resultobj; |
f6bcfd97 | 7344 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7345 | wxTreeItemId * _arg1; |
cf694132 | 7346 | wxPyTreeItemData * _arg2; |
1d99702e RD |
7347 | PyObject * _argo0 = 0; |
7348 | PyObject * _argo1 = 0; | |
7349 | PyObject * _argo2 = 0; | |
efc5f224 | 7350 | char *_kwnames[] = { "self","item","data", NULL }; |
8ab979d7 RD |
7351 | |
7352 | self = self; | |
efc5f224 | 7353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemData",_kwnames,&_argo0,&_argo1,&_argo2)) |
8ab979d7 | 7354 | return NULL; |
1d99702e RD |
7355 | if (_argo0) { |
7356 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7357 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7358 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemData. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7359 | return NULL; |
7360 | } | |
7361 | } | |
1d99702e RD |
7362 | if (_argo1) { |
7363 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7364 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7365 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemData. Expected _wxTreeItemId_p."); |
7366 | return NULL; | |
7367 | } | |
7368 | } | |
1d99702e RD |
7369 | if (_argo2) { |
7370 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7371 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyTreeItemData_p")) { | |
cf694132 | 7372 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemData. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
7373 | return NULL; |
7374 | } | |
7375 | } | |
cf694132 RD |
7376 | { |
7377 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 7378 | wxPyTreeCtrl_SetItemData(_arg0,*_arg1,_arg2); |
cf694132 RD |
7379 | |
7380 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7381 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7382 | } Py_INCREF(Py_None); |
d5c9047a | 7383 | _resultobj = Py_None; |
8ab979d7 RD |
7384 | return _resultobj; |
7385 | } | |
7386 | ||
f6bcfd97 | 7387 | static PyObject * wxPyTreeCtrl_GetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item) { |
cf694132 RD |
7388 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
7389 | if (data == NULL) { | |
7390 | data = new wxPyTreeItemData(); | |
f6bcfd97 | 7391 | data->SetId(item); // set the id |
cf694132 RD |
7392 | self->SetItemData(item, data); |
7393 | } | |
7394 | return data->GetData(); | |
c368d904 | 7395 | } |
efc5f224 | 7396 | static PyObject *_wrap_wxTreeCtrl_GetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 | 7397 | PyObject * _resultobj; |
cf694132 | 7398 | PyObject * _result; |
f6bcfd97 | 7399 | wxPyTreeCtrl * _arg0; |
08127323 | 7400 | wxTreeItemId * _arg1; |
1d99702e RD |
7401 | PyObject * _argo0 = 0; |
7402 | PyObject * _argo1 = 0; | |
efc5f224 | 7403 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
7404 | |
7405 | self = self; | |
efc5f224 | 7406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPyData",_kwnames,&_argo0,&_argo1)) |
08127323 | 7407 | return NULL; |
1d99702e RD |
7408 | if (_argo0) { |
7409 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7410 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPyData. Expected _wxPyTreeCtrl_p."); | |
08127323 RD |
7412 | return NULL; |
7413 | } | |
7414 | } | |
1d99702e RD |
7415 | if (_argo1) { |
7416 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7417 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 | 7418 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPyData. Expected _wxTreeItemId_p."); |
08127323 RD |
7419 | return NULL; |
7420 | } | |
7421 | } | |
cf694132 RD |
7422 | { |
7423 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 7424 | _result = (PyObject *)wxPyTreeCtrl_GetPyData(_arg0,*_arg1); |
cf694132 RD |
7425 | |
7426 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7427 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
7428 | }{ |
7429 | _resultobj = _result; | |
7430 | } | |
7431 | return _resultobj; | |
7432 | } | |
7433 | ||
f6bcfd97 | 7434 | static void wxPyTreeCtrl_SetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item,PyObject * obj) { |
cf694132 RD |
7435 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
7436 | if (data == NULL) { | |
7437 | data = new wxPyTreeItemData(obj); | |
f6bcfd97 | 7438 | data->SetId(item); // set the id |
cf694132 RD |
7439 | self->SetItemData(item, data); |
7440 | } else | |
7441 | data->SetData(obj); | |
c368d904 | 7442 | } |
efc5f224 | 7443 | static PyObject *_wrap_wxTreeCtrl_SetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 | 7444 | PyObject * _resultobj; |
f6bcfd97 | 7445 | wxPyTreeCtrl * _arg0; |
cf694132 RD |
7446 | wxTreeItemId * _arg1; |
7447 | PyObject * _arg2; | |
1d99702e RD |
7448 | PyObject * _argo0 = 0; |
7449 | PyObject * _argo1 = 0; | |
cf694132 | 7450 | PyObject * _obj2 = 0; |
efc5f224 | 7451 | char *_kwnames[] = { "self","item","obj", NULL }; |
cf694132 RD |
7452 | |
7453 | self = self; | |
efc5f224 | 7454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetPyData",_kwnames,&_argo0,&_argo1,&_obj2)) |
cf694132 | 7455 | return NULL; |
1d99702e RD |
7456 | if (_argo0) { |
7457 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7458 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7459 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetPyData. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
7460 | return NULL; |
7461 | } | |
7462 | } | |
1d99702e RD |
7463 | if (_argo1) { |
7464 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7465 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
7466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetPyData. Expected _wxTreeItemId_p."); |
7467 | return NULL; | |
7468 | } | |
7469 | } | |
7470 | { | |
7471 | _arg2 = _obj2; | |
7472 | } | |
7473 | { | |
7474 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 7475 | wxPyTreeCtrl_SetPyData(_arg0,*_arg1,_arg2); |
cf694132 RD |
7476 | |
7477 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7478 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7479 | } Py_INCREF(Py_None); |
08127323 RD |
7480 | _resultobj = Py_None; |
7481 | return _resultobj; | |
7482 | } | |
7483 | ||
d5c9047a | 7484 | #define wxTreeCtrl_IsVisible(_swigobj,_swigarg0) (_swigobj->IsVisible(_swigarg0)) |
efc5f224 | 7485 | static PyObject *_wrap_wxTreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7486 | PyObject * _resultobj; |
d5c9047a | 7487 | bool _result; |
f6bcfd97 | 7488 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7489 | wxTreeItemId * _arg1; |
1d99702e RD |
7490 | PyObject * _argo0 = 0; |
7491 | PyObject * _argo1 = 0; | |
efc5f224 | 7492 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7493 | |
7494 | self = self; | |
efc5f224 | 7495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7496 | return NULL; |
1d99702e RD |
7497 | if (_argo0) { |
7498 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7499 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7500 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7501 | return NULL; |
7502 | } | |
7503 | } | |
1d99702e RD |
7504 | if (_argo1) { |
7505 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7506 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7507 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsVisible. Expected _wxTreeItemId_p."); |
7508 | return NULL; | |
7509 | } | |
7510 | } | |
cf694132 RD |
7511 | { |
7512 | wxPy_BEGIN_ALLOW_THREADS; | |
7513 | _result = (bool )wxTreeCtrl_IsVisible(_arg0,*_arg1); | |
7514 | ||
7515 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7516 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7517 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7518 | return _resultobj; |
7519 | } | |
7520 | ||
d5c9047a | 7521 | #define wxTreeCtrl_ItemHasChildren(_swigobj,_swigarg0) (_swigobj->ItemHasChildren(_swigarg0)) |
efc5f224 | 7522 | static PyObject *_wrap_wxTreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7523 | PyObject * _resultobj; |
d5c9047a | 7524 | bool _result; |
f6bcfd97 | 7525 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7526 | wxTreeItemId * _arg1; |
1d99702e RD |
7527 | PyObject * _argo0 = 0; |
7528 | PyObject * _argo1 = 0; | |
efc5f224 | 7529 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7530 | |
7531 | self = self; | |
efc5f224 | 7532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ItemHasChildren",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7533 | return NULL; |
1d99702e RD |
7534 | if (_argo0) { |
7535 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7536 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7537 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7538 | return NULL; |
7539 | } | |
7540 | } | |
1d99702e RD |
7541 | if (_argo1) { |
7542 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7543 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ItemHasChildren. Expected _wxTreeItemId_p."); |
7545 | return NULL; | |
7546 | } | |
7547 | } | |
cf694132 RD |
7548 | { |
7549 | wxPy_BEGIN_ALLOW_THREADS; | |
7550 | _result = (bool )wxTreeCtrl_ItemHasChildren(_arg0,*_arg1); | |
7551 | ||
7552 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7553 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7554 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7555 | return _resultobj; |
7556 | } | |
7557 | ||
d5c9047a | 7558 | #define wxTreeCtrl_IsExpanded(_swigobj,_swigarg0) (_swigobj->IsExpanded(_swigarg0)) |
efc5f224 | 7559 | static PyObject *_wrap_wxTreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7560 | PyObject * _resultobj; |
d5c9047a | 7561 | bool _result; |
f6bcfd97 | 7562 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7563 | wxTreeItemId * _arg1; |
1d99702e RD |
7564 | PyObject * _argo0 = 0; |
7565 | PyObject * _argo1 = 0; | |
efc5f224 | 7566 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7567 | |
7568 | self = self; | |
efc5f224 | 7569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsExpanded",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7570 | return NULL; |
1d99702e RD |
7571 | if (_argo0) { |
7572 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7573 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7574 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsExpanded. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7575 | return NULL; |
7576 | } | |
7577 | } | |
1d99702e RD |
7578 | if (_argo1) { |
7579 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7580 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7581 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsExpanded. Expected _wxTreeItemId_p."); |
7582 | return NULL; | |
7583 | } | |
7584 | } | |
cf694132 RD |
7585 | { |
7586 | wxPy_BEGIN_ALLOW_THREADS; | |
7587 | _result = (bool )wxTreeCtrl_IsExpanded(_arg0,*_arg1); | |
7588 | ||
7589 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7590 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7591 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7592 | return _resultobj; |
7593 | } | |
7594 | ||
d5c9047a | 7595 | #define wxTreeCtrl_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) |
efc5f224 | 7596 | static PyObject *_wrap_wxTreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7597 | PyObject * _resultobj; |
d5c9047a | 7598 | bool _result; |
f6bcfd97 | 7599 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7600 | wxTreeItemId * _arg1; |
1d99702e RD |
7601 | PyObject * _argo0 = 0; |
7602 | PyObject * _argo1 = 0; | |
efc5f224 | 7603 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7604 | |
7605 | self = self; | |
efc5f224 | 7606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsSelected",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7607 | return NULL; |
1d99702e RD |
7608 | if (_argo0) { |
7609 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7610 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsSelected. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7612 | return NULL; |
7613 | } | |
7614 | } | |
1d99702e RD |
7615 | if (_argo1) { |
7616 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7617 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7618 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsSelected. Expected _wxTreeItemId_p."); |
7619 | return NULL; | |
7620 | } | |
7621 | } | |
cf694132 RD |
7622 | { |
7623 | wxPy_BEGIN_ALLOW_THREADS; | |
7624 | _result = (bool )wxTreeCtrl_IsSelected(_arg0,*_arg1); | |
7625 | ||
7626 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7627 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7628 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7629 | return _resultobj; |
7630 | } | |
7631 | ||
7632 | #define wxTreeCtrl_GetRootItem(_swigobj) (_swigobj->GetRootItem()) | |
efc5f224 | 7633 | static PyObject *_wrap_wxTreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7634 | PyObject * _resultobj; |
d5c9047a | 7635 | wxTreeItemId * _result; |
f6bcfd97 | 7636 | wxPyTreeCtrl * _arg0; |
1d99702e | 7637 | PyObject * _argo0 = 0; |
efc5f224 | 7638 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 7639 | char _ptemp[128]; |
8ab979d7 RD |
7640 | |
7641 | self = self; | |
efc5f224 | 7642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetRootItem",_kwnames,&_argo0)) |
8ab979d7 | 7643 | return NULL; |
1d99702e RD |
7644 | if (_argo0) { |
7645 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7646 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7647 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetRootItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7648 | return NULL; |
7649 | } | |
7650 | } | |
cf694132 RD |
7651 | { |
7652 | wxPy_BEGIN_ALLOW_THREADS; | |
7653 | _result = new wxTreeItemId (wxTreeCtrl_GetRootItem(_arg0)); | |
7654 | ||
7655 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7656 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7657 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7658 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7659 | return _resultobj; |
7660 | } | |
7661 | ||
7662 | #define wxTreeCtrl_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
efc5f224 | 7663 | static PyObject *_wrap_wxTreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7664 | PyObject * _resultobj; |
d5c9047a | 7665 | wxTreeItemId * _result; |
f6bcfd97 | 7666 | wxPyTreeCtrl * _arg0; |
1d99702e | 7667 | PyObject * _argo0 = 0; |
efc5f224 | 7668 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 7669 | char _ptemp[128]; |
8ab979d7 RD |
7670 | |
7671 | self = self; | |
efc5f224 | 7672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelection",_kwnames,&_argo0)) |
8ab979d7 | 7673 | return NULL; |
1d99702e RD |
7674 | if (_argo0) { |
7675 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7676 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7677 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelection. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7678 | return NULL; |
7679 | } | |
7680 | } | |
cf694132 RD |
7681 | { |
7682 | wxPy_BEGIN_ALLOW_THREADS; | |
7683 | _result = new wxTreeItemId (wxTreeCtrl_GetSelection(_arg0)); | |
7684 | ||
7685 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7686 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7687 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7688 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7689 | return _resultobj; |
7690 | } | |
7691 | ||
eb715945 RD |
7692 | #define wxTreeCtrl_GetItemParent(_swigobj,_swigarg0) (_swigobj->GetParent(_swigarg0)) |
7693 | static PyObject *_wrap_wxTreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7694 | PyObject * _resultobj; |
d5c9047a | 7695 | wxTreeItemId * _result; |
f6bcfd97 | 7696 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7697 | wxTreeItemId * _arg1; |
1d99702e RD |
7698 | PyObject * _argo0 = 0; |
7699 | PyObject * _argo1 = 0; | |
efc5f224 | 7700 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7701 | char _ptemp[128]; |
8ab979d7 RD |
7702 | |
7703 | self = self; | |
eb715945 | 7704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7705 | return NULL; |
1d99702e RD |
7706 | if (_argo0) { |
7707 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7708 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7709 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemParent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7710 | return NULL; |
7711 | } | |
7712 | } | |
1d99702e RD |
7713 | if (_argo1) { |
7714 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7715 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
eb715945 | 7716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemParent. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
7717 | return NULL; |
7718 | } | |
7719 | } | |
cf694132 RD |
7720 | { |
7721 | wxPy_BEGIN_ALLOW_THREADS; | |
eb715945 | 7722 | _result = new wxTreeItemId (wxTreeCtrl_GetItemParent(_arg0,*_arg1)); |
cf694132 RD |
7723 | |
7724 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7725 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7726 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7727 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7728 | return _resultobj; |
7729 | } | |
7730 | ||
f6bcfd97 | 7731 | static PyObject * wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self) { |
059a841c | 7732 | wxPyTState* state = wxPyBeginBlockThreads(); |
d426c97e RD |
7733 | PyObject* rval = PyList_New(0); |
7734 | wxArrayTreeItemIds array; | |
7735 | size_t num, x; | |
7736 | num = self->GetSelections(array); | |
7737 | for (x=0; x < num; x++) { | |
c368d904 RD |
7738 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); |
7739 | PyObject* item = wxPyConstructObject((void*)tii, "wxTreeItemId", TRUE); | |
d426c97e RD |
7740 | PyList_Append(rval, item); |
7741 | } | |
059a841c | 7742 | wxPyEndBlockThreads(state); |
d426c97e RD |
7743 | return rval; |
7744 | } | |
7745 | static PyObject *_wrap_wxTreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7746 | PyObject * _resultobj; | |
7747 | PyObject * _result; | |
f6bcfd97 | 7748 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
7749 | PyObject * _argo0 = 0; |
7750 | char *_kwnames[] = { "self", NULL }; | |
7751 | ||
7752 | self = self; | |
7753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelections",_kwnames,&_argo0)) | |
7754 | return NULL; | |
7755 | if (_argo0) { | |
7756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelections. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
7759 | return NULL; |
7760 | } | |
7761 | } | |
7762 | { | |
7763 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 7764 | _result = (PyObject *)wxPyTreeCtrl_GetSelections(_arg0); |
d426c97e RD |
7765 | |
7766 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7767 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
7768 | }{ |
7769 | _resultobj = _result; | |
7770 | } | |
7771 | return _resultobj; | |
7772 | } | |
7773 | ||
bb0054cd | 7774 | #define wxTreeCtrl_GetChildrenCount(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetChildrenCount(_swigarg0,_swigarg1)) |
efc5f224 | 7775 | static PyObject *_wrap_wxTreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
7776 | PyObject * _resultobj; |
7777 | size_t _result; | |
f6bcfd97 | 7778 | wxPyTreeCtrl * _arg0; |
bb0054cd | 7779 | wxTreeItemId * _arg1; |
1d99702e RD |
7780 | bool _arg2 = (bool ) TRUE; |
7781 | PyObject * _argo0 = 0; | |
7782 | PyObject * _argo1 = 0; | |
7783 | int tempbool2 = (int) TRUE; | |
efc5f224 | 7784 | char *_kwnames[] = { "self","item","recursively", NULL }; |
bb0054cd RD |
7785 | |
7786 | self = self; | |
efc5f224 | 7787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetChildrenCount",_kwnames,&_argo0,&_argo1,&tempbool2)) |
bb0054cd | 7788 | return NULL; |
1d99702e RD |
7789 | if (_argo0) { |
7790 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7791 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7792 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetChildrenCount. Expected _wxPyTreeCtrl_p."); | |
bb0054cd RD |
7793 | return NULL; |
7794 | } | |
7795 | } | |
1d99702e RD |
7796 | if (_argo1) { |
7797 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7798 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
bb0054cd RD |
7799 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetChildrenCount. Expected _wxTreeItemId_p."); |
7800 | return NULL; | |
7801 | } | |
7802 | } | |
7803 | _arg2 = (bool ) tempbool2; | |
7804 | { | |
7805 | wxPy_BEGIN_ALLOW_THREADS; | |
7806 | _result = (size_t )wxTreeCtrl_GetChildrenCount(_arg0,*_arg1,_arg2); | |
7807 | ||
7808 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7809 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
7810 | } _resultobj = Py_BuildValue("i",_result); |
7811 | return _resultobj; | |
7812 | } | |
7813 | ||
d5c9047a | 7814 | #define wxTreeCtrl_GetFirstChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetFirstChild(_swigarg0,_swigarg1)) |
efc5f224 | 7815 | static PyObject *_wrap_wxTreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7816 | PyObject * _resultobj; |
d5c9047a | 7817 | wxTreeItemId * _result; |
f6bcfd97 | 7818 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7819 | wxTreeItemId * _arg1; |
7820 | long * _arg2; | |
1d99702e RD |
7821 | PyObject * _argo0 = 0; |
7822 | PyObject * _argo1 = 0; | |
d5c9047a RD |
7823 | long temp; |
7824 | PyObject * _obj2 = 0; | |
efc5f224 | 7825 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 7826 | char _ptemp[128]; |
8ab979d7 RD |
7827 | |
7828 | self = self; | |
efc5f224 | 7829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetFirstChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 7830 | return NULL; |
1d99702e RD |
7831 | if (_argo0) { |
7832 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7833 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7834 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstChild. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7835 | return NULL; |
7836 | } | |
7837 | } | |
1d99702e RD |
7838 | if (_argo1) { |
7839 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7840 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 7841 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetFirstChild. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
7842 | return NULL; |
7843 | } | |
7844 | } | |
d5c9047a RD |
7845 | { |
7846 | temp = (long) PyInt_AsLong(_obj2); | |
7847 | _arg2 = &temp; | |
7848 | } | |
cf694132 RD |
7849 | { |
7850 | wxPy_BEGIN_ALLOW_THREADS; | |
7851 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstChild(_arg0,*_arg1,*_arg2)); | |
7852 | ||
7853 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7854 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7855 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
7856 | _resultobj = Py_BuildValue("s",_ptemp); |
7857 | { | |
7858 | PyObject *o; | |
7859 | o = PyInt_FromLong((long) (*_arg2)); | |
7860 | _resultobj = t_output_helper(_resultobj, o); | |
7861 | } | |
8ab979d7 RD |
7862 | return _resultobj; |
7863 | } | |
7864 | ||
d5c9047a | 7865 | #define wxTreeCtrl_GetNextChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetNextChild(_swigarg0,_swigarg1)) |
efc5f224 | 7866 | static PyObject *_wrap_wxTreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7867 | PyObject * _resultobj; |
d5c9047a | 7868 | wxTreeItemId * _result; |
f6bcfd97 | 7869 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7870 | wxTreeItemId * _arg1; |
7871 | long * _arg2; | |
1d99702e RD |
7872 | PyObject * _argo0 = 0; |
7873 | PyObject * _argo1 = 0; | |
d5c9047a | 7874 | long temp; |
8ab979d7 | 7875 | PyObject * _obj2 = 0; |
efc5f224 | 7876 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 7877 | char _ptemp[128]; |
8ab979d7 RD |
7878 | |
7879 | self = self; | |
efc5f224 | 7880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetNextChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 7881 | return NULL; |
1d99702e RD |
7882 | if (_argo0) { |
7883 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7884 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextChild. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7886 | return NULL; |
7887 | } | |
7888 | } | |
1d99702e RD |
7889 | if (_argo1) { |
7890 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7891 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 7892 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextChild. Expected _wxTreeItemId_p."); |
8ab979d7 | 7893 | return NULL; |
d5c9047a | 7894 | } |
8ab979d7 | 7895 | } |
d5c9047a RD |
7896 | { |
7897 | temp = (long) PyInt_AsLong(_obj2); | |
7898 | _arg2 = &temp; | |
8ab979d7 | 7899 | } |
cf694132 RD |
7900 | { |
7901 | wxPy_BEGIN_ALLOW_THREADS; | |
7902 | _result = new wxTreeItemId (wxTreeCtrl_GetNextChild(_arg0,*_arg1,*_arg2)); | |
7903 | ||
7904 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7905 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7906 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7907 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 | 7908 | { |
d5c9047a RD |
7909 | PyObject *o; |
7910 | o = PyInt_FromLong((long) (*_arg2)); | |
7911 | _resultobj = t_output_helper(_resultobj, o); | |
8ab979d7 RD |
7912 | } |
7913 | return _resultobj; | |
7914 | } | |
7915 | ||
d5c9047a | 7916 | #define wxTreeCtrl_GetNextSibling(_swigobj,_swigarg0) (_swigobj->GetNextSibling(_swigarg0)) |
efc5f224 | 7917 | static PyObject *_wrap_wxTreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7918 | PyObject * _resultobj; |
d5c9047a | 7919 | wxTreeItemId * _result; |
f6bcfd97 | 7920 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7921 | wxTreeItemId * _arg1; |
1d99702e RD |
7922 | PyObject * _argo0 = 0; |
7923 | PyObject * _argo1 = 0; | |
efc5f224 | 7924 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7925 | char _ptemp[128]; |
8ab979d7 RD |
7926 | |
7927 | self = self; | |
efc5f224 | 7928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7929 | return NULL; |
1d99702e RD |
7930 | if (_argo0) { |
7931 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7932 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7933 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextSibling. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7934 | return NULL; |
7935 | } | |
7936 | } | |
1d99702e RD |
7937 | if (_argo1) { |
7938 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7939 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7940 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextSibling. Expected _wxTreeItemId_p."); |
7941 | return NULL; | |
7942 | } | |
7943 | } | |
cf694132 RD |
7944 | { |
7945 | wxPy_BEGIN_ALLOW_THREADS; | |
7946 | _result = new wxTreeItemId (wxTreeCtrl_GetNextSibling(_arg0,*_arg1)); | |
7947 | ||
7948 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7949 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7950 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7951 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7952 | return _resultobj; |
7953 | } | |
7954 | ||
d5c9047a | 7955 | #define wxTreeCtrl_GetPrevSibling(_swigobj,_swigarg0) (_swigobj->GetPrevSibling(_swigarg0)) |
efc5f224 | 7956 | static PyObject *_wrap_wxTreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7957 | PyObject * _resultobj; |
d5c9047a | 7958 | wxTreeItemId * _result; |
f6bcfd97 | 7959 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7960 | wxTreeItemId * _arg1; |
1d99702e RD |
7961 | PyObject * _argo0 = 0; |
7962 | PyObject * _argo1 = 0; | |
efc5f224 | 7963 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7964 | char _ptemp[128]; |
8ab979d7 RD |
7965 | |
7966 | self = self; | |
efc5f224 | 7967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7968 | return NULL; |
1d99702e RD |
7969 | if (_argo0) { |
7970 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7971 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7972 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevSibling. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7973 | return NULL; |
7974 | } | |
7975 | } | |
1d99702e RD |
7976 | if (_argo1) { |
7977 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7978 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7979 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevSibling. Expected _wxTreeItemId_p."); |
7980 | return NULL; | |
7981 | } | |
7982 | } | |
cf694132 RD |
7983 | { |
7984 | wxPy_BEGIN_ALLOW_THREADS; | |
7985 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevSibling(_arg0,*_arg1)); | |
7986 | ||
7987 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7988 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7989 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7990 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7991 | return _resultobj; |
7992 | } | |
7993 | ||
d5c9047a | 7994 | #define wxTreeCtrl_GetFirstVisibleItem(_swigobj) (_swigobj->GetFirstVisibleItem()) |
efc5f224 | 7995 | static PyObject *_wrap_wxTreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7996 | PyObject * _resultobj; |
d5c9047a | 7997 | wxTreeItemId * _result; |
f6bcfd97 | 7998 | wxPyTreeCtrl * _arg0; |
1d99702e | 7999 | PyObject * _argo0 = 0; |
efc5f224 | 8000 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 8001 | char _ptemp[128]; |
8ab979d7 RD |
8002 | |
8003 | self = self; | |
efc5f224 | 8004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetFirstVisibleItem",_kwnames,&_argo0)) |
8ab979d7 | 8005 | return NULL; |
1d99702e RD |
8006 | if (_argo0) { |
8007 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8008 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8009 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstVisibleItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8010 | return NULL; |
8011 | } | |
8012 | } | |
cf694132 RD |
8013 | { |
8014 | wxPy_BEGIN_ALLOW_THREADS; | |
8015 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstVisibleItem(_arg0)); | |
8016 | ||
8017 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8018 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8019 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8020 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8021 | return _resultobj; |
8022 | } | |
8023 | ||
d5c9047a | 8024 | #define wxTreeCtrl_GetNextVisible(_swigobj,_swigarg0) (_swigobj->GetNextVisible(_swigarg0)) |
efc5f224 | 8025 | static PyObject *_wrap_wxTreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8026 | PyObject * _resultobj; |
d5c9047a | 8027 | wxTreeItemId * _result; |
f6bcfd97 | 8028 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8029 | wxTreeItemId * _arg1; |
1d99702e RD |
8030 | PyObject * _argo0 = 0; |
8031 | PyObject * _argo1 = 0; | |
efc5f224 | 8032 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 8033 | char _ptemp[128]; |
8ab979d7 RD |
8034 | |
8035 | self = self; | |
efc5f224 | 8036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8037 | return NULL; |
1d99702e RD |
8038 | if (_argo0) { |
8039 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8040 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8041 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8042 | return NULL; |
8043 | } | |
8044 | } | |
1d99702e RD |
8045 | if (_argo1) { |
8046 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8047 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextVisible. Expected _wxTreeItemId_p."); |
8049 | return NULL; | |
8050 | } | |
8051 | } | |
cf694132 RD |
8052 | { |
8053 | wxPy_BEGIN_ALLOW_THREADS; | |
8054 | _result = new wxTreeItemId (wxTreeCtrl_GetNextVisible(_arg0,*_arg1)); | |
8055 | ||
8056 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8057 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8058 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8059 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8060 | return _resultobj; |
8061 | } | |
8062 | ||
d5c9047a | 8063 | #define wxTreeCtrl_GetPrevVisible(_swigobj,_swigarg0) (_swigobj->GetPrevVisible(_swigarg0)) |
efc5f224 | 8064 | static PyObject *_wrap_wxTreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8065 | PyObject * _resultobj; |
d5c9047a | 8066 | wxTreeItemId * _result; |
f6bcfd97 | 8067 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8068 | wxTreeItemId * _arg1; |
1d99702e RD |
8069 | PyObject * _argo0 = 0; |
8070 | PyObject * _argo1 = 0; | |
efc5f224 | 8071 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 8072 | char _ptemp[128]; |
8ab979d7 RD |
8073 | |
8074 | self = self; | |
efc5f224 | 8075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8076 | return NULL; |
1d99702e RD |
8077 | if (_argo0) { |
8078 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8079 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8080 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8081 | return NULL; |
8082 | } | |
8083 | } | |
1d99702e RD |
8084 | if (_argo1) { |
8085 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8086 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 8087 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevVisible. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
8088 | return NULL; |
8089 | } | |
8090 | } | |
cf694132 RD |
8091 | { |
8092 | wxPy_BEGIN_ALLOW_THREADS; | |
8093 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevVisible(_arg0,*_arg1)); | |
8094 | ||
8095 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8096 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8097 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8098 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8099 | return _resultobj; |
8100 | } | |
8101 | ||
d426c97e RD |
8102 | #define wxTreeCtrl_GetLastChild(_swigobj,_swigarg0) (_swigobj->GetLastChild(_swigarg0)) |
8103 | static PyObject *_wrap_wxTreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8104 | PyObject * _resultobj; | |
8105 | wxTreeItemId * _result; | |
f6bcfd97 | 8106 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
8107 | wxTreeItemId * _arg1; |
8108 | PyObject * _argo0 = 0; | |
8109 | PyObject * _argo1 = 0; | |
8110 | char *_kwnames[] = { "self","item", NULL }; | |
8111 | char _ptemp[128]; | |
8112 | ||
8113 | self = self; | |
8114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetLastChild",_kwnames,&_argo0,&_argo1)) | |
8115 | return NULL; | |
8116 | if (_argo0) { | |
8117 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8118 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8119 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetLastChild. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
8120 | return NULL; |
8121 | } | |
8122 | } | |
8123 | if (_argo1) { | |
8124 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8125 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8126 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetLastChild. Expected _wxTreeItemId_p."); | |
8127 | return NULL; | |
8128 | } | |
8129 | } | |
8130 | { | |
8131 | wxPy_BEGIN_ALLOW_THREADS; | |
8132 | _result = new wxTreeItemId (wxTreeCtrl_GetLastChild(_arg0,*_arg1)); | |
8133 | ||
8134 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8135 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
8136 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
8137 | _resultobj = Py_BuildValue("s",_ptemp); | |
8138 | return _resultobj; | |
8139 | } | |
8140 | ||
d5c9047a | 8141 | #define wxTreeCtrl_AddRoot(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->AddRoot(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
efc5f224 | 8142 | static PyObject *_wrap_wxTreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8143 | PyObject * _resultobj; |
d5c9047a | 8144 | wxTreeItemId * _result; |
f6bcfd97 | 8145 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8146 | wxString * _arg1; |
1d99702e RD |
8147 | int _arg2 = (int ) -1; |
8148 | int _arg3 = (int ) -1; | |
8149 | wxPyTreeItemData * _arg4 = (wxPyTreeItemData *) NULL; | |
8150 | PyObject * _argo0 = 0; | |
d5c9047a | 8151 | PyObject * _obj1 = 0; |
1d99702e | 8152 | PyObject * _argo4 = 0; |
efc5f224 | 8153 | char *_kwnames[] = { "self","text","image","selectedImage","data", NULL }; |
d5c9047a | 8154 | char _ptemp[128]; |
8ab979d7 RD |
8155 | |
8156 | self = self; | |
efc5f224 | 8157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iiO:wxTreeCtrl_AddRoot",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_argo4)) |
8ab979d7 | 8158 | return NULL; |
1d99702e RD |
8159 | if (_argo0) { |
8160 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8161 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8162 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AddRoot. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8163 | return NULL; |
8164 | } | |
8165 | } | |
d5c9047a | 8166 | { |
2cd2fac8 RD |
8167 | #if PYTHON_API_VERSION >= 1009 |
8168 | char* tmpPtr; int tmpSize; | |
8169 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 8170 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
8171 | return NULL; |
8172 | } | |
8173 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8174 | return NULL; | |
8175 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8176 | #else | |
d5c9047a RD |
8177 | if (!PyString_Check(_obj1)) { |
8178 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8179 | return NULL; | |
8180 | } | |
2cd2fac8 RD |
8181 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
8182 | #endif | |
d5c9047a | 8183 | } |
1d99702e RD |
8184 | if (_argo4) { |
8185 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
8186 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxPyTreeItemData_p")) { | |
cf694132 | 8187 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxTreeCtrl_AddRoot. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
8188 | return NULL; |
8189 | } | |
8190 | } | |
cf694132 RD |
8191 | { |
8192 | wxPy_BEGIN_ALLOW_THREADS; | |
8193 | _result = new wxTreeItemId (wxTreeCtrl_AddRoot(_arg0,*_arg1,_arg2,_arg3,_arg4)); | |
8194 | ||
8195 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8196 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8197 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8198 | _resultobj = Py_BuildValue("s",_ptemp); |
8199 | { | |
8200 | if (_obj1) | |
8201 | delete _arg1; | |
8202 | } | |
8ab979d7 RD |
8203 | return _resultobj; |
8204 | } | |
8205 | ||
d5c9047a | 8206 | #define wxTreeCtrl_PrependItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->PrependItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 8207 | static PyObject *_wrap_wxTreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8208 | PyObject * _resultobj; |
d5c9047a | 8209 | wxTreeItemId * _result; |
f6bcfd97 | 8210 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
8211 | wxTreeItemId * _arg1; |
8212 | wxString * _arg2; | |
1d99702e RD |
8213 | int _arg3 = (int ) -1; |
8214 | int _arg4 = (int ) -1; | |
8215 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
8216 | PyObject * _argo0 = 0; | |
8217 | PyObject * _argo1 = 0; | |
d5c9047a | 8218 | PyObject * _obj2 = 0; |
1d99702e | 8219 | PyObject * _argo5 = 0; |
efc5f224 | 8220 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 8221 | char _ptemp[128]; |
8ab979d7 RD |
8222 | |
8223 | self = self; | |
efc5f224 | 8224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_PrependItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 8225 | return NULL; |
1d99702e RD |
8226 | if (_argo0) { |
8227 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8228 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8229 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_PrependItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8230 | return NULL; |
8231 | } | |
8232 | } | |
1d99702e RD |
8233 | if (_argo1) { |
8234 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8235 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8236 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_PrependItem. Expected _wxTreeItemId_p."); |
8237 | return NULL; | |
8238 | } | |
8239 | } | |
8240 | { | |
2cd2fac8 RD |
8241 | #if PYTHON_API_VERSION >= 1009 |
8242 | char* tmpPtr; int tmpSize; | |
8243 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 8244 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
8245 | return NULL; |
8246 | } | |
8247 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8248 | return NULL; | |
8249 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8250 | #else | |
d5c9047a RD |
8251 | if (!PyString_Check(_obj2)) { |
8252 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8253 | return NULL; | |
8254 | } | |
2cd2fac8 RD |
8255 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8256 | #endif | |
d5c9047a | 8257 | } |
1d99702e RD |
8258 | if (_argo5) { |
8259 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
8260 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 8261 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_PrependItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
8262 | return NULL; |
8263 | } | |
8264 | } | |
cf694132 RD |
8265 | { |
8266 | wxPy_BEGIN_ALLOW_THREADS; | |
8267 | _result = new wxTreeItemId (wxTreeCtrl_PrependItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); | |
8268 | ||
8269 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8270 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8271 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8272 | _resultobj = Py_BuildValue("s",_ptemp); |
8273 | { | |
8274 | if (_obj2) | |
8275 | delete _arg2; | |
8276 | } | |
8ab979d7 RD |
8277 | return _resultobj; |
8278 | } | |
8279 | ||
d5c9047a | 8280 | #define wxTreeCtrl_InsertItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 8281 | static PyObject *_wrap_wxTreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8282 | PyObject * _resultobj; |
d5c9047a | 8283 | wxTreeItemId * _result; |
f6bcfd97 | 8284 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
8285 | wxTreeItemId * _arg1; |
8286 | wxTreeItemId * _arg2; | |
8287 | wxString * _arg3; | |
1d99702e RD |
8288 | int _arg4 = (int ) -1; |
8289 | int _arg5 = (int ) -1; | |
8290 | wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL; | |
8291 | PyObject * _argo0 = 0; | |
8292 | PyObject * _argo1 = 0; | |
8293 | PyObject * _argo2 = 0; | |
d5c9047a | 8294 | PyObject * _obj3 = 0; |
1d99702e | 8295 | PyObject * _argo6 = 0; |
efc5f224 | 8296 | char *_kwnames[] = { "self","parent","idPrevious","text","image","selectedImage","data", NULL }; |
d5c9047a | 8297 | char _ptemp[128]; |
8ab979d7 RD |
8298 | |
8299 | self = self; | |
efc5f224 | 8300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|iiO:wxTreeCtrl_InsertItem",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3,&_arg4,&_arg5,&_argo6)) |
8ab979d7 | 8301 | return NULL; |
1d99702e RD |
8302 | if (_argo0) { |
8303 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8304 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8305 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8306 | return NULL; |
8307 | } | |
8308 | } | |
1d99702e RD |
8309 | if (_argo1) { |
8310 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8311 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8312 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
8313 | return NULL; | |
8314 | } | |
8315 | } | |
1d99702e RD |
8316 | if (_argo2) { |
8317 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8318 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
8320 | return NULL; | |
8321 | } | |
8322 | } | |
8323 | { | |
2cd2fac8 RD |
8324 | #if PYTHON_API_VERSION >= 1009 |
8325 | char* tmpPtr; int tmpSize; | |
8326 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
7a446686 | 8327 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
8328 | return NULL; |
8329 | } | |
8330 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8331 | return NULL; | |
8332 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8333 | #else | |
d5c9047a RD |
8334 | if (!PyString_Check(_obj3)) { |
8335 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8336 | return NULL; | |
8337 | } | |
2cd2fac8 RD |
8338 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
8339 | #endif | |
d5c9047a | 8340 | } |
1d99702e RD |
8341 | if (_argo6) { |
8342 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
8343 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) { | |
cf694132 | 8344 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
8345 | return NULL; |
8346 | } | |
8347 | } | |
cf694132 RD |
8348 | { |
8349 | wxPy_BEGIN_ALLOW_THREADS; | |
8350 | _result = new wxTreeItemId (wxTreeCtrl_InsertItem(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6)); | |
8351 | ||
8352 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8353 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8354 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8355 | _resultobj = Py_BuildValue("s",_ptemp); |
8356 | { | |
8357 | if (_obj3) | |
8358 | delete _arg3; | |
8359 | } | |
8ab979d7 RD |
8360 | return _resultobj; |
8361 | } | |
8362 | ||
f6bcfd97 BP |
8363 | #define wxTreeCtrl_InsertItemBefore(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
8364 | static PyObject *_wrap_wxTreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8365 | PyObject * _resultobj; | |
8366 | wxTreeItemId * _result; | |
8367 | wxPyTreeCtrl * _arg0; | |
8368 | wxTreeItemId * _arg1; | |
8369 | size_t _arg2; | |
8370 | wxString * _arg3; | |
8371 | int _arg4 = (int ) -1; | |
8372 | int _arg5 = (int ) -1; | |
8373 | wxTreeItemData * _arg6 = (wxTreeItemData *) NULL; | |
8374 | PyObject * _argo0 = 0; | |
8375 | PyObject * _argo1 = 0; | |
8376 | PyObject * _obj3 = 0; | |
8377 | PyObject * _argo6 = 0; | |
8378 | char *_kwnames[] = { "self","parent","before","text","image","selectedImage","data", NULL }; | |
8379 | char _ptemp[128]; | |
8380 | ||
8381 | self = self; | |
8382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|iiO:wxTreeCtrl_InsertItemBefore",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_arg4,&_arg5,&_argo6)) | |
8383 | return NULL; | |
8384 | if (_argo0) { | |
8385 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8386 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8387 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItemBefore. Expected _wxPyTreeCtrl_p."); | |
8388 | return NULL; | |
8389 | } | |
8390 | } | |
8391 | if (_argo1) { | |
8392 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8393 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8394 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemId_p."); | |
8395 | return NULL; | |
8396 | } | |
8397 | } | |
8398 | { | |
2cd2fac8 RD |
8399 | #if PYTHON_API_VERSION >= 1009 |
8400 | char* tmpPtr; int tmpSize; | |
8401 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
7a446686 | 8402 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
8403 | return NULL; |
8404 | } | |
8405 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8406 | return NULL; | |
8407 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8408 | #else | |
f6bcfd97 BP |
8409 | if (!PyString_Check(_obj3)) { |
8410 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8411 | return NULL; | |
8412 | } | |
2cd2fac8 RD |
8413 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
8414 | #endif | |
f6bcfd97 BP |
8415 | } |
8416 | if (_argo6) { | |
8417 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
8418 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxTreeItemData_p")) { | |
8419 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemData_p."); | |
8420 | return NULL; | |
8421 | } | |
8422 | } | |
8423 | { | |
8424 | wxPy_BEGIN_ALLOW_THREADS; | |
8425 | _result = new wxTreeItemId (wxTreeCtrl_InsertItemBefore(_arg0,*_arg1,_arg2,*_arg3,_arg4,_arg5,_arg6)); | |
8426 | ||
8427 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8428 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
8429 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
8430 | _resultobj = Py_BuildValue("s",_ptemp); | |
8431 | { | |
8432 | if (_obj3) | |
8433 | delete _arg3; | |
8434 | } | |
8435 | return _resultobj; | |
8436 | } | |
8437 | ||
d5c9047a | 8438 | #define wxTreeCtrl_AppendItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->AppendItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 8439 | static PyObject *_wrap_wxTreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8440 | PyObject * _resultobj; |
d5c9047a | 8441 | wxTreeItemId * _result; |
f6bcfd97 | 8442 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8443 | wxTreeItemId * _arg1; |
8ab979d7 | 8444 | wxString * _arg2; |
1d99702e RD |
8445 | int _arg3 = (int ) -1; |
8446 | int _arg4 = (int ) -1; | |
8447 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
8448 | PyObject * _argo0 = 0; | |
8449 | PyObject * _argo1 = 0; | |
8ab979d7 | 8450 | PyObject * _obj2 = 0; |
1d99702e | 8451 | PyObject * _argo5 = 0; |
efc5f224 | 8452 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 8453 | char _ptemp[128]; |
8ab979d7 RD |
8454 | |
8455 | self = self; | |
efc5f224 | 8456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_AppendItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 8457 | return NULL; |
1d99702e RD |
8458 | if (_argo0) { |
8459 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8460 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8461 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AppendItem. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8462 | return NULL; |
8463 | } | |
8464 | } | |
1d99702e RD |
8465 | if (_argo1) { |
8466 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8467 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 8468 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AppendItem. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
8469 | return NULL; |
8470 | } | |
8471 | } | |
8472 | { | |
2cd2fac8 RD |
8473 | #if PYTHON_API_VERSION >= 1009 |
8474 | char* tmpPtr; int tmpSize; | |
8475 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 8476 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
8477 | return NULL; |
8478 | } | |
8479 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8480 | return NULL; | |
8481 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8482 | #else | |
8ab979d7 RD |
8483 | if (!PyString_Check(_obj2)) { |
8484 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8485 | return NULL; | |
8486 | } | |
2cd2fac8 RD |
8487 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8488 | #endif | |
8ab979d7 | 8489 | } |
1d99702e RD |
8490 | if (_argo5) { |
8491 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
8492 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 8493 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_AppendItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
8494 | return NULL; |
8495 | } | |
8496 | } | |
cf694132 RD |
8497 | { |
8498 | wxPy_BEGIN_ALLOW_THREADS; | |
8499 | _result = new wxTreeItemId (wxTreeCtrl_AppendItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); | |
8500 | ||
8501 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8502 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8503 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8504 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8505 | { |
8506 | if (_obj2) | |
8507 | delete _arg2; | |
8508 | } | |
8509 | return _resultobj; | |
8510 | } | |
8511 | ||
d5c9047a | 8512 | #define wxTreeCtrl_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
efc5f224 | 8513 | static PyObject *_wrap_wxTreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8514 | PyObject * _resultobj; |
f6bcfd97 | 8515 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8516 | wxTreeItemId * _arg1; |
1d99702e RD |
8517 | PyObject * _argo0 = 0; |
8518 | PyObject * _argo1 = 0; | |
efc5f224 | 8519 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
8520 | |
8521 | self = self; | |
efc5f224 | 8522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Delete",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8523 | return NULL; |
1d99702e RD |
8524 | if (_argo0) { |
8525 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8526 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8527 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Delete. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8528 | return NULL; |
8529 | } | |
8530 | } | |
1d99702e RD |
8531 | if (_argo1) { |
8532 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8533 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8534 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Delete. Expected _wxTreeItemId_p."); |
8535 | return NULL; | |
8536 | } | |
8537 | } | |
cf694132 RD |
8538 | { |
8539 | wxPy_BEGIN_ALLOW_THREADS; | |
8540 | wxTreeCtrl_Delete(_arg0,*_arg1); | |
8541 | ||
8542 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8543 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8544 | } Py_INCREF(Py_None); |
d5c9047a RD |
8545 | _resultobj = Py_None; |
8546 | return _resultobj; | |
8547 | } | |
8548 | ||
08127323 | 8549 | #define wxTreeCtrl_DeleteChildren(_swigobj,_swigarg0) (_swigobj->DeleteChildren(_swigarg0)) |
efc5f224 | 8550 | static PyObject *_wrap_wxTreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 | 8551 | PyObject * _resultobj; |
f6bcfd97 | 8552 | wxPyTreeCtrl * _arg0; |
08127323 | 8553 | wxTreeItemId * _arg1; |
1d99702e RD |
8554 | PyObject * _argo0 = 0; |
8555 | PyObject * _argo1 = 0; | |
efc5f224 | 8556 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
8557 | |
8558 | self = self; | |
efc5f224 | 8559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_DeleteChildren",_kwnames,&_argo0,&_argo1)) |
08127323 | 8560 | return NULL; |
1d99702e RD |
8561 | if (_argo0) { |
8562 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8563 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8564 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteChildren. Expected _wxPyTreeCtrl_p."); | |
08127323 RD |
8565 | return NULL; |
8566 | } | |
8567 | } | |
1d99702e RD |
8568 | if (_argo1) { |
8569 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8570 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
08127323 RD |
8571 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_DeleteChildren. Expected _wxTreeItemId_p."); |
8572 | return NULL; | |
8573 | } | |
8574 | } | |
cf694132 RD |
8575 | { |
8576 | wxPy_BEGIN_ALLOW_THREADS; | |
8577 | wxTreeCtrl_DeleteChildren(_arg0,*_arg1); | |
8578 | ||
8579 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8580 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8581 | } Py_INCREF(Py_None); |
08127323 RD |
8582 | _resultobj = Py_None; |
8583 | return _resultobj; | |
8584 | } | |
8585 | ||
d5c9047a | 8586 | #define wxTreeCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) |
efc5f224 | 8587 | static PyObject *_wrap_wxTreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8588 | PyObject * _resultobj; |
f6bcfd97 | 8589 | wxPyTreeCtrl * _arg0; |
1d99702e | 8590 | PyObject * _argo0 = 0; |
efc5f224 | 8591 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
8592 | |
8593 | self = self; | |
efc5f224 | 8594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_DeleteAllItems",_kwnames,&_argo0)) |
d5c9047a | 8595 | return NULL; |
1d99702e RD |
8596 | if (_argo0) { |
8597 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8598 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8599 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteAllItems. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8600 | return NULL; |
8601 | } | |
8602 | } | |
cf694132 RD |
8603 | { |
8604 | wxPy_BEGIN_ALLOW_THREADS; | |
8605 | wxTreeCtrl_DeleteAllItems(_arg0); | |
8606 | ||
8607 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8608 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8609 | } Py_INCREF(Py_None); |
d5c9047a RD |
8610 | _resultobj = Py_None; |
8611 | return _resultobj; | |
8612 | } | |
8613 | ||
8614 | #define wxTreeCtrl_Expand(_swigobj,_swigarg0) (_swigobj->Expand(_swigarg0)) | |
efc5f224 | 8615 | static PyObject *_wrap_wxTreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8616 | PyObject * _resultobj; |
f6bcfd97 | 8617 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8618 | wxTreeItemId * _arg1; |
1d99702e RD |
8619 | PyObject * _argo0 = 0; |
8620 | PyObject * _argo1 = 0; | |
efc5f224 | 8621 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8622 | |
8623 | self = self; | |
efc5f224 | 8624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Expand",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8625 | return NULL; |
1d99702e RD |
8626 | if (_argo0) { |
8627 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8628 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Expand. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8630 | return NULL; |
8631 | } | |
8632 | } | |
1d99702e RD |
8633 | if (_argo1) { |
8634 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8635 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8636 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Expand. Expected _wxTreeItemId_p."); |
8637 | return NULL; | |
8638 | } | |
8639 | } | |
cf694132 RD |
8640 | { |
8641 | wxPy_BEGIN_ALLOW_THREADS; | |
8642 | wxTreeCtrl_Expand(_arg0,*_arg1); | |
8643 | ||
8644 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8645 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8646 | } Py_INCREF(Py_None); |
d5c9047a RD |
8647 | _resultobj = Py_None; |
8648 | return _resultobj; | |
8649 | } | |
8650 | ||
8651 | #define wxTreeCtrl_Collapse(_swigobj,_swigarg0) (_swigobj->Collapse(_swigarg0)) | |
efc5f224 | 8652 | static PyObject *_wrap_wxTreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8653 | PyObject * _resultobj; |
f6bcfd97 | 8654 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8655 | wxTreeItemId * _arg1; |
1d99702e RD |
8656 | PyObject * _argo0 = 0; |
8657 | PyObject * _argo1 = 0; | |
efc5f224 | 8658 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8659 | |
8660 | self = self; | |
efc5f224 | 8661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Collapse",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8662 | return NULL; |
1d99702e RD |
8663 | if (_argo0) { |
8664 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8665 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8666 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Collapse. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8667 | return NULL; |
8668 | } | |
8669 | } | |
1d99702e RD |
8670 | if (_argo1) { |
8671 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8672 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Collapse. Expected _wxTreeItemId_p."); |
8674 | return NULL; | |
8675 | } | |
8676 | } | |
cf694132 RD |
8677 | { |
8678 | wxPy_BEGIN_ALLOW_THREADS; | |
8679 | wxTreeCtrl_Collapse(_arg0,*_arg1); | |
8680 | ||
8681 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8682 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8683 | } Py_INCREF(Py_None); |
d5c9047a RD |
8684 | _resultobj = Py_None; |
8685 | return _resultobj; | |
8686 | } | |
8687 | ||
8688 | #define wxTreeCtrl_CollapseAndReset(_swigobj,_swigarg0) (_swigobj->CollapseAndReset(_swigarg0)) | |
efc5f224 | 8689 | static PyObject *_wrap_wxTreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8690 | PyObject * _resultobj; |
f6bcfd97 | 8691 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8692 | wxTreeItemId * _arg1; |
1d99702e RD |
8693 | PyObject * _argo0 = 0; |
8694 | PyObject * _argo1 = 0; | |
efc5f224 | 8695 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8696 | |
8697 | self = self; | |
efc5f224 | 8698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_CollapseAndReset",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8699 | return NULL; |
1d99702e RD |
8700 | if (_argo0) { |
8701 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8702 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8703 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_CollapseAndReset. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8704 | return NULL; |
8705 | } | |
8706 | } | |
1d99702e RD |
8707 | if (_argo1) { |
8708 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8709 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8710 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_CollapseAndReset. Expected _wxTreeItemId_p."); |
8711 | return NULL; | |
8712 | } | |
8713 | } | |
cf694132 RD |
8714 | { |
8715 | wxPy_BEGIN_ALLOW_THREADS; | |
8716 | wxTreeCtrl_CollapseAndReset(_arg0,*_arg1); | |
8717 | ||
8718 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8719 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8720 | } Py_INCREF(Py_None); |
d5c9047a RD |
8721 | _resultobj = Py_None; |
8722 | return _resultobj; | |
8723 | } | |
8724 | ||
8725 | #define wxTreeCtrl_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0)) | |
efc5f224 | 8726 | static PyObject *_wrap_wxTreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8727 | PyObject * _resultobj; |
f6bcfd97 | 8728 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8729 | wxTreeItemId * _arg1; |
1d99702e RD |
8730 | PyObject * _argo0 = 0; |
8731 | PyObject * _argo1 = 0; | |
efc5f224 | 8732 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8733 | |
8734 | self = self; | |
efc5f224 | 8735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Toggle",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8736 | return NULL; |
1d99702e RD |
8737 | if (_argo0) { |
8738 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8739 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8740 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Toggle. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8741 | return NULL; |
8742 | } | |
8743 | } | |
1d99702e RD |
8744 | if (_argo1) { |
8745 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8746 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8747 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Toggle. Expected _wxTreeItemId_p."); |
8748 | return NULL; | |
8749 | } | |
8750 | } | |
cf694132 RD |
8751 | { |
8752 | wxPy_BEGIN_ALLOW_THREADS; | |
8753 | wxTreeCtrl_Toggle(_arg0,*_arg1); | |
8754 | ||
8755 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8756 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8757 | } Py_INCREF(Py_None); |
d5c9047a RD |
8758 | _resultobj = Py_None; |
8759 | return _resultobj; | |
8760 | } | |
8761 | ||
8762 | #define wxTreeCtrl_Unselect(_swigobj) (_swigobj->Unselect()) | |
efc5f224 | 8763 | static PyObject *_wrap_wxTreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8764 | PyObject * _resultobj; |
f6bcfd97 | 8765 | wxPyTreeCtrl * _arg0; |
1d99702e | 8766 | PyObject * _argo0 = 0; |
efc5f224 | 8767 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
8768 | |
8769 | self = self; | |
efc5f224 | 8770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_Unselect",_kwnames,&_argo0)) |
d5c9047a | 8771 | return NULL; |
1d99702e RD |
8772 | if (_argo0) { |
8773 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8774 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8775 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Unselect. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8776 | return NULL; |
8777 | } | |
8778 | } | |
cf694132 RD |
8779 | { |
8780 | wxPy_BEGIN_ALLOW_THREADS; | |
8781 | wxTreeCtrl_Unselect(_arg0); | |
8782 | ||
8783 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8784 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8785 | } Py_INCREF(Py_None); |
d5c9047a RD |
8786 | _resultobj = Py_None; |
8787 | return _resultobj; | |
8788 | } | |
8789 | ||
8bf5d46e | 8790 | #define wxTreeCtrl_UnselectAll(_swigobj) (_swigobj->UnselectAll()) |
efc5f224 | 8791 | static PyObject *_wrap_wxTreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e | 8792 | PyObject * _resultobj; |
f6bcfd97 | 8793 | wxPyTreeCtrl * _arg0; |
1d99702e | 8794 | PyObject * _argo0 = 0; |
efc5f224 | 8795 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
8796 | |
8797 | self = self; | |
efc5f224 | 8798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_UnselectAll",_kwnames,&_argo0)) |
8bf5d46e | 8799 | return NULL; |
1d99702e RD |
8800 | if (_argo0) { |
8801 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8802 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8803 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_UnselectAll. Expected _wxPyTreeCtrl_p."); | |
8bf5d46e RD |
8804 | return NULL; |
8805 | } | |
8806 | } | |
8807 | { | |
8808 | wxPy_BEGIN_ALLOW_THREADS; | |
8809 | wxTreeCtrl_UnselectAll(_arg0); | |
8810 | ||
8811 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8812 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
8813 | } Py_INCREF(Py_None); |
8814 | _resultobj = Py_None; | |
8815 | return _resultobj; | |
8816 | } | |
8817 | ||
d5c9047a | 8818 | #define wxTreeCtrl_SelectItem(_swigobj,_swigarg0) (_swigobj->SelectItem(_swigarg0)) |
efc5f224 | 8819 | static PyObject *_wrap_wxTreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8820 | PyObject * _resultobj; |
f6bcfd97 | 8821 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8822 | wxTreeItemId * _arg1; |
1d99702e RD |
8823 | PyObject * _argo0 = 0; |
8824 | PyObject * _argo1 = 0; | |
efc5f224 | 8825 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8826 | |
8827 | self = self; | |
efc5f224 | 8828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SelectItem",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8829 | return NULL; |
1d99702e RD |
8830 | if (_argo0) { |
8831 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8832 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8833 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SelectItem. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8834 | return NULL; |
8835 | } | |
8836 | } | |
1d99702e RD |
8837 | if (_argo1) { |
8838 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8839 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8840 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SelectItem. Expected _wxTreeItemId_p."); |
8841 | return NULL; | |
8842 | } | |
8843 | } | |
cf694132 RD |
8844 | { |
8845 | wxPy_BEGIN_ALLOW_THREADS; | |
8846 | wxTreeCtrl_SelectItem(_arg0,*_arg1); | |
8847 | ||
8848 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8849 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8850 | } Py_INCREF(Py_None); |
d5c9047a RD |
8851 | _resultobj = Py_None; |
8852 | return _resultobj; | |
8853 | } | |
8854 | ||
8855 | #define wxTreeCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) | |
efc5f224 | 8856 | static PyObject *_wrap_wxTreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8857 | PyObject * _resultobj; |
f6bcfd97 | 8858 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8859 | wxTreeItemId * _arg1; |
1d99702e RD |
8860 | PyObject * _argo0 = 0; |
8861 | PyObject * _argo1 = 0; | |
efc5f224 | 8862 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8863 | |
8864 | self = self; | |
efc5f224 | 8865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EnsureVisible",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8866 | return NULL; |
1d99702e RD |
8867 | if (_argo0) { |
8868 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8869 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8870 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EnsureVisible. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8871 | return NULL; |
8872 | } | |
8873 | } | |
1d99702e RD |
8874 | if (_argo1) { |
8875 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8876 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8877 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EnsureVisible. Expected _wxTreeItemId_p."); |
8878 | return NULL; | |
8879 | } | |
8880 | } | |
cf694132 RD |
8881 | { |
8882 | wxPy_BEGIN_ALLOW_THREADS; | |
8883 | wxTreeCtrl_EnsureVisible(_arg0,*_arg1); | |
8884 | ||
8885 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8886 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8887 | } Py_INCREF(Py_None); |
d5c9047a RD |
8888 | _resultobj = Py_None; |
8889 | return _resultobj; | |
8890 | } | |
8891 | ||
8892 | #define wxTreeCtrl_ScrollTo(_swigobj,_swigarg0) (_swigobj->ScrollTo(_swigarg0)) | |
efc5f224 | 8893 | static PyObject *_wrap_wxTreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8894 | PyObject * _resultobj; |
f6bcfd97 | 8895 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8896 | wxTreeItemId * _arg1; |
1d99702e RD |
8897 | PyObject * _argo0 = 0; |
8898 | PyObject * _argo1 = 0; | |
efc5f224 | 8899 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8900 | |
8901 | self = self; | |
efc5f224 | 8902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ScrollTo",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8903 | return NULL; |
1d99702e RD |
8904 | if (_argo0) { |
8905 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8906 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8907 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ScrollTo. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8908 | return NULL; |
8909 | } | |
8910 | } | |
1d99702e RD |
8911 | if (_argo1) { |
8912 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8913 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8914 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ScrollTo. Expected _wxTreeItemId_p."); |
8915 | return NULL; | |
8916 | } | |
8917 | } | |
cf694132 RD |
8918 | { |
8919 | wxPy_BEGIN_ALLOW_THREADS; | |
8920 | wxTreeCtrl_ScrollTo(_arg0,*_arg1); | |
8921 | ||
8922 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8923 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8924 | } Py_INCREF(Py_None); |
d5c9047a RD |
8925 | _resultobj = Py_None; |
8926 | return _resultobj; | |
8927 | } | |
8928 | ||
8929 | #define wxTreeCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0)) | |
efc5f224 | 8930 | static PyObject *_wrap_wxTreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8931 | PyObject * _resultobj; |
f6bcfd97 | 8932 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8933 | wxTreeItemId * _arg1; |
1d99702e RD |
8934 | PyObject * _argo0 = 0; |
8935 | PyObject * _argo1 = 0; | |
efc5f224 | 8936 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8937 | |
8938 | self = self; | |
efc5f224 | 8939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EditLabel",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8940 | return NULL; |
1d99702e RD |
8941 | if (_argo0) { |
8942 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8943 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8944 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EditLabel. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8945 | return NULL; |
8946 | } | |
8947 | } | |
1d99702e RD |
8948 | if (_argo1) { |
8949 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8950 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8951 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EditLabel. Expected _wxTreeItemId_p."); |
8952 | return NULL; | |
8953 | } | |
8954 | } | |
cf694132 RD |
8955 | { |
8956 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 8957 | wxTreeCtrl_EditLabel(_arg0,*_arg1); |
cf694132 RD |
8958 | |
8959 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8960 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8961 | } Py_INCREF(Py_None); |
d5c9047a | 8962 | _resultobj = Py_None; |
8ab979d7 RD |
8963 | return _resultobj; |
8964 | } | |
8965 | ||
d426c97e RD |
8966 | #define wxTreeCtrl_SortChildren(_swigobj,_swigarg0) (_swigobj->SortChildren(_swigarg0)) |
8967 | static PyObject *_wrap_wxTreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8968 | PyObject * _resultobj; | |
f6bcfd97 | 8969 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
8970 | wxTreeItemId * _arg1; |
8971 | PyObject * _argo0 = 0; | |
8972 | PyObject * _argo1 = 0; | |
8973 | char *_kwnames[] = { "self","item", NULL }; | |
8974 | ||
8975 | self = self; | |
8976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SortChildren",_kwnames,&_argo0,&_argo1)) | |
8977 | return NULL; | |
8978 | if (_argo0) { | |
8979 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8980 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8981 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SortChildren. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
8982 | return NULL; |
8983 | } | |
8984 | } | |
8985 | if (_argo1) { | |
8986 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8987 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8988 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SortChildren. Expected _wxTreeItemId_p."); | |
8989 | return NULL; | |
8990 | } | |
8991 | } | |
8992 | { | |
8993 | wxPy_BEGIN_ALLOW_THREADS; | |
8994 | wxTreeCtrl_SortChildren(_arg0,*_arg1); | |
8995 | ||
8996 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8997 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
8998 | } Py_INCREF(Py_None); |
8999 | _resultobj = Py_None; | |
9000 | return _resultobj; | |
9001 | } | |
9002 | ||
b8b8dda7 | 9003 | #define wxTreeCtrl_SetItemBold(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBold(_swigarg0,_swigarg1)) |
efc5f224 | 9004 | static PyObject *_wrap_wxTreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 | 9005 | PyObject * _resultobj; |
f6bcfd97 | 9006 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 9007 | wxTreeItemId * _arg1; |
b1462dfa | 9008 | int _arg2 = (int ) TRUE; |
1d99702e RD |
9009 | PyObject * _argo0 = 0; |
9010 | PyObject * _argo1 = 0; | |
efc5f224 | 9011 | char *_kwnames[] = { "self","item","bold", NULL }; |
b8b8dda7 RD |
9012 | |
9013 | self = self; | |
b1462dfa | 9014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemBold",_kwnames,&_argo0,&_argo1,&_arg2)) |
b8b8dda7 | 9015 | return NULL; |
1d99702e RD |
9016 | if (_argo0) { |
9017 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9018 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9019 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBold. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
9020 | return NULL; |
9021 | } | |
9022 | } | |
1d99702e RD |
9023 | if (_argo1) { |
9024 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9025 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
b8b8dda7 RD |
9026 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBold. Expected _wxTreeItemId_p."); |
9027 | return NULL; | |
9028 | } | |
9029 | } | |
cf694132 RD |
9030 | { |
9031 | wxPy_BEGIN_ALLOW_THREADS; | |
9032 | wxTreeCtrl_SetItemBold(_arg0,*_arg1,_arg2); | |
9033 | ||
9034 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9035 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9036 | } Py_INCREF(Py_None); |
b8b8dda7 RD |
9037 | _resultobj = Py_None; |
9038 | return _resultobj; | |
9039 | } | |
9040 | ||
9041 | #define wxTreeCtrl_IsBold(_swigobj,_swigarg0) (_swigobj->IsBold(_swigarg0)) | |
efc5f224 | 9042 | static PyObject *_wrap_wxTreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
9043 | PyObject * _resultobj; |
9044 | bool _result; | |
f6bcfd97 | 9045 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 9046 | wxTreeItemId * _arg1; |
1d99702e RD |
9047 | PyObject * _argo0 = 0; |
9048 | PyObject * _argo1 = 0; | |
efc5f224 | 9049 | char *_kwnames[] = { "self","item", NULL }; |
b8b8dda7 RD |
9050 | |
9051 | self = self; | |
efc5f224 | 9052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsBold",_kwnames,&_argo0,&_argo1)) |
b8b8dda7 | 9053 | return NULL; |
1d99702e RD |
9054 | if (_argo0) { |
9055 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9056 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9057 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsBold. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
9058 | return NULL; |
9059 | } | |
9060 | } | |
1d99702e RD |
9061 | if (_argo1) { |
9062 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9063 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
b8b8dda7 RD |
9064 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsBold. Expected _wxTreeItemId_p."); |
9065 | return NULL; | |
9066 | } | |
9067 | } | |
cf694132 RD |
9068 | { |
9069 | wxPy_BEGIN_ALLOW_THREADS; | |
9070 | _result = (bool )wxTreeCtrl_IsBold(_arg0,*_arg1); | |
9071 | ||
9072 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9073 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9074 | } _resultobj = Py_BuildValue("i",_result); |
b8b8dda7 RD |
9075 | return _resultobj; |
9076 | } | |
9077 | ||
164b735b | 9078 | #define wxTreeCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) |
efc5f224 | 9079 | static PyObject *_wrap_wxTreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
9080 | PyObject * _resultobj; |
9081 | wxTreeItemId * _result; | |
f6bcfd97 | 9082 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 9083 | wxPoint * _arg1; |
164b735b RD |
9084 | int * _arg2; |
9085 | int temp; | |
1d99702e | 9086 | PyObject * _argo0 = 0; |
164b735b | 9087 | wxPoint temp0; |
2f90df85 | 9088 | PyObject * _obj1 = 0; |
efc5f224 | 9089 | char *_kwnames[] = { "self","point", NULL }; |
b8b8dda7 RD |
9090 | char _ptemp[128]; |
9091 | ||
9092 | self = self; | |
164b735b RD |
9093 | { |
9094 | _arg2 = &temp; | |
9095 | } | |
2f90df85 | 9096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_HitTest",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 9097 | return NULL; |
1d99702e RD |
9098 | if (_argo0) { |
9099 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9100 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9101 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_HitTest. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
9102 | return NULL; |
9103 | } | |
9104 | } | |
2f90df85 | 9105 | { |
164b735b | 9106 | _arg1 = &temp0; |
2f90df85 | 9107 | if (! wxPoint_helper(_obj1, &_arg1)) |
b8b8dda7 | 9108 | return NULL; |
2f90df85 | 9109 | } |
cf694132 RD |
9110 | { |
9111 | wxPy_BEGIN_ALLOW_THREADS; | |
164b735b | 9112 | _result = new wxTreeItemId (wxTreeCtrl_HitTest(_arg0,*_arg1,*_arg2)); |
cf694132 RD |
9113 | |
9114 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9115 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9116 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
b8b8dda7 | 9117 | _resultobj = Py_BuildValue("s",_ptemp); |
164b735b RD |
9118 | { |
9119 | PyObject *o; | |
9120 | o = PyInt_FromLong((long) (*_arg2)); | |
9121 | _resultobj = t_output_helper(_resultobj, o); | |
9122 | } | |
b8b8dda7 RD |
9123 | return _resultobj; |
9124 | } | |
9125 | ||
b7e72427 RD |
9126 | #define wxTreeCtrl_SetItemTextColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemTextColour(_swigarg0,_swigarg1)) |
9127 | static PyObject *_wrap_wxTreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9128 | PyObject * _resultobj; | |
f6bcfd97 | 9129 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
9130 | wxTreeItemId * _arg1; |
9131 | wxColour * _arg2; | |
9132 | PyObject * _argo0 = 0; | |
9133 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
9134 | wxColour temp; |
9135 | PyObject * _obj2 = 0; | |
b7e72427 RD |
9136 | char *_kwnames[] = { "self","item","col", NULL }; |
9137 | ||
9138 | self = self; | |
f6bcfd97 | 9139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemTextColour",_kwnames,&_argo0,&_argo1,&_obj2)) |
b7e72427 RD |
9140 | return NULL; |
9141 | if (_argo0) { | |
9142 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9143 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9144 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemTextColour. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
9145 | return NULL; |
9146 | } | |
9147 | } | |
9148 | if (_argo1) { | |
9149 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9150 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9151 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemTextColour. Expected _wxTreeItemId_p."); | |
9152 | return NULL; | |
9153 | } | |
9154 | } | |
f6bcfd97 BP |
9155 | { |
9156 | _arg2 = &temp; | |
9157 | if (! wxColour_helper(_obj2, &_arg2)) | |
b7e72427 | 9158 | return NULL; |
f6bcfd97 | 9159 | } |
b7e72427 RD |
9160 | { |
9161 | wxPy_BEGIN_ALLOW_THREADS; | |
9162 | wxTreeCtrl_SetItemTextColour(_arg0,*_arg1,*_arg2); | |
9163 | ||
9164 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9165 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
9166 | } Py_INCREF(Py_None); |
9167 | _resultobj = Py_None; | |
9168 | return _resultobj; | |
9169 | } | |
9170 | ||
9171 | #define wxTreeCtrl_SetItemBackgroundColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBackgroundColour(_swigarg0,_swigarg1)) | |
9172 | static PyObject *_wrap_wxTreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9173 | PyObject * _resultobj; | |
f6bcfd97 | 9174 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
9175 | wxTreeItemId * _arg1; |
9176 | wxColour * _arg2; | |
9177 | PyObject * _argo0 = 0; | |
9178 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
9179 | wxColour temp; |
9180 | PyObject * _obj2 = 0; | |
b7e72427 RD |
9181 | char *_kwnames[] = { "self","item","col", NULL }; |
9182 | ||
9183 | self = self; | |
f6bcfd97 | 9184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemBackgroundColour",_kwnames,&_argo0,&_argo1,&_obj2)) |
b7e72427 RD |
9185 | return NULL; |
9186 | if (_argo0) { | |
9187 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9188 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9189 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
9190 | return NULL; |
9191 | } | |
9192 | } | |
9193 | if (_argo1) { | |
9194 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9195 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9196 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxTreeItemId_p."); | |
9197 | return NULL; | |
9198 | } | |
9199 | } | |
f6bcfd97 BP |
9200 | { |
9201 | _arg2 = &temp; | |
9202 | if (! wxColour_helper(_obj2, &_arg2)) | |
b7e72427 | 9203 | return NULL; |
f6bcfd97 | 9204 | } |
b7e72427 RD |
9205 | { |
9206 | wxPy_BEGIN_ALLOW_THREADS; | |
9207 | wxTreeCtrl_SetItemBackgroundColour(_arg0,*_arg1,*_arg2); | |
9208 | ||
9209 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9210 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
9211 | } Py_INCREF(Py_None); |
9212 | _resultobj = Py_None; | |
9213 | return _resultobj; | |
9214 | } | |
9215 | ||
9216 | #define wxTreeCtrl_SetItemFont(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemFont(_swigarg0,_swigarg1)) | |
9217 | static PyObject *_wrap_wxTreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9218 | PyObject * _resultobj; | |
f6bcfd97 | 9219 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
9220 | wxTreeItemId * _arg1; |
9221 | wxFont * _arg2; | |
9222 | PyObject * _argo0 = 0; | |
9223 | PyObject * _argo1 = 0; | |
9224 | PyObject * _argo2 = 0; | |
9225 | char *_kwnames[] = { "self","item","font", NULL }; | |
9226 | ||
9227 | self = self; | |
9228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemFont",_kwnames,&_argo0,&_argo1,&_argo2)) | |
9229 | return NULL; | |
9230 | if (_argo0) { | |
9231 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9232 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9233 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemFont. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
9234 | return NULL; |
9235 | } | |
9236 | } | |
9237 | if (_argo1) { | |
9238 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9239 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9240 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemFont. Expected _wxTreeItemId_p."); | |
9241 | return NULL; | |
9242 | } | |
9243 | } | |
9244 | if (_argo2) { | |
9245 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
9246 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
9247 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemFont. Expected _wxFont_p."); | |
9248 | return NULL; | |
9249 | } | |
9250 | } | |
9251 | { | |
9252 | wxPy_BEGIN_ALLOW_THREADS; | |
9253 | wxTreeCtrl_SetItemFont(_arg0,*_arg1,*_arg2); | |
9254 | ||
9255 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9256 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
9257 | } Py_INCREF(Py_None); |
9258 | _resultobj = Py_None; | |
9259 | return _resultobj; | |
9260 | } | |
9261 | ||
8ab979d7 | 9262 | static PyMethodDef controls2cMethods[] = { |
b7e72427 RD |
9263 | { "wxTreeCtrl_SetItemFont", (PyCFunction) _wrap_wxTreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, |
9264 | { "wxTreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9265 | { "wxTreeCtrl_SetItemTextColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9266 | { "wxTreeCtrl_HitTest", (PyCFunction) _wrap_wxTreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
9267 | { "wxTreeCtrl_IsBold", (PyCFunction) _wrap_wxTreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
9268 | { "wxTreeCtrl_SetItemBold", (PyCFunction) _wrap_wxTreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 9269 | { "wxTreeCtrl_SortChildren", (PyCFunction) _wrap_wxTreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9270 | { "wxTreeCtrl_EditLabel", (PyCFunction) _wrap_wxTreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, |
9271 | { "wxTreeCtrl_ScrollTo", (PyCFunction) _wrap_wxTreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
9272 | { "wxTreeCtrl_EnsureVisible", (PyCFunction) _wrap_wxTreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
9273 | { "wxTreeCtrl_SelectItem", (PyCFunction) _wrap_wxTreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
9274 | { "wxTreeCtrl_UnselectAll", (PyCFunction) _wrap_wxTreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, | |
9275 | { "wxTreeCtrl_Unselect", (PyCFunction) _wrap_wxTreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
9276 | { "wxTreeCtrl_Toggle", (PyCFunction) _wrap_wxTreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
9277 | { "wxTreeCtrl_CollapseAndReset", (PyCFunction) _wrap_wxTreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
9278 | { "wxTreeCtrl_Collapse", (PyCFunction) _wrap_wxTreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
9279 | { "wxTreeCtrl_Expand", (PyCFunction) _wrap_wxTreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
9280 | { "wxTreeCtrl_DeleteAllItems", (PyCFunction) _wrap_wxTreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
9281 | { "wxTreeCtrl_DeleteChildren", (PyCFunction) _wrap_wxTreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
9282 | { "wxTreeCtrl_Delete", (PyCFunction) _wrap_wxTreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
9283 | { "wxTreeCtrl_AppendItem", (PyCFunction) _wrap_wxTreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 9284 | { "wxTreeCtrl_InsertItemBefore", (PyCFunction) _wrap_wxTreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9285 | { "wxTreeCtrl_InsertItem", (PyCFunction) _wrap_wxTreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, |
9286 | { "wxTreeCtrl_PrependItem", (PyCFunction) _wrap_wxTreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
9287 | { "wxTreeCtrl_AddRoot", (PyCFunction) _wrap_wxTreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 9288 | { "wxTreeCtrl_GetLastChild", (PyCFunction) _wrap_wxTreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9289 | { "wxTreeCtrl_GetPrevVisible", (PyCFunction) _wrap_wxTreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, |
9290 | { "wxTreeCtrl_GetNextVisible", (PyCFunction) _wrap_wxTreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
9291 | { "wxTreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_wxTreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
9292 | { "wxTreeCtrl_GetPrevSibling", (PyCFunction) _wrap_wxTreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
9293 | { "wxTreeCtrl_GetNextSibling", (PyCFunction) _wrap_wxTreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
9294 | { "wxTreeCtrl_GetNextChild", (PyCFunction) _wrap_wxTreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
9295 | { "wxTreeCtrl_GetFirstChild", (PyCFunction) _wrap_wxTreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
9296 | { "wxTreeCtrl_GetChildrenCount", (PyCFunction) _wrap_wxTreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 9297 | { "wxTreeCtrl_GetSelections", (PyCFunction) _wrap_wxTreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 9298 | { "wxTreeCtrl_GetItemParent", (PyCFunction) _wrap_wxTreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9299 | { "wxTreeCtrl_GetSelection", (PyCFunction) _wrap_wxTreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, |
9300 | { "wxTreeCtrl_GetRootItem", (PyCFunction) _wrap_wxTreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
9301 | { "wxTreeCtrl_IsSelected", (PyCFunction) _wrap_wxTreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
9302 | { "wxTreeCtrl_IsExpanded", (PyCFunction) _wrap_wxTreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
9303 | { "wxTreeCtrl_ItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
9304 | { "wxTreeCtrl_IsVisible", (PyCFunction) _wrap_wxTreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
9305 | { "wxTreeCtrl_SetPyData", (PyCFunction) _wrap_wxTreeCtrl_SetPyData, METH_VARARGS | METH_KEYWORDS }, | |
9306 | { "wxTreeCtrl_GetPyData", (PyCFunction) _wrap_wxTreeCtrl_GetPyData, METH_VARARGS | METH_KEYWORDS }, | |
9307 | { "wxTreeCtrl_SetItemData", (PyCFunction) _wrap_wxTreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
9308 | { "wxTreeCtrl_GetItemData", (PyCFunction) _wrap_wxTreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
9309 | { "wxTreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
9310 | { "wxTreeCtrl_SetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
9311 | { "wxTreeCtrl_SetItemImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
9312 | { "wxTreeCtrl_SetItemText", (PyCFunction) _wrap_wxTreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
9313 | { "wxTreeCtrl_GetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
9314 | { "wxTreeCtrl_GetItemImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
9315 | { "wxTreeCtrl_GetItemText", (PyCFunction) _wrap_wxTreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
9316 | { "wxTreeCtrl_SetSpacing", (PyCFunction) _wrap_wxTreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, |
9317 | { "wxTreeCtrl_GetSpacing", (PyCFunction) _wrap_wxTreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
9318 | { "wxTreeCtrl_AssignStateImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, |
9319 | { "wxTreeCtrl_AssignImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9320 | { "wxTreeCtrl_SetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, |
9321 | { "wxTreeCtrl_SetImageList", (PyCFunction) _wrap_wxTreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
9322 | { "wxTreeCtrl_GetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
9323 | { "wxTreeCtrl_GetImageList", (PyCFunction) _wrap_wxTreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
9324 | { "wxTreeCtrl_SetIndent", (PyCFunction) _wrap_wxTreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
9325 | { "wxTreeCtrl_GetIndent", (PyCFunction) _wrap_wxTreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
9326 | { "wxTreeCtrl_GetCount", (PyCFunction) _wrap_wxTreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
0220cbc1 | 9327 | { "wxTreeCtrl__setCallbackInfo", (PyCFunction) _wrap_wxTreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
9328 | { "wxTreeCtrl_Create", (PyCFunction) _wrap_wxTreeCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
9329 | { "new_wxPreTreeCtrl", (PyCFunction) _wrap_new_wxPreTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9330 | { "new_wxTreeCtrl", (PyCFunction) _wrap_new_wxTreeCtrl, METH_VARARGS | METH_KEYWORDS }, |
9331 | { "wxTreeEvent_GetLabel", (PyCFunction) _wrap_wxTreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
9332 | { "wxTreeEvent_GetCode", (PyCFunction) _wrap_wxTreeEvent_GetCode, METH_VARARGS | METH_KEYWORDS }, | |
65191ae8 | 9333 | { "wxTreeEvent_GetKeyEvent", (PyCFunction) _wrap_wxTreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9334 | { "wxTreeEvent_GetPoint", (PyCFunction) _wrap_wxTreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, |
9335 | { "wxTreeEvent_GetOldItem", (PyCFunction) _wrap_wxTreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
9336 | { "wxTreeEvent_GetItem", (PyCFunction) _wrap_wxTreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 | 9337 | { "new_wxTreeEvent", (PyCFunction) _wrap_new_wxTreeEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9338 | { "wxTreeItemData_SetId", (PyCFunction) _wrap_wxTreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, |
9339 | { "wxTreeItemData_GetId", (PyCFunction) _wrap_wxTreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
9340 | { "wxTreeItemData_SetData", (PyCFunction) _wrap_wxTreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
9341 | { "wxTreeItemData_GetData", (PyCFunction) _wrap_wxTreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
9342 | { "new_wxTreeItemData", (PyCFunction) _wrap_new_wxTreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 9343 | { "wxTreeItemId___cmp__", (PyCFunction) _wrap_wxTreeItemId___cmp__, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9344 | { "wxTreeItemId_IsOk", (PyCFunction) _wrap_wxTreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, |
9345 | { "delete_wxTreeItemId", (PyCFunction) _wrap_delete_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
9346 | { "new_wxTreeItemId", (PyCFunction) _wrap_new_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
9347 | { "wxTreeItemAttr_GetFont", (PyCFunction) _wrap_wxTreeItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, |
9348 | { "wxTreeItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9349 | { "wxTreeItemAttr_GetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9350 | { "wxTreeItemAttr_HasFont", (PyCFunction) _wrap_wxTreeItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
9351 | { "wxTreeItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9352 | { "wxTreeItemAttr_HasTextColour", (PyCFunction) _wrap_wxTreeItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9353 | { "wxTreeItemAttr_SetFont", (PyCFunction) _wrap_wxTreeItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
9354 | { "wxTreeItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9355 | { "wxTreeItemAttr_SetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9356 | { "new_wxTreeItemAttr", (PyCFunction) _wrap_new_wxTreeItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
059a841c RD |
9357 | { "wxListView_ClearColumnImage", (PyCFunction) _wrap_wxListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS }, |
9358 | { "wxListView_SetColumnImage", (PyCFunction) _wrap_wxListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
9359 | { "wxListView_IsSelected", (PyCFunction) _wrap_wxListView_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
9360 | { "wxListView_GetFirstSelected", (PyCFunction) _wrap_wxListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
9361 | { "wxListView_GetNextSelected", (PyCFunction) _wrap_wxListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
9362 | { "wxListView_GetFocusedItem", (PyCFunction) _wrap_wxListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS }, | |
9363 | { "wxListView_Focus", (PyCFunction) _wrap_wxListView_Focus, METH_VARARGS | METH_KEYWORDS }, | |
9364 | { "wxListView_Select", (PyCFunction) _wrap_wxListView_Select, METH_VARARGS | METH_KEYWORDS }, | |
9365 | { "wxListView_Create", (PyCFunction) _wrap_wxListView_Create, METH_VARARGS | METH_KEYWORDS }, | |
9366 | { "new_wxPreListView", (PyCFunction) _wrap_new_wxPreListView, METH_VARARGS | METH_KEYWORDS }, | |
9367 | { "new_wxListView", (PyCFunction) _wrap_new_wxListView, METH_VARARGS | METH_KEYWORDS }, | |
dcd38683 | 9368 | { "wxListCtrl_SortItems", (PyCFunction) _wrap_wxListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9369 | { "wxListCtrl_ScrollList", (PyCFunction) _wrap_wxListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, |
cd096152 RD |
9370 | { "wxListCtrl_SetItemCount", (PyCFunction) _wrap_wxListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, |
9371 | { "wxListCtrl_InsertColumn", (PyCFunction) _wrap_wxListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
9372 | { "wxListCtrl_InsertColumnInfo", (PyCFunction) _wrap_wxListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9373 | { "wxListCtrl_InsertImageStringItem", (PyCFunction) _wrap_wxListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, |
9374 | { "wxListCtrl_InsertImageItem", (PyCFunction) _wrap_wxListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
9375 | { "wxListCtrl_InsertStringItem", (PyCFunction) _wrap_wxListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
9376 | { "wxListCtrl_InsertItem", (PyCFunction) _wrap_wxListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9377 | { "wxListCtrl_HitTest", (PyCFunction) _wrap_wxListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9378 | { "wxListCtrl_FindItemAtPos", (PyCFunction) _wrap_wxListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, |
9379 | { "wxListCtrl_FindItemData", (PyCFunction) _wrap_wxListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
9380 | { "wxListCtrl_FindItem", (PyCFunction) _wrap_wxListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
9381 | { "wxListCtrl_EnsureVisible", (PyCFunction) _wrap_wxListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9382 | { "wxListCtrl_ClearAll", (PyCFunction) _wrap_wxListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, |
9383 | { "wxListCtrl_DeleteAllColumns", (PyCFunction) _wrap_wxListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
9384 | { "wxListCtrl_DeleteColumn", (PyCFunction) _wrap_wxListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
9385 | { "wxListCtrl_DeleteAllItems", (PyCFunction) _wrap_wxListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
9386 | { "wxListCtrl_DeleteItem", (PyCFunction) _wrap_wxListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
9387 | { "wxListCtrl_Arrange", (PyCFunction) _wrap_wxListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
cd096152 RD |
9388 | { "wxListCtrl_RefreshItems", (PyCFunction) _wrap_wxListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, |
9389 | { "wxListCtrl_RefreshItem", (PyCFunction) _wrap_wxListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, | |
9390 | { "wxListCtrl_IsVirtual", (PyCFunction) _wrap_wxListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, | |
9391 | { "wxListCtrl_AssignImageList", (PyCFunction) _wrap_wxListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
9392 | { "wxListCtrl_SetImageList", (PyCFunction) _wrap_wxListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
9393 | { "wxListCtrl_GetImageList", (PyCFunction) _wrap_wxListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
9394 | { "wxListCtrl_GetNextItem", (PyCFunction) _wrap_wxListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
9395 | { "wxListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_wxListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
9396 | { "wxListCtrl_SetSingleStyle", (PyCFunction) _wrap_wxListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
9397 | { "wxListCtrl_GetTopItem", (PyCFunction) _wrap_wxListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
9398 | { "wxListCtrl_SetTextColour", (PyCFunction) _wrap_wxListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9399 | { "wxListCtrl_GetTextColour", (PyCFunction) _wrap_wxListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9400 | { "wxListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_wxListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
9401 | { "wxListCtrl_GetItemSpacing", (PyCFunction) _wrap_wxListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
9402 | { "wxListCtrl_GetColumnCount", (PyCFunction) _wrap_wxListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
9403 | { "wxListCtrl_GetItemCount", (PyCFunction) _wrap_wxListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
9404 | { "wxListCtrl_SetItemPosition", (PyCFunction) _wrap_wxListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
9405 | { "wxListCtrl_GetItemRect", (PyCFunction) _wrap_wxListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
9406 | { "wxListCtrl_GetItemPosition", (PyCFunction) _wrap_wxListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
9407 | { "wxListCtrl_SetItemData", (PyCFunction) _wrap_wxListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
9408 | { "wxListCtrl_GetItemData", (PyCFunction) _wrap_wxListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
9409 | { "wxListCtrl_SetItemText", (PyCFunction) _wrap_wxListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
9410 | { "wxListCtrl_GetItemText", (PyCFunction) _wrap_wxListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
9411 | { "wxListCtrl_SetItemImage", (PyCFunction) _wrap_wxListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
9412 | { "wxListCtrl_SetItemState", (PyCFunction) _wrap_wxListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
9413 | { "wxListCtrl_GetItemState", (PyCFunction) _wrap_wxListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
9414 | { "wxListCtrl_SetStringItem", (PyCFunction) _wrap_wxListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
9415 | { "wxListCtrl_SetItem", (PyCFunction) _wrap_wxListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
9416 | { "wxListCtrl_GetItem", (PyCFunction) _wrap_wxListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
9417 | { "wxListCtrl_GetCountPerPage", (PyCFunction) _wrap_wxListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
9418 | { "wxListCtrl_SetColumnWidth", (PyCFunction) _wrap_wxListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
9419 | { "wxListCtrl_GetColumnWidth", (PyCFunction) _wrap_wxListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
9420 | { "wxListCtrl_SetColumn", (PyCFunction) _wrap_wxListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
9421 | { "wxListCtrl_GetColumn", (PyCFunction) _wrap_wxListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
9422 | { "wxListCtrl_SetBackgroundColour", (PyCFunction) _wrap_wxListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9423 | { "wxListCtrl_SetForegroundColour", (PyCFunction) _wrap_wxListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
0220cbc1 | 9424 | { "wxListCtrl__setCallbackInfo", (PyCFunction) _wrap_wxListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
9425 | { "wxListCtrl_Create", (PyCFunction) _wrap_wxListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
9426 | { "new_wxPreListCtrl", (PyCFunction) _wrap_new_wxPreListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9427 | { "new_wxListCtrl", (PyCFunction) _wrap_new_wxListCtrl, METH_VARARGS | METH_KEYWORDS }, |
059a841c RD |
9428 | { "wxListEvent_GetCacheTo", (PyCFunction) _wrap_wxListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS }, |
9429 | { "wxListEvent_GetCacheFrom", (PyCFunction) _wrap_wxListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
9430 | { "wxListEvent_GetItem", (PyCFunction) _wrap_wxListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, |
9431 | { "wxListEvent_GetMask", (PyCFunction) _wrap_wxListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
9432 | { "wxListEvent_GetData", (PyCFunction) _wrap_wxListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
9433 | { "wxListEvent_GetImage", (PyCFunction) _wrap_wxListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
9434 | { "wxListEvent_GetText", (PyCFunction) _wrap_wxListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
9435 | { "wxListEvent_GetLabel", (PyCFunction) _wrap_wxListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
9436 | { "wxListEvent_GetPoint", (PyCFunction) _wrap_wxListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 9437 | { "wxListEvent_GetColumn", (PyCFunction) _wrap_wxListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
9438 | { "wxListEvent_GetIndex", (PyCFunction) _wrap_wxListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, |
9439 | { "wxListEvent_GetCode", (PyCFunction) _wrap_wxListEvent_GetCode, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9440 | { "wxListEvent_m_item_get", (PyCFunction) _wrap_wxListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, |
9441 | { "wxListEvent_m_item_set", (PyCFunction) _wrap_wxListEvent_m_item_set, METH_VARARGS | METH_KEYWORDS }, | |
9442 | { "wxListEvent_m_pointDrag_get", (PyCFunction) _wrap_wxListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, | |
9443 | { "wxListEvent_m_pointDrag_set", (PyCFunction) _wrap_wxListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9444 | { "wxListEvent_m_col_get", (PyCFunction) _wrap_wxListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, |
9445 | { "wxListEvent_m_col_set", (PyCFunction) _wrap_wxListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9446 | { "wxListEvent_m_itemIndex_get", (PyCFunction) _wrap_wxListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, |
9447 | { "wxListEvent_m_itemIndex_set", (PyCFunction) _wrap_wxListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
6e8a778a RD |
9448 | { "wxListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, |
9449 | { "wxListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9450 | { "wxListEvent_m_code_get", (PyCFunction) _wrap_wxListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, |
9451 | { "wxListEvent_m_code_set", (PyCFunction) _wrap_wxListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS }, | |
059a841c | 9452 | { "new_wxListEvent", (PyCFunction) _wrap_new_wxListEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9453 | { "wxListItem_m_width_get", (PyCFunction) _wrap_wxListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, |
9454 | { "wxListItem_m_width_set", (PyCFunction) _wrap_wxListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
9455 | { "wxListItem_m_format_get", (PyCFunction) _wrap_wxListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
9456 | { "wxListItem_m_format_set", (PyCFunction) _wrap_wxListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
9457 | { "wxListItem_m_data_get", (PyCFunction) _wrap_wxListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
9458 | { "wxListItem_m_data_set", (PyCFunction) _wrap_wxListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
9459 | { "wxListItem_m_image_get", (PyCFunction) _wrap_wxListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
9460 | { "wxListItem_m_image_set", (PyCFunction) _wrap_wxListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
9461 | { "wxListItem_m_text_get", (PyCFunction) _wrap_wxListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
9462 | { "wxListItem_m_text_set", (PyCFunction) _wrap_wxListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
9463 | { "wxListItem_m_stateMask_get", (PyCFunction) _wrap_wxListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
9464 | { "wxListItem_m_stateMask_set", (PyCFunction) _wrap_wxListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
9465 | { "wxListItem_m_state_get", (PyCFunction) _wrap_wxListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
9466 | { "wxListItem_m_state_set", (PyCFunction) _wrap_wxListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
9467 | { "wxListItem_m_col_get", (PyCFunction) _wrap_wxListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
9468 | { "wxListItem_m_col_set", (PyCFunction) _wrap_wxListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
9469 | { "wxListItem_m_itemId_get", (PyCFunction) _wrap_wxListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
9470 | { "wxListItem_m_itemId_set", (PyCFunction) _wrap_wxListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
9471 | { "wxListItem_m_mask_get", (PyCFunction) _wrap_wxListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
9472 | { "wxListItem_m_mask_set", (PyCFunction) _wrap_wxListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
9473 | { "wxListItem_GetFont", (PyCFunction) _wrap_wxListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, |
9474 | { "wxListItem_GetBackgroundColour", (PyCFunction) _wrap_wxListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9475 | { "wxListItem_GetTextColour", (PyCFunction) _wrap_wxListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9476 | { "wxListItem_HasAttributes", (PyCFunction) _wrap_wxListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
9477 | { "wxListItem_GetAttributes", (PyCFunction) _wrap_wxListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
9478 | { "wxListItem_GetAlign", (PyCFunction) _wrap_wxListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
9479 | { "wxListItem_GetWidth", (PyCFunction) _wrap_wxListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
9480 | { "wxListItem_GetData", (PyCFunction) _wrap_wxListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
9481 | { "wxListItem_GetImage", (PyCFunction) _wrap_wxListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
9482 | { "wxListItem_GetText", (PyCFunction) _wrap_wxListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
9483 | { "wxListItem_GetState", (PyCFunction) _wrap_wxListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
9484 | { "wxListItem_GetColumn", (PyCFunction) _wrap_wxListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
9485 | { "wxListItem_GetId", (PyCFunction) _wrap_wxListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
9486 | { "wxListItem_GetMask", (PyCFunction) _wrap_wxListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
9487 | { "wxListItem_SetFont", (PyCFunction) _wrap_wxListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
9488 | { "wxListItem_SetBackgroundColour", (PyCFunction) _wrap_wxListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9489 | { "wxListItem_SetTextColour", (PyCFunction) _wrap_wxListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9490 | { "wxListItem_SetAlign", (PyCFunction) _wrap_wxListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
9491 | { "wxListItem_SetWidth", (PyCFunction) _wrap_wxListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
9492 | { "wxListItem_SetData", (PyCFunction) _wrap_wxListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
9493 | { "wxListItem_SetImage", (PyCFunction) _wrap_wxListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
9494 | { "wxListItem_SetText", (PyCFunction) _wrap_wxListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
9495 | { "wxListItem_SetStateMask", (PyCFunction) _wrap_wxListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
9496 | { "wxListItem_SetState", (PyCFunction) _wrap_wxListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
9497 | { "wxListItem_SetColumn", (PyCFunction) _wrap_wxListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
9498 | { "wxListItem_SetId", (PyCFunction) _wrap_wxListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
9499 | { "wxListItem_SetMask", (PyCFunction) _wrap_wxListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
9500 | { "wxListItem_ClearAttributes", (PyCFunction) _wrap_wxListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
9501 | { "wxListItem_Clear", (PyCFunction) _wrap_wxListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
9502 | { "delete_wxListItem", (PyCFunction) _wrap_delete_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
9503 | { "new_wxListItem", (PyCFunction) _wrap_new_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
9504 | { "wxListItemAttr_GetFont", (PyCFunction) _wrap_wxListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
9505 | { "wxListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9506 | { "wxListItemAttr_GetTextColour", (PyCFunction) _wrap_wxListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9507 | { "wxListItemAttr_HasFont", (PyCFunction) _wrap_wxListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
9508 | { "wxListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9509 | { "wxListItemAttr_HasTextColour", (PyCFunction) _wrap_wxListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9510 | { "wxListItemAttr_SetFont", (PyCFunction) _wrap_wxListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
9511 | { "wxListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9512 | { "wxListItemAttr_SetTextColour", (PyCFunction) _wrap_wxListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9513 | { "new_wxListItemAttr", (PyCFunction) _wrap_new_wxListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
8ab979d7 RD |
9514 | { NULL, NULL } |
9515 | }; | |
1d99702e RD |
9516 | #ifdef __cplusplus |
9517 | } | |
9518 | #endif | |
9519 | /* | |
9520 | * This table is used by the pointer type-checker | |
9521 | */ | |
9522 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 9523 | { "_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent}, |
1d99702e | 9524 | { "_wxEvent","_wxListEvent",SwigwxListEventTowxEvent}, |
1d99702e | 9525 | { "_signed_long","_long",0}, |
b1462dfa | 9526 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
9527 | { "_wxPrintQuality","_int",0}, |
9528 | { "_wxPrintQuality","_signed_int",0}, | |
9529 | { "_wxPrintQuality","_unsigned_int",0}, | |
9530 | { "_wxPrintQuality","_wxWindowID",0}, | |
9531 | { "_wxPrintQuality","_uint",0}, | |
9532 | { "_wxPrintQuality","_EBool",0}, | |
9533 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 9534 | { "_wxPrintQuality","_time_t",0}, |
1d99702e | 9535 | { "_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, |
c368d904 | 9536 | { "_wxNotifyEvent","_wxListEvent",SwigwxListEventTowxNotifyEvent}, |
1d99702e | 9537 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
9538 | { "_long","_unsigned_long",0}, |
9539 | { "_long","_signed_long",0}, | |
b1462dfa | 9540 | { "_size_t","_wxCoord",0}, |
1d99702e | 9541 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 9542 | { "_size_t","_time_t",0}, |
1d99702e RD |
9543 | { "_size_t","_unsigned_int",0}, |
9544 | { "_size_t","_int",0}, | |
9545 | { "_size_t","_wxWindowID",0}, | |
9546 | { "_size_t","_uint",0}, | |
b1462dfa | 9547 | { "_uint","_wxCoord",0}, |
1d99702e | 9548 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 9549 | { "_uint","_time_t",0}, |
1d99702e RD |
9550 | { "_uint","_size_t",0}, |
9551 | { "_uint","_unsigned_int",0}, | |
9552 | { "_uint","_int",0}, | |
9553 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 9554 | { "_wxChar","_char",0}, |
1d99702e | 9555 | { "_wxCommandEvent","_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, |
1d99702e | 9556 | { "_wxCommandEvent","_wxListEvent",SwigwxListEventTowxCommandEvent}, |
f6bcfd97 | 9557 | { "_char","_wxChar",0}, |
059a841c | 9558 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 9559 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
9560 | { "_EBool","_wxPrintQuality",0}, |
9561 | { "_EBool","_signed_int",0}, | |
9562 | { "_EBool","_int",0}, | |
9563 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 9564 | { "_unsigned_long","_long",0}, |
059a841c | 9565 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 9566 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
9567 | { "_signed_int","_wxPrintQuality",0}, |
9568 | { "_signed_int","_EBool",0}, | |
9569 | { "_signed_int","_wxWindowID",0}, | |
9570 | { "_signed_int","_int",0}, | |
1d99702e RD |
9571 | { "_WXTYPE","_short",0}, |
9572 | { "_WXTYPE","_signed_short",0}, | |
9573 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
9574 | { "_unsigned_short","_WXTYPE",0}, |
9575 | { "_unsigned_short","_short",0}, | |
9df61a29 | 9576 | { "_wxObject","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxObject}, |
9df61a29 | 9577 | { "_wxObject","_wxTreeEvent",SwigwxTreeEventTowxObject}, |
9df61a29 | 9578 | { "_wxObject","_wxPyTreeItemData",SwigwxPyTreeItemDataTowxObject}, |
059a841c | 9579 | { "_wxObject","_wxListView",SwigwxListViewTowxObject}, |
cd096152 | 9580 | { "_wxObject","_wxPyListCtrl",SwigwxPyListCtrlTowxObject}, |
9df61a29 | 9581 | { "_wxObject","_wxListEvent",SwigwxListEventTowxObject}, |
9df61a29 | 9582 | { "_wxObject","_wxListItem",SwigwxListItemTowxObject}, |
1d99702e RD |
9583 | { "_signed_short","_WXTYPE",0}, |
9584 | { "_signed_short","_short",0}, | |
1d99702e | 9585 | { "_unsigned_char","_byte",0}, |
f6bcfd97 | 9586 | { "_wxControl","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, |
059a841c | 9587 | { "_wxControl","_wxListView",SwigwxListViewTowxControl}, |
cd096152 | 9588 | { "_wxControl","_wxPyListCtrl",SwigwxPyListCtrlTowxControl}, |
b1462dfa | 9589 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 9590 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 9591 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
9592 | { "_unsigned_int","_size_t",0}, |
9593 | { "_unsigned_int","_uint",0}, | |
9594 | { "_unsigned_int","_wxWindowID",0}, | |
9595 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
9596 | { "_short","_WXTYPE",0}, |
9597 | { "_short","_unsigned_short",0}, | |
9598 | { "_short","_signed_short",0}, | |
b1462dfa | 9599 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 9600 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 9601 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
9602 | { "_wxWindowID","_size_t",0}, |
9603 | { "_wxWindowID","_EBool",0}, | |
9604 | { "_wxWindowID","_uint",0}, | |
9605 | { "_wxWindowID","_int",0}, | |
9606 | { "_wxWindowID","_signed_int",0}, | |
9607 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 9608 | { "_int","_wxCoord",0}, |
1d99702e | 9609 | { "_int","_wxPrintQuality",0}, |
c368d904 | 9610 | { "_int","_time_t",0}, |
1d99702e RD |
9611 | { "_int","_size_t",0}, |
9612 | { "_int","_EBool",0}, | |
9613 | { "_int","_uint",0}, | |
9614 | { "_int","_wxWindowID",0}, | |
9615 | { "_int","_unsigned_int",0}, | |
9616 | { "_int","_signed_int",0}, | |
c368d904 RD |
9617 | { "_time_t","_wxCoord",0}, |
9618 | { "_time_t","_wxPrintQuality",0}, | |
9619 | { "_time_t","_unsigned_int",0}, | |
9620 | { "_time_t","_int",0}, | |
9621 | { "_time_t","_wxWindowID",0}, | |
9622 | { "_time_t","_uint",0}, | |
9623 | { "_time_t","_size_t",0}, | |
b1462dfa RD |
9624 | { "_wxCoord","_int",0}, |
9625 | { "_wxCoord","_signed_int",0}, | |
9626 | { "_wxCoord","_unsigned_int",0}, | |
9627 | { "_wxCoord","_wxWindowID",0}, | |
9628 | { "_wxCoord","_uint",0}, | |
9629 | { "_wxCoord","_EBool",0}, | |
9630 | { "_wxCoord","_size_t",0}, | |
c368d904 | 9631 | { "_wxCoord","_time_t",0}, |
b1462dfa | 9632 | { "_wxCoord","_wxPrintQuality",0}, |
059a841c | 9633 | { "_wxPyListCtrl","_wxListView",SwigwxListViewTowxPyListCtrl}, |
f6bcfd97 | 9634 | { "_wxEvtHandler","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, |
059a841c | 9635 | { "_wxEvtHandler","_wxListView",SwigwxListViewTowxEvtHandler}, |
cd096152 | 9636 | { "_wxEvtHandler","_wxPyListCtrl",SwigwxPyListCtrlTowxEvtHandler}, |
f6bcfd97 | 9637 | { "_wxWindow","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, |
059a841c | 9638 | { "_wxWindow","_wxListView",SwigwxListViewTowxWindow}, |
cd096152 | 9639 | { "_wxWindow","_wxPyListCtrl",SwigwxPyListCtrlTowxWindow}, |
1d99702e RD |
9640 | {0,0,0}}; |
9641 | ||
8ab979d7 RD |
9642 | static PyObject *SWIG_globals; |
9643 | #ifdef __cplusplus | |
9644 | extern "C" | |
9645 | #endif | |
1d99702e | 9646 | SWIGEXPORT(void) initcontrols2c() { |
8ab979d7 RD |
9647 | PyObject *m, *d; |
9648 | SWIG_globals = SWIG_newvarlink(); | |
9649 | m = Py_InitModule("controls2c", controls2cMethods); | |
9650 | d = PyModule_GetDict(m); | |
cd096152 RD |
9651 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
9652 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
9653 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
9654 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
9655 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
9656 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
9657 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_GET_INFO)); | |
9658 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_SET_INFO)); | |
9659 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
9660 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
9661 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_LIST_KEY_DOWN)); | |
9662 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
9663 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_CLICK)); | |
9664 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
9665 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
9666 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
9667 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_CACHE_HINT)); | |
059a841c RD |
9668 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); |
9669 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
9670 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
9671 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
262e41eb | 9672 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_FOCUSED)); |
cd096152 RD |
9673 | PyDict_SetItemString(d,"wxLC_VRULES", PyInt_FromLong((long) wxLC_VRULES)); |
9674 | PyDict_SetItemString(d,"wxLC_HRULES", PyInt_FromLong((long) wxLC_HRULES)); | |
9675 | PyDict_SetItemString(d,"wxLC_ICON", PyInt_FromLong((long) wxLC_ICON)); | |
9676 | PyDict_SetItemString(d,"wxLC_SMALL_ICON", PyInt_FromLong((long) wxLC_SMALL_ICON)); | |
9677 | PyDict_SetItemString(d,"wxLC_LIST", PyInt_FromLong((long) wxLC_LIST)); | |
9678 | PyDict_SetItemString(d,"wxLC_REPORT", PyInt_FromLong((long) wxLC_REPORT)); | |
9679 | PyDict_SetItemString(d,"wxLC_ALIGN_TOP", PyInt_FromLong((long) wxLC_ALIGN_TOP)); | |
9680 | PyDict_SetItemString(d,"wxLC_ALIGN_LEFT", PyInt_FromLong((long) wxLC_ALIGN_LEFT)); | |
9681 | PyDict_SetItemString(d,"wxLC_AUTOARRANGE", PyInt_FromLong((long) wxLC_AUTOARRANGE)); | |
9682 | PyDict_SetItemString(d,"wxLC_VIRTUAL", PyInt_FromLong((long) wxLC_VIRTUAL)); | |
9683 | PyDict_SetItemString(d,"wxLC_EDIT_LABELS", PyInt_FromLong((long) wxLC_EDIT_LABELS)); | |
9684 | PyDict_SetItemString(d,"wxLC_NO_HEADER", PyInt_FromLong((long) wxLC_NO_HEADER)); | |
9685 | PyDict_SetItemString(d,"wxLC_NO_SORT_HEADER", PyInt_FromLong((long) wxLC_NO_SORT_HEADER)); | |
9686 | PyDict_SetItemString(d,"wxLC_SINGLE_SEL", PyInt_FromLong((long) wxLC_SINGLE_SEL)); | |
9687 | PyDict_SetItemString(d,"wxLC_SORT_ASCENDING", PyInt_FromLong((long) wxLC_SORT_ASCENDING)); | |
9688 | PyDict_SetItemString(d,"wxLC_SORT_DESCENDING", PyInt_FromLong((long) wxLC_SORT_DESCENDING)); | |
9689 | PyDict_SetItemString(d,"wxLC_MASK_TYPE", PyInt_FromLong((long) wxLC_MASK_TYPE)); | |
9690 | PyDict_SetItemString(d,"wxLC_MASK_ALIGN", PyInt_FromLong((long) wxLC_MASK_ALIGN)); | |
9691 | PyDict_SetItemString(d,"wxLC_MASK_SORT", PyInt_FromLong((long) wxLC_MASK_SORT)); | |
059a841c | 9692 | PyDict_SetItemString(d,"wxLC_USER_TEXT", PyInt_FromLong((long) wxLC_USER_TEXT)); |
cd096152 | 9693 | PyDict_SetItemString(d,"wxLIST_MASK_STATE", PyInt_FromLong((long) wxLIST_MASK_STATE)); |
af309447 RD |
9694 | PyDict_SetItemString(d,"wxLIST_MASK_TEXT", PyInt_FromLong((long) wxLIST_MASK_TEXT)); |
9695 | PyDict_SetItemString(d,"wxLIST_MASK_IMAGE", PyInt_FromLong((long) wxLIST_MASK_IMAGE)); | |
9696 | PyDict_SetItemString(d,"wxLIST_MASK_DATA", PyInt_FromLong((long) wxLIST_MASK_DATA)); | |
cd096152 | 9697 | PyDict_SetItemString(d,"wxLIST_SET_ITEM", PyInt_FromLong((long) wxLIST_SET_ITEM)); |
af309447 RD |
9698 | PyDict_SetItemString(d,"wxLIST_MASK_WIDTH", PyInt_FromLong((long) wxLIST_MASK_WIDTH)); |
9699 | PyDict_SetItemString(d,"wxLIST_MASK_FORMAT", PyInt_FromLong((long) wxLIST_MASK_FORMAT)); | |
9700 | PyDict_SetItemString(d,"wxLIST_STATE_DONTCARE", PyInt_FromLong((long) wxLIST_STATE_DONTCARE)); | |
9701 | PyDict_SetItemString(d,"wxLIST_STATE_DROPHILITED", PyInt_FromLong((long) wxLIST_STATE_DROPHILITED)); | |
9702 | PyDict_SetItemString(d,"wxLIST_STATE_FOCUSED", PyInt_FromLong((long) wxLIST_STATE_FOCUSED)); | |
9703 | PyDict_SetItemString(d,"wxLIST_STATE_SELECTED", PyInt_FromLong((long) wxLIST_STATE_SELECTED)); | |
9704 | PyDict_SetItemString(d,"wxLIST_STATE_CUT", PyInt_FromLong((long) wxLIST_STATE_CUT)); | |
9705 | PyDict_SetItemString(d,"wxLIST_HITTEST_ABOVE", PyInt_FromLong((long) wxLIST_HITTEST_ABOVE)); | |
9706 | PyDict_SetItemString(d,"wxLIST_HITTEST_BELOW", PyInt_FromLong((long) wxLIST_HITTEST_BELOW)); | |
9707 | PyDict_SetItemString(d,"wxLIST_HITTEST_NOWHERE", PyInt_FromLong((long) wxLIST_HITTEST_NOWHERE)); | |
9708 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMICON)); | |
9709 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMLABEL)); | |
9710 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMRIGHT)); | |
9711 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMSTATEICON)); | |
9712 | PyDict_SetItemString(d,"wxLIST_HITTEST_TOLEFT", PyInt_FromLong((long) wxLIST_HITTEST_TOLEFT)); | |
9713 | PyDict_SetItemString(d,"wxLIST_HITTEST_TORIGHT", PyInt_FromLong((long) wxLIST_HITTEST_TORIGHT)); | |
9714 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEM", PyInt_FromLong((long) wxLIST_HITTEST_ONITEM)); | |
9715 | PyDict_SetItemString(d,"wxLIST_NEXT_ABOVE", PyInt_FromLong((long) wxLIST_NEXT_ABOVE)); | |
9716 | PyDict_SetItemString(d,"wxLIST_NEXT_ALL", PyInt_FromLong((long) wxLIST_NEXT_ALL)); | |
9717 | PyDict_SetItemString(d,"wxLIST_NEXT_BELOW", PyInt_FromLong((long) wxLIST_NEXT_BELOW)); | |
9718 | PyDict_SetItemString(d,"wxLIST_NEXT_LEFT", PyInt_FromLong((long) wxLIST_NEXT_LEFT)); | |
9719 | PyDict_SetItemString(d,"wxLIST_NEXT_RIGHT", PyInt_FromLong((long) wxLIST_NEXT_RIGHT)); | |
9720 | PyDict_SetItemString(d,"wxLIST_ALIGN_DEFAULT", PyInt_FromLong((long) wxLIST_ALIGN_DEFAULT)); | |
9721 | PyDict_SetItemString(d,"wxLIST_ALIGN_LEFT", PyInt_FromLong((long) wxLIST_ALIGN_LEFT)); | |
9722 | PyDict_SetItemString(d,"wxLIST_ALIGN_TOP", PyInt_FromLong((long) wxLIST_ALIGN_TOP)); | |
9723 | PyDict_SetItemString(d,"wxLIST_ALIGN_SNAP_TO_GRID", PyInt_FromLong((long) wxLIST_ALIGN_SNAP_TO_GRID)); | |
af309447 RD |
9724 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE", PyInt_FromLong((long) wxLIST_AUTOSIZE)); |
9725 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE_USEHEADER", PyInt_FromLong((long) wxLIST_AUTOSIZE_USEHEADER)); | |
9726 | PyDict_SetItemString(d,"wxLIST_RECT_BOUNDS", PyInt_FromLong((long) wxLIST_RECT_BOUNDS)); | |
9727 | PyDict_SetItemString(d,"wxLIST_RECT_ICON", PyInt_FromLong((long) wxLIST_RECT_ICON)); | |
9728 | PyDict_SetItemString(d,"wxLIST_RECT_LABEL", PyInt_FromLong((long) wxLIST_RECT_LABEL)); | |
9729 | PyDict_SetItemString(d,"wxLIST_FIND_UP", PyInt_FromLong((long) wxLIST_FIND_UP)); | |
9730 | PyDict_SetItemString(d,"wxLIST_FIND_DOWN", PyInt_FromLong((long) wxLIST_FIND_DOWN)); | |
9731 | PyDict_SetItemString(d,"wxLIST_FIND_LEFT", PyInt_FromLong((long) wxLIST_FIND_LEFT)); | |
9732 | PyDict_SetItemString(d,"wxLIST_FIND_RIGHT", PyInt_FromLong((long) wxLIST_FIND_RIGHT)); | |
f6bcfd97 BP |
9733 | PyDict_SetItemString(d,"wxLIST_FORMAT_LEFT", PyInt_FromLong((long) wxLIST_FORMAT_LEFT)); |
9734 | PyDict_SetItemString(d,"wxLIST_FORMAT_RIGHT", PyInt_FromLong((long) wxLIST_FORMAT_RIGHT)); | |
9735 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTRE", PyInt_FromLong((long) wxLIST_FORMAT_CENTRE)); | |
9736 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTER", PyInt_FromLong((long) wxLIST_FORMAT_CENTER)); | |
aa2a5b86 RD |
9737 | PyDict_SetItemString(d,"wxTR_NO_BUTTONS", PyInt_FromLong((long) wxTR_NO_BUTTONS)); |
9738 | PyDict_SetItemString(d,"wxTR_HAS_BUTTONS", PyInt_FromLong((long) wxTR_HAS_BUTTONS)); | |
9739 | PyDict_SetItemString(d,"wxTR_TWIST_BUTTONS", PyInt_FromLong((long) wxTR_TWIST_BUTTONS)); | |
9740 | PyDict_SetItemString(d,"wxTR_NO_LINES", PyInt_FromLong((long) wxTR_NO_LINES)); | |
9741 | PyDict_SetItemString(d,"wxTR_MAC_BUTTONS", PyInt_FromLong((long) wxTR_MAC_BUTTONS)); | |
9742 | PyDict_SetItemString(d,"wxTR_SINGLE", PyInt_FromLong((long) wxTR_SINGLE)); | |
9743 | PyDict_SetItemString(d,"wxTR_MULTIPLE", PyInt_FromLong((long) wxTR_MULTIPLE)); | |
9744 | PyDict_SetItemString(d,"wxTR_EXTENDED", PyInt_FromLong((long) wxTR_EXTENDED)); | |
9745 | PyDict_SetItemString(d,"wxTR_EDIT_LABELS", PyInt_FromLong((long) wxTR_EDIT_LABELS)); | |
9746 | PyDict_SetItemString(d,"wxTR_LINES_AT_ROOT", PyInt_FromLong((long) wxTR_LINES_AT_ROOT)); | |
9747 | PyDict_SetItemString(d,"wxTR_HIDE_ROOT", PyInt_FromLong((long) wxTR_HIDE_ROOT)); | |
9748 | PyDict_SetItemString(d,"wxTR_ROW_LINES", PyInt_FromLong((long) wxTR_ROW_LINES)); | |
9749 | PyDict_SetItemString(d,"wxTR_HAS_VARIABLE_ROW_HEIGHT", PyInt_FromLong((long) wxTR_HAS_VARIABLE_ROW_HEIGHT)); | |
9750 | PyDict_SetItemString(d,"wxTR_DEFAULT_STYLE", PyInt_FromLong((long) wxTR_DEFAULT_STYLE)); | |
694759cf RD |
9751 | PyDict_SetItemString(d,"wxTreeItemIcon_Normal", PyInt_FromLong((long) wxTreeItemIcon_Normal)); |
9752 | PyDict_SetItemString(d,"wxTreeItemIcon_Selected", PyInt_FromLong((long) wxTreeItemIcon_Selected)); | |
9753 | PyDict_SetItemString(d,"wxTreeItemIcon_Expanded", PyInt_FromLong((long) wxTreeItemIcon_Expanded)); | |
9754 | PyDict_SetItemString(d,"wxTreeItemIcon_SelectedExpanded", PyInt_FromLong((long) wxTreeItemIcon_SelectedExpanded)); | |
9755 | PyDict_SetItemString(d,"wxTreeItemIcon_Max", PyInt_FromLong((long) wxTreeItemIcon_Max)); | |
164b735b RD |
9756 | PyDict_SetItemString(d,"wxTREE_HITTEST_ABOVE", PyInt_FromLong((long) wxTREE_HITTEST_ABOVE)); |
9757 | PyDict_SetItemString(d,"wxTREE_HITTEST_BELOW", PyInt_FromLong((long) wxTREE_HITTEST_BELOW)); | |
9758 | PyDict_SetItemString(d,"wxTREE_HITTEST_NOWHERE", PyInt_FromLong((long) wxTREE_HITTEST_NOWHERE)); | |
9759 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMBUTTON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMBUTTON)); | |
9760 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMICON)); | |
9761 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMINDENT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMINDENT)); | |
9762 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLABEL)); | |
9763 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMRIGHT)); | |
9764 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMSTATEICON)); | |
9765 | PyDict_SetItemString(d,"wxTREE_HITTEST_TOLEFT", PyInt_FromLong((long) wxTREE_HITTEST_TOLEFT)); | |
9766 | PyDict_SetItemString(d,"wxTREE_HITTEST_TORIGHT", PyInt_FromLong((long) wxTREE_HITTEST_TORIGHT)); | |
9767 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMUPPERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMUPPERPART)); | |
9768 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLOWERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLOWERPART)); | |
9769 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEM", PyInt_FromLong((long) wxTREE_HITTEST_ONITEM)); | |
9c4165ad RD |
9770 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
9771 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
9772 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
9773 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
9774 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
9775 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_GET_INFO)); | |
9776 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SET_INFO)); | |
9777 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
9778 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
9779 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
9780 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
9781 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
9782 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
9783 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_TREE_KEY_DOWN)); | |
9784 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
9785 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
9786 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
7a446686 | 9787 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_DRAG)); |
9df61a29 | 9788 | |
059a841c | 9789 | // Map renamed classes back to their common name for OOR |
9df61a29 RD |
9790 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); |
9791 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
059a841c | 9792 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); |
1d99702e RD |
9793 | { |
9794 | int i; | |
9795 | for (i = 0; _swig_mapping[i].n1; i++) | |
9796 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
9797 | } | |
8ab979d7 | 9798 | } |