]>
Commit | Line | Data |
---|---|---|
8ab979d7 | 1 | /* |
c368d904 | 2 | * FILE : src/gtk/controls2.cpp |
8ab979d7 RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
2cd2fac8 | 6 | * Version 1.1 (Build 883) |
8ab979d7 RD |
7 | * |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
1d99702e | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
8ab979d7 RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
1c09ae54 | 30 | # define SWIGEXPORT(a) a _export |
8ab979d7 | 31 | # else |
1c09ae54 | 32 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
1c09ae54 | 36 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
37 | #endif |
38 | ||
1c09ae54 RD |
39 | #include "Python.h" |
40 | ||
8ab979d7 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
1c09ae54 | 44 | |
8ab979d7 RD |
45 | extern void SWIG_MakePtr(char *, void *, char *); |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
1d99702e | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
8ab979d7 RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
8ab979d7 RD |
54 | #define SWIG_init initcontrols2c |
55 | ||
56 | #define SWIG_name "controls2c" | |
57 | ||
58 | #include "helpers.h" | |
2f90df85 RD |
59 | #ifdef __WXMSW__ |
60 | #include <windows.h> | |
61 | #endif | |
8ab979d7 RD |
62 | #include <wx/listctrl.h> |
63 | #include <wx/treectrl.h> | |
9df61a29 | 64 | #include <wx/imaglist.h> |
8ab979d7 | 65 | |
8ab979d7 RD |
66 | |
67 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
68 | PyObject* o2; | |
69 | PyObject* o3; | |
70 | ||
1c09ae54 | 71 | if (!target) { |
8ab979d7 | 72 | target = o; |
1c09ae54 | 73 | } else if (target == Py_None) { |
8ab979d7 RD |
74 | Py_DECREF(Py_None); |
75 | target = o; | |
1c09ae54 | 76 | } else { |
8ab979d7 RD |
77 | if (!PyTuple_Check(target)) { |
78 | o2 = target; | |
79 | target = PyTuple_New(1); | |
80 | PyTuple_SetItem(target, 0, o2); | |
81 | } | |
1c09ae54 RD |
82 | o3 = PyTuple_New(1); |
83 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
84 | |
85 | o2 = target; | |
1c09ae54 RD |
86 | target = PySequence_Concat(o2, o3); |
87 | Py_DECREF(o2); | |
8ab979d7 RD |
88 | Py_DECREF(o3); |
89 | } | |
90 | return target; | |
91 | } | |
92 | ||
7a446686 RD |
93 | #if PYTHON_API_VERSION >= 1009 |
94 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
95 | #else | |
96 | static char* wxStringErrorMsg = "string type is required for parameter"; | |
97 | #endif | |
aa2a5b86 | 98 | // C++ Version of a Python aware class |
cd096152 RD |
99 | class wxPyListCtrl : public wxListCtrl { |
100 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl); | |
101 | public: | |
aa2a5b86 | 102 | wxPyListCtrl() : wxListCtrl() {} |
cd096152 RD |
103 | wxPyListCtrl(wxWindow* parent, wxWindowID id, |
104 | const wxPoint& pos, | |
105 | const wxSize& size, | |
106 | long style, | |
107 | const wxValidator& validator, | |
108 | char* name) : | |
109 | wxListCtrl(parent, id, pos, size, style, validator, name) {} | |
110 | ||
aa2a5b86 RD |
111 | bool Create(wxWindow* parent, wxWindowID id, |
112 | const wxPoint& pos, | |
113 | const wxSize& size, | |
114 | long style, | |
115 | const wxValidator& validator, | |
116 | char* name) { | |
117 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); | |
118 | } | |
119 | ||
cd096152 RD |
120 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); |
121 | DEC_PYCALLBACK_INT_LONG(OnGetItemImage); | |
122 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); | |
123 | ||
124 | PYPRIVATE; | |
125 | }; | |
126 | ||
127 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
128 | ||
129 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
130 | IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage); | |
131 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); | |
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; | |
494 | const wxColour & _result_ref = wxListItemAttr_GetTextColour(_arg0); | |
495 | _result = (wxColour *) &_result_ref; | |
496 | ||
497 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 498 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
499 | } if (_result) { |
500 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
501 | _resultobj = Py_BuildValue("s",_ptemp); | |
502 | } else { | |
503 | Py_INCREF(Py_None); | |
504 | _resultobj = Py_None; | |
505 | } | |
506 | return _resultobj; | |
507 | } | |
508 | ||
509 | #define wxListItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
510 | static PyObject *_wrap_wxListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
511 | PyObject * _resultobj; | |
512 | wxColour * _result; | |
513 | wxListItemAttr * _arg0; | |
514 | PyObject * _argo0 = 0; | |
515 | char *_kwnames[] = { "self", NULL }; | |
516 | char _ptemp[128]; | |
517 | ||
518 | self = self; | |
519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetBackgroundColour",_kwnames,&_argo0)) | |
520 | return NULL; | |
521 | if (_argo0) { | |
522 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
523 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
524 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetBackgroundColour. Expected _wxListItemAttr_p."); | |
525 | return NULL; | |
526 | } | |
527 | } | |
528 | { | |
529 | wxPy_BEGIN_ALLOW_THREADS; | |
530 | const wxColour & _result_ref = wxListItemAttr_GetBackgroundColour(_arg0); | |
531 | _result = (wxColour *) &_result_ref; | |
532 | ||
533 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 534 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
535 | } if (_result) { |
536 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
537 | _resultobj = Py_BuildValue("s",_ptemp); | |
538 | } else { | |
539 | Py_INCREF(Py_None); | |
540 | _resultobj = Py_None; | |
541 | } | |
542 | return _resultobj; | |
543 | } | |
544 | ||
545 | #define wxListItemAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
546 | static PyObject *_wrap_wxListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
547 | PyObject * _resultobj; | |
548 | wxFont * _result; | |
549 | wxListItemAttr * _arg0; | |
550 | PyObject * _argo0 = 0; | |
551 | char *_kwnames[] = { "self", NULL }; | |
552 | char _ptemp[128]; | |
553 | ||
554 | self = self; | |
555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetFont",_kwnames,&_argo0)) | |
556 | return NULL; | |
557 | if (_argo0) { | |
558 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
559 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { | |
560 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetFont. Expected _wxListItemAttr_p."); | |
561 | return NULL; | |
562 | } | |
563 | } | |
564 | { | |
565 | wxPy_BEGIN_ALLOW_THREADS; | |
566 | const wxFont & _result_ref = wxListItemAttr_GetFont(_arg0); | |
567 | _result = (wxFont *) &_result_ref; | |
568 | ||
569 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 570 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
571 | } if (_result) { |
572 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
573 | _resultobj = Py_BuildValue("s",_ptemp); | |
574 | } else { | |
575 | Py_INCREF(Py_None); | |
576 | _resultobj = Py_None; | |
577 | } | |
578 | return _resultobj; | |
579 | } | |
580 | ||
9df61a29 RD |
581 | static void *SwigwxListItemTowxObject(void *ptr) { |
582 | wxListItem *src; | |
583 | wxObject *dest; | |
584 | src = (wxListItem *) ptr; | |
585 | dest = (wxObject *) src; | |
586 | return (void *) dest; | |
587 | } | |
588 | ||
f6bcfd97 BP |
589 | #define new_wxListItem() (new wxListItem()) |
590 | static PyObject *_wrap_new_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
591 | PyObject * _resultobj; | |
592 | wxListItem * _result; | |
593 | char *_kwnames[] = { NULL }; | |
594 | char _ptemp[128]; | |
595 | ||
596 | self = self; | |
597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxListItem",_kwnames)) | |
598 | return NULL; | |
599 | { | |
600 | wxPy_BEGIN_ALLOW_THREADS; | |
601 | _result = (wxListItem *)new_wxListItem(); | |
602 | ||
603 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 604 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
605 | } if (_result) { |
606 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p"); | |
607 | _resultobj = Py_BuildValue("s",_ptemp); | |
608 | } else { | |
609 | Py_INCREF(Py_None); | |
610 | _resultobj = Py_None; | |
611 | } | |
612 | return _resultobj; | |
613 | } | |
614 | ||
615 | #define delete_wxListItem(_swigobj) (delete _swigobj) | |
616 | static PyObject *_wrap_delete_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
617 | PyObject * _resultobj; | |
618 | wxListItem * _arg0; | |
619 | PyObject * _argo0 = 0; | |
620 | char *_kwnames[] = { "self", NULL }; | |
621 | ||
622 | self = self; | |
623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxListItem",_kwnames,&_argo0)) | |
624 | return NULL; | |
625 | if (_argo0) { | |
626 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
627 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
628 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxListItem. Expected _wxListItem_p."); | |
629 | return NULL; | |
630 | } | |
631 | } | |
632 | { | |
633 | wxPy_BEGIN_ALLOW_THREADS; | |
634 | delete_wxListItem(_arg0); | |
635 | ||
636 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 637 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
638 | } Py_INCREF(Py_None); |
639 | _resultobj = Py_None; | |
640 | return _resultobj; | |
641 | } | |
642 | ||
643 | #define wxListItem_Clear(_swigobj) (_swigobj->Clear()) | |
644 | static PyObject *_wrap_wxListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
645 | PyObject * _resultobj; | |
646 | wxListItem * _arg0; | |
647 | PyObject * _argo0 = 0; | |
648 | char *_kwnames[] = { "self", NULL }; | |
649 | ||
650 | self = self; | |
651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_Clear",_kwnames,&_argo0)) | |
652 | return NULL; | |
653 | if (_argo0) { | |
654 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
655 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_Clear. Expected _wxListItem_p."); | |
657 | return NULL; | |
658 | } | |
659 | } | |
660 | { | |
661 | wxPy_BEGIN_ALLOW_THREADS; | |
662 | wxListItem_Clear(_arg0); | |
663 | ||
664 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 665 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
666 | } Py_INCREF(Py_None); |
667 | _resultobj = Py_None; | |
668 | return _resultobj; | |
669 | } | |
670 | ||
671 | #define wxListItem_ClearAttributes(_swigobj) (_swigobj->ClearAttributes()) | |
672 | static PyObject *_wrap_wxListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
673 | PyObject * _resultobj; | |
674 | wxListItem * _arg0; | |
675 | PyObject * _argo0 = 0; | |
676 | char *_kwnames[] = { "self", NULL }; | |
677 | ||
678 | self = self; | |
679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_ClearAttributes",_kwnames,&_argo0)) | |
680 | return NULL; | |
681 | if (_argo0) { | |
682 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
683 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
684 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_ClearAttributes. Expected _wxListItem_p."); | |
685 | return NULL; | |
686 | } | |
687 | } | |
688 | { | |
689 | wxPy_BEGIN_ALLOW_THREADS; | |
690 | wxListItem_ClearAttributes(_arg0); | |
691 | ||
692 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 693 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
694 | } Py_INCREF(Py_None); |
695 | _resultobj = Py_None; | |
696 | return _resultobj; | |
697 | } | |
698 | ||
699 | #define wxListItem_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) | |
700 | static PyObject *_wrap_wxListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
701 | PyObject * _resultobj; | |
702 | wxListItem * _arg0; | |
703 | long _arg1; | |
704 | PyObject * _argo0 = 0; | |
705 | char *_kwnames[] = { "self","mask", NULL }; | |
706 | ||
707 | self = self; | |
708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetMask",_kwnames,&_argo0,&_arg1)) | |
709 | return NULL; | |
710 | if (_argo0) { | |
711 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
712 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetMask. Expected _wxListItem_p."); | |
714 | return NULL; | |
715 | } | |
716 | } | |
717 | { | |
718 | wxPy_BEGIN_ALLOW_THREADS; | |
719 | wxListItem_SetMask(_arg0,_arg1); | |
720 | ||
721 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 722 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
723 | } Py_INCREF(Py_None); |
724 | _resultobj = Py_None; | |
725 | return _resultobj; | |
726 | } | |
727 | ||
728 | #define wxListItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
729 | static PyObject *_wrap_wxListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
730 | PyObject * _resultobj; | |
731 | wxListItem * _arg0; | |
732 | long _arg1; | |
733 | PyObject * _argo0 = 0; | |
734 | char *_kwnames[] = { "self","id", NULL }; | |
735 | ||
736 | self = self; | |
737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetId",_kwnames,&_argo0,&_arg1)) | |
738 | return NULL; | |
739 | if (_argo0) { | |
740 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
741 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetId. Expected _wxListItem_p."); | |
743 | return NULL; | |
744 | } | |
745 | } | |
746 | { | |
747 | wxPy_BEGIN_ALLOW_THREADS; | |
748 | wxListItem_SetId(_arg0,_arg1); | |
749 | ||
750 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 751 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
752 | } Py_INCREF(Py_None); |
753 | _resultobj = Py_None; | |
754 | return _resultobj; | |
755 | } | |
756 | ||
757 | #define wxListItem_SetColumn(_swigobj,_swigarg0) (_swigobj->SetColumn(_swigarg0)) | |
758 | static PyObject *_wrap_wxListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
759 | PyObject * _resultobj; | |
760 | wxListItem * _arg0; | |
761 | int _arg1; | |
762 | PyObject * _argo0 = 0; | |
763 | char *_kwnames[] = { "self","col", NULL }; | |
764 | ||
765 | self = self; | |
766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetColumn",_kwnames,&_argo0,&_arg1)) | |
767 | return NULL; | |
768 | if (_argo0) { | |
769 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
770 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetColumn. Expected _wxListItem_p."); | |
772 | return NULL; | |
773 | } | |
774 | } | |
775 | { | |
776 | wxPy_BEGIN_ALLOW_THREADS; | |
777 | wxListItem_SetColumn(_arg0,_arg1); | |
778 | ||
779 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 780 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
781 | } Py_INCREF(Py_None); |
782 | _resultobj = Py_None; | |
783 | return _resultobj; | |
784 | } | |
785 | ||
786 | #define wxListItem_SetState(_swigobj,_swigarg0) (_swigobj->SetState(_swigarg0)) | |
787 | static PyObject *_wrap_wxListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
788 | PyObject * _resultobj; | |
789 | wxListItem * _arg0; | |
790 | long _arg1; | |
791 | PyObject * _argo0 = 0; | |
792 | char *_kwnames[] = { "self","state", NULL }; | |
793 | ||
794 | self = self; | |
795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetState",_kwnames,&_argo0,&_arg1)) | |
796 | return NULL; | |
797 | if (_argo0) { | |
798 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
799 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
800 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetState. Expected _wxListItem_p."); | |
801 | return NULL; | |
802 | } | |
803 | } | |
804 | { | |
805 | wxPy_BEGIN_ALLOW_THREADS; | |
806 | wxListItem_SetState(_arg0,_arg1); | |
807 | ||
808 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 809 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
810 | } Py_INCREF(Py_None); |
811 | _resultobj = Py_None; | |
812 | return _resultobj; | |
813 | } | |
814 | ||
815 | #define wxListItem_SetStateMask(_swigobj,_swigarg0) (_swigobj->SetStateMask(_swigarg0)) | |
816 | static PyObject *_wrap_wxListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
817 | PyObject * _resultobj; | |
818 | wxListItem * _arg0; | |
819 | long _arg1; | |
820 | PyObject * _argo0 = 0; | |
821 | char *_kwnames[] = { "self","stateMask", NULL }; | |
822 | ||
823 | self = self; | |
824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetStateMask",_kwnames,&_argo0,&_arg1)) | |
825 | return NULL; | |
826 | if (_argo0) { | |
827 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
828 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
829 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetStateMask. Expected _wxListItem_p."); | |
830 | return NULL; | |
831 | } | |
832 | } | |
833 | { | |
834 | wxPy_BEGIN_ALLOW_THREADS; | |
835 | wxListItem_SetStateMask(_arg0,_arg1); | |
836 | ||
837 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 838 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
839 | } Py_INCREF(Py_None); |
840 | _resultobj = Py_None; | |
841 | return _resultobj; | |
842 | } | |
843 | ||
844 | #define wxListItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) | |
845 | static PyObject *_wrap_wxListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
846 | PyObject * _resultobj; | |
847 | wxListItem * _arg0; | |
848 | wxString * _arg1; | |
849 | PyObject * _argo0 = 0; | |
850 | PyObject * _obj1 = 0; | |
851 | char *_kwnames[] = { "self","text", NULL }; | |
852 | ||
853 | self = self; | |
854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetText",_kwnames,&_argo0,&_obj1)) | |
855 | return NULL; | |
856 | if (_argo0) { | |
857 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
858 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
859 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetText. Expected _wxListItem_p."); | |
860 | return NULL; | |
861 | } | |
862 | } | |
863 | { | |
2cd2fac8 RD |
864 | #if PYTHON_API_VERSION >= 1009 |
865 | char* tmpPtr; int tmpSize; | |
866 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 867 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
868 | return NULL; |
869 | } | |
870 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
871 | return NULL; | |
872 | _arg1 = new wxString(tmpPtr, tmpSize); | |
873 | #else | |
f6bcfd97 BP |
874 | if (!PyString_Check(_obj1)) { |
875 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
876 | return NULL; | |
877 | } | |
2cd2fac8 RD |
878 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
879 | #endif | |
f6bcfd97 BP |
880 | } |
881 | { | |
882 | wxPy_BEGIN_ALLOW_THREADS; | |
883 | wxListItem_SetText(_arg0,*_arg1); | |
884 | ||
885 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 886 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
887 | } Py_INCREF(Py_None); |
888 | _resultobj = Py_None; | |
889 | { | |
890 | if (_obj1) | |
891 | delete _arg1; | |
892 | } | |
893 | return _resultobj; | |
894 | } | |
895 | ||
896 | #define wxListItem_SetImage(_swigobj,_swigarg0) (_swigobj->SetImage(_swigarg0)) | |
897 | static PyObject *_wrap_wxListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
898 | PyObject * _resultobj; | |
899 | wxListItem * _arg0; | |
900 | int _arg1; | |
901 | PyObject * _argo0 = 0; | |
902 | char *_kwnames[] = { "self","image", NULL }; | |
903 | ||
904 | self = self; | |
905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetImage",_kwnames,&_argo0,&_arg1)) | |
906 | return NULL; | |
907 | if (_argo0) { | |
908 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
909 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
910 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetImage. Expected _wxListItem_p."); | |
911 | return NULL; | |
912 | } | |
913 | } | |
914 | { | |
915 | wxPy_BEGIN_ALLOW_THREADS; | |
916 | wxListItem_SetImage(_arg0,_arg1); | |
917 | ||
918 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 919 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
920 | } Py_INCREF(Py_None); |
921 | _resultobj = Py_None; | |
922 | return _resultobj; | |
923 | } | |
924 | ||
925 | #define wxListItem_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
926 | static PyObject *_wrap_wxListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
927 | PyObject * _resultobj; | |
928 | wxListItem * _arg0; | |
929 | long _arg1; | |
930 | PyObject * _argo0 = 0; | |
931 | char *_kwnames[] = { "self","data", NULL }; | |
932 | ||
933 | self = self; | |
934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetData",_kwnames,&_argo0,&_arg1)) | |
935 | return NULL; | |
936 | if (_argo0) { | |
937 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
938 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
939 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetData. Expected _wxListItem_p."); | |
940 | return NULL; | |
941 | } | |
942 | } | |
943 | { | |
944 | wxPy_BEGIN_ALLOW_THREADS; | |
945 | wxListItem_SetData(_arg0,_arg1); | |
946 | ||
947 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 948 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
949 | } Py_INCREF(Py_None); |
950 | _resultobj = Py_None; | |
951 | return _resultobj; | |
952 | } | |
953 | ||
954 | #define wxListItem_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
955 | static PyObject *_wrap_wxListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
956 | PyObject * _resultobj; | |
957 | wxListItem * _arg0; | |
958 | int _arg1; | |
959 | PyObject * _argo0 = 0; | |
960 | char *_kwnames[] = { "self","width", NULL }; | |
961 | ||
962 | self = self; | |
963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetWidth",_kwnames,&_argo0,&_arg1)) | |
964 | return NULL; | |
965 | if (_argo0) { | |
966 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
967 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
968 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetWidth. Expected _wxListItem_p."); | |
969 | return NULL; | |
970 | } | |
971 | } | |
972 | { | |
973 | wxPy_BEGIN_ALLOW_THREADS; | |
974 | wxListItem_SetWidth(_arg0,_arg1); | |
975 | ||
976 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 977 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
978 | } Py_INCREF(Py_None); |
979 | _resultobj = Py_None; | |
980 | return _resultobj; | |
981 | } | |
982 | ||
983 | #define wxListItem_SetAlign(_swigobj,_swigarg0) (_swigobj->SetAlign(_swigarg0)) | |
984 | static PyObject *_wrap_wxListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
985 | PyObject * _resultobj; | |
986 | wxListItem * _arg0; | |
987 | wxListColumnFormat _arg1; | |
988 | PyObject * _argo0 = 0; | |
989 | char *_kwnames[] = { "self","align", NULL }; | |
990 | ||
991 | self = self; | |
992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetAlign",_kwnames,&_argo0,&_arg1)) | |
993 | return NULL; | |
994 | if (_argo0) { | |
995 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
996 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
997 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetAlign. Expected _wxListItem_p."); | |
998 | return NULL; | |
999 | } | |
1000 | } | |
1001 | { | |
1002 | wxPy_BEGIN_ALLOW_THREADS; | |
1003 | wxListItem_SetAlign(_arg0,_arg1); | |
1004 | ||
1005 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1006 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1007 | } Py_INCREF(Py_None); |
1008 | _resultobj = Py_None; | |
1009 | return _resultobj; | |
1010 | } | |
1011 | ||
1012 | #define wxListItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
1013 | static PyObject *_wrap_wxListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1014 | PyObject * _resultobj; | |
1015 | wxListItem * _arg0; | |
1016 | wxColour * _arg1; | |
1017 | PyObject * _argo0 = 0; | |
1018 | wxColour temp; | |
1019 | PyObject * _obj1 = 0; | |
1020 | char *_kwnames[] = { "self","colText", NULL }; | |
1021 | ||
1022 | self = self; | |
1023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
1024 | return NULL; | |
1025 | if (_argo0) { | |
1026 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1027 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1028 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetTextColour. Expected _wxListItem_p."); | |
1029 | return NULL; | |
1030 | } | |
1031 | } | |
1032 | { | |
1033 | _arg1 = &temp; | |
1034 | if (! wxColour_helper(_obj1, &_arg1)) | |
1035 | return NULL; | |
1036 | } | |
1037 | { | |
1038 | wxPy_BEGIN_ALLOW_THREADS; | |
1039 | wxListItem_SetTextColour(_arg0,*_arg1); | |
1040 | ||
1041 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1042 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1043 | } Py_INCREF(Py_None); |
1044 | _resultobj = Py_None; | |
1045 | return _resultobj; | |
1046 | } | |
1047 | ||
1048 | #define wxListItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
1049 | static PyObject *_wrap_wxListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1050 | PyObject * _resultobj; | |
1051 | wxListItem * _arg0; | |
1052 | wxColour * _arg1; | |
1053 | PyObject * _argo0 = 0; | |
1054 | wxColour temp; | |
1055 | PyObject * _obj1 = 0; | |
1056 | char *_kwnames[] = { "self","colBack", NULL }; | |
1057 | ||
1058 | self = self; | |
1059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
1060 | return NULL; | |
1061 | if (_argo0) { | |
1062 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1063 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1064 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetBackgroundColour. Expected _wxListItem_p."); | |
1065 | return NULL; | |
1066 | } | |
1067 | } | |
1068 | { | |
1069 | _arg1 = &temp; | |
1070 | if (! wxColour_helper(_obj1, &_arg1)) | |
1071 | return NULL; | |
1072 | } | |
1073 | { | |
1074 | wxPy_BEGIN_ALLOW_THREADS; | |
1075 | wxListItem_SetBackgroundColour(_arg0,*_arg1); | |
1076 | ||
1077 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1078 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1079 | } Py_INCREF(Py_None); |
1080 | _resultobj = Py_None; | |
1081 | return _resultobj; | |
1082 | } | |
1083 | ||
1084 | #define wxListItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
1085 | static PyObject *_wrap_wxListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1086 | PyObject * _resultobj; | |
1087 | wxListItem * _arg0; | |
1088 | wxFont * _arg1; | |
1089 | PyObject * _argo0 = 0; | |
1090 | PyObject * _argo1 = 0; | |
1091 | char *_kwnames[] = { "self","font", NULL }; | |
1092 | ||
1093 | self = self; | |
1094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetFont",_kwnames,&_argo0,&_argo1)) | |
1095 | return NULL; | |
1096 | if (_argo0) { | |
1097 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1098 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1099 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetFont. Expected _wxListItem_p."); | |
1100 | return NULL; | |
1101 | } | |
1102 | } | |
1103 | if (_argo1) { | |
1104 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1105 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
1106 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItem_SetFont. Expected _wxFont_p."); | |
1107 | return NULL; | |
1108 | } | |
1109 | } | |
1110 | { | |
1111 | wxPy_BEGIN_ALLOW_THREADS; | |
1112 | wxListItem_SetFont(_arg0,*_arg1); | |
1113 | ||
1114 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1115 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1116 | } Py_INCREF(Py_None); |
1117 | _resultobj = Py_None; | |
1118 | return _resultobj; | |
1119 | } | |
1120 | ||
1121 | #define wxListItem_GetMask(_swigobj) (_swigobj->GetMask()) | |
1122 | static PyObject *_wrap_wxListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1123 | PyObject * _resultobj; | |
1124 | long _result; | |
1125 | wxListItem * _arg0; | |
1126 | PyObject * _argo0 = 0; | |
1127 | char *_kwnames[] = { "self", NULL }; | |
1128 | ||
1129 | self = self; | |
1130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetMask",_kwnames,&_argo0)) | |
1131 | return NULL; | |
1132 | if (_argo0) { | |
1133 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1134 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1135 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetMask. Expected _wxListItem_p."); | |
1136 | return NULL; | |
1137 | } | |
1138 | } | |
1139 | { | |
1140 | wxPy_BEGIN_ALLOW_THREADS; | |
1141 | _result = (long )wxListItem_GetMask(_arg0); | |
1142 | ||
1143 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1144 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1145 | } _resultobj = Py_BuildValue("l",_result); |
1146 | return _resultobj; | |
1147 | } | |
1148 | ||
1149 | #define wxListItem_GetId(_swigobj) (_swigobj->GetId()) | |
1150 | static PyObject *_wrap_wxListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1151 | PyObject * _resultobj; | |
1152 | long _result; | |
1153 | wxListItem * _arg0; | |
1154 | PyObject * _argo0 = 0; | |
1155 | char *_kwnames[] = { "self", NULL }; | |
1156 | ||
1157 | self = self; | |
1158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetId",_kwnames,&_argo0)) | |
1159 | return NULL; | |
1160 | if (_argo0) { | |
1161 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1162 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1163 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetId. Expected _wxListItem_p."); | |
1164 | return NULL; | |
1165 | } | |
1166 | } | |
1167 | { | |
1168 | wxPy_BEGIN_ALLOW_THREADS; | |
1169 | _result = (long )wxListItem_GetId(_arg0); | |
1170 | ||
1171 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1172 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1173 | } _resultobj = Py_BuildValue("l",_result); |
1174 | return _resultobj; | |
1175 | } | |
1176 | ||
1177 | #define wxListItem_GetColumn(_swigobj) (_swigobj->GetColumn()) | |
1178 | static PyObject *_wrap_wxListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1179 | PyObject * _resultobj; | |
1180 | int _result; | |
1181 | wxListItem * _arg0; | |
1182 | PyObject * _argo0 = 0; | |
1183 | char *_kwnames[] = { "self", NULL }; | |
1184 | ||
1185 | self = self; | |
1186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetColumn",_kwnames,&_argo0)) | |
1187 | return NULL; | |
1188 | if (_argo0) { | |
1189 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1190 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1191 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetColumn. Expected _wxListItem_p."); | |
1192 | return NULL; | |
1193 | } | |
1194 | } | |
1195 | { | |
1196 | wxPy_BEGIN_ALLOW_THREADS; | |
1197 | _result = (int )wxListItem_GetColumn(_arg0); | |
1198 | ||
1199 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1200 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1201 | } _resultobj = Py_BuildValue("i",_result); |
1202 | return _resultobj; | |
1203 | } | |
1204 | ||
1205 | #define wxListItem_GetState(_swigobj) (_swigobj->GetState()) | |
1206 | static PyObject *_wrap_wxListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1207 | PyObject * _resultobj; | |
1208 | long _result; | |
1209 | wxListItem * _arg0; | |
1210 | PyObject * _argo0 = 0; | |
1211 | char *_kwnames[] = { "self", NULL }; | |
1212 | ||
1213 | self = self; | |
1214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetState",_kwnames,&_argo0)) | |
1215 | return NULL; | |
1216 | if (_argo0) { | |
1217 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1218 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1219 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetState. Expected _wxListItem_p."); | |
1220 | return NULL; | |
1221 | } | |
1222 | } | |
1223 | { | |
1224 | wxPy_BEGIN_ALLOW_THREADS; | |
1225 | _result = (long )wxListItem_GetState(_arg0); | |
1226 | ||
1227 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1228 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1229 | } _resultobj = Py_BuildValue("l",_result); |
1230 | return _resultobj; | |
1231 | } | |
1232 | ||
1233 | #define wxListItem_GetText(_swigobj) (_swigobj->GetText()) | |
1234 | static PyObject *_wrap_wxListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1235 | PyObject * _resultobj; | |
1236 | wxString * _result; | |
1237 | wxListItem * _arg0; | |
1238 | PyObject * _argo0 = 0; | |
1239 | char *_kwnames[] = { "self", NULL }; | |
1240 | ||
1241 | self = self; | |
1242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetText",_kwnames,&_argo0)) | |
1243 | return NULL; | |
1244 | if (_argo0) { | |
1245 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1246 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1247 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetText. Expected _wxListItem_p."); | |
1248 | return NULL; | |
1249 | } | |
1250 | } | |
1251 | { | |
1252 | wxPy_BEGIN_ALLOW_THREADS; | |
1253 | const wxString & _result_ref = wxListItem_GetText(_arg0); | |
1254 | _result = (wxString *) &_result_ref; | |
1255 | ||
1256 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1257 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1258 | }{ |
1259 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1260 | } | |
1261 | return _resultobj; | |
1262 | } | |
1263 | ||
1264 | #define wxListItem_GetImage(_swigobj) (_swigobj->GetImage()) | |
1265 | static PyObject *_wrap_wxListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1266 | PyObject * _resultobj; | |
1267 | int _result; | |
1268 | wxListItem * _arg0; | |
1269 | PyObject * _argo0 = 0; | |
1270 | char *_kwnames[] = { "self", NULL }; | |
1271 | ||
1272 | self = self; | |
1273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetImage",_kwnames,&_argo0)) | |
1274 | return NULL; | |
1275 | if (_argo0) { | |
1276 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1277 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1278 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetImage. Expected _wxListItem_p."); | |
1279 | return NULL; | |
1280 | } | |
1281 | } | |
1282 | { | |
1283 | wxPy_BEGIN_ALLOW_THREADS; | |
1284 | _result = (int )wxListItem_GetImage(_arg0); | |
1285 | ||
1286 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1287 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1288 | } _resultobj = Py_BuildValue("i",_result); |
1289 | return _resultobj; | |
1290 | } | |
1291 | ||
1292 | #define wxListItem_GetData(_swigobj) (_swigobj->GetData()) | |
1293 | static PyObject *_wrap_wxListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1294 | PyObject * _resultobj; | |
1295 | long _result; | |
1296 | wxListItem * _arg0; | |
1297 | PyObject * _argo0 = 0; | |
1298 | char *_kwnames[] = { "self", NULL }; | |
1299 | ||
1300 | self = self; | |
1301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetData",_kwnames,&_argo0)) | |
1302 | return NULL; | |
1303 | if (_argo0) { | |
1304 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1305 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1306 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetData. Expected _wxListItem_p."); | |
1307 | return NULL; | |
1308 | } | |
1309 | } | |
1310 | { | |
1311 | wxPy_BEGIN_ALLOW_THREADS; | |
1312 | _result = (long )wxListItem_GetData(_arg0); | |
1313 | ||
1314 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1315 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1316 | } _resultobj = Py_BuildValue("l",_result); |
1317 | return _resultobj; | |
1318 | } | |
1319 | ||
1320 | #define wxListItem_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1321 | static PyObject *_wrap_wxListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1322 | PyObject * _resultobj; | |
1323 | int _result; | |
1324 | wxListItem * _arg0; | |
1325 | PyObject * _argo0 = 0; | |
1326 | char *_kwnames[] = { "self", NULL }; | |
1327 | ||
1328 | self = self; | |
1329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetWidth",_kwnames,&_argo0)) | |
1330 | return NULL; | |
1331 | if (_argo0) { | |
1332 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1333 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1334 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetWidth. Expected _wxListItem_p."); | |
1335 | return NULL; | |
1336 | } | |
1337 | } | |
1338 | { | |
1339 | wxPy_BEGIN_ALLOW_THREADS; | |
1340 | _result = (int )wxListItem_GetWidth(_arg0); | |
1341 | ||
1342 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1343 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1344 | } _resultobj = Py_BuildValue("i",_result); |
1345 | return _resultobj; | |
1346 | } | |
1347 | ||
1348 | #define wxListItem_GetAlign(_swigobj) (_swigobj->GetAlign()) | |
1349 | static PyObject *_wrap_wxListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1350 | PyObject * _resultobj; | |
1351 | wxListColumnFormat _result; | |
1352 | wxListItem * _arg0; | |
1353 | PyObject * _argo0 = 0; | |
1354 | char *_kwnames[] = { "self", NULL }; | |
1355 | ||
1356 | self = self; | |
1357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAlign",_kwnames,&_argo0)) | |
1358 | return NULL; | |
1359 | if (_argo0) { | |
1360 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1361 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1362 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAlign. Expected _wxListItem_p."); | |
1363 | return NULL; | |
1364 | } | |
1365 | } | |
1366 | { | |
1367 | wxPy_BEGIN_ALLOW_THREADS; | |
1368 | _result = (wxListColumnFormat )wxListItem_GetAlign(_arg0); | |
1369 | ||
1370 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1371 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1372 | } _resultobj = Py_BuildValue("i",_result); |
1373 | return _resultobj; | |
1374 | } | |
1375 | ||
1376 | #define wxListItem_GetAttributes(_swigobj) (_swigobj->GetAttributes()) | |
1377 | static PyObject *_wrap_wxListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1378 | PyObject * _resultobj; | |
1379 | wxListItemAttr * _result; | |
1380 | wxListItem * _arg0; | |
1381 | PyObject * _argo0 = 0; | |
1382 | char *_kwnames[] = { "self", NULL }; | |
1383 | char _ptemp[128]; | |
1384 | ||
1385 | self = self; | |
1386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAttributes",_kwnames,&_argo0)) | |
1387 | return NULL; | |
1388 | if (_argo0) { | |
1389 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1390 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1391 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAttributes. Expected _wxListItem_p."); | |
1392 | return NULL; | |
1393 | } | |
1394 | } | |
1395 | { | |
1396 | wxPy_BEGIN_ALLOW_THREADS; | |
1397 | _result = (wxListItemAttr *)wxListItem_GetAttributes(_arg0); | |
1398 | ||
1399 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1400 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1401 | } if (_result) { |
1402 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
1403 | _resultobj = Py_BuildValue("s",_ptemp); | |
1404 | } else { | |
1405 | Py_INCREF(Py_None); | |
1406 | _resultobj = Py_None; | |
1407 | } | |
1408 | return _resultobj; | |
1409 | } | |
1410 | ||
1411 | #define wxListItem_HasAttributes(_swigobj) (_swigobj->HasAttributes()) | |
1412 | static PyObject *_wrap_wxListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1413 | PyObject * _resultobj; | |
1414 | bool _result; | |
1415 | wxListItem * _arg0; | |
1416 | PyObject * _argo0 = 0; | |
1417 | char *_kwnames[] = { "self", NULL }; | |
1418 | ||
1419 | self = self; | |
1420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_HasAttributes",_kwnames,&_argo0)) | |
1421 | return NULL; | |
1422 | if (_argo0) { | |
1423 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1424 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1425 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_HasAttributes. Expected _wxListItem_p."); | |
1426 | return NULL; | |
1427 | } | |
1428 | } | |
1429 | { | |
1430 | wxPy_BEGIN_ALLOW_THREADS; | |
1431 | _result = (bool )wxListItem_HasAttributes(_arg0); | |
1432 | ||
1433 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1434 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1435 | } _resultobj = Py_BuildValue("i",_result); |
1436 | return _resultobj; | |
1437 | } | |
1438 | ||
1439 | #define wxListItem_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
1440 | static PyObject *_wrap_wxListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1441 | PyObject * _resultobj; | |
1442 | wxColour * _result; | |
1443 | wxListItem * _arg0; | |
1444 | PyObject * _argo0 = 0; | |
1445 | char *_kwnames[] = { "self", NULL }; | |
1446 | char _ptemp[128]; | |
1447 | ||
1448 | self = self; | |
1449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetTextColour",_kwnames,&_argo0)) | |
1450 | return NULL; | |
1451 | if (_argo0) { | |
1452 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1453 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1454 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetTextColour. Expected _wxListItem_p."); | |
1455 | return NULL; | |
1456 | } | |
1457 | } | |
1458 | { | |
1459 | wxPy_BEGIN_ALLOW_THREADS; | |
1460 | _result = new wxColour (wxListItem_GetTextColour(_arg0)); | |
1461 | ||
1462 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1463 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1464 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
1465 | _resultobj = Py_BuildValue("s",_ptemp); | |
1466 | return _resultobj; | |
1467 | } | |
1468 | ||
1469 | #define wxListItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
1470 | static PyObject *_wrap_wxListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1471 | PyObject * _resultobj; | |
1472 | wxColour * _result; | |
1473 | wxListItem * _arg0; | |
1474 | PyObject * _argo0 = 0; | |
1475 | char *_kwnames[] = { "self", NULL }; | |
1476 | char _ptemp[128]; | |
1477 | ||
1478 | self = self; | |
1479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetBackgroundColour",_kwnames,&_argo0)) | |
1480 | return NULL; | |
1481 | if (_argo0) { | |
1482 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1483 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1484 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetBackgroundColour. Expected _wxListItem_p."); | |
1485 | return NULL; | |
1486 | } | |
1487 | } | |
1488 | { | |
1489 | wxPy_BEGIN_ALLOW_THREADS; | |
1490 | _result = new wxColour (wxListItem_GetBackgroundColour(_arg0)); | |
1491 | ||
1492 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1493 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1494 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
1495 | _resultobj = Py_BuildValue("s",_ptemp); | |
1496 | return _resultobj; | |
1497 | } | |
1498 | ||
1499 | #define wxListItem_GetFont(_swigobj) (_swigobj->GetFont()) | |
1500 | static PyObject *_wrap_wxListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1501 | PyObject * _resultobj; | |
1502 | wxFont * _result; | |
1503 | wxListItem * _arg0; | |
1504 | PyObject * _argo0 = 0; | |
1505 | char *_kwnames[] = { "self", NULL }; | |
1506 | char _ptemp[128]; | |
1507 | ||
1508 | self = self; | |
1509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetFont",_kwnames,&_argo0)) | |
1510 | return NULL; | |
1511 | if (_argo0) { | |
1512 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1513 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1514 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetFont. Expected _wxListItem_p."); | |
1515 | return NULL; | |
1516 | } | |
1517 | } | |
1518 | { | |
1519 | wxPy_BEGIN_ALLOW_THREADS; | |
1520 | _result = new wxFont (wxListItem_GetFont(_arg0)); | |
1521 | ||
1522 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1523 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1524 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
1525 | _resultobj = Py_BuildValue("s",_ptemp); | |
1526 | return _resultobj; | |
1527 | } | |
1528 | ||
1529 | #define wxListItem_m_mask_set(_swigobj,_swigval) (_swigobj->m_mask = _swigval,_swigval) | |
1530 | static PyObject *_wrap_wxListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1531 | PyObject * _resultobj; | |
1532 | long _result; | |
1533 | wxListItem * _arg0; | |
1534 | long _arg1; | |
1535 | PyObject * _argo0 = 0; | |
1536 | char *_kwnames[] = { "self","m_mask", NULL }; | |
1537 | ||
1538 | self = self; | |
1539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_mask_set",_kwnames,&_argo0,&_arg1)) | |
1540 | return NULL; | |
1541 | if (_argo0) { | |
1542 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1543 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_set. Expected _wxListItem_p."); | |
1545 | return NULL; | |
1546 | } | |
1547 | } | |
1548 | { | |
1549 | wxPy_BEGIN_ALLOW_THREADS; | |
1550 | _result = (long )wxListItem_m_mask_set(_arg0,_arg1); | |
1551 | ||
1552 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1553 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1554 | } _resultobj = Py_BuildValue("l",_result); |
1555 | return _resultobj; | |
1556 | } | |
1557 | ||
1558 | #define wxListItem_m_mask_get(_swigobj) ((long ) _swigobj->m_mask) | |
1559 | static PyObject *_wrap_wxListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1560 | PyObject * _resultobj; | |
1561 | long _result; | |
1562 | wxListItem * _arg0; | |
1563 | PyObject * _argo0 = 0; | |
1564 | char *_kwnames[] = { "self", NULL }; | |
1565 | ||
1566 | self = self; | |
1567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_mask_get",_kwnames,&_argo0)) | |
1568 | return NULL; | |
1569 | if (_argo0) { | |
1570 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1571 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1572 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_get. Expected _wxListItem_p."); | |
1573 | return NULL; | |
1574 | } | |
1575 | } | |
1576 | { | |
1577 | wxPy_BEGIN_ALLOW_THREADS; | |
1578 | _result = (long )wxListItem_m_mask_get(_arg0); | |
1579 | ||
1580 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1581 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1582 | } _resultobj = Py_BuildValue("l",_result); |
1583 | return _resultobj; | |
1584 | } | |
1585 | ||
1586 | #define wxListItem_m_itemId_set(_swigobj,_swigval) (_swigobj->m_itemId = _swigval,_swigval) | |
1587 | static PyObject *_wrap_wxListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
1588 | PyObject * _resultobj; |
1589 | long _result; | |
1590 | wxListItem * _arg0; | |
1591 | long _arg1; | |
1d99702e | 1592 | PyObject * _argo0 = 0; |
f6bcfd97 | 1593 | char *_kwnames[] = { "self","m_itemId", NULL }; |
af309447 RD |
1594 | |
1595 | self = self; | |
f6bcfd97 | 1596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_itemId_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 1597 | return NULL; |
1d99702e RD |
1598 | if (_argo0) { |
1599 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1600 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1601 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_set. Expected _wxListItem_p."); |
af309447 RD |
1602 | return NULL; |
1603 | } | |
1604 | } | |
cf694132 RD |
1605 | { |
1606 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
1607 | _result = (long )wxListItem_m_itemId_set(_arg0,_arg1); |
1608 | ||
1609 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1610 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1611 | } _resultobj = Py_BuildValue("l",_result); |
1612 | return _resultobj; | |
1613 | } | |
1614 | ||
1615 | #define wxListItem_m_itemId_get(_swigobj) ((long ) _swigobj->m_itemId) | |
1616 | static PyObject *_wrap_wxListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1617 | PyObject * _resultobj; | |
1618 | long _result; | |
1619 | wxListItem * _arg0; | |
1620 | PyObject * _argo0 = 0; | |
1621 | char *_kwnames[] = { "self", NULL }; | |
1622 | ||
1623 | self = self; | |
1624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_itemId_get",_kwnames,&_argo0)) | |
1625 | return NULL; | |
1626 | if (_argo0) { | |
1627 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1628 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_get. Expected _wxListItem_p."); | |
1630 | return NULL; | |
1631 | } | |
1632 | } | |
1633 | { | |
1634 | wxPy_BEGIN_ALLOW_THREADS; | |
1635 | _result = (long )wxListItem_m_itemId_get(_arg0); | |
1636 | ||
1637 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1638 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1639 | } _resultobj = Py_BuildValue("l",_result); |
1640 | return _resultobj; | |
1641 | } | |
1642 | ||
1643 | #define wxListItem_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval) | |
1644 | static PyObject *_wrap_wxListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1645 | PyObject * _resultobj; | |
1646 | int _result; | |
1647 | wxListItem * _arg0; | |
1648 | int _arg1; | |
1649 | PyObject * _argo0 = 0; | |
1650 | char *_kwnames[] = { "self","m_col", NULL }; | |
1651 | ||
1652 | self = self; | |
1653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_col_set",_kwnames,&_argo0,&_arg1)) | |
1654 | return NULL; | |
1655 | if (_argo0) { | |
1656 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1657 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1658 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_set. Expected _wxListItem_p."); | |
1659 | return NULL; | |
1660 | } | |
1661 | } | |
1662 | { | |
1663 | wxPy_BEGIN_ALLOW_THREADS; | |
1664 | _result = (int )wxListItem_m_col_set(_arg0,_arg1); | |
1665 | ||
1666 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1667 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1668 | } _resultobj = Py_BuildValue("i",_result); |
1669 | return _resultobj; | |
1670 | } | |
1671 | ||
1672 | #define wxListItem_m_col_get(_swigobj) ((int ) _swigobj->m_col) | |
1673 | static PyObject *_wrap_wxListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1674 | PyObject * _resultobj; | |
1675 | int _result; | |
1676 | wxListItem * _arg0; | |
1677 | PyObject * _argo0 = 0; | |
1678 | char *_kwnames[] = { "self", NULL }; | |
1679 | ||
1680 | self = self; | |
1681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_col_get",_kwnames,&_argo0)) | |
1682 | return NULL; | |
1683 | if (_argo0) { | |
1684 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1685 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1686 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_get. Expected _wxListItem_p."); | |
1687 | return NULL; | |
1688 | } | |
1689 | } | |
1690 | { | |
1691 | wxPy_BEGIN_ALLOW_THREADS; | |
1692 | _result = (int )wxListItem_m_col_get(_arg0); | |
1693 | ||
1694 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1695 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1696 | } _resultobj = Py_BuildValue("i",_result); |
1697 | return _resultobj; | |
1698 | } | |
1699 | ||
1700 | #define wxListItem_m_state_set(_swigobj,_swigval) (_swigobj->m_state = _swigval,_swigval) | |
1701 | static PyObject *_wrap_wxListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1702 | PyObject * _resultobj; | |
1703 | long _result; | |
1704 | wxListItem * _arg0; | |
1705 | long _arg1; | |
1706 | PyObject * _argo0 = 0; | |
1707 | char *_kwnames[] = { "self","m_state", NULL }; | |
1708 | ||
1709 | self = self; | |
1710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_state_set",_kwnames,&_argo0,&_arg1)) | |
1711 | return NULL; | |
1712 | if (_argo0) { | |
1713 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1714 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_set. Expected _wxListItem_p."); | |
1716 | return NULL; | |
1717 | } | |
1718 | } | |
1719 | { | |
1720 | wxPy_BEGIN_ALLOW_THREADS; | |
1721 | _result = (long )wxListItem_m_state_set(_arg0,_arg1); | |
1722 | ||
1723 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1724 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1725 | } _resultobj = Py_BuildValue("l",_result); |
1726 | return _resultobj; | |
1727 | } | |
1728 | ||
1729 | #define wxListItem_m_state_get(_swigobj) ((long ) _swigobj->m_state) | |
1730 | static PyObject *_wrap_wxListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1731 | PyObject * _resultobj; | |
1732 | long _result; | |
1733 | wxListItem * _arg0; | |
1734 | PyObject * _argo0 = 0; | |
1735 | char *_kwnames[] = { "self", NULL }; | |
1736 | ||
1737 | self = self; | |
1738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_state_get",_kwnames,&_argo0)) | |
1739 | return NULL; | |
1740 | if (_argo0) { | |
1741 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1742 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1743 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_get. Expected _wxListItem_p."); | |
1744 | return NULL; | |
1745 | } | |
1746 | } | |
1747 | { | |
1748 | wxPy_BEGIN_ALLOW_THREADS; | |
1749 | _result = (long )wxListItem_m_state_get(_arg0); | |
1750 | ||
1751 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1752 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1753 | } _resultobj = Py_BuildValue("l",_result); |
1754 | return _resultobj; | |
1755 | } | |
1756 | ||
1757 | #define wxListItem_m_stateMask_set(_swigobj,_swigval) (_swigobj->m_stateMask = _swigval,_swigval) | |
1758 | static PyObject *_wrap_wxListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1759 | PyObject * _resultobj; | |
1760 | long _result; | |
1761 | wxListItem * _arg0; | |
1762 | long _arg1; | |
1763 | PyObject * _argo0 = 0; | |
1764 | char *_kwnames[] = { "self","m_stateMask", NULL }; | |
1765 | ||
1766 | self = self; | |
1767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_stateMask_set",_kwnames,&_argo0,&_arg1)) | |
1768 | return NULL; | |
1769 | if (_argo0) { | |
1770 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1771 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1772 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_set. Expected _wxListItem_p."); | |
1773 | return NULL; | |
1774 | } | |
1775 | } | |
1776 | { | |
1777 | wxPy_BEGIN_ALLOW_THREADS; | |
1778 | _result = (long )wxListItem_m_stateMask_set(_arg0,_arg1); | |
1779 | ||
1780 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1781 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1782 | } _resultobj = Py_BuildValue("l",_result); |
1783 | return _resultobj; | |
1784 | } | |
1785 | ||
1786 | #define wxListItem_m_stateMask_get(_swigobj) ((long ) _swigobj->m_stateMask) | |
1787 | static PyObject *_wrap_wxListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1788 | PyObject * _resultobj; | |
1789 | long _result; | |
1790 | wxListItem * _arg0; | |
1791 | PyObject * _argo0 = 0; | |
1792 | char *_kwnames[] = { "self", NULL }; | |
1793 | ||
1794 | self = self; | |
1795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_stateMask_get",_kwnames,&_argo0)) | |
1796 | return NULL; | |
1797 | if (_argo0) { | |
1798 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1799 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1800 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_get. Expected _wxListItem_p."); | |
1801 | return NULL; | |
1802 | } | |
1803 | } | |
1804 | { | |
1805 | wxPy_BEGIN_ALLOW_THREADS; | |
1806 | _result = (long )wxListItem_m_stateMask_get(_arg0); | |
cf694132 RD |
1807 | |
1808 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1809 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1810 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
1811 | return _resultobj; |
1812 | } | |
1813 | ||
f6bcfd97 BP |
1814 | #define wxListItem_m_text_set(_swigobj,_swigval) (_swigobj->m_text = *(_swigval),_swigval) |
1815 | static PyObject *_wrap_wxListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1816 | PyObject * _resultobj; | |
1817 | wxString * _result; | |
1818 | wxListItem * _arg0; | |
1819 | wxString * _arg1; | |
1820 | PyObject * _argo0 = 0; | |
1821 | PyObject * _obj1 = 0; | |
1822 | char *_kwnames[] = { "self","m_text", NULL }; | |
1823 | ||
1824 | self = self; | |
1825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_m_text_set",_kwnames,&_argo0,&_obj1)) | |
1826 | return NULL; | |
1827 | if (_argo0) { | |
1828 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1829 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1830 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_set. Expected _wxListItem_p."); | |
1831 | return NULL; | |
1832 | } | |
1833 | } | |
1834 | { | |
2cd2fac8 RD |
1835 | #if PYTHON_API_VERSION >= 1009 |
1836 | char* tmpPtr; int tmpSize; | |
1837 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 1838 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
1839 | return NULL; |
1840 | } | |
1841 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1842 | return NULL; | |
1843 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1844 | #else | |
f6bcfd97 BP |
1845 | if (!PyString_Check(_obj1)) { |
1846 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1847 | return NULL; | |
1848 | } | |
2cd2fac8 RD |
1849 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1850 | #endif | |
f6bcfd97 BP |
1851 | } |
1852 | { | |
1853 | wxPy_BEGIN_ALLOW_THREADS; | |
1854 | _result = (wxString *)wxListItem_m_text_set(_arg0,_arg1); | |
1855 | ||
1856 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1857 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1858 | }{ |
1859 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1860 | } | |
1861 | { | |
1862 | if (_obj1) | |
1863 | delete _arg1; | |
1864 | } | |
1865 | return _resultobj; | |
1866 | } | |
1867 | ||
1868 | #define wxListItem_m_text_get(_swigobj) (&_swigobj->m_text) | |
1869 | static PyObject *_wrap_wxListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1870 | PyObject * _resultobj; |
f6bcfd97 | 1871 | wxString * _result; |
8ab979d7 | 1872 | wxListItem * _arg0; |
1d99702e | 1873 | PyObject * _argo0 = 0; |
efc5f224 | 1874 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1875 | |
1876 | self = self; | |
f6bcfd97 | 1877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_text_get",_kwnames,&_argo0)) |
8ab979d7 | 1878 | return NULL; |
1d99702e RD |
1879 | if (_argo0) { |
1880 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1881 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1882 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_get. Expected _wxListItem_p."); |
8ab979d7 RD |
1883 | return NULL; |
1884 | } | |
1885 | } | |
cf694132 RD |
1886 | { |
1887 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1888 | _result = (wxString *)wxListItem_m_text_get(_arg0); |
cf694132 RD |
1889 | |
1890 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1891 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1892 | }{ |
1893 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1894 | } | |
8ab979d7 RD |
1895 | return _resultobj; |
1896 | } | |
1897 | ||
f6bcfd97 BP |
1898 | #define wxListItem_m_image_set(_swigobj,_swigval) (_swigobj->m_image = _swigval,_swigval) |
1899 | static PyObject *_wrap_wxListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 1900 | PyObject * _resultobj; |
f6bcfd97 | 1901 | int _result; |
af309447 | 1902 | wxListItem * _arg0; |
f6bcfd97 | 1903 | int _arg1; |
1d99702e | 1904 | PyObject * _argo0 = 0; |
f6bcfd97 | 1905 | char *_kwnames[] = { "self","m_image", NULL }; |
af309447 RD |
1906 | |
1907 | self = self; | |
f6bcfd97 | 1908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_image_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 1909 | return NULL; |
1d99702e RD |
1910 | if (_argo0) { |
1911 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1912 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1913 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_set. Expected _wxListItem_p."); |
af309447 RD |
1914 | return NULL; |
1915 | } | |
1916 | } | |
cf694132 RD |
1917 | { |
1918 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1919 | _result = (int )wxListItem_m_image_set(_arg0,_arg1); |
cf694132 RD |
1920 | |
1921 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1922 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1923 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
1924 | return _resultobj; |
1925 | } | |
1926 | ||
f6bcfd97 BP |
1927 | #define wxListItem_m_image_get(_swigobj) ((int ) _swigobj->m_image) |
1928 | static PyObject *_wrap_wxListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1929 | PyObject * _resultobj; |
f6bcfd97 | 1930 | int _result; |
8ab979d7 | 1931 | wxListItem * _arg0; |
1d99702e | 1932 | PyObject * _argo0 = 0; |
efc5f224 | 1933 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1934 | |
1935 | self = self; | |
f6bcfd97 | 1936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_image_get",_kwnames,&_argo0)) |
8ab979d7 | 1937 | return NULL; |
1d99702e RD |
1938 | if (_argo0) { |
1939 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1940 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_get. Expected _wxListItem_p."); |
8ab979d7 RD |
1942 | return NULL; |
1943 | } | |
1944 | } | |
cf694132 RD |
1945 | { |
1946 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1947 | _result = (int )wxListItem_m_image_get(_arg0); |
cf694132 RD |
1948 | |
1949 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1950 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1951 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1952 | return _resultobj; |
1953 | } | |
1954 | ||
f6bcfd97 BP |
1955 | #define wxListItem_m_data_set(_swigobj,_swigval) (_swigobj->m_data = _swigval,_swigval) |
1956 | static PyObject *_wrap_wxListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 1957 | PyObject * _resultobj; |
f6bcfd97 | 1958 | long _result; |
af309447 | 1959 | wxListItem * _arg0; |
f6bcfd97 | 1960 | long _arg1; |
1d99702e | 1961 | PyObject * _argo0 = 0; |
f6bcfd97 | 1962 | char *_kwnames[] = { "self","m_data", NULL }; |
af309447 RD |
1963 | |
1964 | self = self; | |
f6bcfd97 | 1965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_data_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 1966 | return NULL; |
1d99702e RD |
1967 | if (_argo0) { |
1968 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1969 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1970 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_set. Expected _wxListItem_p."); |
af309447 RD |
1971 | return NULL; |
1972 | } | |
1973 | } | |
cf694132 RD |
1974 | { |
1975 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1976 | _result = (long )wxListItem_m_data_set(_arg0,_arg1); |
cf694132 RD |
1977 | |
1978 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 1979 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 1980 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
1981 | return _resultobj; |
1982 | } | |
1983 | ||
f6bcfd97 BP |
1984 | #define wxListItem_m_data_get(_swigobj) ((long ) _swigobj->m_data) |
1985 | static PyObject *_wrap_wxListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1986 | PyObject * _resultobj; |
f6bcfd97 | 1987 | long _result; |
8ab979d7 | 1988 | wxListItem * _arg0; |
1d99702e | 1989 | PyObject * _argo0 = 0; |
efc5f224 | 1990 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1991 | |
1992 | self = self; | |
f6bcfd97 | 1993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_data_get",_kwnames,&_argo0)) |
8ab979d7 | 1994 | return NULL; |
1d99702e RD |
1995 | if (_argo0) { |
1996 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1997 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1998 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_get. Expected _wxListItem_p."); |
8ab979d7 RD |
1999 | return NULL; |
2000 | } | |
2001 | } | |
cf694132 RD |
2002 | { |
2003 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2004 | _result = (long )wxListItem_m_data_get(_arg0); |
cf694132 RD |
2005 | |
2006 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2007 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2008 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2009 | return _resultobj; |
2010 | } | |
2011 | ||
f6bcfd97 BP |
2012 | #define wxListItem_m_format_set(_swigobj,_swigval) (_swigobj->m_format = _swigval,_swigval) |
2013 | static PyObject *_wrap_wxListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2014 | PyObject * _resultobj; |
f6bcfd97 | 2015 | int _result; |
af309447 | 2016 | wxListItem * _arg0; |
f6bcfd97 | 2017 | int _arg1; |
1d99702e | 2018 | PyObject * _argo0 = 0; |
f6bcfd97 | 2019 | char *_kwnames[] = { "self","m_format", NULL }; |
af309447 RD |
2020 | |
2021 | self = self; | |
f6bcfd97 | 2022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_format_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2023 | return NULL; |
1d99702e RD |
2024 | if (_argo0) { |
2025 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2026 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 2027 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_set. Expected _wxListItem_p."); |
af309447 RD |
2028 | return NULL; |
2029 | } | |
2030 | } | |
cf694132 RD |
2031 | { |
2032 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2033 | _result = (int )wxListItem_m_format_set(_arg0,_arg1); |
cf694132 RD |
2034 | |
2035 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2036 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2037 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2038 | return _resultobj; |
2039 | } | |
2040 | ||
f6bcfd97 BP |
2041 | #define wxListItem_m_format_get(_swigobj) ((int ) _swigobj->m_format) |
2042 | static PyObject *_wrap_wxListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2043 | PyObject * _resultobj; |
f6bcfd97 | 2044 | int _result; |
8ab979d7 | 2045 | wxListItem * _arg0; |
1d99702e | 2046 | PyObject * _argo0 = 0; |
efc5f224 | 2047 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2048 | |
2049 | self = self; | |
f6bcfd97 | 2050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_format_get",_kwnames,&_argo0)) |
8ab979d7 | 2051 | return NULL; |
1d99702e RD |
2052 | if (_argo0) { |
2053 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2054 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 2055 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_get. Expected _wxListItem_p."); |
8ab979d7 RD |
2056 | return NULL; |
2057 | } | |
2058 | } | |
cf694132 RD |
2059 | { |
2060 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2061 | _result = (int )wxListItem_m_format_get(_arg0); |
cf694132 RD |
2062 | |
2063 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2064 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2065 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2066 | return _resultobj; |
2067 | } | |
2068 | ||
f6bcfd97 BP |
2069 | #define wxListItem_m_width_set(_swigobj,_swigval) (_swigobj->m_width = _swigval,_swigval) |
2070 | static PyObject *_wrap_wxListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2071 | PyObject * _resultobj; |
f6bcfd97 | 2072 | int _result; |
af309447 | 2073 | wxListItem * _arg0; |
f6bcfd97 | 2074 | int _arg1; |
1d99702e | 2075 | PyObject * _argo0 = 0; |
f6bcfd97 | 2076 | char *_kwnames[] = { "self","m_width", NULL }; |
af309447 RD |
2077 | |
2078 | self = self; | |
f6bcfd97 | 2079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_width_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2080 | return NULL; |
1d99702e RD |
2081 | if (_argo0) { |
2082 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2083 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 2084 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_set. Expected _wxListItem_p."); |
af309447 RD |
2085 | return NULL; |
2086 | } | |
2087 | } | |
cf694132 RD |
2088 | { |
2089 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2090 | _result = (int )wxListItem_m_width_set(_arg0,_arg1); |
cf694132 RD |
2091 | |
2092 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2093 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2094 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2095 | return _resultobj; |
2096 | } | |
2097 | ||
f6bcfd97 BP |
2098 | #define wxListItem_m_width_get(_swigobj) ((int ) _swigobj->m_width) |
2099 | static PyObject *_wrap_wxListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2100 | PyObject * _resultobj; |
f6bcfd97 | 2101 | int _result; |
8ab979d7 | 2102 | wxListItem * _arg0; |
1d99702e | 2103 | PyObject * _argo0 = 0; |
efc5f224 | 2104 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2105 | |
2106 | self = self; | |
f6bcfd97 | 2107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_width_get",_kwnames,&_argo0)) |
8ab979d7 | 2108 | return NULL; |
1d99702e RD |
2109 | if (_argo0) { |
2110 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2111 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 2112 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_get. Expected _wxListItem_p."); |
8ab979d7 RD |
2113 | return NULL; |
2114 | } | |
2115 | } | |
cf694132 RD |
2116 | { |
2117 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2118 | _result = (int )wxListItem_m_width_get(_arg0); |
cf694132 RD |
2119 | |
2120 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2121 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2122 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2123 | return _resultobj; |
2124 | } | |
2125 | ||
c368d904 RD |
2126 | static void *SwigwxListEventTowxNotifyEvent(void *ptr) { |
2127 | wxListEvent *src; | |
2128 | wxNotifyEvent *dest; | |
2129 | src = (wxListEvent *) ptr; | |
2130 | dest = (wxNotifyEvent *) src; | |
2131 | return (void *) dest; | |
2132 | } | |
2133 | ||
f6bcfd97 BP |
2134 | static void *SwigwxListEventTowxCommandEvent(void *ptr) { |
2135 | wxListEvent *src; | |
2136 | wxCommandEvent *dest; | |
2137 | src = (wxListEvent *) ptr; | |
2138 | dest = (wxCommandEvent *) src; | |
2139 | return (void *) dest; | |
2140 | } | |
2141 | ||
2142 | static void *SwigwxListEventTowxEvent(void *ptr) { | |
2143 | wxListEvent *src; | |
2144 | wxEvent *dest; | |
2145 | src = (wxListEvent *) ptr; | |
2146 | dest = (wxEvent *) src; | |
2147 | return (void *) dest; | |
2148 | } | |
2149 | ||
9df61a29 RD |
2150 | static void *SwigwxListEventTowxObject(void *ptr) { |
2151 | wxListEvent *src; | |
2152 | wxObject *dest; | |
2153 | src = (wxListEvent *) ptr; | |
2154 | dest = (wxObject *) src; | |
2155 | return (void *) dest; | |
2156 | } | |
2157 | ||
059a841c RD |
2158 | #define new_wxListEvent(_swigarg0,_swigarg1) (new wxListEvent(_swigarg0,_swigarg1)) |
2159 | static PyObject *_wrap_new_wxListEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2160 | PyObject * _resultobj; | |
2161 | wxListEvent * _result; | |
2162 | wxEventType _arg0 = (wxEventType ) wxEVT_NULL; | |
2163 | int _arg1 = (int ) 0; | |
2164 | char *_kwnames[] = { "commandType","id", NULL }; | |
2165 | char _ptemp[128]; | |
2166 | ||
2167 | self = self; | |
2168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxListEvent",_kwnames,&_arg0,&_arg1)) | |
2169 | return NULL; | |
2170 | { | |
2171 | wxPy_BEGIN_ALLOW_THREADS; | |
2172 | _result = (wxListEvent *)new_wxListEvent(_arg0,_arg1); | |
2173 | ||
2174 | wxPy_END_ALLOW_THREADS; | |
2175 | if (PyErr_Occurred()) return NULL; | |
2176 | } if (_result) { | |
2177 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListEvent_p"); | |
2178 | _resultobj = Py_BuildValue("s",_ptemp); | |
2179 | } else { | |
2180 | Py_INCREF(Py_None); | |
2181 | _resultobj = Py_None; | |
2182 | } | |
2183 | return _resultobj; | |
2184 | } | |
2185 | ||
f6bcfd97 BP |
2186 | #define wxListEvent_m_code_set(_swigobj,_swigval) (_swigobj->m_code = _swigval,_swigval) |
2187 | static PyObject *_wrap_wxListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2188 | PyObject * _resultobj; |
f6bcfd97 BP |
2189 | int _result; |
2190 | wxListEvent * _arg0; | |
2191 | int _arg1; | |
1d99702e | 2192 | PyObject * _argo0 = 0; |
f6bcfd97 | 2193 | char *_kwnames[] = { "self","m_code", NULL }; |
af309447 RD |
2194 | |
2195 | self = self; | |
f6bcfd97 | 2196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_code_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2197 | return NULL; |
1d99702e RD |
2198 | if (_argo0) { |
2199 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2200 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2201 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_code_set. Expected _wxListEvent_p."); | |
af309447 RD |
2202 | return NULL; |
2203 | } | |
2204 | } | |
af309447 | 2205 | { |
cf694132 | 2206 | wxPy_BEGIN_ALLOW_THREADS; |
f6bcfd97 | 2207 | _result = (int )wxListEvent_m_code_set(_arg0,_arg1); |
cf694132 RD |
2208 | |
2209 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2210 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2211 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2212 | return _resultobj; |
2213 | } | |
2214 | ||
f6bcfd97 BP |
2215 | #define wxListEvent_m_code_get(_swigobj) ((int ) _swigobj->m_code) |
2216 | static PyObject *_wrap_wxListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2217 | PyObject * _resultobj; |
f6bcfd97 BP |
2218 | int _result; |
2219 | wxListEvent * _arg0; | |
1d99702e | 2220 | PyObject * _argo0 = 0; |
efc5f224 | 2221 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2222 | |
2223 | self = self; | |
f6bcfd97 | 2224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_code_get",_kwnames,&_argo0)) |
8ab979d7 | 2225 | return NULL; |
1d99702e RD |
2226 | if (_argo0) { |
2227 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2228 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2229 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_code_get. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2230 | return NULL; |
2231 | } | |
2232 | } | |
8ab979d7 | 2233 | { |
cf694132 | 2234 | wxPy_BEGIN_ALLOW_THREADS; |
f6bcfd97 | 2235 | _result = (int )wxListEvent_m_code_get(_arg0); |
cf694132 RD |
2236 | |
2237 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2238 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2239 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2240 | return _resultobj; |
2241 | } | |
2242 | ||
f6bcfd97 BP |
2243 | #define wxListEvent_m_itemIndex_set(_swigobj,_swigval) (_swigobj->m_itemIndex = _swigval,_swigval) |
2244 | static PyObject *_wrap_wxListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2245 | PyObject * _resultobj; |
f6bcfd97 BP |
2246 | long _result; |
2247 | wxListEvent * _arg0; | |
2248 | long _arg1; | |
1d99702e | 2249 | PyObject * _argo0 = 0; |
f6bcfd97 | 2250 | char *_kwnames[] = { "self","m_itemIndex", NULL }; |
af309447 RD |
2251 | |
2252 | self = self; | |
f6bcfd97 | 2253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListEvent_m_itemIndex_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2254 | return NULL; |
1d99702e RD |
2255 | if (_argo0) { |
2256 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2257 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2258 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_set. Expected _wxListEvent_p."); | |
af309447 RD |
2259 | return NULL; |
2260 | } | |
2261 | } | |
cf694132 RD |
2262 | { |
2263 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2264 | _result = (long )wxListEvent_m_itemIndex_set(_arg0,_arg1); |
cf694132 RD |
2265 | |
2266 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2267 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2268 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2269 | return _resultobj; |
2270 | } | |
2271 | ||
f6bcfd97 BP |
2272 | #define wxListEvent_m_itemIndex_get(_swigobj) ((long ) _swigobj->m_itemIndex) |
2273 | static PyObject *_wrap_wxListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2274 | PyObject * _resultobj; |
f6bcfd97 BP |
2275 | long _result; |
2276 | wxListEvent * _arg0; | |
1d99702e | 2277 | PyObject * _argo0 = 0; |
efc5f224 | 2278 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2279 | |
2280 | self = self; | |
f6bcfd97 | 2281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_itemIndex_get",_kwnames,&_argo0)) |
8ab979d7 | 2282 | return NULL; |
1d99702e RD |
2283 | if (_argo0) { |
2284 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2285 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_get. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2287 | return NULL; |
2288 | } | |
2289 | } | |
cf694132 RD |
2290 | { |
2291 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2292 | _result = (long )wxListEvent_m_itemIndex_get(_arg0); |
cf694132 RD |
2293 | |
2294 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2295 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2296 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2297 | return _resultobj; |
2298 | } | |
2299 | ||
f6bcfd97 BP |
2300 | #define wxListEvent_m_oldItemIndex_set(_swigobj,_swigval) (_swigobj->m_oldItemIndex = _swigval,_swigval) |
2301 | static PyObject *_wrap_wxListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
2302 | PyObject * _resultobj; |
2303 | long _result; | |
f6bcfd97 | 2304 | wxListEvent * _arg0; |
af309447 | 2305 | long _arg1; |
1d99702e | 2306 | PyObject * _argo0 = 0; |
f6bcfd97 | 2307 | char *_kwnames[] = { "self","m_oldItemIndex", NULL }; |
af309447 RD |
2308 | |
2309 | self = self; | |
f6bcfd97 | 2310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListEvent_m_oldItemIndex_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2311 | return NULL; |
1d99702e RD |
2312 | if (_argo0) { |
2313 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2314 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2315 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_set. Expected _wxListEvent_p."); | |
af309447 RD |
2316 | return NULL; |
2317 | } | |
2318 | } | |
cf694132 RD |
2319 | { |
2320 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2321 | _result = (long )wxListEvent_m_oldItemIndex_set(_arg0,_arg1); |
cf694132 RD |
2322 | |
2323 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2324 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2325 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2326 | return _resultobj; |
2327 | } | |
2328 | ||
f6bcfd97 BP |
2329 | #define wxListEvent_m_oldItemIndex_get(_swigobj) ((long ) _swigobj->m_oldItemIndex) |
2330 | static PyObject *_wrap_wxListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2331 | PyObject * _resultobj; |
2332 | long _result; | |
f6bcfd97 | 2333 | wxListEvent * _arg0; |
1d99702e | 2334 | PyObject * _argo0 = 0; |
efc5f224 | 2335 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2336 | |
2337 | self = self; | |
f6bcfd97 | 2338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_oldItemIndex_get",_kwnames,&_argo0)) |
8ab979d7 | 2339 | return NULL; |
1d99702e RD |
2340 | if (_argo0) { |
2341 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2342 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2343 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_get. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2344 | return NULL; |
2345 | } | |
2346 | } | |
cf694132 RD |
2347 | { |
2348 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2349 | _result = (long )wxListEvent_m_oldItemIndex_get(_arg0); |
cf694132 RD |
2350 | |
2351 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2352 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2353 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2354 | return _resultobj; |
2355 | } | |
2356 | ||
f6bcfd97 BP |
2357 | #define wxListEvent_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval) |
2358 | static PyObject *_wrap_wxListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
2359 | PyObject * _resultobj; |
2360 | int _result; | |
f6bcfd97 | 2361 | wxListEvent * _arg0; |
af309447 | 2362 | int _arg1; |
1d99702e | 2363 | PyObject * _argo0 = 0; |
f6bcfd97 | 2364 | char *_kwnames[] = { "self","m_col", NULL }; |
af309447 RD |
2365 | |
2366 | self = self; | |
f6bcfd97 | 2367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_col_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2368 | return NULL; |
1d99702e RD |
2369 | if (_argo0) { |
2370 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2371 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2372 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_set. Expected _wxListEvent_p."); | |
af309447 RD |
2373 | return NULL; |
2374 | } | |
2375 | } | |
cf694132 RD |
2376 | { |
2377 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2378 | _result = (int )wxListEvent_m_col_set(_arg0,_arg1); |
cf694132 RD |
2379 | |
2380 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2381 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2382 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2383 | return _resultobj; |
2384 | } | |
2385 | ||
f6bcfd97 BP |
2386 | #define wxListEvent_m_col_get(_swigobj) ((int ) _swigobj->m_col) |
2387 | static PyObject *_wrap_wxListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2388 | PyObject * _resultobj; |
2389 | int _result; | |
f6bcfd97 | 2390 | wxListEvent * _arg0; |
1d99702e | 2391 | PyObject * _argo0 = 0; |
efc5f224 | 2392 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2393 | |
2394 | self = self; | |
f6bcfd97 | 2395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_col_get",_kwnames,&_argo0)) |
8ab979d7 | 2396 | return NULL; |
1d99702e RD |
2397 | if (_argo0) { |
2398 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2399 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2400 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_get. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2401 | return NULL; |
2402 | } | |
2403 | } | |
cf694132 RD |
2404 | { |
2405 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2406 | _result = (int )wxListEvent_m_col_get(_arg0); |
cf694132 RD |
2407 | |
2408 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2409 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2410 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2411 | return _resultobj; |
2412 | } | |
2413 | ||
f6bcfd97 BP |
2414 | #define wxListEvent_m_cancelled_set(_swigobj,_swigval) (_swigobj->m_cancelled = _swigval,_swigval) |
2415 | static PyObject *_wrap_wxListEvent_m_cancelled_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2416 | PyObject * _resultobj; |
f6bcfd97 BP |
2417 | bool _result; |
2418 | wxListEvent * _arg0; | |
2419 | bool _arg1; | |
1d99702e | 2420 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
2421 | int tempbool1; |
2422 | char *_kwnames[] = { "self","m_cancelled", NULL }; | |
af309447 RD |
2423 | |
2424 | self = self; | |
f6bcfd97 | 2425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_cancelled_set",_kwnames,&_argo0,&tempbool1)) |
af309447 | 2426 | return NULL; |
1d99702e RD |
2427 | if (_argo0) { |
2428 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2429 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2430 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_cancelled_set. Expected _wxListEvent_p."); | |
af309447 RD |
2431 | return NULL; |
2432 | } | |
2433 | } | |
f6bcfd97 | 2434 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
2435 | { |
2436 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2437 | _result = (bool )wxListEvent_m_cancelled_set(_arg0,_arg1); |
cf694132 RD |
2438 | |
2439 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2440 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2441 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2442 | return _resultobj; |
2443 | } | |
2444 | ||
f6bcfd97 BP |
2445 | #define wxListEvent_m_cancelled_get(_swigobj) ((bool ) _swigobj->m_cancelled) |
2446 | static PyObject *_wrap_wxListEvent_m_cancelled_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2447 | PyObject * _resultobj; |
f6bcfd97 BP |
2448 | bool _result; |
2449 | wxListEvent * _arg0; | |
1d99702e | 2450 | PyObject * _argo0 = 0; |
efc5f224 | 2451 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2452 | |
2453 | self = self; | |
f6bcfd97 | 2454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_cancelled_get",_kwnames,&_argo0)) |
8ab979d7 | 2455 | return NULL; |
1d99702e RD |
2456 | if (_argo0) { |
2457 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2458 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2459 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_cancelled_get. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2460 | return NULL; |
2461 | } | |
2462 | } | |
cf694132 RD |
2463 | { |
2464 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2465 | _result = (bool )wxListEvent_m_cancelled_get(_arg0); |
cf694132 RD |
2466 | |
2467 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2468 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2469 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2470 | return _resultobj; |
2471 | } | |
2472 | ||
f6bcfd97 BP |
2473 | #define wxListEvent_m_pointDrag_set(_swigobj,_swigval) (_swigobj->m_pointDrag = *(_swigval),_swigval) |
2474 | static PyObject *_wrap_wxListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2475 | PyObject * _resultobj; |
f6bcfd97 BP |
2476 | wxPoint * _result; |
2477 | wxListEvent * _arg0; | |
2478 | wxPoint * _arg1; | |
2479 | PyObject * _argo0 = 0; | |
2480 | wxPoint temp; | |
2481 | PyObject * _obj1 = 0; | |
2482 | char *_kwnames[] = { "self","m_pointDrag", NULL }; | |
8ab979d7 RD |
2483 | char _ptemp[128]; |
2484 | ||
2485 | self = self; | |
f6bcfd97 BP |
2486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListEvent_m_pointDrag_set",_kwnames,&_argo0,&_obj1)) |
2487 | return NULL; | |
2488 | if (_argo0) { | |
2489 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2490 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2491 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_set. Expected _wxListEvent_p."); | |
2492 | return NULL; | |
2493 | } | |
2494 | } | |
2495 | { | |
2496 | _arg1 = &temp; | |
2497 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 2498 | return NULL; |
f6bcfd97 | 2499 | } |
cf694132 RD |
2500 | { |
2501 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2502 | _result = (wxPoint *)wxListEvent_m_pointDrag_set(_arg0,_arg1); |
cf694132 RD |
2503 | |
2504 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2505 | if (PyErr_Occurred()) return NULL; |
1d99702e | 2506 | } if (_result) { |
f6bcfd97 | 2507 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); |
1d99702e RD |
2508 | _resultobj = Py_BuildValue("s",_ptemp); |
2509 | } else { | |
2510 | Py_INCREF(Py_None); | |
2511 | _resultobj = Py_None; | |
2512 | } | |
8ab979d7 RD |
2513 | return _resultobj; |
2514 | } | |
2515 | ||
f6bcfd97 BP |
2516 | #define wxListEvent_m_pointDrag_get(_swigobj) (&_swigobj->m_pointDrag) |
2517 | static PyObject *_wrap_wxListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2518 | PyObject * _resultobj; |
f6bcfd97 BP |
2519 | wxPoint * _result; |
2520 | wxListEvent * _arg0; | |
1d99702e | 2521 | PyObject * _argo0 = 0; |
efc5f224 | 2522 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 2523 | char _ptemp[128]; |
8ab979d7 RD |
2524 | |
2525 | self = self; | |
f6bcfd97 | 2526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_pointDrag_get",_kwnames,&_argo0)) |
8ab979d7 | 2527 | return NULL; |
1d99702e RD |
2528 | if (_argo0) { |
2529 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2530 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_get. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2532 | return NULL; |
2533 | } | |
2534 | } | |
cf694132 RD |
2535 | { |
2536 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2537 | _result = (wxPoint *)wxListEvent_m_pointDrag_get(_arg0); |
cf694132 RD |
2538 | |
2539 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2540 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2541 | } if (_result) { |
2542 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
2543 | _resultobj = Py_BuildValue("s",_ptemp); | |
2544 | } else { | |
2545 | Py_INCREF(Py_None); | |
2546 | _resultobj = Py_None; | |
2547 | } | |
8ab979d7 RD |
2548 | return _resultobj; |
2549 | } | |
2550 | ||
f6bcfd97 BP |
2551 | #define wxListEvent_m_item_set(_swigobj,_swigval) (_swigobj->m_item = *(_swigval),_swigval) |
2552 | static PyObject *_wrap_wxListEvent_m_item_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2553 | PyObject * _resultobj; | |
2554 | wxListItem * _result; | |
2555 | wxListEvent * _arg0; | |
2556 | wxListItem * _arg1; | |
2557 | PyObject * _argo0 = 0; | |
2558 | PyObject * _argo1 = 0; | |
2559 | char *_kwnames[] = { "self","m_item", NULL }; | |
8ab979d7 | 2560 | |
f6bcfd97 BP |
2561 | self = self; |
2562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListEvent_m_item_set",_kwnames,&_argo0,&_argo1)) | |
2563 | return NULL; | |
2564 | if (_argo0) { | |
2565 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2566 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2567 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_set. Expected _wxListEvent_p."); | |
2568 | return NULL; | |
2569 | } | |
2570 | } | |
2571 | if (_argo1) { | |
2572 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2573 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
2574 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListEvent_m_item_set. Expected _wxListItem_p."); | |
2575 | return NULL; | |
2576 | } | |
2577 | } | |
2578 | { | |
2579 | wxPy_BEGIN_ALLOW_THREADS; | |
2580 | _result = (wxListItem *)wxListEvent_m_item_set(_arg0,_arg1); | |
2581 | ||
2582 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2583 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 2584 | }{ _resultobj = wxPyMake_wxObject(_result); } |
f6bcfd97 | 2585 | return _resultobj; |
8ab979d7 RD |
2586 | } |
2587 | ||
f6bcfd97 BP |
2588 | #define wxListEvent_m_item_get(_swigobj) (&_swigobj->m_item) |
2589 | static PyObject *_wrap_wxListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2590 | PyObject * _resultobj; |
f6bcfd97 | 2591 | wxListItem * _result; |
af309447 | 2592 | wxListEvent * _arg0; |
1d99702e | 2593 | PyObject * _argo0 = 0; |
f6bcfd97 | 2594 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2595 | |
2596 | self = self; | |
f6bcfd97 | 2597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_item_get",_kwnames,&_argo0)) |
af309447 | 2598 | return NULL; |
1d99702e RD |
2599 | if (_argo0) { |
2600 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2601 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2602 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_get. Expected _wxListEvent_p."); |
af309447 RD |
2603 | return NULL; |
2604 | } | |
2605 | } | |
cf694132 RD |
2606 | { |
2607 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2608 | _result = (wxListItem *)wxListEvent_m_item_get(_arg0); |
cf694132 RD |
2609 | |
2610 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2611 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 2612 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
2613 | return _resultobj; |
2614 | } | |
2615 | ||
f6bcfd97 BP |
2616 | #define wxListEvent_GetCode(_swigobj) (_swigobj->GetCode()) |
2617 | static PyObject *_wrap_wxListEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2618 | PyObject * _resultobj; |
2619 | int _result; | |
2620 | wxListEvent * _arg0; | |
1d99702e | 2621 | PyObject * _argo0 = 0; |
efc5f224 | 2622 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2623 | |
2624 | self = self; | |
f6bcfd97 | 2625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCode",_kwnames,&_argo0)) |
8ab979d7 | 2626 | return NULL; |
1d99702e RD |
2627 | if (_argo0) { |
2628 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2629 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2630 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCode. Expected _wxListEvent_p."); |
8ab979d7 RD |
2631 | return NULL; |
2632 | } | |
2633 | } | |
cf694132 RD |
2634 | { |
2635 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2636 | _result = (int )wxListEvent_GetCode(_arg0); |
cf694132 RD |
2637 | |
2638 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2639 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2640 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2641 | return _resultobj; |
2642 | } | |
2643 | ||
f6bcfd97 BP |
2644 | #define wxListEvent_GetIndex(_swigobj) (_swigobj->GetIndex()) |
2645 | static PyObject *_wrap_wxListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
2646 | PyObject * _resultobj; |
2647 | long _result; | |
2648 | wxListEvent * _arg0; | |
1d99702e | 2649 | PyObject * _argo0 = 0; |
f6bcfd97 | 2650 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2651 | |
2652 | self = self; | |
f6bcfd97 | 2653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetIndex",_kwnames,&_argo0)) |
af309447 | 2654 | return NULL; |
1d99702e RD |
2655 | if (_argo0) { |
2656 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2657 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2658 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetIndex. Expected _wxListEvent_p."); |
af309447 RD |
2659 | return NULL; |
2660 | } | |
2661 | } | |
cf694132 RD |
2662 | { |
2663 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2664 | _result = (long )wxListEvent_GetIndex(_arg0); |
cf694132 RD |
2665 | |
2666 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2667 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2668 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2669 | return _resultobj; |
2670 | } | |
2671 | ||
f6bcfd97 BP |
2672 | #define wxListEvent_GetOldIndex(_swigobj) (_swigobj->GetOldIndex()) |
2673 | static PyObject *_wrap_wxListEvent_GetOldIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2674 | PyObject * _resultobj; |
2675 | long _result; | |
2676 | wxListEvent * _arg0; | |
1d99702e | 2677 | PyObject * _argo0 = 0; |
efc5f224 | 2678 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2679 | |
2680 | self = self; | |
f6bcfd97 | 2681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetOldIndex",_kwnames,&_argo0)) |
8ab979d7 | 2682 | return NULL; |
1d99702e RD |
2683 | if (_argo0) { |
2684 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2685 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2686 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetOldIndex. Expected _wxListEvent_p."); |
8ab979d7 RD |
2687 | return NULL; |
2688 | } | |
2689 | } | |
cf694132 RD |
2690 | { |
2691 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2692 | _result = (long )wxListEvent_GetOldIndex(_arg0); |
cf694132 RD |
2693 | |
2694 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2695 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2696 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2697 | return _resultobj; |
2698 | } | |
2699 | ||
f6bcfd97 BP |
2700 | #define wxListEvent_GetOldItem(_swigobj) (_swigobj->GetOldItem()) |
2701 | static PyObject *_wrap_wxListEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
2702 | PyObject * _resultobj; |
2703 | long _result; | |
2704 | wxListEvent * _arg0; | |
1d99702e | 2705 | PyObject * _argo0 = 0; |
f6bcfd97 | 2706 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2707 | |
2708 | self = self; | |
f6bcfd97 | 2709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetOldItem",_kwnames,&_argo0)) |
af309447 | 2710 | return NULL; |
1d99702e RD |
2711 | if (_argo0) { |
2712 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2713 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2714 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetOldItem. Expected _wxListEvent_p."); |
af309447 RD |
2715 | return NULL; |
2716 | } | |
2717 | } | |
cf694132 RD |
2718 | { |
2719 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2720 | _result = (long )wxListEvent_GetOldItem(_arg0); |
cf694132 RD |
2721 | |
2722 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2723 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2724 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2725 | return _resultobj; |
2726 | } | |
2727 | ||
f6bcfd97 BP |
2728 | #define wxListEvent_GetColumn(_swigobj) (_swigobj->GetColumn()) |
2729 | static PyObject *_wrap_wxListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2730 | PyObject * _resultobj; |
f6bcfd97 | 2731 | int _result; |
8ab979d7 | 2732 | wxListEvent * _arg0; |
1d99702e | 2733 | PyObject * _argo0 = 0; |
efc5f224 | 2734 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2735 | |
2736 | self = self; | |
f6bcfd97 | 2737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetColumn",_kwnames,&_argo0)) |
8ab979d7 | 2738 | return NULL; |
1d99702e RD |
2739 | if (_argo0) { |
2740 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2741 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetColumn. Expected _wxListEvent_p."); |
8ab979d7 RD |
2743 | return NULL; |
2744 | } | |
2745 | } | |
cf694132 RD |
2746 | { |
2747 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2748 | _result = (int )wxListEvent_GetColumn(_arg0); |
cf694132 RD |
2749 | |
2750 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2751 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2752 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2753 | return _resultobj; |
2754 | } | |
2755 | ||
f6bcfd97 BP |
2756 | #define wxListEvent_Cancelled(_swigobj) (_swigobj->Cancelled()) |
2757 | static PyObject *_wrap_wxListEvent_Cancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2758 | PyObject * _resultobj; |
f6bcfd97 | 2759 | bool _result; |
af309447 | 2760 | wxListEvent * _arg0; |
1d99702e | 2761 | PyObject * _argo0 = 0; |
f6bcfd97 | 2762 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2763 | |
2764 | self = self; | |
f6bcfd97 | 2765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_Cancelled",_kwnames,&_argo0)) |
af309447 | 2766 | return NULL; |
1d99702e RD |
2767 | if (_argo0) { |
2768 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2769 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2770 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_Cancelled. Expected _wxListEvent_p."); |
af309447 RD |
2771 | return NULL; |
2772 | } | |
2773 | } | |
cf694132 RD |
2774 | { |
2775 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2776 | _result = (bool )wxListEvent_Cancelled(_arg0); |
cf694132 RD |
2777 | |
2778 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2779 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2780 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2781 | return _resultobj; |
2782 | } | |
2783 | ||
f6bcfd97 BP |
2784 | #define wxListEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) |
2785 | static PyObject *_wrap_wxListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2786 | PyObject * _resultobj; |
f6bcfd97 | 2787 | wxPoint * _result; |
8ab979d7 | 2788 | wxListEvent * _arg0; |
1d99702e | 2789 | PyObject * _argo0 = 0; |
efc5f224 | 2790 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 2791 | char _ptemp[128]; |
8ab979d7 RD |
2792 | |
2793 | self = self; | |
f6bcfd97 | 2794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetPoint",_kwnames,&_argo0)) |
8ab979d7 | 2795 | return NULL; |
1d99702e RD |
2796 | if (_argo0) { |
2797 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2798 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2799 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetPoint. Expected _wxListEvent_p."); |
8ab979d7 RD |
2800 | return NULL; |
2801 | } | |
2802 | } | |
cf694132 RD |
2803 | { |
2804 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2805 | _result = new wxPoint (wxListEvent_GetPoint(_arg0)); |
cf694132 RD |
2806 | |
2807 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2808 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2809 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
2810 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
2811 | return _resultobj; |
2812 | } | |
2813 | ||
f6bcfd97 BP |
2814 | #define wxListEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) |
2815 | static PyObject *_wrap_wxListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2816 | PyObject * _resultobj; |
f6bcfd97 | 2817 | wxString * _result; |
af309447 | 2818 | wxListEvent * _arg0; |
1d99702e | 2819 | PyObject * _argo0 = 0; |
f6bcfd97 | 2820 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2821 | |
2822 | self = self; | |
f6bcfd97 | 2823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetLabel",_kwnames,&_argo0)) |
af309447 | 2824 | return NULL; |
1d99702e RD |
2825 | if (_argo0) { |
2826 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2827 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2828 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetLabel. Expected _wxListEvent_p."); |
af309447 RD |
2829 | return NULL; |
2830 | } | |
2831 | } | |
cf694132 RD |
2832 | { |
2833 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
2834 | const wxString & _result_ref = wxListEvent_GetLabel(_arg0); |
2835 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
2836 | |
2837 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2838 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2839 | }{ |
2840 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2841 | } | |
af309447 RD |
2842 | return _resultobj; |
2843 | } | |
2844 | ||
f6bcfd97 BP |
2845 | #define wxListEvent_GetText(_swigobj) (_swigobj->GetText()) |
2846 | static PyObject *_wrap_wxListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2847 | PyObject * _resultobj; |
f6bcfd97 | 2848 | wxString * _result; |
8ab979d7 | 2849 | wxListEvent * _arg0; |
1d99702e | 2850 | PyObject * _argo0 = 0; |
efc5f224 | 2851 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2852 | |
2853 | self = self; | |
f6bcfd97 | 2854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetText",_kwnames,&_argo0)) |
8ab979d7 | 2855 | return NULL; |
1d99702e RD |
2856 | if (_argo0) { |
2857 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2858 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2859 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetText. Expected _wxListEvent_p."); |
8ab979d7 RD |
2860 | return NULL; |
2861 | } | |
2862 | } | |
cf694132 RD |
2863 | { |
2864 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
2865 | const wxString & _result_ref = wxListEvent_GetText(_arg0); |
2866 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
2867 | |
2868 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2869 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2870 | }{ |
2871 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2872 | } | |
8ab979d7 RD |
2873 | return _resultobj; |
2874 | } | |
2875 | ||
f6bcfd97 BP |
2876 | #define wxListEvent_GetImage(_swigobj) (_swigobj->GetImage()) |
2877 | static PyObject *_wrap_wxListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2878 | PyObject * _resultobj; |
f6bcfd97 | 2879 | int _result; |
af309447 | 2880 | wxListEvent * _arg0; |
1d99702e | 2881 | PyObject * _argo0 = 0; |
f6bcfd97 | 2882 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2883 | |
2884 | self = self; | |
f6bcfd97 | 2885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetImage",_kwnames,&_argo0)) |
af309447 | 2886 | return NULL; |
1d99702e RD |
2887 | if (_argo0) { |
2888 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2889 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2890 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetImage. Expected _wxListEvent_p."); |
af309447 RD |
2891 | return NULL; |
2892 | } | |
2893 | } | |
cf694132 RD |
2894 | { |
2895 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2896 | _result = (int )wxListEvent_GetImage(_arg0); |
cf694132 RD |
2897 | |
2898 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2899 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2900 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2901 | return _resultobj; |
2902 | } | |
2903 | ||
f6bcfd97 BP |
2904 | #define wxListEvent_GetData(_swigobj) (_swigobj->GetData()) |
2905 | static PyObject *_wrap_wxListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2906 | PyObject * _resultobj; |
f6bcfd97 | 2907 | long _result; |
8ab979d7 | 2908 | wxListEvent * _arg0; |
1d99702e | 2909 | PyObject * _argo0 = 0; |
efc5f224 | 2910 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2911 | |
2912 | self = self; | |
f6bcfd97 | 2913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetData",_kwnames,&_argo0)) |
8ab979d7 | 2914 | return NULL; |
1d99702e RD |
2915 | if (_argo0) { |
2916 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2917 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2918 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetData. Expected _wxListEvent_p."); |
8ab979d7 RD |
2919 | return NULL; |
2920 | } | |
2921 | } | |
cf694132 RD |
2922 | { |
2923 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2924 | _result = (long )wxListEvent_GetData(_arg0); |
cf694132 RD |
2925 | |
2926 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2927 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2928 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2929 | return _resultobj; |
2930 | } | |
2931 | ||
f6bcfd97 BP |
2932 | #define wxListEvent_GetMask(_swigobj) (_swigobj->GetMask()) |
2933 | static PyObject *_wrap_wxListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2934 | PyObject * _resultobj; |
f6bcfd97 | 2935 | long _result; |
af309447 | 2936 | wxListEvent * _arg0; |
1d99702e | 2937 | PyObject * _argo0 = 0; |
f6bcfd97 | 2938 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2939 | |
2940 | self = self; | |
f6bcfd97 | 2941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetMask",_kwnames,&_argo0)) |
af309447 | 2942 | return NULL; |
1d99702e RD |
2943 | if (_argo0) { |
2944 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2945 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2946 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetMask. Expected _wxListEvent_p."); |
af309447 RD |
2947 | return NULL; |
2948 | } | |
2949 | } | |
cf694132 RD |
2950 | { |
2951 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2952 | _result = (long )wxListEvent_GetMask(_arg0); |
cf694132 RD |
2953 | |
2954 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2955 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2956 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2957 | return _resultobj; |
2958 | } | |
2959 | ||
f6bcfd97 BP |
2960 | #define wxListEvent_GetItem(_swigobj) (_swigobj->GetItem()) |
2961 | static PyObject *_wrap_wxListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2962 | PyObject * _resultobj; |
2963 | wxListItem * _result; | |
2964 | wxListEvent * _arg0; | |
1d99702e | 2965 | PyObject * _argo0 = 0; |
efc5f224 | 2966 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2967 | |
2968 | self = self; | |
f6bcfd97 | 2969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetItem",_kwnames,&_argo0)) |
8ab979d7 | 2970 | return NULL; |
1d99702e RD |
2971 | if (_argo0) { |
2972 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2973 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2974 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetItem. Expected _wxListEvent_p."); |
8ab979d7 RD |
2975 | return NULL; |
2976 | } | |
2977 | } | |
cf694132 RD |
2978 | { |
2979 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
2980 | const wxListItem & _result_ref = wxListEvent_GetItem(_arg0); |
2981 | _result = (wxListItem *) &_result_ref; | |
cf694132 RD |
2982 | |
2983 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 2984 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 2985 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
2986 | return _resultobj; |
2987 | } | |
2988 | ||
059a841c RD |
2989 | #define wxListEvent_GetCacheFrom(_swigobj) (_swigobj->GetCacheFrom()) |
2990 | static PyObject *_wrap_wxListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2991 | PyObject * _resultobj; | |
2992 | long _result; | |
2993 | wxListEvent * _arg0; | |
2994 | PyObject * _argo0 = 0; | |
2995 | char *_kwnames[] = { "self", NULL }; | |
2996 | ||
2997 | self = self; | |
2998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCacheFrom",_kwnames,&_argo0)) | |
2999 | return NULL; | |
3000 | if (_argo0) { | |
3001 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3002 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
3003 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCacheFrom. Expected _wxListEvent_p."); | |
3004 | return NULL; | |
3005 | } | |
3006 | } | |
3007 | { | |
3008 | wxPy_BEGIN_ALLOW_THREADS; | |
3009 | _result = (long )wxListEvent_GetCacheFrom(_arg0); | |
3010 | ||
3011 | wxPy_END_ALLOW_THREADS; | |
3012 | if (PyErr_Occurred()) return NULL; | |
3013 | } _resultobj = Py_BuildValue("l",_result); | |
3014 | return _resultobj; | |
3015 | } | |
3016 | ||
3017 | #define wxListEvent_GetCacheTo(_swigobj) (_swigobj->GetCacheTo()) | |
3018 | static PyObject *_wrap_wxListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3019 | PyObject * _resultobj; | |
3020 | long _result; | |
3021 | wxListEvent * _arg0; | |
3022 | PyObject * _argo0 = 0; | |
3023 | char *_kwnames[] = { "self", NULL }; | |
3024 | ||
3025 | self = self; | |
3026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCacheTo",_kwnames,&_argo0)) | |
3027 | return NULL; | |
3028 | if (_argo0) { | |
3029 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3030 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
3031 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCacheTo. Expected _wxListEvent_p."); | |
3032 | return NULL; | |
3033 | } | |
3034 | } | |
3035 | { | |
3036 | wxPy_BEGIN_ALLOW_THREADS; | |
3037 | _result = (long )wxListEvent_GetCacheTo(_arg0); | |
3038 | ||
3039 | wxPy_END_ALLOW_THREADS; | |
3040 | if (PyErr_Occurred()) return NULL; | |
3041 | } _resultobj = Py_BuildValue("l",_result); | |
3042 | return _resultobj; | |
3043 | } | |
3044 | ||
cd096152 RD |
3045 | static void *SwigwxPyListCtrlTowxControl(void *ptr) { |
3046 | wxPyListCtrl *src; | |
8ab979d7 | 3047 | wxControl *dest; |
cd096152 | 3048 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
3049 | dest = (wxControl *) src; |
3050 | return (void *) dest; | |
3051 | } | |
3052 | ||
cd096152 RD |
3053 | static void *SwigwxPyListCtrlTowxWindow(void *ptr) { |
3054 | wxPyListCtrl *src; | |
8ab979d7 | 3055 | wxWindow *dest; |
cd096152 | 3056 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
3057 | dest = (wxWindow *) src; |
3058 | return (void *) dest; | |
3059 | } | |
3060 | ||
cd096152 RD |
3061 | static void *SwigwxPyListCtrlTowxEvtHandler(void *ptr) { |
3062 | wxPyListCtrl *src; | |
8ab979d7 | 3063 | wxEvtHandler *dest; |
cd096152 | 3064 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
3065 | dest = (wxEvtHandler *) src; |
3066 | return (void *) dest; | |
3067 | } | |
3068 | ||
cd096152 RD |
3069 | static void *SwigwxPyListCtrlTowxObject(void *ptr) { |
3070 | wxPyListCtrl *src; | |
9df61a29 | 3071 | wxObject *dest; |
cd096152 | 3072 | src = (wxPyListCtrl *) ptr; |
9df61a29 RD |
3073 | dest = (wxObject *) src; |
3074 | return (void *) dest; | |
3075 | } | |
3076 | ||
cd096152 | 3077 | #define new_wxListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 3078 | static PyObject *_wrap_new_wxListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 3079 | PyObject * _resultobj; |
cd096152 | 3080 | wxPyListCtrl * _result; |
8ab979d7 | 3081 | wxWindow * _arg0; |
cd096152 | 3082 | wxWindowID _arg1 = (wxWindowID ) -1; |
b68dc582 RD |
3083 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
3084 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
2c8a649d | 3085 | long _arg4 = (long ) (wxLC_ICON); |
b68dc582 | 3086 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
3087 | char * _arg6 = (char *) "listCtrl"; |
3088 | PyObject * _argo0 = 0; | |
2f90df85 RD |
3089 | wxPoint temp; |
3090 | PyObject * _obj2 = 0; | |
3091 | wxSize temp0; | |
3092 | PyObject * _obj3 = 0; | |
1d99702e | 3093 | PyObject * _argo5 = 0; |
efc5f224 | 3094 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
3095 | char _ptemp[128]; |
3096 | ||
3097 | self = self; | |
cd096152 | 3098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) |
8ab979d7 | 3099 | return NULL; |
1d99702e RD |
3100 | if (_argo0) { |
3101 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3102 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3103 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListCtrl. Expected _wxWindow_p."); |
3104 | return NULL; | |
3105 | } | |
3106 | } | |
2f90df85 RD |
3107 | if (_obj2) |
3108 | { | |
3109 | _arg2 = &temp; | |
3110 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 3111 | return NULL; |
2f90df85 RD |
3112 | } |
3113 | if (_obj3) | |
3114 | { | |
3115 | _arg3 = &temp0; | |
3116 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 3117 | return NULL; |
2f90df85 | 3118 | } |
1d99702e RD |
3119 | if (_argo5) { |
3120 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
3121 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
8ab979d7 RD |
3122 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListCtrl. Expected _wxValidator_p."); |
3123 | return NULL; | |
3124 | } | |
3125 | } | |
cf694132 RD |
3126 | { |
3127 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3128 | _result = (wxPyListCtrl *)new_wxListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); |
cf694132 RD |
3129 | |
3130 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3131 | if (PyErr_Occurred()) return NULL; |
1d99702e | 3132 | } if (_result) { |
cd096152 | 3133 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyListCtrl_p"); |
1d99702e RD |
3134 | _resultobj = Py_BuildValue("s",_ptemp); |
3135 | } else { | |
3136 | Py_INCREF(Py_None); | |
3137 | _resultobj = Py_None; | |
3138 | } | |
8ab979d7 RD |
3139 | return _resultobj; |
3140 | } | |
3141 | ||
aa2a5b86 RD |
3142 | #define new_wxPreListCtrl() (new wxPyListCtrl()) |
3143 | static PyObject *_wrap_new_wxPreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3144 | PyObject * _resultobj; | |
3145 | wxPyListCtrl * _result; | |
3146 | char *_kwnames[] = { NULL }; | |
3147 | char _ptemp[128]; | |
3148 | ||
3149 | self = self; | |
3150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListCtrl",_kwnames)) | |
3151 | return NULL; | |
3152 | { | |
3153 | wxPy_BEGIN_ALLOW_THREADS; | |
3154 | _result = (wxPyListCtrl *)new_wxPreListCtrl(); | |
3155 | ||
3156 | wxPy_END_ALLOW_THREADS; | |
3157 | if (PyErr_Occurred()) return NULL; | |
3158 | } if (_result) { | |
3159 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyListCtrl_p"); | |
3160 | _resultobj = Py_BuildValue("s",_ptemp); | |
3161 | } else { | |
3162 | Py_INCREF(Py_None); | |
3163 | _resultobj = Py_None; | |
3164 | } | |
3165 | return _resultobj; | |
3166 | } | |
3167 | ||
3168 | #define wxListCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
3169 | static PyObject *_wrap_wxListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3170 | PyObject * _resultobj; | |
3171 | bool _result; | |
3172 | wxPyListCtrl * _arg0; | |
3173 | wxWindow * _arg1; | |
3174 | wxWindowID _arg2 = (wxWindowID ) -1; | |
3175 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
3176 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
3177 | long _arg5 = (long ) (wxLC_ICON); | |
3178 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
3179 | char * _arg7 = (char *) "listCtrl"; | |
3180 | PyObject * _argo0 = 0; | |
3181 | PyObject * _argo1 = 0; | |
3182 | wxPoint temp; | |
3183 | PyObject * _obj3 = 0; | |
3184 | wxSize temp0; | |
3185 | PyObject * _obj4 = 0; | |
3186 | PyObject * _argo6 = 0; | |
3187 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
3188 | ||
3189 | self = self; | |
3190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOs:wxListCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) | |
3191 | return NULL; | |
3192 | if (_argo0) { | |
3193 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3194 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Create. Expected _wxPyListCtrl_p."); | |
3196 | return NULL; | |
3197 | } | |
3198 | } | |
3199 | if (_argo1) { | |
3200 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3201 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3202 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_Create. Expected _wxWindow_p."); | |
3203 | return NULL; | |
3204 | } | |
3205 | } | |
3206 | if (_obj3) | |
3207 | { | |
3208 | _arg3 = &temp; | |
3209 | if (! wxPoint_helper(_obj3, &_arg3)) | |
3210 | return NULL; | |
3211 | } | |
3212 | if (_obj4) | |
3213 | { | |
3214 | _arg4 = &temp0; | |
3215 | if (! wxSize_helper(_obj4, &_arg4)) | |
3216 | return NULL; | |
3217 | } | |
3218 | if (_argo6) { | |
3219 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
3220 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
3221 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxListCtrl_Create. Expected _wxValidator_p."); | |
3222 | return NULL; | |
3223 | } | |
3224 | } | |
3225 | { | |
3226 | wxPy_BEGIN_ALLOW_THREADS; | |
3227 | _result = (bool )wxListCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); | |
3228 | ||
3229 | wxPy_END_ALLOW_THREADS; | |
3230 | if (PyErr_Occurred()) return NULL; | |
3231 | } _resultobj = Py_BuildValue("i",_result); | |
3232 | return _resultobj; | |
3233 | } | |
3234 | ||
cd096152 RD |
3235 | #define wxListCtrl__setSelf(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setSelf(_swigarg0,_swigarg1)) |
3236 | static PyObject *_wrap_wxListCtrl__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3237 | PyObject * _resultobj; |
cd096152 RD |
3238 | wxPyListCtrl * _arg0; |
3239 | PyObject * _arg1; | |
3240 | PyObject * _arg2; | |
1d99702e | 3241 | PyObject * _argo0 = 0; |
cd096152 RD |
3242 | PyObject * _obj1 = 0; |
3243 | PyObject * _obj2 = 0; | |
3244 | char *_kwnames[] = { "self","self","_class", NULL }; | |
8ab979d7 RD |
3245 | |
3246 | self = self; | |
cd096152 | 3247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxListCtrl__setSelf",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 3248 | return NULL; |
1d99702e RD |
3249 | if (_argo0) { |
3250 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3251 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3252 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl__setSelf. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3253 | return NULL; |
3254 | } | |
3255 | } | |
cd096152 RD |
3256 | { |
3257 | _arg1 = _obj1; | |
3258 | } | |
3259 | { | |
3260 | _arg2 = _obj2; | |
3261 | } | |
cf694132 RD |
3262 | { |
3263 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3264 | wxListCtrl__setSelf(_arg0,_arg1,_arg2); |
cf694132 RD |
3265 | |
3266 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3267 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
3268 | } Py_INCREF(Py_None); |
3269 | _resultobj = Py_None; | |
8ab979d7 RD |
3270 | return _resultobj; |
3271 | } | |
3272 | ||
cd096152 RD |
3273 | #define wxListCtrl_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) |
3274 | static PyObject *_wrap_wxListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c4165ad | 3275 | PyObject * _resultobj; |
cd096152 RD |
3276 | bool _result; |
3277 | wxPyListCtrl * _arg0; | |
3278 | wxColour * _arg1; | |
9c4165ad | 3279 | PyObject * _argo0 = 0; |
cd096152 RD |
3280 | wxColour temp; |
3281 | PyObject * _obj1 = 0; | |
3282 | char *_kwnames[] = { "self","col", NULL }; | |
9c4165ad RD |
3283 | |
3284 | self = self; | |
cd096152 | 3285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
9c4165ad RD |
3286 | return NULL; |
3287 | if (_argo0) { | |
3288 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3289 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetForegroundColour. Expected _wxPyListCtrl_p."); | |
9c4165ad RD |
3291 | return NULL; |
3292 | } | |
3293 | } | |
cd096152 RD |
3294 | { |
3295 | _arg1 = &temp; | |
3296 | if (! wxColour_helper(_obj1, &_arg1)) | |
3297 | return NULL; | |
3298 | } | |
3299 | { | |
3300 | wxPy_BEGIN_ALLOW_THREADS; | |
3301 | _result = (bool )wxListCtrl_SetForegroundColour(_arg0,*_arg1); | |
3302 | ||
3303 | wxPy_END_ALLOW_THREADS; | |
3304 | if (PyErr_Occurred()) return NULL; | |
3305 | } _resultobj = Py_BuildValue("i",_result); | |
3306 | return _resultobj; | |
3307 | } | |
3308 | ||
3309 | #define wxListCtrl_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
3310 | static PyObject *_wrap_wxListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3311 | PyObject * _resultobj; | |
3312 | bool _result; | |
3313 | wxPyListCtrl * _arg0; | |
3314 | wxColour * _arg1; | |
3315 | PyObject * _argo0 = 0; | |
3316 | wxColour temp; | |
3317 | PyObject * _obj1 = 0; | |
3318 | char *_kwnames[] = { "self","col", NULL }; | |
3319 | ||
3320 | self = self; | |
3321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
3322 | return NULL; | |
3323 | if (_argo0) { | |
3324 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3325 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
3326 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetBackgroundColour. Expected _wxPyListCtrl_p."); | |
9c4165ad RD |
3327 | return NULL; |
3328 | } | |
3329 | } | |
cd096152 RD |
3330 | { |
3331 | _arg1 = &temp; | |
3332 | if (! wxColour_helper(_obj1, &_arg1)) | |
3333 | return NULL; | |
3334 | } | |
9c4165ad RD |
3335 | { |
3336 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3337 | _result = (bool )wxListCtrl_SetBackgroundColour(_arg0,*_arg1); |
9c4165ad RD |
3338 | |
3339 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3340 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3341 | } _resultobj = Py_BuildValue("i",_result); |
9c4165ad RD |
3342 | return _resultobj; |
3343 | } | |
3344 | ||
cd096152 RD |
3345 | #define wxListCtrl_GetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetColumn(_swigarg0,_swigarg1)) |
3346 | static PyObject *_wrap_wxListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3347 | PyObject * _resultobj; |
3348 | bool _result; | |
cd096152 RD |
3349 | wxPyListCtrl * _arg0; |
3350 | int _arg1; | |
3351 | wxListItem * _arg2; | |
1d99702e | 3352 | PyObject * _argo0 = 0; |
cd096152 RD |
3353 | PyObject * _argo2 = 0; |
3354 | char *_kwnames[] = { "self","col","item", NULL }; | |
8ab979d7 RD |
3355 | |
3356 | self = self; | |
cd096152 | 3357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_GetColumn",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 3358 | return NULL; |
1d99702e RD |
3359 | if (_argo0) { |
3360 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3361 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3362 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumn. Expected _wxPyListCtrl_p."); | |
3363 | return NULL; | |
3364 | } | |
3365 | } | |
3366 | if (_argo2) { | |
3367 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3368 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
3369 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_GetColumn. Expected _wxListItem_p."); | |
8ab979d7 RD |
3370 | return NULL; |
3371 | } | |
3372 | } | |
cf694132 RD |
3373 | { |
3374 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3375 | _result = (bool )wxListCtrl_GetColumn(_arg0,_arg1,*_arg2); |
cf694132 RD |
3376 | |
3377 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3378 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3379 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3380 | return _resultobj; |
3381 | } | |
3382 | ||
cd096152 RD |
3383 | #define wxListCtrl_SetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumn(_swigarg0,_swigarg1)) |
3384 | static PyObject *_wrap_wxListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3385 | PyObject * _resultobj; |
3386 | bool _result; | |
cd096152 RD |
3387 | wxPyListCtrl * _arg0; |
3388 | int _arg1; | |
3389 | wxListItem * _arg2; | |
1d99702e | 3390 | PyObject * _argo0 = 0; |
cd096152 RD |
3391 | PyObject * _argo2 = 0; |
3392 | char *_kwnames[] = { "self","col","item", NULL }; | |
8ab979d7 RD |
3393 | |
3394 | self = self; | |
cd096152 | 3395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_SetColumn",_kwnames,&_argo0,&_arg1,&_argo2)) |
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_SetColumn. Expected _wxPyListCtrl_p."); | |
3401 | return NULL; | |
3402 | } | |
3403 | } | |
3404 | if (_argo2) { | |
3405 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3406 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
3407 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_SetColumn. Expected _wxListItem_p."); | |
8ab979d7 RD |
3408 | return NULL; |
3409 | } | |
3410 | } | |
cf694132 RD |
3411 | { |
3412 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3413 | _result = (bool )wxListCtrl_SetColumn(_arg0,_arg1,*_arg2); |
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_GetColumnWidth(_swigobj,_swigarg0) (_swigobj->GetColumnWidth(_swigarg0)) |
3422 | static PyObject *_wrap_wxListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3423 | PyObject * _resultobj; |
cd096152 RD |
3424 | int _result; |
3425 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3426 | int _arg1; |
1d99702e | 3427 | PyObject * _argo0 = 0; |
efc5f224 | 3428 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
3429 | |
3430 | self = self; | |
cd096152 | 3431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetColumnWidth",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3432 | return NULL; |
1d99702e RD |
3433 | if (_argo0) { |
3434 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3435 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3436 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnWidth. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3437 | return NULL; |
3438 | } | |
3439 | } | |
cf694132 RD |
3440 | { |
3441 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3442 | _result = (int )wxListCtrl_GetColumnWidth(_arg0,_arg1); |
cf694132 RD |
3443 | |
3444 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3445 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3446 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3447 | return _resultobj; |
3448 | } | |
3449 | ||
cd096152 RD |
3450 | #define wxListCtrl_SetColumnWidth(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnWidth(_swigarg0,_swigarg1)) |
3451 | static PyObject *_wrap_wxListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3452 | PyObject * _resultobj; |
3453 | bool _result; | |
cd096152 RD |
3454 | wxPyListCtrl * _arg0; |
3455 | int _arg1; | |
3456 | int _arg2; | |
1d99702e | 3457 | PyObject * _argo0 = 0; |
cd096152 | 3458 | char *_kwnames[] = { "self","col","width", NULL }; |
8ab979d7 RD |
3459 | |
3460 | self = self; | |
cd096152 | 3461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_SetColumnWidth",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3462 | return NULL; |
1d99702e RD |
3463 | if (_argo0) { |
3464 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3465 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumnWidth. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3467 | return NULL; |
3468 | } | |
3469 | } | |
cf694132 RD |
3470 | { |
3471 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3472 | _result = (bool )wxListCtrl_SetColumnWidth(_arg0,_arg1,_arg2); |
cf694132 RD |
3473 | |
3474 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3475 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3476 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3477 | return _resultobj; |
3478 | } | |
3479 | ||
cd096152 RD |
3480 | #define wxListCtrl_GetCountPerPage(_swigobj) (_swigobj->GetCountPerPage()) |
3481 | static PyObject *_wrap_wxListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3482 | PyObject * _resultobj; |
cd096152 RD |
3483 | int _result; |
3484 | wxPyListCtrl * _arg0; | |
1d99702e | 3485 | PyObject * _argo0 = 0; |
efc5f224 | 3486 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3487 | |
3488 | self = self; | |
cd096152 | 3489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetCountPerPage",_kwnames,&_argo0)) |
8ab979d7 | 3490 | return NULL; |
1d99702e RD |
3491 | if (_argo0) { |
3492 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3493 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3494 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetCountPerPage. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3495 | return NULL; |
3496 | } | |
3497 | } | |
cf694132 RD |
3498 | { |
3499 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3500 | _result = (int )wxListCtrl_GetCountPerPage(_arg0); |
cf694132 RD |
3501 | |
3502 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3503 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3504 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3505 | return _resultobj; |
3506 | } | |
3507 | ||
cd096152 RD |
3508 | static wxListItem * wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col) { |
3509 | wxListItem* info = new wxListItem; | |
3510 | info->m_itemId = itemId; | |
3511 | info->m_col = col; | |
3512 | info->m_mask = 0xFFFF; | |
3513 | self->GetItem(*info); | |
3514 | return info; | |
3515 | } | |
3516 | static PyObject *_wrap_wxListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3517 | PyObject * _resultobj; |
cd096152 RD |
3518 | wxListItem * _result; |
3519 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3520 | long _arg1; |
cd096152 | 3521 | int _arg2 = (int ) 0; |
1d99702e | 3522 | PyObject * _argo0 = 0; |
cd096152 | 3523 | char *_kwnames[] = { "self","itemId","col", NULL }; |
8ab979d7 RD |
3524 | |
3525 | self = self; | |
cd096152 | 3526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItem",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3527 | return NULL; |
1d99702e RD |
3528 | if (_argo0) { |
3529 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3530 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3532 | return NULL; |
3533 | } | |
3534 | } | |
cf694132 RD |
3535 | { |
3536 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3537 | _result = (wxListItem *)wxPyListCtrl_GetItem(_arg0,_arg1,_arg2); |
cf694132 RD |
3538 | |
3539 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3540 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3541 | }{ _resultobj = wxPyMake_wxObject(_result); } |
be4d9c1f RD |
3542 | return _resultobj; |
3543 | } | |
3544 | ||
cd096152 RD |
3545 | #define wxListCtrl_SetItem(_swigobj,_swigarg0) (_swigobj->SetItem(_swigarg0)) |
3546 | static PyObject *_wrap_wxListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3547 | PyObject * _resultobj; |
3548 | bool _result; | |
cd096152 RD |
3549 | wxPyListCtrl * _arg0; |
3550 | wxListItem * _arg1; | |
1d99702e | 3551 | PyObject * _argo0 = 0; |
cd096152 RD |
3552 | PyObject * _argo1 = 0; |
3553 | char *_kwnames[] = { "self","info", NULL }; | |
8ab979d7 RD |
3554 | |
3555 | self = self; | |
cd096152 | 3556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3557 | return NULL; |
1d99702e RD |
3558 | if (_argo0) { |
3559 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3560 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3561 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItem. Expected _wxPyListCtrl_p."); | |
3562 | return NULL; | |
3563 | } | |
3564 | } | |
3565 | if (_argo1) { | |
3566 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3567 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
3568 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetItem. Expected _wxListItem_p."); | |
8ab979d7 RD |
3569 | return NULL; |
3570 | } | |
3571 | } | |
cf694132 RD |
3572 | { |
3573 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3574 | _result = (bool )wxListCtrl_SetItem(_arg0,*_arg1); |
cf694132 RD |
3575 | |
3576 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3577 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3578 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3579 | return _resultobj; |
3580 | } | |
3581 | ||
cd096152 RD |
3582 | #define wxListCtrl_SetStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
3583 | static PyObject *_wrap_wxListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3584 | PyObject * _resultobj; |
3585 | long _result; | |
cd096152 | 3586 | wxPyListCtrl * _arg0; |
8ab979d7 | 3587 | long _arg1; |
cd096152 RD |
3588 | int _arg2; |
3589 | wxString * _arg3; | |
3590 | int _arg4 = (int ) -1; | |
1d99702e | 3591 | PyObject * _argo0 = 0; |
cd096152 RD |
3592 | PyObject * _obj3 = 0; |
3593 | char *_kwnames[] = { "self","index","col","label","imageId", NULL }; | |
8ab979d7 RD |
3594 | |
3595 | self = self; | |
cd096152 | 3596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OliO|i:wxListCtrl_SetStringItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) |
8ab979d7 | 3597 | return NULL; |
1d99702e RD |
3598 | if (_argo0) { |
3599 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3600 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3601 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetStringItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3602 | return NULL; |
3603 | } | |
3604 | } | |
3605 | { | |
2cd2fac8 RD |
3606 | #if PYTHON_API_VERSION >= 1009 |
3607 | char* tmpPtr; int tmpSize; | |
cd096152 | 3608 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { |
7a446686 | 3609 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
3610 | return NULL; |
3611 | } | |
cd096152 | 3612 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) |
2cd2fac8 | 3613 | return NULL; |
cd096152 | 3614 | _arg3 = new wxString(tmpPtr, tmpSize); |
2cd2fac8 | 3615 | #else |
cd096152 | 3616 | if (!PyString_Check(_obj3)) { |
8ab979d7 RD |
3617 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
3618 | return NULL; | |
3619 | } | |
cd096152 | 3620 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
2cd2fac8 | 3621 | #endif |
8ab979d7 | 3622 | } |
cf694132 RD |
3623 | { |
3624 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3625 | _result = (long )wxListCtrl_SetStringItem(_arg0,_arg1,_arg2,*_arg3,_arg4); |
cf694132 RD |
3626 | |
3627 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3628 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3629 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 | 3630 | { |
cd096152 RD |
3631 | if (_obj3) |
3632 | delete _arg3; | |
8ab979d7 RD |
3633 | } |
3634 | return _resultobj; | |
3635 | } | |
3636 | ||
cd096152 RD |
3637 | #define wxListCtrl_GetItemState(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemState(_swigarg0,_swigarg1)) |
3638 | static PyObject *_wrap_wxListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3639 | PyObject * _resultobj; |
cd096152 RD |
3640 | int _result; |
3641 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
3642 | long _arg1; |
3643 | long _arg2; | |
1d99702e | 3644 | PyObject * _argo0 = 0; |
cd096152 | 3645 | char *_kwnames[] = { "self","item","stateMask", NULL }; |
8ab979d7 RD |
3646 | |
3647 | self = self; | |
cd096152 | 3648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_GetItemState",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3649 | return NULL; |
1d99702e RD |
3650 | if (_argo0) { |
3651 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3652 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3653 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemState. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3654 | return NULL; |
3655 | } | |
3656 | } | |
cf694132 RD |
3657 | { |
3658 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3659 | _result = (int )wxListCtrl_GetItemState(_arg0,_arg1,_arg2); |
cf694132 RD |
3660 | |
3661 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3662 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3663 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3664 | return _resultobj; |
3665 | } | |
3666 | ||
cd096152 RD |
3667 | #define wxListCtrl_SetItemState(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemState(_swigarg0,_swigarg1,_swigarg2)) |
3668 | static PyObject *_wrap_wxListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3669 | PyObject * _resultobj; |
cd096152 RD |
3670 | bool _result; |
3671 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3672 | long _arg1; |
cd096152 RD |
3673 | long _arg2; |
3674 | long _arg3; | |
1d99702e | 3675 | PyObject * _argo0 = 0; |
cd096152 | 3676 | char *_kwnames[] = { "self","item","state","stateMask", NULL }; |
8ab979d7 RD |
3677 | |
3678 | self = self; | |
cd096152 | 3679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxListCtrl_SetItemState",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 3680 | return NULL; |
1d99702e RD |
3681 | if (_argo0) { |
3682 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3683 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3684 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemState. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3685 | return NULL; |
3686 | } | |
3687 | } | |
cf694132 RD |
3688 | { |
3689 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3690 | _result = (bool )wxListCtrl_SetItemState(_arg0,_arg1,_arg2,_arg3); |
cf694132 RD |
3691 | |
3692 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3693 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3694 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3695 | return _resultobj; |
3696 | } | |
3697 | ||
cd096152 RD |
3698 | #define wxListCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) |
3699 | static PyObject *_wrap_wxListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3700 | PyObject * _resultobj; |
3701 | bool _result; | |
cd096152 RD |
3702 | wxPyListCtrl * _arg0; |
3703 | long _arg1; | |
3704 | int _arg2; | |
3705 | int _arg3; | |
1d99702e | 3706 | PyObject * _argo0 = 0; |
cd096152 | 3707 | char *_kwnames[] = { "self","item","image","selImage", NULL }; |
8ab979d7 RD |
3708 | |
3709 | self = self; | |
cd096152 | 3710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olii:wxListCtrl_SetItemImage",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 3711 | return NULL; |
1d99702e RD |
3712 | if (_argo0) { |
3713 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3714 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemImage. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3716 | return NULL; |
3717 | } | |
3718 | } | |
cf694132 RD |
3719 | { |
3720 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3721 | _result = (bool )wxListCtrl_SetItemImage(_arg0,_arg1,_arg2,_arg3); |
cf694132 RD |
3722 | |
3723 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3724 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3725 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3726 | return _resultobj; |
3727 | } | |
3728 | ||
cd096152 RD |
3729 | #define wxListCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) |
3730 | static PyObject *_wrap_wxListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3731 | PyObject * _resultobj; |
cd096152 RD |
3732 | wxString * _result; |
3733 | wxPyListCtrl * _arg0; | |
3734 | long _arg1; | |
1d99702e | 3735 | PyObject * _argo0 = 0; |
cd096152 | 3736 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3737 | |
3738 | self = self; | |
cd096152 | 3739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemText",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3740 | return NULL; |
1d99702e RD |
3741 | if (_argo0) { |
3742 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3743 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3744 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemText. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3745 | return NULL; |
3746 | } | |
3747 | } | |
cf694132 RD |
3748 | { |
3749 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3750 | _result = new wxString (wxListCtrl_GetItemText(_arg0,_arg1)); |
cf694132 RD |
3751 | |
3752 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3753 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
3754 | }{ |
3755 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3756 | } | |
3757 | { | |
3758 | delete _result; | |
3759 | } | |
8ab979d7 RD |
3760 | return _resultobj; |
3761 | } | |
3762 | ||
cd096152 RD |
3763 | #define wxListCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) |
3764 | static PyObject *_wrap_wxListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3765 | PyObject * _resultobj; |
cd096152 RD |
3766 | wxPyListCtrl * _arg0; |
3767 | long _arg1; | |
3768 | wxString * _arg2; | |
1d99702e | 3769 | PyObject * _argo0 = 0; |
cd096152 RD |
3770 | PyObject * _obj2 = 0; |
3771 | char *_kwnames[] = { "self","item","str", NULL }; | |
8ab979d7 RD |
3772 | |
3773 | self = self; | |
cd096152 | 3774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemText",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 3775 | return NULL; |
1d99702e RD |
3776 | if (_argo0) { |
3777 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3778 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3779 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemText. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3780 | return NULL; |
3781 | } | |
3782 | } | |
cf694132 | 3783 | { |
cd096152 RD |
3784 | #if PYTHON_API_VERSION >= 1009 |
3785 | char* tmpPtr; int tmpSize; | |
3786 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
3787 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8ab979d7 | 3788 | return NULL; |
cd096152 RD |
3789 | } |
3790 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3791 | return NULL; | |
3792 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3793 | #else | |
3794 | if (!PyString_Check(_obj2)) { | |
3795 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8ab979d7 | 3796 | return NULL; |
8ab979d7 | 3797 | } |
cd096152 RD |
3798 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
3799 | #endif | |
3800 | } | |
cf694132 RD |
3801 | { |
3802 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3803 | wxListCtrl_SetItemText(_arg0,_arg1,*_arg2); |
cf694132 RD |
3804 | |
3805 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3806 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
3807 | } Py_INCREF(Py_None); |
3808 | _resultobj = Py_None; | |
3809 | { | |
3810 | if (_obj2) | |
3811 | delete _arg2; | |
3812 | } | |
8ab979d7 RD |
3813 | return _resultobj; |
3814 | } | |
3815 | ||
3816 | #define wxListCtrl_GetItemData(_swigobj,_swigarg0) (_swigobj->GetItemData(_swigarg0)) | |
efc5f224 | 3817 | static PyObject *_wrap_wxListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3818 | PyObject * _resultobj; |
3819 | long _result; | |
cd096152 | 3820 | wxPyListCtrl * _arg0; |
8ab979d7 | 3821 | long _arg1; |
1d99702e | 3822 | PyObject * _argo0 = 0; |
efc5f224 | 3823 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3824 | |
3825 | self = self; | |
efc5f224 | 3826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemData",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3827 | return NULL; |
1d99702e RD |
3828 | if (_argo0) { |
3829 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3830 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3831 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3832 | return NULL; |
3833 | } | |
3834 | } | |
cf694132 RD |
3835 | { |
3836 | wxPy_BEGIN_ALLOW_THREADS; | |
3837 | _result = (long )wxListCtrl_GetItemData(_arg0,_arg1); | |
3838 | ||
3839 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3840 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3841 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
3842 | return _resultobj; |
3843 | } | |
3844 | ||
cd096152 RD |
3845 | #define wxListCtrl_SetItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemData(_swigarg0,_swigarg1)) |
3846 | static PyObject *_wrap_wxListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3847 | PyObject * _resultobj; |
cd096152 RD |
3848 | bool _result; |
3849 | wxPyListCtrl * _arg0; | |
0699c864 | 3850 | long _arg1; |
cd096152 | 3851 | long _arg2; |
1d99702e | 3852 | PyObject * _argo0 = 0; |
cd096152 | 3853 | char *_kwnames[] = { "self","item","data", NULL }; |
8ab979d7 RD |
3854 | |
3855 | self = self; | |
cd096152 | 3856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_SetItemData",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3857 | return NULL; |
1d99702e RD |
3858 | if (_argo0) { |
3859 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3860 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3861 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3862 | return NULL; |
3863 | } | |
3864 | } | |
cf694132 RD |
3865 | { |
3866 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3867 | _result = (bool )wxListCtrl_SetItemData(_arg0,_arg1,_arg2); |
cf694132 RD |
3868 | |
3869 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3870 | if (PyErr_Occurred()) return NULL; |
cd096152 | 3871 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3872 | return _resultobj; |
3873 | } | |
3874 | ||
cd096152 | 3875 | static wxPoint * wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item) { |
8ab979d7 RD |
3876 | wxPoint* pos = new wxPoint; |
3877 | self->GetItemPosition(item, *pos); | |
3878 | return pos; | |
3879 | } | |
efc5f224 | 3880 | static PyObject *_wrap_wxListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3881 | PyObject * _resultobj; |
3882 | wxPoint * _result; | |
cd096152 | 3883 | wxPyListCtrl * _arg0; |
8ab979d7 | 3884 | long _arg1; |
1d99702e | 3885 | PyObject * _argo0 = 0; |
efc5f224 | 3886 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3887 | char _ptemp[128]; |
3888 | ||
3889 | self = self; | |
efc5f224 | 3890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemPosition",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3891 | return NULL; |
1d99702e RD |
3892 | if (_argo0) { |
3893 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3894 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3895 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemPosition. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3896 | return NULL; |
3897 | } | |
3898 | } | |
cf694132 RD |
3899 | { |
3900 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3901 | _result = (wxPoint *)wxPyListCtrl_GetItemPosition(_arg0,_arg1); |
cf694132 RD |
3902 | |
3903 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3904 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3905 | } if (_result) { |
3906 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
3907 | _resultobj = Py_BuildValue("s",_ptemp); | |
3908 | } else { | |
3909 | Py_INCREF(Py_None); | |
3910 | _resultobj = Py_None; | |
3911 | } | |
8ab979d7 RD |
3912 | return _resultobj; |
3913 | } | |
3914 | ||
cd096152 | 3915 | static wxRect * wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code) { |
8ab979d7 RD |
3916 | wxRect* rect= new wxRect; |
3917 | self->GetItemRect(item, *rect, code); | |
3918 | return rect; | |
3919 | } | |
efc5f224 | 3920 | static PyObject *_wrap_wxListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3921 | PyObject * _resultobj; |
3922 | wxRect * _result; | |
cd096152 | 3923 | wxPyListCtrl * _arg0; |
8ab979d7 | 3924 | long _arg1; |
1d99702e RD |
3925 | int _arg2 = (int ) (wxLIST_RECT_BOUNDS); |
3926 | PyObject * _argo0 = 0; | |
efc5f224 | 3927 | char *_kwnames[] = { "self","item","code", NULL }; |
8ab979d7 RD |
3928 | char _ptemp[128]; |
3929 | ||
3930 | self = self; | |
efc5f224 | 3931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItemRect",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3932 | return NULL; |
1d99702e RD |
3933 | if (_argo0) { |
3934 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3935 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3936 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemRect. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3937 | return NULL; |
3938 | } | |
3939 | } | |
cf694132 RD |
3940 | { |
3941 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3942 | _result = (wxRect *)wxPyListCtrl_GetItemRect(_arg0,_arg1,_arg2); |
cf694132 RD |
3943 | |
3944 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3945 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3946 | } if (_result) { |
3947 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRect_p"); | |
3948 | _resultobj = Py_BuildValue("s",_ptemp); | |
3949 | } else { | |
3950 | Py_INCREF(Py_None); | |
3951 | _resultobj = Py_None; | |
3952 | } | |
8ab979d7 RD |
3953 | return _resultobj; |
3954 | } | |
3955 | ||
cd096152 RD |
3956 | #define wxListCtrl_SetItemPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemPosition(_swigarg0,_swigarg1)) |
3957 | static PyObject *_wrap_wxListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3958 | PyObject * _resultobj; |
cd096152 RD |
3959 | bool _result; |
3960 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3961 | long _arg1; |
cd096152 | 3962 | wxPoint * _arg2; |
1d99702e | 3963 | PyObject * _argo0 = 0; |
cd096152 RD |
3964 | wxPoint temp; |
3965 | PyObject * _obj2 = 0; | |
3966 | char *_kwnames[] = { "self","item","pos", NULL }; | |
8ab979d7 RD |
3967 | |
3968 | self = self; | |
cd096152 | 3969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemPosition",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 3970 | return NULL; |
1d99702e RD |
3971 | if (_argo0) { |
3972 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
3973 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3974 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemPosition. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3975 | return NULL; |
3976 | } | |
3977 | } | |
cd096152 RD |
3978 | { |
3979 | _arg2 = &temp; | |
3980 | if (! wxPoint_helper(_obj2, &_arg2)) | |
3981 | return NULL; | |
3982 | } | |
cf694132 RD |
3983 | { |
3984 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 3985 | _result = (bool )wxListCtrl_SetItemPosition(_arg0,_arg1,*_arg2); |
cf694132 RD |
3986 | |
3987 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 3988 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3989 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3990 | return _resultobj; |
3991 | } | |
3992 | ||
3993 | #define wxListCtrl_GetItemCount(_swigobj) (_swigobj->GetItemCount()) | |
efc5f224 | 3994 | static PyObject *_wrap_wxListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3995 | PyObject * _resultobj; |
3996 | int _result; | |
cd096152 | 3997 | wxPyListCtrl * _arg0; |
1d99702e | 3998 | PyObject * _argo0 = 0; |
efc5f224 | 3999 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4000 | |
4001 | self = self; | |
efc5f224 | 4002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetItemCount",_kwnames,&_argo0)) |
8ab979d7 | 4003 | return NULL; |
1d99702e RD |
4004 | if (_argo0) { |
4005 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4006 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4007 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4008 | return NULL; |
4009 | } | |
4010 | } | |
cf694132 RD |
4011 | { |
4012 | wxPy_BEGIN_ALLOW_THREADS; | |
4013 | _result = (int )wxListCtrl_GetItemCount(_arg0); | |
4014 | ||
4015 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4016 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4017 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4018 | return _resultobj; |
4019 | } | |
4020 | ||
cd096152 RD |
4021 | #define wxListCtrl_GetColumnCount(_swigobj) (_swigobj->GetColumnCount()) |
4022 | static PyObject *_wrap_wxListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4023 | PyObject * _resultobj; | |
4024 | int _result; | |
4025 | wxPyListCtrl * _arg0; | |
4026 | PyObject * _argo0 = 0; | |
4027 | char *_kwnames[] = { "self", NULL }; | |
4028 | ||
4029 | self = self; | |
4030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetColumnCount",_kwnames,&_argo0)) | |
4031 | return NULL; | |
4032 | if (_argo0) { | |
4033 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4034 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4035 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnCount. Expected _wxPyListCtrl_p."); | |
4036 | return NULL; | |
4037 | } | |
4038 | } | |
4039 | { | |
4040 | wxPy_BEGIN_ALLOW_THREADS; | |
4041 | _result = (int )wxListCtrl_GetColumnCount(_arg0); | |
4042 | ||
4043 | wxPy_END_ALLOW_THREADS; | |
4044 | if (PyErr_Occurred()) return NULL; | |
4045 | } _resultobj = Py_BuildValue("i",_result); | |
4046 | return _resultobj; | |
4047 | } | |
4048 | ||
8ab979d7 | 4049 | #define wxListCtrl_GetItemSpacing(_swigobj,_swigarg0) (_swigobj->GetItemSpacing(_swigarg0)) |
efc5f224 | 4050 | static PyObject *_wrap_wxListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4051 | PyObject * _resultobj; |
4052 | int _result; | |
cd096152 | 4053 | wxPyListCtrl * _arg0; |
8ab979d7 | 4054 | bool _arg1; |
1d99702e | 4055 | PyObject * _argo0 = 0; |
8ab979d7 | 4056 | int tempbool1; |
efc5f224 | 4057 | char *_kwnames[] = { "self","isSmall", NULL }; |
8ab979d7 RD |
4058 | |
4059 | self = self; | |
efc5f224 | 4060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetItemSpacing",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 4061 | return NULL; |
1d99702e RD |
4062 | if (_argo0) { |
4063 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4064 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4065 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemSpacing. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4066 | return NULL; |
4067 | } | |
4068 | } | |
4069 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
4070 | { |
4071 | wxPy_BEGIN_ALLOW_THREADS; | |
4072 | _result = (int )wxListCtrl_GetItemSpacing(_arg0,_arg1); | |
4073 | ||
4074 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4075 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4076 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4077 | return _resultobj; |
4078 | } | |
4079 | ||
cd096152 RD |
4080 | #define wxListCtrl_GetSelectedItemCount(_swigobj) (_swigobj->GetSelectedItemCount()) |
4081 | static PyObject *_wrap_wxListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4082 | PyObject * _resultobj; |
cd096152 RD |
4083 | int _result; |
4084 | wxPyListCtrl * _arg0; | |
1d99702e | 4085 | PyObject * _argo0 = 0; |
cd096152 | 4086 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4087 | |
4088 | self = self; | |
cd096152 | 4089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetSelectedItemCount",_kwnames,&_argo0)) |
8ab979d7 | 4090 | return NULL; |
1d99702e RD |
4091 | if (_argo0) { |
4092 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4093 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4094 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetSelectedItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4095 | return NULL; |
4096 | } | |
4097 | } | |
8ab979d7 | 4098 | { |
cf694132 | 4099 | wxPy_BEGIN_ALLOW_THREADS; |
cd096152 | 4100 | _result = (int )wxListCtrl_GetSelectedItemCount(_arg0); |
cf694132 RD |
4101 | |
4102 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4103 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4104 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4105 | return _resultobj; |
4106 | } | |
4107 | ||
cd096152 RD |
4108 | #define wxListCtrl_GetTextColour(_swigobj) (_swigobj->GetTextColour()) |
4109 | static PyObject *_wrap_wxListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4110 | PyObject * _resultobj; |
cd096152 RD |
4111 | wxColour * _result; |
4112 | wxPyListCtrl * _arg0; | |
1d99702e | 4113 | PyObject * _argo0 = 0; |
cd096152 RD |
4114 | char *_kwnames[] = { "self", NULL }; |
4115 | char _ptemp[128]; | |
8ab979d7 RD |
4116 | |
4117 | self = self; | |
cd096152 | 4118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTextColour",_kwnames,&_argo0)) |
8ab979d7 | 4119 | return NULL; |
1d99702e RD |
4120 | if (_argo0) { |
4121 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4122 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4123 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTextColour. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4124 | return NULL; |
4125 | } | |
4126 | } | |
cf694132 RD |
4127 | { |
4128 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4129 | _result = new wxColour (wxListCtrl_GetTextColour(_arg0)); |
cf694132 RD |
4130 | |
4131 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4132 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4133 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
4134 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
4135 | return _resultobj; |
4136 | } | |
4137 | ||
cd096152 RD |
4138 | #define wxListCtrl_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) |
4139 | static PyObject *_wrap_wxListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4140 | PyObject * _resultobj; |
cd096152 RD |
4141 | wxPyListCtrl * _arg0; |
4142 | wxColour * _arg1; | |
1d99702e | 4143 | PyObject * _argo0 = 0; |
cd096152 RD |
4144 | wxColour temp; |
4145 | PyObject * _obj1 = 0; | |
4146 | char *_kwnames[] = { "self","col", NULL }; | |
8ab979d7 RD |
4147 | |
4148 | self = self; | |
cd096152 | 4149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetTextColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4150 | return NULL; |
1d99702e RD |
4151 | if (_argo0) { |
4152 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4153 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4154 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetTextColour. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4155 | return NULL; |
4156 | } | |
4157 | } | |
cd096152 RD |
4158 | { |
4159 | _arg1 = &temp; | |
4160 | if (! wxColour_helper(_obj1, &_arg1)) | |
4161 | return NULL; | |
4162 | } | |
cf694132 RD |
4163 | { |
4164 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4165 | wxListCtrl_SetTextColour(_arg0,*_arg1); |
cf694132 RD |
4166 | |
4167 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4168 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4169 | } Py_INCREF(Py_None); |
4170 | _resultobj = Py_None; | |
8ab979d7 RD |
4171 | return _resultobj; |
4172 | } | |
4173 | ||
8ab979d7 | 4174 | #define wxListCtrl_GetTopItem(_swigobj) (_swigobj->GetTopItem()) |
efc5f224 | 4175 | static PyObject *_wrap_wxListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4176 | PyObject * _resultobj; |
4177 | long _result; | |
cd096152 | 4178 | wxPyListCtrl * _arg0; |
1d99702e | 4179 | PyObject * _argo0 = 0; |
efc5f224 | 4180 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4181 | |
4182 | self = self; | |
efc5f224 | 4183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTopItem",_kwnames,&_argo0)) |
8ab979d7 | 4184 | return NULL; |
1d99702e RD |
4185 | if (_argo0) { |
4186 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4187 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4188 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTopItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4189 | return NULL; |
4190 | } | |
4191 | } | |
cf694132 RD |
4192 | { |
4193 | wxPy_BEGIN_ALLOW_THREADS; | |
4194 | _result = (long )wxListCtrl_GetTopItem(_arg0); | |
4195 | ||
4196 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4197 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4198 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4199 | return _resultobj; |
4200 | } | |
4201 | ||
cd096152 RD |
4202 | #define wxListCtrl_SetSingleStyle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSingleStyle(_swigarg0,_swigarg1)) |
4203 | static PyObject *_wrap_wxListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4204 | PyObject * _resultobj; | |
4205 | wxPyListCtrl * _arg0; | |
4206 | long _arg1; | |
4207 | bool _arg2 = (bool ) TRUE; | |
1d99702e | 4208 | PyObject * _argo0 = 0; |
cd096152 RD |
4209 | int tempbool2 = (int) TRUE; |
4210 | char *_kwnames[] = { "self","style","add", NULL }; | |
8ab979d7 RD |
4211 | |
4212 | self = self; | |
cd096152 RD |
4213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_SetSingleStyle",_kwnames,&_argo0,&_arg1,&tempbool2)) |
4214 | return NULL; | |
4215 | if (_argo0) { | |
4216 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4217 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4218 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetSingleStyle. Expected _wxPyListCtrl_p."); | |
4219 | return NULL; | |
4220 | } | |
4221 | } | |
4222 | _arg2 = (bool ) tempbool2; | |
8ab979d7 | 4223 | { |
cd096152 RD |
4224 | wxPy_BEGIN_ALLOW_THREADS; |
4225 | wxListCtrl_SetSingleStyle(_arg0,_arg1,_arg2); | |
4226 | ||
4227 | wxPy_END_ALLOW_THREADS; | |
4228 | if (PyErr_Occurred()) return NULL; | |
4229 | } Py_INCREF(Py_None); | |
4230 | _resultobj = Py_None; | |
4231 | return _resultobj; | |
8ab979d7 | 4232 | } |
cd096152 RD |
4233 | |
4234 | #define wxListCtrl_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) | |
4235 | static PyObject *_wrap_wxListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4236 | PyObject * _resultobj; | |
4237 | wxPyListCtrl * _arg0; | |
4238 | long _arg1; | |
4239 | PyObject * _argo0 = 0; | |
4240 | char *_kwnames[] = { "self","style", NULL }; | |
4241 | ||
4242 | self = self; | |
4243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) | |
8ab979d7 | 4244 | return NULL; |
1d99702e RD |
4245 | if (_argo0) { |
4246 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4247 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetWindowStyleFlag. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4249 | return NULL; |
4250 | } | |
4251 | } | |
2f90df85 | 4252 | { |
cd096152 RD |
4253 | wxPy_BEGIN_ALLOW_THREADS; |
4254 | wxListCtrl_SetWindowStyleFlag(_arg0,_arg1); | |
4255 | ||
4256 | wxPy_END_ALLOW_THREADS; | |
4257 | if (PyErr_Occurred()) return NULL; | |
4258 | } Py_INCREF(Py_None); | |
4259 | _resultobj = Py_None; | |
4260 | return _resultobj; | |
2f90df85 | 4261 | } |
cd096152 RD |
4262 | |
4263 | #define wxListCtrl_GetNextItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetNextItem(_swigarg0,_swigarg1,_swigarg2)) | |
4264 | static PyObject *_wrap_wxListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4265 | PyObject * _resultobj; | |
4266 | long _result; | |
4267 | wxPyListCtrl * _arg0; | |
4268 | long _arg1; | |
4269 | int _arg2 = (int ) (wxLIST_NEXT_ALL); | |
4270 | int _arg3 = (int ) (wxLIST_STATE_DONTCARE); | |
4271 | PyObject * _argo0 = 0; | |
4272 | char *_kwnames[] = { "self","item","geometry","state", NULL }; | |
4273 | ||
4274 | self = self; | |
4275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:wxListCtrl_GetNextItem",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
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_GetNextItem. Expected _wxPyListCtrl_p."); | |
4281 | return NULL; | |
4282 | } | |
4283 | } | |
cf694132 RD |
4284 | { |
4285 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4286 | _result = (long )wxListCtrl_GetNextItem(_arg0,_arg1,_arg2,_arg3); |
cf694132 RD |
4287 | |
4288 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4289 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4290 | } _resultobj = Py_BuildValue("l",_result); |
cd096152 | 4291 | return _resultobj; |
8ab979d7 | 4292 | } |
cd096152 RD |
4293 | |
4294 | #define wxListCtrl_GetImageList(_swigobj,_swigarg0) (_swigobj->GetImageList(_swigarg0)) | |
4295 | static PyObject *_wrap_wxListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4296 | PyObject * _resultobj; | |
4297 | wxImageList * _result; | |
4298 | wxPyListCtrl * _arg0; | |
4299 | int _arg1; | |
4300 | PyObject * _argo0 = 0; | |
4301 | char *_kwnames[] = { "self","which", NULL }; | |
4302 | ||
4303 | self = self; | |
4304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetImageList",_kwnames,&_argo0,&_arg1)) | |
4305 | return NULL; | |
4306 | if (_argo0) { | |
4307 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4308 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4309 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetImageList. Expected _wxPyListCtrl_p."); | |
4310 | return NULL; | |
4311 | } | |
4312 | } | |
4313 | { | |
4314 | wxPy_BEGIN_ALLOW_THREADS; | |
4315 | _result = (wxImageList *)wxListCtrl_GetImageList(_arg0,_arg1); | |
4316 | ||
4317 | wxPy_END_ALLOW_THREADS; | |
4318 | if (PyErr_Occurred()) return NULL; | |
4319 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
8ab979d7 RD |
4320 | return _resultobj; |
4321 | } | |
4322 | ||
cd096152 RD |
4323 | #define wxListCtrl_SetImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetImageList(_swigarg0,_swigarg1)) |
4324 | static PyObject *_wrap_wxListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4325 | PyObject * _resultobj; |
cd096152 RD |
4326 | wxPyListCtrl * _arg0; |
4327 | wxImageList * _arg1; | |
4328 | int _arg2; | |
1d99702e | 4329 | PyObject * _argo0 = 0; |
cd096152 RD |
4330 | PyObject * _argo1 = 0; |
4331 | char *_kwnames[] = { "self","imageList","which", NULL }; | |
8ab979d7 RD |
4332 | |
4333 | self = self; | |
cd096152 | 4334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_SetImageList",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 4335 | return NULL; |
1d99702e RD |
4336 | if (_argo0) { |
4337 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4338 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4339 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetImageList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4340 | return NULL; |
4341 | } | |
4342 | } | |
cd096152 RD |
4343 | if (_argo1) { |
4344 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4345 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
4346 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetImageList. Expected _wxImageList_p."); | |
8ab979d7 RD |
4347 | return NULL; |
4348 | } | |
4349 | } | |
cf694132 RD |
4350 | { |
4351 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4352 | wxListCtrl_SetImageList(_arg0,_arg1,_arg2); |
cf694132 RD |
4353 | |
4354 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4355 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4356 | } Py_INCREF(Py_None); |
4357 | _resultobj = Py_None; | |
8ab979d7 RD |
4358 | return _resultobj; |
4359 | } | |
4360 | ||
cd096152 RD |
4361 | #define wxListCtrl_AssignImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->AssignImageList(_swigarg0,_swigarg1)) |
4362 | static PyObject *_wrap_wxListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4363 | PyObject * _resultobj; |
cd096152 RD |
4364 | wxPyListCtrl * _arg0; |
4365 | wxImageList * _arg1; | |
4366 | int _arg2; | |
1d99702e | 4367 | PyObject * _argo0 = 0; |
cd096152 RD |
4368 | PyObject * _argo1 = 0; |
4369 | char *_kwnames[] = { "self","imageList","which", NULL }; | |
8ab979d7 RD |
4370 | |
4371 | self = self; | |
cd096152 | 4372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_AssignImageList",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 4373 | return NULL; |
1d99702e RD |
4374 | if (_argo0) { |
4375 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4376 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4377 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_AssignImageList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4378 | return NULL; |
4379 | } | |
4380 | } | |
cd096152 RD |
4381 | if (_argo1) { |
4382 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4383 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
4384 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_AssignImageList. Expected _wxImageList_p."); | |
2cd2fac8 | 4385 | return NULL; |
cd096152 | 4386 | } |
2cd2fac8 | 4387 | } |
cd096152 RD |
4388 | { |
4389 | wxPy_BEGIN_ALLOW_THREADS; | |
4390 | wxListCtrl_AssignImageList(_arg0,_arg1,_arg2); | |
4391 | ||
4392 | wxPy_END_ALLOW_THREADS; | |
4393 | if (PyErr_Occurred()) return NULL; | |
4394 | } Py_INCREF(Py_None); | |
4395 | _resultobj = Py_None; | |
4396 | return _resultobj; | |
4397 | } | |
4398 | ||
4399 | #define wxListCtrl_IsVirtual(_swigobj) (_swigobj->IsVirtual()) | |
4400 | static PyObject *_wrap_wxListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4401 | PyObject * _resultobj; | |
4402 | bool _result; | |
4403 | wxPyListCtrl * _arg0; | |
4404 | PyObject * _argo0 = 0; | |
4405 | char *_kwnames[] = { "self", NULL }; | |
4406 | ||
4407 | self = self; | |
4408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_IsVirtual",_kwnames,&_argo0)) | |
2cd2fac8 | 4409 | return NULL; |
cd096152 RD |
4410 | if (_argo0) { |
4411 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4412 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4413 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_IsVirtual. Expected _wxPyListCtrl_p."); | |
8ab979d7 | 4414 | return NULL; |
cd096152 | 4415 | } |
8ab979d7 | 4416 | } |
cf694132 RD |
4417 | { |
4418 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4419 | _result = (bool )wxListCtrl_IsVirtual(_arg0); |
cf694132 RD |
4420 | |
4421 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4422 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4423 | } _resultobj = Py_BuildValue("i",_result); |
4424 | return _resultobj; | |
8ab979d7 | 4425 | } |
cd096152 RD |
4426 | |
4427 | #define wxListCtrl_RefreshItem(_swigobj,_swigarg0) (_swigobj->RefreshItem(_swigarg0)) | |
4428 | static PyObject *_wrap_wxListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4429 | PyObject * _resultobj; | |
4430 | wxPyListCtrl * _arg0; | |
4431 | long _arg1; | |
4432 | PyObject * _argo0 = 0; | |
4433 | char *_kwnames[] = { "self","item", NULL }; | |
4434 | ||
4435 | self = self; | |
4436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_RefreshItem",_kwnames,&_argo0,&_arg1)) | |
4437 | return NULL; | |
4438 | if (_argo0) { | |
4439 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4440 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4441 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItem. Expected _wxPyListCtrl_p."); | |
4442 | return NULL; | |
4443 | } | |
4444 | } | |
4445 | { | |
4446 | wxPy_BEGIN_ALLOW_THREADS; | |
4447 | wxListCtrl_RefreshItem(_arg0,_arg1); | |
4448 | ||
4449 | wxPy_END_ALLOW_THREADS; | |
4450 | if (PyErr_Occurred()) return NULL; | |
4451 | } Py_INCREF(Py_None); | |
4452 | _resultobj = Py_None; | |
8ab979d7 RD |
4453 | return _resultobj; |
4454 | } | |
4455 | ||
cd096152 RD |
4456 | #define wxListCtrl_RefreshItems(_swigobj,_swigarg0,_swigarg1) (_swigobj->RefreshItems(_swigarg0,_swigarg1)) |
4457 | static PyObject *_wrap_wxListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4458 | PyObject * _resultobj; |
cd096152 RD |
4459 | wxPyListCtrl * _arg0; |
4460 | long _arg1; | |
4461 | long _arg2; | |
1d99702e | 4462 | PyObject * _argo0 = 0; |
cd096152 | 4463 | char *_kwnames[] = { "self","itemFrom","itemTo", NULL }; |
8ab979d7 RD |
4464 | |
4465 | self = self; | |
cd096152 | 4466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_RefreshItems",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4467 | return NULL; |
1d99702e RD |
4468 | if (_argo0) { |
4469 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4470 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4471 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItems. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4472 | return NULL; |
4473 | } | |
4474 | } | |
cd096152 RD |
4475 | { |
4476 | wxPy_BEGIN_ALLOW_THREADS; | |
4477 | wxListCtrl_RefreshItems(_arg0,_arg1,_arg2); | |
4478 | ||
4479 | wxPy_END_ALLOW_THREADS; | |
4480 | if (PyErr_Occurred()) return NULL; | |
4481 | } Py_INCREF(Py_None); | |
4482 | _resultobj = Py_None; | |
4483 | return _resultobj; | |
4484 | } | |
4485 | ||
4486 | #define wxListCtrl_Arrange(_swigobj,_swigarg0) (_swigobj->Arrange(_swigarg0)) | |
4487 | static PyObject *_wrap_wxListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4488 | PyObject * _resultobj; | |
4489 | bool _result; | |
4490 | wxPyListCtrl * _arg0; | |
4491 | int _arg1 = (int ) (wxLIST_ALIGN_DEFAULT); | |
4492 | PyObject * _argo0 = 0; | |
4493 | char *_kwnames[] = { "self","flag", NULL }; | |
4494 | ||
4495 | self = self; | |
4496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxListCtrl_Arrange",_kwnames,&_argo0,&_arg1)) | |
4497 | return NULL; | |
4498 | if (_argo0) { | |
4499 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4500 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4501 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Arrange. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4502 | return NULL; |
4503 | } | |
4504 | } | |
cf694132 RD |
4505 | { |
4506 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4507 | _result = (bool )wxListCtrl_Arrange(_arg0,_arg1); |
cf694132 RD |
4508 | |
4509 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4510 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4511 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4512 | return _resultobj; |
4513 | } | |
4514 | ||
cd096152 RD |
4515 | #define wxListCtrl_DeleteItem(_swigobj,_swigarg0) (_swigobj->DeleteItem(_swigarg0)) |
4516 | static PyObject *_wrap_wxListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4517 | PyObject * _resultobj; |
cd096152 RD |
4518 | bool _result; |
4519 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4520 | long _arg1; |
1d99702e | 4521 | PyObject * _argo0 = 0; |
cd096152 | 4522 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
4523 | |
4524 | self = self; | |
cd096152 | 4525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_DeleteItem",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4526 | return NULL; |
1d99702e RD |
4527 | if (_argo0) { |
4528 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4529 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4530 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4531 | return NULL; |
4532 | } | |
4533 | } | |
4534 | { | |
cd096152 RD |
4535 | wxPy_BEGIN_ALLOW_THREADS; |
4536 | _result = (bool )wxListCtrl_DeleteItem(_arg0,_arg1); | |
4537 | ||
4538 | wxPy_END_ALLOW_THREADS; | |
4539 | if (PyErr_Occurred()) return NULL; | |
4540 | } _resultobj = Py_BuildValue("i",_result); | |
4541 | return _resultobj; | |
4542 | } | |
4543 | ||
4544 | #define wxListCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) | |
4545 | static PyObject *_wrap_wxListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4546 | PyObject * _resultobj; | |
4547 | bool _result; | |
4548 | wxPyListCtrl * _arg0; | |
4549 | PyObject * _argo0 = 0; | |
4550 | char *_kwnames[] = { "self", NULL }; | |
4551 | ||
4552 | self = self; | |
4553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllItems",_kwnames,&_argo0)) | |
4554 | return NULL; | |
4555 | if (_argo0) { | |
4556 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4557 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4558 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllItems. Expected _wxPyListCtrl_p."); | |
2cd2fac8 | 4559 | return NULL; |
cd096152 | 4560 | } |
2cd2fac8 | 4561 | } |
cd096152 RD |
4562 | { |
4563 | wxPy_BEGIN_ALLOW_THREADS; | |
4564 | _result = (bool )wxListCtrl_DeleteAllItems(_arg0); | |
4565 | ||
4566 | wxPy_END_ALLOW_THREADS; | |
4567 | if (PyErr_Occurred()) return NULL; | |
4568 | } _resultobj = Py_BuildValue("i",_result); | |
4569 | return _resultobj; | |
4570 | } | |
4571 | ||
4572 | #define wxListCtrl_DeleteColumn(_swigobj,_swigarg0) (_swigobj->DeleteColumn(_swigarg0)) | |
4573 | static PyObject *_wrap_wxListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4574 | PyObject * _resultobj; | |
4575 | bool _result; | |
4576 | wxPyListCtrl * _arg0; | |
4577 | int _arg1; | |
4578 | PyObject * _argo0 = 0; | |
4579 | char *_kwnames[] = { "self","col", NULL }; | |
4580 | ||
4581 | self = self; | |
4582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_DeleteColumn",_kwnames,&_argo0,&_arg1)) | |
2cd2fac8 | 4583 | return NULL; |
cd096152 RD |
4584 | if (_argo0) { |
4585 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4586 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4587 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteColumn. Expected _wxPyListCtrl_p."); | |
4588 | return NULL; | |
4589 | } | |
4590 | } | |
4591 | { | |
4592 | wxPy_BEGIN_ALLOW_THREADS; | |
4593 | _result = (bool )wxListCtrl_DeleteColumn(_arg0,_arg1); | |
4594 | ||
4595 | wxPy_END_ALLOW_THREADS; | |
4596 | if (PyErr_Occurred()) return NULL; | |
4597 | } _resultobj = Py_BuildValue("i",_result); | |
4598 | return _resultobj; | |
4599 | } | |
4600 | ||
4601 | #define wxListCtrl_DeleteAllColumns(_swigobj) (_swigobj->DeleteAllColumns()) | |
4602 | static PyObject *_wrap_wxListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4603 | PyObject * _resultobj; | |
4604 | bool _result; | |
4605 | wxPyListCtrl * _arg0; | |
4606 | PyObject * _argo0 = 0; | |
4607 | char *_kwnames[] = { "self", NULL }; | |
4608 | ||
4609 | self = self; | |
4610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllColumns",_kwnames,&_argo0)) | |
4611 | return NULL; | |
4612 | if (_argo0) { | |
4613 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4614 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4615 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllColumns. Expected _wxPyListCtrl_p."); | |
4616 | return NULL; | |
4617 | } | |
4618 | } | |
4619 | { | |
4620 | wxPy_BEGIN_ALLOW_THREADS; | |
4621 | _result = (bool )wxListCtrl_DeleteAllColumns(_arg0); | |
4622 | ||
4623 | wxPy_END_ALLOW_THREADS; | |
4624 | if (PyErr_Occurred()) return NULL; | |
4625 | } _resultobj = Py_BuildValue("i",_result); | |
4626 | return _resultobj; | |
4627 | } | |
4628 | ||
4629 | #define wxListCtrl_ClearAll(_swigobj) (_swigobj->ClearAll()) | |
4630 | static PyObject *_wrap_wxListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4631 | PyObject * _resultobj; | |
4632 | wxPyListCtrl * _arg0; | |
4633 | PyObject * _argo0 = 0; | |
4634 | char *_kwnames[] = { "self", NULL }; | |
4635 | ||
4636 | self = self; | |
4637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_ClearAll",_kwnames,&_argo0)) | |
8ab979d7 | 4638 | return NULL; |
cd096152 RD |
4639 | if (_argo0) { |
4640 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4641 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4642 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ClearAll. Expected _wxPyListCtrl_p."); | |
4643 | return NULL; | |
4644 | } | |
8ab979d7 | 4645 | } |
cf694132 RD |
4646 | { |
4647 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4648 | wxListCtrl_ClearAll(_arg0); |
cf694132 RD |
4649 | |
4650 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4651 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4652 | } Py_INCREF(Py_None); |
4653 | _resultobj = Py_None; | |
8ab979d7 RD |
4654 | return _resultobj; |
4655 | } | |
4656 | ||
cd096152 RD |
4657 | #define wxListCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) |
4658 | static PyObject *_wrap_wxListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4659 | PyObject * _resultobj; |
cd096152 RD |
4660 | bool _result; |
4661 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4662 | long _arg1; |
1d99702e | 4663 | PyObject * _argo0 = 0; |
cd096152 | 4664 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
4665 | |
4666 | self = self; | |
cd096152 | 4667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EnsureVisible",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4668 | return NULL; |
1d99702e RD |
4669 | if (_argo0) { |
4670 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4671 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EnsureVisible. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4673 | return NULL; |
4674 | } | |
4675 | } | |
cf694132 RD |
4676 | { |
4677 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4678 | _result = (bool )wxListCtrl_EnsureVisible(_arg0,_arg1); |
cf694132 RD |
4679 | |
4680 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4681 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4682 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4683 | return _resultobj; |
4684 | } | |
4685 | ||
cd096152 RD |
4686 | #define wxListCtrl_FindItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) |
4687 | static PyObject *_wrap_wxListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4688 | PyObject * _resultobj; |
4689 | long _result; | |
cd096152 | 4690 | wxPyListCtrl * _arg0; |
8ab979d7 RD |
4691 | long _arg1; |
4692 | wxString * _arg2; | |
cd096152 | 4693 | bool _arg3 = (bool ) FALSE; |
1d99702e | 4694 | PyObject * _argo0 = 0; |
8ab979d7 | 4695 | PyObject * _obj2 = 0; |
cd096152 RD |
4696 | int tempbool3 = (int) FALSE; |
4697 | char *_kwnames[] = { "self","start","str","partial", NULL }; | |
8ab979d7 RD |
4698 | |
4699 | self = self; | |
cd096152 | 4700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|i:wxListCtrl_FindItem",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3)) |
8ab979d7 | 4701 | return NULL; |
1d99702e RD |
4702 | if (_argo0) { |
4703 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4704 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4705 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4706 | return NULL; |
4707 | } | |
4708 | } | |
4709 | { | |
2cd2fac8 RD |
4710 | #if PYTHON_API_VERSION >= 1009 |
4711 | char* tmpPtr; int tmpSize; | |
4712 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 4713 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
4714 | return NULL; |
4715 | } | |
4716 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4717 | return NULL; | |
4718 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4719 | #else | |
8ab979d7 RD |
4720 | if (!PyString_Check(_obj2)) { |
4721 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4722 | return NULL; | |
4723 | } | |
2cd2fac8 RD |
4724 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
4725 | #endif | |
8ab979d7 | 4726 | } |
cd096152 | 4727 | _arg3 = (bool ) tempbool3; |
cf694132 RD |
4728 | { |
4729 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4730 | _result = (long )wxListCtrl_FindItem(_arg0,_arg1,*_arg2,_arg3); |
cf694132 RD |
4731 | |
4732 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4733 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4734 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4735 | { |
4736 | if (_obj2) | |
4737 | delete _arg2; | |
4738 | } | |
4739 | return _resultobj; | |
4740 | } | |
4741 | ||
cd096152 RD |
4742 | #define wxListCtrl_FindItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindItem(_swigarg0,_swigarg1)) |
4743 | static PyObject *_wrap_wxListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4744 | PyObject * _resultobj; |
cd096152 RD |
4745 | long _result; |
4746 | wxPyListCtrl * _arg0; | |
4747 | long _arg1; | |
4748 | long _arg2; | |
1d99702e | 4749 | PyObject * _argo0 = 0; |
cd096152 | 4750 | char *_kwnames[] = { "self","start","data", NULL }; |
8ab979d7 RD |
4751 | |
4752 | self = self; | |
cd096152 | 4753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_FindItemData",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4754 | return NULL; |
1d99702e RD |
4755 | if (_argo0) { |
4756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4759 | return NULL; |
4760 | } | |
4761 | } | |
cf694132 RD |
4762 | { |
4763 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4764 | _result = (long )wxListCtrl_FindItemData(_arg0,_arg1,_arg2); |
cf694132 RD |
4765 | |
4766 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4767 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4768 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4769 | return _resultobj; |
4770 | } | |
4771 | ||
cd096152 RD |
4772 | #define wxListCtrl_FindItemAtPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) |
4773 | static PyObject *_wrap_wxListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4774 | PyObject * _resultobj; |
cd096152 RD |
4775 | long _result; |
4776 | wxPyListCtrl * _arg0; | |
4777 | long _arg1; | |
4778 | wxPoint * _arg2; | |
4779 | int _arg3; | |
1d99702e | 4780 | PyObject * _argo0 = 0; |
cd096152 RD |
4781 | wxPoint temp; |
4782 | PyObject * _obj2 = 0; | |
4783 | char *_kwnames[] = { "self","start","pt","direction", NULL }; | |
8ab979d7 RD |
4784 | |
4785 | self = self; | |
cd096152 | 4786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_FindItemAtPos",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) |
8ab979d7 | 4787 | return NULL; |
1d99702e RD |
4788 | if (_argo0) { |
4789 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4790 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4791 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemAtPos. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4792 | return NULL; |
4793 | } | |
4794 | } | |
f6bcfd97 | 4795 | { |
cd096152 RD |
4796 | _arg2 = &temp; |
4797 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 4798 | return NULL; |
f6bcfd97 | 4799 | } |
cf694132 RD |
4800 | { |
4801 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4802 | _result = (long )wxListCtrl_FindItemAtPos(_arg0,_arg1,*_arg2,_arg3); |
cf694132 RD |
4803 | |
4804 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4805 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4806 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4807 | return _resultobj; |
4808 | } | |
4809 | ||
cd096152 RD |
4810 | #define wxListCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) |
4811 | static PyObject *_wrap_wxListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4812 | PyObject * _resultobj; |
cd096152 RD |
4813 | long _result; |
4814 | wxPyListCtrl * _arg0; | |
4815 | wxPoint * _arg1; | |
4816 | int * _arg2; | |
4817 | int temp; | |
1d99702e | 4818 | PyObject * _argo0 = 0; |
cd096152 RD |
4819 | wxPoint temp0; |
4820 | PyObject * _obj1 = 0; | |
4821 | char *_kwnames[] = { "self","point", NULL }; | |
8ab979d7 RD |
4822 | |
4823 | self = self; | |
cf694132 | 4824 | { |
cd096152 | 4825 | _arg2 = &temp; |
8ab979d7 | 4826 | } |
cd096152 | 4827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_HitTest",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4828 | return NULL; |
1d99702e RD |
4829 | if (_argo0) { |
4830 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4831 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4832 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_HitTest. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4833 | return NULL; |
4834 | } | |
4835 | } | |
cf694132 | 4836 | { |
cd096152 RD |
4837 | _arg1 = &temp0; |
4838 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 4839 | return NULL; |
cd096152 | 4840 | } |
cf694132 RD |
4841 | { |
4842 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4843 | _result = (long )wxListCtrl_HitTest(_arg0,*_arg1,*_arg2); |
cf694132 RD |
4844 | |
4845 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4846 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
4847 | } _resultobj = Py_BuildValue("l",_result); |
4848 | { | |
4849 | PyObject *o; | |
4850 | o = PyInt_FromLong((long) (*_arg2)); | |
4851 | _resultobj = t_output_helper(_resultobj, o); | |
4852 | } | |
8ab979d7 RD |
4853 | return _resultobj; |
4854 | } | |
4855 | ||
cd096152 RD |
4856 | #define wxListCtrl_InsertItem(_swigobj,_swigarg0) (_swigobj->InsertItem(_swigarg0)) |
4857 | static PyObject *_wrap_wxListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4858 | PyObject * _resultobj; |
cd096152 RD |
4859 | long _result; |
4860 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4861 | wxListItem * _arg1; |
1d99702e RD |
4862 | PyObject * _argo0 = 0; |
4863 | PyObject * _argo1 = 0; | |
efc5f224 | 4864 | char *_kwnames[] = { "self","info", NULL }; |
8ab979d7 RD |
4865 | |
4866 | self = self; | |
cd096152 | 4867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_InsertItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4868 | return NULL; |
1d99702e RD |
4869 | if (_argo0) { |
4870 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4871 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4872 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4873 | return NULL; |
4874 | } | |
4875 | } | |
1d99702e RD |
4876 | if (_argo1) { |
4877 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4878 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
cd096152 | 4879 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_InsertItem. Expected _wxListItem_p."); |
8ab979d7 RD |
4880 | return NULL; |
4881 | } | |
4882 | } | |
cf694132 RD |
4883 | { |
4884 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4885 | _result = (long )wxListCtrl_InsertItem(_arg0,*_arg1); |
cf694132 RD |
4886 | |
4887 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4888 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4889 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4890 | return _resultobj; |
4891 | } | |
4892 | ||
cd096152 RD |
4893 | #define wxListCtrl_InsertStringItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) |
4894 | static PyObject *_wrap_wxListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4895 | PyObject * _resultobj; |
4896 | long _result; | |
cd096152 | 4897 | wxPyListCtrl * _arg0; |
8ab979d7 | 4898 | long _arg1; |
cd096152 | 4899 | wxString * _arg2; |
1d99702e | 4900 | PyObject * _argo0 = 0; |
cd096152 RD |
4901 | PyObject * _obj2 = 0; |
4902 | char *_kwnames[] = { "self","index","label", NULL }; | |
8ab979d7 RD |
4903 | |
4904 | self = self; | |
cd096152 | 4905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertStringItem",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 4906 | return NULL; |
1d99702e RD |
4907 | if (_argo0) { |
4908 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4909 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4910 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertStringItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4911 | return NULL; |
4912 | } | |
4913 | } | |
4914 | { | |
2cd2fac8 RD |
4915 | #if PYTHON_API_VERSION >= 1009 |
4916 | char* tmpPtr; int tmpSize; | |
cd096152 | 4917 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { |
7a446686 | 4918 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
4919 | return NULL; |
4920 | } | |
cd096152 | 4921 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) |
2cd2fac8 | 4922 | return NULL; |
cd096152 | 4923 | _arg2 = new wxString(tmpPtr, tmpSize); |
2cd2fac8 | 4924 | #else |
cd096152 | 4925 | if (!PyString_Check(_obj2)) { |
8ab979d7 RD |
4926 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
4927 | return NULL; | |
4928 | } | |
cd096152 | 4929 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
2cd2fac8 | 4930 | #endif |
8ab979d7 | 4931 | } |
cf694132 RD |
4932 | { |
4933 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4934 | _result = (long )wxListCtrl_InsertStringItem(_arg0,_arg1,*_arg2); |
cf694132 RD |
4935 | |
4936 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4937 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4938 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 | 4939 | { |
cd096152 RD |
4940 | if (_obj2) |
4941 | delete _arg2; | |
4942 | } | |
8ab979d7 RD |
4943 | return _resultobj; |
4944 | } | |
4945 | ||
cd096152 RD |
4946 | #define wxListCtrl_InsertImageItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) |
4947 | static PyObject *_wrap_wxListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4948 | PyObject * _resultobj; |
cd096152 RD |
4949 | long _result; |
4950 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
4951 | long _arg1; |
4952 | int _arg2; | |
1d99702e | 4953 | PyObject * _argo0 = 0; |
cd096152 | 4954 | char *_kwnames[] = { "self","index","imageIndex", NULL }; |
8ab979d7 RD |
4955 | |
4956 | self = self; | |
cd096152 | 4957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oli:wxListCtrl_InsertImageItem",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4958 | return NULL; |
1d99702e RD |
4959 | if (_argo0) { |
4960 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4961 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4962 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4963 | return NULL; |
4964 | } | |
4965 | } | |
cf694132 RD |
4966 | { |
4967 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 4968 | _result = (long )wxListCtrl_InsertImageItem(_arg0,_arg1,_arg2); |
cf694132 RD |
4969 | |
4970 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 4971 | if (PyErr_Occurred()) return NULL; |
cd096152 | 4972 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4973 | return _resultobj; |
4974 | } | |
4975 | ||
cd096152 RD |
4976 | #define wxListCtrl_InsertImageStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2)) |
4977 | static PyObject *_wrap_wxListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4978 | PyObject * _resultobj; |
cd096152 RD |
4979 | long _result; |
4980 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4981 | long _arg1; |
cd096152 RD |
4982 | wxString * _arg2; |
4983 | int _arg3; | |
1d99702e | 4984 | PyObject * _argo0 = 0; |
2f90df85 | 4985 | PyObject * _obj2 = 0; |
cd096152 | 4986 | char *_kwnames[] = { "self","index","label","imageIndex", NULL }; |
8ab979d7 RD |
4987 | |
4988 | self = self; | |
cd096152 | 4989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_InsertImageStringItem",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) |
8ab979d7 | 4990 | return NULL; |
1d99702e RD |
4991 | if (_argo0) { |
4992 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
4993 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4994 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageStringItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4995 | return NULL; |
4996 | } | |
4997 | } | |
2f90df85 | 4998 | { |
cd096152 RD |
4999 | #if PYTHON_API_VERSION >= 1009 |
5000 | char* tmpPtr; int tmpSize; | |
5001 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
5002 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5003 | return NULL; | |
5004 | } | |
5005 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
5006 | return NULL; | |
5007 | _arg2 = new wxString(tmpPtr, tmpSize); | |
5008 | #else | |
5009 | if (!PyString_Check(_obj2)) { | |
5010 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8ab979d7 | 5011 | return NULL; |
cd096152 RD |
5012 | } |
5013 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
5014 | #endif | |
2f90df85 | 5015 | } |
cf694132 RD |
5016 | { |
5017 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 5018 | _result = (long )wxListCtrl_InsertImageStringItem(_arg0,_arg1,*_arg2,_arg3); |
cf694132 RD |
5019 | |
5020 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5021 | if (PyErr_Occurred()) return NULL; |
cd096152 RD |
5022 | } _resultobj = Py_BuildValue("l",_result); |
5023 | { | |
5024 | if (_obj2) | |
5025 | delete _arg2; | |
5026 | } | |
8ab979d7 RD |
5027 | return _resultobj; |
5028 | } | |
5029 | ||
cd096152 RD |
5030 | #define wxListCtrl_InsertColumnInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertColumn(_swigarg0,_swigarg1)) |
5031 | static PyObject *_wrap_wxListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5032 | PyObject * _resultobj; |
cd096152 RD |
5033 | long _result; |
5034 | wxPyListCtrl * _arg0; | |
8ab979d7 | 5035 | long _arg1; |
cd096152 | 5036 | wxListItem * _arg2; |
1d99702e | 5037 | PyObject * _argo0 = 0; |
cd096152 RD |
5038 | PyObject * _argo2 = 0; |
5039 | char *_kwnames[] = { "self","col","info", NULL }; | |
8ab979d7 RD |
5040 | |
5041 | self = self; | |
cd096152 | 5042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertColumnInfo",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 5043 | return NULL; |
1d99702e RD |
5044 | if (_argo0) { |
5045 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
5046 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
5047 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumnInfo. Expected _wxPyListCtrl_p."); | |
5048 | return NULL; | |
5049 | } | |
5050 | } | |
5051 | if (_argo2) { | |
5052 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
5053 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
5054 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_InsertColumnInfo. Expected _wxListItem_p."); | |
8ab979d7 RD |
5055 | return NULL; |
5056 | } | |
5057 | } | |
cf694132 RD |
5058 | { |
5059 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 5060 | _result = (long )wxListCtrl_InsertColumnInfo(_arg0,_arg1,*_arg2); |
cf694132 RD |
5061 | |
5062 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5063 | if (PyErr_Occurred()) return NULL; |
cd096152 | 5064 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
5065 | return _resultobj; |
5066 | } | |
5067 | ||
cd096152 RD |
5068 | #define wxListCtrl_InsertColumn(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertColumn(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
5069 | static PyObject *_wrap_wxListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5070 | PyObject * _resultobj; |
cd096152 RD |
5071 | long _result; |
5072 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
5073 | long _arg1; |
5074 | wxString * _arg2; | |
cd096152 RD |
5075 | int _arg3 = (int ) (wxLIST_FORMAT_LEFT); |
5076 | int _arg4 = (int ) -1; | |
1d99702e | 5077 | PyObject * _argo0 = 0; |
8ab979d7 | 5078 | PyObject * _obj2 = 0; |
cd096152 | 5079 | char *_kwnames[] = { "self","col","heading","format","width", NULL }; |
8ab979d7 RD |
5080 | |
5081 | self = self; | |
cd096152 | 5082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|ii:wxListCtrl_InsertColumn",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3,&_arg4)) |
8ab979d7 | 5083 | return NULL; |
1d99702e RD |
5084 | if (_argo0) { |
5085 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
5086 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
5087 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumn. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
5088 | return NULL; |
5089 | } | |
5090 | } | |
5091 | { | |
2cd2fac8 RD |
5092 | #if PYTHON_API_VERSION >= 1009 |
5093 | char* tmpPtr; int tmpSize; | |
5094 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 5095 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
5096 | return NULL; |
5097 | } | |
5098 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
5099 | return NULL; | |
5100 | _arg2 = new wxString(tmpPtr, tmpSize); | |
5101 | #else | |
8ab979d7 RD |
5102 | if (!PyString_Check(_obj2)) { |
5103 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5104 | return NULL; | |
5105 | } | |
2cd2fac8 RD |
5106 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
5107 | #endif | |
8ab979d7 | 5108 | } |
cf694132 RD |
5109 | { |
5110 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 5111 | _result = (long )wxListCtrl_InsertColumn(_arg0,_arg1,*_arg2,_arg3,_arg4); |
cf694132 RD |
5112 | |
5113 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5114 | if (PyErr_Occurred()) return NULL; |
cd096152 | 5115 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
5116 | { |
5117 | if (_obj2) | |
5118 | delete _arg2; | |
5119 | } | |
5120 | return _resultobj; | |
5121 | } | |
5122 | ||
cd096152 RD |
5123 | #define wxListCtrl_SetItemCount(_swigobj,_swigarg0) (_swigobj->SetItemCount(_swigarg0)) |
5124 | static PyObject *_wrap_wxListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5125 | PyObject * _resultobj; |
cd096152 | 5126 | wxPyListCtrl * _arg0; |
8ab979d7 | 5127 | long _arg1; |
1d99702e | 5128 | PyObject * _argo0 = 0; |
cd096152 | 5129 | char *_kwnames[] = { "self","count", NULL }; |
8ab979d7 RD |
5130 | |
5131 | self = self; | |
cd096152 | 5132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetItemCount",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5133 | return NULL; |
1d99702e RD |
5134 | if (_argo0) { |
5135 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
5136 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
5137 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
5138 | return NULL; |
5139 | } | |
5140 | } | |
cf694132 RD |
5141 | { |
5142 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 5143 | wxListCtrl_SetItemCount(_arg0,_arg1); |
cf694132 RD |
5144 | |
5145 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5146 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5147 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5148 | _resultobj = Py_None; |
5149 | return _resultobj; | |
5150 | } | |
5151 | ||
cd096152 RD |
5152 | #define wxListCtrl_ScrollList(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScrollList(_swigarg0,_swigarg1)) |
5153 | static PyObject *_wrap_wxListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5154 | PyObject * _resultobj; |
cd096152 RD |
5155 | bool _result; |
5156 | wxPyListCtrl * _arg0; | |
5157 | int _arg1; | |
5158 | int _arg2; | |
1d99702e | 5159 | PyObject * _argo0 = 0; |
cd096152 | 5160 | char *_kwnames[] = { "self","dx","dy", NULL }; |
8ab979d7 RD |
5161 | |
5162 | self = self; | |
cd096152 | 5163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_ScrollList",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 5164 | return NULL; |
1d99702e RD |
5165 | if (_argo0) { |
5166 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
5167 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
5168 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ScrollList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
5169 | return NULL; |
5170 | } | |
5171 | } | |
cf694132 RD |
5172 | { |
5173 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 5174 | _result = (bool )wxListCtrl_ScrollList(_arg0,_arg1,_arg2); |
cf694132 RD |
5175 | |
5176 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5177 | if (PyErr_Occurred()) return NULL; |
cd096152 | 5178 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5179 | return _resultobj; |
5180 | } | |
5181 | ||
cd096152 | 5182 | static bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject * func) { |
dcd38683 RD |
5183 | if (!PyCallable_Check(func)) |
5184 | return FALSE; | |
f6bcfd97 | 5185 | return self->SortItems(wxPyListCtrl_SortItems, (long)func); |
dcd38683 RD |
5186 | } |
5187 | static PyObject *_wrap_wxListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5188 | PyObject * _resultobj; | |
5189 | bool _result; | |
cd096152 | 5190 | wxPyListCtrl * _arg0; |
dcd38683 RD |
5191 | PyObject * _arg1; |
5192 | PyObject * _argo0 = 0; | |
5193 | PyObject * _obj1 = 0; | |
5194 | char *_kwnames[] = { "self","func", NULL }; | |
5195 | ||
5196 | self = self; | |
5197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SortItems",_kwnames,&_argo0,&_obj1)) | |
5198 | return NULL; | |
5199 | if (_argo0) { | |
5200 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
cd096152 RD |
5201 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
5202 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SortItems. Expected _wxPyListCtrl_p."); | |
dcd38683 RD |
5203 | return NULL; |
5204 | } | |
5205 | } | |
5206 | { | |
5207 | _arg1 = _obj1; | |
5208 | } | |
5209 | { | |
5210 | wxPy_BEGIN_ALLOW_THREADS; | |
cd096152 | 5211 | _result = (bool )wxPyListCtrl_SortItems(_arg0,_arg1); |
dcd38683 RD |
5212 | |
5213 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5214 | if (PyErr_Occurred()) return NULL; |
dcd38683 RD |
5215 | } _resultobj = Py_BuildValue("i",_result); |
5216 | return _resultobj; | |
5217 | } | |
5218 | ||
059a841c RD |
5219 | static void *SwigwxListViewTowxPyListCtrl(void *ptr) { |
5220 | wxListView *src; | |
5221 | wxPyListCtrl *dest; | |
5222 | src = (wxListView *) ptr; | |
5223 | dest = (wxPyListCtrl *) src; | |
5224 | return (void *) dest; | |
5225 | } | |
5226 | ||
5227 | static void *SwigwxListViewTowxControl(void *ptr) { | |
5228 | wxListView *src; | |
5229 | wxControl *dest; | |
5230 | src = (wxListView *) ptr; | |
5231 | dest = (wxControl *) src; | |
5232 | return (void *) dest; | |
5233 | } | |
5234 | ||
5235 | static void *SwigwxListViewTowxWindow(void *ptr) { | |
5236 | wxListView *src; | |
5237 | wxWindow *dest; | |
5238 | src = (wxListView *) ptr; | |
5239 | dest = (wxWindow *) src; | |
5240 | return (void *) dest; | |
5241 | } | |
5242 | ||
5243 | static void *SwigwxListViewTowxEvtHandler(void *ptr) { | |
5244 | wxListView *src; | |
5245 | wxEvtHandler *dest; | |
5246 | src = (wxListView *) ptr; | |
5247 | dest = (wxEvtHandler *) src; | |
5248 | return (void *) dest; | |
5249 | } | |
5250 | ||
5251 | static void *SwigwxListViewTowxObject(void *ptr) { | |
5252 | wxListView *src; | |
5253 | wxObject *dest; | |
5254 | src = (wxListView *) ptr; | |
5255 | dest = (wxObject *) src; | |
5256 | return (void *) dest; | |
5257 | } | |
5258 | ||
5259 | #define new_wxListView(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxListView(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
5260 | static PyObject *_wrap_new_wxListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5261 | PyObject * _resultobj; | |
5262 | wxListView * _result; | |
5263 | wxWindow * _arg0; | |
5264 | wxWindowID _arg1 = (wxWindowID ) -1; | |
5265 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; | |
5266 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
5267 | long _arg4 = (long ) (wxLC_REPORT); | |
5268 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; | |
5269 | wxString * _arg6 = (wxString *) &"listctrl"; | |
5270 | PyObject * _argo0 = 0; | |
5271 | wxPoint temp; | |
5272 | PyObject * _obj2 = 0; | |
5273 | wxSize temp0; | |
5274 | PyObject * _obj3 = 0; | |
5275 | PyObject * _argo5 = 0; | |
5276 | PyObject * _obj6 = 0; | |
5277 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; | |
5278 | char _ptemp[128]; | |
5279 | ||
5280 | self = self; | |
5281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOO:new_wxListView",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_obj6)) | |
5282 | return NULL; | |
5283 | if (_argo0) { | |
5284 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5285 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListView. Expected _wxWindow_p."); | |
5287 | return NULL; | |
5288 | } | |
5289 | } | |
5290 | if (_obj2) | |
5291 | { | |
5292 | _arg2 = &temp; | |
5293 | if (! wxPoint_helper(_obj2, &_arg2)) | |
5294 | return NULL; | |
5295 | } | |
5296 | if (_obj3) | |
5297 | { | |
5298 | _arg3 = &temp0; | |
5299 | if (! wxSize_helper(_obj3, &_arg3)) | |
5300 | return NULL; | |
5301 | } | |
5302 | if (_argo5) { | |
5303 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
5304 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
5305 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListView. Expected _wxValidator_p."); | |
5306 | return NULL; | |
5307 | } | |
5308 | } | |
5309 | if (_obj6) | |
5310 | { | |
5311 | #if PYTHON_API_VERSION >= 1009 | |
5312 | char* tmpPtr; int tmpSize; | |
5313 | if (!PyString_Check(_obj6) && !PyUnicode_Check(_obj6)) { | |
5314 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5315 | return NULL; | |
5316 | } | |
5317 | if (PyString_AsStringAndSize(_obj6, &tmpPtr, &tmpSize) == -1) | |
5318 | return NULL; | |
5319 | _arg6 = new wxString(tmpPtr, tmpSize); | |
5320 | #else | |
5321 | if (!PyString_Check(_obj6)) { | |
5322 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5323 | return NULL; | |
5324 | } | |
5325 | _arg6 = new wxString(PyString_AS_STRING(_obj6), PyString_GET_SIZE(_obj6)); | |
5326 | #endif | |
5327 | } | |
5328 | { | |
5329 | wxPy_BEGIN_ALLOW_THREADS; | |
5330 | _result = (wxListView *)new_wxListView(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,*_arg6); | |
5331 | ||
5332 | wxPy_END_ALLOW_THREADS; | |
5333 | if (PyErr_Occurred()) return NULL; | |
5334 | } if (_result) { | |
5335 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListView_p"); | |
5336 | _resultobj = Py_BuildValue("s",_ptemp); | |
5337 | } else { | |
5338 | Py_INCREF(Py_None); | |
5339 | _resultobj = Py_None; | |
5340 | } | |
5341 | { | |
5342 | if (_obj6) | |
5343 | delete _arg6; | |
5344 | } | |
5345 | return _resultobj; | |
5346 | } | |
5347 | ||
5348 | #define new_wxPreListView() (new wxListView()) | |
5349 | static PyObject *_wrap_new_wxPreListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5350 | PyObject * _resultobj; | |
5351 | wxListView * _result; | |
5352 | char *_kwnames[] = { NULL }; | |
5353 | char _ptemp[128]; | |
5354 | ||
5355 | self = self; | |
5356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreListView",_kwnames)) | |
5357 | return NULL; | |
5358 | { | |
5359 | wxPy_BEGIN_ALLOW_THREADS; | |
5360 | _result = (wxListView *)new_wxPreListView(); | |
5361 | ||
5362 | wxPy_END_ALLOW_THREADS; | |
5363 | if (PyErr_Occurred()) return NULL; | |
5364 | } if (_result) { | |
5365 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListView_p"); | |
5366 | _resultobj = Py_BuildValue("s",_ptemp); | |
5367 | } else { | |
5368 | Py_INCREF(Py_None); | |
5369 | _resultobj = Py_None; | |
5370 | } | |
5371 | return _resultobj; | |
5372 | } | |
5373 | ||
5374 | #define wxListView_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
5375 | static PyObject *_wrap_wxListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5376 | PyObject * _resultobj; | |
5377 | bool _result; | |
5378 | wxListView * _arg0; | |
5379 | wxWindow * _arg1; | |
5380 | wxWindowID _arg2 = (wxWindowID ) -1; | |
5381 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
5382 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
5383 | long _arg5 = (long ) (wxLC_REPORT); | |
5384 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
5385 | wxString * _arg7 = (wxString *) &"listctrl"; | |
5386 | PyObject * _argo0 = 0; | |
5387 | PyObject * _argo1 = 0; | |
5388 | wxPoint temp; | |
5389 | PyObject * _obj3 = 0; | |
5390 | wxSize temp0; | |
5391 | PyObject * _obj4 = 0; | |
5392 | PyObject * _argo6 = 0; | |
5393 | PyObject * _obj7 = 0; | |
5394 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
5395 | ||
5396 | self = self; | |
5397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOO:wxListView_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_obj7)) | |
5398 | return NULL; | |
5399 | if (_argo0) { | |
5400 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5401 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5402 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Create. Expected _wxListView_p."); | |
5403 | return NULL; | |
5404 | } | |
5405 | } | |
5406 | if (_argo1) { | |
5407 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5408 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
5409 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListView_Create. Expected _wxWindow_p."); | |
5410 | return NULL; | |
5411 | } | |
5412 | } | |
5413 | if (_obj3) | |
5414 | { | |
5415 | _arg3 = &temp; | |
5416 | if (! wxPoint_helper(_obj3, &_arg3)) | |
5417 | return NULL; | |
5418 | } | |
5419 | if (_obj4) | |
5420 | { | |
5421 | _arg4 = &temp0; | |
5422 | if (! wxSize_helper(_obj4, &_arg4)) | |
5423 | return NULL; | |
5424 | } | |
5425 | if (_argo6) { | |
5426 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
5427 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
5428 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxListView_Create. Expected _wxValidator_p."); | |
5429 | return NULL; | |
5430 | } | |
5431 | } | |
5432 | if (_obj7) | |
5433 | { | |
5434 | #if PYTHON_API_VERSION >= 1009 | |
5435 | char* tmpPtr; int tmpSize; | |
5436 | if (!PyString_Check(_obj7) && !PyUnicode_Check(_obj7)) { | |
5437 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5438 | return NULL; | |
5439 | } | |
5440 | if (PyString_AsStringAndSize(_obj7, &tmpPtr, &tmpSize) == -1) | |
5441 | return NULL; | |
5442 | _arg7 = new wxString(tmpPtr, tmpSize); | |
5443 | #else | |
5444 | if (!PyString_Check(_obj7)) { | |
5445 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5446 | return NULL; | |
5447 | } | |
5448 | _arg7 = new wxString(PyString_AS_STRING(_obj7), PyString_GET_SIZE(_obj7)); | |
5449 | #endif | |
5450 | } | |
5451 | { | |
5452 | wxPy_BEGIN_ALLOW_THREADS; | |
5453 | _result = (bool )wxListView_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,*_arg7); | |
5454 | ||
5455 | wxPy_END_ALLOW_THREADS; | |
5456 | if (PyErr_Occurred()) return NULL; | |
5457 | } _resultobj = Py_BuildValue("i",_result); | |
5458 | { | |
5459 | if (_obj7) | |
5460 | delete _arg7; | |
5461 | } | |
5462 | return _resultobj; | |
5463 | } | |
5464 | ||
5465 | #define wxListView_Select(_swigobj,_swigarg0,_swigarg1) (_swigobj->Select(_swigarg0,_swigarg1)) | |
5466 | static PyObject *_wrap_wxListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5467 | PyObject * _resultobj; | |
5468 | wxListView * _arg0; | |
5469 | long _arg1; | |
5470 | bool _arg2 = (bool ) TRUE; | |
5471 | PyObject * _argo0 = 0; | |
5472 | int tempbool2 = (int) TRUE; | |
5473 | char *_kwnames[] = { "self","n","on", NULL }; | |
5474 | ||
5475 | self = self; | |
5476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListView_Select",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
5477 | return NULL; | |
5478 | if (_argo0) { | |
5479 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5480 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5481 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Select. Expected _wxListView_p."); | |
5482 | return NULL; | |
5483 | } | |
5484 | } | |
5485 | _arg2 = (bool ) tempbool2; | |
5486 | { | |
5487 | wxPy_BEGIN_ALLOW_THREADS; | |
5488 | wxListView_Select(_arg0,_arg1,_arg2); | |
5489 | ||
5490 | wxPy_END_ALLOW_THREADS; | |
5491 | if (PyErr_Occurred()) return NULL; | |
5492 | } Py_INCREF(Py_None); | |
5493 | _resultobj = Py_None; | |
5494 | return _resultobj; | |
5495 | } | |
5496 | ||
5497 | #define wxListView_Focus(_swigobj,_swigarg0) (_swigobj->Focus(_swigarg0)) | |
5498 | static PyObject *_wrap_wxListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5499 | PyObject * _resultobj; | |
5500 | wxListView * _arg0; | |
5501 | long _arg1; | |
5502 | PyObject * _argo0 = 0; | |
5503 | char *_kwnames[] = { "self","index", NULL }; | |
5504 | ||
5505 | self = self; | |
5506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_Focus",_kwnames,&_argo0,&_arg1)) | |
5507 | return NULL; | |
5508 | if (_argo0) { | |
5509 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5510 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5511 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_Focus. Expected _wxListView_p."); | |
5512 | return NULL; | |
5513 | } | |
5514 | } | |
5515 | { | |
5516 | wxPy_BEGIN_ALLOW_THREADS; | |
5517 | wxListView_Focus(_arg0,_arg1); | |
5518 | ||
5519 | wxPy_END_ALLOW_THREADS; | |
5520 | if (PyErr_Occurred()) return NULL; | |
5521 | } Py_INCREF(Py_None); | |
5522 | _resultobj = Py_None; | |
5523 | return _resultobj; | |
5524 | } | |
5525 | ||
5526 | #define wxListView_GetFocusedItem(_swigobj) (_swigobj->GetFocusedItem()) | |
5527 | static PyObject *_wrap_wxListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5528 | PyObject * _resultobj; | |
5529 | long _result; | |
5530 | wxListView * _arg0; | |
5531 | PyObject * _argo0 = 0; | |
5532 | char *_kwnames[] = { "self", NULL }; | |
5533 | ||
5534 | self = self; | |
5535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListView_GetFocusedItem",_kwnames,&_argo0)) | |
5536 | return NULL; | |
5537 | if (_argo0) { | |
5538 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5539 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5540 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetFocusedItem. Expected _wxListView_p."); | |
5541 | return NULL; | |
5542 | } | |
5543 | } | |
5544 | { | |
5545 | wxPy_BEGIN_ALLOW_THREADS; | |
5546 | _result = (long )wxListView_GetFocusedItem(_arg0); | |
5547 | ||
5548 | wxPy_END_ALLOW_THREADS; | |
5549 | if (PyErr_Occurred()) return NULL; | |
5550 | } _resultobj = Py_BuildValue("l",_result); | |
5551 | return _resultobj; | |
5552 | } | |
5553 | ||
5554 | #define wxListView_GetNextSelected(_swigobj,_swigarg0) (_swigobj->GetNextSelected(_swigarg0)) | |
5555 | static PyObject *_wrap_wxListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5556 | PyObject * _resultobj; | |
5557 | long _result; | |
5558 | wxListView * _arg0; | |
5559 | long _arg1; | |
5560 | PyObject * _argo0 = 0; | |
5561 | char *_kwnames[] = { "self","item", NULL }; | |
5562 | ||
5563 | self = self; | |
5564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_GetNextSelected",_kwnames,&_argo0,&_arg1)) | |
5565 | return NULL; | |
5566 | if (_argo0) { | |
5567 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5568 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5569 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetNextSelected. Expected _wxListView_p."); | |
5570 | return NULL; | |
5571 | } | |
5572 | } | |
5573 | { | |
5574 | wxPy_BEGIN_ALLOW_THREADS; | |
5575 | _result = (long )wxListView_GetNextSelected(_arg0,_arg1); | |
5576 | ||
5577 | wxPy_END_ALLOW_THREADS; | |
5578 | if (PyErr_Occurred()) return NULL; | |
5579 | } _resultobj = Py_BuildValue("l",_result); | |
5580 | return _resultobj; | |
5581 | } | |
5582 | ||
5583 | #define wxListView_GetFirstSelected(_swigobj) (_swigobj->GetFirstSelected()) | |
5584 | static PyObject *_wrap_wxListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5585 | PyObject * _resultobj; | |
5586 | long _result; | |
5587 | wxListView * _arg0; | |
5588 | PyObject * _argo0 = 0; | |
5589 | char *_kwnames[] = { "self", NULL }; | |
5590 | ||
5591 | self = self; | |
5592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListView_GetFirstSelected",_kwnames,&_argo0)) | |
5593 | return NULL; | |
5594 | if (_argo0) { | |
5595 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5596 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5597 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_GetFirstSelected. Expected _wxListView_p."); | |
5598 | return NULL; | |
5599 | } | |
5600 | } | |
5601 | { | |
5602 | wxPy_BEGIN_ALLOW_THREADS; | |
5603 | _result = (long )wxListView_GetFirstSelected(_arg0); | |
5604 | ||
5605 | wxPy_END_ALLOW_THREADS; | |
5606 | if (PyErr_Occurred()) return NULL; | |
5607 | } _resultobj = Py_BuildValue("l",_result); | |
5608 | return _resultobj; | |
5609 | } | |
5610 | ||
5611 | #define wxListView_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) | |
5612 | static PyObject *_wrap_wxListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5613 | PyObject * _resultobj; | |
5614 | bool _result; | |
5615 | wxListView * _arg0; | |
5616 | long _arg1; | |
5617 | PyObject * _argo0 = 0; | |
5618 | char *_kwnames[] = { "self","index", NULL }; | |
5619 | ||
5620 | self = self; | |
5621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListView_IsSelected",_kwnames,&_argo0,&_arg1)) | |
5622 | return NULL; | |
5623 | if (_argo0) { | |
5624 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5625 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5626 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_IsSelected. Expected _wxListView_p."); | |
5627 | return NULL; | |
5628 | } | |
5629 | } | |
5630 | { | |
5631 | wxPy_BEGIN_ALLOW_THREADS; | |
5632 | _result = (bool )wxListView_IsSelected(_arg0,_arg1); | |
5633 | ||
5634 | wxPy_END_ALLOW_THREADS; | |
5635 | if (PyErr_Occurred()) return NULL; | |
5636 | } _resultobj = Py_BuildValue("i",_result); | |
5637 | return _resultobj; | |
5638 | } | |
5639 | ||
5640 | #define wxListView_SetColumnImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnImage(_swigarg0,_swigarg1)) | |
5641 | static PyObject *_wrap_wxListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5642 | PyObject * _resultobj; | |
5643 | wxListView * _arg0; | |
5644 | int _arg1; | |
5645 | int _arg2; | |
5646 | PyObject * _argo0 = 0; | |
5647 | char *_kwnames[] = { "self","col","image", NULL }; | |
5648 | ||
5649 | self = self; | |
5650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListView_SetColumnImage",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5651 | return NULL; | |
5652 | if (_argo0) { | |
5653 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5654 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5655 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_SetColumnImage. Expected _wxListView_p."); | |
5656 | return NULL; | |
5657 | } | |
5658 | } | |
5659 | { | |
5660 | wxPy_BEGIN_ALLOW_THREADS; | |
5661 | wxListView_SetColumnImage(_arg0,_arg1,_arg2); | |
5662 | ||
5663 | wxPy_END_ALLOW_THREADS; | |
5664 | if (PyErr_Occurred()) return NULL; | |
5665 | } Py_INCREF(Py_None); | |
5666 | _resultobj = Py_None; | |
5667 | return _resultobj; | |
5668 | } | |
5669 | ||
5670 | #define wxListView_ClearColumnImage(_swigobj,_swigarg0) (_swigobj->ClearColumnImage(_swigarg0)) | |
5671 | static PyObject *_wrap_wxListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5672 | PyObject * _resultobj; | |
5673 | wxListView * _arg0; | |
5674 | int _arg1; | |
5675 | PyObject * _argo0 = 0; | |
5676 | char *_kwnames[] = { "self","col", NULL }; | |
5677 | ||
5678 | self = self; | |
5679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListView_ClearColumnImage",_kwnames,&_argo0,&_arg1)) | |
5680 | return NULL; | |
5681 | if (_argo0) { | |
5682 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5683 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListView_p")) { | |
5684 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListView_ClearColumnImage. Expected _wxListView_p."); | |
5685 | return NULL; | |
5686 | } | |
5687 | } | |
5688 | { | |
5689 | wxPy_BEGIN_ALLOW_THREADS; | |
5690 | wxListView_ClearColumnImage(_arg0,_arg1); | |
5691 | ||
5692 | wxPy_END_ALLOW_THREADS; | |
5693 | if (PyErr_Occurred()) return NULL; | |
5694 | } Py_INCREF(Py_None); | |
5695 | _resultobj = Py_None; | |
5696 | return _resultobj; | |
5697 | } | |
5698 | ||
aa2a5b86 RD |
5699 | #define new_wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2) (new wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2)) |
5700 | static PyObject *_wrap_new_wxTreeItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5701 | PyObject * _resultobj; |
aa2a5b86 RD |
5702 | wxTreeItemAttr * _result; |
5703 | wxColour * _arg0 = (wxColour *) &wxNullColour; | |
5704 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
5705 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
5706 | wxColour temp; | |
5707 | PyObject * _obj0 = 0; | |
5708 | wxColour temp0; | |
5709 | PyObject * _obj1 = 0; | |
5710 | PyObject * _argo2 = 0; | |
5711 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
d5c9047a | 5712 | char _ptemp[128]; |
8ab979d7 RD |
5713 | |
5714 | self = self; | |
aa2a5b86 RD |
5715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxTreeItemAttr",_kwnames,&_obj0,&_obj1,&_argo2)) |
5716 | return NULL; | |
5717 | if (_obj0) | |
5718 | { | |
5719 | _arg0 = &temp; | |
5720 | if (! wxColour_helper(_obj0, &_arg0)) | |
5721 | return NULL; | |
5722 | } | |
5723 | if (_obj1) | |
5724 | { | |
5725 | _arg1 = &temp0; | |
5726 | if (! wxColour_helper(_obj1, &_arg1)) | |
5727 | return NULL; | |
5728 | } | |
5729 | if (_argo2) { | |
5730 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
5731 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
5732 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxTreeItemAttr. Expected _wxFont_p."); | |
8ab979d7 | 5733 | return NULL; |
aa2a5b86 RD |
5734 | } |
5735 | } | |
cf694132 RD |
5736 | { |
5737 | wxPy_BEGIN_ALLOW_THREADS; | |
aa2a5b86 | 5738 | _result = (wxTreeItemAttr *)new_wxTreeItemAttr(*_arg0,*_arg1,*_arg2); |
cf694132 RD |
5739 | |
5740 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5741 | if (PyErr_Occurred()) return NULL; |
1d99702e | 5742 | } if (_result) { |
aa2a5b86 | 5743 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemAttr_p"); |
1d99702e RD |
5744 | _resultobj = Py_BuildValue("s",_ptemp); |
5745 | } else { | |
5746 | Py_INCREF(Py_None); | |
5747 | _resultobj = Py_None; | |
5748 | } | |
8ab979d7 RD |
5749 | return _resultobj; |
5750 | } | |
5751 | ||
aa2a5b86 RD |
5752 | #define wxTreeItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) |
5753 | static PyObject *_wrap_wxTreeItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5754 | PyObject * _resultobj; |
aa2a5b86 RD |
5755 | wxTreeItemAttr * _arg0; |
5756 | wxColour * _arg1; | |
1d99702e | 5757 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
5758 | wxColour temp; |
5759 | PyObject * _obj1 = 0; | |
5760 | char *_kwnames[] = { "self","colText", NULL }; | |
8ab979d7 RD |
5761 | |
5762 | self = self; | |
aa2a5b86 | 5763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 5764 | return NULL; |
1d99702e RD |
5765 | if (_argo0) { |
5766 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5767 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5768 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetTextColour. Expected _wxTreeItemAttr_p."); | |
8ab979d7 RD |
5769 | return NULL; |
5770 | } | |
5771 | } | |
aa2a5b86 RD |
5772 | { |
5773 | _arg1 = &temp; | |
5774 | if (! wxColour_helper(_obj1, &_arg1)) | |
5775 | return NULL; | |
5776 | } | |
cf694132 RD |
5777 | { |
5778 | wxPy_BEGIN_ALLOW_THREADS; | |
aa2a5b86 | 5779 | wxTreeItemAttr_SetTextColour(_arg0,*_arg1); |
cf694132 RD |
5780 | |
5781 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5782 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5783 | } Py_INCREF(Py_None); |
d5c9047a | 5784 | _resultobj = Py_None; |
8ab979d7 RD |
5785 | return _resultobj; |
5786 | } | |
5787 | ||
aa2a5b86 RD |
5788 | #define wxTreeItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
5789 | static PyObject *_wrap_wxTreeItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5790 | PyObject * _resultobj; |
aa2a5b86 RD |
5791 | wxTreeItemAttr * _arg0; |
5792 | wxColour * _arg1; | |
1d99702e | 5793 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
5794 | wxColour temp; |
5795 | PyObject * _obj1 = 0; | |
5796 | char *_kwnames[] = { "self","colBack", NULL }; | |
8ab979d7 RD |
5797 | |
5798 | self = self; | |
aa2a5b86 | 5799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 5800 | return NULL; |
1d99702e RD |
5801 | if (_argo0) { |
5802 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5803 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5804 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetBackgroundColour. Expected _wxTreeItemAttr_p."); | |
8ab979d7 RD |
5805 | return NULL; |
5806 | } | |
5807 | } | |
aa2a5b86 RD |
5808 | { |
5809 | _arg1 = &temp; | |
5810 | if (! wxColour_helper(_obj1, &_arg1)) | |
5811 | return NULL; | |
5812 | } | |
cf694132 RD |
5813 | { |
5814 | wxPy_BEGIN_ALLOW_THREADS; | |
aa2a5b86 | 5815 | wxTreeItemAttr_SetBackgroundColour(_arg0,*_arg1); |
cf694132 RD |
5816 | |
5817 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5818 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 RD |
5819 | } Py_INCREF(Py_None); |
5820 | _resultobj = Py_None; | |
8ab979d7 RD |
5821 | return _resultobj; |
5822 | } | |
5823 | ||
aa2a5b86 RD |
5824 | #define wxTreeItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
5825 | static PyObject *_wrap_wxTreeItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f6bcfd97 | 5826 | PyObject * _resultobj; |
aa2a5b86 RD |
5827 | wxTreeItemAttr * _arg0; |
5828 | wxFont * _arg1; | |
f6bcfd97 BP |
5829 | PyObject * _argo0 = 0; |
5830 | PyObject * _argo1 = 0; | |
aa2a5b86 | 5831 | char *_kwnames[] = { "self","font", NULL }; |
f6bcfd97 BP |
5832 | |
5833 | self = self; | |
aa2a5b86 | 5834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetFont",_kwnames,&_argo0,&_argo1)) |
f6bcfd97 BP |
5835 | return NULL; |
5836 | if (_argo0) { | |
5837 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5838 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5839 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetFont. Expected _wxTreeItemAttr_p."); | |
f6bcfd97 BP |
5840 | return NULL; |
5841 | } | |
5842 | } | |
5843 | if (_argo1) { | |
5844 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
aa2a5b86 RD |
5845 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { |
5846 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemAttr_SetFont. Expected _wxFont_p."); | |
f6bcfd97 BP |
5847 | return NULL; |
5848 | } | |
5849 | } | |
5850 | { | |
5851 | wxPy_BEGIN_ALLOW_THREADS; | |
aa2a5b86 | 5852 | wxTreeItemAttr_SetFont(_arg0,*_arg1); |
f6bcfd97 BP |
5853 | |
5854 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5855 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 RD |
5856 | } Py_INCREF(Py_None); |
5857 | _resultobj = Py_None; | |
f6bcfd97 BP |
5858 | return _resultobj; |
5859 | } | |
5860 | ||
aa2a5b86 RD |
5861 | #define wxTreeItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) |
5862 | static PyObject *_wrap_wxTreeItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5863 | PyObject * _resultobj; |
aa2a5b86 RD |
5864 | bool _result; |
5865 | wxTreeItemAttr * _arg0; | |
5866 | PyObject * _argo0 = 0; | |
5867 | char *_kwnames[] = { "self", NULL }; | |
8ab979d7 RD |
5868 | |
5869 | self = self; | |
aa2a5b86 | 5870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasTextColour",_kwnames,&_argo0)) |
8ab979d7 | 5871 | return NULL; |
aa2a5b86 RD |
5872 | if (_argo0) { |
5873 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5874 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5875 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasTextColour. Expected _wxTreeItemAttr_p."); | |
5876 | return NULL; | |
5877 | } | |
5878 | } | |
cf694132 RD |
5879 | { |
5880 | wxPy_BEGIN_ALLOW_THREADS; | |
aa2a5b86 | 5881 | _result = (bool )wxTreeItemAttr_HasTextColour(_arg0); |
cf694132 RD |
5882 | |
5883 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5884 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 5885 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5886 | return _resultobj; |
5887 | } | |
5888 | ||
aa2a5b86 RD |
5889 | #define wxTreeItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) |
5890 | static PyObject *_wrap_wxTreeItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 5891 | PyObject * _resultobj; |
aa2a5b86 RD |
5892 | bool _result; |
5893 | wxTreeItemAttr * _arg0; | |
1d99702e | 5894 | PyObject * _argo0 = 0; |
efc5f224 | 5895 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
5896 | |
5897 | self = self; | |
aa2a5b86 | 5898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasBackgroundColour",_kwnames,&_argo0)) |
cf694132 | 5899 | return NULL; |
1d99702e RD |
5900 | if (_argo0) { |
5901 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5902 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5903 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasBackgroundColour. Expected _wxTreeItemAttr_p."); | |
cf694132 RD |
5904 | return NULL; |
5905 | } | |
5906 | } | |
5907 | { | |
5908 | wxPy_BEGIN_ALLOW_THREADS; | |
aa2a5b86 | 5909 | _result = (bool )wxTreeItemAttr_HasBackgroundColour(_arg0); |
cf694132 RD |
5910 | |
5911 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5912 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 5913 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
5914 | return _resultobj; |
5915 | } | |
5916 | ||
aa2a5b86 RD |
5917 | #define wxTreeItemAttr_HasFont(_swigobj) (_swigobj->HasFont()) |
5918 | static PyObject *_wrap_wxTreeItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5919 | PyObject * _resultobj; |
aa2a5b86 RD |
5920 | bool _result; |
5921 | wxTreeItemAttr * _arg0; | |
1d99702e | 5922 | PyObject * _argo0 = 0; |
aa2a5b86 | 5923 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5924 | |
5925 | self = self; | |
aa2a5b86 | 5926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasFont",_kwnames,&_argo0)) |
8ab979d7 | 5927 | return NULL; |
1d99702e RD |
5928 | if (_argo0) { |
5929 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5930 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5931 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasFont. Expected _wxTreeItemAttr_p."); | |
8ab979d7 RD |
5932 | return NULL; |
5933 | } | |
5934 | } | |
cf694132 RD |
5935 | { |
5936 | wxPy_BEGIN_ALLOW_THREADS; | |
aa2a5b86 | 5937 | _result = (bool )wxTreeItemAttr_HasFont(_arg0); |
cf694132 RD |
5938 | |
5939 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5940 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 5941 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5942 | return _resultobj; |
5943 | } | |
5944 | ||
aa2a5b86 RD |
5945 | #define wxTreeItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) |
5946 | static PyObject *_wrap_wxTreeItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5947 | PyObject * _resultobj; |
aa2a5b86 RD |
5948 | wxColour * _result; |
5949 | wxTreeItemAttr * _arg0; | |
1d99702e | 5950 | PyObject * _argo0 = 0; |
efc5f224 | 5951 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5952 | char _ptemp[128]; |
5953 | ||
5954 | self = self; | |
aa2a5b86 | 5955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetTextColour",_kwnames,&_argo0)) |
8ab979d7 | 5956 | return NULL; |
1d99702e RD |
5957 | if (_argo0) { |
5958 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
aa2a5b86 RD |
5959 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { |
5960 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetTextColour. Expected _wxTreeItemAttr_p."); | |
8ab979d7 RD |
5961 | return NULL; |
5962 | } | |
5963 | } | |
cf694132 RD |
5964 | { |
5965 | wxPy_BEGIN_ALLOW_THREADS; | |
aa2a5b86 RD |
5966 | const wxColour & _result_ref = wxTreeItemAttr_GetTextColour(_arg0); |
5967 | _result = (wxColour *) &_result_ref; | |
cf694132 RD |
5968 | |
5969 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 5970 | if (PyErr_Occurred()) return NULL; |
1d99702e | 5971 | } if (_result) { |
aa2a5b86 | 5972 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); |
1d99702e RD |
5973 | _resultobj = Py_BuildValue("s",_ptemp); |
5974 | } else { | |
5975 | Py_INCREF(Py_None); | |
5976 | _resultobj = Py_None; | |
5977 | } | |
8ab979d7 RD |
5978 | return _resultobj; |
5979 | } | |
5980 | ||
aa2a5b86 RD |
5981 | #define wxTreeItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) |
5982 | static PyObject *_wrap_wxTreeItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
630d84f2 | 5983 | PyObject * _resultobj; |
aa2a5b86 RD |
5984 | wxColour * _result; |
5985 | wxTreeItemAttr * _arg0; | |
1d99702e | 5986 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
5987 | char *_kwnames[] = { "self", NULL }; |
5988 | char _ptemp[128]; | |
5989 | ||
5990 | self = self; | |
5991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetBackgroundColour",_kwnames,&_argo0)) | |
5992 | return NULL; | |
5993 | if (_argo0) { | |
5994 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5995 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5996 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetBackgroundColour. Expected _wxTreeItemAttr_p."); | |
5997 | return NULL; | |
5998 | } | |
5999 | } | |
6000 | { | |
6001 | wxPy_BEGIN_ALLOW_THREADS; | |
6002 | const wxColour & _result_ref = wxTreeItemAttr_GetBackgroundColour(_arg0); | |
6003 | _result = (wxColour *) &_result_ref; | |
6004 | ||
6005 | wxPy_END_ALLOW_THREADS; | |
6006 | if (PyErr_Occurred()) return NULL; | |
6007 | } if (_result) { | |
6008 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
6009 | _resultobj = Py_BuildValue("s",_ptemp); | |
6010 | } else { | |
6011 | Py_INCREF(Py_None); | |
6012 | _resultobj = Py_None; | |
6013 | } | |
6014 | return _resultobj; | |
6015 | } | |
6016 | ||
6017 | #define wxTreeItemAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
6018 | static PyObject *_wrap_wxTreeItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6019 | PyObject * _resultobj; | |
6020 | wxFont * _result; | |
6021 | wxTreeItemAttr * _arg0; | |
6022 | PyObject * _argo0 = 0; | |
6023 | char *_kwnames[] = { "self", NULL }; | |
6024 | char _ptemp[128]; | |
6025 | ||
6026 | self = self; | |
6027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetFont",_kwnames,&_argo0)) | |
6028 | return NULL; | |
6029 | if (_argo0) { | |
6030 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6031 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
6032 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetFont. Expected _wxTreeItemAttr_p."); | |
6033 | return NULL; | |
6034 | } | |
6035 | } | |
6036 | { | |
6037 | wxPy_BEGIN_ALLOW_THREADS; | |
6038 | const wxFont & _result_ref = wxTreeItemAttr_GetFont(_arg0); | |
6039 | _result = (wxFont *) &_result_ref; | |
6040 | ||
6041 | wxPy_END_ALLOW_THREADS; | |
6042 | if (PyErr_Occurred()) return NULL; | |
6043 | } if (_result) { | |
6044 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
6045 | _resultobj = Py_BuildValue("s",_ptemp); | |
6046 | } else { | |
6047 | Py_INCREF(Py_None); | |
6048 | _resultobj = Py_None; | |
6049 | } | |
6050 | return _resultobj; | |
6051 | } | |
6052 | ||
6053 | #define new_wxTreeItemId() (new wxTreeItemId()) | |
6054 | static PyObject *_wrap_new_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6055 | PyObject * _resultobj; | |
6056 | wxTreeItemId * _result; | |
6057 | char *_kwnames[] = { NULL }; | |
6058 | char _ptemp[128]; | |
6059 | ||
6060 | self = self; | |
6061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxTreeItemId",_kwnames)) | |
6062 | return NULL; | |
6063 | { | |
6064 | wxPy_BEGIN_ALLOW_THREADS; | |
6065 | _result = (wxTreeItemId *)new_wxTreeItemId(); | |
6066 | ||
6067 | wxPy_END_ALLOW_THREADS; | |
6068 | if (PyErr_Occurred()) return NULL; | |
6069 | } if (_result) { | |
6070 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
6071 | _resultobj = Py_BuildValue("s",_ptemp); | |
6072 | } else { | |
6073 | Py_INCREF(Py_None); | |
6074 | _resultobj = Py_None; | |
6075 | } | |
6076 | return _resultobj; | |
6077 | } | |
6078 | ||
6079 | #define delete_wxTreeItemId(_swigobj) (delete _swigobj) | |
6080 | static PyObject *_wrap_delete_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6081 | PyObject * _resultobj; | |
6082 | wxTreeItemId * _arg0; | |
6083 | PyObject * _argo0 = 0; | |
6084 | char *_kwnames[] = { "self", NULL }; | |
6085 | ||
6086 | self = self; | |
6087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTreeItemId",_kwnames,&_argo0)) | |
6088 | return NULL; | |
6089 | if (_argo0) { | |
6090 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6091 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
6092 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTreeItemId. Expected _wxTreeItemId_p."); | |
6093 | return NULL; | |
6094 | } | |
6095 | } | |
6096 | { | |
6097 | wxPy_BEGIN_ALLOW_THREADS; | |
6098 | delete_wxTreeItemId(_arg0); | |
6099 | ||
6100 | wxPy_END_ALLOW_THREADS; | |
6101 | if (PyErr_Occurred()) return NULL; | |
6102 | } Py_INCREF(Py_None); | |
6103 | _resultobj = Py_None; | |
6104 | return _resultobj; | |
6105 | } | |
6106 | ||
6107 | #define wxTreeItemId_IsOk(_swigobj) (_swigobj->IsOk()) | |
6108 | static PyObject *_wrap_wxTreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6109 | PyObject * _resultobj; | |
6110 | bool _result; | |
6111 | wxTreeItemId * _arg0; | |
6112 | PyObject * _argo0 = 0; | |
6113 | char *_kwnames[] = { "self", NULL }; | |
6114 | ||
6115 | self = self; | |
6116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemId_IsOk",_kwnames,&_argo0)) | |
6117 | return NULL; | |
6118 | if (_argo0) { | |
6119 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6120 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
6121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId_IsOk. Expected _wxTreeItemId_p."); | |
6122 | return NULL; | |
6123 | } | |
6124 | } | |
6125 | { | |
6126 | wxPy_BEGIN_ALLOW_THREADS; | |
6127 | _result = (bool )wxTreeItemId_IsOk(_arg0); | |
6128 | ||
6129 | wxPy_END_ALLOW_THREADS; | |
6130 | if (PyErr_Occurred()) return NULL; | |
6131 | } _resultobj = Py_BuildValue("i",_result); | |
6132 | return _resultobj; | |
6133 | } | |
6134 | ||
6135 | static int wxTreeItemId___cmp__(wxTreeItemId *self,wxTreeItemId * other) { | |
6136 | if (! other) return -1; | |
6137 | return *self != *other; | |
6138 | } | |
6139 | static PyObject *_wrap_wxTreeItemId___cmp__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6140 | PyObject * _resultobj; | |
6141 | int _result; | |
6142 | wxTreeItemId * _arg0; | |
6143 | wxTreeItemId * _arg1; | |
6144 | PyObject * _argo0 = 0; | |
6145 | PyObject * _argo1 = 0; | |
6146 | char *_kwnames[] = { "self","other", NULL }; | |
6147 | ||
6148 | self = self; | |
6149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemId___cmp__",_kwnames,&_argo0,&_argo1)) | |
6150 | return NULL; | |
6151 | if (_argo0) { | |
6152 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6153 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
6154 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
6155 | return NULL; | |
6156 | } | |
6157 | } | |
6158 | if (_argo1) { | |
6159 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6160 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
6161 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
6162 | return NULL; | |
6163 | } | |
6164 | } | |
6165 | { | |
6166 | wxPy_BEGIN_ALLOW_THREADS; | |
6167 | _result = (int )wxTreeItemId___cmp__(_arg0,_arg1); | |
6168 | ||
6169 | wxPy_END_ALLOW_THREADS; | |
6170 | if (PyErr_Occurred()) return NULL; | |
6171 | } _resultobj = Py_BuildValue("i",_result); | |
6172 | return _resultobj; | |
6173 | } | |
6174 | ||
6175 | static void *SwigwxPyTreeItemDataTowxObject(void *ptr) { | |
6176 | wxPyTreeItemData *src; | |
6177 | wxObject *dest; | |
6178 | src = (wxPyTreeItemData *) ptr; | |
6179 | dest = (wxObject *) src; | |
6180 | return (void *) dest; | |
6181 | } | |
6182 | ||
6183 | #define new_wxTreeItemData(_swigarg0) (new wxPyTreeItemData(_swigarg0)) | |
6184 | static PyObject *_wrap_new_wxTreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6185 | PyObject * _resultobj; | |
6186 | wxPyTreeItemData * _result; | |
6187 | PyObject * _arg0 = (PyObject *) NULL; | |
6188 | PyObject * _obj0 = 0; | |
6189 | char *_kwnames[] = { "obj", NULL }; | |
6190 | char _ptemp[128]; | |
6191 | ||
6192 | self = self; | |
6193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxTreeItemData",_kwnames,&_obj0)) | |
6194 | return NULL; | |
6195 | if (_obj0) | |
6196 | { | |
6197 | _arg0 = _obj0; | |
6198 | } | |
6199 | { | |
6200 | wxPy_BEGIN_ALLOW_THREADS; | |
6201 | _result = (wxPyTreeItemData *)new_wxTreeItemData(_arg0); | |
6202 | ||
6203 | wxPy_END_ALLOW_THREADS; | |
6204 | if (PyErr_Occurred()) return NULL; | |
6205 | } if (_result) { | |
6206 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
6207 | _resultobj = Py_BuildValue("s",_ptemp); | |
6208 | } else { | |
6209 | Py_INCREF(Py_None); | |
6210 | _resultobj = Py_None; | |
6211 | } | |
6212 | return _resultobj; | |
6213 | } | |
6214 | ||
6215 | #define wxTreeItemData_GetData(_swigobj) (_swigobj->GetData()) | |
6216 | static PyObject *_wrap_wxTreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6217 | PyObject * _resultobj; | |
6218 | PyObject * _result; | |
6219 | wxPyTreeItemData * _arg0; | |
6220 | PyObject * _argo0 = 0; | |
6221 | char *_kwnames[] = { "self", NULL }; | |
6222 | ||
6223 | self = self; | |
6224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetData",_kwnames,&_argo0)) | |
6225 | return NULL; | |
6226 | if (_argo0) { | |
6227 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6228 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
6229 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetData. Expected _wxPyTreeItemData_p."); | |
6230 | return NULL; | |
6231 | } | |
6232 | } | |
6233 | { | |
6234 | wxPy_BEGIN_ALLOW_THREADS; | |
6235 | _result = (PyObject *)wxTreeItemData_GetData(_arg0); | |
6236 | ||
6237 | wxPy_END_ALLOW_THREADS; | |
6238 | if (PyErr_Occurred()) return NULL; | |
6239 | }{ | |
6240 | _resultobj = _result; | |
6241 | } | |
6242 | return _resultobj; | |
6243 | } | |
6244 | ||
6245 | #define wxTreeItemData_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
6246 | static PyObject *_wrap_wxTreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6247 | PyObject * _resultobj; | |
6248 | wxPyTreeItemData * _arg0; | |
6249 | PyObject * _arg1; | |
6250 | PyObject * _argo0 = 0; | |
6251 | PyObject * _obj1 = 0; | |
6252 | char *_kwnames[] = { "self","obj", NULL }; | |
6253 | ||
6254 | self = self; | |
6255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetData",_kwnames,&_argo0,&_obj1)) | |
6256 | return NULL; | |
6257 | if (_argo0) { | |
6258 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6259 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
6260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetData. Expected _wxPyTreeItemData_p."); | |
6261 | return NULL; | |
6262 | } | |
6263 | } | |
6264 | { | |
6265 | _arg1 = _obj1; | |
6266 | } | |
6267 | { | |
6268 | wxPy_BEGIN_ALLOW_THREADS; | |
6269 | wxTreeItemData_SetData(_arg0,_arg1); | |
6270 | ||
6271 | wxPy_END_ALLOW_THREADS; | |
6272 | if (PyErr_Occurred()) return NULL; | |
6273 | } Py_INCREF(Py_None); | |
6274 | _resultobj = Py_None; | |
6275 | return _resultobj; | |
6276 | } | |
6277 | ||
6278 | #define wxTreeItemData_GetId(_swigobj) (_swigobj->GetId()) | |
6279 | static PyObject *_wrap_wxTreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6280 | PyObject * _resultobj; | |
6281 | wxTreeItemId * _result; | |
6282 | wxPyTreeItemData * _arg0; | |
6283 | PyObject * _argo0 = 0; | |
6284 | char *_kwnames[] = { "self", NULL }; | |
6285 | char _ptemp[128]; | |
6286 | ||
6287 | self = self; | |
6288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetId",_kwnames,&_argo0)) | |
6289 | return NULL; | |
6290 | if (_argo0) { | |
6291 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6292 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
6293 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetId. Expected _wxPyTreeItemData_p."); | |
6294 | return NULL; | |
6295 | } | |
6296 | } | |
6297 | { | |
6298 | wxPy_BEGIN_ALLOW_THREADS; | |
6299 | const wxTreeItemId & _result_ref = wxTreeItemData_GetId(_arg0); | |
6300 | _result = (wxTreeItemId *) &_result_ref; | |
6301 | ||
6302 | wxPy_END_ALLOW_THREADS; | |
6303 | if (PyErr_Occurred()) return NULL; | |
6304 | } if (_result) { | |
6305 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
6306 | _resultobj = Py_BuildValue("s",_ptemp); | |
6307 | } else { | |
6308 | Py_INCREF(Py_None); | |
6309 | _resultobj = Py_None; | |
6310 | } | |
6311 | return _resultobj; | |
6312 | } | |
6313 | ||
6314 | #define wxTreeItemData_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
6315 | static PyObject *_wrap_wxTreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6316 | PyObject * _resultobj; | |
6317 | wxPyTreeItemData * _arg0; | |
6318 | wxTreeItemId * _arg1; | |
6319 | PyObject * _argo0 = 0; | |
6320 | PyObject * _argo1 = 0; | |
6321 | char *_kwnames[] = { "self","id", NULL }; | |
630d84f2 RD |
6322 | |
6323 | self = self; | |
efc5f224 | 6324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetId",_kwnames,&_argo0,&_argo1)) |
630d84f2 | 6325 | return NULL; |
1d99702e RD |
6326 | if (_argo0) { |
6327 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6328 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 6329 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetId. Expected _wxPyTreeItemData_p."); |
630d84f2 RD |
6330 | return NULL; |
6331 | } | |
6332 | } | |
1d99702e RD |
6333 | if (_argo1) { |
6334 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6335 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
630d84f2 RD |
6336 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemData_SetId. Expected _wxTreeItemId_p."); |
6337 | return NULL; | |
6338 | } | |
6339 | } | |
cf694132 RD |
6340 | { |
6341 | wxPy_BEGIN_ALLOW_THREADS; | |
6342 | wxTreeItemData_SetId(_arg0,*_arg1); | |
6343 | ||
6344 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6345 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6346 | } Py_INCREF(Py_None); |
630d84f2 RD |
6347 | _resultobj = Py_None; |
6348 | return _resultobj; | |
6349 | } | |
6350 | ||
8bf5d46e RD |
6351 | static void *SwigwxTreeEventTowxNotifyEvent(void *ptr) { |
6352 | wxTreeEvent *src; | |
6353 | wxNotifyEvent *dest; | |
6354 | src = (wxTreeEvent *) ptr; | |
6355 | dest = (wxNotifyEvent *) src; | |
6356 | return (void *) dest; | |
6357 | } | |
6358 | ||
8ab979d7 RD |
6359 | static void *SwigwxTreeEventTowxCommandEvent(void *ptr) { |
6360 | wxTreeEvent *src; | |
6361 | wxCommandEvent *dest; | |
6362 | src = (wxTreeEvent *) ptr; | |
6363 | dest = (wxCommandEvent *) src; | |
6364 | return (void *) dest; | |
6365 | } | |
6366 | ||
6367 | static void *SwigwxTreeEventTowxEvent(void *ptr) { | |
6368 | wxTreeEvent *src; | |
6369 | wxEvent *dest; | |
6370 | src = (wxTreeEvent *) ptr; | |
6371 | dest = (wxEvent *) src; | |
6372 | return (void *) dest; | |
6373 | } | |
6374 | ||
9df61a29 RD |
6375 | static void *SwigwxTreeEventTowxObject(void *ptr) { |
6376 | wxTreeEvent *src; | |
6377 | wxObject *dest; | |
6378 | src = (wxTreeEvent *) ptr; | |
6379 | dest = (wxObject *) src; | |
6380 | return (void *) dest; | |
6381 | } | |
6382 | ||
aa2a5b86 RD |
6383 | #define new_wxTreeEvent(_swigarg0,_swigarg1) (new wxTreeEvent(_swigarg0,_swigarg1)) |
6384 | static PyObject *_wrap_new_wxTreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6385 | PyObject * _resultobj; | |
6386 | wxTreeEvent * _result; | |
6387 | wxEventType _arg0 = (wxEventType ) wxEVT_NULL; | |
6388 | int _arg1 = (int ) 0; | |
6389 | char *_kwnames[] = { "commandType","id", NULL }; | |
6390 | char _ptemp[128]; | |
6391 | ||
6392 | self = self; | |
6393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxTreeEvent",_kwnames,&_arg0,&_arg1)) | |
6394 | return NULL; | |
6395 | { | |
6396 | wxPy_BEGIN_ALLOW_THREADS; | |
6397 | _result = (wxTreeEvent *)new_wxTreeEvent(_arg0,_arg1); | |
6398 | ||
6399 | wxPy_END_ALLOW_THREADS; | |
6400 | if (PyErr_Occurred()) return NULL; | |
6401 | } if (_result) { | |
6402 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeEvent_p"); | |
6403 | _resultobj = Py_BuildValue("s",_ptemp); | |
6404 | } else { | |
6405 | Py_INCREF(Py_None); | |
6406 | _resultobj = Py_None; | |
6407 | } | |
6408 | return _resultobj; | |
6409 | } | |
6410 | ||
d5c9047a | 6411 | #define wxTreeEvent_GetItem(_swigobj) (_swigobj->GetItem()) |
efc5f224 | 6412 | static PyObject *_wrap_wxTreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6413 | PyObject * _resultobj; |
d5c9047a | 6414 | wxTreeItemId * _result; |
8ab979d7 | 6415 | wxTreeEvent * _arg0; |
1d99702e | 6416 | PyObject * _argo0 = 0; |
efc5f224 | 6417 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 6418 | char _ptemp[128]; |
8ab979d7 RD |
6419 | |
6420 | self = self; | |
efc5f224 | 6421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetItem",_kwnames,&_argo0)) |
8ab979d7 | 6422 | return NULL; |
1d99702e RD |
6423 | if (_argo0) { |
6424 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6425 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6426 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetItem. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6427 | return NULL; |
6428 | } | |
6429 | } | |
cf694132 RD |
6430 | { |
6431 | wxPy_BEGIN_ALLOW_THREADS; | |
6432 | _result = new wxTreeItemId (wxTreeEvent_GetItem(_arg0)); | |
6433 | ||
6434 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6435 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6436 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 6437 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6438 | return _resultobj; |
6439 | } | |
6440 | ||
d5c9047a | 6441 | #define wxTreeEvent_GetOldItem(_swigobj) (_swigobj->GetOldItem()) |
efc5f224 | 6442 | static PyObject *_wrap_wxTreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6443 | PyObject * _resultobj; |
d5c9047a | 6444 | wxTreeItemId * _result; |
8ab979d7 | 6445 | wxTreeEvent * _arg0; |
1d99702e | 6446 | PyObject * _argo0 = 0; |
efc5f224 | 6447 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6448 | char _ptemp[128]; |
6449 | ||
6450 | self = self; | |
efc5f224 | 6451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetOldItem",_kwnames,&_argo0)) |
8ab979d7 | 6452 | return NULL; |
1d99702e RD |
6453 | if (_argo0) { |
6454 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6455 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6456 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetOldItem. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6457 | return NULL; |
6458 | } | |
6459 | } | |
cf694132 RD |
6460 | { |
6461 | wxPy_BEGIN_ALLOW_THREADS; | |
6462 | _result = new wxTreeItemId (wxTreeEvent_GetOldItem(_arg0)); | |
6463 | ||
6464 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6465 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6466 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
8ab979d7 RD |
6467 | _resultobj = Py_BuildValue("s",_ptemp); |
6468 | return _resultobj; | |
6469 | } | |
6470 | ||
d5c9047a | 6471 | #define wxTreeEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) |
efc5f224 | 6472 | static PyObject *_wrap_wxTreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6473 | PyObject * _resultobj; |
d5c9047a | 6474 | wxPoint * _result; |
8ab979d7 | 6475 | wxTreeEvent * _arg0; |
1d99702e | 6476 | PyObject * _argo0 = 0; |
efc5f224 | 6477 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 6478 | char _ptemp[128]; |
8ab979d7 RD |
6479 | |
6480 | self = self; | |
efc5f224 | 6481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetPoint",_kwnames,&_argo0)) |
8ab979d7 | 6482 | return NULL; |
1d99702e RD |
6483 | if (_argo0) { |
6484 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6485 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6486 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetPoint. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6487 | return NULL; |
6488 | } | |
6489 | } | |
cf694132 RD |
6490 | { |
6491 | wxPy_BEGIN_ALLOW_THREADS; | |
6492 | _result = new wxPoint (wxTreeEvent_GetPoint(_arg0)); | |
6493 | ||
6494 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6495 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6496 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
d5c9047a | 6497 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6498 | return _resultobj; |
6499 | } | |
6500 | ||
65191ae8 RD |
6501 | #define wxTreeEvent_GetKeyEvent(_swigobj) (_swigobj->GetKeyEvent()) |
6502 | static PyObject *_wrap_wxTreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6503 | PyObject * _resultobj; | |
6504 | wxKeyEvent * _result; | |
6505 | wxTreeEvent * _arg0; | |
6506 | PyObject * _argo0 = 0; | |
6507 | char *_kwnames[] = { "self", NULL }; | |
6508 | char _ptemp[128]; | |
6509 | ||
6510 | self = self; | |
6511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetKeyEvent",_kwnames,&_argo0)) | |
6512 | return NULL; | |
6513 | if (_argo0) { | |
6514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
6516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetKeyEvent. Expected _wxTreeEvent_p."); | |
6517 | return NULL; | |
6518 | } | |
6519 | } | |
6520 | { | |
6521 | wxPy_BEGIN_ALLOW_THREADS; | |
6522 | const wxKeyEvent & _result_ref = wxTreeEvent_GetKeyEvent(_arg0); | |
6523 | _result = (wxKeyEvent *) &_result_ref; | |
6524 | ||
6525 | wxPy_END_ALLOW_THREADS; | |
6526 | if (PyErr_Occurred()) return NULL; | |
6527 | } if (_result) { | |
6528 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxKeyEvent_p"); | |
6529 | _resultobj = Py_BuildValue("s",_ptemp); | |
6530 | } else { | |
6531 | Py_INCREF(Py_None); | |
6532 | _resultobj = Py_None; | |
6533 | } | |
6534 | return _resultobj; | |
6535 | } | |
6536 | ||
d5c9047a | 6537 | #define wxTreeEvent_GetCode(_swigobj) (_swigobj->GetCode()) |
efc5f224 | 6538 | static PyObject *_wrap_wxTreeEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6539 | PyObject * _resultobj; |
d5c9047a | 6540 | int _result; |
8ab979d7 | 6541 | wxTreeEvent * _arg0; |
1d99702e | 6542 | PyObject * _argo0 = 0; |
efc5f224 | 6543 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6544 | |
6545 | self = self; | |
efc5f224 | 6546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetCode",_kwnames,&_argo0)) |
8ab979d7 | 6547 | return NULL; |
1d99702e RD |
6548 | if (_argo0) { |
6549 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6550 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 6551 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetCode. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
6552 | return NULL; |
6553 | } | |
6554 | } | |
cf694132 RD |
6555 | { |
6556 | wxPy_BEGIN_ALLOW_THREADS; | |
6557 | _result = (int )wxTreeEvent_GetCode(_arg0); | |
6558 | ||
6559 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6560 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6561 | } _resultobj = Py_BuildValue("i",_result); |
d5c9047a RD |
6562 | return _resultobj; |
6563 | } | |
6564 | ||
8bf5d46e | 6565 | #define wxTreeEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 6566 | static PyObject *_wrap_wxTreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 6567 | PyObject * _resultobj; |
8bf5d46e | 6568 | wxString * _result; |
d5c9047a | 6569 | wxTreeEvent * _arg0; |
1d99702e | 6570 | PyObject * _argo0 = 0; |
efc5f224 | 6571 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
6572 | |
6573 | self = self; | |
efc5f224 | 6574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetLabel",_kwnames,&_argo0)) |
d5c9047a | 6575 | return NULL; |
1d99702e RD |
6576 | if (_argo0) { |
6577 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6578 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
8bf5d46e | 6579 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetLabel. Expected _wxTreeEvent_p."); |
d5c9047a RD |
6580 | return NULL; |
6581 | } | |
6582 | } | |
cf694132 RD |
6583 | { |
6584 | wxPy_BEGIN_ALLOW_THREADS; | |
8bf5d46e RD |
6585 | const wxString & _result_ref = wxTreeEvent_GetLabel(_arg0); |
6586 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
6587 | |
6588 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6589 | if (PyErr_Occurred()) return NULL; |
8bf5d46e | 6590 | }{ |
eec92d76 | 6591 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8bf5d46e | 6592 | } |
8ab979d7 RD |
6593 | return _resultobj; |
6594 | } | |
6595 | ||
f6bcfd97 BP |
6596 | static void *SwigwxPyTreeCtrlTowxControl(void *ptr) { |
6597 | wxPyTreeCtrl *src; | |
8ab979d7 | 6598 | wxControl *dest; |
f6bcfd97 | 6599 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
6600 | dest = (wxControl *) src; |
6601 | return (void *) dest; | |
6602 | } | |
6603 | ||
f6bcfd97 BP |
6604 | static void *SwigwxPyTreeCtrlTowxWindow(void *ptr) { |
6605 | wxPyTreeCtrl *src; | |
8ab979d7 | 6606 | wxWindow *dest; |
f6bcfd97 | 6607 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
6608 | dest = (wxWindow *) src; |
6609 | return (void *) dest; | |
6610 | } | |
6611 | ||
f6bcfd97 BP |
6612 | static void *SwigwxPyTreeCtrlTowxEvtHandler(void *ptr) { |
6613 | wxPyTreeCtrl *src; | |
8ab979d7 | 6614 | wxEvtHandler *dest; |
f6bcfd97 | 6615 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
6616 | dest = (wxEvtHandler *) src; |
6617 | return (void *) dest; | |
6618 | } | |
6619 | ||
9df61a29 RD |
6620 | static void *SwigwxPyTreeCtrlTowxObject(void *ptr) { |
6621 | wxPyTreeCtrl *src; | |
6622 | wxObject *dest; | |
6623 | src = (wxPyTreeCtrl *) ptr; | |
6624 | dest = (wxObject *) src; | |
6625 | return (void *) dest; | |
6626 | } | |
6627 | ||
f6bcfd97 | 6628 | #define new_wxTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 6629 | static PyObject *_wrap_new_wxTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6630 | PyObject * _resultobj; |
f6bcfd97 | 6631 | wxPyTreeCtrl * _result; |
8ab979d7 | 6632 | wxWindow * _arg0; |
1d99702e | 6633 | wxWindowID _arg1 = (wxWindowID ) -1; |
b68dc582 RD |
6634 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
6635 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
aa2a5b86 | 6636 | long _arg4 = (long ) (wxTR_HAS_BUTTONS)|(wxTR_LINES_AT_ROOT); |
b68dc582 | 6637 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
6638 | char * _arg6 = (char *) "wxTreeCtrl"; |
6639 | PyObject * _argo0 = 0; | |
2f90df85 RD |
6640 | wxPoint temp; |
6641 | PyObject * _obj2 = 0; | |
6642 | wxSize temp0; | |
6643 | PyObject * _obj3 = 0; | |
1d99702e | 6644 | PyObject * _argo5 = 0; |
efc5f224 | 6645 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
6646 | char _ptemp[128]; |
6647 | ||
6648 | self = self; | |
2f90df85 | 6649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxTreeCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) |
8ab979d7 | 6650 | return NULL; |
1d99702e RD |
6651 | if (_argo0) { |
6652 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6653 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6654 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTreeCtrl. Expected _wxWindow_p."); |
6655 | return NULL; | |
6656 | } | |
6657 | } | |
2f90df85 RD |
6658 | if (_obj2) |
6659 | { | |
6660 | _arg2 = &temp; | |
6661 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 6662 | return NULL; |
2f90df85 RD |
6663 | } |
6664 | if (_obj3) | |
6665 | { | |
6666 | _arg3 = &temp0; | |
6667 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 6668 | return NULL; |
2f90df85 | 6669 | } |
1d99702e RD |
6670 | if (_argo5) { |
6671 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
6672 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
8ab979d7 RD |
6673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxTreeCtrl. Expected _wxValidator_p."); |
6674 | return NULL; | |
6675 | } | |
6676 | } | |
cf694132 RD |
6677 | { |
6678 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 6679 | _result = (wxPyTreeCtrl *)new_wxTreeCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); |
cf694132 RD |
6680 | |
6681 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6682 | if (PyErr_Occurred()) return NULL; |
1d99702e | 6683 | } if (_result) { |
f6bcfd97 | 6684 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p"); |
1d99702e RD |
6685 | _resultobj = Py_BuildValue("s",_ptemp); |
6686 | } else { | |
6687 | Py_INCREF(Py_None); | |
6688 | _resultobj = Py_None; | |
6689 | } | |
8ab979d7 RD |
6690 | return _resultobj; |
6691 | } | |
6692 | ||
aa2a5b86 RD |
6693 | #define new_wxPreTreeCtrl() (new wxPyTreeCtrl()) |
6694 | static PyObject *_wrap_new_wxPreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f6bcfd97 | 6695 | PyObject * _resultobj; |
aa2a5b86 RD |
6696 | wxPyTreeCtrl * _result; |
6697 | char *_kwnames[] = { NULL }; | |
6698 | char _ptemp[128]; | |
6699 | ||
6700 | self = self; | |
6701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreTreeCtrl",_kwnames)) | |
6702 | return NULL; | |
6703 | { | |
6704 | wxPy_BEGIN_ALLOW_THREADS; | |
6705 | _result = (wxPyTreeCtrl *)new_wxPreTreeCtrl(); | |
6706 | ||
6707 | wxPy_END_ALLOW_THREADS; | |
6708 | if (PyErr_Occurred()) return NULL; | |
6709 | } if (_result) { | |
6710 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p"); | |
6711 | _resultobj = Py_BuildValue("s",_ptemp); | |
6712 | } else { | |
6713 | Py_INCREF(Py_None); | |
6714 | _resultobj = Py_None; | |
6715 | } | |
6716 | return _resultobj; | |
6717 | } | |
6718 | ||
6719 | #define wxTreeCtrl_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
6720 | static PyObject *_wrap_wxTreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6721 | PyObject * _resultobj; | |
6722 | bool _result; | |
f6bcfd97 | 6723 | wxPyTreeCtrl * _arg0; |
aa2a5b86 RD |
6724 | wxWindow * _arg1; |
6725 | wxWindowID _arg2 = (wxWindowID ) -1; | |
6726 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6727 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6728 | long _arg5 = (long ) (wxTR_HAS_BUTTONS)|(wxTR_LINES_AT_ROOT); | |
6729 | wxValidator * _arg6 = (wxValidator *) &wxDefaultValidator; | |
6730 | char * _arg7 = (char *) "wxTreeCtrl"; | |
f6bcfd97 | 6731 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
6732 | PyObject * _argo1 = 0; |
6733 | wxPoint temp; | |
6734 | PyObject * _obj3 = 0; | |
6735 | wxSize temp0; | |
6736 | PyObject * _obj4 = 0; | |
6737 | PyObject * _argo6 = 0; | |
6738 | char *_kwnames[] = { "self","parent","id","pos","size","style","validator","name", NULL }; | |
f6bcfd97 BP |
6739 | |
6740 | self = self; | |
aa2a5b86 | 6741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlOs:wxTreeCtrl_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7)) |
f6bcfd97 BP |
6742 | return NULL; |
6743 | if (_argo0) { | |
6744 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6745 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
aa2a5b86 RD |
6746 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Create. Expected _wxPyTreeCtrl_p."); |
6747 | return NULL; | |
6748 | } | |
6749 | } | |
6750 | if (_argo1) { | |
6751 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6752 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6753 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Create. Expected _wxWindow_p."); | |
f6bcfd97 BP |
6754 | return NULL; |
6755 | } | |
6756 | } | |
aa2a5b86 | 6757 | if (_obj3) |
f6bcfd97 | 6758 | { |
aa2a5b86 RD |
6759 | _arg3 = &temp; |
6760 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6761 | return NULL; | |
f6bcfd97 | 6762 | } |
aa2a5b86 | 6763 | if (_obj4) |
f6bcfd97 | 6764 | { |
aa2a5b86 RD |
6765 | _arg4 = &temp0; |
6766 | if (! wxSize_helper(_obj4, &_arg4)) | |
6767 | return NULL; | |
f6bcfd97 | 6768 | } |
aa2a5b86 RD |
6769 | if (_argo6) { |
6770 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
6771 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxValidator_p")) { | |
6772 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_Create. Expected _wxValidator_p."); | |
6773 | return NULL; | |
6774 | } | |
6775 | } | |
f6bcfd97 BP |
6776 | { |
6777 | wxPy_BEGIN_ALLOW_THREADS; | |
aa2a5b86 | 6778 | _result = (bool )wxTreeCtrl_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6,_arg7); |
f6bcfd97 BP |
6779 | |
6780 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6781 | if (PyErr_Occurred()) return NULL; |
aa2a5b86 | 6782 | } _resultobj = Py_BuildValue("i",_result); |
f6bcfd97 BP |
6783 | return _resultobj; |
6784 | } | |
6785 | ||
aa2a5b86 RD |
6786 | #define wxTreeCtrl__setSelf(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setSelf(_swigarg0,_swigarg1)) |
6787 | static PyObject *_wrap_wxTreeCtrl__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9c4165ad RD |
6788 | PyObject * _resultobj; |
6789 | wxPyTreeCtrl * _arg0; | |
aa2a5b86 RD |
6790 | PyObject * _arg1; |
6791 | PyObject * _arg2; | |
9c4165ad | 6792 | PyObject * _argo0 = 0; |
aa2a5b86 RD |
6793 | PyObject * _obj1 = 0; |
6794 | PyObject * _obj2 = 0; | |
6795 | char *_kwnames[] = { "self","self","_class", NULL }; | |
9c4165ad RD |
6796 | |
6797 | self = self; | |
aa2a5b86 | 6798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl__setSelf",_kwnames,&_argo0,&_obj1,&_obj2)) |
9c4165ad RD |
6799 | return NULL; |
6800 | if (_argo0) { | |
6801 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6802 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
aa2a5b86 | 6803 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl__setSelf. Expected _wxPyTreeCtrl_p."); |
9c4165ad RD |
6804 | return NULL; |
6805 | } | |
6806 | } | |
aa2a5b86 RD |
6807 | { |
6808 | _arg1 = _obj1; | |
6809 | } | |
6810 | { | |
6811 | _arg2 = _obj2; | |
6812 | } | |
9c4165ad RD |
6813 | { |
6814 | wxPy_BEGIN_ALLOW_THREADS; | |
aa2a5b86 | 6815 | wxTreeCtrl__setSelf(_arg0,_arg1,_arg2); |
9c4165ad RD |
6816 | |
6817 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6818 | if (PyErr_Occurred()) return NULL; |
9c4165ad RD |
6819 | } Py_INCREF(Py_None); |
6820 | _resultobj = Py_None; | |
6821 | return _resultobj; | |
6822 | } | |
6823 | ||
d5c9047a | 6824 | #define wxTreeCtrl_GetCount(_swigobj) (_swigobj->GetCount()) |
efc5f224 | 6825 | static PyObject *_wrap_wxTreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6826 | PyObject * _resultobj; |
c127177f | 6827 | size_t _result; |
f6bcfd97 | 6828 | wxPyTreeCtrl * _arg0; |
1d99702e | 6829 | PyObject * _argo0 = 0; |
efc5f224 | 6830 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6831 | |
6832 | self = self; | |
efc5f224 | 6833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetCount",_kwnames,&_argo0)) |
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_GetCount. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6839 | return NULL; |
6840 | } | |
6841 | } | |
cf694132 RD |
6842 | { |
6843 | wxPy_BEGIN_ALLOW_THREADS; | |
c127177f | 6844 | _result = (size_t )wxTreeCtrl_GetCount(_arg0); |
cf694132 RD |
6845 | |
6846 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6847 | if (PyErr_Occurred()) return NULL; |
c127177f | 6848 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6849 | return _resultobj; |
6850 | } | |
6851 | ||
d5c9047a | 6852 | #define wxTreeCtrl_GetIndent(_swigobj) (_swigobj->GetIndent()) |
efc5f224 | 6853 | static PyObject *_wrap_wxTreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6854 | PyObject * _resultobj; |
d5c9047a | 6855 | unsigned int _result; |
f6bcfd97 | 6856 | wxPyTreeCtrl * _arg0; |
1d99702e | 6857 | PyObject * _argo0 = 0; |
efc5f224 | 6858 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6859 | |
6860 | self = self; | |
efc5f224 | 6861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetIndent",_kwnames,&_argo0)) |
8ab979d7 | 6862 | return NULL; |
1d99702e RD |
6863 | if (_argo0) { |
6864 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6865 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6866 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetIndent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6867 | return NULL; |
6868 | } | |
6869 | } | |
cf694132 RD |
6870 | { |
6871 | wxPy_BEGIN_ALLOW_THREADS; | |
6872 | _result = (unsigned int )wxTreeCtrl_GetIndent(_arg0); | |
6873 | ||
6874 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6875 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6876 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6877 | return _resultobj; |
6878 | } | |
6879 | ||
d5c9047a | 6880 | #define wxTreeCtrl_SetIndent(_swigobj,_swigarg0) (_swigobj->SetIndent(_swigarg0)) |
efc5f224 | 6881 | static PyObject *_wrap_wxTreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6882 | PyObject * _resultobj; |
f6bcfd97 | 6883 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6884 | unsigned int _arg1; |
1d99702e | 6885 | PyObject * _argo0 = 0; |
efc5f224 | 6886 | char *_kwnames[] = { "self","indent", NULL }; |
8ab979d7 RD |
6887 | |
6888 | self = self; | |
efc5f224 | 6889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetIndent",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6890 | return NULL; |
1d99702e RD |
6891 | if (_argo0) { |
6892 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6893 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6894 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetIndent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6895 | return NULL; |
6896 | } | |
6897 | } | |
cf694132 RD |
6898 | { |
6899 | wxPy_BEGIN_ALLOW_THREADS; | |
6900 | wxTreeCtrl_SetIndent(_arg0,_arg1); | |
6901 | ||
6902 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6903 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6904 | } Py_INCREF(Py_None); |
d5c9047a | 6905 | _resultobj = Py_None; |
8ab979d7 RD |
6906 | return _resultobj; |
6907 | } | |
6908 | ||
d5c9047a | 6909 | #define wxTreeCtrl_GetImageList(_swigobj) (_swigobj->GetImageList()) |
efc5f224 | 6910 | static PyObject *_wrap_wxTreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6911 | PyObject * _resultobj; |
d5c9047a | 6912 | wxImageList * _result; |
f6bcfd97 | 6913 | wxPyTreeCtrl * _arg0; |
1d99702e | 6914 | PyObject * _argo0 = 0; |
efc5f224 | 6915 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6916 | |
6917 | self = self; | |
efc5f224 | 6918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetImageList",_kwnames,&_argo0)) |
8ab979d7 | 6919 | return NULL; |
1d99702e RD |
6920 | if (_argo0) { |
6921 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6922 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6923 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6924 | return NULL; |
6925 | } | |
6926 | } | |
cf694132 RD |
6927 | { |
6928 | wxPy_BEGIN_ALLOW_THREADS; | |
6929 | _result = (wxImageList *)wxTreeCtrl_GetImageList(_arg0); | |
6930 | ||
6931 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6932 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 6933 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
6934 | return _resultobj; |
6935 | } | |
6936 | ||
d5c9047a | 6937 | #define wxTreeCtrl_GetStateImageList(_swigobj) (_swigobj->GetStateImageList()) |
efc5f224 | 6938 | static PyObject *_wrap_wxTreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6939 | PyObject * _resultobj; |
d5c9047a | 6940 | wxImageList * _result; |
f6bcfd97 | 6941 | wxPyTreeCtrl * _arg0; |
1d99702e | 6942 | PyObject * _argo0 = 0; |
efc5f224 | 6943 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6944 | |
6945 | self = self; | |
efc5f224 | 6946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetStateImageList",_kwnames,&_argo0)) |
8ab979d7 | 6947 | return NULL; |
1d99702e RD |
6948 | if (_argo0) { |
6949 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6950 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6951 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetStateImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6952 | return NULL; |
6953 | } | |
6954 | } | |
cf694132 RD |
6955 | { |
6956 | wxPy_BEGIN_ALLOW_THREADS; | |
6957 | _result = (wxImageList *)wxTreeCtrl_GetStateImageList(_arg0); | |
6958 | ||
6959 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6960 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 6961 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
6962 | return _resultobj; |
6963 | } | |
6964 | ||
d5c9047a | 6965 | #define wxTreeCtrl_SetImageList(_swigobj,_swigarg0) (_swigobj->SetImageList(_swigarg0)) |
efc5f224 | 6966 | static PyObject *_wrap_wxTreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6967 | PyObject * _resultobj; |
f6bcfd97 | 6968 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6969 | wxImageList * _arg1; |
1d99702e RD |
6970 | PyObject * _argo0 = 0; |
6971 | PyObject * _argo1 = 0; | |
efc5f224 | 6972 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
6973 | |
6974 | self = self; | |
efc5f224 | 6975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6976 | return NULL; |
1d99702e RD |
6977 | if (_argo0) { |
6978 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6979 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6980 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6981 | return NULL; |
6982 | } | |
6983 | } | |
1d99702e RD |
6984 | if (_argo1) { |
6985 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6986 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
d5c9047a RD |
6987 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetImageList. Expected _wxImageList_p."); |
6988 | return NULL; | |
6989 | } | |
6990 | } | |
cf694132 RD |
6991 | { |
6992 | wxPy_BEGIN_ALLOW_THREADS; | |
6993 | wxTreeCtrl_SetImageList(_arg0,_arg1); | |
6994 | ||
6995 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 6996 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6997 | } Py_INCREF(Py_None); |
d5c9047a | 6998 | _resultobj = Py_None; |
8ab979d7 RD |
6999 | return _resultobj; |
7000 | } | |
7001 | ||
d5c9047a | 7002 | #define wxTreeCtrl_SetStateImageList(_swigobj,_swigarg0) (_swigobj->SetStateImageList(_swigarg0)) |
efc5f224 | 7003 | static PyObject *_wrap_wxTreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7004 | PyObject * _resultobj; |
f6bcfd97 | 7005 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7006 | wxImageList * _arg1; |
1d99702e RD |
7007 | PyObject * _argo0 = 0; |
7008 | PyObject * _argo1 = 0; | |
efc5f224 | 7009 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
7010 | |
7011 | self = self; | |
efc5f224 | 7012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetStateImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7013 | return NULL; |
1d99702e RD |
7014 | if (_argo0) { |
7015 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7016 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7017 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetStateImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7018 | return NULL; |
7019 | } | |
7020 | } | |
1d99702e RD |
7021 | if (_argo1) { |
7022 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7023 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
d5c9047a RD |
7024 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetStateImageList. Expected _wxImageList_p."); |
7025 | return NULL; | |
7026 | } | |
7027 | } | |
cf694132 RD |
7028 | { |
7029 | wxPy_BEGIN_ALLOW_THREADS; | |
7030 | wxTreeCtrl_SetStateImageList(_arg0,_arg1); | |
7031 | ||
7032 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7033 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7034 | } Py_INCREF(Py_None); |
d5c9047a | 7035 | _resultobj = Py_None; |
8ab979d7 RD |
7036 | return _resultobj; |
7037 | } | |
7038 | ||
aa2a5b86 RD |
7039 | #define wxTreeCtrl_AssignImageList(_swigobj,_swigarg0) (_swigobj->AssignImageList(_swigarg0)) |
7040 | static PyObject *_wrap_wxTreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7041 | PyObject * _resultobj; | |
7042 | wxPyTreeCtrl * _arg0; | |
7043 | wxImageList * _arg1; | |
7044 | PyObject * _argo0 = 0; | |
7045 | PyObject * _argo1 = 0; | |
7046 | char *_kwnames[] = { "self","imageList", NULL }; | |
7047 | ||
7048 | self = self; | |
7049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignImageList",_kwnames,&_argo0,&_argo1)) | |
7050 | return NULL; | |
7051 | if (_argo0) { | |
7052 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7053 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7054 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignImageList. Expected _wxPyTreeCtrl_p."); | |
7055 | return NULL; | |
7056 | } | |
7057 | } | |
7058 | if (_argo1) { | |
7059 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7060 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
7061 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignImageList. Expected _wxImageList_p."); | |
7062 | return NULL; | |
7063 | } | |
7064 | } | |
7065 | { | |
7066 | wxPy_BEGIN_ALLOW_THREADS; | |
7067 | wxTreeCtrl_AssignImageList(_arg0,_arg1); | |
7068 | ||
7069 | wxPy_END_ALLOW_THREADS; | |
7070 | if (PyErr_Occurred()) return NULL; | |
7071 | } Py_INCREF(Py_None); | |
7072 | _resultobj = Py_None; | |
7073 | return _resultobj; | |
7074 | } | |
7075 | ||
7076 | #define wxTreeCtrl_AssignStateImageList(_swigobj,_swigarg0) (_swigobj->AssignStateImageList(_swigarg0)) | |
7077 | static PyObject *_wrap_wxTreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7078 | PyObject * _resultobj; | |
7079 | wxPyTreeCtrl * _arg0; | |
7080 | wxImageList * _arg1; | |
7081 | PyObject * _argo0 = 0; | |
7082 | PyObject * _argo1 = 0; | |
7083 | char *_kwnames[] = { "self","imageList", NULL }; | |
7084 | ||
7085 | self = self; | |
7086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignStateImageList",_kwnames,&_argo0,&_argo1)) | |
7087 | return NULL; | |
7088 | if (_argo0) { | |
7089 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7090 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7091 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignStateImageList. Expected _wxPyTreeCtrl_p."); | |
7092 | return NULL; | |
7093 | } | |
7094 | } | |
7095 | if (_argo1) { | |
7096 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7097 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
7098 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignStateImageList. Expected _wxImageList_p."); | |
7099 | return NULL; | |
7100 | } | |
7101 | } | |
7102 | { | |
7103 | wxPy_BEGIN_ALLOW_THREADS; | |
7104 | wxTreeCtrl_AssignStateImageList(_arg0,_arg1); | |
7105 | ||
7106 | wxPy_END_ALLOW_THREADS; | |
7107 | if (PyErr_Occurred()) return NULL; | |
7108 | } Py_INCREF(Py_None); | |
7109 | _resultobj = Py_None; | |
7110 | return _resultobj; | |
7111 | } | |
7112 | ||
b1462dfa RD |
7113 | #define wxTreeCtrl_GetSpacing(_swigobj) (_swigobj->GetSpacing()) |
7114 | static PyObject *_wrap_wxTreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7115 | PyObject * _resultobj; | |
7116 | unsigned int _result; | |
f6bcfd97 | 7117 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
7118 | PyObject * _argo0 = 0; |
7119 | char *_kwnames[] = { "self", NULL }; | |
7120 | ||
7121 | self = self; | |
7122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSpacing",_kwnames,&_argo0)) | |
7123 | return NULL; | |
7124 | if (_argo0) { | |
7125 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7126 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7127 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSpacing. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
7128 | return NULL; |
7129 | } | |
7130 | } | |
7131 | { | |
7132 | wxPy_BEGIN_ALLOW_THREADS; | |
7133 | _result = (unsigned int )wxTreeCtrl_GetSpacing(_arg0); | |
7134 | ||
7135 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7136 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7137 | } _resultobj = Py_BuildValue("i",_result); |
7138 | return _resultobj; | |
7139 | } | |
7140 | ||
7141 | #define wxTreeCtrl_SetSpacing(_swigobj,_swigarg0) (_swigobj->SetSpacing(_swigarg0)) | |
7142 | static PyObject *_wrap_wxTreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7143 | PyObject * _resultobj; | |
f6bcfd97 | 7144 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
7145 | unsigned int _arg1; |
7146 | PyObject * _argo0 = 0; | |
7147 | char *_kwnames[] = { "self","spacing", NULL }; | |
7148 | ||
7149 | self = self; | |
7150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetSpacing",_kwnames,&_argo0,&_arg1)) | |
7151 | return NULL; | |
7152 | if (_argo0) { | |
7153 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7154 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7155 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetSpacing. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
7156 | return NULL; |
7157 | } | |
7158 | } | |
7159 | { | |
7160 | wxPy_BEGIN_ALLOW_THREADS; | |
7161 | wxTreeCtrl_SetSpacing(_arg0,_arg1); | |
7162 | ||
7163 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7164 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
7165 | } Py_INCREF(Py_None); |
7166 | _resultobj = Py_None; | |
7167 | return _resultobj; | |
7168 | } | |
7169 | ||
d5c9047a | 7170 | #define wxTreeCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) |
efc5f224 | 7171 | static PyObject *_wrap_wxTreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7172 | PyObject * _resultobj; |
d5c9047a | 7173 | wxString * _result; |
f6bcfd97 | 7174 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7175 | wxTreeItemId * _arg1; |
1d99702e RD |
7176 | PyObject * _argo0 = 0; |
7177 | PyObject * _argo1 = 0; | |
efc5f224 | 7178 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7179 | |
7180 | self = self; | |
efc5f224 | 7181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemText",_kwnames,&_argo0,&_argo1)) |
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_GetItemText. 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_GetItemText. Expected _wxTreeItemId_p."); |
7194 | return NULL; | |
7195 | } | |
7196 | } | |
d5c9047a | 7197 | { |
cf694132 RD |
7198 | wxPy_BEGIN_ALLOW_THREADS; |
7199 | _result = new wxString (wxTreeCtrl_GetItemText(_arg0,*_arg1)); | |
7200 | ||
7201 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7202 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7203 | }{ |
eec92d76 | 7204 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
d5c9047a RD |
7205 | } |
7206 | { | |
7207 | delete _result; | |
7208 | } | |
8ab979d7 RD |
7209 | return _resultobj; |
7210 | } | |
7211 | ||
694759cf | 7212 | #define wxTreeCtrl_GetItemImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemImage(_swigarg0,_swigarg1)) |
efc5f224 | 7213 | static PyObject *_wrap_wxTreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7214 | PyObject * _resultobj; |
d5c9047a | 7215 | int _result; |
f6bcfd97 | 7216 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7217 | wxTreeItemId * _arg1; |
694759cf | 7218 | wxTreeItemIcon _arg2 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); |
1d99702e RD |
7219 | PyObject * _argo0 = 0; |
7220 | PyObject * _argo1 = 0; | |
694759cf | 7221 | char *_kwnames[] = { "self","item","which", NULL }; |
8ab979d7 RD |
7222 | |
7223 | self = self; | |
694759cf | 7224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetItemImage",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 7225 | return NULL; |
1d99702e RD |
7226 | if (_argo0) { |
7227 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7228 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7229 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7230 | return NULL; |
7231 | } | |
7232 | } | |
1d99702e RD |
7233 | if (_argo1) { |
7234 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7235 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7236 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemImage. Expected _wxTreeItemId_p."); |
7237 | return NULL; | |
7238 | } | |
7239 | } | |
cf694132 RD |
7240 | { |
7241 | wxPy_BEGIN_ALLOW_THREADS; | |
694759cf | 7242 | _result = (int )wxTreeCtrl_GetItemImage(_arg0,*_arg1,_arg2); |
cf694132 RD |
7243 | |
7244 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7245 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7246 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7247 | return _resultobj; |
7248 | } | |
7249 | ||
d5c9047a | 7250 | #define wxTreeCtrl_GetItemSelectedImage(_swigobj,_swigarg0) (_swigobj->GetItemSelectedImage(_swigarg0)) |
efc5f224 | 7251 | static PyObject *_wrap_wxTreeCtrl_GetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7252 | PyObject * _resultobj; |
d5c9047a | 7253 | int _result; |
f6bcfd97 | 7254 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7255 | wxTreeItemId * _arg1; |
1d99702e RD |
7256 | PyObject * _argo0 = 0; |
7257 | PyObject * _argo1 = 0; | |
efc5f224 | 7258 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7259 | |
7260 | self = self; | |
efc5f224 | 7261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemSelectedImage",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7262 | return NULL; |
1d99702e RD |
7263 | if (_argo0) { |
7264 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7265 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7266 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7267 | return NULL; |
7268 | } | |
7269 | } | |
1d99702e RD |
7270 | if (_argo1) { |
7271 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7272 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7273 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemSelectedImage. Expected _wxTreeItemId_p."); |
7274 | return NULL; | |
7275 | } | |
7276 | } | |
cf694132 RD |
7277 | { |
7278 | wxPy_BEGIN_ALLOW_THREADS; | |
7279 | _result = (int )wxTreeCtrl_GetItemSelectedImage(_arg0,*_arg1); | |
8ab979d7 | 7280 | |
cf694132 | 7281 | wxPy_END_ALLOW_THREADS; |
4dfaa61e | 7282 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7283 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7284 | return _resultobj; |
7285 | } | |
7286 | ||
d5c9047a | 7287 | #define wxTreeCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) |
efc5f224 | 7288 | static PyObject *_wrap_wxTreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7289 | PyObject * _resultobj; |
f6bcfd97 | 7290 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7291 | wxTreeItemId * _arg1; |
7292 | wxString * _arg2; | |
1d99702e RD |
7293 | PyObject * _argo0 = 0; |
7294 | PyObject * _argo1 = 0; | |
d5c9047a | 7295 | PyObject * _obj2 = 0; |
efc5f224 | 7296 | char *_kwnames[] = { "self","item","text", NULL }; |
8ab979d7 RD |
7297 | |
7298 | self = self; | |
efc5f224 | 7299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemText",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 7300 | return NULL; |
1d99702e RD |
7301 | if (_argo0) { |
7302 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7303 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7304 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemText. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7305 | return NULL; |
7306 | } | |
7307 | } | |
1d99702e RD |
7308 | if (_argo1) { |
7309 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7310 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7311 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemText. Expected _wxTreeItemId_p."); |
7312 | return NULL; | |
7313 | } | |
7314 | } | |
7315 | { | |
2cd2fac8 RD |
7316 | #if PYTHON_API_VERSION >= 1009 |
7317 | char* tmpPtr; int tmpSize; | |
7318 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 7319 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
7320 | return NULL; |
7321 | } | |
7322 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7323 | return NULL; | |
7324 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7325 | #else | |
d5c9047a RD |
7326 | if (!PyString_Check(_obj2)) { |
7327 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7328 | return NULL; | |
7329 | } | |
2cd2fac8 RD |
7330 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7331 | #endif | |
d5c9047a | 7332 | } |
cf694132 RD |
7333 | { |
7334 | wxPy_BEGIN_ALLOW_THREADS; | |
7335 | wxTreeCtrl_SetItemText(_arg0,*_arg1,*_arg2); | |
7336 | ||
7337 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7338 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7339 | } Py_INCREF(Py_None); |
d5c9047a RD |
7340 | _resultobj = Py_None; |
7341 | { | |
7342 | if (_obj2) | |
7343 | delete _arg2; | |
7344 | } | |
8ab979d7 RD |
7345 | return _resultobj; |
7346 | } | |
7347 | ||
694759cf | 7348 | #define wxTreeCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 7349 | static PyObject *_wrap_wxTreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7350 | PyObject * _resultobj; |
f6bcfd97 | 7351 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7352 | wxTreeItemId * _arg1; |
7353 | int _arg2; | |
694759cf | 7354 | wxTreeItemIcon _arg3 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); |
1d99702e RD |
7355 | PyObject * _argo0 = 0; |
7356 | PyObject * _argo1 = 0; | |
694759cf | 7357 | char *_kwnames[] = { "self","item","image","which", NULL }; |
8ab979d7 RD |
7358 | |
7359 | self = self; | |
694759cf | 7360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|i:wxTreeCtrl_SetItemImage",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8ab979d7 | 7361 | return NULL; |
1d99702e RD |
7362 | if (_argo0) { |
7363 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7364 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7365 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7366 | return NULL; |
7367 | } | |
7368 | } | |
1d99702e RD |
7369 | if (_argo1) { |
7370 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7371 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7372 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemImage. Expected _wxTreeItemId_p."); |
7373 | return NULL; | |
7374 | } | |
7375 | } | |
cf694132 RD |
7376 | { |
7377 | wxPy_BEGIN_ALLOW_THREADS; | |
694759cf | 7378 | wxTreeCtrl_SetItemImage(_arg0,*_arg1,_arg2,_arg3); |
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 | ||
d5c9047a | 7387 | #define wxTreeCtrl_SetItemSelectedImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemSelectedImage(_swigarg0,_swigarg1)) |
efc5f224 | 7388 | static PyObject *_wrap_wxTreeCtrl_SetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7389 | PyObject * _resultobj; |
f6bcfd97 | 7390 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7391 | wxTreeItemId * _arg1; |
7392 | int _arg2; | |
1d99702e RD |
7393 | PyObject * _argo0 = 0; |
7394 | PyObject * _argo1 = 0; | |
efc5f224 | 7395 | char *_kwnames[] = { "self","item","image", NULL }; |
8ab979d7 RD |
7396 | |
7397 | self = self; | |
efc5f224 | 7398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxTreeCtrl_SetItemSelectedImage",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 7399 | return NULL; |
1d99702e RD |
7400 | if (_argo0) { |
7401 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7402 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7404 | return NULL; |
7405 | } | |
7406 | } | |
1d99702e RD |
7407 | if (_argo1) { |
7408 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7409 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemSelectedImage. Expected _wxTreeItemId_p."); |
7411 | return NULL; | |
7412 | } | |
7413 | } | |
cf694132 RD |
7414 | { |
7415 | wxPy_BEGIN_ALLOW_THREADS; | |
7416 | wxTreeCtrl_SetItemSelectedImage(_arg0,*_arg1,_arg2); | |
7417 | ||
7418 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7419 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
7420 | } Py_INCREF(Py_None); |
7421 | _resultobj = Py_None; | |
7422 | return _resultobj; | |
7423 | } | |
7424 | ||
7425 | #define wxTreeCtrl_SetItemHasChildren(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemHasChildren(_swigarg0,_swigarg1)) | |
efc5f224 | 7426 | static PyObject *_wrap_wxTreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 | 7427 | PyObject * _resultobj; |
f6bcfd97 | 7428 | wxPyTreeCtrl * _arg0; |
cf694132 | 7429 | wxTreeItemId * _arg1; |
1d99702e RD |
7430 | bool _arg2 = (bool ) TRUE; |
7431 | PyObject * _argo0 = 0; | |
7432 | PyObject * _argo1 = 0; | |
7433 | int tempbool2 = (int) TRUE; | |
efc5f224 | 7434 | char *_kwnames[] = { "self","item","hasChildren", NULL }; |
cf694132 RD |
7435 | |
7436 | self = self; | |
efc5f224 | 7437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemHasChildren",_kwnames,&_argo0,&_argo1,&tempbool2)) |
cf694132 | 7438 | return NULL; |
1d99702e RD |
7439 | if (_argo0) { |
7440 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7441 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7442 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
7443 | return NULL; |
7444 | } | |
7445 | } | |
1d99702e RD |
7446 | if (_argo1) { |
7447 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7448 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
7449 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemHasChildren. Expected _wxTreeItemId_p."); |
7450 | return NULL; | |
7451 | } | |
7452 | } | |
7453 | _arg2 = (bool ) tempbool2; | |
7454 | { | |
7455 | wxPy_BEGIN_ALLOW_THREADS; | |
7456 | wxTreeCtrl_SetItemHasChildren(_arg0,*_arg1,_arg2); | |
7457 | ||
7458 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7459 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7460 | } Py_INCREF(Py_None); |
d5c9047a | 7461 | _resultobj = Py_None; |
8ab979d7 RD |
7462 | return _resultobj; |
7463 | } | |
7464 | ||
f6bcfd97 | 7465 | static wxPyTreeItemData * wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item) { |
cf694132 RD |
7466 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
7467 | if (data == NULL) { | |
7468 | data = new wxPyTreeItemData(); | |
f6bcfd97 | 7469 | data->SetId(item); // set the id |
cf694132 RD |
7470 | self->SetItemData(item, data); |
7471 | } | |
7472 | return data; | |
7473 | } | |
efc5f224 | 7474 | static PyObject *_wrap_wxTreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
7475 | PyObject * _resultobj; |
7476 | wxPyTreeItemData * _result; | |
f6bcfd97 | 7477 | wxPyTreeCtrl * _arg0; |
cf694132 | 7478 | wxTreeItemId * _arg1; |
1d99702e RD |
7479 | PyObject * _argo0 = 0; |
7480 | PyObject * _argo1 = 0; | |
efc5f224 | 7481 | char *_kwnames[] = { "self","item", NULL }; |
cf694132 RD |
7482 | char _ptemp[128]; |
7483 | ||
7484 | self = self; | |
efc5f224 | 7485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemData",_kwnames,&_argo0,&_argo1)) |
cf694132 | 7486 | return NULL; |
1d99702e RD |
7487 | if (_argo0) { |
7488 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7489 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7490 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemData. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
7491 | return NULL; |
7492 | } | |
7493 | } | |
1d99702e RD |
7494 | if (_argo1) { |
7495 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7496 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
7497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemData. Expected _wxTreeItemId_p."); |
7498 | return NULL; | |
7499 | } | |
7500 | } | |
7501 | { | |
7502 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 7503 | _result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(_arg0,*_arg1); |
cf694132 RD |
7504 | |
7505 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7506 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
7507 | } if (_result) { |
7508 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
7509 | _resultobj = Py_BuildValue("s",_ptemp); | |
7510 | } else { | |
7511 | Py_INCREF(Py_None); | |
7512 | _resultobj = Py_None; | |
7513 | } | |
cf694132 RD |
7514 | return _resultobj; |
7515 | } | |
7516 | ||
f6bcfd97 BP |
7517 | static void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item,wxPyTreeItemData * data) { |
7518 | data->SetId(item); // set the id | |
7519 | self->SetItemData(item, data); | |
c368d904 | 7520 | } |
efc5f224 | 7521 | static PyObject *_wrap_wxTreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7522 | PyObject * _resultobj; |
f6bcfd97 | 7523 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7524 | wxTreeItemId * _arg1; |
cf694132 | 7525 | wxPyTreeItemData * _arg2; |
1d99702e RD |
7526 | PyObject * _argo0 = 0; |
7527 | PyObject * _argo1 = 0; | |
7528 | PyObject * _argo2 = 0; | |
efc5f224 | 7529 | char *_kwnames[] = { "self","item","data", NULL }; |
8ab979d7 RD |
7530 | |
7531 | self = self; | |
efc5f224 | 7532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemData",_kwnames,&_argo0,&_argo1,&_argo2)) |
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_SetItemData. 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_SetItemData. Expected _wxTreeItemId_p."); |
7545 | return NULL; | |
7546 | } | |
7547 | } | |
1d99702e RD |
7548 | if (_argo2) { |
7549 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7550 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyTreeItemData_p")) { | |
cf694132 | 7551 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemData. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
7552 | return NULL; |
7553 | } | |
7554 | } | |
cf694132 RD |
7555 | { |
7556 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 7557 | wxPyTreeCtrl_SetItemData(_arg0,*_arg1,_arg2); |
cf694132 RD |
7558 | |
7559 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7560 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7561 | } Py_INCREF(Py_None); |
d5c9047a | 7562 | _resultobj = Py_None; |
8ab979d7 RD |
7563 | return _resultobj; |
7564 | } | |
7565 | ||
f6bcfd97 | 7566 | static PyObject * wxPyTreeCtrl_GetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item) { |
cf694132 RD |
7567 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
7568 | if (data == NULL) { | |
7569 | data = new wxPyTreeItemData(); | |
f6bcfd97 | 7570 | data->SetId(item); // set the id |
cf694132 RD |
7571 | self->SetItemData(item, data); |
7572 | } | |
7573 | return data->GetData(); | |
c368d904 | 7574 | } |
efc5f224 | 7575 | static PyObject *_wrap_wxTreeCtrl_GetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 | 7576 | PyObject * _resultobj; |
cf694132 | 7577 | PyObject * _result; |
f6bcfd97 | 7578 | wxPyTreeCtrl * _arg0; |
08127323 | 7579 | wxTreeItemId * _arg1; |
1d99702e RD |
7580 | PyObject * _argo0 = 0; |
7581 | PyObject * _argo1 = 0; | |
efc5f224 | 7582 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
7583 | |
7584 | self = self; | |
efc5f224 | 7585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPyData",_kwnames,&_argo0,&_argo1)) |
08127323 | 7586 | return NULL; |
1d99702e RD |
7587 | if (_argo0) { |
7588 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7589 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7590 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPyData. Expected _wxPyTreeCtrl_p."); | |
08127323 RD |
7591 | return NULL; |
7592 | } | |
7593 | } | |
1d99702e RD |
7594 | if (_argo1) { |
7595 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7596 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 | 7597 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPyData. Expected _wxTreeItemId_p."); |
08127323 RD |
7598 | return NULL; |
7599 | } | |
7600 | } | |
cf694132 RD |
7601 | { |
7602 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 7603 | _result = (PyObject *)wxPyTreeCtrl_GetPyData(_arg0,*_arg1); |
cf694132 RD |
7604 | |
7605 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7606 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
7607 | }{ |
7608 | _resultobj = _result; | |
7609 | } | |
7610 | return _resultobj; | |
7611 | } | |
7612 | ||
f6bcfd97 | 7613 | static void wxPyTreeCtrl_SetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item,PyObject * obj) { |
cf694132 RD |
7614 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
7615 | if (data == NULL) { | |
7616 | data = new wxPyTreeItemData(obj); | |
f6bcfd97 | 7617 | data->SetId(item); // set the id |
cf694132 RD |
7618 | self->SetItemData(item, data); |
7619 | } else | |
7620 | data->SetData(obj); | |
c368d904 | 7621 | } |
efc5f224 | 7622 | static PyObject *_wrap_wxTreeCtrl_SetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 | 7623 | PyObject * _resultobj; |
f6bcfd97 | 7624 | wxPyTreeCtrl * _arg0; |
cf694132 RD |
7625 | wxTreeItemId * _arg1; |
7626 | PyObject * _arg2; | |
1d99702e RD |
7627 | PyObject * _argo0 = 0; |
7628 | PyObject * _argo1 = 0; | |
cf694132 | 7629 | PyObject * _obj2 = 0; |
efc5f224 | 7630 | char *_kwnames[] = { "self","item","obj", NULL }; |
cf694132 RD |
7631 | |
7632 | self = self; | |
efc5f224 | 7633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetPyData",_kwnames,&_argo0,&_argo1,&_obj2)) |
cf694132 | 7634 | return NULL; |
1d99702e RD |
7635 | if (_argo0) { |
7636 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7637 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7638 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetPyData. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
7639 | return NULL; |
7640 | } | |
7641 | } | |
1d99702e RD |
7642 | if (_argo1) { |
7643 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7644 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
7645 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetPyData. Expected _wxTreeItemId_p."); |
7646 | return NULL; | |
7647 | } | |
7648 | } | |
7649 | { | |
7650 | _arg2 = _obj2; | |
7651 | } | |
7652 | { | |
7653 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 7654 | wxPyTreeCtrl_SetPyData(_arg0,*_arg1,_arg2); |
cf694132 RD |
7655 | |
7656 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7657 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7658 | } Py_INCREF(Py_None); |
08127323 RD |
7659 | _resultobj = Py_None; |
7660 | return _resultobj; | |
7661 | } | |
7662 | ||
d5c9047a | 7663 | #define wxTreeCtrl_IsVisible(_swigobj,_swigarg0) (_swigobj->IsVisible(_swigarg0)) |
efc5f224 | 7664 | static PyObject *_wrap_wxTreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7665 | PyObject * _resultobj; |
d5c9047a | 7666 | bool _result; |
f6bcfd97 | 7667 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7668 | wxTreeItemId * _arg1; |
1d99702e RD |
7669 | PyObject * _argo0 = 0; |
7670 | PyObject * _argo1 = 0; | |
efc5f224 | 7671 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7672 | |
7673 | self = self; | |
efc5f224 | 7674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7675 | return NULL; |
1d99702e RD |
7676 | if (_argo0) { |
7677 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7678 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7679 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7680 | return NULL; |
7681 | } | |
7682 | } | |
1d99702e RD |
7683 | if (_argo1) { |
7684 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7685 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7686 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsVisible. Expected _wxTreeItemId_p."); |
7687 | return NULL; | |
7688 | } | |
7689 | } | |
cf694132 RD |
7690 | { |
7691 | wxPy_BEGIN_ALLOW_THREADS; | |
7692 | _result = (bool )wxTreeCtrl_IsVisible(_arg0,*_arg1); | |
7693 | ||
7694 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7695 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7696 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7697 | return _resultobj; |
7698 | } | |
7699 | ||
d5c9047a | 7700 | #define wxTreeCtrl_ItemHasChildren(_swigobj,_swigarg0) (_swigobj->ItemHasChildren(_swigarg0)) |
efc5f224 | 7701 | static PyObject *_wrap_wxTreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7702 | PyObject * _resultobj; |
d5c9047a | 7703 | bool _result; |
f6bcfd97 | 7704 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7705 | wxTreeItemId * _arg1; |
1d99702e RD |
7706 | PyObject * _argo0 = 0; |
7707 | PyObject * _argo1 = 0; | |
efc5f224 | 7708 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7709 | |
7710 | self = self; | |
efc5f224 | 7711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ItemHasChildren",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7712 | return NULL; |
1d99702e RD |
7713 | if (_argo0) { |
7714 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7715 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7717 | return NULL; |
7718 | } | |
7719 | } | |
1d99702e RD |
7720 | if (_argo1) { |
7721 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7722 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7723 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ItemHasChildren. Expected _wxTreeItemId_p."); |
7724 | return NULL; | |
7725 | } | |
7726 | } | |
cf694132 RD |
7727 | { |
7728 | wxPy_BEGIN_ALLOW_THREADS; | |
7729 | _result = (bool )wxTreeCtrl_ItemHasChildren(_arg0,*_arg1); | |
7730 | ||
7731 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7732 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7733 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7734 | return _resultobj; |
7735 | } | |
7736 | ||
d5c9047a | 7737 | #define wxTreeCtrl_IsExpanded(_swigobj,_swigarg0) (_swigobj->IsExpanded(_swigarg0)) |
efc5f224 | 7738 | static PyObject *_wrap_wxTreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7739 | PyObject * _resultobj; |
d5c9047a | 7740 | bool _result; |
f6bcfd97 | 7741 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7742 | wxTreeItemId * _arg1; |
1d99702e RD |
7743 | PyObject * _argo0 = 0; |
7744 | PyObject * _argo1 = 0; | |
efc5f224 | 7745 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7746 | |
7747 | self = self; | |
efc5f224 | 7748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsExpanded",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7749 | return NULL; |
1d99702e RD |
7750 | if (_argo0) { |
7751 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7752 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7753 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsExpanded. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7754 | return NULL; |
7755 | } | |
7756 | } | |
1d99702e RD |
7757 | if (_argo1) { |
7758 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7759 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7760 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsExpanded. Expected _wxTreeItemId_p."); |
7761 | return NULL; | |
7762 | } | |
7763 | } | |
cf694132 RD |
7764 | { |
7765 | wxPy_BEGIN_ALLOW_THREADS; | |
7766 | _result = (bool )wxTreeCtrl_IsExpanded(_arg0,*_arg1); | |
7767 | ||
7768 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7769 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7770 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7771 | return _resultobj; |
7772 | } | |
7773 | ||
d5c9047a | 7774 | #define wxTreeCtrl_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) |
efc5f224 | 7775 | static PyObject *_wrap_wxTreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7776 | PyObject * _resultobj; |
d5c9047a | 7777 | bool _result; |
f6bcfd97 | 7778 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7779 | wxTreeItemId * _arg1; |
1d99702e RD |
7780 | PyObject * _argo0 = 0; |
7781 | PyObject * _argo1 = 0; | |
efc5f224 | 7782 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7783 | |
7784 | self = self; | |
efc5f224 | 7785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsSelected",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7786 | return NULL; |
1d99702e RD |
7787 | if (_argo0) { |
7788 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7789 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7790 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsSelected. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7791 | return NULL; |
7792 | } | |
7793 | } | |
1d99702e RD |
7794 | if (_argo1) { |
7795 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7796 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7797 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsSelected. Expected _wxTreeItemId_p."); |
7798 | return NULL; | |
7799 | } | |
7800 | } | |
cf694132 RD |
7801 | { |
7802 | wxPy_BEGIN_ALLOW_THREADS; | |
7803 | _result = (bool )wxTreeCtrl_IsSelected(_arg0,*_arg1); | |
7804 | ||
7805 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7806 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7807 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7808 | return _resultobj; |
7809 | } | |
7810 | ||
7811 | #define wxTreeCtrl_GetRootItem(_swigobj) (_swigobj->GetRootItem()) | |
efc5f224 | 7812 | static PyObject *_wrap_wxTreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7813 | PyObject * _resultobj; |
d5c9047a | 7814 | wxTreeItemId * _result; |
f6bcfd97 | 7815 | wxPyTreeCtrl * _arg0; |
1d99702e | 7816 | PyObject * _argo0 = 0; |
efc5f224 | 7817 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 7818 | char _ptemp[128]; |
8ab979d7 RD |
7819 | |
7820 | self = self; | |
efc5f224 | 7821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetRootItem",_kwnames,&_argo0)) |
8ab979d7 | 7822 | return NULL; |
1d99702e RD |
7823 | if (_argo0) { |
7824 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7825 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7826 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetRootItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7827 | return NULL; |
7828 | } | |
7829 | } | |
cf694132 RD |
7830 | { |
7831 | wxPy_BEGIN_ALLOW_THREADS; | |
7832 | _result = new wxTreeItemId (wxTreeCtrl_GetRootItem(_arg0)); | |
7833 | ||
7834 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7835 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7836 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7837 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7838 | return _resultobj; |
7839 | } | |
7840 | ||
7841 | #define wxTreeCtrl_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
efc5f224 | 7842 | static PyObject *_wrap_wxTreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7843 | PyObject * _resultobj; |
d5c9047a | 7844 | wxTreeItemId * _result; |
f6bcfd97 | 7845 | wxPyTreeCtrl * _arg0; |
1d99702e | 7846 | PyObject * _argo0 = 0; |
efc5f224 | 7847 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 7848 | char _ptemp[128]; |
8ab979d7 RD |
7849 | |
7850 | self = self; | |
efc5f224 | 7851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelection",_kwnames,&_argo0)) |
8ab979d7 | 7852 | return NULL; |
1d99702e RD |
7853 | if (_argo0) { |
7854 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7855 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7856 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelection. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7857 | return NULL; |
7858 | } | |
7859 | } | |
cf694132 RD |
7860 | { |
7861 | wxPy_BEGIN_ALLOW_THREADS; | |
7862 | _result = new wxTreeItemId (wxTreeCtrl_GetSelection(_arg0)); | |
7863 | ||
7864 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7865 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7866 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7867 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7868 | return _resultobj; |
7869 | } | |
7870 | ||
eb715945 RD |
7871 | #define wxTreeCtrl_GetItemParent(_swigobj,_swigarg0) (_swigobj->GetParent(_swigarg0)) |
7872 | static PyObject *_wrap_wxTreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7873 | PyObject * _resultobj; |
d5c9047a | 7874 | wxTreeItemId * _result; |
f6bcfd97 | 7875 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7876 | wxTreeItemId * _arg1; |
1d99702e RD |
7877 | PyObject * _argo0 = 0; |
7878 | PyObject * _argo1 = 0; | |
efc5f224 | 7879 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7880 | char _ptemp[128]; |
8ab979d7 RD |
7881 | |
7882 | self = self; | |
eb715945 | 7883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7884 | return NULL; |
1d99702e RD |
7885 | if (_argo0) { |
7886 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7887 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7888 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemParent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7889 | return NULL; |
7890 | } | |
7891 | } | |
1d99702e RD |
7892 | if (_argo1) { |
7893 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7894 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
eb715945 | 7895 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemParent. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
7896 | return NULL; |
7897 | } | |
7898 | } | |
cf694132 RD |
7899 | { |
7900 | wxPy_BEGIN_ALLOW_THREADS; | |
eb715945 | 7901 | _result = new wxTreeItemId (wxTreeCtrl_GetItemParent(_arg0,*_arg1)); |
cf694132 RD |
7902 | |
7903 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7904 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7905 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7906 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7907 | return _resultobj; |
7908 | } | |
7909 | ||
f6bcfd97 | 7910 | static PyObject * wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self) { |
059a841c | 7911 | wxPyTState* state = wxPyBeginBlockThreads(); |
d426c97e RD |
7912 | PyObject* rval = PyList_New(0); |
7913 | wxArrayTreeItemIds array; | |
7914 | size_t num, x; | |
7915 | num = self->GetSelections(array); | |
7916 | for (x=0; x < num; x++) { | |
c368d904 RD |
7917 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); |
7918 | PyObject* item = wxPyConstructObject((void*)tii, "wxTreeItemId", TRUE); | |
d426c97e RD |
7919 | PyList_Append(rval, item); |
7920 | } | |
059a841c | 7921 | wxPyEndBlockThreads(state); |
d426c97e RD |
7922 | return rval; |
7923 | } | |
7924 | static PyObject *_wrap_wxTreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7925 | PyObject * _resultobj; | |
7926 | PyObject * _result; | |
f6bcfd97 | 7927 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
7928 | PyObject * _argo0 = 0; |
7929 | char *_kwnames[] = { "self", NULL }; | |
7930 | ||
7931 | self = self; | |
7932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelections",_kwnames,&_argo0)) | |
7933 | return NULL; | |
7934 | if (_argo0) { | |
7935 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7936 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7937 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelections. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
7938 | return NULL; |
7939 | } | |
7940 | } | |
7941 | { | |
7942 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 7943 | _result = (PyObject *)wxPyTreeCtrl_GetSelections(_arg0); |
d426c97e RD |
7944 | |
7945 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7946 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
7947 | }{ |
7948 | _resultobj = _result; | |
7949 | } | |
7950 | return _resultobj; | |
7951 | } | |
7952 | ||
bb0054cd | 7953 | #define wxTreeCtrl_GetChildrenCount(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetChildrenCount(_swigarg0,_swigarg1)) |
efc5f224 | 7954 | static PyObject *_wrap_wxTreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
7955 | PyObject * _resultobj; |
7956 | size_t _result; | |
f6bcfd97 | 7957 | wxPyTreeCtrl * _arg0; |
bb0054cd | 7958 | wxTreeItemId * _arg1; |
1d99702e RD |
7959 | bool _arg2 = (bool ) TRUE; |
7960 | PyObject * _argo0 = 0; | |
7961 | PyObject * _argo1 = 0; | |
7962 | int tempbool2 = (int) TRUE; | |
efc5f224 | 7963 | char *_kwnames[] = { "self","item","recursively", NULL }; |
bb0054cd RD |
7964 | |
7965 | self = self; | |
efc5f224 | 7966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetChildrenCount",_kwnames,&_argo0,&_argo1,&tempbool2)) |
bb0054cd | 7967 | return NULL; |
1d99702e RD |
7968 | if (_argo0) { |
7969 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7970 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetChildrenCount. Expected _wxPyTreeCtrl_p."); | |
bb0054cd RD |
7972 | return NULL; |
7973 | } | |
7974 | } | |
1d99702e RD |
7975 | if (_argo1) { |
7976 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7977 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
bb0054cd RD |
7978 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetChildrenCount. Expected _wxTreeItemId_p."); |
7979 | return NULL; | |
7980 | } | |
7981 | } | |
7982 | _arg2 = (bool ) tempbool2; | |
7983 | { | |
7984 | wxPy_BEGIN_ALLOW_THREADS; | |
7985 | _result = (size_t )wxTreeCtrl_GetChildrenCount(_arg0,*_arg1,_arg2); | |
7986 | ||
7987 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 7988 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
7989 | } _resultobj = Py_BuildValue("i",_result); |
7990 | return _resultobj; | |
7991 | } | |
7992 | ||
d5c9047a | 7993 | #define wxTreeCtrl_GetFirstChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetFirstChild(_swigarg0,_swigarg1)) |
efc5f224 | 7994 | static PyObject *_wrap_wxTreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7995 | PyObject * _resultobj; |
d5c9047a | 7996 | wxTreeItemId * _result; |
f6bcfd97 | 7997 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7998 | wxTreeItemId * _arg1; |
7999 | long * _arg2; | |
1d99702e RD |
8000 | PyObject * _argo0 = 0; |
8001 | PyObject * _argo1 = 0; | |
d5c9047a RD |
8002 | long temp; |
8003 | PyObject * _obj2 = 0; | |
efc5f224 | 8004 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 8005 | char _ptemp[128]; |
8ab979d7 RD |
8006 | |
8007 | self = self; | |
efc5f224 | 8008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetFirstChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 8009 | return NULL; |
1d99702e RD |
8010 | if (_argo0) { |
8011 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8012 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8013 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstChild. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8014 | return NULL; |
8015 | } | |
8016 | } | |
1d99702e RD |
8017 | if (_argo1) { |
8018 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8019 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 8020 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetFirstChild. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
8021 | return NULL; |
8022 | } | |
8023 | } | |
d5c9047a RD |
8024 | { |
8025 | temp = (long) PyInt_AsLong(_obj2); | |
8026 | _arg2 = &temp; | |
8027 | } | |
cf694132 RD |
8028 | { |
8029 | wxPy_BEGIN_ALLOW_THREADS; | |
8030 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstChild(_arg0,*_arg1,*_arg2)); | |
8031 | ||
8032 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8033 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8034 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8035 | _resultobj = Py_BuildValue("s",_ptemp); |
8036 | { | |
8037 | PyObject *o; | |
8038 | o = PyInt_FromLong((long) (*_arg2)); | |
8039 | _resultobj = t_output_helper(_resultobj, o); | |
8040 | } | |
8ab979d7 RD |
8041 | return _resultobj; |
8042 | } | |
8043 | ||
d5c9047a | 8044 | #define wxTreeCtrl_GetNextChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetNextChild(_swigarg0,_swigarg1)) |
efc5f224 | 8045 | static PyObject *_wrap_wxTreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8046 | PyObject * _resultobj; |
d5c9047a | 8047 | wxTreeItemId * _result; |
f6bcfd97 | 8048 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
8049 | wxTreeItemId * _arg1; |
8050 | long * _arg2; | |
1d99702e RD |
8051 | PyObject * _argo0 = 0; |
8052 | PyObject * _argo1 = 0; | |
d5c9047a | 8053 | long temp; |
8ab979d7 | 8054 | PyObject * _obj2 = 0; |
efc5f224 | 8055 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 8056 | char _ptemp[128]; |
8ab979d7 RD |
8057 | |
8058 | self = self; | |
efc5f224 | 8059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetNextChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 8060 | return NULL; |
1d99702e RD |
8061 | if (_argo0) { |
8062 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8063 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8064 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextChild. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8065 | return NULL; |
8066 | } | |
8067 | } | |
1d99702e RD |
8068 | if (_argo1) { |
8069 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8070 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 8071 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextChild. Expected _wxTreeItemId_p."); |
8ab979d7 | 8072 | return NULL; |
d5c9047a | 8073 | } |
8ab979d7 | 8074 | } |
d5c9047a RD |
8075 | { |
8076 | temp = (long) PyInt_AsLong(_obj2); | |
8077 | _arg2 = &temp; | |
8ab979d7 | 8078 | } |
cf694132 RD |
8079 | { |
8080 | wxPy_BEGIN_ALLOW_THREADS; | |
8081 | _result = new wxTreeItemId (wxTreeCtrl_GetNextChild(_arg0,*_arg1,*_arg2)); | |
8082 | ||
8083 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8084 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8085 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8086 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 | 8087 | { |
d5c9047a RD |
8088 | PyObject *o; |
8089 | o = PyInt_FromLong((long) (*_arg2)); | |
8090 | _resultobj = t_output_helper(_resultobj, o); | |
8ab979d7 RD |
8091 | } |
8092 | return _resultobj; | |
8093 | } | |
8094 | ||
d5c9047a | 8095 | #define wxTreeCtrl_GetNextSibling(_swigobj,_swigarg0) (_swigobj->GetNextSibling(_swigarg0)) |
efc5f224 | 8096 | static PyObject *_wrap_wxTreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8097 | PyObject * _resultobj; |
d5c9047a | 8098 | wxTreeItemId * _result; |
f6bcfd97 | 8099 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8100 | wxTreeItemId * _arg1; |
1d99702e RD |
8101 | PyObject * _argo0 = 0; |
8102 | PyObject * _argo1 = 0; | |
efc5f224 | 8103 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 8104 | char _ptemp[128]; |
8ab979d7 RD |
8105 | |
8106 | self = self; | |
efc5f224 | 8107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8108 | return NULL; |
1d99702e RD |
8109 | if (_argo0) { |
8110 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8111 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8112 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextSibling. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8113 | return NULL; |
8114 | } | |
8115 | } | |
1d99702e RD |
8116 | if (_argo1) { |
8117 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8118 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8119 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextSibling. Expected _wxTreeItemId_p."); |
8120 | return NULL; | |
8121 | } | |
8122 | } | |
cf694132 RD |
8123 | { |
8124 | wxPy_BEGIN_ALLOW_THREADS; | |
8125 | _result = new wxTreeItemId (wxTreeCtrl_GetNextSibling(_arg0,*_arg1)); | |
8126 | ||
8127 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8128 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8129 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8130 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8131 | return _resultobj; |
8132 | } | |
8133 | ||
d5c9047a | 8134 | #define wxTreeCtrl_GetPrevSibling(_swigobj,_swigarg0) (_swigobj->GetPrevSibling(_swigarg0)) |
efc5f224 | 8135 | static PyObject *_wrap_wxTreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8136 | PyObject * _resultobj; |
d5c9047a | 8137 | wxTreeItemId * _result; |
f6bcfd97 | 8138 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8139 | wxTreeItemId * _arg1; |
1d99702e RD |
8140 | PyObject * _argo0 = 0; |
8141 | PyObject * _argo1 = 0; | |
efc5f224 | 8142 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 8143 | char _ptemp[128]; |
8ab979d7 RD |
8144 | |
8145 | self = self; | |
efc5f224 | 8146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8147 | return NULL; |
1d99702e RD |
8148 | if (_argo0) { |
8149 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8150 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8151 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevSibling. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8152 | return NULL; |
8153 | } | |
8154 | } | |
1d99702e RD |
8155 | if (_argo1) { |
8156 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8157 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8158 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevSibling. Expected _wxTreeItemId_p."); |
8159 | return NULL; | |
8160 | } | |
8161 | } | |
cf694132 RD |
8162 | { |
8163 | wxPy_BEGIN_ALLOW_THREADS; | |
8164 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevSibling(_arg0,*_arg1)); | |
8165 | ||
8166 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8167 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8168 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8169 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8170 | return _resultobj; |
8171 | } | |
8172 | ||
d5c9047a | 8173 | #define wxTreeCtrl_GetFirstVisibleItem(_swigobj) (_swigobj->GetFirstVisibleItem()) |
efc5f224 | 8174 | static PyObject *_wrap_wxTreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8175 | PyObject * _resultobj; |
d5c9047a | 8176 | wxTreeItemId * _result; |
f6bcfd97 | 8177 | wxPyTreeCtrl * _arg0; |
1d99702e | 8178 | PyObject * _argo0 = 0; |
efc5f224 | 8179 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 8180 | char _ptemp[128]; |
8ab979d7 RD |
8181 | |
8182 | self = self; | |
efc5f224 | 8183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetFirstVisibleItem",_kwnames,&_argo0)) |
8ab979d7 | 8184 | return NULL; |
1d99702e RD |
8185 | if (_argo0) { |
8186 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8187 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8188 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstVisibleItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8189 | return NULL; |
8190 | } | |
8191 | } | |
cf694132 RD |
8192 | { |
8193 | wxPy_BEGIN_ALLOW_THREADS; | |
8194 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstVisibleItem(_arg0)); | |
8195 | ||
8196 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8197 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8198 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8199 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8200 | return _resultobj; |
8201 | } | |
8202 | ||
d5c9047a | 8203 | #define wxTreeCtrl_GetNextVisible(_swigobj,_swigarg0) (_swigobj->GetNextVisible(_swigarg0)) |
efc5f224 | 8204 | static PyObject *_wrap_wxTreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8205 | PyObject * _resultobj; |
d5c9047a | 8206 | wxTreeItemId * _result; |
f6bcfd97 | 8207 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8208 | wxTreeItemId * _arg1; |
1d99702e RD |
8209 | PyObject * _argo0 = 0; |
8210 | PyObject * _argo1 = 0; | |
efc5f224 | 8211 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 8212 | char _ptemp[128]; |
8ab979d7 RD |
8213 | |
8214 | self = self; | |
efc5f224 | 8215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8216 | return NULL; |
1d99702e RD |
8217 | if (_argo0) { |
8218 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8219 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8220 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8221 | return NULL; |
8222 | } | |
8223 | } | |
1d99702e RD |
8224 | if (_argo1) { |
8225 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8226 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8227 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextVisible. Expected _wxTreeItemId_p."); |
8228 | return NULL; | |
8229 | } | |
8230 | } | |
cf694132 RD |
8231 | { |
8232 | wxPy_BEGIN_ALLOW_THREADS; | |
8233 | _result = new wxTreeItemId (wxTreeCtrl_GetNextVisible(_arg0,*_arg1)); | |
8234 | ||
8235 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8236 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8237 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8238 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8239 | return _resultobj; |
8240 | } | |
8241 | ||
d5c9047a | 8242 | #define wxTreeCtrl_GetPrevVisible(_swigobj,_swigarg0) (_swigobj->GetPrevVisible(_swigarg0)) |
efc5f224 | 8243 | static PyObject *_wrap_wxTreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8244 | PyObject * _resultobj; |
d5c9047a | 8245 | wxTreeItemId * _result; |
f6bcfd97 | 8246 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8247 | wxTreeItemId * _arg1; |
1d99702e RD |
8248 | PyObject * _argo0 = 0; |
8249 | PyObject * _argo1 = 0; | |
efc5f224 | 8250 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 8251 | char _ptemp[128]; |
8ab979d7 RD |
8252 | |
8253 | self = self; | |
efc5f224 | 8254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8255 | return NULL; |
1d99702e RD |
8256 | if (_argo0) { |
8257 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8258 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8259 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8260 | return NULL; |
8261 | } | |
8262 | } | |
1d99702e RD |
8263 | if (_argo1) { |
8264 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8265 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 8266 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevVisible. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
8267 | return NULL; |
8268 | } | |
8269 | } | |
cf694132 RD |
8270 | { |
8271 | wxPy_BEGIN_ALLOW_THREADS; | |
8272 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevVisible(_arg0,*_arg1)); | |
8273 | ||
8274 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8275 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8276 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8277 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8278 | return _resultobj; |
8279 | } | |
8280 | ||
d426c97e RD |
8281 | #define wxTreeCtrl_GetLastChild(_swigobj,_swigarg0) (_swigobj->GetLastChild(_swigarg0)) |
8282 | static PyObject *_wrap_wxTreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8283 | PyObject * _resultobj; | |
8284 | wxTreeItemId * _result; | |
f6bcfd97 | 8285 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
8286 | wxTreeItemId * _arg1; |
8287 | PyObject * _argo0 = 0; | |
8288 | PyObject * _argo1 = 0; | |
8289 | char *_kwnames[] = { "self","item", NULL }; | |
8290 | char _ptemp[128]; | |
8291 | ||
8292 | self = self; | |
8293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetLastChild",_kwnames,&_argo0,&_argo1)) | |
8294 | return NULL; | |
8295 | if (_argo0) { | |
8296 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8297 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8298 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetLastChild. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
8299 | return NULL; |
8300 | } | |
8301 | } | |
8302 | if (_argo1) { | |
8303 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8304 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8305 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetLastChild. Expected _wxTreeItemId_p."); | |
8306 | return NULL; | |
8307 | } | |
8308 | } | |
8309 | { | |
8310 | wxPy_BEGIN_ALLOW_THREADS; | |
8311 | _result = new wxTreeItemId (wxTreeCtrl_GetLastChild(_arg0,*_arg1)); | |
8312 | ||
8313 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8314 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
8315 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
8316 | _resultobj = Py_BuildValue("s",_ptemp); | |
8317 | return _resultobj; | |
8318 | } | |
8319 | ||
d5c9047a | 8320 | #define wxTreeCtrl_AddRoot(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->AddRoot(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
efc5f224 | 8321 | static PyObject *_wrap_wxTreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8322 | PyObject * _resultobj; |
d5c9047a | 8323 | wxTreeItemId * _result; |
f6bcfd97 | 8324 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8325 | wxString * _arg1; |
1d99702e RD |
8326 | int _arg2 = (int ) -1; |
8327 | int _arg3 = (int ) -1; | |
8328 | wxPyTreeItemData * _arg4 = (wxPyTreeItemData *) NULL; | |
8329 | PyObject * _argo0 = 0; | |
d5c9047a | 8330 | PyObject * _obj1 = 0; |
1d99702e | 8331 | PyObject * _argo4 = 0; |
efc5f224 | 8332 | char *_kwnames[] = { "self","text","image","selectedImage","data", NULL }; |
d5c9047a | 8333 | char _ptemp[128]; |
8ab979d7 RD |
8334 | |
8335 | self = self; | |
efc5f224 | 8336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iiO:wxTreeCtrl_AddRoot",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_argo4)) |
8ab979d7 | 8337 | return NULL; |
1d99702e RD |
8338 | if (_argo0) { |
8339 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8340 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8341 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AddRoot. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8342 | return NULL; |
8343 | } | |
8344 | } | |
d5c9047a | 8345 | { |
2cd2fac8 RD |
8346 | #if PYTHON_API_VERSION >= 1009 |
8347 | char* tmpPtr; int tmpSize; | |
8348 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
7a446686 | 8349 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
8350 | return NULL; |
8351 | } | |
8352 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8353 | return NULL; | |
8354 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8355 | #else | |
d5c9047a RD |
8356 | if (!PyString_Check(_obj1)) { |
8357 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8358 | return NULL; | |
8359 | } | |
2cd2fac8 RD |
8360 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
8361 | #endif | |
d5c9047a | 8362 | } |
1d99702e RD |
8363 | if (_argo4) { |
8364 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
8365 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxPyTreeItemData_p")) { | |
cf694132 | 8366 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxTreeCtrl_AddRoot. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
8367 | return NULL; |
8368 | } | |
8369 | } | |
cf694132 RD |
8370 | { |
8371 | wxPy_BEGIN_ALLOW_THREADS; | |
8372 | _result = new wxTreeItemId (wxTreeCtrl_AddRoot(_arg0,*_arg1,_arg2,_arg3,_arg4)); | |
8373 | ||
8374 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8375 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8376 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8377 | _resultobj = Py_BuildValue("s",_ptemp); |
8378 | { | |
8379 | if (_obj1) | |
8380 | delete _arg1; | |
8381 | } | |
8ab979d7 RD |
8382 | return _resultobj; |
8383 | } | |
8384 | ||
d5c9047a | 8385 | #define wxTreeCtrl_PrependItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->PrependItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 8386 | static PyObject *_wrap_wxTreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8387 | PyObject * _resultobj; |
d5c9047a | 8388 | wxTreeItemId * _result; |
f6bcfd97 | 8389 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
8390 | wxTreeItemId * _arg1; |
8391 | wxString * _arg2; | |
1d99702e RD |
8392 | int _arg3 = (int ) -1; |
8393 | int _arg4 = (int ) -1; | |
8394 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
8395 | PyObject * _argo0 = 0; | |
8396 | PyObject * _argo1 = 0; | |
d5c9047a | 8397 | PyObject * _obj2 = 0; |
1d99702e | 8398 | PyObject * _argo5 = 0; |
efc5f224 | 8399 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 8400 | char _ptemp[128]; |
8ab979d7 RD |
8401 | |
8402 | self = self; | |
efc5f224 | 8403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_PrependItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 8404 | return NULL; |
1d99702e RD |
8405 | if (_argo0) { |
8406 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8407 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8408 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_PrependItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8409 | return NULL; |
8410 | } | |
8411 | } | |
1d99702e RD |
8412 | if (_argo1) { |
8413 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8414 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8415 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_PrependItem. Expected _wxTreeItemId_p."); |
8416 | return NULL; | |
8417 | } | |
8418 | } | |
8419 | { | |
2cd2fac8 RD |
8420 | #if PYTHON_API_VERSION >= 1009 |
8421 | char* tmpPtr; int tmpSize; | |
8422 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 8423 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
8424 | return NULL; |
8425 | } | |
8426 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8427 | return NULL; | |
8428 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8429 | #else | |
d5c9047a RD |
8430 | if (!PyString_Check(_obj2)) { |
8431 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8432 | return NULL; | |
8433 | } | |
2cd2fac8 RD |
8434 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8435 | #endif | |
d5c9047a | 8436 | } |
1d99702e RD |
8437 | if (_argo5) { |
8438 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
8439 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 8440 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_PrependItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
8441 | return NULL; |
8442 | } | |
8443 | } | |
cf694132 RD |
8444 | { |
8445 | wxPy_BEGIN_ALLOW_THREADS; | |
8446 | _result = new wxTreeItemId (wxTreeCtrl_PrependItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); | |
8447 | ||
8448 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8449 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8450 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8451 | _resultobj = Py_BuildValue("s",_ptemp); |
8452 | { | |
8453 | if (_obj2) | |
8454 | delete _arg2; | |
8455 | } | |
8ab979d7 RD |
8456 | return _resultobj; |
8457 | } | |
8458 | ||
d5c9047a | 8459 | #define wxTreeCtrl_InsertItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 8460 | static PyObject *_wrap_wxTreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8461 | PyObject * _resultobj; |
d5c9047a | 8462 | wxTreeItemId * _result; |
f6bcfd97 | 8463 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
8464 | wxTreeItemId * _arg1; |
8465 | wxTreeItemId * _arg2; | |
8466 | wxString * _arg3; | |
1d99702e RD |
8467 | int _arg4 = (int ) -1; |
8468 | int _arg5 = (int ) -1; | |
8469 | wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL; | |
8470 | PyObject * _argo0 = 0; | |
8471 | PyObject * _argo1 = 0; | |
8472 | PyObject * _argo2 = 0; | |
d5c9047a | 8473 | PyObject * _obj3 = 0; |
1d99702e | 8474 | PyObject * _argo6 = 0; |
efc5f224 | 8475 | char *_kwnames[] = { "self","parent","idPrevious","text","image","selectedImage","data", NULL }; |
d5c9047a | 8476 | char _ptemp[128]; |
8ab979d7 RD |
8477 | |
8478 | self = self; | |
efc5f224 | 8479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|iiO:wxTreeCtrl_InsertItem",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3,&_arg4,&_arg5,&_argo6)) |
8ab979d7 | 8480 | return NULL; |
1d99702e RD |
8481 | if (_argo0) { |
8482 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8483 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8484 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8485 | return NULL; |
8486 | } | |
8487 | } | |
1d99702e RD |
8488 | if (_argo1) { |
8489 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8490 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8491 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
8492 | return NULL; | |
8493 | } | |
8494 | } | |
1d99702e RD |
8495 | if (_argo2) { |
8496 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8497 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8498 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
8499 | return NULL; | |
8500 | } | |
8501 | } | |
8502 | { | |
2cd2fac8 RD |
8503 | #if PYTHON_API_VERSION >= 1009 |
8504 | char* tmpPtr; int tmpSize; | |
8505 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
7a446686 | 8506 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
8507 | return NULL; |
8508 | } | |
8509 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8510 | return NULL; | |
8511 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8512 | #else | |
d5c9047a RD |
8513 | if (!PyString_Check(_obj3)) { |
8514 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8515 | return NULL; | |
8516 | } | |
2cd2fac8 RD |
8517 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
8518 | #endif | |
d5c9047a | 8519 | } |
1d99702e RD |
8520 | if (_argo6) { |
8521 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
8522 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) { | |
cf694132 | 8523 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
8524 | return NULL; |
8525 | } | |
8526 | } | |
cf694132 RD |
8527 | { |
8528 | wxPy_BEGIN_ALLOW_THREADS; | |
8529 | _result = new wxTreeItemId (wxTreeCtrl_InsertItem(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6)); | |
8530 | ||
8531 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8532 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8533 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
8534 | _resultobj = Py_BuildValue("s",_ptemp); |
8535 | { | |
8536 | if (_obj3) | |
8537 | delete _arg3; | |
8538 | } | |
8ab979d7 RD |
8539 | return _resultobj; |
8540 | } | |
8541 | ||
f6bcfd97 BP |
8542 | #define wxTreeCtrl_InsertItemBefore(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
8543 | static PyObject *_wrap_wxTreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8544 | PyObject * _resultobj; | |
8545 | wxTreeItemId * _result; | |
8546 | wxPyTreeCtrl * _arg0; | |
8547 | wxTreeItemId * _arg1; | |
8548 | size_t _arg2; | |
8549 | wxString * _arg3; | |
8550 | int _arg4 = (int ) -1; | |
8551 | int _arg5 = (int ) -1; | |
8552 | wxTreeItemData * _arg6 = (wxTreeItemData *) NULL; | |
8553 | PyObject * _argo0 = 0; | |
8554 | PyObject * _argo1 = 0; | |
8555 | PyObject * _obj3 = 0; | |
8556 | PyObject * _argo6 = 0; | |
8557 | char *_kwnames[] = { "self","parent","before","text","image","selectedImage","data", NULL }; | |
8558 | char _ptemp[128]; | |
8559 | ||
8560 | self = self; | |
8561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|iiO:wxTreeCtrl_InsertItemBefore",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_arg4,&_arg5,&_argo6)) | |
8562 | return NULL; | |
8563 | if (_argo0) { | |
8564 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8565 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
8566 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItemBefore. Expected _wxPyTreeCtrl_p."); | |
8567 | return NULL; | |
8568 | } | |
8569 | } | |
8570 | if (_argo1) { | |
8571 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8572 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8573 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemId_p."); | |
8574 | return NULL; | |
8575 | } | |
8576 | } | |
8577 | { | |
2cd2fac8 RD |
8578 | #if PYTHON_API_VERSION >= 1009 |
8579 | char* tmpPtr; int tmpSize; | |
8580 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
7a446686 | 8581 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
8582 | return NULL; |
8583 | } | |
8584 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
8585 | return NULL; | |
8586 | _arg3 = new wxString(tmpPtr, tmpSize); | |
8587 | #else | |
f6bcfd97 BP |
8588 | if (!PyString_Check(_obj3)) { |
8589 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8590 | return NULL; | |
8591 | } | |
2cd2fac8 RD |
8592 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
8593 | #endif | |
f6bcfd97 BP |
8594 | } |
8595 | if (_argo6) { | |
8596 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
8597 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxTreeItemData_p")) { | |
8598 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemData_p."); | |
8599 | return NULL; | |
8600 | } | |
8601 | } | |
8602 | { | |
8603 | wxPy_BEGIN_ALLOW_THREADS; | |
8604 | _result = new wxTreeItemId (wxTreeCtrl_InsertItemBefore(_arg0,*_arg1,_arg2,*_arg3,_arg4,_arg5,_arg6)); | |
8605 | ||
8606 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8607 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
8608 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
8609 | _resultobj = Py_BuildValue("s",_ptemp); | |
8610 | { | |
8611 | if (_obj3) | |
8612 | delete _arg3; | |
8613 | } | |
8614 | return _resultobj; | |
8615 | } | |
8616 | ||
d5c9047a | 8617 | #define wxTreeCtrl_AppendItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->AppendItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 8618 | static PyObject *_wrap_wxTreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8619 | PyObject * _resultobj; |
d5c9047a | 8620 | wxTreeItemId * _result; |
f6bcfd97 | 8621 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8622 | wxTreeItemId * _arg1; |
8ab979d7 | 8623 | wxString * _arg2; |
1d99702e RD |
8624 | int _arg3 = (int ) -1; |
8625 | int _arg4 = (int ) -1; | |
8626 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
8627 | PyObject * _argo0 = 0; | |
8628 | PyObject * _argo1 = 0; | |
8ab979d7 | 8629 | PyObject * _obj2 = 0; |
1d99702e | 8630 | PyObject * _argo5 = 0; |
efc5f224 | 8631 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 8632 | char _ptemp[128]; |
8ab979d7 RD |
8633 | |
8634 | self = self; | |
efc5f224 | 8635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_AppendItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 8636 | return NULL; |
1d99702e RD |
8637 | if (_argo0) { |
8638 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8639 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8640 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AppendItem. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8641 | return NULL; |
8642 | } | |
8643 | } | |
1d99702e RD |
8644 | if (_argo1) { |
8645 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8646 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 8647 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AppendItem. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
8648 | return NULL; |
8649 | } | |
8650 | } | |
8651 | { | |
2cd2fac8 RD |
8652 | #if PYTHON_API_VERSION >= 1009 |
8653 | char* tmpPtr; int tmpSize; | |
8654 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7a446686 | 8655 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
2cd2fac8 RD |
8656 | return NULL; |
8657 | } | |
8658 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8659 | return NULL; | |
8660 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8661 | #else | |
8ab979d7 RD |
8662 | if (!PyString_Check(_obj2)) { |
8663 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8664 | return NULL; | |
8665 | } | |
2cd2fac8 RD |
8666 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
8667 | #endif | |
8ab979d7 | 8668 | } |
1d99702e RD |
8669 | if (_argo5) { |
8670 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
8671 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 8672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_AppendItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
8673 | return NULL; |
8674 | } | |
8675 | } | |
cf694132 RD |
8676 | { |
8677 | wxPy_BEGIN_ALLOW_THREADS; | |
8678 | _result = new wxTreeItemId (wxTreeCtrl_AppendItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); | |
8679 | ||
8680 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8681 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8682 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 8683 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
8684 | { |
8685 | if (_obj2) | |
8686 | delete _arg2; | |
8687 | } | |
8688 | return _resultobj; | |
8689 | } | |
8690 | ||
d5c9047a | 8691 | #define wxTreeCtrl_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
efc5f224 | 8692 | static PyObject *_wrap_wxTreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8693 | PyObject * _resultobj; |
f6bcfd97 | 8694 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8695 | wxTreeItemId * _arg1; |
1d99702e RD |
8696 | PyObject * _argo0 = 0; |
8697 | PyObject * _argo1 = 0; | |
efc5f224 | 8698 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
8699 | |
8700 | self = self; | |
efc5f224 | 8701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Delete",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8702 | return NULL; |
1d99702e RD |
8703 | if (_argo0) { |
8704 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8705 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8706 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Delete. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
8707 | return NULL; |
8708 | } | |
8709 | } | |
1d99702e RD |
8710 | if (_argo1) { |
8711 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8712 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Delete. Expected _wxTreeItemId_p."); |
8714 | return NULL; | |
8715 | } | |
8716 | } | |
cf694132 RD |
8717 | { |
8718 | wxPy_BEGIN_ALLOW_THREADS; | |
8719 | wxTreeCtrl_Delete(_arg0,*_arg1); | |
8720 | ||
8721 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8722 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8723 | } Py_INCREF(Py_None); |
d5c9047a RD |
8724 | _resultobj = Py_None; |
8725 | return _resultobj; | |
8726 | } | |
8727 | ||
08127323 | 8728 | #define wxTreeCtrl_DeleteChildren(_swigobj,_swigarg0) (_swigobj->DeleteChildren(_swigarg0)) |
efc5f224 | 8729 | static PyObject *_wrap_wxTreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 | 8730 | PyObject * _resultobj; |
f6bcfd97 | 8731 | wxPyTreeCtrl * _arg0; |
08127323 | 8732 | wxTreeItemId * _arg1; |
1d99702e RD |
8733 | PyObject * _argo0 = 0; |
8734 | PyObject * _argo1 = 0; | |
efc5f224 | 8735 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
8736 | |
8737 | self = self; | |
efc5f224 | 8738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_DeleteChildren",_kwnames,&_argo0,&_argo1)) |
08127323 | 8739 | return NULL; |
1d99702e RD |
8740 | if (_argo0) { |
8741 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8742 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8743 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteChildren. Expected _wxPyTreeCtrl_p."); | |
08127323 RD |
8744 | return NULL; |
8745 | } | |
8746 | } | |
1d99702e RD |
8747 | if (_argo1) { |
8748 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8749 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
08127323 RD |
8750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_DeleteChildren. Expected _wxTreeItemId_p."); |
8751 | return NULL; | |
8752 | } | |
8753 | } | |
cf694132 RD |
8754 | { |
8755 | wxPy_BEGIN_ALLOW_THREADS; | |
8756 | wxTreeCtrl_DeleteChildren(_arg0,*_arg1); | |
8757 | ||
8758 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8759 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8760 | } Py_INCREF(Py_None); |
08127323 RD |
8761 | _resultobj = Py_None; |
8762 | return _resultobj; | |
8763 | } | |
8764 | ||
d5c9047a | 8765 | #define wxTreeCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) |
efc5f224 | 8766 | static PyObject *_wrap_wxTreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8767 | PyObject * _resultobj; |
f6bcfd97 | 8768 | wxPyTreeCtrl * _arg0; |
1d99702e | 8769 | PyObject * _argo0 = 0; |
efc5f224 | 8770 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
8771 | |
8772 | self = self; | |
efc5f224 | 8773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_DeleteAllItems",_kwnames,&_argo0)) |
d5c9047a | 8774 | return NULL; |
1d99702e RD |
8775 | if (_argo0) { |
8776 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8777 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteAllItems. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8779 | return NULL; |
8780 | } | |
8781 | } | |
cf694132 RD |
8782 | { |
8783 | wxPy_BEGIN_ALLOW_THREADS; | |
8784 | wxTreeCtrl_DeleteAllItems(_arg0); | |
8785 | ||
8786 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8787 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8788 | } Py_INCREF(Py_None); |
d5c9047a RD |
8789 | _resultobj = Py_None; |
8790 | return _resultobj; | |
8791 | } | |
8792 | ||
8793 | #define wxTreeCtrl_Expand(_swigobj,_swigarg0) (_swigobj->Expand(_swigarg0)) | |
efc5f224 | 8794 | static PyObject *_wrap_wxTreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8795 | PyObject * _resultobj; |
f6bcfd97 | 8796 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8797 | wxTreeItemId * _arg1; |
1d99702e RD |
8798 | PyObject * _argo0 = 0; |
8799 | PyObject * _argo1 = 0; | |
efc5f224 | 8800 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8801 | |
8802 | self = self; | |
efc5f224 | 8803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Expand",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8804 | return NULL; |
1d99702e RD |
8805 | if (_argo0) { |
8806 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8807 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8808 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Expand. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8809 | return NULL; |
8810 | } | |
8811 | } | |
1d99702e RD |
8812 | if (_argo1) { |
8813 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8814 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8815 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Expand. Expected _wxTreeItemId_p."); |
8816 | return NULL; | |
8817 | } | |
8818 | } | |
cf694132 RD |
8819 | { |
8820 | wxPy_BEGIN_ALLOW_THREADS; | |
8821 | wxTreeCtrl_Expand(_arg0,*_arg1); | |
8822 | ||
8823 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8824 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8825 | } Py_INCREF(Py_None); |
d5c9047a RD |
8826 | _resultobj = Py_None; |
8827 | return _resultobj; | |
8828 | } | |
8829 | ||
8830 | #define wxTreeCtrl_Collapse(_swigobj,_swigarg0) (_swigobj->Collapse(_swigarg0)) | |
efc5f224 | 8831 | static PyObject *_wrap_wxTreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8832 | PyObject * _resultobj; |
f6bcfd97 | 8833 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8834 | wxTreeItemId * _arg1; |
1d99702e RD |
8835 | PyObject * _argo0 = 0; |
8836 | PyObject * _argo1 = 0; | |
efc5f224 | 8837 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8838 | |
8839 | self = self; | |
efc5f224 | 8840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Collapse",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8841 | return NULL; |
1d99702e RD |
8842 | if (_argo0) { |
8843 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8844 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8845 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Collapse. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8846 | return NULL; |
8847 | } | |
8848 | } | |
1d99702e RD |
8849 | if (_argo1) { |
8850 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8851 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8852 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Collapse. Expected _wxTreeItemId_p."); |
8853 | return NULL; | |
8854 | } | |
8855 | } | |
cf694132 RD |
8856 | { |
8857 | wxPy_BEGIN_ALLOW_THREADS; | |
8858 | wxTreeCtrl_Collapse(_arg0,*_arg1); | |
8859 | ||
8860 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8861 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8862 | } Py_INCREF(Py_None); |
d5c9047a RD |
8863 | _resultobj = Py_None; |
8864 | return _resultobj; | |
8865 | } | |
8866 | ||
8867 | #define wxTreeCtrl_CollapseAndReset(_swigobj,_swigarg0) (_swigobj->CollapseAndReset(_swigarg0)) | |
efc5f224 | 8868 | static PyObject *_wrap_wxTreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8869 | PyObject * _resultobj; |
f6bcfd97 | 8870 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8871 | wxTreeItemId * _arg1; |
1d99702e RD |
8872 | PyObject * _argo0 = 0; |
8873 | PyObject * _argo1 = 0; | |
efc5f224 | 8874 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8875 | |
8876 | self = self; | |
efc5f224 | 8877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_CollapseAndReset",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8878 | return NULL; |
1d99702e RD |
8879 | if (_argo0) { |
8880 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8881 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8882 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_CollapseAndReset. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8883 | return NULL; |
8884 | } | |
8885 | } | |
1d99702e RD |
8886 | if (_argo1) { |
8887 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8888 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8889 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_CollapseAndReset. Expected _wxTreeItemId_p."); |
8890 | return NULL; | |
8891 | } | |
8892 | } | |
cf694132 RD |
8893 | { |
8894 | wxPy_BEGIN_ALLOW_THREADS; | |
8895 | wxTreeCtrl_CollapseAndReset(_arg0,*_arg1); | |
8896 | ||
8897 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8898 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8899 | } Py_INCREF(Py_None); |
d5c9047a RD |
8900 | _resultobj = Py_None; |
8901 | return _resultobj; | |
8902 | } | |
8903 | ||
8904 | #define wxTreeCtrl_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0)) | |
efc5f224 | 8905 | static PyObject *_wrap_wxTreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8906 | PyObject * _resultobj; |
f6bcfd97 | 8907 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8908 | wxTreeItemId * _arg1; |
1d99702e RD |
8909 | PyObject * _argo0 = 0; |
8910 | PyObject * _argo1 = 0; | |
efc5f224 | 8911 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8912 | |
8913 | self = self; | |
efc5f224 | 8914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Toggle",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8915 | return NULL; |
1d99702e RD |
8916 | if (_argo0) { |
8917 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8918 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8919 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Toggle. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8920 | return NULL; |
8921 | } | |
8922 | } | |
1d99702e RD |
8923 | if (_argo1) { |
8924 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8925 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8926 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Toggle. Expected _wxTreeItemId_p."); |
8927 | return NULL; | |
8928 | } | |
8929 | } | |
cf694132 RD |
8930 | { |
8931 | wxPy_BEGIN_ALLOW_THREADS; | |
8932 | wxTreeCtrl_Toggle(_arg0,*_arg1); | |
8933 | ||
8934 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8935 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8936 | } Py_INCREF(Py_None); |
d5c9047a RD |
8937 | _resultobj = Py_None; |
8938 | return _resultobj; | |
8939 | } | |
8940 | ||
8941 | #define wxTreeCtrl_Unselect(_swigobj) (_swigobj->Unselect()) | |
efc5f224 | 8942 | static PyObject *_wrap_wxTreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8943 | PyObject * _resultobj; |
f6bcfd97 | 8944 | wxPyTreeCtrl * _arg0; |
1d99702e | 8945 | PyObject * _argo0 = 0; |
efc5f224 | 8946 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
8947 | |
8948 | self = self; | |
efc5f224 | 8949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_Unselect",_kwnames,&_argo0)) |
d5c9047a | 8950 | return NULL; |
1d99702e RD |
8951 | if (_argo0) { |
8952 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8953 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8954 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Unselect. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8955 | return NULL; |
8956 | } | |
8957 | } | |
cf694132 RD |
8958 | { |
8959 | wxPy_BEGIN_ALLOW_THREADS; | |
8960 | wxTreeCtrl_Unselect(_arg0); | |
8961 | ||
8962 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8963 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8964 | } Py_INCREF(Py_None); |
d5c9047a RD |
8965 | _resultobj = Py_None; |
8966 | return _resultobj; | |
8967 | } | |
8968 | ||
8bf5d46e | 8969 | #define wxTreeCtrl_UnselectAll(_swigobj) (_swigobj->UnselectAll()) |
efc5f224 | 8970 | static PyObject *_wrap_wxTreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e | 8971 | PyObject * _resultobj; |
f6bcfd97 | 8972 | wxPyTreeCtrl * _arg0; |
1d99702e | 8973 | PyObject * _argo0 = 0; |
efc5f224 | 8974 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
8975 | |
8976 | self = self; | |
efc5f224 | 8977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_UnselectAll",_kwnames,&_argo0)) |
8bf5d46e | 8978 | return NULL; |
1d99702e RD |
8979 | if (_argo0) { |
8980 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8981 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8982 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_UnselectAll. Expected _wxPyTreeCtrl_p."); | |
8bf5d46e RD |
8983 | return NULL; |
8984 | } | |
8985 | } | |
8986 | { | |
8987 | wxPy_BEGIN_ALLOW_THREADS; | |
8988 | wxTreeCtrl_UnselectAll(_arg0); | |
8989 | ||
8990 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 8991 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
8992 | } Py_INCREF(Py_None); |
8993 | _resultobj = Py_None; | |
8994 | return _resultobj; | |
8995 | } | |
8996 | ||
d5c9047a | 8997 | #define wxTreeCtrl_SelectItem(_swigobj,_swigarg0) (_swigobj->SelectItem(_swigarg0)) |
efc5f224 | 8998 | static PyObject *_wrap_wxTreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8999 | PyObject * _resultobj; |
f6bcfd97 | 9000 | wxPyTreeCtrl * _arg0; |
d5c9047a | 9001 | wxTreeItemId * _arg1; |
1d99702e RD |
9002 | PyObject * _argo0 = 0; |
9003 | PyObject * _argo1 = 0; | |
efc5f224 | 9004 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
9005 | |
9006 | self = self; | |
efc5f224 | 9007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SelectItem",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 9008 | return NULL; |
1d99702e RD |
9009 | if (_argo0) { |
9010 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9011 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9012 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SelectItem. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
9013 | return NULL; |
9014 | } | |
9015 | } | |
1d99702e RD |
9016 | if (_argo1) { |
9017 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9018 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
9019 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SelectItem. Expected _wxTreeItemId_p."); |
9020 | return NULL; | |
9021 | } | |
9022 | } | |
cf694132 RD |
9023 | { |
9024 | wxPy_BEGIN_ALLOW_THREADS; | |
9025 | wxTreeCtrl_SelectItem(_arg0,*_arg1); | |
9026 | ||
9027 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9028 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9029 | } Py_INCREF(Py_None); |
d5c9047a RD |
9030 | _resultobj = Py_None; |
9031 | return _resultobj; | |
9032 | } | |
9033 | ||
9034 | #define wxTreeCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) | |
efc5f224 | 9035 | static PyObject *_wrap_wxTreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 9036 | PyObject * _resultobj; |
f6bcfd97 | 9037 | wxPyTreeCtrl * _arg0; |
d5c9047a | 9038 | wxTreeItemId * _arg1; |
1d99702e RD |
9039 | PyObject * _argo0 = 0; |
9040 | PyObject * _argo1 = 0; | |
efc5f224 | 9041 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
9042 | |
9043 | self = self; | |
efc5f224 | 9044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EnsureVisible",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 9045 | return NULL; |
1d99702e RD |
9046 | if (_argo0) { |
9047 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9048 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9049 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EnsureVisible. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
9050 | return NULL; |
9051 | } | |
9052 | } | |
1d99702e RD |
9053 | if (_argo1) { |
9054 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9055 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
9056 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EnsureVisible. Expected _wxTreeItemId_p."); |
9057 | return NULL; | |
9058 | } | |
9059 | } | |
cf694132 RD |
9060 | { |
9061 | wxPy_BEGIN_ALLOW_THREADS; | |
9062 | wxTreeCtrl_EnsureVisible(_arg0,*_arg1); | |
9063 | ||
9064 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9065 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9066 | } Py_INCREF(Py_None); |
d5c9047a RD |
9067 | _resultobj = Py_None; |
9068 | return _resultobj; | |
9069 | } | |
9070 | ||
9071 | #define wxTreeCtrl_ScrollTo(_swigobj,_swigarg0) (_swigobj->ScrollTo(_swigarg0)) | |
efc5f224 | 9072 | static PyObject *_wrap_wxTreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 9073 | PyObject * _resultobj; |
f6bcfd97 | 9074 | wxPyTreeCtrl * _arg0; |
d5c9047a | 9075 | wxTreeItemId * _arg1; |
1d99702e RD |
9076 | PyObject * _argo0 = 0; |
9077 | PyObject * _argo1 = 0; | |
efc5f224 | 9078 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
9079 | |
9080 | self = self; | |
efc5f224 | 9081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ScrollTo",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 9082 | return NULL; |
1d99702e RD |
9083 | if (_argo0) { |
9084 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9085 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9086 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ScrollTo. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
9087 | return NULL; |
9088 | } | |
9089 | } | |
1d99702e RD |
9090 | if (_argo1) { |
9091 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9092 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
9093 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ScrollTo. Expected _wxTreeItemId_p."); |
9094 | return NULL; | |
9095 | } | |
9096 | } | |
cf694132 RD |
9097 | { |
9098 | wxPy_BEGIN_ALLOW_THREADS; | |
9099 | wxTreeCtrl_ScrollTo(_arg0,*_arg1); | |
9100 | ||
9101 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9102 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9103 | } Py_INCREF(Py_None); |
d5c9047a RD |
9104 | _resultobj = Py_None; |
9105 | return _resultobj; | |
9106 | } | |
9107 | ||
9108 | #define wxTreeCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0)) | |
efc5f224 | 9109 | static PyObject *_wrap_wxTreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 9110 | PyObject * _resultobj; |
f6bcfd97 | 9111 | wxPyTreeCtrl * _arg0; |
d5c9047a | 9112 | wxTreeItemId * _arg1; |
1d99702e RD |
9113 | PyObject * _argo0 = 0; |
9114 | PyObject * _argo1 = 0; | |
efc5f224 | 9115 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
9116 | |
9117 | self = self; | |
efc5f224 | 9118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EditLabel",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 9119 | return NULL; |
1d99702e RD |
9120 | if (_argo0) { |
9121 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9122 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9123 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EditLabel. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
9124 | return NULL; |
9125 | } | |
9126 | } | |
1d99702e RD |
9127 | if (_argo1) { |
9128 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9129 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
9130 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EditLabel. Expected _wxTreeItemId_p."); |
9131 | return NULL; | |
9132 | } | |
9133 | } | |
cf694132 RD |
9134 | { |
9135 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 9136 | wxTreeCtrl_EditLabel(_arg0,*_arg1); |
cf694132 RD |
9137 | |
9138 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9139 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9140 | } Py_INCREF(Py_None); |
d5c9047a | 9141 | _resultobj = Py_None; |
8ab979d7 RD |
9142 | return _resultobj; |
9143 | } | |
9144 | ||
d426c97e RD |
9145 | #define wxTreeCtrl_SortChildren(_swigobj,_swigarg0) (_swigobj->SortChildren(_swigarg0)) |
9146 | static PyObject *_wrap_wxTreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9147 | PyObject * _resultobj; | |
f6bcfd97 | 9148 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
9149 | wxTreeItemId * _arg1; |
9150 | PyObject * _argo0 = 0; | |
9151 | PyObject * _argo1 = 0; | |
9152 | char *_kwnames[] = { "self","item", NULL }; | |
9153 | ||
9154 | self = self; | |
9155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SortChildren",_kwnames,&_argo0,&_argo1)) | |
9156 | return NULL; | |
9157 | if (_argo0) { | |
9158 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9159 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9160 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SortChildren. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
9161 | return NULL; |
9162 | } | |
9163 | } | |
9164 | if (_argo1) { | |
9165 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9166 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9167 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SortChildren. Expected _wxTreeItemId_p."); | |
9168 | return NULL; | |
9169 | } | |
9170 | } | |
9171 | { | |
9172 | wxPy_BEGIN_ALLOW_THREADS; | |
9173 | wxTreeCtrl_SortChildren(_arg0,*_arg1); | |
9174 | ||
9175 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9176 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
9177 | } Py_INCREF(Py_None); |
9178 | _resultobj = Py_None; | |
9179 | return _resultobj; | |
9180 | } | |
9181 | ||
b8b8dda7 | 9182 | #define wxTreeCtrl_SetItemBold(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBold(_swigarg0,_swigarg1)) |
efc5f224 | 9183 | static PyObject *_wrap_wxTreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 | 9184 | PyObject * _resultobj; |
f6bcfd97 | 9185 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 9186 | wxTreeItemId * _arg1; |
b1462dfa | 9187 | int _arg2 = (int ) TRUE; |
1d99702e RD |
9188 | PyObject * _argo0 = 0; |
9189 | PyObject * _argo1 = 0; | |
efc5f224 | 9190 | char *_kwnames[] = { "self","item","bold", NULL }; |
b8b8dda7 RD |
9191 | |
9192 | self = self; | |
b1462dfa | 9193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemBold",_kwnames,&_argo0,&_argo1,&_arg2)) |
b8b8dda7 | 9194 | return NULL; |
1d99702e RD |
9195 | if (_argo0) { |
9196 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9197 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9198 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBold. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
9199 | return NULL; |
9200 | } | |
9201 | } | |
1d99702e RD |
9202 | if (_argo1) { |
9203 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9204 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
b8b8dda7 RD |
9205 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBold. Expected _wxTreeItemId_p."); |
9206 | return NULL; | |
9207 | } | |
9208 | } | |
cf694132 RD |
9209 | { |
9210 | wxPy_BEGIN_ALLOW_THREADS; | |
9211 | wxTreeCtrl_SetItemBold(_arg0,*_arg1,_arg2); | |
9212 | ||
9213 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9214 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9215 | } Py_INCREF(Py_None); |
b8b8dda7 RD |
9216 | _resultobj = Py_None; |
9217 | return _resultobj; | |
9218 | } | |
9219 | ||
9220 | #define wxTreeCtrl_IsBold(_swigobj,_swigarg0) (_swigobj->IsBold(_swigarg0)) | |
efc5f224 | 9221 | static PyObject *_wrap_wxTreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
9222 | PyObject * _resultobj; |
9223 | bool _result; | |
f6bcfd97 | 9224 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 9225 | wxTreeItemId * _arg1; |
1d99702e RD |
9226 | PyObject * _argo0 = 0; |
9227 | PyObject * _argo1 = 0; | |
efc5f224 | 9228 | char *_kwnames[] = { "self","item", NULL }; |
b8b8dda7 RD |
9229 | |
9230 | self = self; | |
efc5f224 | 9231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsBold",_kwnames,&_argo0,&_argo1)) |
b8b8dda7 | 9232 | return NULL; |
1d99702e RD |
9233 | if (_argo0) { |
9234 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9235 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9236 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsBold. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
9237 | return NULL; |
9238 | } | |
9239 | } | |
1d99702e RD |
9240 | if (_argo1) { |
9241 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9242 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
b8b8dda7 RD |
9243 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsBold. Expected _wxTreeItemId_p."); |
9244 | return NULL; | |
9245 | } | |
9246 | } | |
cf694132 RD |
9247 | { |
9248 | wxPy_BEGIN_ALLOW_THREADS; | |
9249 | _result = (bool )wxTreeCtrl_IsBold(_arg0,*_arg1); | |
9250 | ||
9251 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9252 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9253 | } _resultobj = Py_BuildValue("i",_result); |
b8b8dda7 RD |
9254 | return _resultobj; |
9255 | } | |
9256 | ||
164b735b | 9257 | #define wxTreeCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) |
efc5f224 | 9258 | static PyObject *_wrap_wxTreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
9259 | PyObject * _resultobj; |
9260 | wxTreeItemId * _result; | |
f6bcfd97 | 9261 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 9262 | wxPoint * _arg1; |
164b735b RD |
9263 | int * _arg2; |
9264 | int temp; | |
1d99702e | 9265 | PyObject * _argo0 = 0; |
164b735b | 9266 | wxPoint temp0; |
2f90df85 | 9267 | PyObject * _obj1 = 0; |
efc5f224 | 9268 | char *_kwnames[] = { "self","point", NULL }; |
b8b8dda7 RD |
9269 | char _ptemp[128]; |
9270 | ||
9271 | self = self; | |
164b735b RD |
9272 | { |
9273 | _arg2 = &temp; | |
9274 | } | |
2f90df85 | 9275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_HitTest",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 9276 | return NULL; |
1d99702e RD |
9277 | if (_argo0) { |
9278 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9279 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9280 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_HitTest. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
9281 | return NULL; |
9282 | } | |
9283 | } | |
2f90df85 | 9284 | { |
164b735b | 9285 | _arg1 = &temp0; |
2f90df85 | 9286 | if (! wxPoint_helper(_obj1, &_arg1)) |
b8b8dda7 | 9287 | return NULL; |
2f90df85 | 9288 | } |
cf694132 RD |
9289 | { |
9290 | wxPy_BEGIN_ALLOW_THREADS; | |
164b735b | 9291 | _result = new wxTreeItemId (wxTreeCtrl_HitTest(_arg0,*_arg1,*_arg2)); |
cf694132 RD |
9292 | |
9293 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9294 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9295 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
b8b8dda7 | 9296 | _resultobj = Py_BuildValue("s",_ptemp); |
164b735b RD |
9297 | { |
9298 | PyObject *o; | |
9299 | o = PyInt_FromLong((long) (*_arg2)); | |
9300 | _resultobj = t_output_helper(_resultobj, o); | |
9301 | } | |
b8b8dda7 RD |
9302 | return _resultobj; |
9303 | } | |
9304 | ||
b7e72427 RD |
9305 | #define wxTreeCtrl_SetItemTextColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemTextColour(_swigarg0,_swigarg1)) |
9306 | static PyObject *_wrap_wxTreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9307 | PyObject * _resultobj; | |
f6bcfd97 | 9308 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
9309 | wxTreeItemId * _arg1; |
9310 | wxColour * _arg2; | |
9311 | PyObject * _argo0 = 0; | |
9312 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
9313 | wxColour temp; |
9314 | PyObject * _obj2 = 0; | |
b7e72427 RD |
9315 | char *_kwnames[] = { "self","item","col", NULL }; |
9316 | ||
9317 | self = self; | |
f6bcfd97 | 9318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemTextColour",_kwnames,&_argo0,&_argo1,&_obj2)) |
b7e72427 RD |
9319 | return NULL; |
9320 | if (_argo0) { | |
9321 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9322 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9323 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemTextColour. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
9324 | return NULL; |
9325 | } | |
9326 | } | |
9327 | if (_argo1) { | |
9328 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9329 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemTextColour. Expected _wxTreeItemId_p."); | |
9331 | return NULL; | |
9332 | } | |
9333 | } | |
f6bcfd97 BP |
9334 | { |
9335 | _arg2 = &temp; | |
9336 | if (! wxColour_helper(_obj2, &_arg2)) | |
b7e72427 | 9337 | return NULL; |
f6bcfd97 | 9338 | } |
b7e72427 RD |
9339 | { |
9340 | wxPy_BEGIN_ALLOW_THREADS; | |
9341 | wxTreeCtrl_SetItemTextColour(_arg0,*_arg1,*_arg2); | |
9342 | ||
9343 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9344 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
9345 | } Py_INCREF(Py_None); |
9346 | _resultobj = Py_None; | |
9347 | return _resultobj; | |
9348 | } | |
9349 | ||
9350 | #define wxTreeCtrl_SetItemBackgroundColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBackgroundColour(_swigarg0,_swigarg1)) | |
9351 | static PyObject *_wrap_wxTreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9352 | PyObject * _resultobj; | |
f6bcfd97 | 9353 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
9354 | wxTreeItemId * _arg1; |
9355 | wxColour * _arg2; | |
9356 | PyObject * _argo0 = 0; | |
9357 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
9358 | wxColour temp; |
9359 | PyObject * _obj2 = 0; | |
b7e72427 RD |
9360 | char *_kwnames[] = { "self","item","col", NULL }; |
9361 | ||
9362 | self = self; | |
f6bcfd97 | 9363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemBackgroundColour",_kwnames,&_argo0,&_argo1,&_obj2)) |
b7e72427 RD |
9364 | return NULL; |
9365 | if (_argo0) { | |
9366 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9367 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9368 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
9369 | return NULL; |
9370 | } | |
9371 | } | |
9372 | if (_argo1) { | |
9373 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9374 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxTreeItemId_p."); | |
9376 | return NULL; | |
9377 | } | |
9378 | } | |
f6bcfd97 BP |
9379 | { |
9380 | _arg2 = &temp; | |
9381 | if (! wxColour_helper(_obj2, &_arg2)) | |
b7e72427 | 9382 | return NULL; |
f6bcfd97 | 9383 | } |
b7e72427 RD |
9384 | { |
9385 | wxPy_BEGIN_ALLOW_THREADS; | |
9386 | wxTreeCtrl_SetItemBackgroundColour(_arg0,*_arg1,*_arg2); | |
9387 | ||
9388 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9389 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
9390 | } Py_INCREF(Py_None); |
9391 | _resultobj = Py_None; | |
9392 | return _resultobj; | |
9393 | } | |
9394 | ||
9395 | #define wxTreeCtrl_SetItemFont(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemFont(_swigarg0,_swigarg1)) | |
9396 | static PyObject *_wrap_wxTreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9397 | PyObject * _resultobj; | |
f6bcfd97 | 9398 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
9399 | wxTreeItemId * _arg1; |
9400 | wxFont * _arg2; | |
9401 | PyObject * _argo0 = 0; | |
9402 | PyObject * _argo1 = 0; | |
9403 | PyObject * _argo2 = 0; | |
9404 | char *_kwnames[] = { "self","item","font", NULL }; | |
9405 | ||
9406 | self = self; | |
9407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemFont",_kwnames,&_argo0,&_argo1,&_argo2)) | |
9408 | return NULL; | |
9409 | if (_argo0) { | |
9410 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
9411 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
9412 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemFont. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
9413 | return NULL; |
9414 | } | |
9415 | } | |
9416 | if (_argo1) { | |
9417 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9418 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
9419 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemFont. Expected _wxTreeItemId_p."); | |
9420 | return NULL; | |
9421 | } | |
9422 | } | |
9423 | if (_argo2) { | |
9424 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
9425 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
9426 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemFont. Expected _wxFont_p."); | |
9427 | return NULL; | |
9428 | } | |
9429 | } | |
9430 | { | |
9431 | wxPy_BEGIN_ALLOW_THREADS; | |
9432 | wxTreeCtrl_SetItemFont(_arg0,*_arg1,*_arg2); | |
9433 | ||
9434 | wxPy_END_ALLOW_THREADS; | |
4dfaa61e | 9435 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
9436 | } Py_INCREF(Py_None); |
9437 | _resultobj = Py_None; | |
9438 | return _resultobj; | |
9439 | } | |
9440 | ||
8ab979d7 | 9441 | static PyMethodDef controls2cMethods[] = { |
b7e72427 RD |
9442 | { "wxTreeCtrl_SetItemFont", (PyCFunction) _wrap_wxTreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, |
9443 | { "wxTreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9444 | { "wxTreeCtrl_SetItemTextColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9445 | { "wxTreeCtrl_HitTest", (PyCFunction) _wrap_wxTreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
9446 | { "wxTreeCtrl_IsBold", (PyCFunction) _wrap_wxTreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
9447 | { "wxTreeCtrl_SetItemBold", (PyCFunction) _wrap_wxTreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 9448 | { "wxTreeCtrl_SortChildren", (PyCFunction) _wrap_wxTreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9449 | { "wxTreeCtrl_EditLabel", (PyCFunction) _wrap_wxTreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, |
9450 | { "wxTreeCtrl_ScrollTo", (PyCFunction) _wrap_wxTreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
9451 | { "wxTreeCtrl_EnsureVisible", (PyCFunction) _wrap_wxTreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
9452 | { "wxTreeCtrl_SelectItem", (PyCFunction) _wrap_wxTreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
9453 | { "wxTreeCtrl_UnselectAll", (PyCFunction) _wrap_wxTreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, | |
9454 | { "wxTreeCtrl_Unselect", (PyCFunction) _wrap_wxTreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
9455 | { "wxTreeCtrl_Toggle", (PyCFunction) _wrap_wxTreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
9456 | { "wxTreeCtrl_CollapseAndReset", (PyCFunction) _wrap_wxTreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
9457 | { "wxTreeCtrl_Collapse", (PyCFunction) _wrap_wxTreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
9458 | { "wxTreeCtrl_Expand", (PyCFunction) _wrap_wxTreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
9459 | { "wxTreeCtrl_DeleteAllItems", (PyCFunction) _wrap_wxTreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
9460 | { "wxTreeCtrl_DeleteChildren", (PyCFunction) _wrap_wxTreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
9461 | { "wxTreeCtrl_Delete", (PyCFunction) _wrap_wxTreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
9462 | { "wxTreeCtrl_AppendItem", (PyCFunction) _wrap_wxTreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 9463 | { "wxTreeCtrl_InsertItemBefore", (PyCFunction) _wrap_wxTreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9464 | { "wxTreeCtrl_InsertItem", (PyCFunction) _wrap_wxTreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, |
9465 | { "wxTreeCtrl_PrependItem", (PyCFunction) _wrap_wxTreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
9466 | { "wxTreeCtrl_AddRoot", (PyCFunction) _wrap_wxTreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 9467 | { "wxTreeCtrl_GetLastChild", (PyCFunction) _wrap_wxTreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9468 | { "wxTreeCtrl_GetPrevVisible", (PyCFunction) _wrap_wxTreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, |
9469 | { "wxTreeCtrl_GetNextVisible", (PyCFunction) _wrap_wxTreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
9470 | { "wxTreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_wxTreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
9471 | { "wxTreeCtrl_GetPrevSibling", (PyCFunction) _wrap_wxTreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
9472 | { "wxTreeCtrl_GetNextSibling", (PyCFunction) _wrap_wxTreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
9473 | { "wxTreeCtrl_GetNextChild", (PyCFunction) _wrap_wxTreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
9474 | { "wxTreeCtrl_GetFirstChild", (PyCFunction) _wrap_wxTreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
9475 | { "wxTreeCtrl_GetChildrenCount", (PyCFunction) _wrap_wxTreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 9476 | { "wxTreeCtrl_GetSelections", (PyCFunction) _wrap_wxTreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 9477 | { "wxTreeCtrl_GetItemParent", (PyCFunction) _wrap_wxTreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9478 | { "wxTreeCtrl_GetSelection", (PyCFunction) _wrap_wxTreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, |
9479 | { "wxTreeCtrl_GetRootItem", (PyCFunction) _wrap_wxTreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
9480 | { "wxTreeCtrl_IsSelected", (PyCFunction) _wrap_wxTreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
9481 | { "wxTreeCtrl_IsExpanded", (PyCFunction) _wrap_wxTreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
9482 | { "wxTreeCtrl_ItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
9483 | { "wxTreeCtrl_IsVisible", (PyCFunction) _wrap_wxTreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
9484 | { "wxTreeCtrl_SetPyData", (PyCFunction) _wrap_wxTreeCtrl_SetPyData, METH_VARARGS | METH_KEYWORDS }, | |
9485 | { "wxTreeCtrl_GetPyData", (PyCFunction) _wrap_wxTreeCtrl_GetPyData, METH_VARARGS | METH_KEYWORDS }, | |
9486 | { "wxTreeCtrl_SetItemData", (PyCFunction) _wrap_wxTreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
9487 | { "wxTreeCtrl_GetItemData", (PyCFunction) _wrap_wxTreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
9488 | { "wxTreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
9489 | { "wxTreeCtrl_SetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
9490 | { "wxTreeCtrl_SetItemImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
9491 | { "wxTreeCtrl_SetItemText", (PyCFunction) _wrap_wxTreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
9492 | { "wxTreeCtrl_GetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
9493 | { "wxTreeCtrl_GetItemImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
9494 | { "wxTreeCtrl_GetItemText", (PyCFunction) _wrap_wxTreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
9495 | { "wxTreeCtrl_SetSpacing", (PyCFunction) _wrap_wxTreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, |
9496 | { "wxTreeCtrl_GetSpacing", (PyCFunction) _wrap_wxTreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
9497 | { "wxTreeCtrl_AssignStateImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, |
9498 | { "wxTreeCtrl_AssignImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9499 | { "wxTreeCtrl_SetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, |
9500 | { "wxTreeCtrl_SetImageList", (PyCFunction) _wrap_wxTreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
9501 | { "wxTreeCtrl_GetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
9502 | { "wxTreeCtrl_GetImageList", (PyCFunction) _wrap_wxTreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
9503 | { "wxTreeCtrl_SetIndent", (PyCFunction) _wrap_wxTreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
9504 | { "wxTreeCtrl_GetIndent", (PyCFunction) _wrap_wxTreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
9505 | { "wxTreeCtrl_GetCount", (PyCFunction) _wrap_wxTreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 9506 | { "wxTreeCtrl__setSelf", (PyCFunction) _wrap_wxTreeCtrl__setSelf, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
9507 | { "wxTreeCtrl_Create", (PyCFunction) _wrap_wxTreeCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
9508 | { "new_wxPreTreeCtrl", (PyCFunction) _wrap_new_wxPreTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9509 | { "new_wxTreeCtrl", (PyCFunction) _wrap_new_wxTreeCtrl, METH_VARARGS | METH_KEYWORDS }, |
9510 | { "wxTreeEvent_GetLabel", (PyCFunction) _wrap_wxTreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
9511 | { "wxTreeEvent_GetCode", (PyCFunction) _wrap_wxTreeEvent_GetCode, METH_VARARGS | METH_KEYWORDS }, | |
65191ae8 | 9512 | { "wxTreeEvent_GetKeyEvent", (PyCFunction) _wrap_wxTreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9513 | { "wxTreeEvent_GetPoint", (PyCFunction) _wrap_wxTreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, |
9514 | { "wxTreeEvent_GetOldItem", (PyCFunction) _wrap_wxTreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
9515 | { "wxTreeEvent_GetItem", (PyCFunction) _wrap_wxTreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 | 9516 | { "new_wxTreeEvent", (PyCFunction) _wrap_new_wxTreeEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9517 | { "wxTreeItemData_SetId", (PyCFunction) _wrap_wxTreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, |
9518 | { "wxTreeItemData_GetId", (PyCFunction) _wrap_wxTreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
9519 | { "wxTreeItemData_SetData", (PyCFunction) _wrap_wxTreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
9520 | { "wxTreeItemData_GetData", (PyCFunction) _wrap_wxTreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
9521 | { "new_wxTreeItemData", (PyCFunction) _wrap_new_wxTreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 9522 | { "wxTreeItemId___cmp__", (PyCFunction) _wrap_wxTreeItemId___cmp__, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9523 | { "wxTreeItemId_IsOk", (PyCFunction) _wrap_wxTreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, |
9524 | { "delete_wxTreeItemId", (PyCFunction) _wrap_delete_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
9525 | { "new_wxTreeItemId", (PyCFunction) _wrap_new_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
9526 | { "wxTreeItemAttr_GetFont", (PyCFunction) _wrap_wxTreeItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, |
9527 | { "wxTreeItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9528 | { "wxTreeItemAttr_GetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9529 | { "wxTreeItemAttr_HasFont", (PyCFunction) _wrap_wxTreeItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
9530 | { "wxTreeItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9531 | { "wxTreeItemAttr_HasTextColour", (PyCFunction) _wrap_wxTreeItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9532 | { "wxTreeItemAttr_SetFont", (PyCFunction) _wrap_wxTreeItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
9533 | { "wxTreeItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9534 | { "wxTreeItemAttr_SetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9535 | { "new_wxTreeItemAttr", (PyCFunction) _wrap_new_wxTreeItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
059a841c RD |
9536 | { "wxListView_ClearColumnImage", (PyCFunction) _wrap_wxListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS }, |
9537 | { "wxListView_SetColumnImage", (PyCFunction) _wrap_wxListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
9538 | { "wxListView_IsSelected", (PyCFunction) _wrap_wxListView_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
9539 | { "wxListView_GetFirstSelected", (PyCFunction) _wrap_wxListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
9540 | { "wxListView_GetNextSelected", (PyCFunction) _wrap_wxListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
9541 | { "wxListView_GetFocusedItem", (PyCFunction) _wrap_wxListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS }, | |
9542 | { "wxListView_Focus", (PyCFunction) _wrap_wxListView_Focus, METH_VARARGS | METH_KEYWORDS }, | |
9543 | { "wxListView_Select", (PyCFunction) _wrap_wxListView_Select, METH_VARARGS | METH_KEYWORDS }, | |
9544 | { "wxListView_Create", (PyCFunction) _wrap_wxListView_Create, METH_VARARGS | METH_KEYWORDS }, | |
9545 | { "new_wxPreListView", (PyCFunction) _wrap_new_wxPreListView, METH_VARARGS | METH_KEYWORDS }, | |
9546 | { "new_wxListView", (PyCFunction) _wrap_new_wxListView, METH_VARARGS | METH_KEYWORDS }, | |
dcd38683 | 9547 | { "wxListCtrl_SortItems", (PyCFunction) _wrap_wxListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 9548 | { "wxListCtrl_ScrollList", (PyCFunction) _wrap_wxListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, |
cd096152 RD |
9549 | { "wxListCtrl_SetItemCount", (PyCFunction) _wrap_wxListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, |
9550 | { "wxListCtrl_InsertColumn", (PyCFunction) _wrap_wxListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
9551 | { "wxListCtrl_InsertColumnInfo", (PyCFunction) _wrap_wxListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9552 | { "wxListCtrl_InsertImageStringItem", (PyCFunction) _wrap_wxListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, |
9553 | { "wxListCtrl_InsertImageItem", (PyCFunction) _wrap_wxListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
9554 | { "wxListCtrl_InsertStringItem", (PyCFunction) _wrap_wxListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
9555 | { "wxListCtrl_InsertItem", (PyCFunction) _wrap_wxListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9556 | { "wxListCtrl_HitTest", (PyCFunction) _wrap_wxListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9557 | { "wxListCtrl_FindItemAtPos", (PyCFunction) _wrap_wxListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, |
9558 | { "wxListCtrl_FindItemData", (PyCFunction) _wrap_wxListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
9559 | { "wxListCtrl_FindItem", (PyCFunction) _wrap_wxListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
9560 | { "wxListCtrl_EnsureVisible", (PyCFunction) _wrap_wxListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9561 | { "wxListCtrl_ClearAll", (PyCFunction) _wrap_wxListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, |
9562 | { "wxListCtrl_DeleteAllColumns", (PyCFunction) _wrap_wxListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
9563 | { "wxListCtrl_DeleteColumn", (PyCFunction) _wrap_wxListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
9564 | { "wxListCtrl_DeleteAllItems", (PyCFunction) _wrap_wxListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
9565 | { "wxListCtrl_DeleteItem", (PyCFunction) _wrap_wxListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
9566 | { "wxListCtrl_Arrange", (PyCFunction) _wrap_wxListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
cd096152 RD |
9567 | { "wxListCtrl_RefreshItems", (PyCFunction) _wrap_wxListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, |
9568 | { "wxListCtrl_RefreshItem", (PyCFunction) _wrap_wxListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, | |
9569 | { "wxListCtrl_IsVirtual", (PyCFunction) _wrap_wxListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, | |
9570 | { "wxListCtrl_AssignImageList", (PyCFunction) _wrap_wxListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
9571 | { "wxListCtrl_SetImageList", (PyCFunction) _wrap_wxListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
9572 | { "wxListCtrl_GetImageList", (PyCFunction) _wrap_wxListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
9573 | { "wxListCtrl_GetNextItem", (PyCFunction) _wrap_wxListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
9574 | { "wxListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_wxListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
9575 | { "wxListCtrl_SetSingleStyle", (PyCFunction) _wrap_wxListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
9576 | { "wxListCtrl_GetTopItem", (PyCFunction) _wrap_wxListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
9577 | { "wxListCtrl_SetTextColour", (PyCFunction) _wrap_wxListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9578 | { "wxListCtrl_GetTextColour", (PyCFunction) _wrap_wxListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9579 | { "wxListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_wxListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
9580 | { "wxListCtrl_GetItemSpacing", (PyCFunction) _wrap_wxListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
9581 | { "wxListCtrl_GetColumnCount", (PyCFunction) _wrap_wxListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
9582 | { "wxListCtrl_GetItemCount", (PyCFunction) _wrap_wxListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
9583 | { "wxListCtrl_SetItemPosition", (PyCFunction) _wrap_wxListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
9584 | { "wxListCtrl_GetItemRect", (PyCFunction) _wrap_wxListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
9585 | { "wxListCtrl_GetItemPosition", (PyCFunction) _wrap_wxListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
9586 | { "wxListCtrl_SetItemData", (PyCFunction) _wrap_wxListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
9587 | { "wxListCtrl_GetItemData", (PyCFunction) _wrap_wxListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
9588 | { "wxListCtrl_SetItemText", (PyCFunction) _wrap_wxListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
9589 | { "wxListCtrl_GetItemText", (PyCFunction) _wrap_wxListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
9590 | { "wxListCtrl_SetItemImage", (PyCFunction) _wrap_wxListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
9591 | { "wxListCtrl_SetItemState", (PyCFunction) _wrap_wxListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
9592 | { "wxListCtrl_GetItemState", (PyCFunction) _wrap_wxListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
9593 | { "wxListCtrl_SetStringItem", (PyCFunction) _wrap_wxListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
9594 | { "wxListCtrl_SetItem", (PyCFunction) _wrap_wxListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
9595 | { "wxListCtrl_GetItem", (PyCFunction) _wrap_wxListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
9596 | { "wxListCtrl_GetCountPerPage", (PyCFunction) _wrap_wxListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
9597 | { "wxListCtrl_SetColumnWidth", (PyCFunction) _wrap_wxListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
9598 | { "wxListCtrl_GetColumnWidth", (PyCFunction) _wrap_wxListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
9599 | { "wxListCtrl_SetColumn", (PyCFunction) _wrap_wxListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
9600 | { "wxListCtrl_GetColumn", (PyCFunction) _wrap_wxListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
9601 | { "wxListCtrl_SetBackgroundColour", (PyCFunction) _wrap_wxListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9602 | { "wxListCtrl_SetForegroundColour", (PyCFunction) _wrap_wxListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9603 | { "wxListCtrl__setSelf", (PyCFunction) _wrap_wxListCtrl__setSelf, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
9604 | { "wxListCtrl_Create", (PyCFunction) _wrap_wxListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, |
9605 | { "new_wxPreListCtrl", (PyCFunction) _wrap_new_wxPreListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9606 | { "new_wxListCtrl", (PyCFunction) _wrap_new_wxListCtrl, METH_VARARGS | METH_KEYWORDS }, |
059a841c RD |
9607 | { "wxListEvent_GetCacheTo", (PyCFunction) _wrap_wxListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS }, |
9608 | { "wxListEvent_GetCacheFrom", (PyCFunction) _wrap_wxListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
9609 | { "wxListEvent_GetItem", (PyCFunction) _wrap_wxListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, |
9610 | { "wxListEvent_GetMask", (PyCFunction) _wrap_wxListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
9611 | { "wxListEvent_GetData", (PyCFunction) _wrap_wxListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
9612 | { "wxListEvent_GetImage", (PyCFunction) _wrap_wxListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
9613 | { "wxListEvent_GetText", (PyCFunction) _wrap_wxListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
9614 | { "wxListEvent_GetLabel", (PyCFunction) _wrap_wxListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
9615 | { "wxListEvent_GetPoint", (PyCFunction) _wrap_wxListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
9616 | { "wxListEvent_Cancelled", (PyCFunction) _wrap_wxListEvent_Cancelled, METH_VARARGS | METH_KEYWORDS }, | |
9617 | { "wxListEvent_GetColumn", (PyCFunction) _wrap_wxListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
9618 | { "wxListEvent_GetOldItem", (PyCFunction) _wrap_wxListEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
9619 | { "wxListEvent_GetOldIndex", (PyCFunction) _wrap_wxListEvent_GetOldIndex, METH_VARARGS | METH_KEYWORDS }, | |
9620 | { "wxListEvent_GetIndex", (PyCFunction) _wrap_wxListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
9621 | { "wxListEvent_GetCode", (PyCFunction) _wrap_wxListEvent_GetCode, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9622 | { "wxListEvent_m_item_get", (PyCFunction) _wrap_wxListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, |
9623 | { "wxListEvent_m_item_set", (PyCFunction) _wrap_wxListEvent_m_item_set, METH_VARARGS | METH_KEYWORDS }, | |
9624 | { "wxListEvent_m_pointDrag_get", (PyCFunction) _wrap_wxListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, | |
9625 | { "wxListEvent_m_pointDrag_set", (PyCFunction) _wrap_wxListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS }, | |
9626 | { "wxListEvent_m_cancelled_get", (PyCFunction) _wrap_wxListEvent_m_cancelled_get, METH_VARARGS | METH_KEYWORDS }, | |
9627 | { "wxListEvent_m_cancelled_set", (PyCFunction) _wrap_wxListEvent_m_cancelled_set, METH_VARARGS | METH_KEYWORDS }, | |
9628 | { "wxListEvent_m_col_get", (PyCFunction) _wrap_wxListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
9629 | { "wxListEvent_m_col_set", (PyCFunction) _wrap_wxListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
9630 | { "wxListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
9631 | { "wxListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
9632 | { "wxListEvent_m_itemIndex_get", (PyCFunction) _wrap_wxListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
9633 | { "wxListEvent_m_itemIndex_set", (PyCFunction) _wrap_wxListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
9634 | { "wxListEvent_m_code_get", (PyCFunction) _wrap_wxListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, | |
9635 | { "wxListEvent_m_code_set", (PyCFunction) _wrap_wxListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS }, | |
059a841c | 9636 | { "new_wxListEvent", (PyCFunction) _wrap_new_wxListEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
9637 | { "wxListItem_m_width_get", (PyCFunction) _wrap_wxListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, |
9638 | { "wxListItem_m_width_set", (PyCFunction) _wrap_wxListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
9639 | { "wxListItem_m_format_get", (PyCFunction) _wrap_wxListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
9640 | { "wxListItem_m_format_set", (PyCFunction) _wrap_wxListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
9641 | { "wxListItem_m_data_get", (PyCFunction) _wrap_wxListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
9642 | { "wxListItem_m_data_set", (PyCFunction) _wrap_wxListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
9643 | { "wxListItem_m_image_get", (PyCFunction) _wrap_wxListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
9644 | { "wxListItem_m_image_set", (PyCFunction) _wrap_wxListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
9645 | { "wxListItem_m_text_get", (PyCFunction) _wrap_wxListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
9646 | { "wxListItem_m_text_set", (PyCFunction) _wrap_wxListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
9647 | { "wxListItem_m_stateMask_get", (PyCFunction) _wrap_wxListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
9648 | { "wxListItem_m_stateMask_set", (PyCFunction) _wrap_wxListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
9649 | { "wxListItem_m_state_get", (PyCFunction) _wrap_wxListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
9650 | { "wxListItem_m_state_set", (PyCFunction) _wrap_wxListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
9651 | { "wxListItem_m_col_get", (PyCFunction) _wrap_wxListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
9652 | { "wxListItem_m_col_set", (PyCFunction) _wrap_wxListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
9653 | { "wxListItem_m_itemId_get", (PyCFunction) _wrap_wxListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
9654 | { "wxListItem_m_itemId_set", (PyCFunction) _wrap_wxListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
9655 | { "wxListItem_m_mask_get", (PyCFunction) _wrap_wxListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
9656 | { "wxListItem_m_mask_set", (PyCFunction) _wrap_wxListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
9657 | { "wxListItem_GetFont", (PyCFunction) _wrap_wxListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, |
9658 | { "wxListItem_GetBackgroundColour", (PyCFunction) _wrap_wxListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9659 | { "wxListItem_GetTextColour", (PyCFunction) _wrap_wxListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9660 | { "wxListItem_HasAttributes", (PyCFunction) _wrap_wxListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
9661 | { "wxListItem_GetAttributes", (PyCFunction) _wrap_wxListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
9662 | { "wxListItem_GetAlign", (PyCFunction) _wrap_wxListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
9663 | { "wxListItem_GetWidth", (PyCFunction) _wrap_wxListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
9664 | { "wxListItem_GetData", (PyCFunction) _wrap_wxListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
9665 | { "wxListItem_GetImage", (PyCFunction) _wrap_wxListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
9666 | { "wxListItem_GetText", (PyCFunction) _wrap_wxListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
9667 | { "wxListItem_GetState", (PyCFunction) _wrap_wxListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
9668 | { "wxListItem_GetColumn", (PyCFunction) _wrap_wxListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
9669 | { "wxListItem_GetId", (PyCFunction) _wrap_wxListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
9670 | { "wxListItem_GetMask", (PyCFunction) _wrap_wxListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
9671 | { "wxListItem_SetFont", (PyCFunction) _wrap_wxListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
9672 | { "wxListItem_SetBackgroundColour", (PyCFunction) _wrap_wxListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9673 | { "wxListItem_SetTextColour", (PyCFunction) _wrap_wxListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9674 | { "wxListItem_SetAlign", (PyCFunction) _wrap_wxListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
9675 | { "wxListItem_SetWidth", (PyCFunction) _wrap_wxListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
9676 | { "wxListItem_SetData", (PyCFunction) _wrap_wxListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
9677 | { "wxListItem_SetImage", (PyCFunction) _wrap_wxListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
9678 | { "wxListItem_SetText", (PyCFunction) _wrap_wxListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
9679 | { "wxListItem_SetStateMask", (PyCFunction) _wrap_wxListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
9680 | { "wxListItem_SetState", (PyCFunction) _wrap_wxListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
9681 | { "wxListItem_SetColumn", (PyCFunction) _wrap_wxListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
9682 | { "wxListItem_SetId", (PyCFunction) _wrap_wxListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
9683 | { "wxListItem_SetMask", (PyCFunction) _wrap_wxListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
9684 | { "wxListItem_ClearAttributes", (PyCFunction) _wrap_wxListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
9685 | { "wxListItem_Clear", (PyCFunction) _wrap_wxListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
9686 | { "delete_wxListItem", (PyCFunction) _wrap_delete_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
9687 | { "new_wxListItem", (PyCFunction) _wrap_new_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
9688 | { "wxListItemAttr_GetFont", (PyCFunction) _wrap_wxListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
9689 | { "wxListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9690 | { "wxListItemAttr_GetTextColour", (PyCFunction) _wrap_wxListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9691 | { "wxListItemAttr_HasFont", (PyCFunction) _wrap_wxListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
9692 | { "wxListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9693 | { "wxListItemAttr_HasTextColour", (PyCFunction) _wrap_wxListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9694 | { "wxListItemAttr_SetFont", (PyCFunction) _wrap_wxListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
9695 | { "wxListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9696 | { "wxListItemAttr_SetTextColour", (PyCFunction) _wrap_wxListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9697 | { "new_wxListItemAttr", (PyCFunction) _wrap_new_wxListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
8ab979d7 RD |
9698 | { NULL, NULL } |
9699 | }; | |
1d99702e RD |
9700 | #ifdef __cplusplus |
9701 | } | |
9702 | #endif | |
9703 | /* | |
9704 | * This table is used by the pointer type-checker | |
9705 | */ | |
9706 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e RD |
9707 | { "_wxEvent","_class_wxTreeEvent",SwigwxTreeEventTowxEvent}, |
9708 | { "_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent}, | |
9709 | { "_wxEvent","_class_wxListEvent",SwigwxListEventTowxEvent}, | |
9710 | { "_wxEvent","_wxListEvent",SwigwxListEventTowxEvent}, | |
1d99702e | 9711 | { "_signed_long","_long",0}, |
059a841c RD |
9712 | { "_class_wxPyListCtrl","_class_wxListView",SwigwxListViewTowxPyListCtrl}, |
9713 | { "_class_wxPyListCtrl","_wxListView",SwigwxListViewTowxPyListCtrl}, | |
b1462dfa | 9714 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
9715 | { "_wxPrintQuality","_int",0}, |
9716 | { "_wxPrintQuality","_signed_int",0}, | |
9717 | { "_wxPrintQuality","_unsigned_int",0}, | |
9718 | { "_wxPrintQuality","_wxWindowID",0}, | |
9719 | { "_wxPrintQuality","_uint",0}, | |
9720 | { "_wxPrintQuality","_EBool",0}, | |
9721 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 9722 | { "_wxPrintQuality","_time_t",0}, |
f6bcfd97 BP |
9723 | { "_class_wxEvtHandler","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, |
9724 | { "_class_wxEvtHandler","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, | |
059a841c RD |
9725 | { "_class_wxEvtHandler","_class_wxListView",SwigwxListViewTowxEvtHandler}, |
9726 | { "_class_wxEvtHandler","_wxListView",SwigwxListViewTowxEvtHandler}, | |
cd096152 RD |
9727 | { "_class_wxEvtHandler","_class_wxPyListCtrl",SwigwxPyListCtrlTowxEvtHandler}, |
9728 | { "_class_wxEvtHandler","_wxPyListCtrl",SwigwxPyListCtrlTowxEvtHandler}, | |
1d99702e RD |
9729 | { "_wxNotifyEvent","_class_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, |
9730 | { "_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, | |
c368d904 RD |
9731 | { "_wxNotifyEvent","_class_wxListEvent",SwigwxListEventTowxNotifyEvent}, |
9732 | { "_wxNotifyEvent","_wxListEvent",SwigwxListEventTowxNotifyEvent}, | |
1d99702e | 9733 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
9734 | { "_long","_unsigned_long",0}, |
9735 | { "_long","_signed_long",0}, | |
9df61a29 RD |
9736 | { "_class_wxObject","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxObject}, |
9737 | { "_class_wxObject","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxObject}, | |
9738 | { "_class_wxObject","_class_wxTreeEvent",SwigwxTreeEventTowxObject}, | |
9739 | { "_class_wxObject","_wxTreeEvent",SwigwxTreeEventTowxObject}, | |
9740 | { "_class_wxObject","_class_wxPyTreeItemData",SwigwxPyTreeItemDataTowxObject}, | |
9741 | { "_class_wxObject","_wxPyTreeItemData",SwigwxPyTreeItemDataTowxObject}, | |
059a841c RD |
9742 | { "_class_wxObject","_class_wxListView",SwigwxListViewTowxObject}, |
9743 | { "_class_wxObject","_wxListView",SwigwxListViewTowxObject}, | |
cd096152 RD |
9744 | { "_class_wxObject","_class_wxPyListCtrl",SwigwxPyListCtrlTowxObject}, |
9745 | { "_class_wxObject","_wxPyListCtrl",SwigwxPyListCtrlTowxObject}, | |
9df61a29 RD |
9746 | { "_class_wxObject","_class_wxListEvent",SwigwxListEventTowxObject}, |
9747 | { "_class_wxObject","_wxListEvent",SwigwxListEventTowxObject}, | |
9748 | { "_class_wxObject","_class_wxListItem",SwigwxListItemTowxObject}, | |
9749 | { "_class_wxObject","_wxListItem",SwigwxListItemTowxObject}, | |
b1462dfa | 9750 | { "_size_t","_wxCoord",0}, |
1d99702e | 9751 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 9752 | { "_size_t","_time_t",0}, |
1d99702e RD |
9753 | { "_size_t","_unsigned_int",0}, |
9754 | { "_size_t","_int",0}, | |
9755 | { "_size_t","_wxWindowID",0}, | |
9756 | { "_size_t","_uint",0}, | |
b1462dfa | 9757 | { "_uint","_wxCoord",0}, |
1d99702e | 9758 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 9759 | { "_uint","_time_t",0}, |
1d99702e RD |
9760 | { "_uint","_size_t",0}, |
9761 | { "_uint","_unsigned_int",0}, | |
9762 | { "_uint","_int",0}, | |
9763 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 9764 | { "_wxChar","_char",0}, |
1d99702e RD |
9765 | { "_class_wxEvent","_class_wxTreeEvent",SwigwxTreeEventTowxEvent}, |
9766 | { "_class_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent}, | |
9767 | { "_class_wxEvent","_class_wxListEvent",SwigwxListEventTowxEvent}, | |
9768 | { "_class_wxEvent","_wxListEvent",SwigwxListEventTowxEvent}, | |
1d99702e RD |
9769 | { "_wxCommandEvent","_class_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, |
9770 | { "_wxCommandEvent","_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, | |
9771 | { "_wxCommandEvent","_class_wxListEvent",SwigwxListEventTowxCommandEvent}, | |
9772 | { "_wxCommandEvent","_wxListEvent",SwigwxListEventTowxCommandEvent}, | |
f6bcfd97 | 9773 | { "_char","_wxChar",0}, |
1d99702e RD |
9774 | { "_class_wxNotifyEvent","_class_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, |
9775 | { "_class_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, | |
c368d904 RD |
9776 | { "_class_wxNotifyEvent","_class_wxListEvent",SwigwxListEventTowxNotifyEvent}, |
9777 | { "_class_wxNotifyEvent","_wxListEvent",SwigwxListEventTowxNotifyEvent}, | |
059a841c | 9778 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 9779 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
9780 | { "_EBool","_wxPrintQuality",0}, |
9781 | { "_EBool","_signed_int",0}, | |
9782 | { "_EBool","_int",0}, | |
9783 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 9784 | { "_unsigned_long","_long",0}, |
059a841c | 9785 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 9786 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
9787 | { "_signed_int","_wxPrintQuality",0}, |
9788 | { "_signed_int","_EBool",0}, | |
9789 | { "_signed_int","_wxWindowID",0}, | |
9790 | { "_signed_int","_int",0}, | |
1d99702e RD |
9791 | { "_WXTYPE","_short",0}, |
9792 | { "_WXTYPE","_signed_short",0}, | |
9793 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
9794 | { "_unsigned_short","_WXTYPE",0}, |
9795 | { "_unsigned_short","_short",0}, | |
f6bcfd97 BP |
9796 | { "_class_wxWindow","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, |
9797 | { "_class_wxWindow","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, | |
059a841c RD |
9798 | { "_class_wxWindow","_class_wxListView",SwigwxListViewTowxWindow}, |
9799 | { "_class_wxWindow","_wxListView",SwigwxListViewTowxWindow}, | |
cd096152 RD |
9800 | { "_class_wxWindow","_class_wxPyListCtrl",SwigwxPyListCtrlTowxWindow}, |
9801 | { "_class_wxWindow","_wxPyListCtrl",SwigwxPyListCtrlTowxWindow}, | |
9df61a29 RD |
9802 | { "_wxObject","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxObject}, |
9803 | { "_wxObject","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxObject}, | |
9804 | { "_wxObject","_class_wxTreeEvent",SwigwxTreeEventTowxObject}, | |
9805 | { "_wxObject","_wxTreeEvent",SwigwxTreeEventTowxObject}, | |
9806 | { "_wxObject","_class_wxPyTreeItemData",SwigwxPyTreeItemDataTowxObject}, | |
9807 | { "_wxObject","_wxPyTreeItemData",SwigwxPyTreeItemDataTowxObject}, | |
059a841c RD |
9808 | { "_wxObject","_class_wxListView",SwigwxListViewTowxObject}, |
9809 | { "_wxObject","_wxListView",SwigwxListViewTowxObject}, | |
cd096152 RD |
9810 | { "_wxObject","_class_wxPyListCtrl",SwigwxPyListCtrlTowxObject}, |
9811 | { "_wxObject","_wxPyListCtrl",SwigwxPyListCtrlTowxObject}, | |
9df61a29 RD |
9812 | { "_wxObject","_class_wxListEvent",SwigwxListEventTowxObject}, |
9813 | { "_wxObject","_wxListEvent",SwigwxListEventTowxObject}, | |
9814 | { "_wxObject","_class_wxListItem",SwigwxListItemTowxObject}, | |
9815 | { "_wxObject","_wxListItem",SwigwxListItemTowxObject}, | |
1d99702e RD |
9816 | { "_signed_short","_WXTYPE",0}, |
9817 | { "_signed_short","_short",0}, | |
1d99702e | 9818 | { "_unsigned_char","_byte",0}, |
f6bcfd97 BP |
9819 | { "_wxControl","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, |
9820 | { "_wxControl","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, | |
059a841c RD |
9821 | { "_wxControl","_class_wxListView",SwigwxListViewTowxControl}, |
9822 | { "_wxControl","_wxListView",SwigwxListViewTowxControl}, | |
cd096152 RD |
9823 | { "_wxControl","_class_wxPyListCtrl",SwigwxPyListCtrlTowxControl}, |
9824 | { "_wxControl","_wxPyListCtrl",SwigwxPyListCtrlTowxControl}, | |
b1462dfa | 9825 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 9826 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 9827 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
9828 | { "_unsigned_int","_size_t",0}, |
9829 | { "_unsigned_int","_uint",0}, | |
9830 | { "_unsigned_int","_wxWindowID",0}, | |
9831 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
9832 | { "_short","_WXTYPE",0}, |
9833 | { "_short","_unsigned_short",0}, | |
9834 | { "_short","_signed_short",0}, | |
b1462dfa | 9835 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 9836 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 9837 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
9838 | { "_wxWindowID","_size_t",0}, |
9839 | { "_wxWindowID","_EBool",0}, | |
9840 | { "_wxWindowID","_uint",0}, | |
9841 | { "_wxWindowID","_int",0}, | |
9842 | { "_wxWindowID","_signed_int",0}, | |
9843 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 9844 | { "_int","_wxCoord",0}, |
1d99702e | 9845 | { "_int","_wxPrintQuality",0}, |
c368d904 | 9846 | { "_int","_time_t",0}, |
1d99702e RD |
9847 | { "_int","_size_t",0}, |
9848 | { "_int","_EBool",0}, | |
9849 | { "_int","_uint",0}, | |
9850 | { "_int","_wxWindowID",0}, | |
9851 | { "_int","_unsigned_int",0}, | |
9852 | { "_int","_signed_int",0}, | |
c368d904 RD |
9853 | { "_time_t","_wxCoord",0}, |
9854 | { "_time_t","_wxPrintQuality",0}, | |
9855 | { "_time_t","_unsigned_int",0}, | |
9856 | { "_time_t","_int",0}, | |
9857 | { "_time_t","_wxWindowID",0}, | |
9858 | { "_time_t","_uint",0}, | |
9859 | { "_time_t","_size_t",0}, | |
f6bcfd97 BP |
9860 | { "_class_wxControl","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, |
9861 | { "_class_wxControl","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, | |
059a841c RD |
9862 | { "_class_wxControl","_class_wxListView",SwigwxListViewTowxControl}, |
9863 | { "_class_wxControl","_wxListView",SwigwxListViewTowxControl}, | |
cd096152 RD |
9864 | { "_class_wxControl","_class_wxPyListCtrl",SwigwxPyListCtrlTowxControl}, |
9865 | { "_class_wxControl","_wxPyListCtrl",SwigwxPyListCtrlTowxControl}, | |
b1462dfa RD |
9866 | { "_wxCoord","_int",0}, |
9867 | { "_wxCoord","_signed_int",0}, | |
9868 | { "_wxCoord","_unsigned_int",0}, | |
9869 | { "_wxCoord","_wxWindowID",0}, | |
9870 | { "_wxCoord","_uint",0}, | |
9871 | { "_wxCoord","_EBool",0}, | |
9872 | { "_wxCoord","_size_t",0}, | |
c368d904 | 9873 | { "_wxCoord","_time_t",0}, |
b1462dfa | 9874 | { "_wxCoord","_wxPrintQuality",0}, |
1d99702e RD |
9875 | { "_class_wxCommandEvent","_class_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, |
9876 | { "_class_wxCommandEvent","_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, | |
9877 | { "_class_wxCommandEvent","_class_wxListEvent",SwigwxListEventTowxCommandEvent}, | |
9878 | { "_class_wxCommandEvent","_wxListEvent",SwigwxListEventTowxCommandEvent}, | |
059a841c RD |
9879 | { "_wxPyListCtrl","_class_wxListView",SwigwxListViewTowxPyListCtrl}, |
9880 | { "_wxPyListCtrl","_wxListView",SwigwxListViewTowxPyListCtrl}, | |
f6bcfd97 BP |
9881 | { "_wxEvtHandler","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, |
9882 | { "_wxEvtHandler","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, | |
059a841c RD |
9883 | { "_wxEvtHandler","_class_wxListView",SwigwxListViewTowxEvtHandler}, |
9884 | { "_wxEvtHandler","_wxListView",SwigwxListViewTowxEvtHandler}, | |
cd096152 RD |
9885 | { "_wxEvtHandler","_class_wxPyListCtrl",SwigwxPyListCtrlTowxEvtHandler}, |
9886 | { "_wxEvtHandler","_wxPyListCtrl",SwigwxPyListCtrlTowxEvtHandler}, | |
f6bcfd97 BP |
9887 | { "_wxWindow","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, |
9888 | { "_wxWindow","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, | |
059a841c RD |
9889 | { "_wxWindow","_class_wxListView",SwigwxListViewTowxWindow}, |
9890 | { "_wxWindow","_wxListView",SwigwxListViewTowxWindow}, | |
cd096152 RD |
9891 | { "_wxWindow","_class_wxPyListCtrl",SwigwxPyListCtrlTowxWindow}, |
9892 | { "_wxWindow","_wxPyListCtrl",SwigwxPyListCtrlTowxWindow}, | |
1d99702e RD |
9893 | {0,0,0}}; |
9894 | ||
8ab979d7 RD |
9895 | static PyObject *SWIG_globals; |
9896 | #ifdef __cplusplus | |
9897 | extern "C" | |
9898 | #endif | |
1d99702e | 9899 | SWIGEXPORT(void) initcontrols2c() { |
8ab979d7 RD |
9900 | PyObject *m, *d; |
9901 | SWIG_globals = SWIG_newvarlink(); | |
9902 | m = Py_InitModule("controls2c", controls2cMethods); | |
9903 | d = PyModule_GetDict(m); | |
cd096152 RD |
9904 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
9905 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
9906 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
9907 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
9908 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
9909 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
9910 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_GET_INFO)); | |
9911 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_SET_INFO)); | |
9912 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
9913 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
9914 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_LIST_KEY_DOWN)); | |
9915 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
9916 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_CLICK)); | |
9917 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
9918 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
9919 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
9920 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_CACHE_HINT)); | |
059a841c RD |
9921 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); |
9922 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
9923 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
9924 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
cd096152 RD |
9925 | PyDict_SetItemString(d,"wxLC_VRULES", PyInt_FromLong((long) wxLC_VRULES)); |
9926 | PyDict_SetItemString(d,"wxLC_HRULES", PyInt_FromLong((long) wxLC_HRULES)); | |
9927 | PyDict_SetItemString(d,"wxLC_ICON", PyInt_FromLong((long) wxLC_ICON)); | |
9928 | PyDict_SetItemString(d,"wxLC_SMALL_ICON", PyInt_FromLong((long) wxLC_SMALL_ICON)); | |
9929 | PyDict_SetItemString(d,"wxLC_LIST", PyInt_FromLong((long) wxLC_LIST)); | |
9930 | PyDict_SetItemString(d,"wxLC_REPORT", PyInt_FromLong((long) wxLC_REPORT)); | |
9931 | PyDict_SetItemString(d,"wxLC_ALIGN_TOP", PyInt_FromLong((long) wxLC_ALIGN_TOP)); | |
9932 | PyDict_SetItemString(d,"wxLC_ALIGN_LEFT", PyInt_FromLong((long) wxLC_ALIGN_LEFT)); | |
9933 | PyDict_SetItemString(d,"wxLC_AUTOARRANGE", PyInt_FromLong((long) wxLC_AUTOARRANGE)); | |
9934 | PyDict_SetItemString(d,"wxLC_VIRTUAL", PyInt_FromLong((long) wxLC_VIRTUAL)); | |
9935 | PyDict_SetItemString(d,"wxLC_EDIT_LABELS", PyInt_FromLong((long) wxLC_EDIT_LABELS)); | |
9936 | PyDict_SetItemString(d,"wxLC_NO_HEADER", PyInt_FromLong((long) wxLC_NO_HEADER)); | |
9937 | PyDict_SetItemString(d,"wxLC_NO_SORT_HEADER", PyInt_FromLong((long) wxLC_NO_SORT_HEADER)); | |
9938 | PyDict_SetItemString(d,"wxLC_SINGLE_SEL", PyInt_FromLong((long) wxLC_SINGLE_SEL)); | |
9939 | PyDict_SetItemString(d,"wxLC_SORT_ASCENDING", PyInt_FromLong((long) wxLC_SORT_ASCENDING)); | |
9940 | PyDict_SetItemString(d,"wxLC_SORT_DESCENDING", PyInt_FromLong((long) wxLC_SORT_DESCENDING)); | |
9941 | PyDict_SetItemString(d,"wxLC_MASK_TYPE", PyInt_FromLong((long) wxLC_MASK_TYPE)); | |
9942 | PyDict_SetItemString(d,"wxLC_MASK_ALIGN", PyInt_FromLong((long) wxLC_MASK_ALIGN)); | |
9943 | PyDict_SetItemString(d,"wxLC_MASK_SORT", PyInt_FromLong((long) wxLC_MASK_SORT)); | |
059a841c | 9944 | PyDict_SetItemString(d,"wxLC_USER_TEXT", PyInt_FromLong((long) wxLC_USER_TEXT)); |
cd096152 | 9945 | PyDict_SetItemString(d,"wxLIST_MASK_STATE", PyInt_FromLong((long) wxLIST_MASK_STATE)); |
af309447 RD |
9946 | PyDict_SetItemString(d,"wxLIST_MASK_TEXT", PyInt_FromLong((long) wxLIST_MASK_TEXT)); |
9947 | PyDict_SetItemString(d,"wxLIST_MASK_IMAGE", PyInt_FromLong((long) wxLIST_MASK_IMAGE)); | |
9948 | PyDict_SetItemString(d,"wxLIST_MASK_DATA", PyInt_FromLong((long) wxLIST_MASK_DATA)); | |
cd096152 | 9949 | PyDict_SetItemString(d,"wxLIST_SET_ITEM", PyInt_FromLong((long) wxLIST_SET_ITEM)); |
af309447 RD |
9950 | PyDict_SetItemString(d,"wxLIST_MASK_WIDTH", PyInt_FromLong((long) wxLIST_MASK_WIDTH)); |
9951 | PyDict_SetItemString(d,"wxLIST_MASK_FORMAT", PyInt_FromLong((long) wxLIST_MASK_FORMAT)); | |
9952 | PyDict_SetItemString(d,"wxLIST_STATE_DONTCARE", PyInt_FromLong((long) wxLIST_STATE_DONTCARE)); | |
9953 | PyDict_SetItemString(d,"wxLIST_STATE_DROPHILITED", PyInt_FromLong((long) wxLIST_STATE_DROPHILITED)); | |
9954 | PyDict_SetItemString(d,"wxLIST_STATE_FOCUSED", PyInt_FromLong((long) wxLIST_STATE_FOCUSED)); | |
9955 | PyDict_SetItemString(d,"wxLIST_STATE_SELECTED", PyInt_FromLong((long) wxLIST_STATE_SELECTED)); | |
9956 | PyDict_SetItemString(d,"wxLIST_STATE_CUT", PyInt_FromLong((long) wxLIST_STATE_CUT)); | |
9957 | PyDict_SetItemString(d,"wxLIST_HITTEST_ABOVE", PyInt_FromLong((long) wxLIST_HITTEST_ABOVE)); | |
9958 | PyDict_SetItemString(d,"wxLIST_HITTEST_BELOW", PyInt_FromLong((long) wxLIST_HITTEST_BELOW)); | |
9959 | PyDict_SetItemString(d,"wxLIST_HITTEST_NOWHERE", PyInt_FromLong((long) wxLIST_HITTEST_NOWHERE)); | |
9960 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMICON)); | |
9961 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMLABEL)); | |
9962 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMRIGHT)); | |
9963 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMSTATEICON)); | |
9964 | PyDict_SetItemString(d,"wxLIST_HITTEST_TOLEFT", PyInt_FromLong((long) wxLIST_HITTEST_TOLEFT)); | |
9965 | PyDict_SetItemString(d,"wxLIST_HITTEST_TORIGHT", PyInt_FromLong((long) wxLIST_HITTEST_TORIGHT)); | |
9966 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEM", PyInt_FromLong((long) wxLIST_HITTEST_ONITEM)); | |
9967 | PyDict_SetItemString(d,"wxLIST_NEXT_ABOVE", PyInt_FromLong((long) wxLIST_NEXT_ABOVE)); | |
9968 | PyDict_SetItemString(d,"wxLIST_NEXT_ALL", PyInt_FromLong((long) wxLIST_NEXT_ALL)); | |
9969 | PyDict_SetItemString(d,"wxLIST_NEXT_BELOW", PyInt_FromLong((long) wxLIST_NEXT_BELOW)); | |
9970 | PyDict_SetItemString(d,"wxLIST_NEXT_LEFT", PyInt_FromLong((long) wxLIST_NEXT_LEFT)); | |
9971 | PyDict_SetItemString(d,"wxLIST_NEXT_RIGHT", PyInt_FromLong((long) wxLIST_NEXT_RIGHT)); | |
9972 | PyDict_SetItemString(d,"wxLIST_ALIGN_DEFAULT", PyInt_FromLong((long) wxLIST_ALIGN_DEFAULT)); | |
9973 | PyDict_SetItemString(d,"wxLIST_ALIGN_LEFT", PyInt_FromLong((long) wxLIST_ALIGN_LEFT)); | |
9974 | PyDict_SetItemString(d,"wxLIST_ALIGN_TOP", PyInt_FromLong((long) wxLIST_ALIGN_TOP)); | |
9975 | PyDict_SetItemString(d,"wxLIST_ALIGN_SNAP_TO_GRID", PyInt_FromLong((long) wxLIST_ALIGN_SNAP_TO_GRID)); | |
af309447 RD |
9976 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE", PyInt_FromLong((long) wxLIST_AUTOSIZE)); |
9977 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE_USEHEADER", PyInt_FromLong((long) wxLIST_AUTOSIZE_USEHEADER)); | |
9978 | PyDict_SetItemString(d,"wxLIST_RECT_BOUNDS", PyInt_FromLong((long) wxLIST_RECT_BOUNDS)); | |
9979 | PyDict_SetItemString(d,"wxLIST_RECT_ICON", PyInt_FromLong((long) wxLIST_RECT_ICON)); | |
9980 | PyDict_SetItemString(d,"wxLIST_RECT_LABEL", PyInt_FromLong((long) wxLIST_RECT_LABEL)); | |
9981 | PyDict_SetItemString(d,"wxLIST_FIND_UP", PyInt_FromLong((long) wxLIST_FIND_UP)); | |
9982 | PyDict_SetItemString(d,"wxLIST_FIND_DOWN", PyInt_FromLong((long) wxLIST_FIND_DOWN)); | |
9983 | PyDict_SetItemString(d,"wxLIST_FIND_LEFT", PyInt_FromLong((long) wxLIST_FIND_LEFT)); | |
9984 | PyDict_SetItemString(d,"wxLIST_FIND_RIGHT", PyInt_FromLong((long) wxLIST_FIND_RIGHT)); | |
f6bcfd97 BP |
9985 | PyDict_SetItemString(d,"wxLIST_FORMAT_LEFT", PyInt_FromLong((long) wxLIST_FORMAT_LEFT)); |
9986 | PyDict_SetItemString(d,"wxLIST_FORMAT_RIGHT", PyInt_FromLong((long) wxLIST_FORMAT_RIGHT)); | |
9987 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTRE", PyInt_FromLong((long) wxLIST_FORMAT_CENTRE)); | |
9988 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTER", PyInt_FromLong((long) wxLIST_FORMAT_CENTER)); | |
aa2a5b86 RD |
9989 | PyDict_SetItemString(d,"wxTR_NO_BUTTONS", PyInt_FromLong((long) wxTR_NO_BUTTONS)); |
9990 | PyDict_SetItemString(d,"wxTR_HAS_BUTTONS", PyInt_FromLong((long) wxTR_HAS_BUTTONS)); | |
9991 | PyDict_SetItemString(d,"wxTR_TWIST_BUTTONS", PyInt_FromLong((long) wxTR_TWIST_BUTTONS)); | |
9992 | PyDict_SetItemString(d,"wxTR_NO_LINES", PyInt_FromLong((long) wxTR_NO_LINES)); | |
9993 | PyDict_SetItemString(d,"wxTR_MAC_BUTTONS", PyInt_FromLong((long) wxTR_MAC_BUTTONS)); | |
9994 | PyDict_SetItemString(d,"wxTR_SINGLE", PyInt_FromLong((long) wxTR_SINGLE)); | |
9995 | PyDict_SetItemString(d,"wxTR_MULTIPLE", PyInt_FromLong((long) wxTR_MULTIPLE)); | |
9996 | PyDict_SetItemString(d,"wxTR_EXTENDED", PyInt_FromLong((long) wxTR_EXTENDED)); | |
9997 | PyDict_SetItemString(d,"wxTR_EDIT_LABELS", PyInt_FromLong((long) wxTR_EDIT_LABELS)); | |
9998 | PyDict_SetItemString(d,"wxTR_LINES_AT_ROOT", PyInt_FromLong((long) wxTR_LINES_AT_ROOT)); | |
9999 | PyDict_SetItemString(d,"wxTR_HIDE_ROOT", PyInt_FromLong((long) wxTR_HIDE_ROOT)); | |
10000 | PyDict_SetItemString(d,"wxTR_ROW_LINES", PyInt_FromLong((long) wxTR_ROW_LINES)); | |
10001 | PyDict_SetItemString(d,"wxTR_HAS_VARIABLE_ROW_HEIGHT", PyInt_FromLong((long) wxTR_HAS_VARIABLE_ROW_HEIGHT)); | |
10002 | PyDict_SetItemString(d,"wxTR_DEFAULT_STYLE", PyInt_FromLong((long) wxTR_DEFAULT_STYLE)); | |
694759cf RD |
10003 | PyDict_SetItemString(d,"wxTreeItemIcon_Normal", PyInt_FromLong((long) wxTreeItemIcon_Normal)); |
10004 | PyDict_SetItemString(d,"wxTreeItemIcon_Selected", PyInt_FromLong((long) wxTreeItemIcon_Selected)); | |
10005 | PyDict_SetItemString(d,"wxTreeItemIcon_Expanded", PyInt_FromLong((long) wxTreeItemIcon_Expanded)); | |
10006 | PyDict_SetItemString(d,"wxTreeItemIcon_SelectedExpanded", PyInt_FromLong((long) wxTreeItemIcon_SelectedExpanded)); | |
10007 | PyDict_SetItemString(d,"wxTreeItemIcon_Max", PyInt_FromLong((long) wxTreeItemIcon_Max)); | |
164b735b RD |
10008 | PyDict_SetItemString(d,"wxTREE_HITTEST_ABOVE", PyInt_FromLong((long) wxTREE_HITTEST_ABOVE)); |
10009 | PyDict_SetItemString(d,"wxTREE_HITTEST_BELOW", PyInt_FromLong((long) wxTREE_HITTEST_BELOW)); | |
10010 | PyDict_SetItemString(d,"wxTREE_HITTEST_NOWHERE", PyInt_FromLong((long) wxTREE_HITTEST_NOWHERE)); | |
10011 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMBUTTON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMBUTTON)); | |
10012 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMICON)); | |
10013 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMINDENT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMINDENT)); | |
10014 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLABEL)); | |
10015 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMRIGHT)); | |
10016 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMSTATEICON)); | |
10017 | PyDict_SetItemString(d,"wxTREE_HITTEST_TOLEFT", PyInt_FromLong((long) wxTREE_HITTEST_TOLEFT)); | |
10018 | PyDict_SetItemString(d,"wxTREE_HITTEST_TORIGHT", PyInt_FromLong((long) wxTREE_HITTEST_TORIGHT)); | |
10019 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMUPPERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMUPPERPART)); | |
10020 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLOWERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLOWERPART)); | |
10021 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEM", PyInt_FromLong((long) wxTREE_HITTEST_ONITEM)); | |
9c4165ad RD |
10022 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
10023 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
10024 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
10025 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
10026 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
10027 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_GET_INFO)); | |
10028 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SET_INFO)); | |
10029 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
10030 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
10031 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
10032 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
10033 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
10034 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
10035 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_TREE_KEY_DOWN)); | |
10036 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
10037 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
10038 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
7a446686 | 10039 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_DRAG)); |
9df61a29 | 10040 | |
059a841c | 10041 | // Map renamed classes back to their common name for OOR |
9df61a29 RD |
10042 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); |
10043 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
059a841c | 10044 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); |
1d99702e RD |
10045 | { |
10046 | int i; | |
10047 | for (i = 0; _swig_mapping[i].n1; i++) | |
10048 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
10049 | } | |
8ab979d7 | 10050 | } |