]>
Commit | Line | Data |
---|---|---|
8ab979d7 | 1 | /* |
c368d904 | 2 | * FILE : src/msw/controls2.cpp |
8ab979d7 RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
185d7c3e | 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__) | |
c368d904 | 30 | # define SWIGEXPORT(a) a _export |
8ab979d7 | 31 | # else |
c368d904 | 32 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
c368d904 | 36 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
37 | #endif |
38 | ||
c368d904 RD |
39 | #include "Python.h" |
40 | ||
8ab979d7 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
185d7c3e | 44 | |
8ab979d7 RD |
45 | extern void SWIG_MakePtr(char *, void *, char *); |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
1d99702e | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
8ab979d7 RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
8ab979d7 RD |
54 | #define SWIG_init initcontrols2c |
55 | ||
56 | #define SWIG_name "controls2c" | |
57 | ||
58 | #include "helpers.h" | |
2f90df85 RD |
59 | #ifdef __WXMSW__ |
60 | #include <windows.h> | |
61 | #endif | |
8ab979d7 RD |
62 | #include <wx/listctrl.h> |
63 | #include <wx/treectrl.h> | |
8ab979d7 RD |
64 | |
65 | static PyObject* l_output_helper(PyObject* target, PyObject* o) { | |
66 | PyObject* o2; | |
185d7c3e | 67 | if (!target) { |
8ab979d7 | 68 | target = o; |
185d7c3e | 69 | } else if (target == Py_None) { |
8ab979d7 RD |
70 | Py_DECREF(Py_None); |
71 | target = o; | |
185d7c3e | 72 | } else { |
8ab979d7 RD |
73 | if (!PyList_Check(target)) { |
74 | o2 = target; | |
75 | target = PyList_New(0); | |
76 | PyList_Append(target, o2); | |
77 | Py_XDECREF(o2); | |
78 | } | |
79 | PyList_Append(target,o); | |
80 | Py_XDECREF(o); | |
81 | } | |
82 | return target; | |
83 | } | |
84 | ||
85 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
86 | PyObject* o2; | |
87 | PyObject* o3; | |
88 | ||
185d7c3e | 89 | if (!target) { |
8ab979d7 | 90 | target = o; |
185d7c3e | 91 | } else if (target == Py_None) { |
8ab979d7 RD |
92 | Py_DECREF(Py_None); |
93 | target = o; | |
185d7c3e | 94 | } else { |
8ab979d7 RD |
95 | if (!PyTuple_Check(target)) { |
96 | o2 = target; | |
97 | target = PyTuple_New(1); | |
98 | PyTuple_SetItem(target, 0, o2); | |
99 | } | |
185d7c3e RD |
100 | o3 = PyTuple_New(1); |
101 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
102 | |
103 | o2 = target; | |
185d7c3e RD |
104 | target = PySequence_Concat(o2, o3); |
105 | Py_DECREF(o2); | |
8ab979d7 RD |
106 | Py_DECREF(o3); |
107 | } | |
108 | return target; | |
109 | } | |
110 | ||
8ab979d7 RD |
111 | static char* wxStringErrorMsg = "string type is required for parameter"; |
112 | ||
f6bcfd97 | 113 | int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { |
dcd38683 RD |
114 | int retval = 0; |
115 | PyObject* func = (PyObject*)funcPtr; | |
116 | bool doSave = wxPyRestoreThread(); | |
117 | ||
118 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
119 | PyObject* result = PyEval_CallObject(func, args); | |
120 | Py_DECREF(args); | |
121 | if (result) { | |
122 | retval = PyInt_AsLong(result); | |
123 | Py_DECREF(result); | |
124 | } | |
125 | ||
126 | wxPySaveThread(doSave); | |
127 | return retval; | |
128 | } | |
129 | ||
130 | ||
cf694132 RD |
131 | class wxPyTreeItemData : public wxTreeItemData { |
132 | public: | |
133 | wxPyTreeItemData(PyObject* obj = NULL) { | |
c368d904 | 134 | if (obj == NULL) |
cf694132 | 135 | obj = Py_None; |
c368d904 RD |
136 | Py_INCREF(obj); |
137 | m_obj = obj; | |
cf694132 RD |
138 | } |
139 | ||
140 | ~wxPyTreeItemData() { | |
1afc06c2 | 141 | bool doSave = wxPyRestoreThread(); |
c368d904 | 142 | Py_DECREF(m_obj); |
1afc06c2 | 143 | wxPySaveThread(doSave); |
cf694132 RD |
144 | } |
145 | ||
146 | PyObject* GetData() { | |
147 | Py_INCREF(m_obj); | |
148 | return m_obj; | |
149 | } | |
150 | ||
151 | void SetData(PyObject* obj) { | |
c368d904 | 152 | bool doSave = wxPyRestoreThread(); |
cf694132 | 153 | Py_DECREF(m_obj); |
c368d904 | 154 | wxPySaveThread(doSave); |
cf694132 RD |
155 | m_obj = obj; |
156 | Py_INCREF(obj); | |
157 | } | |
158 | ||
159 | PyObject* m_obj; | |
160 | }; | |
f6bcfd97 BP |
161 | |
162 | class wxPyTreeCtrl : public wxTreeCtrl { | |
163 | public: | |
164 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
165 | const wxPoint& pos, | |
166 | const wxSize& size, | |
167 | long style, | |
168 | const wxValidator& validator, | |
169 | char* name) : | |
170 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
171 | ||
172 | ||
173 | int OnCompareItems(const wxTreeItemId& item1, | |
174 | const wxTreeItemId& item2) { | |
175 | int rval = 0; | |
176 | bool doSave = wxPyRestoreThread(); | |
177 | if (m_myInst.findCallback("OnCompareItems")) | |
178 | rval = m_myInst.callCallback(Py_BuildValue( | |
179 | "(OO)", | |
180 | wxPyConstructObject((void*)&item1, "wxTreeItemId"), | |
181 | wxPyConstructObject((void*)&item2, "wxTreeItemId"))); | |
182 | else | |
183 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
184 | wxPySaveThread(doSave); | |
185 | return rval; | |
186 | } | |
187 | PYPRIVATE; | |
188 | }; | |
189 | ||
1d99702e RD |
190 | #ifdef __cplusplus |
191 | extern "C" { | |
192 | #endif | |
f6bcfd97 BP |
193 | #define new_wxListItemAttr() (new wxListItemAttr()) |
194 | static PyObject *_wrap_new_wxListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 195 | PyObject * _resultobj; |
f6bcfd97 BP |
196 | wxListItemAttr * _result; |
197 | char *_kwnames[] = { NULL }; | |
198 | char _ptemp[128]; | |
af309447 RD |
199 | |
200 | self = self; | |
f6bcfd97 | 201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxListItemAttr",_kwnames)) |
af309447 | 202 | return NULL; |
cf694132 RD |
203 | { |
204 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 205 | _result = (wxListItemAttr *)new_wxListItemAttr(); |
cf694132 RD |
206 | |
207 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
208 | } if (_result) { |
209 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
210 | _resultobj = Py_BuildValue("s",_ptemp); | |
211 | } else { | |
212 | Py_INCREF(Py_None); | |
213 | _resultobj = Py_None; | |
214 | } | |
af309447 RD |
215 | return _resultobj; |
216 | } | |
217 | ||
f6bcfd97 BP |
218 | #define wxListItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) |
219 | static PyObject *_wrap_wxListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 220 | PyObject * _resultobj; |
f6bcfd97 BP |
221 | wxListItemAttr * _arg0; |
222 | wxColour * _arg1; | |
1d99702e | 223 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
224 | wxColour temp; |
225 | PyObject * _obj1 = 0; | |
226 | char *_kwnames[] = { "self","colText", NULL }; | |
8ab979d7 RD |
227 | |
228 | self = self; | |
f6bcfd97 | 229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 230 | return NULL; |
1d99702e RD |
231 | if (_argo0) { |
232 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
233 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
234 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetTextColour. Expected _wxListItemAttr_p."); | |
8ab979d7 RD |
235 | return NULL; |
236 | } | |
237 | } | |
f6bcfd97 BP |
238 | { |
239 | _arg1 = &temp; | |
240 | if (! wxColour_helper(_obj1, &_arg1)) | |
241 | return NULL; | |
242 | } | |
cf694132 RD |
243 | { |
244 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 245 | wxListItemAttr_SetTextColour(_arg0,*_arg1); |
cf694132 RD |
246 | |
247 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
248 | } Py_INCREF(Py_None); |
249 | _resultobj = Py_None; | |
8ab979d7 RD |
250 | return _resultobj; |
251 | } | |
252 | ||
f6bcfd97 BP |
253 | #define wxListItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
254 | static PyObject *_wrap_wxListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 255 | PyObject * _resultobj; |
f6bcfd97 BP |
256 | wxListItemAttr * _arg0; |
257 | wxColour * _arg1; | |
1d99702e | 258 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
259 | wxColour temp; |
260 | PyObject * _obj1 = 0; | |
261 | char *_kwnames[] = { "self","colBack", NULL }; | |
af309447 RD |
262 | |
263 | self = self; | |
f6bcfd97 | 264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
af309447 | 265 | return NULL; |
1d99702e RD |
266 | if (_argo0) { |
267 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
268 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
269 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetBackgroundColour. Expected _wxListItemAttr_p."); | |
af309447 RD |
270 | return NULL; |
271 | } | |
272 | } | |
f6bcfd97 BP |
273 | { |
274 | _arg1 = &temp; | |
275 | if (! wxColour_helper(_obj1, &_arg1)) | |
276 | return NULL; | |
277 | } | |
cf694132 RD |
278 | { |
279 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 280 | wxListItemAttr_SetBackgroundColour(_arg0,*_arg1); |
cf694132 RD |
281 | |
282 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
283 | } Py_INCREF(Py_None); |
284 | _resultobj = Py_None; | |
af309447 RD |
285 | return _resultobj; |
286 | } | |
287 | ||
f6bcfd97 BP |
288 | #define wxListItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
289 | static PyObject *_wrap_wxListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 290 | PyObject * _resultobj; |
f6bcfd97 BP |
291 | wxListItemAttr * _arg0; |
292 | wxFont * _arg1; | |
1d99702e | 293 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
294 | PyObject * _argo1 = 0; |
295 | char *_kwnames[] = { "self","font", NULL }; | |
8ab979d7 RD |
296 | |
297 | self = self; | |
f6bcfd97 | 298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 299 | return NULL; |
1d99702e RD |
300 | if (_argo0) { |
301 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
302 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
303 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetFont. Expected _wxListItemAttr_p."); | |
304 | return NULL; | |
305 | } | |
306 | } | |
307 | if (_argo1) { | |
308 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
309 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItemAttr_SetFont. Expected _wxFont_p."); | |
8ab979d7 RD |
311 | return NULL; |
312 | } | |
313 | } | |
cf694132 RD |
314 | { |
315 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 316 | wxListItemAttr_SetFont(_arg0,*_arg1); |
cf694132 RD |
317 | |
318 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
319 | } Py_INCREF(Py_None); |
320 | _resultobj = Py_None; | |
8ab979d7 RD |
321 | return _resultobj; |
322 | } | |
323 | ||
f6bcfd97 BP |
324 | #define wxListItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) |
325 | static PyObject *_wrap_wxListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 326 | PyObject * _resultobj; |
f6bcfd97 BP |
327 | bool _result; |
328 | wxListItemAttr * _arg0; | |
1d99702e | 329 | PyObject * _argo0 = 0; |
f6bcfd97 | 330 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
331 | |
332 | self = self; | |
f6bcfd97 | 333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasTextColour",_kwnames,&_argo0)) |
af309447 | 334 | return NULL; |
1d99702e RD |
335 | if (_argo0) { |
336 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
337 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
338 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasTextColour. Expected _wxListItemAttr_p."); | |
af309447 RD |
339 | return NULL; |
340 | } | |
341 | } | |
cf694132 RD |
342 | { |
343 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 344 | _result = (bool )wxListItemAttr_HasTextColour(_arg0); |
cf694132 RD |
345 | |
346 | wxPy_END_ALLOW_THREADS; | |
347 | } _resultobj = Py_BuildValue("i",_result); | |
af309447 RD |
348 | return _resultobj; |
349 | } | |
350 | ||
f6bcfd97 BP |
351 | #define wxListItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) |
352 | static PyObject *_wrap_wxListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 353 | PyObject * _resultobj; |
f6bcfd97 BP |
354 | bool _result; |
355 | wxListItemAttr * _arg0; | |
1d99702e | 356 | PyObject * _argo0 = 0; |
efc5f224 | 357 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
358 | |
359 | self = self; | |
f6bcfd97 | 360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasBackgroundColour",_kwnames,&_argo0)) |
8ab979d7 | 361 | return NULL; |
1d99702e RD |
362 | if (_argo0) { |
363 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
364 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
365 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasBackgroundColour. Expected _wxListItemAttr_p."); | |
8ab979d7 RD |
366 | return NULL; |
367 | } | |
368 | } | |
cf694132 RD |
369 | { |
370 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 371 | _result = (bool )wxListItemAttr_HasBackgroundColour(_arg0); |
cf694132 RD |
372 | |
373 | wxPy_END_ALLOW_THREADS; | |
374 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
375 | return _resultobj; |
376 | } | |
377 | ||
f6bcfd97 BP |
378 | #define wxListItemAttr_HasFont(_swigobj) (_swigobj->HasFont()) |
379 | static PyObject *_wrap_wxListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 380 | PyObject * _resultobj; |
f6bcfd97 BP |
381 | bool _result; |
382 | wxListItemAttr * _arg0; | |
1d99702e | 383 | PyObject * _argo0 = 0; |
f6bcfd97 | 384 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
385 | |
386 | self = self; | |
f6bcfd97 | 387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasFont",_kwnames,&_argo0)) |
af309447 | 388 | return NULL; |
1d99702e RD |
389 | if (_argo0) { |
390 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
391 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
392 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasFont. Expected _wxListItemAttr_p."); | |
af309447 RD |
393 | return NULL; |
394 | } | |
395 | } | |
cf694132 RD |
396 | { |
397 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 398 | _result = (bool )wxListItemAttr_HasFont(_arg0); |
cf694132 RD |
399 | |
400 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 401 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
402 | return _resultobj; |
403 | } | |
404 | ||
f6bcfd97 BP |
405 | #define wxListItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) |
406 | static PyObject *_wrap_wxListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 407 | PyObject * _resultobj; |
f6bcfd97 BP |
408 | wxColour * _result; |
409 | wxListItemAttr * _arg0; | |
1d99702e | 410 | PyObject * _argo0 = 0; |
efc5f224 | 411 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 412 | char _ptemp[128]; |
8ab979d7 RD |
413 | |
414 | self = self; | |
f6bcfd97 | 415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetTextColour",_kwnames,&_argo0)) |
8ab979d7 | 416 | return NULL; |
1d99702e RD |
417 | if (_argo0) { |
418 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
419 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
420 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetTextColour. Expected _wxListItemAttr_p."); | |
8ab979d7 RD |
421 | return NULL; |
422 | } | |
423 | } | |
cf694132 RD |
424 | { |
425 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
426 | const wxColour & _result_ref = wxListItemAttr_GetTextColour(_arg0); |
427 | _result = (wxColour *) &_result_ref; | |
cf694132 RD |
428 | |
429 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
430 | } if (_result) { |
431 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
432 | _resultobj = Py_BuildValue("s",_ptemp); | |
433 | } else { | |
434 | Py_INCREF(Py_None); | |
435 | _resultobj = Py_None; | |
436 | } | |
8ab979d7 RD |
437 | return _resultobj; |
438 | } | |
439 | ||
f6bcfd97 BP |
440 | #define wxListItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) |
441 | static PyObject *_wrap_wxListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 442 | PyObject * _resultobj; |
f6bcfd97 BP |
443 | wxColour * _result; |
444 | wxListItemAttr * _arg0; | |
1d99702e | 445 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
446 | char *_kwnames[] = { "self", NULL }; |
447 | char _ptemp[128]; | |
af309447 RD |
448 | |
449 | self = self; | |
f6bcfd97 | 450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetBackgroundColour",_kwnames,&_argo0)) |
af309447 | 451 | return NULL; |
1d99702e RD |
452 | if (_argo0) { |
453 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
454 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
455 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetBackgroundColour. Expected _wxListItemAttr_p."); | |
af309447 RD |
456 | return NULL; |
457 | } | |
458 | } | |
cf694132 RD |
459 | { |
460 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
461 | const wxColour & _result_ref = wxListItemAttr_GetBackgroundColour(_arg0); |
462 | _result = (wxColour *) &_result_ref; | |
cf694132 RD |
463 | |
464 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
465 | } if (_result) { |
466 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
467 | _resultobj = Py_BuildValue("s",_ptemp); | |
468 | } else { | |
469 | Py_INCREF(Py_None); | |
470 | _resultobj = Py_None; | |
471 | } | |
af309447 RD |
472 | return _resultobj; |
473 | } | |
474 | ||
f6bcfd97 BP |
475 | #define wxListItemAttr_GetFont(_swigobj) (_swigobj->GetFont()) |
476 | static PyObject *_wrap_wxListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 477 | PyObject * _resultobj; |
f6bcfd97 BP |
478 | wxFont * _result; |
479 | wxListItemAttr * _arg0; | |
1d99702e | 480 | PyObject * _argo0 = 0; |
efc5f224 | 481 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 482 | char _ptemp[128]; |
8ab979d7 RD |
483 | |
484 | self = self; | |
f6bcfd97 | 485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetFont",_kwnames,&_argo0)) |
8ab979d7 | 486 | return NULL; |
1d99702e RD |
487 | if (_argo0) { |
488 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
489 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
490 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetFont. Expected _wxListItemAttr_p."); | |
8ab979d7 RD |
491 | return NULL; |
492 | } | |
493 | } | |
cf694132 RD |
494 | { |
495 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
496 | const wxFont & _result_ref = wxListItemAttr_GetFont(_arg0); |
497 | _result = (wxFont *) &_result_ref; | |
cf694132 RD |
498 | |
499 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
500 | } if (_result) { |
501 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
502 | _resultobj = Py_BuildValue("s",_ptemp); | |
503 | } else { | |
504 | Py_INCREF(Py_None); | |
505 | _resultobj = Py_None; | |
506 | } | |
8ab979d7 RD |
507 | return _resultobj; |
508 | } | |
509 | ||
f6bcfd97 BP |
510 | #define new_wxListItem() (new wxListItem()) |
511 | static PyObject *_wrap_new_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 512 | PyObject * _resultobj; |
f6bcfd97 BP |
513 | wxListItem * _result; |
514 | char *_kwnames[] = { NULL }; | |
515 | char _ptemp[128]; | |
af309447 RD |
516 | |
517 | self = self; | |
f6bcfd97 | 518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxListItem",_kwnames)) |
af309447 | 519 | return NULL; |
af309447 | 520 | { |
cf694132 | 521 | wxPy_BEGIN_ALLOW_THREADS; |
f6bcfd97 | 522 | _result = (wxListItem *)new_wxListItem(); |
cf694132 RD |
523 | |
524 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
525 | } if (_result) { |
526 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p"); | |
527 | _resultobj = Py_BuildValue("s",_ptemp); | |
528 | } else { | |
529 | Py_INCREF(Py_None); | |
530 | _resultobj = Py_None; | |
531 | } | |
af309447 RD |
532 | return _resultobj; |
533 | } | |
534 | ||
f6bcfd97 BP |
535 | #define delete_wxListItem(_swigobj) (delete _swigobj) |
536 | static PyObject *_wrap_delete_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 537 | PyObject * _resultobj; |
8ab979d7 | 538 | wxListItem * _arg0; |
1d99702e | 539 | PyObject * _argo0 = 0; |
efc5f224 | 540 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
541 | |
542 | self = self; | |
f6bcfd97 | 543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxListItem",_kwnames,&_argo0)) |
8ab979d7 | 544 | return NULL; |
1d99702e RD |
545 | if (_argo0) { |
546 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
547 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 548 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxListItem. Expected _wxListItem_p."); |
8ab979d7 RD |
549 | return NULL; |
550 | } | |
551 | } | |
8ab979d7 | 552 | { |
cf694132 | 553 | wxPy_BEGIN_ALLOW_THREADS; |
f6bcfd97 | 554 | delete_wxListItem(_arg0); |
cf694132 RD |
555 | |
556 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
557 | } Py_INCREF(Py_None); |
558 | _resultobj = Py_None; | |
8ab979d7 RD |
559 | return _resultobj; |
560 | } | |
561 | ||
f6bcfd97 BP |
562 | #define wxListItem_Clear(_swigobj) (_swigobj->Clear()) |
563 | static PyObject *_wrap_wxListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 564 | PyObject * _resultobj; |
af309447 | 565 | wxListItem * _arg0; |
1d99702e | 566 | PyObject * _argo0 = 0; |
f6bcfd97 | 567 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
568 | |
569 | self = self; | |
f6bcfd97 | 570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_Clear",_kwnames,&_argo0)) |
af309447 | 571 | return NULL; |
1d99702e RD |
572 | if (_argo0) { |
573 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
574 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 575 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_Clear. Expected _wxListItem_p."); |
af309447 RD |
576 | return NULL; |
577 | } | |
578 | } | |
cf694132 RD |
579 | { |
580 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 581 | wxListItem_Clear(_arg0); |
cf694132 RD |
582 | |
583 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
584 | } Py_INCREF(Py_None); |
585 | _resultobj = Py_None; | |
af309447 RD |
586 | return _resultobj; |
587 | } | |
588 | ||
f6bcfd97 BP |
589 | #define wxListItem_ClearAttributes(_swigobj) (_swigobj->ClearAttributes()) |
590 | static PyObject *_wrap_wxListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 591 | PyObject * _resultobj; |
8ab979d7 | 592 | wxListItem * _arg0; |
1d99702e | 593 | PyObject * _argo0 = 0; |
efc5f224 | 594 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
595 | |
596 | self = self; | |
f6bcfd97 | 597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_ClearAttributes",_kwnames,&_argo0)) |
8ab979d7 | 598 | return NULL; |
1d99702e RD |
599 | if (_argo0) { |
600 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
601 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 602 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_ClearAttributes. Expected _wxListItem_p."); |
8ab979d7 RD |
603 | return NULL; |
604 | } | |
605 | } | |
cf694132 RD |
606 | { |
607 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 608 | wxListItem_ClearAttributes(_arg0); |
cf694132 RD |
609 | |
610 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
611 | } Py_INCREF(Py_None); |
612 | _resultobj = Py_None; | |
613 | return _resultobj; | |
614 | } | |
615 | ||
616 | #define wxListItem_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) | |
617 | static PyObject *_wrap_wxListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
618 | PyObject * _resultobj; | |
619 | wxListItem * _arg0; | |
620 | long _arg1; | |
621 | PyObject * _argo0 = 0; | |
622 | char *_kwnames[] = { "self","mask", NULL }; | |
623 | ||
624 | self = self; | |
625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetMask",_kwnames,&_argo0,&_arg1)) | |
626 | return NULL; | |
627 | if (_argo0) { | |
628 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
629 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
630 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetMask. Expected _wxListItem_p."); | |
631 | return NULL; | |
632 | } | |
633 | } | |
634 | { | |
635 | wxPy_BEGIN_ALLOW_THREADS; | |
636 | wxListItem_SetMask(_arg0,_arg1); | |
637 | ||
638 | wxPy_END_ALLOW_THREADS; | |
639 | } Py_INCREF(Py_None); | |
640 | _resultobj = Py_None; | |
641 | return _resultobj; | |
642 | } | |
643 | ||
644 | #define wxListItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
645 | static PyObject *_wrap_wxListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
646 | PyObject * _resultobj; | |
647 | wxListItem * _arg0; | |
648 | long _arg1; | |
649 | PyObject * _argo0 = 0; | |
650 | char *_kwnames[] = { "self","id", NULL }; | |
651 | ||
652 | self = self; | |
653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetId",_kwnames,&_argo0,&_arg1)) | |
654 | return NULL; | |
655 | if (_argo0) { | |
656 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
657 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
658 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetId. Expected _wxListItem_p."); | |
659 | return NULL; | |
660 | } | |
661 | } | |
662 | { | |
663 | wxPy_BEGIN_ALLOW_THREADS; | |
664 | wxListItem_SetId(_arg0,_arg1); | |
665 | ||
666 | wxPy_END_ALLOW_THREADS; | |
667 | } Py_INCREF(Py_None); | |
668 | _resultobj = Py_None; | |
669 | return _resultobj; | |
670 | } | |
671 | ||
672 | #define wxListItem_SetColumn(_swigobj,_swigarg0) (_swigobj->SetColumn(_swigarg0)) | |
673 | static PyObject *_wrap_wxListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
674 | PyObject * _resultobj; | |
675 | wxListItem * _arg0; | |
676 | int _arg1; | |
677 | PyObject * _argo0 = 0; | |
678 | char *_kwnames[] = { "self","col", NULL }; | |
679 | ||
680 | self = self; | |
681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetColumn",_kwnames,&_argo0,&_arg1)) | |
682 | return NULL; | |
683 | if (_argo0) { | |
684 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
685 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
686 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetColumn. Expected _wxListItem_p."); | |
687 | return NULL; | |
688 | } | |
689 | } | |
690 | { | |
691 | wxPy_BEGIN_ALLOW_THREADS; | |
692 | wxListItem_SetColumn(_arg0,_arg1); | |
693 | ||
694 | wxPy_END_ALLOW_THREADS; | |
695 | } Py_INCREF(Py_None); | |
696 | _resultobj = Py_None; | |
697 | return _resultobj; | |
698 | } | |
699 | ||
700 | #define wxListItem_SetState(_swigobj,_swigarg0) (_swigobj->SetState(_swigarg0)) | |
701 | static PyObject *_wrap_wxListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
702 | PyObject * _resultobj; | |
703 | wxListItem * _arg0; | |
704 | long _arg1; | |
705 | PyObject * _argo0 = 0; | |
706 | char *_kwnames[] = { "self","state", NULL }; | |
707 | ||
708 | self = self; | |
709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetState",_kwnames,&_argo0,&_arg1)) | |
710 | return NULL; | |
711 | if (_argo0) { | |
712 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
713 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
714 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetState. Expected _wxListItem_p."); | |
715 | return NULL; | |
716 | } | |
717 | } | |
718 | { | |
719 | wxPy_BEGIN_ALLOW_THREADS; | |
720 | wxListItem_SetState(_arg0,_arg1); | |
721 | ||
722 | wxPy_END_ALLOW_THREADS; | |
723 | } Py_INCREF(Py_None); | |
724 | _resultobj = Py_None; | |
725 | return _resultobj; | |
726 | } | |
727 | ||
728 | #define wxListItem_SetStateMask(_swigobj,_swigarg0) (_swigobj->SetStateMask(_swigarg0)) | |
729 | static PyObject *_wrap_wxListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
730 | PyObject * _resultobj; | |
731 | wxListItem * _arg0; | |
732 | long _arg1; | |
733 | PyObject * _argo0 = 0; | |
734 | char *_kwnames[] = { "self","stateMask", NULL }; | |
735 | ||
736 | self = self; | |
737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetStateMask",_kwnames,&_argo0,&_arg1)) | |
738 | return NULL; | |
739 | if (_argo0) { | |
740 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
741 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetStateMask. Expected _wxListItem_p."); | |
743 | return NULL; | |
744 | } | |
745 | } | |
746 | { | |
747 | wxPy_BEGIN_ALLOW_THREADS; | |
748 | wxListItem_SetStateMask(_arg0,_arg1); | |
749 | ||
750 | wxPy_END_ALLOW_THREADS; | |
751 | } Py_INCREF(Py_None); | |
752 | _resultobj = Py_None; | |
753 | return _resultobj; | |
754 | } | |
755 | ||
756 | #define wxListItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) | |
757 | static PyObject *_wrap_wxListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
758 | PyObject * _resultobj; | |
759 | wxListItem * _arg0; | |
760 | wxString * _arg1; | |
761 | PyObject * _argo0 = 0; | |
762 | PyObject * _obj1 = 0; | |
763 | char *_kwnames[] = { "self","text", NULL }; | |
764 | ||
765 | self = self; | |
766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetText",_kwnames,&_argo0,&_obj1)) | |
767 | return NULL; | |
768 | if (_argo0) { | |
769 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
770 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetText. Expected _wxListItem_p."); | |
772 | return NULL; | |
773 | } | |
774 | } | |
775 | { | |
185d7c3e RD |
776 | #if PYTHON_API_VERSION >= 1009 |
777 | char* tmpPtr; int tmpSize; | |
778 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
779 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
780 | return NULL; | |
781 | } | |
782 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
783 | return NULL; | |
784 | _arg1 = new wxString(tmpPtr, tmpSize); | |
785 | #else | |
f6bcfd97 BP |
786 | if (!PyString_Check(_obj1)) { |
787 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
788 | return NULL; | |
789 | } | |
185d7c3e RD |
790 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
791 | #endif | |
f6bcfd97 BP |
792 | } |
793 | { | |
794 | wxPy_BEGIN_ALLOW_THREADS; | |
795 | wxListItem_SetText(_arg0,*_arg1); | |
796 | ||
797 | wxPy_END_ALLOW_THREADS; | |
798 | } Py_INCREF(Py_None); | |
799 | _resultobj = Py_None; | |
800 | { | |
801 | if (_obj1) | |
802 | delete _arg1; | |
803 | } | |
804 | return _resultobj; | |
805 | } | |
806 | ||
807 | #define wxListItem_SetImage(_swigobj,_swigarg0) (_swigobj->SetImage(_swigarg0)) | |
808 | static PyObject *_wrap_wxListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
809 | PyObject * _resultobj; | |
810 | wxListItem * _arg0; | |
811 | int _arg1; | |
812 | PyObject * _argo0 = 0; | |
813 | char *_kwnames[] = { "self","image", NULL }; | |
814 | ||
815 | self = self; | |
816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetImage",_kwnames,&_argo0,&_arg1)) | |
817 | return NULL; | |
818 | if (_argo0) { | |
819 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
820 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
821 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetImage. Expected _wxListItem_p."); | |
822 | return NULL; | |
823 | } | |
824 | } | |
825 | { | |
826 | wxPy_BEGIN_ALLOW_THREADS; | |
827 | wxListItem_SetImage(_arg0,_arg1); | |
828 | ||
829 | wxPy_END_ALLOW_THREADS; | |
830 | } Py_INCREF(Py_None); | |
831 | _resultobj = Py_None; | |
832 | return _resultobj; | |
833 | } | |
834 | ||
835 | #define wxListItem_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
836 | static PyObject *_wrap_wxListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
837 | PyObject * _resultobj; | |
838 | wxListItem * _arg0; | |
839 | long _arg1; | |
840 | PyObject * _argo0 = 0; | |
841 | char *_kwnames[] = { "self","data", NULL }; | |
842 | ||
843 | self = self; | |
844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetData",_kwnames,&_argo0,&_arg1)) | |
845 | return NULL; | |
846 | if (_argo0) { | |
847 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
848 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
849 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetData. Expected _wxListItem_p."); | |
850 | return NULL; | |
851 | } | |
852 | } | |
853 | { | |
854 | wxPy_BEGIN_ALLOW_THREADS; | |
855 | wxListItem_SetData(_arg0,_arg1); | |
856 | ||
857 | wxPy_END_ALLOW_THREADS; | |
858 | } Py_INCREF(Py_None); | |
859 | _resultobj = Py_None; | |
860 | return _resultobj; | |
861 | } | |
862 | ||
863 | #define wxListItem_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
864 | static PyObject *_wrap_wxListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
865 | PyObject * _resultobj; | |
866 | wxListItem * _arg0; | |
867 | int _arg1; | |
868 | PyObject * _argo0 = 0; | |
869 | char *_kwnames[] = { "self","width", NULL }; | |
870 | ||
871 | self = self; | |
872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetWidth",_kwnames,&_argo0,&_arg1)) | |
873 | return NULL; | |
874 | if (_argo0) { | |
875 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
876 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
877 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetWidth. Expected _wxListItem_p."); | |
878 | return NULL; | |
879 | } | |
880 | } | |
881 | { | |
882 | wxPy_BEGIN_ALLOW_THREADS; | |
883 | wxListItem_SetWidth(_arg0,_arg1); | |
884 | ||
885 | wxPy_END_ALLOW_THREADS; | |
886 | } Py_INCREF(Py_None); | |
887 | _resultobj = Py_None; | |
888 | return _resultobj; | |
889 | } | |
890 | ||
891 | #define wxListItem_SetAlign(_swigobj,_swigarg0) (_swigobj->SetAlign(_swigarg0)) | |
892 | static PyObject *_wrap_wxListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
893 | PyObject * _resultobj; | |
894 | wxListItem * _arg0; | |
895 | wxListColumnFormat _arg1; | |
896 | PyObject * _argo0 = 0; | |
897 | char *_kwnames[] = { "self","align", NULL }; | |
898 | ||
899 | self = self; | |
900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetAlign",_kwnames,&_argo0,&_arg1)) | |
901 | return NULL; | |
902 | if (_argo0) { | |
903 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
904 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
905 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetAlign. Expected _wxListItem_p."); | |
906 | return NULL; | |
907 | } | |
908 | } | |
909 | { | |
910 | wxPy_BEGIN_ALLOW_THREADS; | |
911 | wxListItem_SetAlign(_arg0,_arg1); | |
912 | ||
913 | wxPy_END_ALLOW_THREADS; | |
914 | } Py_INCREF(Py_None); | |
915 | _resultobj = Py_None; | |
916 | return _resultobj; | |
917 | } | |
918 | ||
919 | #define wxListItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
920 | static PyObject *_wrap_wxListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
921 | PyObject * _resultobj; | |
922 | wxListItem * _arg0; | |
923 | wxColour * _arg1; | |
924 | PyObject * _argo0 = 0; | |
925 | wxColour temp; | |
926 | PyObject * _obj1 = 0; | |
927 | char *_kwnames[] = { "self","colText", NULL }; | |
928 | ||
929 | self = self; | |
930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
931 | return NULL; | |
932 | if (_argo0) { | |
933 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
934 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
935 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetTextColour. Expected _wxListItem_p."); | |
936 | return NULL; | |
937 | } | |
938 | } | |
939 | { | |
940 | _arg1 = &temp; | |
941 | if (! wxColour_helper(_obj1, &_arg1)) | |
942 | return NULL; | |
943 | } | |
944 | { | |
945 | wxPy_BEGIN_ALLOW_THREADS; | |
946 | wxListItem_SetTextColour(_arg0,*_arg1); | |
947 | ||
948 | wxPy_END_ALLOW_THREADS; | |
949 | } Py_INCREF(Py_None); | |
950 | _resultobj = Py_None; | |
951 | return _resultobj; | |
952 | } | |
953 | ||
954 | #define wxListItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
955 | static PyObject *_wrap_wxListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
956 | PyObject * _resultobj; | |
957 | wxListItem * _arg0; | |
958 | wxColour * _arg1; | |
959 | PyObject * _argo0 = 0; | |
960 | wxColour temp; | |
961 | PyObject * _obj1 = 0; | |
962 | char *_kwnames[] = { "self","colBack", NULL }; | |
963 | ||
964 | self = self; | |
965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
966 | return NULL; | |
967 | if (_argo0) { | |
968 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
969 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
970 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetBackgroundColour. Expected _wxListItem_p."); | |
971 | return NULL; | |
972 | } | |
973 | } | |
974 | { | |
975 | _arg1 = &temp; | |
976 | if (! wxColour_helper(_obj1, &_arg1)) | |
977 | return NULL; | |
978 | } | |
979 | { | |
980 | wxPy_BEGIN_ALLOW_THREADS; | |
981 | wxListItem_SetBackgroundColour(_arg0,*_arg1); | |
982 | ||
983 | wxPy_END_ALLOW_THREADS; | |
984 | } Py_INCREF(Py_None); | |
985 | _resultobj = Py_None; | |
986 | return _resultobj; | |
987 | } | |
988 | ||
989 | #define wxListItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
990 | static PyObject *_wrap_wxListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
991 | PyObject * _resultobj; | |
992 | wxListItem * _arg0; | |
993 | wxFont * _arg1; | |
994 | PyObject * _argo0 = 0; | |
995 | PyObject * _argo1 = 0; | |
996 | char *_kwnames[] = { "self","font", NULL }; | |
997 | ||
998 | self = self; | |
999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetFont",_kwnames,&_argo0,&_argo1)) | |
1000 | return NULL; | |
1001 | if (_argo0) { | |
1002 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1003 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1004 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetFont. Expected _wxListItem_p."); | |
1005 | return NULL; | |
1006 | } | |
1007 | } | |
1008 | if (_argo1) { | |
1009 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1010 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
1011 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItem_SetFont. Expected _wxFont_p."); | |
1012 | return NULL; | |
1013 | } | |
1014 | } | |
1015 | { | |
1016 | wxPy_BEGIN_ALLOW_THREADS; | |
1017 | wxListItem_SetFont(_arg0,*_arg1); | |
1018 | ||
1019 | wxPy_END_ALLOW_THREADS; | |
1020 | } Py_INCREF(Py_None); | |
1021 | _resultobj = Py_None; | |
1022 | return _resultobj; | |
1023 | } | |
1024 | ||
1025 | #define wxListItem_GetMask(_swigobj) (_swigobj->GetMask()) | |
1026 | static PyObject *_wrap_wxListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1027 | PyObject * _resultobj; | |
1028 | long _result; | |
1029 | wxListItem * _arg0; | |
1030 | PyObject * _argo0 = 0; | |
1031 | char *_kwnames[] = { "self", NULL }; | |
1032 | ||
1033 | self = self; | |
1034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetMask",_kwnames,&_argo0)) | |
1035 | return NULL; | |
1036 | if (_argo0) { | |
1037 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1038 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1039 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetMask. Expected _wxListItem_p."); | |
1040 | return NULL; | |
1041 | } | |
1042 | } | |
1043 | { | |
1044 | wxPy_BEGIN_ALLOW_THREADS; | |
1045 | _result = (long )wxListItem_GetMask(_arg0); | |
1046 | ||
1047 | wxPy_END_ALLOW_THREADS; | |
1048 | } _resultobj = Py_BuildValue("l",_result); | |
1049 | return _resultobj; | |
1050 | } | |
1051 | ||
1052 | #define wxListItem_GetId(_swigobj) (_swigobj->GetId()) | |
1053 | static PyObject *_wrap_wxListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1054 | PyObject * _resultobj; | |
1055 | long _result; | |
1056 | wxListItem * _arg0; | |
1057 | PyObject * _argo0 = 0; | |
1058 | char *_kwnames[] = { "self", NULL }; | |
1059 | ||
1060 | self = self; | |
1061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetId",_kwnames,&_argo0)) | |
1062 | return NULL; | |
1063 | if (_argo0) { | |
1064 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1065 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1066 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetId. Expected _wxListItem_p."); | |
1067 | return NULL; | |
1068 | } | |
1069 | } | |
1070 | { | |
1071 | wxPy_BEGIN_ALLOW_THREADS; | |
1072 | _result = (long )wxListItem_GetId(_arg0); | |
1073 | ||
1074 | wxPy_END_ALLOW_THREADS; | |
1075 | } _resultobj = Py_BuildValue("l",_result); | |
1076 | return _resultobj; | |
1077 | } | |
1078 | ||
1079 | #define wxListItem_GetColumn(_swigobj) (_swigobj->GetColumn()) | |
1080 | static PyObject *_wrap_wxListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1081 | PyObject * _resultobj; | |
1082 | int _result; | |
1083 | wxListItem * _arg0; | |
1084 | PyObject * _argo0 = 0; | |
1085 | char *_kwnames[] = { "self", NULL }; | |
1086 | ||
1087 | self = self; | |
1088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetColumn",_kwnames,&_argo0)) | |
1089 | return NULL; | |
1090 | if (_argo0) { | |
1091 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1092 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1093 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetColumn. Expected _wxListItem_p."); | |
1094 | return NULL; | |
1095 | } | |
1096 | } | |
1097 | { | |
1098 | wxPy_BEGIN_ALLOW_THREADS; | |
1099 | _result = (int )wxListItem_GetColumn(_arg0); | |
1100 | ||
1101 | wxPy_END_ALLOW_THREADS; | |
1102 | } _resultobj = Py_BuildValue("i",_result); | |
1103 | return _resultobj; | |
1104 | } | |
1105 | ||
1106 | #define wxListItem_GetState(_swigobj) (_swigobj->GetState()) | |
1107 | static PyObject *_wrap_wxListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1108 | PyObject * _resultobj; | |
1109 | long _result; | |
1110 | wxListItem * _arg0; | |
1111 | PyObject * _argo0 = 0; | |
1112 | char *_kwnames[] = { "self", NULL }; | |
1113 | ||
1114 | self = self; | |
1115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetState",_kwnames,&_argo0)) | |
1116 | return NULL; | |
1117 | if (_argo0) { | |
1118 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1119 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1120 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetState. Expected _wxListItem_p."); | |
1121 | return NULL; | |
1122 | } | |
1123 | } | |
1124 | { | |
1125 | wxPy_BEGIN_ALLOW_THREADS; | |
1126 | _result = (long )wxListItem_GetState(_arg0); | |
1127 | ||
1128 | wxPy_END_ALLOW_THREADS; | |
1129 | } _resultobj = Py_BuildValue("l",_result); | |
1130 | return _resultobj; | |
1131 | } | |
1132 | ||
1133 | #define wxListItem_GetText(_swigobj) (_swigobj->GetText()) | |
1134 | static PyObject *_wrap_wxListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1135 | PyObject * _resultobj; | |
1136 | wxString * _result; | |
1137 | wxListItem * _arg0; | |
1138 | PyObject * _argo0 = 0; | |
1139 | char *_kwnames[] = { "self", NULL }; | |
1140 | ||
1141 | self = self; | |
1142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetText",_kwnames,&_argo0)) | |
1143 | return NULL; | |
1144 | if (_argo0) { | |
1145 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1146 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1147 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetText. Expected _wxListItem_p."); | |
1148 | return NULL; | |
1149 | } | |
1150 | } | |
1151 | { | |
1152 | wxPy_BEGIN_ALLOW_THREADS; | |
1153 | const wxString & _result_ref = wxListItem_GetText(_arg0); | |
1154 | _result = (wxString *) &_result_ref; | |
1155 | ||
1156 | wxPy_END_ALLOW_THREADS; | |
1157 | }{ | |
1158 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1159 | } | |
1160 | return _resultobj; | |
1161 | } | |
1162 | ||
1163 | #define wxListItem_GetImage(_swigobj) (_swigobj->GetImage()) | |
1164 | static PyObject *_wrap_wxListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1165 | PyObject * _resultobj; | |
1166 | int _result; | |
1167 | wxListItem * _arg0; | |
1168 | PyObject * _argo0 = 0; | |
1169 | char *_kwnames[] = { "self", NULL }; | |
1170 | ||
1171 | self = self; | |
1172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetImage",_kwnames,&_argo0)) | |
1173 | return NULL; | |
1174 | if (_argo0) { | |
1175 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1176 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1177 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetImage. Expected _wxListItem_p."); | |
1178 | return NULL; | |
1179 | } | |
1180 | } | |
1181 | { | |
1182 | wxPy_BEGIN_ALLOW_THREADS; | |
1183 | _result = (int )wxListItem_GetImage(_arg0); | |
1184 | ||
1185 | wxPy_END_ALLOW_THREADS; | |
1186 | } _resultobj = Py_BuildValue("i",_result); | |
1187 | return _resultobj; | |
1188 | } | |
1189 | ||
1190 | #define wxListItem_GetData(_swigobj) (_swigobj->GetData()) | |
1191 | static PyObject *_wrap_wxListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1192 | PyObject * _resultobj; | |
1193 | long _result; | |
1194 | wxListItem * _arg0; | |
1195 | PyObject * _argo0 = 0; | |
1196 | char *_kwnames[] = { "self", NULL }; | |
1197 | ||
1198 | self = self; | |
1199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetData",_kwnames,&_argo0)) | |
1200 | return NULL; | |
1201 | if (_argo0) { | |
1202 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1203 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1204 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetData. Expected _wxListItem_p."); | |
1205 | return NULL; | |
1206 | } | |
1207 | } | |
1208 | { | |
1209 | wxPy_BEGIN_ALLOW_THREADS; | |
1210 | _result = (long )wxListItem_GetData(_arg0); | |
1211 | ||
1212 | wxPy_END_ALLOW_THREADS; | |
1213 | } _resultobj = Py_BuildValue("l",_result); | |
1214 | return _resultobj; | |
1215 | } | |
1216 | ||
1217 | #define wxListItem_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1218 | static PyObject *_wrap_wxListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1219 | PyObject * _resultobj; | |
1220 | int _result; | |
1221 | wxListItem * _arg0; | |
1222 | PyObject * _argo0 = 0; | |
1223 | char *_kwnames[] = { "self", NULL }; | |
1224 | ||
1225 | self = self; | |
1226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetWidth",_kwnames,&_argo0)) | |
1227 | return NULL; | |
1228 | if (_argo0) { | |
1229 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1230 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1231 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetWidth. Expected _wxListItem_p."); | |
1232 | return NULL; | |
1233 | } | |
1234 | } | |
1235 | { | |
1236 | wxPy_BEGIN_ALLOW_THREADS; | |
1237 | _result = (int )wxListItem_GetWidth(_arg0); | |
1238 | ||
1239 | wxPy_END_ALLOW_THREADS; | |
1240 | } _resultobj = Py_BuildValue("i",_result); | |
1241 | return _resultobj; | |
1242 | } | |
1243 | ||
1244 | #define wxListItem_GetAlign(_swigobj) (_swigobj->GetAlign()) | |
1245 | static PyObject *_wrap_wxListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1246 | PyObject * _resultobj; | |
1247 | wxListColumnFormat _result; | |
1248 | wxListItem * _arg0; | |
1249 | PyObject * _argo0 = 0; | |
1250 | char *_kwnames[] = { "self", NULL }; | |
1251 | ||
1252 | self = self; | |
1253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAlign",_kwnames,&_argo0)) | |
1254 | return NULL; | |
1255 | if (_argo0) { | |
1256 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1257 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1258 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAlign. Expected _wxListItem_p."); | |
1259 | return NULL; | |
1260 | } | |
1261 | } | |
1262 | { | |
1263 | wxPy_BEGIN_ALLOW_THREADS; | |
1264 | _result = (wxListColumnFormat )wxListItem_GetAlign(_arg0); | |
1265 | ||
1266 | wxPy_END_ALLOW_THREADS; | |
1267 | } _resultobj = Py_BuildValue("i",_result); | |
1268 | return _resultobj; | |
1269 | } | |
1270 | ||
1271 | #define wxListItem_GetAttributes(_swigobj) (_swigobj->GetAttributes()) | |
1272 | static PyObject *_wrap_wxListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1273 | PyObject * _resultobj; | |
1274 | wxListItemAttr * _result; | |
1275 | wxListItem * _arg0; | |
1276 | PyObject * _argo0 = 0; | |
1277 | char *_kwnames[] = { "self", NULL }; | |
1278 | char _ptemp[128]; | |
1279 | ||
1280 | self = self; | |
1281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAttributes",_kwnames,&_argo0)) | |
1282 | return NULL; | |
1283 | if (_argo0) { | |
1284 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1285 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAttributes. Expected _wxListItem_p."); | |
1287 | return NULL; | |
1288 | } | |
1289 | } | |
1290 | { | |
1291 | wxPy_BEGIN_ALLOW_THREADS; | |
1292 | _result = (wxListItemAttr *)wxListItem_GetAttributes(_arg0); | |
1293 | ||
1294 | wxPy_END_ALLOW_THREADS; | |
1295 | } if (_result) { | |
1296 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
1297 | _resultobj = Py_BuildValue("s",_ptemp); | |
1298 | } else { | |
1299 | Py_INCREF(Py_None); | |
1300 | _resultobj = Py_None; | |
1301 | } | |
1302 | return _resultobj; | |
1303 | } | |
1304 | ||
1305 | #define wxListItem_HasAttributes(_swigobj) (_swigobj->HasAttributes()) | |
1306 | static PyObject *_wrap_wxListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1307 | PyObject * _resultobj; | |
1308 | bool _result; | |
1309 | wxListItem * _arg0; | |
1310 | PyObject * _argo0 = 0; | |
1311 | char *_kwnames[] = { "self", NULL }; | |
1312 | ||
1313 | self = self; | |
1314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_HasAttributes",_kwnames,&_argo0)) | |
1315 | return NULL; | |
1316 | if (_argo0) { | |
1317 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1318 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_HasAttributes. Expected _wxListItem_p."); | |
1320 | return NULL; | |
1321 | } | |
1322 | } | |
1323 | { | |
1324 | wxPy_BEGIN_ALLOW_THREADS; | |
1325 | _result = (bool )wxListItem_HasAttributes(_arg0); | |
1326 | ||
1327 | wxPy_END_ALLOW_THREADS; | |
1328 | } _resultobj = Py_BuildValue("i",_result); | |
1329 | return _resultobj; | |
1330 | } | |
1331 | ||
1332 | #define wxListItem_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
1333 | static PyObject *_wrap_wxListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1334 | PyObject * _resultobj; | |
1335 | wxColour * _result; | |
1336 | wxListItem * _arg0; | |
1337 | PyObject * _argo0 = 0; | |
1338 | char *_kwnames[] = { "self", NULL }; | |
1339 | char _ptemp[128]; | |
1340 | ||
1341 | self = self; | |
1342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetTextColour",_kwnames,&_argo0)) | |
1343 | return NULL; | |
1344 | if (_argo0) { | |
1345 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1346 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1347 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetTextColour. Expected _wxListItem_p."); | |
1348 | return NULL; | |
1349 | } | |
1350 | } | |
1351 | { | |
1352 | wxPy_BEGIN_ALLOW_THREADS; | |
1353 | _result = new wxColour (wxListItem_GetTextColour(_arg0)); | |
1354 | ||
1355 | wxPy_END_ALLOW_THREADS; | |
1356 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
1357 | _resultobj = Py_BuildValue("s",_ptemp); | |
1358 | return _resultobj; | |
1359 | } | |
1360 | ||
1361 | #define wxListItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
1362 | static PyObject *_wrap_wxListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1363 | PyObject * _resultobj; | |
1364 | wxColour * _result; | |
1365 | wxListItem * _arg0; | |
1366 | PyObject * _argo0 = 0; | |
1367 | char *_kwnames[] = { "self", NULL }; | |
1368 | char _ptemp[128]; | |
1369 | ||
1370 | self = self; | |
1371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetBackgroundColour",_kwnames,&_argo0)) | |
1372 | return NULL; | |
1373 | if (_argo0) { | |
1374 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1375 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1376 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetBackgroundColour. Expected _wxListItem_p."); | |
1377 | return NULL; | |
1378 | } | |
1379 | } | |
1380 | { | |
1381 | wxPy_BEGIN_ALLOW_THREADS; | |
1382 | _result = new wxColour (wxListItem_GetBackgroundColour(_arg0)); | |
1383 | ||
1384 | wxPy_END_ALLOW_THREADS; | |
1385 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
1386 | _resultobj = Py_BuildValue("s",_ptemp); | |
1387 | return _resultobj; | |
1388 | } | |
1389 | ||
1390 | #define wxListItem_GetFont(_swigobj) (_swigobj->GetFont()) | |
1391 | static PyObject *_wrap_wxListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1392 | PyObject * _resultobj; | |
1393 | wxFont * _result; | |
1394 | wxListItem * _arg0; | |
1395 | PyObject * _argo0 = 0; | |
1396 | char *_kwnames[] = { "self", NULL }; | |
1397 | char _ptemp[128]; | |
1398 | ||
1399 | self = self; | |
1400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetFont",_kwnames,&_argo0)) | |
1401 | return NULL; | |
1402 | if (_argo0) { | |
1403 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1404 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1405 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetFont. Expected _wxListItem_p."); | |
1406 | return NULL; | |
1407 | } | |
1408 | } | |
1409 | { | |
1410 | wxPy_BEGIN_ALLOW_THREADS; | |
1411 | _result = new wxFont (wxListItem_GetFont(_arg0)); | |
1412 | ||
1413 | wxPy_END_ALLOW_THREADS; | |
1414 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); | |
1415 | _resultobj = Py_BuildValue("s",_ptemp); | |
1416 | return _resultobj; | |
1417 | } | |
1418 | ||
1419 | #define wxListItem_m_mask_set(_swigobj,_swigval) (_swigobj->m_mask = _swigval,_swigval) | |
1420 | static PyObject *_wrap_wxListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1421 | PyObject * _resultobj; | |
1422 | long _result; | |
1423 | wxListItem * _arg0; | |
1424 | long _arg1; | |
1425 | PyObject * _argo0 = 0; | |
1426 | char *_kwnames[] = { "self","m_mask", NULL }; | |
1427 | ||
1428 | self = self; | |
1429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_mask_set",_kwnames,&_argo0,&_arg1)) | |
1430 | return NULL; | |
1431 | if (_argo0) { | |
1432 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1433 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1434 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_set. Expected _wxListItem_p."); | |
1435 | return NULL; | |
1436 | } | |
1437 | } | |
1438 | { | |
1439 | wxPy_BEGIN_ALLOW_THREADS; | |
1440 | _result = (long )wxListItem_m_mask_set(_arg0,_arg1); | |
1441 | ||
1442 | wxPy_END_ALLOW_THREADS; | |
1443 | } _resultobj = Py_BuildValue("l",_result); | |
1444 | return _resultobj; | |
1445 | } | |
1446 | ||
1447 | #define wxListItem_m_mask_get(_swigobj) ((long ) _swigobj->m_mask) | |
1448 | static PyObject *_wrap_wxListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1449 | PyObject * _resultobj; | |
1450 | long _result; | |
1451 | wxListItem * _arg0; | |
1452 | PyObject * _argo0 = 0; | |
1453 | char *_kwnames[] = { "self", NULL }; | |
1454 | ||
1455 | self = self; | |
1456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_mask_get",_kwnames,&_argo0)) | |
1457 | return NULL; | |
1458 | if (_argo0) { | |
1459 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1460 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1461 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_get. Expected _wxListItem_p."); | |
1462 | return NULL; | |
1463 | } | |
1464 | } | |
1465 | { | |
1466 | wxPy_BEGIN_ALLOW_THREADS; | |
1467 | _result = (long )wxListItem_m_mask_get(_arg0); | |
1468 | ||
1469 | wxPy_END_ALLOW_THREADS; | |
1470 | } _resultobj = Py_BuildValue("l",_result); | |
1471 | return _resultobj; | |
1472 | } | |
1473 | ||
1474 | #define wxListItem_m_itemId_set(_swigobj,_swigval) (_swigobj->m_itemId = _swigval,_swigval) | |
1475 | static PyObject *_wrap_wxListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1476 | PyObject * _resultobj; | |
1477 | long _result; | |
1478 | wxListItem * _arg0; | |
1479 | long _arg1; | |
1480 | PyObject * _argo0 = 0; | |
1481 | char *_kwnames[] = { "self","m_itemId", NULL }; | |
1482 | ||
1483 | self = self; | |
1484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_itemId_set",_kwnames,&_argo0,&_arg1)) | |
1485 | return NULL; | |
1486 | if (_argo0) { | |
1487 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1488 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_set. Expected _wxListItem_p."); | |
1490 | return NULL; | |
1491 | } | |
1492 | } | |
1493 | { | |
1494 | wxPy_BEGIN_ALLOW_THREADS; | |
1495 | _result = (long )wxListItem_m_itemId_set(_arg0,_arg1); | |
1496 | ||
1497 | wxPy_END_ALLOW_THREADS; | |
1498 | } _resultobj = Py_BuildValue("l",_result); | |
1499 | return _resultobj; | |
1500 | } | |
1501 | ||
1502 | #define wxListItem_m_itemId_get(_swigobj) ((long ) _swigobj->m_itemId) | |
1503 | static PyObject *_wrap_wxListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1504 | PyObject * _resultobj; | |
1505 | long _result; | |
1506 | wxListItem * _arg0; | |
1507 | PyObject * _argo0 = 0; | |
1508 | char *_kwnames[] = { "self", NULL }; | |
1509 | ||
1510 | self = self; | |
1511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_itemId_get",_kwnames,&_argo0)) | |
1512 | return NULL; | |
1513 | if (_argo0) { | |
1514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_get. Expected _wxListItem_p."); | |
1517 | return NULL; | |
1518 | } | |
1519 | } | |
1520 | { | |
1521 | wxPy_BEGIN_ALLOW_THREADS; | |
1522 | _result = (long )wxListItem_m_itemId_get(_arg0); | |
1523 | ||
1524 | wxPy_END_ALLOW_THREADS; | |
1525 | } _resultobj = Py_BuildValue("l",_result); | |
1526 | return _resultobj; | |
1527 | } | |
1528 | ||
1529 | #define wxListItem_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval) | |
1530 | static PyObject *_wrap_wxListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1531 | PyObject * _resultobj; | |
1532 | int _result; | |
1533 | wxListItem * _arg0; | |
1534 | int _arg1; | |
1535 | PyObject * _argo0 = 0; | |
1536 | char *_kwnames[] = { "self","m_col", NULL }; | |
1537 | ||
1538 | self = self; | |
1539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_col_set",_kwnames,&_argo0,&_arg1)) | |
1540 | return NULL; | |
1541 | if (_argo0) { | |
1542 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1543 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_set. Expected _wxListItem_p."); | |
1545 | return NULL; | |
1546 | } | |
1547 | } | |
1548 | { | |
1549 | wxPy_BEGIN_ALLOW_THREADS; | |
1550 | _result = (int )wxListItem_m_col_set(_arg0,_arg1); | |
1551 | ||
1552 | wxPy_END_ALLOW_THREADS; | |
1553 | } _resultobj = Py_BuildValue("i",_result); | |
1554 | return _resultobj; | |
1555 | } | |
1556 | ||
1557 | #define wxListItem_m_col_get(_swigobj) ((int ) _swigobj->m_col) | |
1558 | static PyObject *_wrap_wxListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1559 | PyObject * _resultobj; | |
1560 | int _result; | |
1561 | wxListItem * _arg0; | |
1562 | PyObject * _argo0 = 0; | |
1563 | char *_kwnames[] = { "self", NULL }; | |
1564 | ||
1565 | self = self; | |
1566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_col_get",_kwnames,&_argo0)) | |
1567 | return NULL; | |
1568 | if (_argo0) { | |
1569 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1570 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1571 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_get. Expected _wxListItem_p."); | |
1572 | return NULL; | |
1573 | } | |
1574 | } | |
1575 | { | |
1576 | wxPy_BEGIN_ALLOW_THREADS; | |
1577 | _result = (int )wxListItem_m_col_get(_arg0); | |
1578 | ||
1579 | wxPy_END_ALLOW_THREADS; | |
1580 | } _resultobj = Py_BuildValue("i",_result); | |
1581 | return _resultobj; | |
1582 | } | |
1583 | ||
1584 | #define wxListItem_m_state_set(_swigobj,_swigval) (_swigobj->m_state = _swigval,_swigval) | |
1585 | static PyObject *_wrap_wxListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1586 | PyObject * _resultobj; | |
1587 | long _result; | |
1588 | wxListItem * _arg0; | |
1589 | long _arg1; | |
1590 | PyObject * _argo0 = 0; | |
1591 | char *_kwnames[] = { "self","m_state", NULL }; | |
1592 | ||
1593 | self = self; | |
1594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_state_set",_kwnames,&_argo0,&_arg1)) | |
1595 | return NULL; | |
1596 | if (_argo0) { | |
1597 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1598 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1599 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_set. Expected _wxListItem_p."); | |
1600 | return NULL; | |
1601 | } | |
1602 | } | |
1603 | { | |
1604 | wxPy_BEGIN_ALLOW_THREADS; | |
1605 | _result = (long )wxListItem_m_state_set(_arg0,_arg1); | |
1606 | ||
1607 | wxPy_END_ALLOW_THREADS; | |
1608 | } _resultobj = Py_BuildValue("l",_result); | |
1609 | return _resultobj; | |
1610 | } | |
1611 | ||
1612 | #define wxListItem_m_state_get(_swigobj) ((long ) _swigobj->m_state) | |
1613 | static PyObject *_wrap_wxListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1614 | PyObject * _resultobj; | |
1615 | long _result; | |
1616 | wxListItem * _arg0; | |
1617 | PyObject * _argo0 = 0; | |
1618 | char *_kwnames[] = { "self", NULL }; | |
1619 | ||
1620 | self = self; | |
1621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_state_get",_kwnames,&_argo0)) | |
1622 | return NULL; | |
1623 | if (_argo0) { | |
1624 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1625 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1626 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_get. Expected _wxListItem_p."); | |
1627 | return NULL; | |
1628 | } | |
1629 | } | |
1630 | { | |
1631 | wxPy_BEGIN_ALLOW_THREADS; | |
1632 | _result = (long )wxListItem_m_state_get(_arg0); | |
1633 | ||
1634 | wxPy_END_ALLOW_THREADS; | |
1635 | } _resultobj = Py_BuildValue("l",_result); | |
1636 | return _resultobj; | |
1637 | } | |
1638 | ||
1639 | #define wxListItem_m_stateMask_set(_swigobj,_swigval) (_swigobj->m_stateMask = _swigval,_swigval) | |
1640 | static PyObject *_wrap_wxListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1641 | PyObject * _resultobj; | |
1642 | long _result; | |
1643 | wxListItem * _arg0; | |
1644 | long _arg1; | |
1645 | PyObject * _argo0 = 0; | |
1646 | char *_kwnames[] = { "self","m_stateMask", NULL }; | |
1647 | ||
1648 | self = self; | |
1649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_stateMask_set",_kwnames,&_argo0,&_arg1)) | |
1650 | return NULL; | |
1651 | if (_argo0) { | |
1652 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1653 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1654 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_set. Expected _wxListItem_p."); | |
1655 | return NULL; | |
1656 | } | |
1657 | } | |
1658 | { | |
1659 | wxPy_BEGIN_ALLOW_THREADS; | |
1660 | _result = (long )wxListItem_m_stateMask_set(_arg0,_arg1); | |
1661 | ||
1662 | wxPy_END_ALLOW_THREADS; | |
1663 | } _resultobj = Py_BuildValue("l",_result); | |
1664 | return _resultobj; | |
1665 | } | |
1666 | ||
1667 | #define wxListItem_m_stateMask_get(_swigobj) ((long ) _swigobj->m_stateMask) | |
1668 | static PyObject *_wrap_wxListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1669 | PyObject * _resultobj; | |
1670 | long _result; | |
1671 | wxListItem * _arg0; | |
1672 | PyObject * _argo0 = 0; | |
1673 | char *_kwnames[] = { "self", NULL }; | |
1674 | ||
1675 | self = self; | |
1676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_stateMask_get",_kwnames,&_argo0)) | |
1677 | return NULL; | |
1678 | if (_argo0) { | |
1679 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1680 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1681 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_get. Expected _wxListItem_p."); | |
1682 | return NULL; | |
1683 | } | |
1684 | } | |
1685 | { | |
1686 | wxPy_BEGIN_ALLOW_THREADS; | |
1687 | _result = (long )wxListItem_m_stateMask_get(_arg0); | |
1688 | ||
1689 | wxPy_END_ALLOW_THREADS; | |
1690 | } _resultobj = Py_BuildValue("l",_result); | |
1691 | return _resultobj; | |
1692 | } | |
1693 | ||
1694 | #define wxListItem_m_text_set(_swigobj,_swigval) (_swigobj->m_text = *(_swigval),_swigval) | |
1695 | static PyObject *_wrap_wxListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1696 | PyObject * _resultobj; | |
1697 | wxString * _result; | |
1698 | wxListItem * _arg0; | |
1699 | wxString * _arg1; | |
1700 | PyObject * _argo0 = 0; | |
1701 | PyObject * _obj1 = 0; | |
1702 | char *_kwnames[] = { "self","m_text", NULL }; | |
1703 | ||
1704 | self = self; | |
1705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_m_text_set",_kwnames,&_argo0,&_obj1)) | |
1706 | return NULL; | |
1707 | if (_argo0) { | |
1708 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1709 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1710 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_set. Expected _wxListItem_p."); | |
1711 | return NULL; | |
1712 | } | |
1713 | } | |
1714 | { | |
185d7c3e RD |
1715 | #if PYTHON_API_VERSION >= 1009 |
1716 | char* tmpPtr; int tmpSize; | |
1717 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1718 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1719 | return NULL; | |
1720 | } | |
1721 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1722 | return NULL; | |
1723 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1724 | #else | |
f6bcfd97 BP |
1725 | if (!PyString_Check(_obj1)) { |
1726 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1727 | return NULL; | |
1728 | } | |
185d7c3e RD |
1729 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1730 | #endif | |
f6bcfd97 BP |
1731 | } |
1732 | { | |
1733 | wxPy_BEGIN_ALLOW_THREADS; | |
1734 | _result = (wxString *)wxListItem_m_text_set(_arg0,_arg1); | |
1735 | ||
1736 | wxPy_END_ALLOW_THREADS; | |
1737 | }{ | |
1738 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1739 | } | |
1740 | { | |
1741 | if (_obj1) | |
1742 | delete _arg1; | |
1743 | } | |
1744 | return _resultobj; | |
1745 | } | |
1746 | ||
1747 | #define wxListItem_m_text_get(_swigobj) (&_swigobj->m_text) | |
1748 | static PyObject *_wrap_wxListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1749 | PyObject * _resultobj; | |
1750 | wxString * _result; | |
1751 | wxListItem * _arg0; | |
1752 | PyObject * _argo0 = 0; | |
1753 | char *_kwnames[] = { "self", NULL }; | |
1754 | ||
1755 | self = self; | |
1756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_text_get",_kwnames,&_argo0)) | |
1757 | return NULL; | |
1758 | if (_argo0) { | |
1759 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1760 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1761 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_get. Expected _wxListItem_p."); | |
1762 | return NULL; | |
1763 | } | |
1764 | } | |
1765 | { | |
1766 | wxPy_BEGIN_ALLOW_THREADS; | |
1767 | _result = (wxString *)wxListItem_m_text_get(_arg0); | |
1768 | ||
1769 | wxPy_END_ALLOW_THREADS; | |
1770 | }{ | |
1771 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1772 | } | |
1773 | return _resultobj; | |
1774 | } | |
1775 | ||
1776 | #define wxListItem_m_image_set(_swigobj,_swigval) (_swigobj->m_image = _swigval,_swigval) | |
1777 | static PyObject *_wrap_wxListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1778 | PyObject * _resultobj; | |
1779 | int _result; | |
1780 | wxListItem * _arg0; | |
1781 | int _arg1; | |
1782 | PyObject * _argo0 = 0; | |
1783 | char *_kwnames[] = { "self","m_image", NULL }; | |
1784 | ||
1785 | self = self; | |
1786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_image_set",_kwnames,&_argo0,&_arg1)) | |
1787 | return NULL; | |
1788 | if (_argo0) { | |
1789 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1790 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1791 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_set. Expected _wxListItem_p."); | |
1792 | return NULL; | |
1793 | } | |
1794 | } | |
1795 | { | |
1796 | wxPy_BEGIN_ALLOW_THREADS; | |
1797 | _result = (int )wxListItem_m_image_set(_arg0,_arg1); | |
1798 | ||
1799 | wxPy_END_ALLOW_THREADS; | |
1800 | } _resultobj = Py_BuildValue("i",_result); | |
1801 | return _resultobj; | |
1802 | } | |
1803 | ||
1804 | #define wxListItem_m_image_get(_swigobj) ((int ) _swigobj->m_image) | |
1805 | static PyObject *_wrap_wxListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1806 | PyObject * _resultobj; | |
1807 | int _result; | |
1808 | wxListItem * _arg0; | |
1809 | PyObject * _argo0 = 0; | |
1810 | char *_kwnames[] = { "self", NULL }; | |
1811 | ||
1812 | self = self; | |
1813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_image_get",_kwnames,&_argo0)) | |
1814 | return NULL; | |
1815 | if (_argo0) { | |
1816 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1817 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_get. Expected _wxListItem_p."); | |
1819 | return NULL; | |
1820 | } | |
1821 | } | |
1822 | { | |
1823 | wxPy_BEGIN_ALLOW_THREADS; | |
1824 | _result = (int )wxListItem_m_image_get(_arg0); | |
1825 | ||
1826 | wxPy_END_ALLOW_THREADS; | |
1827 | } _resultobj = Py_BuildValue("i",_result); | |
1828 | return _resultobj; | |
1829 | } | |
1830 | ||
1831 | #define wxListItem_m_data_set(_swigobj,_swigval) (_swigobj->m_data = _swigval,_swigval) | |
1832 | static PyObject *_wrap_wxListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1833 | PyObject * _resultobj; | |
1834 | long _result; | |
1835 | wxListItem * _arg0; | |
1836 | long _arg1; | |
1837 | PyObject * _argo0 = 0; | |
1838 | char *_kwnames[] = { "self","m_data", NULL }; | |
1839 | ||
1840 | self = self; | |
1841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_data_set",_kwnames,&_argo0,&_arg1)) | |
1842 | return NULL; | |
1843 | if (_argo0) { | |
1844 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1845 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1846 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_set. Expected _wxListItem_p."); | |
1847 | return NULL; | |
1848 | } | |
1849 | } | |
1850 | { | |
1851 | wxPy_BEGIN_ALLOW_THREADS; | |
1852 | _result = (long )wxListItem_m_data_set(_arg0,_arg1); | |
1853 | ||
1854 | wxPy_END_ALLOW_THREADS; | |
1855 | } _resultobj = Py_BuildValue("l",_result); | |
1856 | return _resultobj; | |
1857 | } | |
1858 | ||
1859 | #define wxListItem_m_data_get(_swigobj) ((long ) _swigobj->m_data) | |
1860 | static PyObject *_wrap_wxListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1861 | PyObject * _resultobj; | |
1862 | long _result; | |
1863 | wxListItem * _arg0; | |
1864 | PyObject * _argo0 = 0; | |
1865 | char *_kwnames[] = { "self", NULL }; | |
1866 | ||
1867 | self = self; | |
1868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_data_get",_kwnames,&_argo0)) | |
1869 | return NULL; | |
1870 | if (_argo0) { | |
1871 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1872 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1873 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_get. Expected _wxListItem_p."); | |
1874 | return NULL; | |
1875 | } | |
1876 | } | |
1877 | { | |
1878 | wxPy_BEGIN_ALLOW_THREADS; | |
1879 | _result = (long )wxListItem_m_data_get(_arg0); | |
1880 | ||
1881 | wxPy_END_ALLOW_THREADS; | |
1882 | } _resultobj = Py_BuildValue("l",_result); | |
1883 | return _resultobj; | |
1884 | } | |
1885 | ||
1886 | #define wxListItem_m_format_set(_swigobj,_swigval) (_swigobj->m_format = _swigval,_swigval) | |
1887 | static PyObject *_wrap_wxListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1888 | PyObject * _resultobj; | |
1889 | int _result; | |
1890 | wxListItem * _arg0; | |
1891 | int _arg1; | |
1892 | PyObject * _argo0 = 0; | |
1893 | char *_kwnames[] = { "self","m_format", NULL }; | |
1894 | ||
1895 | self = self; | |
1896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_format_set",_kwnames,&_argo0,&_arg1)) | |
1897 | return NULL; | |
1898 | if (_argo0) { | |
1899 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1900 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1901 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_set. Expected _wxListItem_p."); | |
1902 | return NULL; | |
1903 | } | |
1904 | } | |
1905 | { | |
1906 | wxPy_BEGIN_ALLOW_THREADS; | |
1907 | _result = (int )wxListItem_m_format_set(_arg0,_arg1); | |
1908 | ||
1909 | wxPy_END_ALLOW_THREADS; | |
1910 | } _resultobj = Py_BuildValue("i",_result); | |
1911 | return _resultobj; | |
1912 | } | |
1913 | ||
1914 | #define wxListItem_m_format_get(_swigobj) ((int ) _swigobj->m_format) | |
1915 | static PyObject *_wrap_wxListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1916 | PyObject * _resultobj; | |
1917 | int _result; | |
1918 | wxListItem * _arg0; | |
1919 | PyObject * _argo0 = 0; | |
1920 | char *_kwnames[] = { "self", NULL }; | |
1921 | ||
1922 | self = self; | |
1923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_format_get",_kwnames,&_argo0)) | |
1924 | return NULL; | |
1925 | if (_argo0) { | |
1926 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1927 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1928 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_get. Expected _wxListItem_p."); | |
1929 | return NULL; | |
1930 | } | |
1931 | } | |
1932 | { | |
1933 | wxPy_BEGIN_ALLOW_THREADS; | |
1934 | _result = (int )wxListItem_m_format_get(_arg0); | |
1935 | ||
1936 | wxPy_END_ALLOW_THREADS; | |
1937 | } _resultobj = Py_BuildValue("i",_result); | |
1938 | return _resultobj; | |
8ab979d7 RD |
1939 | } |
1940 | ||
f6bcfd97 BP |
1941 | #define wxListItem_m_width_set(_swigobj,_swigval) (_swigobj->m_width = _swigval,_swigval) |
1942 | static PyObject *_wrap_wxListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 1943 | PyObject * _resultobj; |
f6bcfd97 | 1944 | int _result; |
af309447 | 1945 | wxListItem * _arg0; |
f6bcfd97 | 1946 | int _arg1; |
1d99702e | 1947 | PyObject * _argo0 = 0; |
f6bcfd97 | 1948 | char *_kwnames[] = { "self","m_width", NULL }; |
af309447 RD |
1949 | |
1950 | self = self; | |
f6bcfd97 | 1951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_width_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 1952 | return NULL; |
1d99702e RD |
1953 | if (_argo0) { |
1954 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1955 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1956 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_set. Expected _wxListItem_p."); |
af309447 RD |
1957 | return NULL; |
1958 | } | |
1959 | } | |
cf694132 RD |
1960 | { |
1961 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1962 | _result = (int )wxListItem_m_width_set(_arg0,_arg1); |
cf694132 RD |
1963 | |
1964 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 1965 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
1966 | return _resultobj; |
1967 | } | |
1968 | ||
f6bcfd97 BP |
1969 | #define wxListItem_m_width_get(_swigobj) ((int ) _swigobj->m_width) |
1970 | static PyObject *_wrap_wxListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1971 | PyObject * _resultobj; |
f6bcfd97 | 1972 | int _result; |
8ab979d7 | 1973 | wxListItem * _arg0; |
1d99702e | 1974 | PyObject * _argo0 = 0; |
efc5f224 | 1975 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1976 | |
1977 | self = self; | |
f6bcfd97 | 1978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_width_get",_kwnames,&_argo0)) |
8ab979d7 | 1979 | return NULL; |
1d99702e RD |
1980 | if (_argo0) { |
1981 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1982 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 BP |
1983 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_get. Expected _wxListItem_p."); |
1984 | return NULL; | |
1985 | } | |
1986 | } | |
1987 | { | |
1988 | wxPy_BEGIN_ALLOW_THREADS; | |
1989 | _result = (int )wxListItem_m_width_get(_arg0); | |
1990 | ||
1991 | wxPy_END_ALLOW_THREADS; | |
1992 | } _resultobj = Py_BuildValue("i",_result); | |
1993 | return _resultobj; | |
1994 | } | |
1995 | ||
c368d904 RD |
1996 | static void *SwigwxListEventTowxNotifyEvent(void *ptr) { |
1997 | wxListEvent *src; | |
1998 | wxNotifyEvent *dest; | |
1999 | src = (wxListEvent *) ptr; | |
2000 | dest = (wxNotifyEvent *) src; | |
2001 | return (void *) dest; | |
2002 | } | |
2003 | ||
f6bcfd97 BP |
2004 | static void *SwigwxListEventTowxCommandEvent(void *ptr) { |
2005 | wxListEvent *src; | |
2006 | wxCommandEvent *dest; | |
2007 | src = (wxListEvent *) ptr; | |
2008 | dest = (wxCommandEvent *) src; | |
2009 | return (void *) dest; | |
2010 | } | |
2011 | ||
2012 | static void *SwigwxListEventTowxEvent(void *ptr) { | |
2013 | wxListEvent *src; | |
2014 | wxEvent *dest; | |
2015 | src = (wxListEvent *) ptr; | |
2016 | dest = (wxEvent *) src; | |
2017 | return (void *) dest; | |
2018 | } | |
2019 | ||
2020 | #define wxListEvent_m_code_set(_swigobj,_swigval) (_swigobj->m_code = _swigval,_swigval) | |
2021 | static PyObject *_wrap_wxListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2022 | PyObject * _resultobj; | |
2023 | int _result; | |
2024 | wxListEvent * _arg0; | |
2025 | int _arg1; | |
2026 | PyObject * _argo0 = 0; | |
2027 | char *_kwnames[] = { "self","m_code", NULL }; | |
2028 | ||
2029 | self = self; | |
2030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_code_set",_kwnames,&_argo0,&_arg1)) | |
2031 | return NULL; | |
2032 | if (_argo0) { | |
2033 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2034 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2035 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_code_set. Expected _wxListEvent_p."); | |
2036 | return NULL; | |
2037 | } | |
2038 | } | |
2039 | { | |
2040 | wxPy_BEGIN_ALLOW_THREADS; | |
2041 | _result = (int )wxListEvent_m_code_set(_arg0,_arg1); | |
2042 | ||
2043 | wxPy_END_ALLOW_THREADS; | |
2044 | } _resultobj = Py_BuildValue("i",_result); | |
2045 | return _resultobj; | |
2046 | } | |
2047 | ||
2048 | #define wxListEvent_m_code_get(_swigobj) ((int ) _swigobj->m_code) | |
2049 | static PyObject *_wrap_wxListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2050 | PyObject * _resultobj; | |
2051 | int _result; | |
2052 | wxListEvent * _arg0; | |
2053 | PyObject * _argo0 = 0; | |
2054 | char *_kwnames[] = { "self", NULL }; | |
2055 | ||
2056 | self = self; | |
2057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_code_get",_kwnames,&_argo0)) | |
2058 | return NULL; | |
2059 | if (_argo0) { | |
2060 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2061 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2062 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_code_get. Expected _wxListEvent_p."); | |
2063 | return NULL; | |
2064 | } | |
2065 | } | |
2066 | { | |
2067 | wxPy_BEGIN_ALLOW_THREADS; | |
2068 | _result = (int )wxListEvent_m_code_get(_arg0); | |
2069 | ||
2070 | wxPy_END_ALLOW_THREADS; | |
2071 | } _resultobj = Py_BuildValue("i",_result); | |
2072 | return _resultobj; | |
2073 | } | |
2074 | ||
2075 | #define wxListEvent_m_itemIndex_set(_swigobj,_swigval) (_swigobj->m_itemIndex = _swigval,_swigval) | |
2076 | static PyObject *_wrap_wxListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2077 | PyObject * _resultobj; | |
2078 | long _result; | |
2079 | wxListEvent * _arg0; | |
2080 | long _arg1; | |
2081 | PyObject * _argo0 = 0; | |
2082 | char *_kwnames[] = { "self","m_itemIndex", NULL }; | |
2083 | ||
2084 | self = self; | |
2085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListEvent_m_itemIndex_set",_kwnames,&_argo0,&_arg1)) | |
2086 | return NULL; | |
2087 | if (_argo0) { | |
2088 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2089 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2090 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_set. Expected _wxListEvent_p."); | |
2091 | return NULL; | |
2092 | } | |
2093 | } | |
2094 | { | |
2095 | wxPy_BEGIN_ALLOW_THREADS; | |
2096 | _result = (long )wxListEvent_m_itemIndex_set(_arg0,_arg1); | |
2097 | ||
2098 | wxPy_END_ALLOW_THREADS; | |
2099 | } _resultobj = Py_BuildValue("l",_result); | |
2100 | return _resultobj; | |
2101 | } | |
2102 | ||
2103 | #define wxListEvent_m_itemIndex_get(_swigobj) ((long ) _swigobj->m_itemIndex) | |
2104 | static PyObject *_wrap_wxListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2105 | PyObject * _resultobj; | |
2106 | long _result; | |
2107 | wxListEvent * _arg0; | |
2108 | PyObject * _argo0 = 0; | |
2109 | char *_kwnames[] = { "self", NULL }; | |
2110 | ||
2111 | self = self; | |
2112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_itemIndex_get",_kwnames,&_argo0)) | |
2113 | return NULL; | |
2114 | if (_argo0) { | |
2115 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2116 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2117 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_get. Expected _wxListEvent_p."); | |
2118 | return NULL; | |
2119 | } | |
2120 | } | |
2121 | { | |
2122 | wxPy_BEGIN_ALLOW_THREADS; | |
2123 | _result = (long )wxListEvent_m_itemIndex_get(_arg0); | |
2124 | ||
2125 | wxPy_END_ALLOW_THREADS; | |
2126 | } _resultobj = Py_BuildValue("l",_result); | |
2127 | return _resultobj; | |
2128 | } | |
2129 | ||
2130 | #define wxListEvent_m_oldItemIndex_set(_swigobj,_swigval) (_swigobj->m_oldItemIndex = _swigval,_swigval) | |
2131 | static PyObject *_wrap_wxListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2132 | PyObject * _resultobj; | |
2133 | long _result; | |
2134 | wxListEvent * _arg0; | |
2135 | long _arg1; | |
2136 | PyObject * _argo0 = 0; | |
2137 | char *_kwnames[] = { "self","m_oldItemIndex", NULL }; | |
2138 | ||
2139 | self = self; | |
2140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListEvent_m_oldItemIndex_set",_kwnames,&_argo0,&_arg1)) | |
2141 | return NULL; | |
2142 | if (_argo0) { | |
2143 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2144 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2145 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_set. Expected _wxListEvent_p."); | |
2146 | return NULL; | |
2147 | } | |
2148 | } | |
2149 | { | |
2150 | wxPy_BEGIN_ALLOW_THREADS; | |
2151 | _result = (long )wxListEvent_m_oldItemIndex_set(_arg0,_arg1); | |
2152 | ||
2153 | wxPy_END_ALLOW_THREADS; | |
2154 | } _resultobj = Py_BuildValue("l",_result); | |
2155 | return _resultobj; | |
2156 | } | |
2157 | ||
2158 | #define wxListEvent_m_oldItemIndex_get(_swigobj) ((long ) _swigobj->m_oldItemIndex) | |
2159 | static PyObject *_wrap_wxListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2160 | PyObject * _resultobj; | |
2161 | long _result; | |
2162 | wxListEvent * _arg0; | |
2163 | PyObject * _argo0 = 0; | |
2164 | char *_kwnames[] = { "self", NULL }; | |
2165 | ||
2166 | self = self; | |
2167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_oldItemIndex_get",_kwnames,&_argo0)) | |
2168 | return NULL; | |
2169 | if (_argo0) { | |
2170 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2171 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2172 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_get. Expected _wxListEvent_p."); | |
2173 | return NULL; | |
2174 | } | |
2175 | } | |
2176 | { | |
2177 | wxPy_BEGIN_ALLOW_THREADS; | |
2178 | _result = (long )wxListEvent_m_oldItemIndex_get(_arg0); | |
2179 | ||
2180 | wxPy_END_ALLOW_THREADS; | |
2181 | } _resultobj = Py_BuildValue("l",_result); | |
2182 | return _resultobj; | |
2183 | } | |
2184 | ||
2185 | #define wxListEvent_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval) | |
2186 | static PyObject *_wrap_wxListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2187 | PyObject * _resultobj; | |
2188 | int _result; | |
2189 | wxListEvent * _arg0; | |
2190 | int _arg1; | |
2191 | PyObject * _argo0 = 0; | |
2192 | char *_kwnames[] = { "self","m_col", NULL }; | |
2193 | ||
2194 | self = self; | |
2195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_col_set",_kwnames,&_argo0,&_arg1)) | |
2196 | return NULL; | |
2197 | if (_argo0) { | |
2198 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2199 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2200 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_set. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2201 | return NULL; |
2202 | } | |
2203 | } | |
cf694132 RD |
2204 | { |
2205 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2206 | _result = (int )wxListEvent_m_col_set(_arg0,_arg1); |
cf694132 RD |
2207 | |
2208 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 2209 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2210 | return _resultobj; |
2211 | } | |
2212 | ||
f6bcfd97 BP |
2213 | #define wxListEvent_m_col_get(_swigobj) ((int ) _swigobj->m_col) |
2214 | static PyObject *_wrap_wxListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
2215 | PyObject * _resultobj; |
2216 | int _result; | |
f6bcfd97 | 2217 | wxListEvent * _arg0; |
1d99702e | 2218 | PyObject * _argo0 = 0; |
f6bcfd97 | 2219 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2220 | |
2221 | self = self; | |
f6bcfd97 | 2222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_col_get",_kwnames,&_argo0)) |
af309447 | 2223 | return NULL; |
1d99702e RD |
2224 | if (_argo0) { |
2225 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2226 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2227 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_get. Expected _wxListEvent_p."); | |
af309447 RD |
2228 | return NULL; |
2229 | } | |
2230 | } | |
cf694132 RD |
2231 | { |
2232 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2233 | _result = (int )wxListEvent_m_col_get(_arg0); |
cf694132 RD |
2234 | |
2235 | wxPy_END_ALLOW_THREADS; | |
2236 | } _resultobj = Py_BuildValue("i",_result); | |
af309447 RD |
2237 | return _resultobj; |
2238 | } | |
2239 | ||
f6bcfd97 BP |
2240 | #define wxListEvent_m_cancelled_set(_swigobj,_swigval) (_swigobj->m_cancelled = _swigval,_swigval) |
2241 | static PyObject *_wrap_wxListEvent_m_cancelled_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2242 | PyObject * _resultobj; |
f6bcfd97 BP |
2243 | bool _result; |
2244 | wxListEvent * _arg0; | |
2245 | bool _arg1; | |
1d99702e | 2246 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
2247 | int tempbool1; |
2248 | char *_kwnames[] = { "self","m_cancelled", NULL }; | |
8ab979d7 RD |
2249 | |
2250 | self = self; | |
f6bcfd97 | 2251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_cancelled_set",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 2252 | return NULL; |
1d99702e RD |
2253 | if (_argo0) { |
2254 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2255 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2256 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_cancelled_set. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2257 | return NULL; |
2258 | } | |
2259 | } | |
f6bcfd97 | 2260 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
2261 | { |
2262 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2263 | _result = (bool )wxListEvent_m_cancelled_set(_arg0,_arg1); |
cf694132 RD |
2264 | |
2265 | wxPy_END_ALLOW_THREADS; | |
2266 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2267 | return _resultobj; |
2268 | } | |
2269 | ||
f6bcfd97 BP |
2270 | #define wxListEvent_m_cancelled_get(_swigobj) ((bool ) _swigobj->m_cancelled) |
2271 | static PyObject *_wrap_wxListEvent_m_cancelled_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2272 | PyObject * _resultobj; |
f6bcfd97 BP |
2273 | bool _result; |
2274 | wxListEvent * _arg0; | |
1d99702e | 2275 | PyObject * _argo0 = 0; |
f6bcfd97 | 2276 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2277 | |
2278 | self = self; | |
f6bcfd97 | 2279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_cancelled_get",_kwnames,&_argo0)) |
af309447 | 2280 | return NULL; |
1d99702e RD |
2281 | if (_argo0) { |
2282 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2283 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2284 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_cancelled_get. Expected _wxListEvent_p."); | |
af309447 RD |
2285 | return NULL; |
2286 | } | |
2287 | } | |
cf694132 RD |
2288 | { |
2289 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2290 | _result = (bool )wxListEvent_m_cancelled_get(_arg0); |
cf694132 RD |
2291 | |
2292 | wxPy_END_ALLOW_THREADS; | |
2293 | } _resultobj = Py_BuildValue("i",_result); | |
af309447 RD |
2294 | return _resultobj; |
2295 | } | |
2296 | ||
f6bcfd97 BP |
2297 | #define wxListEvent_m_pointDrag_set(_swigobj,_swigval) (_swigobj->m_pointDrag = *(_swigval),_swigval) |
2298 | static PyObject *_wrap_wxListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2299 | PyObject * _resultobj; |
f6bcfd97 BP |
2300 | wxPoint * _result; |
2301 | wxListEvent * _arg0; | |
2302 | wxPoint * _arg1; | |
1d99702e | 2303 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
2304 | wxPoint temp; |
2305 | PyObject * _obj1 = 0; | |
2306 | char *_kwnames[] = { "self","m_pointDrag", NULL }; | |
2307 | char _ptemp[128]; | |
8ab979d7 RD |
2308 | |
2309 | self = self; | |
f6bcfd97 | 2310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListEvent_m_pointDrag_set",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 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_pointDrag_set. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2316 | return NULL; |
2317 | } | |
2318 | } | |
f6bcfd97 BP |
2319 | { |
2320 | _arg1 = &temp; | |
2321 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2322 | return NULL; | |
2323 | } | |
cf694132 RD |
2324 | { |
2325 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2326 | _result = (wxPoint *)wxListEvent_m_pointDrag_set(_arg0,_arg1); |
cf694132 RD |
2327 | |
2328 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
2329 | } if (_result) { |
2330 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
2331 | _resultobj = Py_BuildValue("s",_ptemp); | |
2332 | } else { | |
2333 | Py_INCREF(Py_None); | |
2334 | _resultobj = Py_None; | |
2335 | } | |
8ab979d7 RD |
2336 | return _resultobj; |
2337 | } | |
2338 | ||
f6bcfd97 BP |
2339 | #define wxListEvent_m_pointDrag_get(_swigobj) (&_swigobj->m_pointDrag) |
2340 | static PyObject *_wrap_wxListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2341 | PyObject * _resultobj; |
f6bcfd97 BP |
2342 | wxPoint * _result; |
2343 | wxListEvent * _arg0; | |
2344 | PyObject * _argo0 = 0; | |
2345 | char *_kwnames[] = { "self", NULL }; | |
8ab979d7 RD |
2346 | char _ptemp[128]; |
2347 | ||
2348 | self = self; | |
f6bcfd97 BP |
2349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_pointDrag_get",_kwnames,&_argo0)) |
2350 | return NULL; | |
2351 | if (_argo0) { | |
2352 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2353 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2354 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_get. Expected _wxListEvent_p."); | |
8ab979d7 | 2355 | return NULL; |
f6bcfd97 BP |
2356 | } |
2357 | } | |
cf694132 RD |
2358 | { |
2359 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2360 | _result = (wxPoint *)wxListEvent_m_pointDrag_get(_arg0); |
cf694132 RD |
2361 | |
2362 | wxPy_END_ALLOW_THREADS; | |
1d99702e | 2363 | } if (_result) { |
f6bcfd97 | 2364 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); |
1d99702e RD |
2365 | _resultobj = Py_BuildValue("s",_ptemp); |
2366 | } else { | |
2367 | Py_INCREF(Py_None); | |
2368 | _resultobj = Py_None; | |
2369 | } | |
8ab979d7 RD |
2370 | return _resultobj; |
2371 | } | |
2372 | ||
f6bcfd97 BP |
2373 | #define wxListEvent_m_item_set(_swigobj,_swigval) (_swigobj->m_item = *(_swigval),_swigval) |
2374 | static PyObject *_wrap_wxListEvent_m_item_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2375 | PyObject * _resultobj; |
f6bcfd97 BP |
2376 | wxListItem * _result; |
2377 | wxListEvent * _arg0; | |
2378 | wxListItem * _arg1; | |
1d99702e | 2379 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
2380 | PyObject * _argo1 = 0; |
2381 | char *_kwnames[] = { "self","m_item", NULL }; | |
2382 | char _ptemp[128]; | |
8ab979d7 RD |
2383 | |
2384 | self = self; | |
f6bcfd97 | 2385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListEvent_m_item_set",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 2386 | return NULL; |
1d99702e RD |
2387 | if (_argo0) { |
2388 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2389 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2390 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_set. Expected _wxListEvent_p."); | |
2391 | return NULL; | |
2392 | } | |
2393 | } | |
2394 | if (_argo1) { | |
2395 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2396 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
2397 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListEvent_m_item_set. Expected _wxListItem_p."); | |
8ab979d7 RD |
2398 | return NULL; |
2399 | } | |
2400 | } | |
cf694132 RD |
2401 | { |
2402 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2403 | _result = (wxListItem *)wxListEvent_m_item_set(_arg0,_arg1); |
cf694132 RD |
2404 | |
2405 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
2406 | } if (_result) { |
2407 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p"); | |
2408 | _resultobj = Py_BuildValue("s",_ptemp); | |
2409 | } else { | |
2410 | Py_INCREF(Py_None); | |
2411 | _resultobj = Py_None; | |
2412 | } | |
8ab979d7 RD |
2413 | return _resultobj; |
2414 | } | |
2415 | ||
f6bcfd97 BP |
2416 | #define wxListEvent_m_item_get(_swigobj) (&_swigobj->m_item) |
2417 | static PyObject *_wrap_wxListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2418 | PyObject * _resultobj; |
f6bcfd97 | 2419 | wxListItem * _result; |
af309447 | 2420 | wxListEvent * _arg0; |
1d99702e | 2421 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
2422 | char *_kwnames[] = { "self", NULL }; |
2423 | char _ptemp[128]; | |
af309447 RD |
2424 | |
2425 | self = self; | |
f6bcfd97 | 2426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_item_get",_kwnames,&_argo0)) |
af309447 | 2427 | return NULL; |
1d99702e RD |
2428 | if (_argo0) { |
2429 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2430 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2431 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_get. Expected _wxListEvent_p."); |
af309447 RD |
2432 | return NULL; |
2433 | } | |
2434 | } | |
cf694132 RD |
2435 | { |
2436 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2437 | _result = (wxListItem *)wxListEvent_m_item_get(_arg0); |
cf694132 RD |
2438 | |
2439 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
2440 | } if (_result) { |
2441 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p"); | |
2442 | _resultobj = Py_BuildValue("s",_ptemp); | |
2443 | } else { | |
2444 | Py_INCREF(Py_None); | |
2445 | _resultobj = Py_None; | |
2446 | } | |
af309447 RD |
2447 | return _resultobj; |
2448 | } | |
2449 | ||
f6bcfd97 BP |
2450 | #define wxListEvent_GetCode(_swigobj) (_swigobj->GetCode()) |
2451 | static PyObject *_wrap_wxListEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2452 | PyObject * _resultobj; |
2453 | int _result; | |
2454 | wxListEvent * _arg0; | |
1d99702e | 2455 | PyObject * _argo0 = 0; |
efc5f224 | 2456 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2457 | |
2458 | self = self; | |
f6bcfd97 | 2459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCode",_kwnames,&_argo0)) |
8ab979d7 | 2460 | return NULL; |
1d99702e RD |
2461 | if (_argo0) { |
2462 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2463 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCode. Expected _wxListEvent_p."); |
8ab979d7 RD |
2465 | return NULL; |
2466 | } | |
2467 | } | |
cf694132 RD |
2468 | { |
2469 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2470 | _result = (int )wxListEvent_GetCode(_arg0); |
cf694132 RD |
2471 | |
2472 | wxPy_END_ALLOW_THREADS; | |
2473 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2474 | return _resultobj; |
2475 | } | |
2476 | ||
f6bcfd97 BP |
2477 | #define wxListEvent_GetIndex(_swigobj) (_swigobj->GetIndex()) |
2478 | static PyObject *_wrap_wxListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
2479 | PyObject * _resultobj; |
2480 | long _result; | |
2481 | wxListEvent * _arg0; | |
1d99702e | 2482 | PyObject * _argo0 = 0; |
f6bcfd97 | 2483 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2484 | |
2485 | self = self; | |
f6bcfd97 | 2486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetIndex",_kwnames,&_argo0)) |
af309447 | 2487 | return NULL; |
1d99702e RD |
2488 | if (_argo0) { |
2489 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2490 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2491 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetIndex. Expected _wxListEvent_p."); |
af309447 RD |
2492 | return NULL; |
2493 | } | |
2494 | } | |
cf694132 RD |
2495 | { |
2496 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2497 | _result = (long )wxListEvent_GetIndex(_arg0); |
cf694132 RD |
2498 | |
2499 | wxPy_END_ALLOW_THREADS; | |
2500 | } _resultobj = Py_BuildValue("l",_result); | |
af309447 RD |
2501 | return _resultobj; |
2502 | } | |
2503 | ||
f6bcfd97 BP |
2504 | #define wxListEvent_GetOldIndex(_swigobj) (_swigobj->GetOldIndex()) |
2505 | static PyObject *_wrap_wxListEvent_GetOldIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2506 | PyObject * _resultobj; |
2507 | long _result; | |
2508 | wxListEvent * _arg0; | |
1d99702e | 2509 | PyObject * _argo0 = 0; |
efc5f224 | 2510 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2511 | |
2512 | self = self; | |
f6bcfd97 | 2513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetOldIndex",_kwnames,&_argo0)) |
8ab979d7 | 2514 | return NULL; |
1d99702e RD |
2515 | if (_argo0) { |
2516 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2517 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2518 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetOldIndex. Expected _wxListEvent_p."); |
8ab979d7 RD |
2519 | return NULL; |
2520 | } | |
2521 | } | |
cf694132 RD |
2522 | { |
2523 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2524 | _result = (long )wxListEvent_GetOldIndex(_arg0); |
cf694132 RD |
2525 | |
2526 | wxPy_END_ALLOW_THREADS; | |
2527 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
2528 | return _resultobj; |
2529 | } | |
2530 | ||
f6bcfd97 BP |
2531 | #define wxListEvent_GetOldItem(_swigobj) (_swigobj->GetOldItem()) |
2532 | static PyObject *_wrap_wxListEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
2533 | PyObject * _resultobj; |
2534 | long _result; | |
2535 | wxListEvent * _arg0; | |
1d99702e | 2536 | PyObject * _argo0 = 0; |
f6bcfd97 | 2537 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2538 | |
2539 | self = self; | |
f6bcfd97 | 2540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetOldItem",_kwnames,&_argo0)) |
af309447 | 2541 | return NULL; |
1d99702e RD |
2542 | if (_argo0) { |
2543 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2544 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2545 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetOldItem. Expected _wxListEvent_p."); |
af309447 RD |
2546 | return NULL; |
2547 | } | |
2548 | } | |
cf694132 RD |
2549 | { |
2550 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2551 | _result = (long )wxListEvent_GetOldItem(_arg0); |
cf694132 RD |
2552 | |
2553 | wxPy_END_ALLOW_THREADS; | |
2554 | } _resultobj = Py_BuildValue("l",_result); | |
af309447 RD |
2555 | return _resultobj; |
2556 | } | |
2557 | ||
f6bcfd97 BP |
2558 | #define wxListEvent_GetColumn(_swigobj) (_swigobj->GetColumn()) |
2559 | static PyObject *_wrap_wxListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2560 | PyObject * _resultobj; |
f6bcfd97 | 2561 | int _result; |
8ab979d7 | 2562 | wxListEvent * _arg0; |
1d99702e | 2563 | PyObject * _argo0 = 0; |
efc5f224 | 2564 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2565 | |
2566 | self = self; | |
f6bcfd97 | 2567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetColumn",_kwnames,&_argo0)) |
8ab979d7 | 2568 | return NULL; |
1d99702e RD |
2569 | if (_argo0) { |
2570 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2571 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2572 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetColumn. Expected _wxListEvent_p."); |
8ab979d7 RD |
2573 | return NULL; |
2574 | } | |
2575 | } | |
cf694132 RD |
2576 | { |
2577 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2578 | _result = (int )wxListEvent_GetColumn(_arg0); |
cf694132 RD |
2579 | |
2580 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 2581 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2582 | return _resultobj; |
2583 | } | |
2584 | ||
f6bcfd97 BP |
2585 | #define wxListEvent_Cancelled(_swigobj) (_swigobj->Cancelled()) |
2586 | static PyObject *_wrap_wxListEvent_Cancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2587 | PyObject * _resultobj; |
f6bcfd97 | 2588 | bool _result; |
af309447 | 2589 | wxListEvent * _arg0; |
1d99702e | 2590 | PyObject * _argo0 = 0; |
f6bcfd97 | 2591 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2592 | |
2593 | self = self; | |
f6bcfd97 | 2594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_Cancelled",_kwnames,&_argo0)) |
af309447 | 2595 | return NULL; |
1d99702e RD |
2596 | if (_argo0) { |
2597 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2598 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2599 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_Cancelled. Expected _wxListEvent_p."); |
af309447 RD |
2600 | return NULL; |
2601 | } | |
2602 | } | |
cf694132 RD |
2603 | { |
2604 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2605 | _result = (bool )wxListEvent_Cancelled(_arg0); |
cf694132 RD |
2606 | |
2607 | wxPy_END_ALLOW_THREADS; | |
2608 | } _resultobj = Py_BuildValue("i",_result); | |
af309447 RD |
2609 | return _resultobj; |
2610 | } | |
2611 | ||
f6bcfd97 BP |
2612 | #define wxListEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) |
2613 | static PyObject *_wrap_wxListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2614 | PyObject * _resultobj; |
f6bcfd97 | 2615 | wxPoint * _result; |
8ab979d7 | 2616 | wxListEvent * _arg0; |
1d99702e | 2617 | PyObject * _argo0 = 0; |
efc5f224 | 2618 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 2619 | char _ptemp[128]; |
8ab979d7 RD |
2620 | |
2621 | self = self; | |
f6bcfd97 | 2622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetPoint",_kwnames,&_argo0)) |
8ab979d7 | 2623 | return NULL; |
1d99702e RD |
2624 | if (_argo0) { |
2625 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2626 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2627 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetPoint. Expected _wxListEvent_p."); |
8ab979d7 RD |
2628 | return NULL; |
2629 | } | |
2630 | } | |
cf694132 RD |
2631 | { |
2632 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2633 | _result = new wxPoint (wxListEvent_GetPoint(_arg0)); |
cf694132 RD |
2634 | |
2635 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
2636 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
2637 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
2638 | return _resultobj; |
2639 | } | |
2640 | ||
f6bcfd97 BP |
2641 | #define wxListEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) |
2642 | static PyObject *_wrap_wxListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2643 | PyObject * _resultobj; |
f6bcfd97 | 2644 | wxString * _result; |
af309447 | 2645 | wxListEvent * _arg0; |
1d99702e | 2646 | PyObject * _argo0 = 0; |
f6bcfd97 | 2647 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2648 | |
2649 | self = self; | |
f6bcfd97 | 2650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetLabel",_kwnames,&_argo0)) |
af309447 | 2651 | return NULL; |
1d99702e RD |
2652 | if (_argo0) { |
2653 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2654 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2655 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetLabel. Expected _wxListEvent_p."); |
af309447 RD |
2656 | return NULL; |
2657 | } | |
2658 | } | |
cf694132 RD |
2659 | { |
2660 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
2661 | const wxString & _result_ref = wxListEvent_GetLabel(_arg0); |
2662 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
2663 | |
2664 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
2665 | }{ |
2666 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2667 | } | |
af309447 RD |
2668 | return _resultobj; |
2669 | } | |
2670 | ||
f6bcfd97 BP |
2671 | #define wxListEvent_GetText(_swigobj) (_swigobj->GetText()) |
2672 | static PyObject *_wrap_wxListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2673 | PyObject * _resultobj; |
f6bcfd97 | 2674 | wxString * _result; |
8ab979d7 | 2675 | wxListEvent * _arg0; |
1d99702e | 2676 | PyObject * _argo0 = 0; |
efc5f224 | 2677 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2678 | |
2679 | self = self; | |
f6bcfd97 | 2680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetText",_kwnames,&_argo0)) |
8ab979d7 | 2681 | return NULL; |
1d99702e RD |
2682 | if (_argo0) { |
2683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetText. Expected _wxListEvent_p."); |
8ab979d7 RD |
2686 | return NULL; |
2687 | } | |
2688 | } | |
cf694132 RD |
2689 | { |
2690 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
2691 | const wxString & _result_ref = wxListEvent_GetText(_arg0); |
2692 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
2693 | |
2694 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
2695 | }{ |
2696 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2697 | } | |
8ab979d7 RD |
2698 | return _resultobj; |
2699 | } | |
2700 | ||
f6bcfd97 BP |
2701 | #define wxListEvent_GetImage(_swigobj) (_swigobj->GetImage()) |
2702 | static PyObject *_wrap_wxListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2703 | PyObject * _resultobj; |
f6bcfd97 | 2704 | int _result; |
af309447 | 2705 | wxListEvent * _arg0; |
1d99702e | 2706 | PyObject * _argo0 = 0; |
f6bcfd97 | 2707 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2708 | |
2709 | self = self; | |
f6bcfd97 | 2710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetImage",_kwnames,&_argo0)) |
af309447 | 2711 | return NULL; |
1d99702e RD |
2712 | if (_argo0) { |
2713 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2714 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetImage. Expected _wxListEvent_p."); |
af309447 RD |
2716 | return NULL; |
2717 | } | |
2718 | } | |
cf694132 RD |
2719 | { |
2720 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2721 | _result = (int )wxListEvent_GetImage(_arg0); |
cf694132 RD |
2722 | |
2723 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 2724 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2725 | return _resultobj; |
2726 | } | |
2727 | ||
f6bcfd97 BP |
2728 | #define wxListEvent_GetData(_swigobj) (_swigobj->GetData()) |
2729 | static PyObject *_wrap_wxListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2730 | PyObject * _resultobj; |
f6bcfd97 | 2731 | long _result; |
8ab979d7 | 2732 | wxListEvent * _arg0; |
1d99702e | 2733 | PyObject * _argo0 = 0; |
efc5f224 | 2734 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2735 | |
2736 | self = self; | |
f6bcfd97 | 2737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetData",_kwnames,&_argo0)) |
8ab979d7 | 2738 | return NULL; |
1d99702e RD |
2739 | if (_argo0) { |
2740 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2741 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetData. Expected _wxListEvent_p."); |
8ab979d7 RD |
2743 | return NULL; |
2744 | } | |
2745 | } | |
cf694132 RD |
2746 | { |
2747 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2748 | _result = (long )wxListEvent_GetData(_arg0); |
cf694132 RD |
2749 | |
2750 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 2751 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2752 | return _resultobj; |
2753 | } | |
2754 | ||
f6bcfd97 BP |
2755 | #define wxListEvent_GetMask(_swigobj) (_swigobj->GetMask()) |
2756 | static PyObject *_wrap_wxListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2757 | PyObject * _resultobj; |
f6bcfd97 | 2758 | long _result; |
af309447 | 2759 | wxListEvent * _arg0; |
1d99702e | 2760 | PyObject * _argo0 = 0; |
f6bcfd97 | 2761 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2762 | |
2763 | self = self; | |
f6bcfd97 | 2764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetMask",_kwnames,&_argo0)) |
af309447 | 2765 | return NULL; |
1d99702e RD |
2766 | if (_argo0) { |
2767 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2768 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2769 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetMask. Expected _wxListEvent_p."); |
af309447 RD |
2770 | return NULL; |
2771 | } | |
2772 | } | |
cf694132 RD |
2773 | { |
2774 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2775 | _result = (long )wxListEvent_GetMask(_arg0); |
cf694132 RD |
2776 | |
2777 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 2778 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2779 | return _resultobj; |
2780 | } | |
2781 | ||
f6bcfd97 BP |
2782 | #define wxListEvent_GetItem(_swigobj) (_swigobj->GetItem()) |
2783 | static PyObject *_wrap_wxListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2784 | PyObject * _resultobj; |
2785 | wxListItem * _result; | |
2786 | wxListEvent * _arg0; | |
1d99702e | 2787 | PyObject * _argo0 = 0; |
efc5f224 | 2788 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2789 | char _ptemp[128]; |
2790 | ||
2791 | self = self; | |
f6bcfd97 | 2792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetItem",_kwnames,&_argo0)) |
8ab979d7 | 2793 | return NULL; |
1d99702e RD |
2794 | if (_argo0) { |
2795 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2796 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2797 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetItem. Expected _wxListEvent_p."); |
8ab979d7 RD |
2798 | return NULL; |
2799 | } | |
2800 | } | |
cf694132 RD |
2801 | { |
2802 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
2803 | const wxListItem & _result_ref = wxListEvent_GetItem(_arg0); |
2804 | _result = (wxListItem *) &_result_ref; | |
cf694132 RD |
2805 | |
2806 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
2807 | } if (_result) { |
2808 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p"); | |
2809 | _resultobj = Py_BuildValue("s",_ptemp); | |
2810 | } else { | |
2811 | Py_INCREF(Py_None); | |
2812 | _resultobj = Py_None; | |
2813 | } | |
8ab979d7 RD |
2814 | return _resultobj; |
2815 | } | |
2816 | ||
2817 | static void *SwigwxListCtrlTowxControl(void *ptr) { | |
2818 | wxListCtrl *src; | |
2819 | wxControl *dest; | |
2820 | src = (wxListCtrl *) ptr; | |
2821 | dest = (wxControl *) src; | |
2822 | return (void *) dest; | |
2823 | } | |
2824 | ||
2825 | static void *SwigwxListCtrlTowxWindow(void *ptr) { | |
2826 | wxListCtrl *src; | |
2827 | wxWindow *dest; | |
2828 | src = (wxListCtrl *) ptr; | |
2829 | dest = (wxWindow *) src; | |
2830 | return (void *) dest; | |
2831 | } | |
2832 | ||
2833 | static void *SwigwxListCtrlTowxEvtHandler(void *ptr) { | |
2834 | wxListCtrl *src; | |
2835 | wxEvtHandler *dest; | |
2836 | src = (wxListCtrl *) ptr; | |
2837 | dest = (wxEvtHandler *) src; | |
2838 | return (void *) dest; | |
2839 | } | |
2840 | ||
2841 | #define new_wxListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
efc5f224 | 2842 | static PyObject *_wrap_new_wxListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2843 | PyObject * _resultobj; |
2844 | wxListCtrl * _result; | |
2845 | wxWindow * _arg0; | |
2846 | wxWindowID _arg1; | |
e508a2b6 RD |
2847 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
2848 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e | 2849 | long _arg4 = (long ) wxLC_ICON; |
e508a2b6 | 2850 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
2851 | char * _arg6 = (char *) "listCtrl"; |
2852 | PyObject * _argo0 = 0; | |
2f90df85 RD |
2853 | wxPoint temp; |
2854 | PyObject * _obj2 = 0; | |
2855 | wxSize temp0; | |
2856 | PyObject * _obj3 = 0; | |
1d99702e | 2857 | PyObject * _argo5 = 0; |
efc5f224 | 2858 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
2859 | char _ptemp[128]; |
2860 | ||
2861 | self = self; | |
2f90df85 | 2862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlOs:new_wxListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) |
8ab979d7 | 2863 | return NULL; |
1d99702e RD |
2864 | if (_argo0) { |
2865 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2866 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2867 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListCtrl. Expected _wxWindow_p."); |
2868 | return NULL; | |
2869 | } | |
2870 | } | |
2f90df85 RD |
2871 | if (_obj2) |
2872 | { | |
2873 | _arg2 = &temp; | |
2874 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 2875 | return NULL; |
2f90df85 RD |
2876 | } |
2877 | if (_obj3) | |
2878 | { | |
2879 | _arg3 = &temp0; | |
2880 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 2881 | return NULL; |
2f90df85 | 2882 | } |
1d99702e RD |
2883 | if (_argo5) { |
2884 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
2885 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
8ab979d7 RD |
2886 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListCtrl. Expected _wxValidator_p."); |
2887 | return NULL; | |
2888 | } | |
2889 | } | |
cf694132 RD |
2890 | { |
2891 | wxPy_BEGIN_ALLOW_THREADS; | |
2892 | _result = (wxListCtrl *)new_wxListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); | |
2893 | ||
2894 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
2895 | } if (_result) { |
2896 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListCtrl_p"); | |
2897 | _resultobj = Py_BuildValue("s",_ptemp); | |
2898 | } else { | |
2899 | Py_INCREF(Py_None); | |
2900 | _resultobj = Py_None; | |
2901 | } | |
8ab979d7 RD |
2902 | return _resultobj; |
2903 | } | |
2904 | ||
2905 | #define wxListCtrl_Arrange(_swigobj,_swigarg0) (_swigobj->Arrange(_swigarg0)) | |
efc5f224 | 2906 | static PyObject *_wrap_wxListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2907 | PyObject * _resultobj; |
2908 | bool _result; | |
2909 | wxListCtrl * _arg0; | |
1d99702e RD |
2910 | int _arg1 = (int ) (wxLIST_ALIGN_DEFAULT); |
2911 | PyObject * _argo0 = 0; | |
efc5f224 | 2912 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
2913 | |
2914 | self = self; | |
efc5f224 | 2915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxListCtrl_Arrange",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2916 | return NULL; |
1d99702e RD |
2917 | if (_argo0) { |
2918 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2919 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
2920 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Arrange. Expected _wxListCtrl_p."); |
2921 | return NULL; | |
2922 | } | |
2923 | } | |
cf694132 RD |
2924 | { |
2925 | wxPy_BEGIN_ALLOW_THREADS; | |
2926 | _result = (bool )wxListCtrl_Arrange(_arg0,_arg1); | |
2927 | ||
2928 | wxPy_END_ALLOW_THREADS; | |
2929 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2930 | return _resultobj; |
2931 | } | |
2932 | ||
1b62f00d RD |
2933 | #define wxListCtrl_AssignImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->AssignImageList(_swigarg0,_swigarg1)) |
2934 | static PyObject *_wrap_wxListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2935 | PyObject * _resultobj; | |
2936 | wxListCtrl * _arg0; | |
2937 | wxImageList * _arg1; | |
2938 | int _arg2; | |
2939 | PyObject * _argo0 = 0; | |
2940 | PyObject * _argo1 = 0; | |
2941 | char *_kwnames[] = { "self","imageList","which", NULL }; | |
2942 | ||
2943 | self = self; | |
2944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_AssignImageList",_kwnames,&_argo0,&_argo1,&_arg2)) | |
2945 | return NULL; | |
2946 | if (_argo0) { | |
2947 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2948 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
2949 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_AssignImageList. Expected _wxListCtrl_p."); | |
2950 | return NULL; | |
2951 | } | |
2952 | } | |
2953 | if (_argo1) { | |
2954 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2955 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
2956 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_AssignImageList. Expected _wxImageList_p."); | |
2957 | return NULL; | |
2958 | } | |
2959 | } | |
2960 | { | |
2961 | wxPy_BEGIN_ALLOW_THREADS; | |
2962 | wxListCtrl_AssignImageList(_arg0,_arg1,_arg2); | |
2963 | ||
2964 | wxPy_END_ALLOW_THREADS; | |
2965 | } Py_INCREF(Py_None); | |
2966 | _resultobj = Py_None; | |
2967 | return _resultobj; | |
2968 | } | |
2969 | ||
8ab979d7 | 2970 | #define wxListCtrl_DeleteItem(_swigobj,_swigarg0) (_swigobj->DeleteItem(_swigarg0)) |
efc5f224 | 2971 | static PyObject *_wrap_wxListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2972 | PyObject * _resultobj; |
2973 | bool _result; | |
2974 | wxListCtrl * _arg0; | |
2975 | long _arg1; | |
1d99702e | 2976 | PyObject * _argo0 = 0; |
efc5f224 | 2977 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
2978 | |
2979 | self = self; | |
efc5f224 | 2980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_DeleteItem",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2981 | return NULL; |
1d99702e RD |
2982 | if (_argo0) { |
2983 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2984 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
2985 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteItem. Expected _wxListCtrl_p."); |
2986 | return NULL; | |
2987 | } | |
2988 | } | |
cf694132 RD |
2989 | { |
2990 | wxPy_BEGIN_ALLOW_THREADS; | |
2991 | _result = (bool )wxListCtrl_DeleteItem(_arg0,_arg1); | |
2992 | ||
2993 | wxPy_END_ALLOW_THREADS; | |
2994 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2995 | return _resultobj; |
2996 | } | |
2997 | ||
2998 | #define wxListCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) | |
efc5f224 | 2999 | static PyObject *_wrap_wxListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3000 | PyObject * _resultobj; |
3001 | bool _result; | |
3002 | wxListCtrl * _arg0; | |
1d99702e | 3003 | PyObject * _argo0 = 0; |
efc5f224 | 3004 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3005 | |
3006 | self = self; | |
efc5f224 | 3007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllItems",_kwnames,&_argo0)) |
8ab979d7 | 3008 | return NULL; |
1d99702e RD |
3009 | if (_argo0) { |
3010 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3011 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3012 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllItems. Expected _wxListCtrl_p."); |
3013 | return NULL; | |
3014 | } | |
3015 | } | |
cf694132 RD |
3016 | { |
3017 | wxPy_BEGIN_ALLOW_THREADS; | |
3018 | _result = (bool )wxListCtrl_DeleteAllItems(_arg0); | |
3019 | ||
3020 | wxPy_END_ALLOW_THREADS; | |
3021 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3022 | return _resultobj; |
3023 | } | |
3024 | ||
3025 | #define wxListCtrl_DeleteColumn(_swigobj,_swigarg0) (_swigobj->DeleteColumn(_swigarg0)) | |
efc5f224 | 3026 | static PyObject *_wrap_wxListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3027 | PyObject * _resultobj; |
3028 | bool _result; | |
3029 | wxListCtrl * _arg0; | |
3030 | int _arg1; | |
1d99702e | 3031 | PyObject * _argo0 = 0; |
efc5f224 | 3032 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
3033 | |
3034 | self = self; | |
efc5f224 | 3035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_DeleteColumn",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3036 | return NULL; |
1d99702e RD |
3037 | if (_argo0) { |
3038 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3039 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3040 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteColumn. Expected _wxListCtrl_p."); |
3041 | return NULL; | |
3042 | } | |
3043 | } | |
cf694132 RD |
3044 | { |
3045 | wxPy_BEGIN_ALLOW_THREADS; | |
3046 | _result = (bool )wxListCtrl_DeleteColumn(_arg0,_arg1); | |
3047 | ||
3048 | wxPy_END_ALLOW_THREADS; | |
3049 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3050 | return _resultobj; |
3051 | } | |
3052 | ||
3053 | #define wxListCtrl_DeleteAllColumns(_swigobj) (_swigobj->DeleteAllColumns()) | |
efc5f224 | 3054 | static PyObject *_wrap_wxListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3055 | PyObject * _resultobj; |
3056 | bool _result; | |
3057 | wxListCtrl * _arg0; | |
1d99702e | 3058 | PyObject * _argo0 = 0; |
efc5f224 | 3059 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3060 | |
3061 | self = self; | |
efc5f224 | 3062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllColumns",_kwnames,&_argo0)) |
8ab979d7 | 3063 | return NULL; |
1d99702e RD |
3064 | if (_argo0) { |
3065 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3066 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3067 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllColumns. Expected _wxListCtrl_p."); |
3068 | return NULL; | |
3069 | } | |
3070 | } | |
cf694132 RD |
3071 | { |
3072 | wxPy_BEGIN_ALLOW_THREADS; | |
3073 | _result = (bool )wxListCtrl_DeleteAllColumns(_arg0); | |
3074 | ||
3075 | wxPy_END_ALLOW_THREADS; | |
3076 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3077 | return _resultobj; |
3078 | } | |
3079 | ||
3080 | #define wxListCtrl_ClearAll(_swigobj) (_swigobj->ClearAll()) | |
efc5f224 | 3081 | static PyObject *_wrap_wxListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3082 | PyObject * _resultobj; |
3083 | wxListCtrl * _arg0; | |
1d99702e | 3084 | PyObject * _argo0 = 0; |
efc5f224 | 3085 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3086 | |
3087 | self = self; | |
efc5f224 | 3088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_ClearAll",_kwnames,&_argo0)) |
8ab979d7 | 3089 | return NULL; |
1d99702e RD |
3090 | if (_argo0) { |
3091 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3092 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3093 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ClearAll. Expected _wxListCtrl_p."); |
3094 | return NULL; | |
3095 | } | |
3096 | } | |
cf694132 RD |
3097 | { |
3098 | wxPy_BEGIN_ALLOW_THREADS; | |
3099 | wxListCtrl_ClearAll(_arg0); | |
3100 | ||
3101 | wxPy_END_ALLOW_THREADS; | |
3102 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3103 | _resultobj = Py_None; |
3104 | return _resultobj; | |
3105 | } | |
3106 | ||
3107 | #define wxListCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0)) | |
efc5f224 | 3108 | static PyObject *_wrap_wxListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3109 | PyObject * _resultobj; |
3110 | wxTextCtrl * _result; | |
3111 | wxListCtrl * _arg0; | |
3112 | long _arg1; | |
1d99702e | 3113 | PyObject * _argo0 = 0; |
efc5f224 | 3114 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3115 | char _ptemp[128]; |
3116 | ||
3117 | self = self; | |
efc5f224 | 3118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EditLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3119 | return NULL; |
1d99702e RD |
3120 | if (_argo0) { |
3121 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3122 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3123 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EditLabel. Expected _wxListCtrl_p."); |
3124 | return NULL; | |
3125 | } | |
3126 | } | |
cf694132 RD |
3127 | { |
3128 | wxPy_BEGIN_ALLOW_THREADS; | |
3129 | _result = (wxTextCtrl *)wxListCtrl_EditLabel(_arg0,_arg1); | |
3130 | ||
3131 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
3132 | } if (_result) { |
3133 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p"); | |
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 | ||
3142 | #define wxListCtrl_EndEditLabel(_swigobj,_swigarg0) (_swigobj->EndEditLabel(_swigarg0)) | |
efc5f224 | 3143 | static PyObject *_wrap_wxListCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3144 | PyObject * _resultobj; |
3145 | bool _result; | |
3146 | wxListCtrl * _arg0; | |
3147 | bool _arg1; | |
1d99702e | 3148 | PyObject * _argo0 = 0; |
8ab979d7 | 3149 | int tempbool1; |
efc5f224 | 3150 | char *_kwnames[] = { "self","cancel", NULL }; |
8ab979d7 RD |
3151 | |
3152 | self = self; | |
efc5f224 | 3153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_EndEditLabel",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3154 | return NULL; |
1d99702e RD |
3155 | if (_argo0) { |
3156 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3157 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3158 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EndEditLabel. Expected _wxListCtrl_p."); |
3159 | return NULL; | |
3160 | } | |
3161 | } | |
3162 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
3163 | { |
3164 | wxPy_BEGIN_ALLOW_THREADS; | |
3165 | _result = (bool )wxListCtrl_EndEditLabel(_arg0,_arg1); | |
3166 | ||
3167 | wxPy_END_ALLOW_THREADS; | |
3168 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3169 | return _resultobj; |
3170 | } | |
3171 | ||
be4d9c1f | 3172 | #define wxListCtrl_GetEditControl(_swigobj) (_swigobj->GetEditControl()) |
efc5f224 | 3173 | static PyObject *_wrap_wxListCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
be4d9c1f RD |
3174 | PyObject * _resultobj; |
3175 | wxTextCtrl * _result; | |
3176 | wxListCtrl * _arg0; | |
1d99702e | 3177 | PyObject * _argo0 = 0; |
efc5f224 | 3178 | char *_kwnames[] = { "self", NULL }; |
be4d9c1f RD |
3179 | char _ptemp[128]; |
3180 | ||
3181 | self = self; | |
efc5f224 | 3182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetEditControl",_kwnames,&_argo0)) |
be4d9c1f | 3183 | return NULL; |
1d99702e RD |
3184 | if (_argo0) { |
3185 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3186 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
be4d9c1f RD |
3187 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetEditControl. Expected _wxListCtrl_p."); |
3188 | return NULL; | |
3189 | } | |
3190 | } | |
cf694132 RD |
3191 | { |
3192 | wxPy_BEGIN_ALLOW_THREADS; | |
3193 | _result = (wxTextCtrl *)wxListCtrl_GetEditControl(_arg0); | |
3194 | ||
3195 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
3196 | } if (_result) { |
3197 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p"); | |
3198 | _resultobj = Py_BuildValue("s",_ptemp); | |
3199 | } else { | |
3200 | Py_INCREF(Py_None); | |
3201 | _resultobj = Py_None; | |
3202 | } | |
be4d9c1f RD |
3203 | return _resultobj; |
3204 | } | |
3205 | ||
8ab979d7 | 3206 | #define wxListCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) |
efc5f224 | 3207 | static PyObject *_wrap_wxListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3208 | PyObject * _resultobj; |
3209 | bool _result; | |
3210 | wxListCtrl * _arg0; | |
3211 | long _arg1; | |
1d99702e | 3212 | PyObject * _argo0 = 0; |
efc5f224 | 3213 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3214 | |
3215 | self = self; | |
efc5f224 | 3216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EnsureVisible",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3217 | return NULL; |
1d99702e RD |
3218 | if (_argo0) { |
3219 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3220 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3221 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EnsureVisible. Expected _wxListCtrl_p."); |
3222 | return NULL; | |
3223 | } | |
3224 | } | |
cf694132 RD |
3225 | { |
3226 | wxPy_BEGIN_ALLOW_THREADS; | |
3227 | _result = (bool )wxListCtrl_EnsureVisible(_arg0,_arg1); | |
3228 | ||
3229 | wxPy_END_ALLOW_THREADS; | |
3230 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3231 | return _resultobj; |
3232 | } | |
3233 | ||
3234 | #define wxListCtrl_FindItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 3235 | static PyObject *_wrap_wxListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3236 | PyObject * _resultobj; |
3237 | long _result; | |
3238 | wxListCtrl * _arg0; | |
3239 | long _arg1; | |
3240 | wxString * _arg2; | |
1d99702e RD |
3241 | bool _arg3 = (bool ) FALSE; |
3242 | PyObject * _argo0 = 0; | |
8ab979d7 | 3243 | PyObject * _obj2 = 0; |
1d99702e | 3244 | int tempbool3 = (int) FALSE; |
efc5f224 | 3245 | char *_kwnames[] = { "self","start","str","partial", NULL }; |
8ab979d7 RD |
3246 | |
3247 | self = self; | |
efc5f224 | 3248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|i:wxListCtrl_FindItem",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3)) |
8ab979d7 | 3249 | return NULL; |
1d99702e RD |
3250 | if (_argo0) { |
3251 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3252 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3253 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItem. Expected _wxListCtrl_p."); |
3254 | return NULL; | |
3255 | } | |
3256 | } | |
3257 | { | |
185d7c3e RD |
3258 | #if PYTHON_API_VERSION >= 1009 |
3259 | char* tmpPtr; int tmpSize; | |
3260 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
3261 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
3262 | return NULL; | |
3263 | } | |
3264 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3265 | return NULL; | |
3266 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3267 | #else | |
8ab979d7 RD |
3268 | if (!PyString_Check(_obj2)) { |
3269 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3270 | return NULL; | |
3271 | } | |
185d7c3e RD |
3272 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
3273 | #endif | |
8ab979d7 RD |
3274 | } |
3275 | _arg3 = (bool ) tempbool3; | |
cf694132 RD |
3276 | { |
3277 | wxPy_BEGIN_ALLOW_THREADS; | |
3278 | _result = (long )wxListCtrl_FindItem(_arg0,_arg1,*_arg2,_arg3); | |
3279 | ||
3280 | wxPy_END_ALLOW_THREADS; | |
3281 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
3282 | { |
3283 | if (_obj2) | |
3284 | delete _arg2; | |
3285 | } | |
3286 | return _resultobj; | |
3287 | } | |
3288 | ||
3289 | #define wxListCtrl_FindItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindItem(_swigarg0,_swigarg1)) | |
efc5f224 | 3290 | static PyObject *_wrap_wxListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3291 | PyObject * _resultobj; |
3292 | long _result; | |
3293 | wxListCtrl * _arg0; | |
3294 | long _arg1; | |
3295 | long _arg2; | |
1d99702e | 3296 | PyObject * _argo0 = 0; |
efc5f224 | 3297 | char *_kwnames[] = { "self","start","data", NULL }; |
8ab979d7 RD |
3298 | |
3299 | self = self; | |
efc5f224 | 3300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_FindItemData",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3301 | return NULL; |
1d99702e RD |
3302 | if (_argo0) { |
3303 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3304 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3305 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemData. Expected _wxListCtrl_p."); |
3306 | return NULL; | |
3307 | } | |
3308 | } | |
cf694132 RD |
3309 | { |
3310 | wxPy_BEGIN_ALLOW_THREADS; | |
3311 | _result = (long )wxListCtrl_FindItemData(_arg0,_arg1,_arg2); | |
3312 | ||
3313 | wxPy_END_ALLOW_THREADS; | |
3314 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
3315 | return _resultobj; |
3316 | } | |
3317 | ||
3318 | #define wxListCtrl_FindItemAtPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 3319 | static PyObject *_wrap_wxListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3320 | PyObject * _resultobj; |
3321 | long _result; | |
3322 | wxListCtrl * _arg0; | |
3323 | long _arg1; | |
3324 | wxPoint * _arg2; | |
3325 | int _arg3; | |
1d99702e | 3326 | PyObject * _argo0 = 0; |
2f90df85 RD |
3327 | wxPoint temp; |
3328 | PyObject * _obj2 = 0; | |
efc5f224 | 3329 | char *_kwnames[] = { "self","start","pt","direction", NULL }; |
8ab979d7 RD |
3330 | |
3331 | self = self; | |
2f90df85 | 3332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_FindItemAtPos",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) |
8ab979d7 | 3333 | return NULL; |
1d99702e RD |
3334 | if (_argo0) { |
3335 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3336 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3337 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemAtPos. Expected _wxListCtrl_p."); |
3338 | return NULL; | |
3339 | } | |
3340 | } | |
2f90df85 RD |
3341 | { |
3342 | _arg2 = &temp; | |
3343 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 3344 | return NULL; |
2f90df85 | 3345 | } |
cf694132 RD |
3346 | { |
3347 | wxPy_BEGIN_ALLOW_THREADS; | |
3348 | _result = (long )wxListCtrl_FindItemAtPos(_arg0,_arg1,*_arg2,_arg3); | |
3349 | ||
3350 | wxPy_END_ALLOW_THREADS; | |
3351 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
3352 | return _resultobj; |
3353 | } | |
3354 | ||
3355 | #define wxListCtrl_GetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetColumn(_swigarg0,_swigarg1)) | |
efc5f224 | 3356 | static PyObject *_wrap_wxListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3357 | PyObject * _resultobj; |
3358 | bool _result; | |
3359 | wxListCtrl * _arg0; | |
3360 | int _arg1; | |
3361 | wxListItem * _arg2; | |
1d99702e RD |
3362 | PyObject * _argo0 = 0; |
3363 | PyObject * _argo2 = 0; | |
efc5f224 | 3364 | char *_kwnames[] = { "self","col","item", NULL }; |
8ab979d7 RD |
3365 | |
3366 | self = self; | |
efc5f224 | 3367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_GetColumn",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 3368 | return NULL; |
1d99702e RD |
3369 | if (_argo0) { |
3370 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3371 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3372 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumn. Expected _wxListCtrl_p."); |
3373 | return NULL; | |
3374 | } | |
3375 | } | |
1d99702e RD |
3376 | if (_argo2) { |
3377 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3378 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
8ab979d7 RD |
3379 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_GetColumn. Expected _wxListItem_p."); |
3380 | return NULL; | |
3381 | } | |
3382 | } | |
cf694132 RD |
3383 | { |
3384 | wxPy_BEGIN_ALLOW_THREADS; | |
3385 | _result = (bool )wxListCtrl_GetColumn(_arg0,_arg1,*_arg2); | |
3386 | ||
3387 | wxPy_END_ALLOW_THREADS; | |
3388 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3389 | return _resultobj; |
3390 | } | |
3391 | ||
3392 | #define wxListCtrl_GetColumnWidth(_swigobj,_swigarg0) (_swigobj->GetColumnWidth(_swigarg0)) | |
efc5f224 | 3393 | static PyObject *_wrap_wxListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3394 | PyObject * _resultobj; |
3395 | int _result; | |
3396 | wxListCtrl * _arg0; | |
3397 | int _arg1; | |
1d99702e | 3398 | PyObject * _argo0 = 0; |
efc5f224 | 3399 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
3400 | |
3401 | self = self; | |
efc5f224 | 3402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetColumnWidth",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3403 | return NULL; |
1d99702e RD |
3404 | if (_argo0) { |
3405 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3406 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3407 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnWidth. Expected _wxListCtrl_p."); |
3408 | return NULL; | |
3409 | } | |
3410 | } | |
cf694132 RD |
3411 | { |
3412 | wxPy_BEGIN_ALLOW_THREADS; | |
3413 | _result = (int )wxListCtrl_GetColumnWidth(_arg0,_arg1); | |
3414 | ||
3415 | wxPy_END_ALLOW_THREADS; | |
3416 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3417 | return _resultobj; |
3418 | } | |
3419 | ||
3420 | #define wxListCtrl_GetCountPerPage(_swigobj) (_swigobj->GetCountPerPage()) | |
efc5f224 | 3421 | static PyObject *_wrap_wxListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3422 | PyObject * _resultobj; |
3423 | int _result; | |
3424 | wxListCtrl * _arg0; | |
1d99702e | 3425 | PyObject * _argo0 = 0; |
efc5f224 | 3426 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3427 | |
3428 | self = self; | |
efc5f224 | 3429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetCountPerPage",_kwnames,&_argo0)) |
8ab979d7 | 3430 | return NULL; |
1d99702e RD |
3431 | if (_argo0) { |
3432 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3433 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3434 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetCountPerPage. Expected _wxListCtrl_p."); |
3435 | return NULL; | |
3436 | } | |
3437 | } | |
cf694132 RD |
3438 | { |
3439 | wxPy_BEGIN_ALLOW_THREADS; | |
3440 | _result = (int )wxListCtrl_GetCountPerPage(_arg0); | |
3441 | ||
3442 | wxPy_END_ALLOW_THREADS; | |
3443 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3444 | return _resultobj; |
3445 | } | |
3446 | ||
3447 | #define wxListCtrl_GetImageList(_swigobj,_swigarg0) (_swigobj->GetImageList(_swigarg0)) | |
efc5f224 | 3448 | static PyObject *_wrap_wxListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3449 | PyObject * _resultobj; |
3450 | wxImageList * _result; | |
3451 | wxListCtrl * _arg0; | |
3452 | int _arg1; | |
1d99702e | 3453 | PyObject * _argo0 = 0; |
efc5f224 | 3454 | char *_kwnames[] = { "self","which", NULL }; |
8ab979d7 RD |
3455 | char _ptemp[128]; |
3456 | ||
3457 | self = self; | |
efc5f224 | 3458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetImageList",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3459 | return NULL; |
1d99702e RD |
3460 | if (_argo0) { |
3461 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3462 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3463 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetImageList. Expected _wxListCtrl_p."); |
3464 | return NULL; | |
3465 | } | |
3466 | } | |
cf694132 RD |
3467 | { |
3468 | wxPy_BEGIN_ALLOW_THREADS; | |
3469 | _result = (wxImageList *)wxListCtrl_GetImageList(_arg0,_arg1); | |
3470 | ||
3471 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
3472 | } if (_result) { |
3473 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p"); | |
3474 | _resultobj = Py_BuildValue("s",_ptemp); | |
3475 | } else { | |
3476 | Py_INCREF(Py_None); | |
3477 | _resultobj = Py_None; | |
3478 | } | |
8ab979d7 RD |
3479 | return _resultobj; |
3480 | } | |
3481 | ||
3482 | #define wxListCtrl_GetItemData(_swigobj,_swigarg0) (_swigobj->GetItemData(_swigarg0)) | |
efc5f224 | 3483 | static PyObject *_wrap_wxListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3484 | PyObject * _resultobj; |
3485 | long _result; | |
3486 | wxListCtrl * _arg0; | |
3487 | long _arg1; | |
1d99702e | 3488 | PyObject * _argo0 = 0; |
efc5f224 | 3489 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3490 | |
3491 | self = self; | |
efc5f224 | 3492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemData",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3493 | return NULL; |
1d99702e RD |
3494 | if (_argo0) { |
3495 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3496 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemData. Expected _wxListCtrl_p."); |
3498 | return NULL; | |
3499 | } | |
3500 | } | |
cf694132 RD |
3501 | { |
3502 | wxPy_BEGIN_ALLOW_THREADS; | |
3503 | _result = (long )wxListCtrl_GetItemData(_arg0,_arg1); | |
3504 | ||
3505 | wxPy_END_ALLOW_THREADS; | |
3506 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
3507 | return _resultobj; |
3508 | } | |
3509 | ||
e166644c | 3510 | static wxListItem * wxListCtrl_GetItem(wxListCtrl *self,long itemId,int col) { |
8ab979d7 | 3511 | wxListItem* info = new wxListItem; |
0699c864 | 3512 | info->m_itemId = itemId; |
e166644c | 3513 | info->m_col = col; |
f17fee68 | 3514 | info->m_mask = 0xFFFF; |
8ab979d7 RD |
3515 | self->GetItem(*info); |
3516 | return info; | |
3517 | } | |
efc5f224 | 3518 | static PyObject *_wrap_wxListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3519 | PyObject * _resultobj; |
3520 | wxListItem * _result; | |
3521 | wxListCtrl * _arg0; | |
0699c864 | 3522 | long _arg1; |
e166644c | 3523 | int _arg2 = (int ) 0; |
1d99702e | 3524 | PyObject * _argo0 = 0; |
e166644c | 3525 | char *_kwnames[] = { "self","itemId","col", NULL }; |
8ab979d7 RD |
3526 | char _ptemp[128]; |
3527 | ||
3528 | self = self; | |
e166644c | 3529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItem",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3530 | return NULL; |
1d99702e RD |
3531 | if (_argo0) { |
3532 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3533 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3534 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItem. Expected _wxListCtrl_p."); |
3535 | return NULL; | |
3536 | } | |
3537 | } | |
cf694132 RD |
3538 | { |
3539 | wxPy_BEGIN_ALLOW_THREADS; | |
e166644c | 3540 | _result = (wxListItem *)wxListCtrl_GetItem(_arg0,_arg1,_arg2); |
cf694132 RD |
3541 | |
3542 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
3543 | } if (_result) { |
3544 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p"); | |
3545 | _resultobj = Py_BuildValue("s",_ptemp); | |
3546 | } else { | |
3547 | Py_INCREF(Py_None); | |
3548 | _resultobj = Py_None; | |
3549 | } | |
8ab979d7 RD |
3550 | return _resultobj; |
3551 | } | |
3552 | ||
3553 | static wxPoint * wxListCtrl_GetItemPosition(wxListCtrl *self,long item) { | |
3554 | wxPoint* pos = new wxPoint; | |
3555 | self->GetItemPosition(item, *pos); | |
3556 | return pos; | |
3557 | } | |
efc5f224 | 3558 | static PyObject *_wrap_wxListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3559 | PyObject * _resultobj; |
3560 | wxPoint * _result; | |
3561 | wxListCtrl * _arg0; | |
3562 | long _arg1; | |
1d99702e | 3563 | PyObject * _argo0 = 0; |
efc5f224 | 3564 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3565 | char _ptemp[128]; |
3566 | ||
3567 | self = self; | |
efc5f224 | 3568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemPosition",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3569 | return NULL; |
1d99702e RD |
3570 | if (_argo0) { |
3571 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3572 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3573 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemPosition. Expected _wxListCtrl_p."); |
3574 | return NULL; | |
3575 | } | |
3576 | } | |
cf694132 RD |
3577 | { |
3578 | wxPy_BEGIN_ALLOW_THREADS; | |
3579 | _result = (wxPoint *)wxListCtrl_GetItemPosition(_arg0,_arg1); | |
3580 | ||
3581 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
3582 | } if (_result) { |
3583 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
3584 | _resultobj = Py_BuildValue("s",_ptemp); | |
3585 | } else { | |
3586 | Py_INCREF(Py_None); | |
3587 | _resultobj = Py_None; | |
3588 | } | |
8ab979d7 RD |
3589 | return _resultobj; |
3590 | } | |
3591 | ||
3592 | static wxRect * wxListCtrl_GetItemRect(wxListCtrl *self,long item,int code) { | |
3593 | wxRect* rect= new wxRect; | |
3594 | self->GetItemRect(item, *rect, code); | |
3595 | return rect; | |
3596 | } | |
efc5f224 | 3597 | static PyObject *_wrap_wxListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3598 | PyObject * _resultobj; |
3599 | wxRect * _result; | |
3600 | wxListCtrl * _arg0; | |
3601 | long _arg1; | |
1d99702e RD |
3602 | int _arg2 = (int ) (wxLIST_RECT_BOUNDS); |
3603 | PyObject * _argo0 = 0; | |
efc5f224 | 3604 | char *_kwnames[] = { "self","item","code", NULL }; |
8ab979d7 RD |
3605 | char _ptemp[128]; |
3606 | ||
3607 | self = self; | |
efc5f224 | 3608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItemRect",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3609 | return NULL; |
1d99702e RD |
3610 | if (_argo0) { |
3611 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3612 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3613 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemRect. Expected _wxListCtrl_p."); |
3614 | return NULL; | |
3615 | } | |
3616 | } | |
cf694132 RD |
3617 | { |
3618 | wxPy_BEGIN_ALLOW_THREADS; | |
3619 | _result = (wxRect *)wxListCtrl_GetItemRect(_arg0,_arg1,_arg2); | |
3620 | ||
3621 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
3622 | } if (_result) { |
3623 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRect_p"); | |
3624 | _resultobj = Py_BuildValue("s",_ptemp); | |
3625 | } else { | |
3626 | Py_INCREF(Py_None); | |
3627 | _resultobj = Py_None; | |
3628 | } | |
8ab979d7 RD |
3629 | return _resultobj; |
3630 | } | |
3631 | ||
3632 | #define wxListCtrl_GetItemState(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemState(_swigarg0,_swigarg1)) | |
efc5f224 | 3633 | static PyObject *_wrap_wxListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3634 | PyObject * _resultobj; |
3635 | int _result; | |
3636 | wxListCtrl * _arg0; | |
3637 | long _arg1; | |
3638 | long _arg2; | |
1d99702e | 3639 | PyObject * _argo0 = 0; |
efc5f224 | 3640 | char *_kwnames[] = { "self","item","stateMask", NULL }; |
8ab979d7 RD |
3641 | |
3642 | self = self; | |
efc5f224 | 3643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_GetItemState",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3644 | return NULL; |
1d99702e RD |
3645 | if (_argo0) { |
3646 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3647 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3648 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemState. Expected _wxListCtrl_p."); |
3649 | return NULL; | |
3650 | } | |
3651 | } | |
cf694132 RD |
3652 | { |
3653 | wxPy_BEGIN_ALLOW_THREADS; | |
3654 | _result = (int )wxListCtrl_GetItemState(_arg0,_arg1,_arg2); | |
3655 | ||
3656 | wxPy_END_ALLOW_THREADS; | |
3657 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3658 | return _resultobj; |
3659 | } | |
3660 | ||
3661 | #define wxListCtrl_GetItemCount(_swigobj) (_swigobj->GetItemCount()) | |
efc5f224 | 3662 | static PyObject *_wrap_wxListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3663 | PyObject * _resultobj; |
3664 | int _result; | |
3665 | wxListCtrl * _arg0; | |
1d99702e | 3666 | PyObject * _argo0 = 0; |
efc5f224 | 3667 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3668 | |
3669 | self = self; | |
efc5f224 | 3670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetItemCount",_kwnames,&_argo0)) |
8ab979d7 | 3671 | return NULL; |
1d99702e RD |
3672 | if (_argo0) { |
3673 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3674 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3675 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemCount. Expected _wxListCtrl_p."); |
3676 | return NULL; | |
3677 | } | |
3678 | } | |
cf694132 RD |
3679 | { |
3680 | wxPy_BEGIN_ALLOW_THREADS; | |
3681 | _result = (int )wxListCtrl_GetItemCount(_arg0); | |
3682 | ||
3683 | wxPy_END_ALLOW_THREADS; | |
3684 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3685 | return _resultobj; |
3686 | } | |
3687 | ||
3688 | #define wxListCtrl_GetItemSpacing(_swigobj,_swigarg0) (_swigobj->GetItemSpacing(_swigarg0)) | |
efc5f224 | 3689 | static PyObject *_wrap_wxListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3690 | PyObject * _resultobj; |
3691 | int _result; | |
3692 | wxListCtrl * _arg0; | |
3693 | bool _arg1; | |
1d99702e | 3694 | PyObject * _argo0 = 0; |
8ab979d7 | 3695 | int tempbool1; |
efc5f224 | 3696 | char *_kwnames[] = { "self","isSmall", NULL }; |
8ab979d7 RD |
3697 | |
3698 | self = self; | |
efc5f224 | 3699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetItemSpacing",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3700 | return NULL; |
1d99702e RD |
3701 | if (_argo0) { |
3702 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3703 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3704 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemSpacing. Expected _wxListCtrl_p."); |
3705 | return NULL; | |
3706 | } | |
3707 | } | |
3708 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
3709 | { |
3710 | wxPy_BEGIN_ALLOW_THREADS; | |
3711 | _result = (int )wxListCtrl_GetItemSpacing(_arg0,_arg1); | |
3712 | ||
3713 | wxPy_END_ALLOW_THREADS; | |
3714 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3715 | return _resultobj; |
3716 | } | |
3717 | ||
3718 | #define wxListCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) | |
efc5f224 | 3719 | static PyObject *_wrap_wxListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3720 | PyObject * _resultobj; |
3721 | wxString * _result; | |
3722 | wxListCtrl * _arg0; | |
3723 | long _arg1; | |
1d99702e | 3724 | PyObject * _argo0 = 0; |
efc5f224 | 3725 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3726 | |
3727 | self = self; | |
efc5f224 | 3728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemText",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3729 | return NULL; |
1d99702e RD |
3730 | if (_argo0) { |
3731 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3732 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3733 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemText. Expected _wxListCtrl_p."); |
3734 | return NULL; | |
3735 | } | |
3736 | } | |
8ab979d7 | 3737 | { |
cf694132 RD |
3738 | wxPy_BEGIN_ALLOW_THREADS; |
3739 | _result = new wxString (wxListCtrl_GetItemText(_arg0,_arg1)); | |
3740 | ||
3741 | wxPy_END_ALLOW_THREADS; | |
3742 | }{ | |
eec92d76 | 3743 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
3744 | } |
3745 | { | |
3746 | delete _result; | |
3747 | } | |
3748 | return _resultobj; | |
3749 | } | |
3750 | ||
3751 | #define wxListCtrl_GetNextItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetNextItem(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 3752 | static PyObject *_wrap_wxListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3753 | PyObject * _resultobj; |
3754 | long _result; | |
3755 | wxListCtrl * _arg0; | |
3756 | long _arg1; | |
1d99702e RD |
3757 | int _arg2 = (int ) (wxLIST_NEXT_ALL); |
3758 | int _arg3 = (int ) (wxLIST_STATE_DONTCARE); | |
3759 | PyObject * _argo0 = 0; | |
efc5f224 | 3760 | char *_kwnames[] = { "self","item","geometry","state", NULL }; |
8ab979d7 RD |
3761 | |
3762 | self = self; | |
efc5f224 | 3763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:wxListCtrl_GetNextItem",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 3764 | return NULL; |
1d99702e RD |
3765 | if (_argo0) { |
3766 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3767 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3768 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetNextItem. Expected _wxListCtrl_p."); |
3769 | return NULL; | |
3770 | } | |
3771 | } | |
cf694132 RD |
3772 | { |
3773 | wxPy_BEGIN_ALLOW_THREADS; | |
3774 | _result = (long )wxListCtrl_GetNextItem(_arg0,_arg1,_arg2,_arg3); | |
3775 | ||
3776 | wxPy_END_ALLOW_THREADS; | |
3777 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
3778 | return _resultobj; |
3779 | } | |
3780 | ||
3781 | #define wxListCtrl_GetSelectedItemCount(_swigobj) (_swigobj->GetSelectedItemCount()) | |
efc5f224 | 3782 | static PyObject *_wrap_wxListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3783 | PyObject * _resultobj; |
3784 | int _result; | |
3785 | wxListCtrl * _arg0; | |
1d99702e | 3786 | PyObject * _argo0 = 0; |
efc5f224 | 3787 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3788 | |
3789 | self = self; | |
efc5f224 | 3790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetSelectedItemCount",_kwnames,&_argo0)) |
8ab979d7 | 3791 | return NULL; |
1d99702e RD |
3792 | if (_argo0) { |
3793 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3794 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3795 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetSelectedItemCount. Expected _wxListCtrl_p."); |
3796 | return NULL; | |
3797 | } | |
3798 | } | |
cf694132 RD |
3799 | { |
3800 | wxPy_BEGIN_ALLOW_THREADS; | |
3801 | _result = (int )wxListCtrl_GetSelectedItemCount(_arg0); | |
3802 | ||
3803 | wxPy_END_ALLOW_THREADS; | |
3804 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3805 | return _resultobj; |
3806 | } | |
3807 | ||
3808 | #define wxListCtrl_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
efc5f224 | 3809 | static PyObject *_wrap_wxListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3810 | PyObject * _resultobj; |
3811 | wxColour * _result; | |
3812 | wxListCtrl * _arg0; | |
1d99702e | 3813 | PyObject * _argo0 = 0; |
efc5f224 | 3814 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3815 | char _ptemp[128]; |
3816 | ||
3817 | self = self; | |
efc5f224 | 3818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTextColour",_kwnames,&_argo0)) |
8ab979d7 | 3819 | return NULL; |
1d99702e RD |
3820 | if (_argo0) { |
3821 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3822 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3823 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTextColour. Expected _wxListCtrl_p."); |
3824 | return NULL; | |
3825 | } | |
3826 | } | |
cf694132 RD |
3827 | { |
3828 | wxPy_BEGIN_ALLOW_THREADS; | |
3829 | _result = new wxColour (wxListCtrl_GetTextColour(_arg0)); | |
3830 | ||
3831 | wxPy_END_ALLOW_THREADS; | |
3832 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
8ab979d7 RD |
3833 | _resultobj = Py_BuildValue("s",_ptemp); |
3834 | return _resultobj; | |
3835 | } | |
3836 | ||
be4d9c1f | 3837 | #define wxListCtrl_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) |
efc5f224 | 3838 | static PyObject *_wrap_wxListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
be4d9c1f RD |
3839 | PyObject * _resultobj; |
3840 | wxListCtrl * _arg0; | |
3841 | wxColour * _arg1; | |
1d99702e | 3842 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3843 | wxColour temp; |
3844 | PyObject * _obj1 = 0; | |
efc5f224 | 3845 | char *_kwnames[] = { "self","col", NULL }; |
be4d9c1f RD |
3846 | |
3847 | self = self; | |
f6bcfd97 | 3848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetTextColour",_kwnames,&_argo0,&_obj1)) |
be4d9c1f | 3849 | return NULL; |
1d99702e RD |
3850 | if (_argo0) { |
3851 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3852 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
be4d9c1f RD |
3853 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetTextColour. Expected _wxListCtrl_p."); |
3854 | return NULL; | |
3855 | } | |
3856 | } | |
f6bcfd97 BP |
3857 | { |
3858 | _arg1 = &temp; | |
3859 | if (! wxColour_helper(_obj1, &_arg1)) | |
be4d9c1f | 3860 | return NULL; |
f6bcfd97 | 3861 | } |
cf694132 RD |
3862 | { |
3863 | wxPy_BEGIN_ALLOW_THREADS; | |
3864 | wxListCtrl_SetTextColour(_arg0,*_arg1); | |
3865 | ||
3866 | wxPy_END_ALLOW_THREADS; | |
3867 | } Py_INCREF(Py_None); | |
be4d9c1f RD |
3868 | _resultobj = Py_None; |
3869 | return _resultobj; | |
3870 | } | |
3871 | ||
8ab979d7 | 3872 | #define wxListCtrl_GetTopItem(_swigobj) (_swigobj->GetTopItem()) |
efc5f224 | 3873 | static PyObject *_wrap_wxListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3874 | PyObject * _resultobj; |
3875 | long _result; | |
3876 | wxListCtrl * _arg0; | |
1d99702e | 3877 | PyObject * _argo0 = 0; |
efc5f224 | 3878 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3879 | |
3880 | self = self; | |
efc5f224 | 3881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTopItem",_kwnames,&_argo0)) |
8ab979d7 | 3882 | return NULL; |
1d99702e RD |
3883 | if (_argo0) { |
3884 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3885 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3886 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTopItem. Expected _wxListCtrl_p."); |
3887 | return NULL; | |
3888 | } | |
3889 | } | |
cf694132 RD |
3890 | { |
3891 | wxPy_BEGIN_ALLOW_THREADS; | |
3892 | _result = (long )wxListCtrl_GetTopItem(_arg0); | |
3893 | ||
3894 | wxPy_END_ALLOW_THREADS; | |
3895 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
3896 | return _resultobj; |
3897 | } | |
3898 | ||
3899 | #define wxListCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) | |
efc5f224 | 3900 | static PyObject *_wrap_wxListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3901 | PyObject * _resultobj; |
3902 | long _result; | |
3903 | wxListCtrl * _arg0; | |
3904 | wxPoint * _arg1; | |
3905 | int * _arg2; | |
3906 | int temp; | |
1d99702e | 3907 | PyObject * _argo0 = 0; |
2f90df85 RD |
3908 | wxPoint temp0; |
3909 | PyObject * _obj1 = 0; | |
efc5f224 | 3910 | char *_kwnames[] = { "self","point", NULL }; |
8ab979d7 RD |
3911 | |
3912 | self = self; | |
3913 | { | |
3914 | _arg2 = &temp; | |
3915 | } | |
2f90df85 | 3916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_HitTest",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3917 | return NULL; |
1d99702e RD |
3918 | if (_argo0) { |
3919 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3920 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3921 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_HitTest. Expected _wxListCtrl_p."); |
3922 | return NULL; | |
3923 | } | |
3924 | } | |
2f90df85 RD |
3925 | { |
3926 | _arg1 = &temp0; | |
3927 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 3928 | return NULL; |
2f90df85 | 3929 | } |
cf694132 RD |
3930 | { |
3931 | wxPy_BEGIN_ALLOW_THREADS; | |
3932 | _result = (long )wxListCtrl_HitTest(_arg0,*_arg1,*_arg2); | |
3933 | ||
3934 | wxPy_END_ALLOW_THREADS; | |
3935 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
3936 | { |
3937 | PyObject *o; | |
3938 | o = PyInt_FromLong((long) (*_arg2)); | |
3939 | _resultobj = t_output_helper(_resultobj, o); | |
3940 | } | |
3941 | return _resultobj; | |
3942 | } | |
3943 | ||
c368d904 RD |
3944 | #define wxListCtrl_InsertColumnInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertColumn(_swigarg0,_swigarg1)) |
3945 | static PyObject *_wrap_wxListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3946 | PyObject * _resultobj; |
3947 | long _result; | |
3948 | wxListCtrl * _arg0; | |
3949 | long _arg1; | |
3950 | wxListItem * _arg2; | |
1d99702e RD |
3951 | PyObject * _argo0 = 0; |
3952 | PyObject * _argo2 = 0; | |
efc5f224 | 3953 | char *_kwnames[] = { "self","col","info", NULL }; |
8ab979d7 RD |
3954 | |
3955 | self = self; | |
c368d904 | 3956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertColumnInfo",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 3957 | return NULL; |
1d99702e RD |
3958 | if (_argo0) { |
3959 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3960 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
c368d904 | 3961 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumnInfo. Expected _wxListCtrl_p."); |
8ab979d7 RD |
3962 | return NULL; |
3963 | } | |
3964 | } | |
1d99702e RD |
3965 | if (_argo2) { |
3966 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3967 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
c368d904 | 3968 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_InsertColumnInfo. Expected _wxListItem_p."); |
8ab979d7 RD |
3969 | return NULL; |
3970 | } | |
3971 | } | |
cf694132 RD |
3972 | { |
3973 | wxPy_BEGIN_ALLOW_THREADS; | |
c368d904 | 3974 | _result = (long )wxListCtrl_InsertColumnInfo(_arg0,_arg1,*_arg2); |
cf694132 RD |
3975 | |
3976 | wxPy_END_ALLOW_THREADS; | |
3977 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
3978 | return _resultobj; |
3979 | } | |
3980 | ||
3981 | #define wxListCtrl_InsertColumn(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertColumn(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
efc5f224 | 3982 | static PyObject *_wrap_wxListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3983 | PyObject * _resultobj; |
3984 | long _result; | |
3985 | wxListCtrl * _arg0; | |
3986 | long _arg1; | |
3987 | wxString * _arg2; | |
1d99702e RD |
3988 | int _arg3 = (int ) (wxLIST_FORMAT_LEFT); |
3989 | int _arg4 = (int ) -1; | |
3990 | PyObject * _argo0 = 0; | |
8ab979d7 | 3991 | PyObject * _obj2 = 0; |
efc5f224 | 3992 | char *_kwnames[] = { "self","col","heading","format","width", NULL }; |
8ab979d7 RD |
3993 | |
3994 | self = self; | |
efc5f224 | 3995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|ii:wxListCtrl_InsertColumn",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3,&_arg4)) |
8ab979d7 | 3996 | return NULL; |
1d99702e RD |
3997 | if (_argo0) { |
3998 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3999 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4000 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumn. Expected _wxListCtrl_p."); |
4001 | return NULL; | |
4002 | } | |
4003 | } | |
4004 | { | |
185d7c3e RD |
4005 | #if PYTHON_API_VERSION >= 1009 |
4006 | char* tmpPtr; int tmpSize; | |
4007 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
4008 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
4009 | return NULL; | |
4010 | } | |
4011 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4012 | return NULL; | |
4013 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4014 | #else | |
8ab979d7 RD |
4015 | if (!PyString_Check(_obj2)) { |
4016 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4017 | return NULL; | |
4018 | } | |
185d7c3e RD |
4019 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
4020 | #endif | |
8ab979d7 | 4021 | } |
cf694132 RD |
4022 | { |
4023 | wxPy_BEGIN_ALLOW_THREADS; | |
4024 | _result = (long )wxListCtrl_InsertColumn(_arg0,_arg1,*_arg2,_arg3,_arg4); | |
4025 | ||
4026 | wxPy_END_ALLOW_THREADS; | |
4027 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
4028 | { |
4029 | if (_obj2) | |
4030 | delete _arg2; | |
4031 | } | |
4032 | return _resultobj; | |
4033 | } | |
4034 | ||
4035 | #define wxListCtrl_InsertItem(_swigobj,_swigarg0) (_swigobj->InsertItem(_swigarg0)) | |
efc5f224 | 4036 | static PyObject *_wrap_wxListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4037 | PyObject * _resultobj; |
4038 | long _result; | |
4039 | wxListCtrl * _arg0; | |
4040 | wxListItem * _arg1; | |
1d99702e RD |
4041 | PyObject * _argo0 = 0; |
4042 | PyObject * _argo1 = 0; | |
efc5f224 | 4043 | char *_kwnames[] = { "self","info", NULL }; |
8ab979d7 RD |
4044 | |
4045 | self = self; | |
efc5f224 | 4046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_InsertItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4047 | return NULL; |
1d99702e RD |
4048 | if (_argo0) { |
4049 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4050 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4051 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertItem. Expected _wxListCtrl_p."); |
4052 | return NULL; | |
4053 | } | |
4054 | } | |
1d99702e RD |
4055 | if (_argo1) { |
4056 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4057 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
8ab979d7 RD |
4058 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_InsertItem. Expected _wxListItem_p."); |
4059 | return NULL; | |
4060 | } | |
4061 | } | |
cf694132 RD |
4062 | { |
4063 | wxPy_BEGIN_ALLOW_THREADS; | |
4064 | _result = (long )wxListCtrl_InsertItem(_arg0,*_arg1); | |
4065 | ||
4066 | wxPy_END_ALLOW_THREADS; | |
4067 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
4068 | return _resultobj; |
4069 | } | |
4070 | ||
4071 | #define wxListCtrl_InsertStringItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) | |
efc5f224 | 4072 | static PyObject *_wrap_wxListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4073 | PyObject * _resultobj; |
4074 | long _result; | |
4075 | wxListCtrl * _arg0; | |
4076 | long _arg1; | |
4077 | wxString * _arg2; | |
1d99702e | 4078 | PyObject * _argo0 = 0; |
8ab979d7 | 4079 | PyObject * _obj2 = 0; |
efc5f224 | 4080 | char *_kwnames[] = { "self","index","label", NULL }; |
8ab979d7 RD |
4081 | |
4082 | self = self; | |
efc5f224 | 4083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertStringItem",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 4084 | return NULL; |
1d99702e RD |
4085 | if (_argo0) { |
4086 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4087 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4088 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertStringItem. Expected _wxListCtrl_p."); |
4089 | return NULL; | |
4090 | } | |
4091 | } | |
4092 | { | |
185d7c3e RD |
4093 | #if PYTHON_API_VERSION >= 1009 |
4094 | char* tmpPtr; int tmpSize; | |
4095 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
4096 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
4097 | return NULL; | |
4098 | } | |
4099 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4100 | return NULL; | |
4101 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4102 | #else | |
8ab979d7 RD |
4103 | if (!PyString_Check(_obj2)) { |
4104 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4105 | return NULL; | |
4106 | } | |
185d7c3e RD |
4107 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
4108 | #endif | |
8ab979d7 | 4109 | } |
cf694132 RD |
4110 | { |
4111 | wxPy_BEGIN_ALLOW_THREADS; | |
4112 | _result = (long )wxListCtrl_InsertStringItem(_arg0,_arg1,*_arg2); | |
4113 | ||
4114 | wxPy_END_ALLOW_THREADS; | |
4115 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
4116 | { |
4117 | if (_obj2) | |
4118 | delete _arg2; | |
4119 | } | |
4120 | return _resultobj; | |
4121 | } | |
4122 | ||
4123 | #define wxListCtrl_InsertImageItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) | |
efc5f224 | 4124 | static PyObject *_wrap_wxListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4125 | PyObject * _resultobj; |
4126 | long _result; | |
4127 | wxListCtrl * _arg0; | |
4128 | long _arg1; | |
4129 | int _arg2; | |
1d99702e | 4130 | PyObject * _argo0 = 0; |
efc5f224 | 4131 | char *_kwnames[] = { "self","index","imageIndex", NULL }; |
8ab979d7 RD |
4132 | |
4133 | self = self; | |
efc5f224 | 4134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oli:wxListCtrl_InsertImageItem",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4135 | return NULL; |
1d99702e RD |
4136 | if (_argo0) { |
4137 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4138 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4139 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageItem. Expected _wxListCtrl_p."); |
4140 | return NULL; | |
4141 | } | |
4142 | } | |
cf694132 RD |
4143 | { |
4144 | wxPy_BEGIN_ALLOW_THREADS; | |
4145 | _result = (long )wxListCtrl_InsertImageItem(_arg0,_arg1,_arg2); | |
4146 | ||
4147 | wxPy_END_ALLOW_THREADS; | |
4148 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
4149 | return _resultobj; |
4150 | } | |
4151 | ||
4152 | #define wxListCtrl_InsertImageStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 4153 | static PyObject *_wrap_wxListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4154 | PyObject * _resultobj; |
4155 | long _result; | |
4156 | wxListCtrl * _arg0; | |
4157 | long _arg1; | |
4158 | wxString * _arg2; | |
4159 | int _arg3; | |
1d99702e | 4160 | PyObject * _argo0 = 0; |
8ab979d7 | 4161 | PyObject * _obj2 = 0; |
efc5f224 | 4162 | char *_kwnames[] = { "self","index","label","imageIndex", NULL }; |
8ab979d7 RD |
4163 | |
4164 | self = self; | |
efc5f224 | 4165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_InsertImageStringItem",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) |
8ab979d7 | 4166 | return NULL; |
1d99702e RD |
4167 | if (_argo0) { |
4168 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4169 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4170 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageStringItem. Expected _wxListCtrl_p."); |
4171 | return NULL; | |
4172 | } | |
4173 | } | |
4174 | { | |
185d7c3e RD |
4175 | #if PYTHON_API_VERSION >= 1009 |
4176 | char* tmpPtr; int tmpSize; | |
4177 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
4178 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
4179 | return NULL; | |
4180 | } | |
4181 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4182 | return NULL; | |
4183 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4184 | #else | |
8ab979d7 RD |
4185 | if (!PyString_Check(_obj2)) { |
4186 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4187 | return NULL; | |
4188 | } | |
185d7c3e RD |
4189 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
4190 | #endif | |
8ab979d7 | 4191 | } |
cf694132 RD |
4192 | { |
4193 | wxPy_BEGIN_ALLOW_THREADS; | |
4194 | _result = (long )wxListCtrl_InsertImageStringItem(_arg0,_arg1,*_arg2,_arg3); | |
4195 | ||
4196 | wxPy_END_ALLOW_THREADS; | |
4197 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
4198 | { |
4199 | if (_obj2) | |
4200 | delete _arg2; | |
4201 | } | |
4202 | return _resultobj; | |
4203 | } | |
4204 | ||
4205 | #define wxListCtrl_ScrollList(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScrollList(_swigarg0,_swigarg1)) | |
efc5f224 | 4206 | static PyObject *_wrap_wxListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4207 | PyObject * _resultobj; |
4208 | bool _result; | |
4209 | wxListCtrl * _arg0; | |
4210 | int _arg1; | |
4211 | int _arg2; | |
1d99702e | 4212 | PyObject * _argo0 = 0; |
efc5f224 | 4213 | char *_kwnames[] = { "self","dx","dy", NULL }; |
8ab979d7 RD |
4214 | |
4215 | self = self; | |
efc5f224 | 4216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_ScrollList",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4217 | return NULL; |
1d99702e RD |
4218 | if (_argo0) { |
4219 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4220 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4221 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ScrollList. Expected _wxListCtrl_p."); |
4222 | return NULL; | |
4223 | } | |
4224 | } | |
cf694132 RD |
4225 | { |
4226 | wxPy_BEGIN_ALLOW_THREADS; | |
4227 | _result = (bool )wxListCtrl_ScrollList(_arg0,_arg1,_arg2); | |
4228 | ||
4229 | wxPy_END_ALLOW_THREADS; | |
4230 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4231 | return _resultobj; |
4232 | } | |
4233 | ||
4234 | #define wxListCtrl_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
efc5f224 | 4235 | static PyObject *_wrap_wxListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4236 | PyObject * _resultobj; |
4237 | wxListCtrl * _arg0; | |
4238 | wxColour * _arg1; | |
1d99702e | 4239 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
4240 | wxColour temp; |
4241 | PyObject * _obj1 = 0; | |
efc5f224 | 4242 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
4243 | |
4244 | self = self; | |
f6bcfd97 | 4245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4246 | return NULL; |
1d99702e RD |
4247 | if (_argo0) { |
4248 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4249 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4250 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetBackgroundColour. Expected _wxListCtrl_p."); |
4251 | return NULL; | |
4252 | } | |
4253 | } | |
f6bcfd97 BP |
4254 | { |
4255 | _arg1 = &temp; | |
4256 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 4257 | return NULL; |
f6bcfd97 | 4258 | } |
cf694132 RD |
4259 | { |
4260 | wxPy_BEGIN_ALLOW_THREADS; | |
4261 | wxListCtrl_SetBackgroundColour(_arg0,*_arg1); | |
4262 | ||
4263 | wxPy_END_ALLOW_THREADS; | |
4264 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4265 | _resultobj = Py_None; |
4266 | return _resultobj; | |
4267 | } | |
4268 | ||
4269 | #define wxListCtrl_SetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumn(_swigarg0,_swigarg1)) | |
efc5f224 | 4270 | static PyObject *_wrap_wxListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4271 | PyObject * _resultobj; |
4272 | bool _result; | |
4273 | wxListCtrl * _arg0; | |
4274 | int _arg1; | |
4275 | wxListItem * _arg2; | |
1d99702e RD |
4276 | PyObject * _argo0 = 0; |
4277 | PyObject * _argo2 = 0; | |
efc5f224 | 4278 | char *_kwnames[] = { "self","col","item", NULL }; |
8ab979d7 RD |
4279 | |
4280 | self = self; | |
efc5f224 | 4281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_SetColumn",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 4282 | return NULL; |
1d99702e RD |
4283 | if (_argo0) { |
4284 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4285 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumn. Expected _wxListCtrl_p."); |
4287 | return NULL; | |
4288 | } | |
4289 | } | |
1d99702e RD |
4290 | if (_argo2) { |
4291 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
4292 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
8ab979d7 RD |
4293 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_SetColumn. Expected _wxListItem_p."); |
4294 | return NULL; | |
4295 | } | |
4296 | } | |
cf694132 RD |
4297 | { |
4298 | wxPy_BEGIN_ALLOW_THREADS; | |
4299 | _result = (bool )wxListCtrl_SetColumn(_arg0,_arg1,*_arg2); | |
4300 | ||
4301 | wxPy_END_ALLOW_THREADS; | |
4302 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4303 | return _resultobj; |
4304 | } | |
4305 | ||
4306 | #define wxListCtrl_SetColumnWidth(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnWidth(_swigarg0,_swigarg1)) | |
efc5f224 | 4307 | static PyObject *_wrap_wxListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4308 | PyObject * _resultobj; |
4309 | bool _result; | |
4310 | wxListCtrl * _arg0; | |
4311 | int _arg1; | |
4312 | int _arg2; | |
1d99702e | 4313 | PyObject * _argo0 = 0; |
efc5f224 | 4314 | char *_kwnames[] = { "self","col","width", NULL }; |
8ab979d7 RD |
4315 | |
4316 | self = self; | |
efc5f224 | 4317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_SetColumnWidth",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4318 | return NULL; |
1d99702e RD |
4319 | if (_argo0) { |
4320 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4321 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4322 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumnWidth. Expected _wxListCtrl_p."); |
4323 | return NULL; | |
4324 | } | |
4325 | } | |
cf694132 RD |
4326 | { |
4327 | wxPy_BEGIN_ALLOW_THREADS; | |
4328 | _result = (bool )wxListCtrl_SetColumnWidth(_arg0,_arg1,_arg2); | |
4329 | ||
4330 | wxPy_END_ALLOW_THREADS; | |
4331 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4332 | return _resultobj; |
4333 | } | |
4334 | ||
4335 | #define wxListCtrl_SetImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetImageList(_swigarg0,_swigarg1)) | |
efc5f224 | 4336 | static PyObject *_wrap_wxListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4337 | PyObject * _resultobj; |
4338 | wxListCtrl * _arg0; | |
4339 | wxImageList * _arg1; | |
4340 | int _arg2; | |
1d99702e RD |
4341 | PyObject * _argo0 = 0; |
4342 | PyObject * _argo1 = 0; | |
efc5f224 | 4343 | char *_kwnames[] = { "self","imageList","which", NULL }; |
8ab979d7 RD |
4344 | |
4345 | self = self; | |
efc5f224 | 4346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_SetImageList",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 4347 | return NULL; |
1d99702e RD |
4348 | if (_argo0) { |
4349 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4350 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4351 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetImageList. Expected _wxListCtrl_p."); |
4352 | return NULL; | |
4353 | } | |
4354 | } | |
1d99702e RD |
4355 | if (_argo1) { |
4356 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4357 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
8ab979d7 RD |
4358 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetImageList. Expected _wxImageList_p."); |
4359 | return NULL; | |
4360 | } | |
4361 | } | |
cf694132 RD |
4362 | { |
4363 | wxPy_BEGIN_ALLOW_THREADS; | |
4364 | wxListCtrl_SetImageList(_arg0,_arg1,_arg2); | |
4365 | ||
4366 | wxPy_END_ALLOW_THREADS; | |
4367 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4368 | _resultobj = Py_None; |
4369 | return _resultobj; | |
4370 | } | |
4371 | ||
4372 | #define wxListCtrl_SetItem(_swigobj,_swigarg0) (_swigobj->SetItem(_swigarg0)) | |
efc5f224 | 4373 | static PyObject *_wrap_wxListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4374 | PyObject * _resultobj; |
4375 | bool _result; | |
4376 | wxListCtrl * _arg0; | |
4377 | wxListItem * _arg1; | |
1d99702e RD |
4378 | PyObject * _argo0 = 0; |
4379 | PyObject * _argo1 = 0; | |
efc5f224 | 4380 | char *_kwnames[] = { "self","info", NULL }; |
8ab979d7 RD |
4381 | |
4382 | self = self; | |
efc5f224 | 4383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4384 | return NULL; |
1d99702e RD |
4385 | if (_argo0) { |
4386 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4387 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4388 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItem. Expected _wxListCtrl_p."); |
4389 | return NULL; | |
4390 | } | |
4391 | } | |
1d99702e RD |
4392 | if (_argo1) { |
4393 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4394 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
8ab979d7 RD |
4395 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetItem. Expected _wxListItem_p."); |
4396 | return NULL; | |
4397 | } | |
4398 | } | |
cf694132 RD |
4399 | { |
4400 | wxPy_BEGIN_ALLOW_THREADS; | |
4401 | _result = (bool )wxListCtrl_SetItem(_arg0,*_arg1); | |
4402 | ||
4403 | wxPy_END_ALLOW_THREADS; | |
4404 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4405 | return _resultobj; |
4406 | } | |
4407 | ||
af309447 | 4408 | #define wxListCtrl_SetStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
efc5f224 | 4409 | static PyObject *_wrap_wxListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4410 | PyObject * _resultobj; |
4411 | long _result; | |
4412 | wxListCtrl * _arg0; | |
4413 | long _arg1; | |
4414 | int _arg2; | |
4415 | wxString * _arg3; | |
1d99702e RD |
4416 | int _arg4 = (int ) -1; |
4417 | PyObject * _argo0 = 0; | |
8ab979d7 | 4418 | PyObject * _obj3 = 0; |
efc5f224 | 4419 | char *_kwnames[] = { "self","index","col","label","imageId", NULL }; |
8ab979d7 RD |
4420 | |
4421 | self = self; | |
efc5f224 | 4422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OliO|i:wxListCtrl_SetStringItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) |
8ab979d7 | 4423 | return NULL; |
1d99702e RD |
4424 | if (_argo0) { |
4425 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4426 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
af309447 | 4427 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetStringItem. Expected _wxListCtrl_p."); |
8ab979d7 RD |
4428 | return NULL; |
4429 | } | |
4430 | } | |
4431 | { | |
185d7c3e RD |
4432 | #if PYTHON_API_VERSION >= 1009 |
4433 | char* tmpPtr; int tmpSize; | |
4434 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
4435 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
4436 | return NULL; | |
4437 | } | |
4438 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
4439 | return NULL; | |
4440 | _arg3 = new wxString(tmpPtr, tmpSize); | |
4441 | #else | |
8ab979d7 RD |
4442 | if (!PyString_Check(_obj3)) { |
4443 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4444 | return NULL; | |
4445 | } | |
185d7c3e RD |
4446 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
4447 | #endif | |
8ab979d7 | 4448 | } |
cf694132 RD |
4449 | { |
4450 | wxPy_BEGIN_ALLOW_THREADS; | |
4451 | _result = (long )wxListCtrl_SetStringItem(_arg0,_arg1,_arg2,*_arg3,_arg4); | |
4452 | ||
4453 | wxPy_END_ALLOW_THREADS; | |
4454 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
4455 | { |
4456 | if (_obj3) | |
4457 | delete _arg3; | |
4458 | } | |
4459 | return _resultobj; | |
4460 | } | |
4461 | ||
4462 | #define wxListCtrl_SetItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemData(_swigarg0,_swigarg1)) | |
efc5f224 | 4463 | static PyObject *_wrap_wxListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4464 | PyObject * _resultobj; |
4465 | bool _result; | |
4466 | wxListCtrl * _arg0; | |
4467 | long _arg1; | |
4468 | long _arg2; | |
1d99702e | 4469 | PyObject * _argo0 = 0; |
efc5f224 | 4470 | char *_kwnames[] = { "self","item","data", NULL }; |
8ab979d7 RD |
4471 | |
4472 | self = self; | |
efc5f224 | 4473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_SetItemData",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4474 | return NULL; |
1d99702e RD |
4475 | if (_argo0) { |
4476 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4477 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4478 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemData. Expected _wxListCtrl_p."); |
4479 | return NULL; | |
4480 | } | |
4481 | } | |
cf694132 RD |
4482 | { |
4483 | wxPy_BEGIN_ALLOW_THREADS; | |
4484 | _result = (bool )wxListCtrl_SetItemData(_arg0,_arg1,_arg2); | |
4485 | ||
4486 | wxPy_END_ALLOW_THREADS; | |
4487 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4488 | return _resultobj; |
4489 | } | |
4490 | ||
4491 | #define wxListCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 4492 | static PyObject *_wrap_wxListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4493 | PyObject * _resultobj; |
4494 | bool _result; | |
4495 | wxListCtrl * _arg0; | |
4496 | long _arg1; | |
4497 | int _arg2; | |
4498 | int _arg3; | |
1d99702e | 4499 | PyObject * _argo0 = 0; |
efc5f224 | 4500 | char *_kwnames[] = { "self","item","image","selImage", NULL }; |
8ab979d7 RD |
4501 | |
4502 | self = self; | |
efc5f224 | 4503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olii:wxListCtrl_SetItemImage",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 4504 | return NULL; |
1d99702e RD |
4505 | if (_argo0) { |
4506 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4507 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4508 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemImage. Expected _wxListCtrl_p."); |
4509 | return NULL; | |
4510 | } | |
4511 | } | |
cf694132 RD |
4512 | { |
4513 | wxPy_BEGIN_ALLOW_THREADS; | |
4514 | _result = (bool )wxListCtrl_SetItemImage(_arg0,_arg1,_arg2,_arg3); | |
4515 | ||
4516 | wxPy_END_ALLOW_THREADS; | |
4517 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4518 | return _resultobj; |
4519 | } | |
4520 | ||
4521 | #define wxListCtrl_SetItemPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemPosition(_swigarg0,_swigarg1)) | |
efc5f224 | 4522 | static PyObject *_wrap_wxListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4523 | PyObject * _resultobj; |
4524 | bool _result; | |
4525 | wxListCtrl * _arg0; | |
4526 | long _arg1; | |
4527 | wxPoint * _arg2; | |
1d99702e | 4528 | PyObject * _argo0 = 0; |
2f90df85 RD |
4529 | wxPoint temp; |
4530 | PyObject * _obj2 = 0; | |
efc5f224 | 4531 | char *_kwnames[] = { "self","item","pos", NULL }; |
8ab979d7 RD |
4532 | |
4533 | self = self; | |
2f90df85 | 4534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemPosition",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 4535 | return NULL; |
1d99702e RD |
4536 | if (_argo0) { |
4537 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4538 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4539 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemPosition. Expected _wxListCtrl_p."); |
4540 | return NULL; | |
4541 | } | |
4542 | } | |
2f90df85 RD |
4543 | { |
4544 | _arg2 = &temp; | |
4545 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 4546 | return NULL; |
2f90df85 | 4547 | } |
cf694132 RD |
4548 | { |
4549 | wxPy_BEGIN_ALLOW_THREADS; | |
4550 | _result = (bool )wxListCtrl_SetItemPosition(_arg0,_arg1,*_arg2); | |
4551 | ||
4552 | wxPy_END_ALLOW_THREADS; | |
4553 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4554 | return _resultobj; |
4555 | } | |
4556 | ||
4557 | #define wxListCtrl_SetItemState(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemState(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 4558 | static PyObject *_wrap_wxListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4559 | PyObject * _resultobj; |
4560 | bool _result; | |
4561 | wxListCtrl * _arg0; | |
4562 | long _arg1; | |
4563 | long _arg2; | |
4564 | long _arg3; | |
1d99702e | 4565 | PyObject * _argo0 = 0; |
efc5f224 | 4566 | char *_kwnames[] = { "self","item","state","stateMask", NULL }; |
8ab979d7 RD |
4567 | |
4568 | self = self; | |
efc5f224 | 4569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxListCtrl_SetItemState",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 4570 | return NULL; |
1d99702e RD |
4571 | if (_argo0) { |
4572 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4573 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4574 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemState. Expected _wxListCtrl_p."); |
4575 | return NULL; | |
4576 | } | |
4577 | } | |
cf694132 RD |
4578 | { |
4579 | wxPy_BEGIN_ALLOW_THREADS; | |
4580 | _result = (bool )wxListCtrl_SetItemState(_arg0,_arg1,_arg2,_arg3); | |
4581 | ||
4582 | wxPy_END_ALLOW_THREADS; | |
4583 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4584 | return _resultobj; |
4585 | } | |
4586 | ||
4587 | #define wxListCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) | |
efc5f224 | 4588 | static PyObject *_wrap_wxListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4589 | PyObject * _resultobj; |
4590 | wxListCtrl * _arg0; | |
4591 | long _arg1; | |
4592 | wxString * _arg2; | |
1d99702e | 4593 | PyObject * _argo0 = 0; |
8ab979d7 | 4594 | PyObject * _obj2 = 0; |
efc5f224 | 4595 | char *_kwnames[] = { "self","item","text", NULL }; |
8ab979d7 RD |
4596 | |
4597 | self = self; | |
efc5f224 | 4598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemText",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 4599 | return NULL; |
1d99702e RD |
4600 | if (_argo0) { |
4601 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4602 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemText. Expected _wxListCtrl_p."); |
4604 | return NULL; | |
4605 | } | |
4606 | } | |
4607 | { | |
185d7c3e RD |
4608 | #if PYTHON_API_VERSION >= 1009 |
4609 | char* tmpPtr; int tmpSize; | |
4610 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
4611 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
4612 | return NULL; | |
4613 | } | |
4614 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4615 | return NULL; | |
4616 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4617 | #else | |
8ab979d7 RD |
4618 | if (!PyString_Check(_obj2)) { |
4619 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4620 | return NULL; | |
4621 | } | |
185d7c3e RD |
4622 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
4623 | #endif | |
8ab979d7 | 4624 | } |
cf694132 RD |
4625 | { |
4626 | wxPy_BEGIN_ALLOW_THREADS; | |
4627 | wxListCtrl_SetItemText(_arg0,_arg1,*_arg2); | |
4628 | ||
4629 | wxPy_END_ALLOW_THREADS; | |
4630 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4631 | _resultobj = Py_None; |
4632 | { | |
4633 | if (_obj2) | |
4634 | delete _arg2; | |
4635 | } | |
4636 | return _resultobj; | |
4637 | } | |
4638 | ||
4639 | #define wxListCtrl_SetSingleStyle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSingleStyle(_swigarg0,_swigarg1)) | |
efc5f224 | 4640 | static PyObject *_wrap_wxListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4641 | PyObject * _resultobj; |
4642 | wxListCtrl * _arg0; | |
4643 | long _arg1; | |
1d99702e RD |
4644 | bool _arg2 = (bool ) TRUE; |
4645 | PyObject * _argo0 = 0; | |
4646 | int tempbool2 = (int) TRUE; | |
efc5f224 | 4647 | char *_kwnames[] = { "self","style","add", NULL }; |
8ab979d7 RD |
4648 | |
4649 | self = self; | |
efc5f224 | 4650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_SetSingleStyle",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 4651 | return NULL; |
1d99702e RD |
4652 | if (_argo0) { |
4653 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4654 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4655 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetSingleStyle. Expected _wxListCtrl_p."); |
4656 | return NULL; | |
4657 | } | |
4658 | } | |
4659 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
4660 | { |
4661 | wxPy_BEGIN_ALLOW_THREADS; | |
4662 | wxListCtrl_SetSingleStyle(_arg0,_arg1,_arg2); | |
4663 | ||
4664 | wxPy_END_ALLOW_THREADS; | |
4665 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4666 | _resultobj = Py_None; |
4667 | return _resultobj; | |
4668 | } | |
4669 | ||
8ab979d7 | 4670 | #define wxListCtrl_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) |
efc5f224 | 4671 | static PyObject *_wrap_wxListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4672 | PyObject * _resultobj; |
4673 | wxListCtrl * _arg0; | |
4674 | long _arg1; | |
1d99702e | 4675 | PyObject * _argo0 = 0; |
efc5f224 | 4676 | char *_kwnames[] = { "self","style", NULL }; |
8ab979d7 RD |
4677 | |
4678 | self = self; | |
efc5f224 | 4679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4680 | return NULL; |
1d99702e RD |
4681 | if (_argo0) { |
4682 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4683 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4684 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetWindowStyleFlag. Expected _wxListCtrl_p."); |
4685 | return NULL; | |
4686 | } | |
4687 | } | |
cf694132 RD |
4688 | { |
4689 | wxPy_BEGIN_ALLOW_THREADS; | |
4690 | wxListCtrl_SetWindowStyleFlag(_arg0,_arg1); | |
4691 | ||
4692 | wxPy_END_ALLOW_THREADS; | |
4693 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4694 | _resultobj = Py_None; |
4695 | return _resultobj; | |
4696 | } | |
4697 | ||
dcd38683 RD |
4698 | static bool wxListCtrl_SortItems(wxListCtrl *self,PyObject * func) { |
4699 | if (!PyCallable_Check(func)) | |
4700 | return FALSE; | |
4701 | ||
f6bcfd97 | 4702 | return self->SortItems(wxPyListCtrl_SortItems, (long)func); |
dcd38683 RD |
4703 | } |
4704 | static PyObject *_wrap_wxListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4705 | PyObject * _resultobj; | |
4706 | bool _result; | |
4707 | wxListCtrl * _arg0; | |
4708 | PyObject * _arg1; | |
4709 | PyObject * _argo0 = 0; | |
4710 | PyObject * _obj1 = 0; | |
4711 | char *_kwnames[] = { "self","func", NULL }; | |
4712 | ||
4713 | self = self; | |
4714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SortItems",_kwnames,&_argo0,&_obj1)) | |
4715 | return NULL; | |
4716 | if (_argo0) { | |
4717 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4718 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
4719 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SortItems. Expected _wxListCtrl_p."); | |
4720 | return NULL; | |
4721 | } | |
4722 | } | |
4723 | { | |
4724 | _arg1 = _obj1; | |
4725 | } | |
4726 | { | |
4727 | wxPy_BEGIN_ALLOW_THREADS; | |
4728 | _result = (bool )wxListCtrl_SortItems(_arg0,_arg1); | |
4729 | ||
4730 | wxPy_END_ALLOW_THREADS; | |
4731 | } _resultobj = Py_BuildValue("i",_result); | |
4732 | return _resultobj; | |
4733 | } | |
4734 | ||
d5c9047a | 4735 | #define new_wxTreeItemId() (new wxTreeItemId()) |
efc5f224 | 4736 | static PyObject *_wrap_new_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4737 | PyObject * _resultobj; |
d5c9047a | 4738 | wxTreeItemId * _result; |
efc5f224 | 4739 | char *_kwnames[] = { NULL }; |
d5c9047a | 4740 | char _ptemp[128]; |
8ab979d7 RD |
4741 | |
4742 | self = self; | |
efc5f224 | 4743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxTreeItemId",_kwnames)) |
8ab979d7 | 4744 | return NULL; |
cf694132 RD |
4745 | { |
4746 | wxPy_BEGIN_ALLOW_THREADS; | |
4747 | _result = (wxTreeItemId *)new_wxTreeItemId(); | |
4748 | ||
4749 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
4750 | } if (_result) { |
4751 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
4752 | _resultobj = Py_BuildValue("s",_ptemp); | |
4753 | } else { | |
4754 | Py_INCREF(Py_None); | |
4755 | _resultobj = Py_None; | |
4756 | } | |
8ab979d7 RD |
4757 | return _resultobj; |
4758 | } | |
4759 | ||
d5c9047a | 4760 | #define delete_wxTreeItemId(_swigobj) (delete _swigobj) |
efc5f224 | 4761 | static PyObject *_wrap_delete_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4762 | PyObject * _resultobj; |
d5c9047a | 4763 | wxTreeItemId * _arg0; |
1d99702e | 4764 | PyObject * _argo0 = 0; |
efc5f224 | 4765 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4766 | |
4767 | self = self; | |
efc5f224 | 4768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTreeItemId",_kwnames,&_argo0)) |
8ab979d7 | 4769 | return NULL; |
1d99702e RD |
4770 | if (_argo0) { |
4771 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4772 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
d5c9047a | 4773 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTreeItemId. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
4774 | return NULL; |
4775 | } | |
4776 | } | |
cf694132 RD |
4777 | { |
4778 | wxPy_BEGIN_ALLOW_THREADS; | |
4779 | delete_wxTreeItemId(_arg0); | |
4780 | ||
4781 | wxPy_END_ALLOW_THREADS; | |
4782 | } Py_INCREF(Py_None); | |
d5c9047a | 4783 | _resultobj = Py_None; |
8ab979d7 RD |
4784 | return _resultobj; |
4785 | } | |
4786 | ||
d5c9047a | 4787 | #define wxTreeItemId_IsOk(_swigobj) (_swigobj->IsOk()) |
efc5f224 | 4788 | static PyObject *_wrap_wxTreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4789 | PyObject * _resultobj; |
d5c9047a RD |
4790 | bool _result; |
4791 | wxTreeItemId * _arg0; | |
1d99702e | 4792 | PyObject * _argo0 = 0; |
efc5f224 | 4793 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4794 | |
4795 | self = self; | |
efc5f224 | 4796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemId_IsOk",_kwnames,&_argo0)) |
8ab979d7 | 4797 | return NULL; |
1d99702e RD |
4798 | if (_argo0) { |
4799 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4800 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
d5c9047a | 4801 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId_IsOk. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
4802 | return NULL; |
4803 | } | |
4804 | } | |
cf694132 RD |
4805 | { |
4806 | wxPy_BEGIN_ALLOW_THREADS; | |
4807 | _result = (bool )wxTreeItemId_IsOk(_arg0); | |
4808 | ||
4809 | wxPy_END_ALLOW_THREADS; | |
4810 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4811 | return _resultobj; |
4812 | } | |
4813 | ||
f6bcfd97 | 4814 | static int wxTreeItemId___cmp__(wxTreeItemId *self,wxTreeItemId * other) { |
c368d904 | 4815 | if (! other) return -1; |
f6bcfd97 BP |
4816 | return *self != *other; |
4817 | } | |
4818 | static PyObject *_wrap_wxTreeItemId___cmp__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4819 | PyObject * _resultobj; | |
4820 | int _result; | |
4821 | wxTreeItemId * _arg0; | |
4822 | wxTreeItemId * _arg1; | |
4823 | PyObject * _argo0 = 0; | |
4824 | PyObject * _argo1 = 0; | |
4825 | char *_kwnames[] = { "self","other", NULL }; | |
4826 | ||
4827 | self = self; | |
4828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemId___cmp__",_kwnames,&_argo0,&_argo1)) | |
4829 | return NULL; | |
4830 | if (_argo0) { | |
4831 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4832 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
4833 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
4834 | return NULL; | |
4835 | } | |
4836 | } | |
4837 | if (_argo1) { | |
4838 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4839 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
4840 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
4841 | return NULL; | |
4842 | } | |
4843 | } | |
4844 | { | |
4845 | wxPy_BEGIN_ALLOW_THREADS; | |
4846 | _result = (int )wxTreeItemId___cmp__(_arg0,_arg1); | |
4847 | ||
4848 | wxPy_END_ALLOW_THREADS; | |
4849 | } _resultobj = Py_BuildValue("i",_result); | |
4850 | return _resultobj; | |
4851 | } | |
4852 | ||
cf694132 | 4853 | #define new_wxTreeItemData(_swigarg0) (new wxPyTreeItemData(_swigarg0)) |
efc5f224 | 4854 | static PyObject *_wrap_new_wxTreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4855 | PyObject * _resultobj; |
cf694132 | 4856 | wxPyTreeItemData * _result; |
1d99702e | 4857 | PyObject * _arg0 = (PyObject *) NULL; |
cf694132 | 4858 | PyObject * _obj0 = 0; |
efc5f224 | 4859 | char *_kwnames[] = { "obj", NULL }; |
d5c9047a | 4860 | char _ptemp[128]; |
8ab979d7 RD |
4861 | |
4862 | self = self; | |
efc5f224 | 4863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxTreeItemData",_kwnames,&_obj0)) |
8ab979d7 | 4864 | return NULL; |
cf694132 RD |
4865 | if (_obj0) |
4866 | { | |
4867 | _arg0 = _obj0; | |
4868 | } | |
4869 | { | |
4870 | wxPy_BEGIN_ALLOW_THREADS; | |
4871 | _result = (wxPyTreeItemData *)new_wxTreeItemData(_arg0); | |
4872 | ||
4873 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
4874 | } if (_result) { |
4875 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
4876 | _resultobj = Py_BuildValue("s",_ptemp); | |
4877 | } else { | |
4878 | Py_INCREF(Py_None); | |
4879 | _resultobj = Py_None; | |
4880 | } | |
8ab979d7 RD |
4881 | return _resultobj; |
4882 | } | |
4883 | ||
cf694132 | 4884 | #define wxTreeItemData_GetData(_swigobj) (_swigobj->GetData()) |
efc5f224 | 4885 | static PyObject *_wrap_wxTreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
4886 | PyObject * _resultobj; |
4887 | PyObject * _result; | |
4888 | wxPyTreeItemData * _arg0; | |
1d99702e | 4889 | PyObject * _argo0 = 0; |
efc5f224 | 4890 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
4891 | |
4892 | self = self; | |
efc5f224 | 4893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetData",_kwnames,&_argo0)) |
cf694132 | 4894 | return NULL; |
1d99702e RD |
4895 | if (_argo0) { |
4896 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4897 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 RD |
4898 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetData. Expected _wxPyTreeItemData_p."); |
4899 | return NULL; | |
4900 | } | |
4901 | } | |
4902 | { | |
4903 | wxPy_BEGIN_ALLOW_THREADS; | |
4904 | _result = (PyObject *)wxTreeItemData_GetData(_arg0); | |
4905 | ||
4906 | wxPy_END_ALLOW_THREADS; | |
4907 | }{ | |
4908 | _resultobj = _result; | |
4909 | } | |
4910 | return _resultobj; | |
4911 | } | |
4912 | ||
4913 | #define wxTreeItemData_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
efc5f224 | 4914 | static PyObject *_wrap_wxTreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4915 | PyObject * _resultobj; |
cf694132 RD |
4916 | wxPyTreeItemData * _arg0; |
4917 | PyObject * _arg1; | |
1d99702e | 4918 | PyObject * _argo0 = 0; |
cf694132 | 4919 | PyObject * _obj1 = 0; |
efc5f224 | 4920 | char *_kwnames[] = { "self","obj", NULL }; |
8ab979d7 RD |
4921 | |
4922 | self = self; | |
efc5f224 | 4923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetData",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4924 | return NULL; |
1d99702e RD |
4925 | if (_argo0) { |
4926 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4927 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 4928 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetData. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
4929 | return NULL; |
4930 | } | |
4931 | } | |
cf694132 RD |
4932 | { |
4933 | _arg1 = _obj1; | |
4934 | } | |
4935 | { | |
4936 | wxPy_BEGIN_ALLOW_THREADS; | |
4937 | wxTreeItemData_SetData(_arg0,_arg1); | |
4938 | ||
4939 | wxPy_END_ALLOW_THREADS; | |
4940 | } Py_INCREF(Py_None); | |
d5c9047a | 4941 | _resultobj = Py_None; |
8ab979d7 RD |
4942 | return _resultobj; |
4943 | } | |
4944 | ||
630d84f2 | 4945 | #define wxTreeItemData_GetId(_swigobj) (_swigobj->GetId()) |
efc5f224 | 4946 | static PyObject *_wrap_wxTreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4947 | PyObject * _resultobj; |
d5c9047a | 4948 | wxTreeItemId * _result; |
cf694132 | 4949 | wxPyTreeItemData * _arg0; |
1d99702e | 4950 | PyObject * _argo0 = 0; |
efc5f224 | 4951 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4952 | char _ptemp[128]; |
4953 | ||
4954 | self = self; | |
efc5f224 | 4955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetId",_kwnames,&_argo0)) |
8ab979d7 | 4956 | return NULL; |
1d99702e RD |
4957 | if (_argo0) { |
4958 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4959 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 4960 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetId. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
4961 | return NULL; |
4962 | } | |
4963 | } | |
cf694132 RD |
4964 | { |
4965 | wxPy_BEGIN_ALLOW_THREADS; | |
4966 | const wxTreeItemId & _result_ref = wxTreeItemData_GetId(_arg0); | |
d5c9047a | 4967 | _result = (wxTreeItemId *) &_result_ref; |
cf694132 RD |
4968 | |
4969 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
4970 | } if (_result) { |
4971 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
4972 | _resultobj = Py_BuildValue("s",_ptemp); | |
4973 | } else { | |
4974 | Py_INCREF(Py_None); | |
4975 | _resultobj = Py_None; | |
4976 | } | |
8ab979d7 RD |
4977 | return _resultobj; |
4978 | } | |
4979 | ||
630d84f2 | 4980 | #define wxTreeItemData_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) |
efc5f224 | 4981 | static PyObject *_wrap_wxTreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
630d84f2 | 4982 | PyObject * _resultobj; |
cf694132 | 4983 | wxPyTreeItemData * _arg0; |
630d84f2 | 4984 | wxTreeItemId * _arg1; |
1d99702e RD |
4985 | PyObject * _argo0 = 0; |
4986 | PyObject * _argo1 = 0; | |
efc5f224 | 4987 | char *_kwnames[] = { "self","id", NULL }; |
630d84f2 RD |
4988 | |
4989 | self = self; | |
efc5f224 | 4990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetId",_kwnames,&_argo0,&_argo1)) |
630d84f2 | 4991 | return NULL; |
1d99702e RD |
4992 | if (_argo0) { |
4993 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4994 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 4995 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetId. Expected _wxPyTreeItemData_p."); |
630d84f2 RD |
4996 | return NULL; |
4997 | } | |
4998 | } | |
1d99702e RD |
4999 | if (_argo1) { |
5000 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5001 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
630d84f2 RD |
5002 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemData_SetId. Expected _wxTreeItemId_p."); |
5003 | return NULL; | |
5004 | } | |
5005 | } | |
cf694132 RD |
5006 | { |
5007 | wxPy_BEGIN_ALLOW_THREADS; | |
5008 | wxTreeItemData_SetId(_arg0,*_arg1); | |
5009 | ||
5010 | wxPy_END_ALLOW_THREADS; | |
5011 | } Py_INCREF(Py_None); | |
630d84f2 RD |
5012 | _resultobj = Py_None; |
5013 | return _resultobj; | |
5014 | } | |
5015 | ||
8bf5d46e RD |
5016 | static void *SwigwxTreeEventTowxNotifyEvent(void *ptr) { |
5017 | wxTreeEvent *src; | |
5018 | wxNotifyEvent *dest; | |
5019 | src = (wxTreeEvent *) ptr; | |
5020 | dest = (wxNotifyEvent *) src; | |
5021 | return (void *) dest; | |
5022 | } | |
5023 | ||
8ab979d7 RD |
5024 | static void *SwigwxTreeEventTowxCommandEvent(void *ptr) { |
5025 | wxTreeEvent *src; | |
5026 | wxCommandEvent *dest; | |
5027 | src = (wxTreeEvent *) ptr; | |
5028 | dest = (wxCommandEvent *) src; | |
5029 | return (void *) dest; | |
5030 | } | |
5031 | ||
5032 | static void *SwigwxTreeEventTowxEvent(void *ptr) { | |
5033 | wxTreeEvent *src; | |
5034 | wxEvent *dest; | |
5035 | src = (wxTreeEvent *) ptr; | |
5036 | dest = (wxEvent *) src; | |
5037 | return (void *) dest; | |
5038 | } | |
5039 | ||
d5c9047a | 5040 | #define wxTreeEvent_GetItem(_swigobj) (_swigobj->GetItem()) |
efc5f224 | 5041 | static PyObject *_wrap_wxTreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5042 | PyObject * _resultobj; |
d5c9047a | 5043 | wxTreeItemId * _result; |
8ab979d7 | 5044 | wxTreeEvent * _arg0; |
1d99702e | 5045 | PyObject * _argo0 = 0; |
efc5f224 | 5046 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 5047 | char _ptemp[128]; |
8ab979d7 RD |
5048 | |
5049 | self = self; | |
efc5f224 | 5050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetItem",_kwnames,&_argo0)) |
8ab979d7 | 5051 | return NULL; |
1d99702e RD |
5052 | if (_argo0) { |
5053 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5054 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 5055 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetItem. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
5056 | return NULL; |
5057 | } | |
5058 | } | |
cf694132 RD |
5059 | { |
5060 | wxPy_BEGIN_ALLOW_THREADS; | |
5061 | _result = new wxTreeItemId (wxTreeEvent_GetItem(_arg0)); | |
5062 | ||
5063 | wxPy_END_ALLOW_THREADS; | |
5064 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 5065 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
5066 | return _resultobj; |
5067 | } | |
5068 | ||
d5c9047a | 5069 | #define wxTreeEvent_GetOldItem(_swigobj) (_swigobj->GetOldItem()) |
efc5f224 | 5070 | static PyObject *_wrap_wxTreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5071 | PyObject * _resultobj; |
d5c9047a | 5072 | wxTreeItemId * _result; |
8ab979d7 | 5073 | wxTreeEvent * _arg0; |
1d99702e | 5074 | PyObject * _argo0 = 0; |
efc5f224 | 5075 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5076 | char _ptemp[128]; |
5077 | ||
5078 | self = self; | |
efc5f224 | 5079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetOldItem",_kwnames,&_argo0)) |
8ab979d7 | 5080 | return NULL; |
1d99702e RD |
5081 | if (_argo0) { |
5082 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5083 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 5084 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetOldItem. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
5085 | return NULL; |
5086 | } | |
5087 | } | |
cf694132 RD |
5088 | { |
5089 | wxPy_BEGIN_ALLOW_THREADS; | |
5090 | _result = new wxTreeItemId (wxTreeEvent_GetOldItem(_arg0)); | |
5091 | ||
5092 | wxPy_END_ALLOW_THREADS; | |
5093 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
8ab979d7 RD |
5094 | _resultobj = Py_BuildValue("s",_ptemp); |
5095 | return _resultobj; | |
5096 | } | |
5097 | ||
d5c9047a | 5098 | #define wxTreeEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) |
efc5f224 | 5099 | static PyObject *_wrap_wxTreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5100 | PyObject * _resultobj; |
d5c9047a | 5101 | wxPoint * _result; |
8ab979d7 | 5102 | wxTreeEvent * _arg0; |
1d99702e | 5103 | PyObject * _argo0 = 0; |
efc5f224 | 5104 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 5105 | char _ptemp[128]; |
8ab979d7 RD |
5106 | |
5107 | self = self; | |
efc5f224 | 5108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetPoint",_kwnames,&_argo0)) |
8ab979d7 | 5109 | return NULL; |
1d99702e RD |
5110 | if (_argo0) { |
5111 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5112 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 5113 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetPoint. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
5114 | return NULL; |
5115 | } | |
5116 | } | |
cf694132 RD |
5117 | { |
5118 | wxPy_BEGIN_ALLOW_THREADS; | |
5119 | _result = new wxPoint (wxTreeEvent_GetPoint(_arg0)); | |
5120 | ||
5121 | wxPy_END_ALLOW_THREADS; | |
5122 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
d5c9047a | 5123 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
5124 | return _resultobj; |
5125 | } | |
5126 | ||
d5c9047a | 5127 | #define wxTreeEvent_GetCode(_swigobj) (_swigobj->GetCode()) |
efc5f224 | 5128 | static PyObject *_wrap_wxTreeEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5129 | PyObject * _resultobj; |
d5c9047a | 5130 | int _result; |
8ab979d7 | 5131 | wxTreeEvent * _arg0; |
1d99702e | 5132 | PyObject * _argo0 = 0; |
efc5f224 | 5133 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5134 | |
5135 | self = self; | |
efc5f224 | 5136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetCode",_kwnames,&_argo0)) |
8ab979d7 | 5137 | return NULL; |
1d99702e RD |
5138 | if (_argo0) { |
5139 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5140 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 5141 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetCode. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
5142 | return NULL; |
5143 | } | |
5144 | } | |
cf694132 RD |
5145 | { |
5146 | wxPy_BEGIN_ALLOW_THREADS; | |
5147 | _result = (int )wxTreeEvent_GetCode(_arg0); | |
5148 | ||
5149 | wxPy_END_ALLOW_THREADS; | |
5150 | } _resultobj = Py_BuildValue("i",_result); | |
d5c9047a RD |
5151 | return _resultobj; |
5152 | } | |
5153 | ||
8bf5d46e | 5154 | #define wxTreeEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 5155 | static PyObject *_wrap_wxTreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 5156 | PyObject * _resultobj; |
8bf5d46e | 5157 | wxString * _result; |
d5c9047a | 5158 | wxTreeEvent * _arg0; |
1d99702e | 5159 | PyObject * _argo0 = 0; |
efc5f224 | 5160 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
5161 | |
5162 | self = self; | |
efc5f224 | 5163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetLabel",_kwnames,&_argo0)) |
d5c9047a | 5164 | return NULL; |
1d99702e RD |
5165 | if (_argo0) { |
5166 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5167 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
8bf5d46e | 5168 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetLabel. Expected _wxTreeEvent_p."); |
d5c9047a RD |
5169 | return NULL; |
5170 | } | |
5171 | } | |
cf694132 RD |
5172 | { |
5173 | wxPy_BEGIN_ALLOW_THREADS; | |
8bf5d46e RD |
5174 | const wxString & _result_ref = wxTreeEvent_GetLabel(_arg0); |
5175 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
5176 | |
5177 | wxPy_END_ALLOW_THREADS; | |
8bf5d46e | 5178 | }{ |
eec92d76 | 5179 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8bf5d46e | 5180 | } |
8ab979d7 RD |
5181 | return _resultobj; |
5182 | } | |
5183 | ||
f6bcfd97 BP |
5184 | static void *SwigwxPyTreeCtrlTowxControl(void *ptr) { |
5185 | wxPyTreeCtrl *src; | |
8ab979d7 | 5186 | wxControl *dest; |
f6bcfd97 | 5187 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
5188 | dest = (wxControl *) src; |
5189 | return (void *) dest; | |
5190 | } | |
5191 | ||
f6bcfd97 BP |
5192 | static void *SwigwxPyTreeCtrlTowxWindow(void *ptr) { |
5193 | wxPyTreeCtrl *src; | |
8ab979d7 | 5194 | wxWindow *dest; |
f6bcfd97 | 5195 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
5196 | dest = (wxWindow *) src; |
5197 | return (void *) dest; | |
5198 | } | |
5199 | ||
f6bcfd97 BP |
5200 | static void *SwigwxPyTreeCtrlTowxEvtHandler(void *ptr) { |
5201 | wxPyTreeCtrl *src; | |
8ab979d7 | 5202 | wxEvtHandler *dest; |
f6bcfd97 | 5203 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
5204 | dest = (wxEvtHandler *) src; |
5205 | return (void *) dest; | |
5206 | } | |
5207 | ||
f6bcfd97 | 5208 | #define new_wxTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 5209 | static PyObject *_wrap_new_wxTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5210 | PyObject * _resultobj; |
f6bcfd97 | 5211 | wxPyTreeCtrl * _result; |
8ab979d7 | 5212 | wxWindow * _arg0; |
1d99702e | 5213 | wxWindowID _arg1 = (wxWindowID ) -1; |
e508a2b6 RD |
5214 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
5215 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e | 5216 | long _arg4 = (long ) wxTR_HAS_BUTTONS|wxTR_LINES_AT_ROOT; |
e508a2b6 | 5217 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
5218 | char * _arg6 = (char *) "wxTreeCtrl"; |
5219 | PyObject * _argo0 = 0; | |
2f90df85 RD |
5220 | wxPoint temp; |
5221 | PyObject * _obj2 = 0; | |
5222 | wxSize temp0; | |
5223 | PyObject * _obj3 = 0; | |
1d99702e | 5224 | PyObject * _argo5 = 0; |
efc5f224 | 5225 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
5226 | char _ptemp[128]; |
5227 | ||
5228 | self = self; | |
2f90df85 | 5229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxTreeCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) |
8ab979d7 | 5230 | return NULL; |
1d99702e RD |
5231 | if (_argo0) { |
5232 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5233 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5234 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTreeCtrl. Expected _wxWindow_p."); |
5235 | return NULL; | |
5236 | } | |
5237 | } | |
2f90df85 RD |
5238 | if (_obj2) |
5239 | { | |
5240 | _arg2 = &temp; | |
5241 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 5242 | return NULL; |
2f90df85 RD |
5243 | } |
5244 | if (_obj3) | |
5245 | { | |
5246 | _arg3 = &temp0; | |
5247 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 5248 | return NULL; |
2f90df85 | 5249 | } |
1d99702e RD |
5250 | if (_argo5) { |
5251 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
5252 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
8ab979d7 RD |
5253 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxTreeCtrl. Expected _wxValidator_p."); |
5254 | return NULL; | |
5255 | } | |
5256 | } | |
cf694132 RD |
5257 | { |
5258 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 5259 | _result = (wxPyTreeCtrl *)new_wxTreeCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); |
cf694132 RD |
5260 | |
5261 | wxPy_END_ALLOW_THREADS; | |
1d99702e | 5262 | } if (_result) { |
f6bcfd97 | 5263 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p"); |
1d99702e RD |
5264 | _resultobj = Py_BuildValue("s",_ptemp); |
5265 | } else { | |
5266 | Py_INCREF(Py_None); | |
5267 | _resultobj = Py_None; | |
5268 | } | |
8ab979d7 RD |
5269 | return _resultobj; |
5270 | } | |
5271 | ||
f6bcfd97 BP |
5272 | #define wxTreeCtrl__setSelf(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setSelf(_swigarg0,_swigarg1)) |
5273 | static PyObject *_wrap_wxTreeCtrl__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5274 | PyObject * _resultobj; | |
5275 | wxPyTreeCtrl * _arg0; | |
5276 | PyObject * _arg1; | |
5277 | PyObject * _arg2; | |
5278 | PyObject * _argo0 = 0; | |
5279 | PyObject * _obj1 = 0; | |
5280 | PyObject * _obj2 = 0; | |
5281 | char *_kwnames[] = { "self","self","_class", NULL }; | |
5282 | ||
5283 | self = self; | |
5284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl__setSelf",_kwnames,&_argo0,&_obj1,&_obj2)) | |
5285 | return NULL; | |
5286 | if (_argo0) { | |
5287 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5288 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
5289 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl__setSelf. Expected _wxPyTreeCtrl_p."); | |
5290 | return NULL; | |
5291 | } | |
5292 | } | |
5293 | { | |
5294 | _arg1 = _obj1; | |
5295 | } | |
5296 | { | |
5297 | _arg2 = _obj2; | |
5298 | } | |
5299 | { | |
5300 | wxPy_BEGIN_ALLOW_THREADS; | |
5301 | wxTreeCtrl__setSelf(_arg0,_arg1,_arg2); | |
5302 | ||
5303 | wxPy_END_ALLOW_THREADS; | |
5304 | } Py_INCREF(Py_None); | |
5305 | _resultobj = Py_None; | |
5306 | return _resultobj; | |
5307 | } | |
5308 | ||
1b62f00d RD |
5309 | #define wxTreeCtrl_AssignImageList(_swigobj,_swigarg0) (_swigobj->AssignImageList(_swigarg0)) |
5310 | static PyObject *_wrap_wxTreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5311 | PyObject * _resultobj; | |
5312 | wxPyTreeCtrl * _arg0; | |
5313 | wxImageList * _arg1; | |
5314 | PyObject * _argo0 = 0; | |
5315 | PyObject * _argo1 = 0; | |
5316 | char *_kwnames[] = { "self","imageList", NULL }; | |
5317 | ||
5318 | self = self; | |
5319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignImageList",_kwnames,&_argo0,&_argo1)) | |
5320 | return NULL; | |
5321 | if (_argo0) { | |
5322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
5324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignImageList. Expected _wxPyTreeCtrl_p."); | |
5325 | return NULL; | |
5326 | } | |
5327 | } | |
5328 | if (_argo1) { | |
5329 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5330 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
5331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignImageList. Expected _wxImageList_p."); | |
5332 | return NULL; | |
5333 | } | |
5334 | } | |
5335 | { | |
5336 | wxPy_BEGIN_ALLOW_THREADS; | |
5337 | wxTreeCtrl_AssignImageList(_arg0,_arg1); | |
5338 | ||
5339 | wxPy_END_ALLOW_THREADS; | |
5340 | } Py_INCREF(Py_None); | |
5341 | _resultobj = Py_None; | |
5342 | return _resultobj; | |
5343 | } | |
5344 | ||
d5c9047a | 5345 | #define wxTreeCtrl_GetCount(_swigobj) (_swigobj->GetCount()) |
efc5f224 | 5346 | static PyObject *_wrap_wxTreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5347 | PyObject * _resultobj; |
c127177f | 5348 | size_t _result; |
f6bcfd97 | 5349 | wxPyTreeCtrl * _arg0; |
1d99702e | 5350 | PyObject * _argo0 = 0; |
efc5f224 | 5351 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5352 | |
5353 | self = self; | |
efc5f224 | 5354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetCount",_kwnames,&_argo0)) |
8ab979d7 | 5355 | return NULL; |
1d99702e RD |
5356 | if (_argo0) { |
5357 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5358 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5359 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetCount. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5360 | return NULL; |
5361 | } | |
5362 | } | |
cf694132 RD |
5363 | { |
5364 | wxPy_BEGIN_ALLOW_THREADS; | |
c127177f | 5365 | _result = (size_t )wxTreeCtrl_GetCount(_arg0); |
cf694132 RD |
5366 | |
5367 | wxPy_END_ALLOW_THREADS; | |
c127177f | 5368 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5369 | return _resultobj; |
5370 | } | |
5371 | ||
d5c9047a | 5372 | #define wxTreeCtrl_GetIndent(_swigobj) (_swigobj->GetIndent()) |
efc5f224 | 5373 | static PyObject *_wrap_wxTreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5374 | PyObject * _resultobj; |
d5c9047a | 5375 | unsigned int _result; |
f6bcfd97 | 5376 | wxPyTreeCtrl * _arg0; |
1d99702e | 5377 | PyObject * _argo0 = 0; |
efc5f224 | 5378 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5379 | |
5380 | self = self; | |
efc5f224 | 5381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetIndent",_kwnames,&_argo0)) |
8ab979d7 | 5382 | return NULL; |
1d99702e RD |
5383 | if (_argo0) { |
5384 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5385 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetIndent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5387 | return NULL; |
5388 | } | |
5389 | } | |
cf694132 RD |
5390 | { |
5391 | wxPy_BEGIN_ALLOW_THREADS; | |
5392 | _result = (unsigned int )wxTreeCtrl_GetIndent(_arg0); | |
5393 | ||
5394 | wxPy_END_ALLOW_THREADS; | |
5395 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5396 | return _resultobj; |
5397 | } | |
5398 | ||
d5c9047a | 5399 | #define wxTreeCtrl_SetIndent(_swigobj,_swigarg0) (_swigobj->SetIndent(_swigarg0)) |
efc5f224 | 5400 | static PyObject *_wrap_wxTreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5401 | PyObject * _resultobj; |
f6bcfd97 | 5402 | wxPyTreeCtrl * _arg0; |
d5c9047a | 5403 | unsigned int _arg1; |
1d99702e | 5404 | PyObject * _argo0 = 0; |
efc5f224 | 5405 | char *_kwnames[] = { "self","indent", NULL }; |
8ab979d7 RD |
5406 | |
5407 | self = self; | |
efc5f224 | 5408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetIndent",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5409 | return NULL; |
1d99702e RD |
5410 | if (_argo0) { |
5411 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5412 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5413 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetIndent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5414 | return NULL; |
5415 | } | |
5416 | } | |
cf694132 RD |
5417 | { |
5418 | wxPy_BEGIN_ALLOW_THREADS; | |
5419 | wxTreeCtrl_SetIndent(_arg0,_arg1); | |
5420 | ||
5421 | wxPy_END_ALLOW_THREADS; | |
5422 | } Py_INCREF(Py_None); | |
d5c9047a | 5423 | _resultobj = Py_None; |
8ab979d7 RD |
5424 | return _resultobj; |
5425 | } | |
5426 | ||
d5c9047a | 5427 | #define wxTreeCtrl_GetImageList(_swigobj) (_swigobj->GetImageList()) |
efc5f224 | 5428 | static PyObject *_wrap_wxTreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5429 | PyObject * _resultobj; |
d5c9047a | 5430 | wxImageList * _result; |
f6bcfd97 | 5431 | wxPyTreeCtrl * _arg0; |
1d99702e | 5432 | PyObject * _argo0 = 0; |
efc5f224 | 5433 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 5434 | char _ptemp[128]; |
8ab979d7 RD |
5435 | |
5436 | self = self; | |
efc5f224 | 5437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetImageList",_kwnames,&_argo0)) |
8ab979d7 | 5438 | return NULL; |
1d99702e RD |
5439 | if (_argo0) { |
5440 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5441 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5442 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5443 | return NULL; |
5444 | } | |
5445 | } | |
cf694132 RD |
5446 | { |
5447 | wxPy_BEGIN_ALLOW_THREADS; | |
5448 | _result = (wxImageList *)wxTreeCtrl_GetImageList(_arg0); | |
5449 | ||
5450 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
5451 | } if (_result) { |
5452 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p"); | |
5453 | _resultobj = Py_BuildValue("s",_ptemp); | |
5454 | } else { | |
5455 | Py_INCREF(Py_None); | |
5456 | _resultobj = Py_None; | |
5457 | } | |
8ab979d7 RD |
5458 | return _resultobj; |
5459 | } | |
5460 | ||
d5c9047a | 5461 | #define wxTreeCtrl_GetStateImageList(_swigobj) (_swigobj->GetStateImageList()) |
efc5f224 | 5462 | static PyObject *_wrap_wxTreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5463 | PyObject * _resultobj; |
d5c9047a | 5464 | wxImageList * _result; |
f6bcfd97 | 5465 | wxPyTreeCtrl * _arg0; |
1d99702e | 5466 | PyObject * _argo0 = 0; |
efc5f224 | 5467 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 5468 | char _ptemp[128]; |
8ab979d7 RD |
5469 | |
5470 | self = self; | |
efc5f224 | 5471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetStateImageList",_kwnames,&_argo0)) |
8ab979d7 | 5472 | return NULL; |
1d99702e RD |
5473 | if (_argo0) { |
5474 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5475 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5476 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetStateImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5477 | return NULL; |
5478 | } | |
5479 | } | |
cf694132 RD |
5480 | { |
5481 | wxPy_BEGIN_ALLOW_THREADS; | |
5482 | _result = (wxImageList *)wxTreeCtrl_GetStateImageList(_arg0); | |
5483 | ||
5484 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
5485 | } if (_result) { |
5486 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p"); | |
5487 | _resultobj = Py_BuildValue("s",_ptemp); | |
5488 | } else { | |
5489 | Py_INCREF(Py_None); | |
5490 | _resultobj = Py_None; | |
5491 | } | |
8ab979d7 RD |
5492 | return _resultobj; |
5493 | } | |
5494 | ||
d5c9047a | 5495 | #define wxTreeCtrl_SetImageList(_swigobj,_swigarg0) (_swigobj->SetImageList(_swigarg0)) |
efc5f224 | 5496 | static PyObject *_wrap_wxTreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5497 | PyObject * _resultobj; |
f6bcfd97 | 5498 | wxPyTreeCtrl * _arg0; |
d5c9047a | 5499 | wxImageList * _arg1; |
1d99702e RD |
5500 | PyObject * _argo0 = 0; |
5501 | PyObject * _argo1 = 0; | |
efc5f224 | 5502 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
5503 | |
5504 | self = self; | |
efc5f224 | 5505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 5506 | return NULL; |
1d99702e RD |
5507 | if (_argo0) { |
5508 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5509 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5510 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5511 | return NULL; |
5512 | } | |
5513 | } | |
1d99702e RD |
5514 | if (_argo1) { |
5515 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5516 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
d5c9047a RD |
5517 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetImageList. Expected _wxImageList_p."); |
5518 | return NULL; | |
5519 | } | |
5520 | } | |
cf694132 RD |
5521 | { |
5522 | wxPy_BEGIN_ALLOW_THREADS; | |
5523 | wxTreeCtrl_SetImageList(_arg0,_arg1); | |
5524 | ||
5525 | wxPy_END_ALLOW_THREADS; | |
5526 | } Py_INCREF(Py_None); | |
d5c9047a | 5527 | _resultobj = Py_None; |
8ab979d7 RD |
5528 | return _resultobj; |
5529 | } | |
5530 | ||
d5c9047a | 5531 | #define wxTreeCtrl_SetStateImageList(_swigobj,_swigarg0) (_swigobj->SetStateImageList(_swigarg0)) |
efc5f224 | 5532 | static PyObject *_wrap_wxTreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5533 | PyObject * _resultobj; |
f6bcfd97 | 5534 | wxPyTreeCtrl * _arg0; |
d5c9047a | 5535 | wxImageList * _arg1; |
1d99702e RD |
5536 | PyObject * _argo0 = 0; |
5537 | PyObject * _argo1 = 0; | |
efc5f224 | 5538 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
5539 | |
5540 | self = self; | |
efc5f224 | 5541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetStateImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 5542 | return NULL; |
1d99702e RD |
5543 | if (_argo0) { |
5544 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5545 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5546 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetStateImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5547 | return NULL; |
5548 | } | |
5549 | } | |
1d99702e RD |
5550 | if (_argo1) { |
5551 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5552 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
d5c9047a RD |
5553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetStateImageList. Expected _wxImageList_p."); |
5554 | return NULL; | |
5555 | } | |
5556 | } | |
cf694132 RD |
5557 | { |
5558 | wxPy_BEGIN_ALLOW_THREADS; | |
5559 | wxTreeCtrl_SetStateImageList(_arg0,_arg1); | |
5560 | ||
5561 | wxPy_END_ALLOW_THREADS; | |
5562 | } Py_INCREF(Py_None); | |
d5c9047a | 5563 | _resultobj = Py_None; |
8ab979d7 RD |
5564 | return _resultobj; |
5565 | } | |
5566 | ||
b1462dfa RD |
5567 | #define wxTreeCtrl_GetSpacing(_swigobj) (_swigobj->GetSpacing()) |
5568 | static PyObject *_wrap_wxTreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5569 | PyObject * _resultobj; | |
5570 | unsigned int _result; | |
f6bcfd97 | 5571 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
5572 | PyObject * _argo0 = 0; |
5573 | char *_kwnames[] = { "self", NULL }; | |
5574 | ||
5575 | self = self; | |
5576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSpacing",_kwnames,&_argo0)) | |
5577 | return NULL; | |
5578 | if (_argo0) { | |
5579 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5580 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5581 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSpacing. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
5582 | return NULL; |
5583 | } | |
5584 | } | |
5585 | { | |
5586 | wxPy_BEGIN_ALLOW_THREADS; | |
5587 | _result = (unsigned int )wxTreeCtrl_GetSpacing(_arg0); | |
5588 | ||
5589 | wxPy_END_ALLOW_THREADS; | |
5590 | } _resultobj = Py_BuildValue("i",_result); | |
5591 | return _resultobj; | |
5592 | } | |
5593 | ||
5594 | #define wxTreeCtrl_SetSpacing(_swigobj,_swigarg0) (_swigobj->SetSpacing(_swigarg0)) | |
5595 | static PyObject *_wrap_wxTreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5596 | PyObject * _resultobj; | |
f6bcfd97 | 5597 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
5598 | unsigned int _arg1; |
5599 | PyObject * _argo0 = 0; | |
5600 | char *_kwnames[] = { "self","spacing", NULL }; | |
5601 | ||
5602 | self = self; | |
5603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetSpacing",_kwnames,&_argo0,&_arg1)) | |
5604 | return NULL; | |
5605 | if (_argo0) { | |
5606 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5607 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5608 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetSpacing. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
5609 | return NULL; |
5610 | } | |
5611 | } | |
5612 | { | |
5613 | wxPy_BEGIN_ALLOW_THREADS; | |
5614 | wxTreeCtrl_SetSpacing(_arg0,_arg1); | |
5615 | ||
5616 | wxPy_END_ALLOW_THREADS; | |
5617 | } Py_INCREF(Py_None); | |
5618 | _resultobj = Py_None; | |
5619 | return _resultobj; | |
5620 | } | |
5621 | ||
d5c9047a | 5622 | #define wxTreeCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) |
efc5f224 | 5623 | static PyObject *_wrap_wxTreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5624 | PyObject * _resultobj; |
d5c9047a | 5625 | wxString * _result; |
f6bcfd97 | 5626 | wxPyTreeCtrl * _arg0; |
d5c9047a | 5627 | wxTreeItemId * _arg1; |
1d99702e RD |
5628 | PyObject * _argo0 = 0; |
5629 | PyObject * _argo1 = 0; | |
efc5f224 | 5630 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
5631 | |
5632 | self = self; | |
efc5f224 | 5633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemText",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 5634 | return NULL; |
1d99702e RD |
5635 | if (_argo0) { |
5636 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5637 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5638 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemText. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5639 | return NULL; |
5640 | } | |
5641 | } | |
1d99702e RD |
5642 | if (_argo1) { |
5643 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5644 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5645 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemText. Expected _wxTreeItemId_p."); |
5646 | return NULL; | |
5647 | } | |
5648 | } | |
d5c9047a | 5649 | { |
cf694132 RD |
5650 | wxPy_BEGIN_ALLOW_THREADS; |
5651 | _result = new wxString (wxTreeCtrl_GetItemText(_arg0,*_arg1)); | |
5652 | ||
5653 | wxPy_END_ALLOW_THREADS; | |
5654 | }{ | |
eec92d76 | 5655 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
d5c9047a RD |
5656 | } |
5657 | { | |
5658 | delete _result; | |
5659 | } | |
8ab979d7 RD |
5660 | return _resultobj; |
5661 | } | |
5662 | ||
694759cf | 5663 | #define wxTreeCtrl_GetItemImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemImage(_swigarg0,_swigarg1)) |
efc5f224 | 5664 | static PyObject *_wrap_wxTreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5665 | PyObject * _resultobj; |
d5c9047a | 5666 | int _result; |
f6bcfd97 | 5667 | wxPyTreeCtrl * _arg0; |
d5c9047a | 5668 | wxTreeItemId * _arg1; |
694759cf | 5669 | wxTreeItemIcon _arg2 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); |
1d99702e RD |
5670 | PyObject * _argo0 = 0; |
5671 | PyObject * _argo1 = 0; | |
694759cf | 5672 | char *_kwnames[] = { "self","item","which", NULL }; |
8ab979d7 RD |
5673 | |
5674 | self = self; | |
694759cf | 5675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetItemImage",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 5676 | return NULL; |
1d99702e RD |
5677 | if (_argo0) { |
5678 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5679 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5680 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5681 | return NULL; |
5682 | } | |
5683 | } | |
1d99702e RD |
5684 | if (_argo1) { |
5685 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5686 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5687 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemImage. Expected _wxTreeItemId_p."); |
5688 | return NULL; | |
5689 | } | |
5690 | } | |
cf694132 RD |
5691 | { |
5692 | wxPy_BEGIN_ALLOW_THREADS; | |
694759cf | 5693 | _result = (int )wxTreeCtrl_GetItemImage(_arg0,*_arg1,_arg2); |
cf694132 RD |
5694 | |
5695 | wxPy_END_ALLOW_THREADS; | |
5696 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5697 | return _resultobj; |
5698 | } | |
5699 | ||
d5c9047a | 5700 | #define wxTreeCtrl_GetItemSelectedImage(_swigobj,_swigarg0) (_swigobj->GetItemSelectedImage(_swigarg0)) |
efc5f224 | 5701 | static PyObject *_wrap_wxTreeCtrl_GetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5702 | PyObject * _resultobj; |
d5c9047a | 5703 | int _result; |
f6bcfd97 | 5704 | wxPyTreeCtrl * _arg0; |
d5c9047a | 5705 | wxTreeItemId * _arg1; |
1d99702e RD |
5706 | PyObject * _argo0 = 0; |
5707 | PyObject * _argo1 = 0; | |
efc5f224 | 5708 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
5709 | |
5710 | self = self; | |
efc5f224 | 5711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemSelectedImage",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 5712 | return NULL; |
1d99702e RD |
5713 | if (_argo0) { |
5714 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5715 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5717 | return NULL; |
5718 | } | |
5719 | } | |
1d99702e RD |
5720 | if (_argo1) { |
5721 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5722 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5723 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemSelectedImage. Expected _wxTreeItemId_p."); |
5724 | return NULL; | |
5725 | } | |
5726 | } | |
cf694132 RD |
5727 | { |
5728 | wxPy_BEGIN_ALLOW_THREADS; | |
5729 | _result = (int )wxTreeCtrl_GetItemSelectedImage(_arg0,*_arg1); | |
8ab979d7 | 5730 | |
cf694132 RD |
5731 | wxPy_END_ALLOW_THREADS; |
5732 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5733 | return _resultobj; |
5734 | } | |
5735 | ||
d5c9047a | 5736 | #define wxTreeCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) |
efc5f224 | 5737 | static PyObject *_wrap_wxTreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5738 | PyObject * _resultobj; |
f6bcfd97 | 5739 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
5740 | wxTreeItemId * _arg1; |
5741 | wxString * _arg2; | |
1d99702e RD |
5742 | PyObject * _argo0 = 0; |
5743 | PyObject * _argo1 = 0; | |
d5c9047a | 5744 | PyObject * _obj2 = 0; |
efc5f224 | 5745 | char *_kwnames[] = { "self","item","text", NULL }; |
8ab979d7 RD |
5746 | |
5747 | self = self; | |
efc5f224 | 5748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemText",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 5749 | return NULL; |
1d99702e RD |
5750 | if (_argo0) { |
5751 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5752 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5753 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemText. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5754 | return NULL; |
5755 | } | |
5756 | } | |
1d99702e RD |
5757 | if (_argo1) { |
5758 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5759 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5760 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemText. Expected _wxTreeItemId_p."); |
5761 | return NULL; | |
5762 | } | |
5763 | } | |
5764 | { | |
185d7c3e RD |
5765 | #if PYTHON_API_VERSION >= 1009 |
5766 | char* tmpPtr; int tmpSize; | |
5767 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
5768 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
5769 | return NULL; | |
5770 | } | |
5771 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
5772 | return NULL; | |
5773 | _arg2 = new wxString(tmpPtr, tmpSize); | |
5774 | #else | |
d5c9047a RD |
5775 | if (!PyString_Check(_obj2)) { |
5776 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5777 | return NULL; | |
5778 | } | |
185d7c3e RD |
5779 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
5780 | #endif | |
d5c9047a | 5781 | } |
cf694132 RD |
5782 | { |
5783 | wxPy_BEGIN_ALLOW_THREADS; | |
5784 | wxTreeCtrl_SetItemText(_arg0,*_arg1,*_arg2); | |
5785 | ||
5786 | wxPy_END_ALLOW_THREADS; | |
5787 | } Py_INCREF(Py_None); | |
d5c9047a RD |
5788 | _resultobj = Py_None; |
5789 | { | |
5790 | if (_obj2) | |
5791 | delete _arg2; | |
5792 | } | |
8ab979d7 RD |
5793 | return _resultobj; |
5794 | } | |
5795 | ||
694759cf | 5796 | #define wxTreeCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 5797 | static PyObject *_wrap_wxTreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5798 | PyObject * _resultobj; |
f6bcfd97 | 5799 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
5800 | wxTreeItemId * _arg1; |
5801 | int _arg2; | |
694759cf | 5802 | wxTreeItemIcon _arg3 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); |
1d99702e RD |
5803 | PyObject * _argo0 = 0; |
5804 | PyObject * _argo1 = 0; | |
694759cf | 5805 | char *_kwnames[] = { "self","item","image","which", NULL }; |
8ab979d7 RD |
5806 | |
5807 | self = self; | |
694759cf | 5808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|i:wxTreeCtrl_SetItemImage",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8ab979d7 | 5809 | return NULL; |
1d99702e RD |
5810 | if (_argo0) { |
5811 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5812 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5813 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5814 | return NULL; |
5815 | } | |
5816 | } | |
1d99702e RD |
5817 | if (_argo1) { |
5818 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5819 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5820 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemImage. Expected _wxTreeItemId_p."); |
5821 | return NULL; | |
5822 | } | |
5823 | } | |
cf694132 RD |
5824 | { |
5825 | wxPy_BEGIN_ALLOW_THREADS; | |
694759cf | 5826 | wxTreeCtrl_SetItemImage(_arg0,*_arg1,_arg2,_arg3); |
cf694132 RD |
5827 | |
5828 | wxPy_END_ALLOW_THREADS; | |
5829 | } Py_INCREF(Py_None); | |
d5c9047a | 5830 | _resultobj = Py_None; |
8ab979d7 RD |
5831 | return _resultobj; |
5832 | } | |
5833 | ||
d5c9047a | 5834 | #define wxTreeCtrl_SetItemSelectedImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemSelectedImage(_swigarg0,_swigarg1)) |
efc5f224 | 5835 | static PyObject *_wrap_wxTreeCtrl_SetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5836 | PyObject * _resultobj; |
f6bcfd97 | 5837 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
5838 | wxTreeItemId * _arg1; |
5839 | int _arg2; | |
1d99702e RD |
5840 | PyObject * _argo0 = 0; |
5841 | PyObject * _argo1 = 0; | |
efc5f224 | 5842 | char *_kwnames[] = { "self","item","image", NULL }; |
8ab979d7 RD |
5843 | |
5844 | self = self; | |
efc5f224 | 5845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxTreeCtrl_SetItemSelectedImage",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 5846 | return NULL; |
1d99702e RD |
5847 | if (_argo0) { |
5848 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5849 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5850 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5851 | return NULL; |
5852 | } | |
5853 | } | |
1d99702e RD |
5854 | if (_argo1) { |
5855 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5856 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5857 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemSelectedImage. Expected _wxTreeItemId_p."); |
5858 | return NULL; | |
5859 | } | |
5860 | } | |
cf694132 RD |
5861 | { |
5862 | wxPy_BEGIN_ALLOW_THREADS; | |
5863 | wxTreeCtrl_SetItemSelectedImage(_arg0,*_arg1,_arg2); | |
5864 | ||
5865 | wxPy_END_ALLOW_THREADS; | |
5866 | } Py_INCREF(Py_None); | |
5867 | _resultobj = Py_None; | |
5868 | return _resultobj; | |
5869 | } | |
5870 | ||
5871 | #define wxTreeCtrl_SetItemHasChildren(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemHasChildren(_swigarg0,_swigarg1)) | |
efc5f224 | 5872 | static PyObject *_wrap_wxTreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 | 5873 | PyObject * _resultobj; |
f6bcfd97 | 5874 | wxPyTreeCtrl * _arg0; |
cf694132 | 5875 | wxTreeItemId * _arg1; |
1d99702e RD |
5876 | bool _arg2 = (bool ) TRUE; |
5877 | PyObject * _argo0 = 0; | |
5878 | PyObject * _argo1 = 0; | |
5879 | int tempbool2 = (int) TRUE; | |
efc5f224 | 5880 | char *_kwnames[] = { "self","item","hasChildren", NULL }; |
cf694132 RD |
5881 | |
5882 | self = self; | |
efc5f224 | 5883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemHasChildren",_kwnames,&_argo0,&_argo1,&tempbool2)) |
cf694132 | 5884 | return NULL; |
1d99702e RD |
5885 | if (_argo0) { |
5886 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5887 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5888 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
5889 | return NULL; |
5890 | } | |
5891 | } | |
1d99702e RD |
5892 | if (_argo1) { |
5893 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5894 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
5895 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemHasChildren. Expected _wxTreeItemId_p."); |
5896 | return NULL; | |
5897 | } | |
5898 | } | |
5899 | _arg2 = (bool ) tempbool2; | |
5900 | { | |
5901 | wxPy_BEGIN_ALLOW_THREADS; | |
5902 | wxTreeCtrl_SetItemHasChildren(_arg0,*_arg1,_arg2); | |
5903 | ||
5904 | wxPy_END_ALLOW_THREADS; | |
5905 | } Py_INCREF(Py_None); | |
d5c9047a | 5906 | _resultobj = Py_None; |
8ab979d7 RD |
5907 | return _resultobj; |
5908 | } | |
5909 | ||
f6bcfd97 | 5910 | static wxPyTreeItemData * wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item) { |
cf694132 RD |
5911 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
5912 | if (data == NULL) { | |
5913 | data = new wxPyTreeItemData(); | |
f6bcfd97 | 5914 | data->SetId(item); // set the id |
cf694132 RD |
5915 | self->SetItemData(item, data); |
5916 | } | |
5917 | return data; | |
5918 | } | |
efc5f224 | 5919 | static PyObject *_wrap_wxTreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
5920 | PyObject * _resultobj; |
5921 | wxPyTreeItemData * _result; | |
f6bcfd97 | 5922 | wxPyTreeCtrl * _arg0; |
cf694132 | 5923 | wxTreeItemId * _arg1; |
1d99702e RD |
5924 | PyObject * _argo0 = 0; |
5925 | PyObject * _argo1 = 0; | |
efc5f224 | 5926 | char *_kwnames[] = { "self","item", NULL }; |
cf694132 RD |
5927 | char _ptemp[128]; |
5928 | ||
5929 | self = self; | |
efc5f224 | 5930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemData",_kwnames,&_argo0,&_argo1)) |
cf694132 | 5931 | return NULL; |
1d99702e RD |
5932 | if (_argo0) { |
5933 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5934 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5935 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemData. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
5936 | return NULL; |
5937 | } | |
5938 | } | |
1d99702e RD |
5939 | if (_argo1) { |
5940 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5941 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
5942 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemData. Expected _wxTreeItemId_p."); |
5943 | return NULL; | |
5944 | } | |
5945 | } | |
5946 | { | |
5947 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 5948 | _result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(_arg0,*_arg1); |
cf694132 RD |
5949 | |
5950 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
5951 | } if (_result) { |
5952 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
5953 | _resultobj = Py_BuildValue("s",_ptemp); | |
5954 | } else { | |
5955 | Py_INCREF(Py_None); | |
5956 | _resultobj = Py_None; | |
5957 | } | |
cf694132 RD |
5958 | return _resultobj; |
5959 | } | |
5960 | ||
f6bcfd97 BP |
5961 | static void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item,wxPyTreeItemData * data) { |
5962 | data->SetId(item); // set the id | |
5963 | self->SetItemData(item, data); | |
c368d904 | 5964 | } |
efc5f224 | 5965 | static PyObject *_wrap_wxTreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5966 | PyObject * _resultobj; |
f6bcfd97 | 5967 | wxPyTreeCtrl * _arg0; |
d5c9047a | 5968 | wxTreeItemId * _arg1; |
cf694132 | 5969 | wxPyTreeItemData * _arg2; |
1d99702e RD |
5970 | PyObject * _argo0 = 0; |
5971 | PyObject * _argo1 = 0; | |
5972 | PyObject * _argo2 = 0; | |
efc5f224 | 5973 | char *_kwnames[] = { "self","item","data", NULL }; |
8ab979d7 RD |
5974 | |
5975 | self = self; | |
efc5f224 | 5976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemData",_kwnames,&_argo0,&_argo1,&_argo2)) |
8ab979d7 | 5977 | return NULL; |
1d99702e RD |
5978 | if (_argo0) { |
5979 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5980 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5981 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemData. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5982 | return NULL; |
5983 | } | |
5984 | } | |
1d99702e RD |
5985 | if (_argo1) { |
5986 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5987 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5988 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemData. Expected _wxTreeItemId_p."); |
5989 | return NULL; | |
5990 | } | |
5991 | } | |
1d99702e RD |
5992 | if (_argo2) { |
5993 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
5994 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyTreeItemData_p")) { | |
cf694132 | 5995 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemData. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
5996 | return NULL; |
5997 | } | |
5998 | } | |
cf694132 RD |
5999 | { |
6000 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 6001 | wxPyTreeCtrl_SetItemData(_arg0,*_arg1,_arg2); |
cf694132 RD |
6002 | |
6003 | wxPy_END_ALLOW_THREADS; | |
6004 | } Py_INCREF(Py_None); | |
d5c9047a | 6005 | _resultobj = Py_None; |
8ab979d7 RD |
6006 | return _resultobj; |
6007 | } | |
6008 | ||
f6bcfd97 | 6009 | static PyObject * wxPyTreeCtrl_GetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item) { |
cf694132 RD |
6010 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
6011 | if (data == NULL) { | |
6012 | data = new wxPyTreeItemData(); | |
f6bcfd97 | 6013 | data->SetId(item); // set the id |
cf694132 RD |
6014 | self->SetItemData(item, data); |
6015 | } | |
6016 | return data->GetData(); | |
c368d904 | 6017 | } |
efc5f224 | 6018 | static PyObject *_wrap_wxTreeCtrl_GetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 | 6019 | PyObject * _resultobj; |
cf694132 | 6020 | PyObject * _result; |
f6bcfd97 | 6021 | wxPyTreeCtrl * _arg0; |
08127323 | 6022 | wxTreeItemId * _arg1; |
1d99702e RD |
6023 | PyObject * _argo0 = 0; |
6024 | PyObject * _argo1 = 0; | |
efc5f224 | 6025 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
6026 | |
6027 | self = self; | |
efc5f224 | 6028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPyData",_kwnames,&_argo0,&_argo1)) |
08127323 | 6029 | return NULL; |
1d99702e RD |
6030 | if (_argo0) { |
6031 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6032 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6033 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPyData. Expected _wxPyTreeCtrl_p."); | |
08127323 RD |
6034 | return NULL; |
6035 | } | |
6036 | } | |
1d99702e RD |
6037 | if (_argo1) { |
6038 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6039 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 | 6040 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPyData. Expected _wxTreeItemId_p."); |
08127323 RD |
6041 | return NULL; |
6042 | } | |
6043 | } | |
cf694132 RD |
6044 | { |
6045 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 6046 | _result = (PyObject *)wxPyTreeCtrl_GetPyData(_arg0,*_arg1); |
cf694132 RD |
6047 | |
6048 | wxPy_END_ALLOW_THREADS; | |
6049 | }{ | |
6050 | _resultobj = _result; | |
6051 | } | |
6052 | return _resultobj; | |
6053 | } | |
6054 | ||
f6bcfd97 | 6055 | static void wxPyTreeCtrl_SetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item,PyObject * obj) { |
cf694132 RD |
6056 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
6057 | if (data == NULL) { | |
6058 | data = new wxPyTreeItemData(obj); | |
f6bcfd97 | 6059 | data->SetId(item); // set the id |
cf694132 RD |
6060 | self->SetItemData(item, data); |
6061 | } else | |
6062 | data->SetData(obj); | |
c368d904 | 6063 | } |
efc5f224 | 6064 | static PyObject *_wrap_wxTreeCtrl_SetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 | 6065 | PyObject * _resultobj; |
f6bcfd97 | 6066 | wxPyTreeCtrl * _arg0; |
cf694132 RD |
6067 | wxTreeItemId * _arg1; |
6068 | PyObject * _arg2; | |
1d99702e RD |
6069 | PyObject * _argo0 = 0; |
6070 | PyObject * _argo1 = 0; | |
cf694132 | 6071 | PyObject * _obj2 = 0; |
efc5f224 | 6072 | char *_kwnames[] = { "self","item","obj", NULL }; |
cf694132 RD |
6073 | |
6074 | self = self; | |
efc5f224 | 6075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetPyData",_kwnames,&_argo0,&_argo1,&_obj2)) |
cf694132 | 6076 | return NULL; |
1d99702e RD |
6077 | if (_argo0) { |
6078 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6079 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6080 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetPyData. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
6081 | return NULL; |
6082 | } | |
6083 | } | |
1d99702e RD |
6084 | if (_argo1) { |
6085 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6086 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
6087 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetPyData. Expected _wxTreeItemId_p."); |
6088 | return NULL; | |
6089 | } | |
6090 | } | |
6091 | { | |
6092 | _arg2 = _obj2; | |
6093 | } | |
6094 | { | |
6095 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 6096 | wxPyTreeCtrl_SetPyData(_arg0,*_arg1,_arg2); |
cf694132 RD |
6097 | |
6098 | wxPy_END_ALLOW_THREADS; | |
6099 | } Py_INCREF(Py_None); | |
08127323 RD |
6100 | _resultobj = Py_None; |
6101 | return _resultobj; | |
6102 | } | |
6103 | ||
d5c9047a | 6104 | #define wxTreeCtrl_IsVisible(_swigobj,_swigarg0) (_swigobj->IsVisible(_swigarg0)) |
efc5f224 | 6105 | static PyObject *_wrap_wxTreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6106 | PyObject * _resultobj; |
d5c9047a | 6107 | bool _result; |
f6bcfd97 | 6108 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6109 | wxTreeItemId * _arg1; |
1d99702e RD |
6110 | PyObject * _argo0 = 0; |
6111 | PyObject * _argo1 = 0; | |
efc5f224 | 6112 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
6113 | |
6114 | self = self; | |
efc5f224 | 6115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6116 | return NULL; |
1d99702e RD |
6117 | if (_argo0) { |
6118 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6119 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6120 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6121 | return NULL; |
6122 | } | |
6123 | } | |
1d99702e RD |
6124 | if (_argo1) { |
6125 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6126 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6127 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsVisible. Expected _wxTreeItemId_p."); |
6128 | return NULL; | |
6129 | } | |
6130 | } | |
cf694132 RD |
6131 | { |
6132 | wxPy_BEGIN_ALLOW_THREADS; | |
6133 | _result = (bool )wxTreeCtrl_IsVisible(_arg0,*_arg1); | |
6134 | ||
6135 | wxPy_END_ALLOW_THREADS; | |
6136 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
6137 | return _resultobj; |
6138 | } | |
6139 | ||
d5c9047a | 6140 | #define wxTreeCtrl_ItemHasChildren(_swigobj,_swigarg0) (_swigobj->ItemHasChildren(_swigarg0)) |
efc5f224 | 6141 | static PyObject *_wrap_wxTreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6142 | PyObject * _resultobj; |
d5c9047a | 6143 | bool _result; |
f6bcfd97 | 6144 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6145 | wxTreeItemId * _arg1; |
1d99702e RD |
6146 | PyObject * _argo0 = 0; |
6147 | PyObject * _argo1 = 0; | |
efc5f224 | 6148 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
6149 | |
6150 | self = self; | |
efc5f224 | 6151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ItemHasChildren",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6152 | return NULL; |
1d99702e RD |
6153 | if (_argo0) { |
6154 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6155 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6156 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6157 | return NULL; |
6158 | } | |
6159 | } | |
1d99702e RD |
6160 | if (_argo1) { |
6161 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6162 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6163 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ItemHasChildren. Expected _wxTreeItemId_p."); |
6164 | return NULL; | |
6165 | } | |
6166 | } | |
cf694132 RD |
6167 | { |
6168 | wxPy_BEGIN_ALLOW_THREADS; | |
6169 | _result = (bool )wxTreeCtrl_ItemHasChildren(_arg0,*_arg1); | |
6170 | ||
6171 | wxPy_END_ALLOW_THREADS; | |
6172 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
6173 | return _resultobj; |
6174 | } | |
6175 | ||
d5c9047a | 6176 | #define wxTreeCtrl_IsExpanded(_swigobj,_swigarg0) (_swigobj->IsExpanded(_swigarg0)) |
efc5f224 | 6177 | static PyObject *_wrap_wxTreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6178 | PyObject * _resultobj; |
d5c9047a | 6179 | bool _result; |
f6bcfd97 | 6180 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6181 | wxTreeItemId * _arg1; |
1d99702e RD |
6182 | PyObject * _argo0 = 0; |
6183 | PyObject * _argo1 = 0; | |
efc5f224 | 6184 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
6185 | |
6186 | self = self; | |
efc5f224 | 6187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsExpanded",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6188 | return NULL; |
1d99702e RD |
6189 | if (_argo0) { |
6190 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6191 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6192 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsExpanded. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6193 | return NULL; |
6194 | } | |
6195 | } | |
1d99702e RD |
6196 | if (_argo1) { |
6197 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6198 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6199 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsExpanded. Expected _wxTreeItemId_p."); |
6200 | return NULL; | |
6201 | } | |
6202 | } | |
cf694132 RD |
6203 | { |
6204 | wxPy_BEGIN_ALLOW_THREADS; | |
6205 | _result = (bool )wxTreeCtrl_IsExpanded(_arg0,*_arg1); | |
6206 | ||
6207 | wxPy_END_ALLOW_THREADS; | |
6208 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
6209 | return _resultobj; |
6210 | } | |
6211 | ||
d5c9047a | 6212 | #define wxTreeCtrl_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) |
efc5f224 | 6213 | static PyObject *_wrap_wxTreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6214 | PyObject * _resultobj; |
d5c9047a | 6215 | bool _result; |
f6bcfd97 | 6216 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6217 | wxTreeItemId * _arg1; |
1d99702e RD |
6218 | PyObject * _argo0 = 0; |
6219 | PyObject * _argo1 = 0; | |
efc5f224 | 6220 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
6221 | |
6222 | self = self; | |
efc5f224 | 6223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsSelected",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6224 | return NULL; |
1d99702e RD |
6225 | if (_argo0) { |
6226 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6227 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6228 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsSelected. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6229 | return NULL; |
6230 | } | |
6231 | } | |
1d99702e RD |
6232 | if (_argo1) { |
6233 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6234 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6235 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsSelected. Expected _wxTreeItemId_p."); |
6236 | return NULL; | |
6237 | } | |
6238 | } | |
cf694132 RD |
6239 | { |
6240 | wxPy_BEGIN_ALLOW_THREADS; | |
6241 | _result = (bool )wxTreeCtrl_IsSelected(_arg0,*_arg1); | |
6242 | ||
6243 | wxPy_END_ALLOW_THREADS; | |
6244 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
6245 | return _resultobj; |
6246 | } | |
6247 | ||
6248 | #define wxTreeCtrl_GetRootItem(_swigobj) (_swigobj->GetRootItem()) | |
efc5f224 | 6249 | static PyObject *_wrap_wxTreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6250 | PyObject * _resultobj; |
d5c9047a | 6251 | wxTreeItemId * _result; |
f6bcfd97 | 6252 | wxPyTreeCtrl * _arg0; |
1d99702e | 6253 | PyObject * _argo0 = 0; |
efc5f224 | 6254 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 6255 | char _ptemp[128]; |
8ab979d7 RD |
6256 | |
6257 | self = self; | |
efc5f224 | 6258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetRootItem",_kwnames,&_argo0)) |
8ab979d7 | 6259 | return NULL; |
1d99702e RD |
6260 | if (_argo0) { |
6261 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6262 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6263 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetRootItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6264 | return NULL; |
6265 | } | |
6266 | } | |
cf694132 RD |
6267 | { |
6268 | wxPy_BEGIN_ALLOW_THREADS; | |
6269 | _result = new wxTreeItemId (wxTreeCtrl_GetRootItem(_arg0)); | |
6270 | ||
6271 | wxPy_END_ALLOW_THREADS; | |
6272 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6273 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6274 | return _resultobj; |
6275 | } | |
6276 | ||
6277 | #define wxTreeCtrl_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
efc5f224 | 6278 | static PyObject *_wrap_wxTreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6279 | PyObject * _resultobj; |
d5c9047a | 6280 | wxTreeItemId * _result; |
f6bcfd97 | 6281 | wxPyTreeCtrl * _arg0; |
1d99702e | 6282 | PyObject * _argo0 = 0; |
efc5f224 | 6283 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 6284 | char _ptemp[128]; |
8ab979d7 RD |
6285 | |
6286 | self = self; | |
efc5f224 | 6287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelection",_kwnames,&_argo0)) |
8ab979d7 | 6288 | return NULL; |
1d99702e RD |
6289 | if (_argo0) { |
6290 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6291 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6292 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelection. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6293 | return NULL; |
6294 | } | |
6295 | } | |
cf694132 RD |
6296 | { |
6297 | wxPy_BEGIN_ALLOW_THREADS; | |
6298 | _result = new wxTreeItemId (wxTreeCtrl_GetSelection(_arg0)); | |
6299 | ||
6300 | wxPy_END_ALLOW_THREADS; | |
6301 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6302 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6303 | return _resultobj; |
6304 | } | |
6305 | ||
eb715945 RD |
6306 | #define wxTreeCtrl_GetItemParent(_swigobj,_swigarg0) (_swigobj->GetParent(_swigarg0)) |
6307 | static PyObject *_wrap_wxTreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6308 | PyObject * _resultobj; |
d5c9047a | 6309 | wxTreeItemId * _result; |
f6bcfd97 | 6310 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6311 | wxTreeItemId * _arg1; |
1d99702e RD |
6312 | PyObject * _argo0 = 0; |
6313 | PyObject * _argo1 = 0; | |
efc5f224 | 6314 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 6315 | char _ptemp[128]; |
8ab979d7 RD |
6316 | |
6317 | self = self; | |
eb715945 | 6318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6319 | return NULL; |
1d99702e RD |
6320 | if (_argo0) { |
6321 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6322 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6323 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemParent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6324 | return NULL; |
6325 | } | |
6326 | } | |
1d99702e RD |
6327 | if (_argo1) { |
6328 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6329 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
eb715945 | 6330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemParent. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
6331 | return NULL; |
6332 | } | |
6333 | } | |
cf694132 RD |
6334 | { |
6335 | wxPy_BEGIN_ALLOW_THREADS; | |
eb715945 | 6336 | _result = new wxTreeItemId (wxTreeCtrl_GetItemParent(_arg0,*_arg1)); |
cf694132 RD |
6337 | |
6338 | wxPy_END_ALLOW_THREADS; | |
6339 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6340 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6341 | return _resultobj; |
6342 | } | |
6343 | ||
f6bcfd97 | 6344 | static PyObject * wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self) { |
26b9cf27 | 6345 | bool doSave = wxPyRestoreThread(); |
d426c97e RD |
6346 | PyObject* rval = PyList_New(0); |
6347 | wxArrayTreeItemIds array; | |
6348 | size_t num, x; | |
6349 | num = self->GetSelections(array); | |
6350 | for (x=0; x < num; x++) { | |
c368d904 RD |
6351 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); |
6352 | PyObject* item = wxPyConstructObject((void*)tii, "wxTreeItemId", TRUE); | |
d426c97e RD |
6353 | PyList_Append(rval, item); |
6354 | } | |
26b9cf27 | 6355 | wxPySaveThread(doSave); |
d426c97e RD |
6356 | return rval; |
6357 | } | |
6358 | static PyObject *_wrap_wxTreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6359 | PyObject * _resultobj; | |
6360 | PyObject * _result; | |
f6bcfd97 | 6361 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
6362 | PyObject * _argo0 = 0; |
6363 | char *_kwnames[] = { "self", NULL }; | |
6364 | ||
6365 | self = self; | |
6366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelections",_kwnames,&_argo0)) | |
6367 | return NULL; | |
6368 | if (_argo0) { | |
6369 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6370 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelections. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
6372 | return NULL; |
6373 | } | |
6374 | } | |
6375 | { | |
6376 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 6377 | _result = (PyObject *)wxPyTreeCtrl_GetSelections(_arg0); |
d426c97e RD |
6378 | |
6379 | wxPy_END_ALLOW_THREADS; | |
6380 | }{ | |
6381 | _resultobj = _result; | |
6382 | } | |
6383 | return _resultobj; | |
6384 | } | |
6385 | ||
bb0054cd | 6386 | #define wxTreeCtrl_GetChildrenCount(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetChildrenCount(_swigarg0,_swigarg1)) |
efc5f224 | 6387 | static PyObject *_wrap_wxTreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
6388 | PyObject * _resultobj; |
6389 | size_t _result; | |
f6bcfd97 | 6390 | wxPyTreeCtrl * _arg0; |
bb0054cd | 6391 | wxTreeItemId * _arg1; |
1d99702e RD |
6392 | bool _arg2 = (bool ) TRUE; |
6393 | PyObject * _argo0 = 0; | |
6394 | PyObject * _argo1 = 0; | |
6395 | int tempbool2 = (int) TRUE; | |
efc5f224 | 6396 | char *_kwnames[] = { "self","item","recursively", NULL }; |
bb0054cd RD |
6397 | |
6398 | self = self; | |
efc5f224 | 6399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetChildrenCount",_kwnames,&_argo0,&_argo1,&tempbool2)) |
bb0054cd | 6400 | return NULL; |
1d99702e RD |
6401 | if (_argo0) { |
6402 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6403 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6404 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetChildrenCount. Expected _wxPyTreeCtrl_p."); | |
bb0054cd RD |
6405 | return NULL; |
6406 | } | |
6407 | } | |
1d99702e RD |
6408 | if (_argo1) { |
6409 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6410 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
bb0054cd RD |
6411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetChildrenCount. Expected _wxTreeItemId_p."); |
6412 | return NULL; | |
6413 | } | |
6414 | } | |
6415 | _arg2 = (bool ) tempbool2; | |
6416 | { | |
6417 | wxPy_BEGIN_ALLOW_THREADS; | |
6418 | _result = (size_t )wxTreeCtrl_GetChildrenCount(_arg0,*_arg1,_arg2); | |
6419 | ||
6420 | wxPy_END_ALLOW_THREADS; | |
6421 | } _resultobj = Py_BuildValue("i",_result); | |
6422 | return _resultobj; | |
6423 | } | |
6424 | ||
d5c9047a | 6425 | #define wxTreeCtrl_GetFirstChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetFirstChild(_swigarg0,_swigarg1)) |
efc5f224 | 6426 | static PyObject *_wrap_wxTreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6427 | PyObject * _resultobj; |
d5c9047a | 6428 | wxTreeItemId * _result; |
f6bcfd97 | 6429 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
6430 | wxTreeItemId * _arg1; |
6431 | long * _arg2; | |
1d99702e RD |
6432 | PyObject * _argo0 = 0; |
6433 | PyObject * _argo1 = 0; | |
d5c9047a RD |
6434 | long temp; |
6435 | PyObject * _obj2 = 0; | |
efc5f224 | 6436 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 6437 | char _ptemp[128]; |
8ab979d7 RD |
6438 | |
6439 | self = self; | |
efc5f224 | 6440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetFirstChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 6441 | return NULL; |
1d99702e RD |
6442 | if (_argo0) { |
6443 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6444 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6445 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstChild. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6446 | return NULL; |
6447 | } | |
6448 | } | |
1d99702e RD |
6449 | if (_argo1) { |
6450 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6451 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 6452 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetFirstChild. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
6453 | return NULL; |
6454 | } | |
6455 | } | |
d5c9047a RD |
6456 | { |
6457 | temp = (long) PyInt_AsLong(_obj2); | |
6458 | _arg2 = &temp; | |
6459 | } | |
cf694132 RD |
6460 | { |
6461 | wxPy_BEGIN_ALLOW_THREADS; | |
6462 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstChild(_arg0,*_arg1,*_arg2)); | |
6463 | ||
6464 | wxPy_END_ALLOW_THREADS; | |
6465 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a RD |
6466 | _resultobj = Py_BuildValue("s",_ptemp); |
6467 | { | |
6468 | PyObject *o; | |
6469 | o = PyInt_FromLong((long) (*_arg2)); | |
6470 | _resultobj = t_output_helper(_resultobj, o); | |
6471 | } | |
8ab979d7 RD |
6472 | return _resultobj; |
6473 | } | |
6474 | ||
d5c9047a | 6475 | #define wxTreeCtrl_GetNextChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetNextChild(_swigarg0,_swigarg1)) |
efc5f224 | 6476 | static PyObject *_wrap_wxTreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6477 | PyObject * _resultobj; |
d5c9047a | 6478 | wxTreeItemId * _result; |
f6bcfd97 | 6479 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
6480 | wxTreeItemId * _arg1; |
6481 | long * _arg2; | |
1d99702e RD |
6482 | PyObject * _argo0 = 0; |
6483 | PyObject * _argo1 = 0; | |
d5c9047a | 6484 | long temp; |
8ab979d7 | 6485 | PyObject * _obj2 = 0; |
efc5f224 | 6486 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 6487 | char _ptemp[128]; |
8ab979d7 RD |
6488 | |
6489 | self = self; | |
efc5f224 | 6490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetNextChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 6491 | return NULL; |
1d99702e RD |
6492 | if (_argo0) { |
6493 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6494 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6495 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextChild. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6496 | return NULL; |
6497 | } | |
6498 | } | |
1d99702e RD |
6499 | if (_argo1) { |
6500 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6501 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 6502 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextChild. Expected _wxTreeItemId_p."); |
8ab979d7 | 6503 | return NULL; |
d5c9047a | 6504 | } |
8ab979d7 | 6505 | } |
d5c9047a RD |
6506 | { |
6507 | temp = (long) PyInt_AsLong(_obj2); | |
6508 | _arg2 = &temp; | |
8ab979d7 | 6509 | } |
cf694132 RD |
6510 | { |
6511 | wxPy_BEGIN_ALLOW_THREADS; | |
6512 | _result = new wxTreeItemId (wxTreeCtrl_GetNextChild(_arg0,*_arg1,*_arg2)); | |
6513 | ||
6514 | wxPy_END_ALLOW_THREADS; | |
6515 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6516 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 | 6517 | { |
d5c9047a RD |
6518 | PyObject *o; |
6519 | o = PyInt_FromLong((long) (*_arg2)); | |
6520 | _resultobj = t_output_helper(_resultobj, o); | |
8ab979d7 RD |
6521 | } |
6522 | return _resultobj; | |
6523 | } | |
6524 | ||
d5c9047a | 6525 | #define wxTreeCtrl_GetNextSibling(_swigobj,_swigarg0) (_swigobj->GetNextSibling(_swigarg0)) |
efc5f224 | 6526 | static PyObject *_wrap_wxTreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6527 | PyObject * _resultobj; |
d5c9047a | 6528 | wxTreeItemId * _result; |
f6bcfd97 | 6529 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6530 | wxTreeItemId * _arg1; |
1d99702e RD |
6531 | PyObject * _argo0 = 0; |
6532 | PyObject * _argo1 = 0; | |
efc5f224 | 6533 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 6534 | char _ptemp[128]; |
8ab979d7 RD |
6535 | |
6536 | self = self; | |
efc5f224 | 6537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6538 | return NULL; |
1d99702e RD |
6539 | if (_argo0) { |
6540 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6541 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6542 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextSibling. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6543 | return NULL; |
6544 | } | |
6545 | } | |
1d99702e RD |
6546 | if (_argo1) { |
6547 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6548 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6549 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextSibling. Expected _wxTreeItemId_p."); |
6550 | return NULL; | |
6551 | } | |
6552 | } | |
cf694132 RD |
6553 | { |
6554 | wxPy_BEGIN_ALLOW_THREADS; | |
6555 | _result = new wxTreeItemId (wxTreeCtrl_GetNextSibling(_arg0,*_arg1)); | |
6556 | ||
6557 | wxPy_END_ALLOW_THREADS; | |
6558 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6559 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6560 | return _resultobj; |
6561 | } | |
6562 | ||
d5c9047a | 6563 | #define wxTreeCtrl_GetPrevSibling(_swigobj,_swigarg0) (_swigobj->GetPrevSibling(_swigarg0)) |
efc5f224 | 6564 | static PyObject *_wrap_wxTreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6565 | PyObject * _resultobj; |
d5c9047a | 6566 | wxTreeItemId * _result; |
f6bcfd97 | 6567 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6568 | wxTreeItemId * _arg1; |
1d99702e RD |
6569 | PyObject * _argo0 = 0; |
6570 | PyObject * _argo1 = 0; | |
efc5f224 | 6571 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 6572 | char _ptemp[128]; |
8ab979d7 RD |
6573 | |
6574 | self = self; | |
efc5f224 | 6575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6576 | return NULL; |
1d99702e RD |
6577 | if (_argo0) { |
6578 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6579 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6580 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevSibling. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6581 | return NULL; |
6582 | } | |
6583 | } | |
1d99702e RD |
6584 | if (_argo1) { |
6585 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6586 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6587 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevSibling. Expected _wxTreeItemId_p."); |
6588 | return NULL; | |
6589 | } | |
6590 | } | |
cf694132 RD |
6591 | { |
6592 | wxPy_BEGIN_ALLOW_THREADS; | |
6593 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevSibling(_arg0,*_arg1)); | |
6594 | ||
6595 | wxPy_END_ALLOW_THREADS; | |
6596 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6597 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6598 | return _resultobj; |
6599 | } | |
6600 | ||
d5c9047a | 6601 | #define wxTreeCtrl_GetFirstVisibleItem(_swigobj) (_swigobj->GetFirstVisibleItem()) |
efc5f224 | 6602 | static PyObject *_wrap_wxTreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6603 | PyObject * _resultobj; |
d5c9047a | 6604 | wxTreeItemId * _result; |
f6bcfd97 | 6605 | wxPyTreeCtrl * _arg0; |
1d99702e | 6606 | PyObject * _argo0 = 0; |
efc5f224 | 6607 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 6608 | char _ptemp[128]; |
8ab979d7 RD |
6609 | |
6610 | self = self; | |
efc5f224 | 6611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetFirstVisibleItem",_kwnames,&_argo0)) |
8ab979d7 | 6612 | return NULL; |
1d99702e RD |
6613 | if (_argo0) { |
6614 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6615 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6616 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstVisibleItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6617 | return NULL; |
6618 | } | |
6619 | } | |
cf694132 RD |
6620 | { |
6621 | wxPy_BEGIN_ALLOW_THREADS; | |
6622 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstVisibleItem(_arg0)); | |
6623 | ||
6624 | wxPy_END_ALLOW_THREADS; | |
6625 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6626 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6627 | return _resultobj; |
6628 | } | |
6629 | ||
d5c9047a | 6630 | #define wxTreeCtrl_GetNextVisible(_swigobj,_swigarg0) (_swigobj->GetNextVisible(_swigarg0)) |
efc5f224 | 6631 | static PyObject *_wrap_wxTreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6632 | PyObject * _resultobj; |
d5c9047a | 6633 | wxTreeItemId * _result; |
f6bcfd97 | 6634 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6635 | wxTreeItemId * _arg1; |
1d99702e RD |
6636 | PyObject * _argo0 = 0; |
6637 | PyObject * _argo1 = 0; | |
efc5f224 | 6638 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 6639 | char _ptemp[128]; |
8ab979d7 RD |
6640 | |
6641 | self = self; | |
efc5f224 | 6642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6643 | return NULL; |
1d99702e RD |
6644 | if (_argo0) { |
6645 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6646 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6647 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6648 | return NULL; |
6649 | } | |
6650 | } | |
1d99702e RD |
6651 | if (_argo1) { |
6652 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6653 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6654 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextVisible. Expected _wxTreeItemId_p."); |
6655 | return NULL; | |
6656 | } | |
6657 | } | |
cf694132 RD |
6658 | { |
6659 | wxPy_BEGIN_ALLOW_THREADS; | |
6660 | _result = new wxTreeItemId (wxTreeCtrl_GetNextVisible(_arg0,*_arg1)); | |
6661 | ||
6662 | wxPy_END_ALLOW_THREADS; | |
6663 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6664 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6665 | return _resultobj; |
6666 | } | |
6667 | ||
d5c9047a | 6668 | #define wxTreeCtrl_GetPrevVisible(_swigobj,_swigarg0) (_swigobj->GetPrevVisible(_swigarg0)) |
efc5f224 | 6669 | static PyObject *_wrap_wxTreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6670 | PyObject * _resultobj; |
d5c9047a | 6671 | wxTreeItemId * _result; |
f6bcfd97 | 6672 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6673 | wxTreeItemId * _arg1; |
1d99702e RD |
6674 | PyObject * _argo0 = 0; |
6675 | PyObject * _argo1 = 0; | |
efc5f224 | 6676 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 6677 | char _ptemp[128]; |
8ab979d7 RD |
6678 | |
6679 | self = self; | |
efc5f224 | 6680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6681 | return NULL; |
1d99702e RD |
6682 | if (_argo0) { |
6683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6686 | return NULL; |
6687 | } | |
6688 | } | |
1d99702e RD |
6689 | if (_argo1) { |
6690 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6691 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 6692 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevVisible. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
6693 | return NULL; |
6694 | } | |
6695 | } | |
cf694132 RD |
6696 | { |
6697 | wxPy_BEGIN_ALLOW_THREADS; | |
6698 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevVisible(_arg0,*_arg1)); | |
6699 | ||
6700 | wxPy_END_ALLOW_THREADS; | |
6701 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6702 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6703 | return _resultobj; |
6704 | } | |
6705 | ||
d426c97e RD |
6706 | #define wxTreeCtrl_GetLastChild(_swigobj,_swigarg0) (_swigobj->GetLastChild(_swigarg0)) |
6707 | static PyObject *_wrap_wxTreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6708 | PyObject * _resultobj; | |
6709 | wxTreeItemId * _result; | |
f6bcfd97 | 6710 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
6711 | wxTreeItemId * _arg1; |
6712 | PyObject * _argo0 = 0; | |
6713 | PyObject * _argo1 = 0; | |
6714 | char *_kwnames[] = { "self","item", NULL }; | |
6715 | char _ptemp[128]; | |
6716 | ||
6717 | self = self; | |
6718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetLastChild",_kwnames,&_argo0,&_argo1)) | |
6719 | return NULL; | |
6720 | if (_argo0) { | |
6721 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6722 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6723 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetLastChild. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
6724 | return NULL; |
6725 | } | |
6726 | } | |
6727 | if (_argo1) { | |
6728 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6729 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
6730 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetLastChild. Expected _wxTreeItemId_p."); | |
6731 | return NULL; | |
6732 | } | |
6733 | } | |
6734 | { | |
6735 | wxPy_BEGIN_ALLOW_THREADS; | |
6736 | _result = new wxTreeItemId (wxTreeCtrl_GetLastChild(_arg0,*_arg1)); | |
6737 | ||
6738 | wxPy_END_ALLOW_THREADS; | |
6739 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
6740 | _resultobj = Py_BuildValue("s",_ptemp); | |
6741 | return _resultobj; | |
6742 | } | |
6743 | ||
d5c9047a | 6744 | #define wxTreeCtrl_AddRoot(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->AddRoot(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
efc5f224 | 6745 | static PyObject *_wrap_wxTreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6746 | PyObject * _resultobj; |
d5c9047a | 6747 | wxTreeItemId * _result; |
f6bcfd97 | 6748 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6749 | wxString * _arg1; |
1d99702e RD |
6750 | int _arg2 = (int ) -1; |
6751 | int _arg3 = (int ) -1; | |
6752 | wxPyTreeItemData * _arg4 = (wxPyTreeItemData *) NULL; | |
6753 | PyObject * _argo0 = 0; | |
d5c9047a | 6754 | PyObject * _obj1 = 0; |
1d99702e | 6755 | PyObject * _argo4 = 0; |
efc5f224 | 6756 | char *_kwnames[] = { "self","text","image","selectedImage","data", NULL }; |
d5c9047a | 6757 | char _ptemp[128]; |
8ab979d7 RD |
6758 | |
6759 | self = self; | |
efc5f224 | 6760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iiO:wxTreeCtrl_AddRoot",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_argo4)) |
8ab979d7 | 6761 | return NULL; |
1d99702e RD |
6762 | if (_argo0) { |
6763 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6764 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6765 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AddRoot. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6766 | return NULL; |
6767 | } | |
6768 | } | |
d5c9047a | 6769 | { |
185d7c3e RD |
6770 | #if PYTHON_API_VERSION >= 1009 |
6771 | char* tmpPtr; int tmpSize; | |
6772 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
6773 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
6774 | return NULL; | |
6775 | } | |
6776 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6777 | return NULL; | |
6778 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6779 | #else | |
d5c9047a RD |
6780 | if (!PyString_Check(_obj1)) { |
6781 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6782 | return NULL; | |
6783 | } | |
185d7c3e RD |
6784 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
6785 | #endif | |
d5c9047a | 6786 | } |
1d99702e RD |
6787 | if (_argo4) { |
6788 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
6789 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxPyTreeItemData_p")) { | |
cf694132 | 6790 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxTreeCtrl_AddRoot. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
6791 | return NULL; |
6792 | } | |
6793 | } | |
cf694132 RD |
6794 | { |
6795 | wxPy_BEGIN_ALLOW_THREADS; | |
6796 | _result = new wxTreeItemId (wxTreeCtrl_AddRoot(_arg0,*_arg1,_arg2,_arg3,_arg4)); | |
6797 | ||
6798 | wxPy_END_ALLOW_THREADS; | |
6799 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a RD |
6800 | _resultobj = Py_BuildValue("s",_ptemp); |
6801 | { | |
6802 | if (_obj1) | |
6803 | delete _arg1; | |
6804 | } | |
8ab979d7 RD |
6805 | return _resultobj; |
6806 | } | |
6807 | ||
d5c9047a | 6808 | #define wxTreeCtrl_PrependItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->PrependItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 6809 | static PyObject *_wrap_wxTreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6810 | PyObject * _resultobj; |
d5c9047a | 6811 | wxTreeItemId * _result; |
f6bcfd97 | 6812 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
6813 | wxTreeItemId * _arg1; |
6814 | wxString * _arg2; | |
1d99702e RD |
6815 | int _arg3 = (int ) -1; |
6816 | int _arg4 = (int ) -1; | |
6817 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
6818 | PyObject * _argo0 = 0; | |
6819 | PyObject * _argo1 = 0; | |
d5c9047a | 6820 | PyObject * _obj2 = 0; |
1d99702e | 6821 | PyObject * _argo5 = 0; |
efc5f224 | 6822 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 6823 | char _ptemp[128]; |
8ab979d7 RD |
6824 | |
6825 | self = self; | |
efc5f224 | 6826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_PrependItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 6827 | return NULL; |
1d99702e RD |
6828 | if (_argo0) { |
6829 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6830 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6831 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_PrependItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6832 | return NULL; |
6833 | } | |
6834 | } | |
1d99702e RD |
6835 | if (_argo1) { |
6836 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6837 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6838 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_PrependItem. Expected _wxTreeItemId_p."); |
6839 | return NULL; | |
6840 | } | |
6841 | } | |
6842 | { | |
185d7c3e RD |
6843 | #if PYTHON_API_VERSION >= 1009 |
6844 | char* tmpPtr; int tmpSize; | |
6845 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
6846 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
6847 | return NULL; | |
6848 | } | |
6849 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
6850 | return NULL; | |
6851 | _arg2 = new wxString(tmpPtr, tmpSize); | |
6852 | #else | |
d5c9047a RD |
6853 | if (!PyString_Check(_obj2)) { |
6854 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6855 | return NULL; | |
6856 | } | |
185d7c3e RD |
6857 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
6858 | #endif | |
d5c9047a | 6859 | } |
1d99702e RD |
6860 | if (_argo5) { |
6861 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
6862 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 6863 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_PrependItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
6864 | return NULL; |
6865 | } | |
6866 | } | |
cf694132 RD |
6867 | { |
6868 | wxPy_BEGIN_ALLOW_THREADS; | |
6869 | _result = new wxTreeItemId (wxTreeCtrl_PrependItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); | |
6870 | ||
6871 | wxPy_END_ALLOW_THREADS; | |
6872 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a RD |
6873 | _resultobj = Py_BuildValue("s",_ptemp); |
6874 | { | |
6875 | if (_obj2) | |
6876 | delete _arg2; | |
6877 | } | |
8ab979d7 RD |
6878 | return _resultobj; |
6879 | } | |
6880 | ||
d5c9047a | 6881 | #define wxTreeCtrl_InsertItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 6882 | static PyObject *_wrap_wxTreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6883 | PyObject * _resultobj; |
d5c9047a | 6884 | wxTreeItemId * _result; |
f6bcfd97 | 6885 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
6886 | wxTreeItemId * _arg1; |
6887 | wxTreeItemId * _arg2; | |
6888 | wxString * _arg3; | |
1d99702e RD |
6889 | int _arg4 = (int ) -1; |
6890 | int _arg5 = (int ) -1; | |
6891 | wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL; | |
6892 | PyObject * _argo0 = 0; | |
6893 | PyObject * _argo1 = 0; | |
6894 | PyObject * _argo2 = 0; | |
d5c9047a | 6895 | PyObject * _obj3 = 0; |
1d99702e | 6896 | PyObject * _argo6 = 0; |
efc5f224 | 6897 | char *_kwnames[] = { "self","parent","idPrevious","text","image","selectedImage","data", NULL }; |
d5c9047a | 6898 | char _ptemp[128]; |
8ab979d7 RD |
6899 | |
6900 | self = self; | |
efc5f224 | 6901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|iiO:wxTreeCtrl_InsertItem",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3,&_arg4,&_arg5,&_argo6)) |
8ab979d7 | 6902 | return NULL; |
1d99702e RD |
6903 | if (_argo0) { |
6904 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6905 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6906 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6907 | return NULL; |
6908 | } | |
6909 | } | |
1d99702e RD |
6910 | if (_argo1) { |
6911 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6912 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6913 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
6914 | return NULL; | |
6915 | } | |
6916 | } | |
1d99702e RD |
6917 | if (_argo2) { |
6918 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
6919 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6920 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
6921 | return NULL; | |
6922 | } | |
6923 | } | |
6924 | { | |
185d7c3e RD |
6925 | #if PYTHON_API_VERSION >= 1009 |
6926 | char* tmpPtr; int tmpSize; | |
6927 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
6928 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
6929 | return NULL; | |
6930 | } | |
6931 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
6932 | return NULL; | |
6933 | _arg3 = new wxString(tmpPtr, tmpSize); | |
6934 | #else | |
d5c9047a RD |
6935 | if (!PyString_Check(_obj3)) { |
6936 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6937 | return NULL; | |
6938 | } | |
185d7c3e RD |
6939 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
6940 | #endif | |
d5c9047a | 6941 | } |
1d99702e RD |
6942 | if (_argo6) { |
6943 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
6944 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) { | |
cf694132 | 6945 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
6946 | return NULL; |
6947 | } | |
6948 | } | |
cf694132 RD |
6949 | { |
6950 | wxPy_BEGIN_ALLOW_THREADS; | |
6951 | _result = new wxTreeItemId (wxTreeCtrl_InsertItem(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6)); | |
6952 | ||
6953 | wxPy_END_ALLOW_THREADS; | |
6954 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a RD |
6955 | _resultobj = Py_BuildValue("s",_ptemp); |
6956 | { | |
6957 | if (_obj3) | |
6958 | delete _arg3; | |
6959 | } | |
8ab979d7 RD |
6960 | return _resultobj; |
6961 | } | |
6962 | ||
f6bcfd97 BP |
6963 | #define wxTreeCtrl_InsertItemBefore(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
6964 | static PyObject *_wrap_wxTreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6965 | PyObject * _resultobj; | |
6966 | wxTreeItemId * _result; | |
6967 | wxPyTreeCtrl * _arg0; | |
6968 | wxTreeItemId * _arg1; | |
6969 | size_t _arg2; | |
6970 | wxString * _arg3; | |
6971 | int _arg4 = (int ) -1; | |
6972 | int _arg5 = (int ) -1; | |
6973 | wxTreeItemData * _arg6 = (wxTreeItemData *) NULL; | |
6974 | PyObject * _argo0 = 0; | |
6975 | PyObject * _argo1 = 0; | |
6976 | PyObject * _obj3 = 0; | |
6977 | PyObject * _argo6 = 0; | |
6978 | char *_kwnames[] = { "self","parent","before","text","image","selectedImage","data", NULL }; | |
6979 | char _ptemp[128]; | |
6980 | ||
6981 | self = self; | |
6982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|iiO:wxTreeCtrl_InsertItemBefore",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_arg4,&_arg5,&_argo6)) | |
6983 | return NULL; | |
6984 | if (_argo0) { | |
6985 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6986 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6987 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItemBefore. Expected _wxPyTreeCtrl_p."); | |
6988 | return NULL; | |
6989 | } | |
6990 | } | |
6991 | if (_argo1) { | |
6992 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6993 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
6994 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemId_p."); | |
6995 | return NULL; | |
6996 | } | |
6997 | } | |
6998 | { | |
185d7c3e RD |
6999 | #if PYTHON_API_VERSION >= 1009 |
7000 | char* tmpPtr; int tmpSize; | |
7001 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
7002 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
7003 | return NULL; | |
7004 | } | |
7005 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
7006 | return NULL; | |
7007 | _arg3 = new wxString(tmpPtr, tmpSize); | |
7008 | #else | |
f6bcfd97 BP |
7009 | if (!PyString_Check(_obj3)) { |
7010 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7011 | return NULL; | |
7012 | } | |
185d7c3e RD |
7013 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
7014 | #endif | |
f6bcfd97 BP |
7015 | } |
7016 | if (_argo6) { | |
7017 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
7018 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxTreeItemData_p")) { | |
7019 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemData_p."); | |
7020 | return NULL; | |
7021 | } | |
7022 | } | |
7023 | { | |
7024 | wxPy_BEGIN_ALLOW_THREADS; | |
7025 | _result = new wxTreeItemId (wxTreeCtrl_InsertItemBefore(_arg0,*_arg1,_arg2,*_arg3,_arg4,_arg5,_arg6)); | |
7026 | ||
7027 | wxPy_END_ALLOW_THREADS; | |
7028 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
7029 | _resultobj = Py_BuildValue("s",_ptemp); | |
7030 | { | |
7031 | if (_obj3) | |
7032 | delete _arg3; | |
7033 | } | |
7034 | return _resultobj; | |
7035 | } | |
7036 | ||
d5c9047a | 7037 | #define wxTreeCtrl_AppendItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->AppendItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 7038 | static PyObject *_wrap_wxTreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7039 | PyObject * _resultobj; |
d5c9047a | 7040 | wxTreeItemId * _result; |
f6bcfd97 | 7041 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7042 | wxTreeItemId * _arg1; |
8ab979d7 | 7043 | wxString * _arg2; |
1d99702e RD |
7044 | int _arg3 = (int ) -1; |
7045 | int _arg4 = (int ) -1; | |
7046 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
7047 | PyObject * _argo0 = 0; | |
7048 | PyObject * _argo1 = 0; | |
8ab979d7 | 7049 | PyObject * _obj2 = 0; |
1d99702e | 7050 | PyObject * _argo5 = 0; |
efc5f224 | 7051 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 7052 | char _ptemp[128]; |
8ab979d7 RD |
7053 | |
7054 | self = self; | |
efc5f224 | 7055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_AppendItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 7056 | return NULL; |
1d99702e RD |
7057 | if (_argo0) { |
7058 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7059 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7060 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AppendItem. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7061 | return NULL; |
7062 | } | |
7063 | } | |
1d99702e RD |
7064 | if (_argo1) { |
7065 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7066 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 7067 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AppendItem. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
7068 | return NULL; |
7069 | } | |
7070 | } | |
7071 | { | |
185d7c3e RD |
7072 | #if PYTHON_API_VERSION >= 1009 |
7073 | char* tmpPtr; int tmpSize; | |
7074 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7075 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
7076 | return NULL; | |
7077 | } | |
7078 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7079 | return NULL; | |
7080 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7081 | #else | |
8ab979d7 RD |
7082 | if (!PyString_Check(_obj2)) { |
7083 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7084 | return NULL; | |
7085 | } | |
185d7c3e RD |
7086 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7087 | #endif | |
8ab979d7 | 7088 | } |
1d99702e RD |
7089 | if (_argo5) { |
7090 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
7091 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 7092 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_AppendItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
7093 | return NULL; |
7094 | } | |
7095 | } | |
cf694132 RD |
7096 | { |
7097 | wxPy_BEGIN_ALLOW_THREADS; | |
7098 | _result = new wxTreeItemId (wxTreeCtrl_AppendItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); | |
7099 | ||
7100 | wxPy_END_ALLOW_THREADS; | |
7101 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 7102 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7103 | { |
7104 | if (_obj2) | |
7105 | delete _arg2; | |
7106 | } | |
7107 | return _resultobj; | |
7108 | } | |
7109 | ||
d5c9047a | 7110 | #define wxTreeCtrl_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
efc5f224 | 7111 | static PyObject *_wrap_wxTreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7112 | PyObject * _resultobj; |
f6bcfd97 | 7113 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7114 | wxTreeItemId * _arg1; |
1d99702e RD |
7115 | PyObject * _argo0 = 0; |
7116 | PyObject * _argo1 = 0; | |
efc5f224 | 7117 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7118 | |
7119 | self = self; | |
efc5f224 | 7120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Delete",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7121 | return NULL; |
1d99702e RD |
7122 | if (_argo0) { |
7123 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7124 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7125 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Delete. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7126 | return NULL; |
7127 | } | |
7128 | } | |
1d99702e RD |
7129 | if (_argo1) { |
7130 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7131 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7132 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Delete. Expected _wxTreeItemId_p."); |
7133 | return NULL; | |
7134 | } | |
7135 | } | |
cf694132 RD |
7136 | { |
7137 | wxPy_BEGIN_ALLOW_THREADS; | |
7138 | wxTreeCtrl_Delete(_arg0,*_arg1); | |
7139 | ||
7140 | wxPy_END_ALLOW_THREADS; | |
7141 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7142 | _resultobj = Py_None; |
7143 | return _resultobj; | |
7144 | } | |
7145 | ||
08127323 | 7146 | #define wxTreeCtrl_DeleteChildren(_swigobj,_swigarg0) (_swigobj->DeleteChildren(_swigarg0)) |
efc5f224 | 7147 | static PyObject *_wrap_wxTreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 | 7148 | PyObject * _resultobj; |
f6bcfd97 | 7149 | wxPyTreeCtrl * _arg0; |
08127323 | 7150 | wxTreeItemId * _arg1; |
1d99702e RD |
7151 | PyObject * _argo0 = 0; |
7152 | PyObject * _argo1 = 0; | |
efc5f224 | 7153 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
7154 | |
7155 | self = self; | |
efc5f224 | 7156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_DeleteChildren",_kwnames,&_argo0,&_argo1)) |
08127323 | 7157 | return NULL; |
1d99702e RD |
7158 | if (_argo0) { |
7159 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7160 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7161 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteChildren. Expected _wxPyTreeCtrl_p."); | |
08127323 RD |
7162 | return NULL; |
7163 | } | |
7164 | } | |
1d99702e RD |
7165 | if (_argo1) { |
7166 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7167 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
08127323 RD |
7168 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_DeleteChildren. Expected _wxTreeItemId_p."); |
7169 | return NULL; | |
7170 | } | |
7171 | } | |
cf694132 RD |
7172 | { |
7173 | wxPy_BEGIN_ALLOW_THREADS; | |
7174 | wxTreeCtrl_DeleteChildren(_arg0,*_arg1); | |
7175 | ||
7176 | wxPy_END_ALLOW_THREADS; | |
7177 | } Py_INCREF(Py_None); | |
08127323 RD |
7178 | _resultobj = Py_None; |
7179 | return _resultobj; | |
7180 | } | |
7181 | ||
d5c9047a | 7182 | #define wxTreeCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) |
efc5f224 | 7183 | static PyObject *_wrap_wxTreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7184 | PyObject * _resultobj; |
f6bcfd97 | 7185 | wxPyTreeCtrl * _arg0; |
1d99702e | 7186 | PyObject * _argo0 = 0; |
efc5f224 | 7187 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
7188 | |
7189 | self = self; | |
efc5f224 | 7190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_DeleteAllItems",_kwnames,&_argo0)) |
d5c9047a | 7191 | return NULL; |
1d99702e RD |
7192 | if (_argo0) { |
7193 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7194 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteAllItems. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7196 | return NULL; |
7197 | } | |
7198 | } | |
cf694132 RD |
7199 | { |
7200 | wxPy_BEGIN_ALLOW_THREADS; | |
7201 | wxTreeCtrl_DeleteAllItems(_arg0); | |
7202 | ||
7203 | wxPy_END_ALLOW_THREADS; | |
7204 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7205 | _resultobj = Py_None; |
7206 | return _resultobj; | |
7207 | } | |
7208 | ||
7209 | #define wxTreeCtrl_Expand(_swigobj,_swigarg0) (_swigobj->Expand(_swigarg0)) | |
efc5f224 | 7210 | static PyObject *_wrap_wxTreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7211 | PyObject * _resultobj; |
f6bcfd97 | 7212 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7213 | wxTreeItemId * _arg1; |
1d99702e RD |
7214 | PyObject * _argo0 = 0; |
7215 | PyObject * _argo1 = 0; | |
efc5f224 | 7216 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7217 | |
7218 | self = self; | |
efc5f224 | 7219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Expand",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7220 | return NULL; |
1d99702e RD |
7221 | if (_argo0) { |
7222 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7223 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7224 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Expand. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7225 | return NULL; |
7226 | } | |
7227 | } | |
1d99702e RD |
7228 | if (_argo1) { |
7229 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7230 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7231 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Expand. Expected _wxTreeItemId_p."); |
7232 | return NULL; | |
7233 | } | |
7234 | } | |
cf694132 RD |
7235 | { |
7236 | wxPy_BEGIN_ALLOW_THREADS; | |
7237 | wxTreeCtrl_Expand(_arg0,*_arg1); | |
7238 | ||
7239 | wxPy_END_ALLOW_THREADS; | |
7240 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7241 | _resultobj = Py_None; |
7242 | return _resultobj; | |
7243 | } | |
7244 | ||
7245 | #define wxTreeCtrl_Collapse(_swigobj,_swigarg0) (_swigobj->Collapse(_swigarg0)) | |
efc5f224 | 7246 | static PyObject *_wrap_wxTreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7247 | PyObject * _resultobj; |
f6bcfd97 | 7248 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7249 | wxTreeItemId * _arg1; |
1d99702e RD |
7250 | PyObject * _argo0 = 0; |
7251 | PyObject * _argo1 = 0; | |
efc5f224 | 7252 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7253 | |
7254 | self = self; | |
efc5f224 | 7255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Collapse",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7256 | return NULL; |
1d99702e RD |
7257 | if (_argo0) { |
7258 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7259 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Collapse. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7261 | return NULL; |
7262 | } | |
7263 | } | |
1d99702e RD |
7264 | if (_argo1) { |
7265 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7266 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Collapse. Expected _wxTreeItemId_p."); |
7268 | return NULL; | |
7269 | } | |
7270 | } | |
cf694132 RD |
7271 | { |
7272 | wxPy_BEGIN_ALLOW_THREADS; | |
7273 | wxTreeCtrl_Collapse(_arg0,*_arg1); | |
7274 | ||
7275 | wxPy_END_ALLOW_THREADS; | |
7276 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7277 | _resultobj = Py_None; |
7278 | return _resultobj; | |
7279 | } | |
7280 | ||
7281 | #define wxTreeCtrl_CollapseAndReset(_swigobj,_swigarg0) (_swigobj->CollapseAndReset(_swigarg0)) | |
efc5f224 | 7282 | static PyObject *_wrap_wxTreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7283 | PyObject * _resultobj; |
f6bcfd97 | 7284 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7285 | wxTreeItemId * _arg1; |
1d99702e RD |
7286 | PyObject * _argo0 = 0; |
7287 | PyObject * _argo1 = 0; | |
efc5f224 | 7288 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7289 | |
7290 | self = self; | |
efc5f224 | 7291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_CollapseAndReset",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7292 | return NULL; |
1d99702e RD |
7293 | if (_argo0) { |
7294 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7295 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7296 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_CollapseAndReset. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7297 | return NULL; |
7298 | } | |
7299 | } | |
1d99702e RD |
7300 | if (_argo1) { |
7301 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7302 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7303 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_CollapseAndReset. Expected _wxTreeItemId_p."); |
7304 | return NULL; | |
7305 | } | |
7306 | } | |
cf694132 RD |
7307 | { |
7308 | wxPy_BEGIN_ALLOW_THREADS; | |
7309 | wxTreeCtrl_CollapseAndReset(_arg0,*_arg1); | |
7310 | ||
7311 | wxPy_END_ALLOW_THREADS; | |
7312 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7313 | _resultobj = Py_None; |
7314 | return _resultobj; | |
7315 | } | |
7316 | ||
7317 | #define wxTreeCtrl_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0)) | |
efc5f224 | 7318 | static PyObject *_wrap_wxTreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7319 | PyObject * _resultobj; |
f6bcfd97 | 7320 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7321 | wxTreeItemId * _arg1; |
1d99702e RD |
7322 | PyObject * _argo0 = 0; |
7323 | PyObject * _argo1 = 0; | |
efc5f224 | 7324 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7325 | |
7326 | self = self; | |
efc5f224 | 7327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Toggle",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7328 | return NULL; |
1d99702e RD |
7329 | if (_argo0) { |
7330 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7331 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7332 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Toggle. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7333 | return NULL; |
7334 | } | |
7335 | } | |
1d99702e RD |
7336 | if (_argo1) { |
7337 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7338 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7339 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Toggle. Expected _wxTreeItemId_p."); |
7340 | return NULL; | |
7341 | } | |
7342 | } | |
cf694132 RD |
7343 | { |
7344 | wxPy_BEGIN_ALLOW_THREADS; | |
7345 | wxTreeCtrl_Toggle(_arg0,*_arg1); | |
7346 | ||
7347 | wxPy_END_ALLOW_THREADS; | |
7348 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7349 | _resultobj = Py_None; |
7350 | return _resultobj; | |
7351 | } | |
7352 | ||
7353 | #define wxTreeCtrl_Unselect(_swigobj) (_swigobj->Unselect()) | |
efc5f224 | 7354 | static PyObject *_wrap_wxTreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7355 | PyObject * _resultobj; |
f6bcfd97 | 7356 | wxPyTreeCtrl * _arg0; |
1d99702e | 7357 | PyObject * _argo0 = 0; |
efc5f224 | 7358 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
7359 | |
7360 | self = self; | |
efc5f224 | 7361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_Unselect",_kwnames,&_argo0)) |
d5c9047a | 7362 | return NULL; |
1d99702e RD |
7363 | if (_argo0) { |
7364 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7365 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7366 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Unselect. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7367 | return NULL; |
7368 | } | |
7369 | } | |
cf694132 RD |
7370 | { |
7371 | wxPy_BEGIN_ALLOW_THREADS; | |
7372 | wxTreeCtrl_Unselect(_arg0); | |
7373 | ||
7374 | wxPy_END_ALLOW_THREADS; | |
7375 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7376 | _resultobj = Py_None; |
7377 | return _resultobj; | |
7378 | } | |
7379 | ||
8bf5d46e | 7380 | #define wxTreeCtrl_UnselectAll(_swigobj) (_swigobj->UnselectAll()) |
efc5f224 | 7381 | static PyObject *_wrap_wxTreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e | 7382 | PyObject * _resultobj; |
f6bcfd97 | 7383 | wxPyTreeCtrl * _arg0; |
1d99702e | 7384 | PyObject * _argo0 = 0; |
efc5f224 | 7385 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
7386 | |
7387 | self = self; | |
efc5f224 | 7388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_UnselectAll",_kwnames,&_argo0)) |
8bf5d46e | 7389 | return NULL; |
1d99702e RD |
7390 | if (_argo0) { |
7391 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7392 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7393 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_UnselectAll. Expected _wxPyTreeCtrl_p."); | |
8bf5d46e RD |
7394 | return NULL; |
7395 | } | |
7396 | } | |
7397 | { | |
7398 | wxPy_BEGIN_ALLOW_THREADS; | |
7399 | wxTreeCtrl_UnselectAll(_arg0); | |
7400 | ||
7401 | wxPy_END_ALLOW_THREADS; | |
7402 | } Py_INCREF(Py_None); | |
7403 | _resultobj = Py_None; | |
7404 | return _resultobj; | |
7405 | } | |
7406 | ||
d5c9047a | 7407 | #define wxTreeCtrl_SelectItem(_swigobj,_swigarg0) (_swigobj->SelectItem(_swigarg0)) |
efc5f224 | 7408 | static PyObject *_wrap_wxTreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7409 | PyObject * _resultobj; |
f6bcfd97 | 7410 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7411 | wxTreeItemId * _arg1; |
1d99702e RD |
7412 | PyObject * _argo0 = 0; |
7413 | PyObject * _argo1 = 0; | |
efc5f224 | 7414 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7415 | |
7416 | self = self; | |
efc5f224 | 7417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SelectItem",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7418 | return NULL; |
1d99702e RD |
7419 | if (_argo0) { |
7420 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7421 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7422 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SelectItem. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7423 | return NULL; |
7424 | } | |
7425 | } | |
1d99702e RD |
7426 | if (_argo1) { |
7427 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7428 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7429 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SelectItem. Expected _wxTreeItemId_p."); |
7430 | return NULL; | |
7431 | } | |
7432 | } | |
cf694132 RD |
7433 | { |
7434 | wxPy_BEGIN_ALLOW_THREADS; | |
7435 | wxTreeCtrl_SelectItem(_arg0,*_arg1); | |
7436 | ||
7437 | wxPy_END_ALLOW_THREADS; | |
7438 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7439 | _resultobj = Py_None; |
7440 | return _resultobj; | |
7441 | } | |
7442 | ||
7443 | #define wxTreeCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) | |
efc5f224 | 7444 | static PyObject *_wrap_wxTreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7445 | PyObject * _resultobj; |
f6bcfd97 | 7446 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7447 | wxTreeItemId * _arg1; |
1d99702e RD |
7448 | PyObject * _argo0 = 0; |
7449 | PyObject * _argo1 = 0; | |
efc5f224 | 7450 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7451 | |
7452 | self = self; | |
efc5f224 | 7453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EnsureVisible",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7454 | return NULL; |
1d99702e RD |
7455 | if (_argo0) { |
7456 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7457 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7458 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EnsureVisible. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7459 | return NULL; |
7460 | } | |
7461 | } | |
1d99702e RD |
7462 | if (_argo1) { |
7463 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7464 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7465 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EnsureVisible. Expected _wxTreeItemId_p."); |
7466 | return NULL; | |
7467 | } | |
7468 | } | |
cf694132 RD |
7469 | { |
7470 | wxPy_BEGIN_ALLOW_THREADS; | |
7471 | wxTreeCtrl_EnsureVisible(_arg0,*_arg1); | |
7472 | ||
7473 | wxPy_END_ALLOW_THREADS; | |
7474 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7475 | _resultobj = Py_None; |
7476 | return _resultobj; | |
7477 | } | |
7478 | ||
7479 | #define wxTreeCtrl_ScrollTo(_swigobj,_swigarg0) (_swigobj->ScrollTo(_swigarg0)) | |
efc5f224 | 7480 | static PyObject *_wrap_wxTreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7481 | PyObject * _resultobj; |
f6bcfd97 | 7482 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7483 | wxTreeItemId * _arg1; |
1d99702e RD |
7484 | PyObject * _argo0 = 0; |
7485 | PyObject * _argo1 = 0; | |
efc5f224 | 7486 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7487 | |
7488 | self = self; | |
efc5f224 | 7489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ScrollTo",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7490 | return NULL; |
1d99702e RD |
7491 | if (_argo0) { |
7492 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7493 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7494 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ScrollTo. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7495 | return NULL; |
7496 | } | |
7497 | } | |
1d99702e RD |
7498 | if (_argo1) { |
7499 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7500 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7501 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ScrollTo. Expected _wxTreeItemId_p."); |
7502 | return NULL; | |
7503 | } | |
7504 | } | |
cf694132 RD |
7505 | { |
7506 | wxPy_BEGIN_ALLOW_THREADS; | |
7507 | wxTreeCtrl_ScrollTo(_arg0,*_arg1); | |
7508 | ||
7509 | wxPy_END_ALLOW_THREADS; | |
7510 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7511 | _resultobj = Py_None; |
7512 | return _resultobj; | |
7513 | } | |
7514 | ||
7515 | #define wxTreeCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0)) | |
efc5f224 | 7516 | static PyObject *_wrap_wxTreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a RD |
7517 | PyObject * _resultobj; |
7518 | wxTextCtrl * _result; | |
f6bcfd97 | 7519 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7520 | wxTreeItemId * _arg1; |
1d99702e RD |
7521 | PyObject * _argo0 = 0; |
7522 | PyObject * _argo1 = 0; | |
efc5f224 | 7523 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7524 | char _ptemp[128]; |
7525 | ||
7526 | self = self; | |
efc5f224 | 7527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EditLabel",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7528 | return NULL; |
1d99702e RD |
7529 | if (_argo0) { |
7530 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7531 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7532 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EditLabel. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7533 | return NULL; |
7534 | } | |
7535 | } | |
1d99702e RD |
7536 | if (_argo1) { |
7537 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7538 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7539 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EditLabel. Expected _wxTreeItemId_p."); |
7540 | return NULL; | |
7541 | } | |
7542 | } | |
cf694132 RD |
7543 | { |
7544 | wxPy_BEGIN_ALLOW_THREADS; | |
7545 | _result = (wxTextCtrl *)wxTreeCtrl_EditLabel(_arg0,*_arg1); | |
7546 | ||
7547 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
7548 | } if (_result) { |
7549 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p"); | |
7550 | _resultobj = Py_BuildValue("s",_ptemp); | |
7551 | } else { | |
7552 | Py_INCREF(Py_None); | |
7553 | _resultobj = Py_None; | |
7554 | } | |
d5c9047a RD |
7555 | return _resultobj; |
7556 | } | |
7557 | ||
7558 | #define wxTreeCtrl_GetEditControl(_swigobj) (_swigobj->GetEditControl()) | |
efc5f224 | 7559 | static PyObject *_wrap_wxTreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a RD |
7560 | PyObject * _resultobj; |
7561 | wxTextCtrl * _result; | |
f6bcfd97 | 7562 | wxPyTreeCtrl * _arg0; |
1d99702e | 7563 | PyObject * _argo0 = 0; |
efc5f224 | 7564 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
7565 | char _ptemp[128]; |
7566 | ||
7567 | self = self; | |
efc5f224 | 7568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetEditControl",_kwnames,&_argo0)) |
d5c9047a | 7569 | return NULL; |
1d99702e RD |
7570 | if (_argo0) { |
7571 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7572 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7573 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetEditControl. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7574 | return NULL; |
7575 | } | |
7576 | } | |
cf694132 RD |
7577 | { |
7578 | wxPy_BEGIN_ALLOW_THREADS; | |
7579 | _result = (wxTextCtrl *)wxTreeCtrl_GetEditControl(_arg0); | |
7580 | ||
7581 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
7582 | } if (_result) { |
7583 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p"); | |
7584 | _resultobj = Py_BuildValue("s",_ptemp); | |
7585 | } else { | |
7586 | Py_INCREF(Py_None); | |
7587 | _resultobj = Py_None; | |
7588 | } | |
d5c9047a RD |
7589 | return _resultobj; |
7590 | } | |
7591 | ||
7592 | #define wxTreeCtrl_EndEditLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->EndEditLabel(_swigarg0,_swigarg1)) | |
efc5f224 | 7593 | static PyObject *_wrap_wxTreeCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7594 | PyObject * _resultobj; |
f6bcfd97 | 7595 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7596 | wxTreeItemId * _arg1; |
b1462dfa | 7597 | int _arg2 = (int ) FALSE; |
1d99702e RD |
7598 | PyObject * _argo0 = 0; |
7599 | PyObject * _argo1 = 0; | |
efc5f224 | 7600 | char *_kwnames[] = { "self","item","discardChanges", NULL }; |
d5c9047a RD |
7601 | |
7602 | self = self; | |
b1462dfa | 7603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_EndEditLabel",_kwnames,&_argo0,&_argo1,&_arg2)) |
d5c9047a | 7604 | return NULL; |
1d99702e RD |
7605 | if (_argo0) { |
7606 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7607 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7608 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EndEditLabel. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7609 | return NULL; |
7610 | } | |
7611 | } | |
1d99702e RD |
7612 | if (_argo1) { |
7613 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7614 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7615 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EndEditLabel. Expected _wxTreeItemId_p."); |
7616 | return NULL; | |
7617 | } | |
7618 | } | |
cf694132 RD |
7619 | { |
7620 | wxPy_BEGIN_ALLOW_THREADS; | |
7621 | wxTreeCtrl_EndEditLabel(_arg0,*_arg1,_arg2); | |
7622 | ||
7623 | wxPy_END_ALLOW_THREADS; | |
7624 | } Py_INCREF(Py_None); | |
d5c9047a | 7625 | _resultobj = Py_None; |
8ab979d7 RD |
7626 | return _resultobj; |
7627 | } | |
7628 | ||
d426c97e RD |
7629 | #define wxTreeCtrl_SortChildren(_swigobj,_swigarg0) (_swigobj->SortChildren(_swigarg0)) |
7630 | static PyObject *_wrap_wxTreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7631 | PyObject * _resultobj; | |
f6bcfd97 | 7632 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
7633 | wxTreeItemId * _arg1; |
7634 | PyObject * _argo0 = 0; | |
7635 | PyObject * _argo1 = 0; | |
7636 | char *_kwnames[] = { "self","item", NULL }; | |
7637 | ||
7638 | self = self; | |
7639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SortChildren",_kwnames,&_argo0,&_argo1)) | |
7640 | return NULL; | |
7641 | if (_argo0) { | |
7642 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7643 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7644 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SortChildren. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
7645 | return NULL; |
7646 | } | |
7647 | } | |
7648 | if (_argo1) { | |
7649 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7650 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7651 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SortChildren. Expected _wxTreeItemId_p."); | |
7652 | return NULL; | |
7653 | } | |
7654 | } | |
7655 | { | |
7656 | wxPy_BEGIN_ALLOW_THREADS; | |
7657 | wxTreeCtrl_SortChildren(_arg0,*_arg1); | |
7658 | ||
7659 | wxPy_END_ALLOW_THREADS; | |
7660 | } Py_INCREF(Py_None); | |
7661 | _resultobj = Py_None; | |
7662 | return _resultobj; | |
7663 | } | |
7664 | ||
b8b8dda7 | 7665 | #define wxTreeCtrl_SetItemBold(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBold(_swigarg0,_swigarg1)) |
efc5f224 | 7666 | static PyObject *_wrap_wxTreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 | 7667 | PyObject * _resultobj; |
f6bcfd97 | 7668 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 7669 | wxTreeItemId * _arg1; |
b1462dfa | 7670 | int _arg2 = (int ) TRUE; |
1d99702e RD |
7671 | PyObject * _argo0 = 0; |
7672 | PyObject * _argo1 = 0; | |
efc5f224 | 7673 | char *_kwnames[] = { "self","item","bold", NULL }; |
b8b8dda7 RD |
7674 | |
7675 | self = self; | |
b1462dfa | 7676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemBold",_kwnames,&_argo0,&_argo1,&_arg2)) |
b8b8dda7 | 7677 | return NULL; |
1d99702e RD |
7678 | if (_argo0) { |
7679 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7680 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7681 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBold. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
7682 | return NULL; |
7683 | } | |
7684 | } | |
1d99702e RD |
7685 | if (_argo1) { |
7686 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7687 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
b8b8dda7 RD |
7688 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBold. Expected _wxTreeItemId_p."); |
7689 | return NULL; | |
7690 | } | |
7691 | } | |
cf694132 RD |
7692 | { |
7693 | wxPy_BEGIN_ALLOW_THREADS; | |
7694 | wxTreeCtrl_SetItemBold(_arg0,*_arg1,_arg2); | |
7695 | ||
7696 | wxPy_END_ALLOW_THREADS; | |
7697 | } Py_INCREF(Py_None); | |
b8b8dda7 RD |
7698 | _resultobj = Py_None; |
7699 | return _resultobj; | |
7700 | } | |
7701 | ||
7702 | #define wxTreeCtrl_IsBold(_swigobj,_swigarg0) (_swigobj->IsBold(_swigarg0)) | |
efc5f224 | 7703 | static PyObject *_wrap_wxTreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
7704 | PyObject * _resultobj; |
7705 | bool _result; | |
f6bcfd97 | 7706 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 7707 | wxTreeItemId * _arg1; |
1d99702e RD |
7708 | PyObject * _argo0 = 0; |
7709 | PyObject * _argo1 = 0; | |
efc5f224 | 7710 | char *_kwnames[] = { "self","item", NULL }; |
b8b8dda7 RD |
7711 | |
7712 | self = self; | |
efc5f224 | 7713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsBold",_kwnames,&_argo0,&_argo1)) |
b8b8dda7 | 7714 | return NULL; |
1d99702e RD |
7715 | if (_argo0) { |
7716 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7717 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7718 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsBold. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
7719 | return NULL; |
7720 | } | |
7721 | } | |
1d99702e RD |
7722 | if (_argo1) { |
7723 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7724 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
b8b8dda7 RD |
7725 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsBold. Expected _wxTreeItemId_p."); |
7726 | return NULL; | |
7727 | } | |
7728 | } | |
cf694132 RD |
7729 | { |
7730 | wxPy_BEGIN_ALLOW_THREADS; | |
7731 | _result = (bool )wxTreeCtrl_IsBold(_arg0,*_arg1); | |
7732 | ||
7733 | wxPy_END_ALLOW_THREADS; | |
7734 | } _resultobj = Py_BuildValue("i",_result); | |
b8b8dda7 RD |
7735 | return _resultobj; |
7736 | } | |
7737 | ||
164b735b | 7738 | #define wxTreeCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) |
efc5f224 | 7739 | static PyObject *_wrap_wxTreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
7740 | PyObject * _resultobj; |
7741 | wxTreeItemId * _result; | |
f6bcfd97 | 7742 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 7743 | wxPoint * _arg1; |
164b735b RD |
7744 | int * _arg2; |
7745 | int temp; | |
1d99702e | 7746 | PyObject * _argo0 = 0; |
164b735b | 7747 | wxPoint temp0; |
2f90df85 | 7748 | PyObject * _obj1 = 0; |
efc5f224 | 7749 | char *_kwnames[] = { "self","point", NULL }; |
b8b8dda7 RD |
7750 | char _ptemp[128]; |
7751 | ||
7752 | self = self; | |
164b735b RD |
7753 | { |
7754 | _arg2 = &temp; | |
7755 | } | |
2f90df85 | 7756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_HitTest",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 7757 | return NULL; |
1d99702e RD |
7758 | if (_argo0) { |
7759 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7760 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7761 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_HitTest. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
7762 | return NULL; |
7763 | } | |
7764 | } | |
2f90df85 | 7765 | { |
164b735b | 7766 | _arg1 = &temp0; |
2f90df85 | 7767 | if (! wxPoint_helper(_obj1, &_arg1)) |
b8b8dda7 | 7768 | return NULL; |
2f90df85 | 7769 | } |
cf694132 RD |
7770 | { |
7771 | wxPy_BEGIN_ALLOW_THREADS; | |
164b735b | 7772 | _result = new wxTreeItemId (wxTreeCtrl_HitTest(_arg0,*_arg1,*_arg2)); |
cf694132 RD |
7773 | |
7774 | wxPy_END_ALLOW_THREADS; | |
7775 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
b8b8dda7 | 7776 | _resultobj = Py_BuildValue("s",_ptemp); |
164b735b RD |
7777 | { |
7778 | PyObject *o; | |
7779 | o = PyInt_FromLong((long) (*_arg2)); | |
7780 | _resultobj = t_output_helper(_resultobj, o); | |
7781 | } | |
b8b8dda7 RD |
7782 | return _resultobj; |
7783 | } | |
7784 | ||
b7e72427 RD |
7785 | #define wxTreeCtrl_SetItemTextColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemTextColour(_swigarg0,_swigarg1)) |
7786 | static PyObject *_wrap_wxTreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7787 | PyObject * _resultobj; | |
f6bcfd97 | 7788 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
7789 | wxTreeItemId * _arg1; |
7790 | wxColour * _arg2; | |
7791 | PyObject * _argo0 = 0; | |
7792 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
7793 | wxColour temp; |
7794 | PyObject * _obj2 = 0; | |
b7e72427 RD |
7795 | char *_kwnames[] = { "self","item","col", NULL }; |
7796 | ||
7797 | self = self; | |
f6bcfd97 | 7798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemTextColour",_kwnames,&_argo0,&_argo1,&_obj2)) |
b7e72427 RD |
7799 | return NULL; |
7800 | if (_argo0) { | |
7801 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7802 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7803 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemTextColour. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
7804 | return NULL; |
7805 | } | |
7806 | } | |
7807 | if (_argo1) { | |
7808 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7809 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7810 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemTextColour. Expected _wxTreeItemId_p."); | |
7811 | return NULL; | |
7812 | } | |
7813 | } | |
f6bcfd97 BP |
7814 | { |
7815 | _arg2 = &temp; | |
7816 | if (! wxColour_helper(_obj2, &_arg2)) | |
b7e72427 | 7817 | return NULL; |
f6bcfd97 | 7818 | } |
b7e72427 RD |
7819 | { |
7820 | wxPy_BEGIN_ALLOW_THREADS; | |
7821 | wxTreeCtrl_SetItemTextColour(_arg0,*_arg1,*_arg2); | |
7822 | ||
7823 | wxPy_END_ALLOW_THREADS; | |
7824 | } Py_INCREF(Py_None); | |
7825 | _resultobj = Py_None; | |
7826 | return _resultobj; | |
7827 | } | |
7828 | ||
7829 | #define wxTreeCtrl_SetItemBackgroundColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBackgroundColour(_swigarg0,_swigarg1)) | |
7830 | static PyObject *_wrap_wxTreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7831 | PyObject * _resultobj; | |
f6bcfd97 | 7832 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
7833 | wxTreeItemId * _arg1; |
7834 | wxColour * _arg2; | |
7835 | PyObject * _argo0 = 0; | |
7836 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
7837 | wxColour temp; |
7838 | PyObject * _obj2 = 0; | |
b7e72427 RD |
7839 | char *_kwnames[] = { "self","item","col", NULL }; |
7840 | ||
7841 | self = self; | |
f6bcfd97 | 7842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemBackgroundColour",_kwnames,&_argo0,&_argo1,&_obj2)) |
b7e72427 RD |
7843 | return NULL; |
7844 | if (_argo0) { | |
7845 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7846 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7847 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
7848 | return NULL; |
7849 | } | |
7850 | } | |
7851 | if (_argo1) { | |
7852 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7853 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7854 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxTreeItemId_p."); | |
7855 | return NULL; | |
7856 | } | |
7857 | } | |
f6bcfd97 BP |
7858 | { |
7859 | _arg2 = &temp; | |
7860 | if (! wxColour_helper(_obj2, &_arg2)) | |
b7e72427 | 7861 | return NULL; |
f6bcfd97 | 7862 | } |
b7e72427 RD |
7863 | { |
7864 | wxPy_BEGIN_ALLOW_THREADS; | |
7865 | wxTreeCtrl_SetItemBackgroundColour(_arg0,*_arg1,*_arg2); | |
7866 | ||
7867 | wxPy_END_ALLOW_THREADS; | |
7868 | } Py_INCREF(Py_None); | |
7869 | _resultobj = Py_None; | |
7870 | return _resultobj; | |
7871 | } | |
7872 | ||
7873 | #define wxTreeCtrl_SetItemFont(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemFont(_swigarg0,_swigarg1)) | |
7874 | static PyObject *_wrap_wxTreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7875 | PyObject * _resultobj; | |
f6bcfd97 | 7876 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
7877 | wxTreeItemId * _arg1; |
7878 | wxFont * _arg2; | |
7879 | PyObject * _argo0 = 0; | |
7880 | PyObject * _argo1 = 0; | |
7881 | PyObject * _argo2 = 0; | |
7882 | char *_kwnames[] = { "self","item","font", NULL }; | |
7883 | ||
7884 | self = self; | |
7885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemFont",_kwnames,&_argo0,&_argo1,&_argo2)) | |
7886 | return NULL; | |
7887 | if (_argo0) { | |
7888 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7889 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7890 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemFont. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
7891 | return NULL; |
7892 | } | |
7893 | } | |
7894 | if (_argo1) { | |
7895 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7896 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7897 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemFont. Expected _wxTreeItemId_p."); | |
7898 | return NULL; | |
7899 | } | |
7900 | } | |
7901 | if (_argo2) { | |
7902 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7903 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
7904 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemFont. Expected _wxFont_p."); | |
7905 | return NULL; | |
7906 | } | |
7907 | } | |
7908 | { | |
7909 | wxPy_BEGIN_ALLOW_THREADS; | |
7910 | wxTreeCtrl_SetItemFont(_arg0,*_arg1,*_arg2); | |
7911 | ||
7912 | wxPy_END_ALLOW_THREADS; | |
7913 | } Py_INCREF(Py_None); | |
7914 | _resultobj = Py_None; | |
7915 | return _resultobj; | |
7916 | } | |
7917 | ||
b1462dfa RD |
7918 | #define wxTreeCtrl_SetItemDropHighlight(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemDropHighlight(_swigarg0,_swigarg1)) |
7919 | static PyObject *_wrap_wxTreeCtrl_SetItemDropHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7920 | PyObject * _resultobj; | |
f6bcfd97 | 7921 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
7922 | wxTreeItemId * _arg1; |
7923 | int _arg2 = (int ) TRUE; | |
7924 | PyObject * _argo0 = 0; | |
7925 | PyObject * _argo1 = 0; | |
7926 | char *_kwnames[] = { "self","item","highlight", NULL }; | |
7927 | ||
7928 | self = self; | |
7929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemDropHighlight",_kwnames,&_argo0,&_argo1,&_arg2)) | |
7930 | return NULL; | |
7931 | if (_argo0) { | |
7932 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7933 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7934 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemDropHighlight. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
7935 | return NULL; |
7936 | } | |
7937 | } | |
7938 | if (_argo1) { | |
7939 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7940 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemDropHighlight. Expected _wxTreeItemId_p."); | |
7942 | return NULL; | |
7943 | } | |
7944 | } | |
7945 | { | |
7946 | wxPy_BEGIN_ALLOW_THREADS; | |
7947 | wxTreeCtrl_SetItemDropHighlight(_arg0,*_arg1,_arg2); | |
7948 | ||
7949 | wxPy_END_ALLOW_THREADS; | |
7950 | } Py_INCREF(Py_None); | |
7951 | _resultobj = Py_None; | |
7952 | return _resultobj; | |
7953 | } | |
7954 | ||
f6bcfd97 | 7955 | static PyObject * wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,const wxTreeItemId & item,int textOnly) { |
d426c97e | 7956 | wxRect rect; |
164b735b RD |
7957 | if (self->GetBoundingRect(item, rect, textOnly)) { |
7958 | bool doSave = wxPyRestoreThread(); | |
7959 | wxRect* r = new wxRect(rect); | |
7960 | PyObject* val = wxPyConstructObject((void*)r, "wxRect"); | |
7961 | wxPySaveThread(doSave); | |
7962 | return val; | |
7963 | } | |
d426c97e RD |
7964 | else { |
7965 | Py_INCREF(Py_None); | |
7966 | return Py_None; | |
7967 | } | |
7968 | } | |
7969 | static PyObject *_wrap_wxTreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7970 | PyObject * _resultobj; | |
7971 | PyObject * _result; | |
f6bcfd97 | 7972 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
7973 | wxTreeItemId * _arg1; |
7974 | int _arg2 = (int ) FALSE; | |
7975 | PyObject * _argo0 = 0; | |
7976 | PyObject * _argo1 = 0; | |
7977 | char *_kwnames[] = { "self","item","textOnly", NULL }; | |
7978 | ||
7979 | self = self; | |
7980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetBoundingRect",_kwnames,&_argo0,&_argo1,&_arg2)) | |
7981 | return NULL; | |
7982 | if (_argo0) { | |
7983 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7984 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7985 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetBoundingRect. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
7986 | return NULL; |
7987 | } | |
7988 | } | |
7989 | if (_argo1) { | |
7990 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7991 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7992 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetBoundingRect. Expected _wxTreeItemId_p."); | |
7993 | return NULL; | |
7994 | } | |
7995 | } | |
7996 | { | |
7997 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 7998 | _result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(_arg0,*_arg1,_arg2); |
d426c97e RD |
7999 | |
8000 | wxPy_END_ALLOW_THREADS; | |
8001 | }{ | |
8002 | _resultobj = _result; | |
8003 | } | |
8004 | return _resultobj; | |
8005 | } | |
8006 | ||
8ab979d7 | 8007 | static PyMethodDef controls2cMethods[] = { |
d426c97e | 8008 | { "wxTreeCtrl_GetBoundingRect", (PyCFunction) _wrap_wxTreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 8009 | { "wxTreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_wxTreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 RD |
8010 | { "wxTreeCtrl_SetItemFont", (PyCFunction) _wrap_wxTreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, |
8011 | { "wxTreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8012 | { "wxTreeCtrl_SetItemTextColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
8013 | { "wxTreeCtrl_HitTest", (PyCFunction) _wrap_wxTreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
8014 | { "wxTreeCtrl_IsBold", (PyCFunction) _wrap_wxTreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
8015 | { "wxTreeCtrl_SetItemBold", (PyCFunction) _wrap_wxTreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 8016 | { "wxTreeCtrl_SortChildren", (PyCFunction) _wrap_wxTreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8017 | { "wxTreeCtrl_EndEditLabel", (PyCFunction) _wrap_wxTreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, |
8018 | { "wxTreeCtrl_GetEditControl", (PyCFunction) _wrap_wxTreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
8019 | { "wxTreeCtrl_EditLabel", (PyCFunction) _wrap_wxTreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
8020 | { "wxTreeCtrl_ScrollTo", (PyCFunction) _wrap_wxTreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
8021 | { "wxTreeCtrl_EnsureVisible", (PyCFunction) _wrap_wxTreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
8022 | { "wxTreeCtrl_SelectItem", (PyCFunction) _wrap_wxTreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
8023 | { "wxTreeCtrl_UnselectAll", (PyCFunction) _wrap_wxTreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, | |
8024 | { "wxTreeCtrl_Unselect", (PyCFunction) _wrap_wxTreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
8025 | { "wxTreeCtrl_Toggle", (PyCFunction) _wrap_wxTreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
8026 | { "wxTreeCtrl_CollapseAndReset", (PyCFunction) _wrap_wxTreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
8027 | { "wxTreeCtrl_Collapse", (PyCFunction) _wrap_wxTreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
8028 | { "wxTreeCtrl_Expand", (PyCFunction) _wrap_wxTreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
8029 | { "wxTreeCtrl_DeleteAllItems", (PyCFunction) _wrap_wxTreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
8030 | { "wxTreeCtrl_DeleteChildren", (PyCFunction) _wrap_wxTreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
8031 | { "wxTreeCtrl_Delete", (PyCFunction) _wrap_wxTreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
8032 | { "wxTreeCtrl_AppendItem", (PyCFunction) _wrap_wxTreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 8033 | { "wxTreeCtrl_InsertItemBefore", (PyCFunction) _wrap_wxTreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8034 | { "wxTreeCtrl_InsertItem", (PyCFunction) _wrap_wxTreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, |
8035 | { "wxTreeCtrl_PrependItem", (PyCFunction) _wrap_wxTreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
8036 | { "wxTreeCtrl_AddRoot", (PyCFunction) _wrap_wxTreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 8037 | { "wxTreeCtrl_GetLastChild", (PyCFunction) _wrap_wxTreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8038 | { "wxTreeCtrl_GetPrevVisible", (PyCFunction) _wrap_wxTreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, |
8039 | { "wxTreeCtrl_GetNextVisible", (PyCFunction) _wrap_wxTreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
8040 | { "wxTreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_wxTreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
8041 | { "wxTreeCtrl_GetPrevSibling", (PyCFunction) _wrap_wxTreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
8042 | { "wxTreeCtrl_GetNextSibling", (PyCFunction) _wrap_wxTreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
8043 | { "wxTreeCtrl_GetNextChild", (PyCFunction) _wrap_wxTreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
8044 | { "wxTreeCtrl_GetFirstChild", (PyCFunction) _wrap_wxTreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
8045 | { "wxTreeCtrl_GetChildrenCount", (PyCFunction) _wrap_wxTreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 8046 | { "wxTreeCtrl_GetSelections", (PyCFunction) _wrap_wxTreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 8047 | { "wxTreeCtrl_GetItemParent", (PyCFunction) _wrap_wxTreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8048 | { "wxTreeCtrl_GetSelection", (PyCFunction) _wrap_wxTreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, |
8049 | { "wxTreeCtrl_GetRootItem", (PyCFunction) _wrap_wxTreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
8050 | { "wxTreeCtrl_IsSelected", (PyCFunction) _wrap_wxTreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
8051 | { "wxTreeCtrl_IsExpanded", (PyCFunction) _wrap_wxTreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
8052 | { "wxTreeCtrl_ItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
8053 | { "wxTreeCtrl_IsVisible", (PyCFunction) _wrap_wxTreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
8054 | { "wxTreeCtrl_SetPyData", (PyCFunction) _wrap_wxTreeCtrl_SetPyData, METH_VARARGS | METH_KEYWORDS }, | |
8055 | { "wxTreeCtrl_GetPyData", (PyCFunction) _wrap_wxTreeCtrl_GetPyData, METH_VARARGS | METH_KEYWORDS }, | |
8056 | { "wxTreeCtrl_SetItemData", (PyCFunction) _wrap_wxTreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
8057 | { "wxTreeCtrl_GetItemData", (PyCFunction) _wrap_wxTreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
8058 | { "wxTreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
8059 | { "wxTreeCtrl_SetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
8060 | { "wxTreeCtrl_SetItemImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
8061 | { "wxTreeCtrl_SetItemText", (PyCFunction) _wrap_wxTreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
8062 | { "wxTreeCtrl_GetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
8063 | { "wxTreeCtrl_GetItemImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
8064 | { "wxTreeCtrl_GetItemText", (PyCFunction) _wrap_wxTreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
8065 | { "wxTreeCtrl_SetSpacing", (PyCFunction) _wrap_wxTreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, |
8066 | { "wxTreeCtrl_GetSpacing", (PyCFunction) _wrap_wxTreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
8067 | { "wxTreeCtrl_SetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, |
8068 | { "wxTreeCtrl_SetImageList", (PyCFunction) _wrap_wxTreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
8069 | { "wxTreeCtrl_GetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
8070 | { "wxTreeCtrl_GetImageList", (PyCFunction) _wrap_wxTreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
8071 | { "wxTreeCtrl_SetIndent", (PyCFunction) _wrap_wxTreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
8072 | { "wxTreeCtrl_GetIndent", (PyCFunction) _wrap_wxTreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
8073 | { "wxTreeCtrl_GetCount", (PyCFunction) _wrap_wxTreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
1b62f00d | 8074 | { "wxTreeCtrl_AssignImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 | 8075 | { "wxTreeCtrl__setSelf", (PyCFunction) _wrap_wxTreeCtrl__setSelf, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8076 | { "new_wxTreeCtrl", (PyCFunction) _wrap_new_wxTreeCtrl, METH_VARARGS | METH_KEYWORDS }, |
8077 | { "wxTreeEvent_GetLabel", (PyCFunction) _wrap_wxTreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
8078 | { "wxTreeEvent_GetCode", (PyCFunction) _wrap_wxTreeEvent_GetCode, METH_VARARGS | METH_KEYWORDS }, | |
8079 | { "wxTreeEvent_GetPoint", (PyCFunction) _wrap_wxTreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
8080 | { "wxTreeEvent_GetOldItem", (PyCFunction) _wrap_wxTreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
8081 | { "wxTreeEvent_GetItem", (PyCFunction) _wrap_wxTreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
8082 | { "wxTreeItemData_SetId", (PyCFunction) _wrap_wxTreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, | |
8083 | { "wxTreeItemData_GetId", (PyCFunction) _wrap_wxTreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
8084 | { "wxTreeItemData_SetData", (PyCFunction) _wrap_wxTreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
8085 | { "wxTreeItemData_GetData", (PyCFunction) _wrap_wxTreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
8086 | { "new_wxTreeItemData", (PyCFunction) _wrap_new_wxTreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 8087 | { "wxTreeItemId___cmp__", (PyCFunction) _wrap_wxTreeItemId___cmp__, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8088 | { "wxTreeItemId_IsOk", (PyCFunction) _wrap_wxTreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, |
8089 | { "delete_wxTreeItemId", (PyCFunction) _wrap_delete_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
8090 | { "new_wxTreeItemId", (PyCFunction) _wrap_new_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
dcd38683 | 8091 | { "wxListCtrl_SortItems", (PyCFunction) _wrap_wxListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8092 | { "wxListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_wxListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, |
8093 | { "wxListCtrl_SetSingleStyle", (PyCFunction) _wrap_wxListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
8094 | { "wxListCtrl_SetItemText", (PyCFunction) _wrap_wxListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
8095 | { "wxListCtrl_SetItemState", (PyCFunction) _wrap_wxListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
8096 | { "wxListCtrl_SetItemPosition", (PyCFunction) _wrap_wxListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
8097 | { "wxListCtrl_SetItemImage", (PyCFunction) _wrap_wxListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
8098 | { "wxListCtrl_SetItemData", (PyCFunction) _wrap_wxListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
8099 | { "wxListCtrl_SetStringItem", (PyCFunction) _wrap_wxListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
8100 | { "wxListCtrl_SetItem", (PyCFunction) _wrap_wxListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
8101 | { "wxListCtrl_SetImageList", (PyCFunction) _wrap_wxListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
8102 | { "wxListCtrl_SetColumnWidth", (PyCFunction) _wrap_wxListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
8103 | { "wxListCtrl_SetColumn", (PyCFunction) _wrap_wxListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
8104 | { "wxListCtrl_SetBackgroundColour", (PyCFunction) _wrap_wxListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8105 | { "wxListCtrl_ScrollList", (PyCFunction) _wrap_wxListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, | |
8106 | { "wxListCtrl_InsertImageStringItem", (PyCFunction) _wrap_wxListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, | |
8107 | { "wxListCtrl_InsertImageItem", (PyCFunction) _wrap_wxListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
8108 | { "wxListCtrl_InsertStringItem", (PyCFunction) _wrap_wxListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
8109 | { "wxListCtrl_InsertItem", (PyCFunction) _wrap_wxListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
8110 | { "wxListCtrl_InsertColumn", (PyCFunction) _wrap_wxListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
c368d904 | 8111 | { "wxListCtrl_InsertColumnInfo", (PyCFunction) _wrap_wxListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8112 | { "wxListCtrl_HitTest", (PyCFunction) _wrap_wxListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
8113 | { "wxListCtrl_GetTopItem", (PyCFunction) _wrap_wxListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
8114 | { "wxListCtrl_SetTextColour", (PyCFunction) _wrap_wxListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8115 | { "wxListCtrl_GetTextColour", (PyCFunction) _wrap_wxListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8116 | { "wxListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_wxListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
8117 | { "wxListCtrl_GetNextItem", (PyCFunction) _wrap_wxListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
8118 | { "wxListCtrl_GetItemText", (PyCFunction) _wrap_wxListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
8119 | { "wxListCtrl_GetItemSpacing", (PyCFunction) _wrap_wxListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
8120 | { "wxListCtrl_GetItemCount", (PyCFunction) _wrap_wxListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
8121 | { "wxListCtrl_GetItemState", (PyCFunction) _wrap_wxListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
8122 | { "wxListCtrl_GetItemRect", (PyCFunction) _wrap_wxListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
8123 | { "wxListCtrl_GetItemPosition", (PyCFunction) _wrap_wxListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
8124 | { "wxListCtrl_GetItem", (PyCFunction) _wrap_wxListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
8125 | { "wxListCtrl_GetItemData", (PyCFunction) _wrap_wxListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
8126 | { "wxListCtrl_GetImageList", (PyCFunction) _wrap_wxListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
8127 | { "wxListCtrl_GetCountPerPage", (PyCFunction) _wrap_wxListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
8128 | { "wxListCtrl_GetColumnWidth", (PyCFunction) _wrap_wxListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
8129 | { "wxListCtrl_GetColumn", (PyCFunction) _wrap_wxListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
8130 | { "wxListCtrl_FindItemAtPos", (PyCFunction) _wrap_wxListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, | |
8131 | { "wxListCtrl_FindItemData", (PyCFunction) _wrap_wxListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
8132 | { "wxListCtrl_FindItem", (PyCFunction) _wrap_wxListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
8133 | { "wxListCtrl_EnsureVisible", (PyCFunction) _wrap_wxListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
8134 | { "wxListCtrl_GetEditControl", (PyCFunction) _wrap_wxListCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
8135 | { "wxListCtrl_EndEditLabel", (PyCFunction) _wrap_wxListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, | |
8136 | { "wxListCtrl_EditLabel", (PyCFunction) _wrap_wxListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
8137 | { "wxListCtrl_ClearAll", (PyCFunction) _wrap_wxListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, | |
8138 | { "wxListCtrl_DeleteAllColumns", (PyCFunction) _wrap_wxListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
8139 | { "wxListCtrl_DeleteColumn", (PyCFunction) _wrap_wxListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
8140 | { "wxListCtrl_DeleteAllItems", (PyCFunction) _wrap_wxListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
8141 | { "wxListCtrl_DeleteItem", (PyCFunction) _wrap_wxListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
1b62f00d | 8142 | { "wxListCtrl_AssignImageList", (PyCFunction) _wrap_wxListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8143 | { "wxListCtrl_Arrange", (PyCFunction) _wrap_wxListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, |
8144 | { "new_wxListCtrl", (PyCFunction) _wrap_new_wxListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
8145 | { "wxListEvent_GetItem", (PyCFunction) _wrap_wxListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, |
8146 | { "wxListEvent_GetMask", (PyCFunction) _wrap_wxListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
8147 | { "wxListEvent_GetData", (PyCFunction) _wrap_wxListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
8148 | { "wxListEvent_GetImage", (PyCFunction) _wrap_wxListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
8149 | { "wxListEvent_GetText", (PyCFunction) _wrap_wxListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
8150 | { "wxListEvent_GetLabel", (PyCFunction) _wrap_wxListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
8151 | { "wxListEvent_GetPoint", (PyCFunction) _wrap_wxListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
8152 | { "wxListEvent_Cancelled", (PyCFunction) _wrap_wxListEvent_Cancelled, METH_VARARGS | METH_KEYWORDS }, | |
8153 | { "wxListEvent_GetColumn", (PyCFunction) _wrap_wxListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
8154 | { "wxListEvent_GetOldItem", (PyCFunction) _wrap_wxListEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
8155 | { "wxListEvent_GetOldIndex", (PyCFunction) _wrap_wxListEvent_GetOldIndex, METH_VARARGS | METH_KEYWORDS }, | |
8156 | { "wxListEvent_GetIndex", (PyCFunction) _wrap_wxListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
8157 | { "wxListEvent_GetCode", (PyCFunction) _wrap_wxListEvent_GetCode, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
8158 | { "wxListEvent_m_item_get", (PyCFunction) _wrap_wxListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, |
8159 | { "wxListEvent_m_item_set", (PyCFunction) _wrap_wxListEvent_m_item_set, METH_VARARGS | METH_KEYWORDS }, | |
8160 | { "wxListEvent_m_pointDrag_get", (PyCFunction) _wrap_wxListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, | |
8161 | { "wxListEvent_m_pointDrag_set", (PyCFunction) _wrap_wxListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS }, | |
8162 | { "wxListEvent_m_cancelled_get", (PyCFunction) _wrap_wxListEvent_m_cancelled_get, METH_VARARGS | METH_KEYWORDS }, | |
8163 | { "wxListEvent_m_cancelled_set", (PyCFunction) _wrap_wxListEvent_m_cancelled_set, METH_VARARGS | METH_KEYWORDS }, | |
8164 | { "wxListEvent_m_col_get", (PyCFunction) _wrap_wxListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
8165 | { "wxListEvent_m_col_set", (PyCFunction) _wrap_wxListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
8166 | { "wxListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
8167 | { "wxListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
8168 | { "wxListEvent_m_itemIndex_get", (PyCFunction) _wrap_wxListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
8169 | { "wxListEvent_m_itemIndex_set", (PyCFunction) _wrap_wxListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
8170 | { "wxListEvent_m_code_get", (PyCFunction) _wrap_wxListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, | |
8171 | { "wxListEvent_m_code_set", (PyCFunction) _wrap_wxListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
8172 | { "wxListItem_m_width_get", (PyCFunction) _wrap_wxListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, |
8173 | { "wxListItem_m_width_set", (PyCFunction) _wrap_wxListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
8174 | { "wxListItem_m_format_get", (PyCFunction) _wrap_wxListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
8175 | { "wxListItem_m_format_set", (PyCFunction) _wrap_wxListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
8176 | { "wxListItem_m_data_get", (PyCFunction) _wrap_wxListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
8177 | { "wxListItem_m_data_set", (PyCFunction) _wrap_wxListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
8178 | { "wxListItem_m_image_get", (PyCFunction) _wrap_wxListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
8179 | { "wxListItem_m_image_set", (PyCFunction) _wrap_wxListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
8180 | { "wxListItem_m_text_get", (PyCFunction) _wrap_wxListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
8181 | { "wxListItem_m_text_set", (PyCFunction) _wrap_wxListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
8182 | { "wxListItem_m_stateMask_get", (PyCFunction) _wrap_wxListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
8183 | { "wxListItem_m_stateMask_set", (PyCFunction) _wrap_wxListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
8184 | { "wxListItem_m_state_get", (PyCFunction) _wrap_wxListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
8185 | { "wxListItem_m_state_set", (PyCFunction) _wrap_wxListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
8186 | { "wxListItem_m_col_get", (PyCFunction) _wrap_wxListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
8187 | { "wxListItem_m_col_set", (PyCFunction) _wrap_wxListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
8188 | { "wxListItem_m_itemId_get", (PyCFunction) _wrap_wxListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
8189 | { "wxListItem_m_itemId_set", (PyCFunction) _wrap_wxListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
8190 | { "wxListItem_m_mask_get", (PyCFunction) _wrap_wxListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
8191 | { "wxListItem_m_mask_set", (PyCFunction) _wrap_wxListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
8192 | { "wxListItem_GetFont", (PyCFunction) _wrap_wxListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, |
8193 | { "wxListItem_GetBackgroundColour", (PyCFunction) _wrap_wxListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8194 | { "wxListItem_GetTextColour", (PyCFunction) _wrap_wxListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8195 | { "wxListItem_HasAttributes", (PyCFunction) _wrap_wxListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
8196 | { "wxListItem_GetAttributes", (PyCFunction) _wrap_wxListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
8197 | { "wxListItem_GetAlign", (PyCFunction) _wrap_wxListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
8198 | { "wxListItem_GetWidth", (PyCFunction) _wrap_wxListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
8199 | { "wxListItem_GetData", (PyCFunction) _wrap_wxListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
8200 | { "wxListItem_GetImage", (PyCFunction) _wrap_wxListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
8201 | { "wxListItem_GetText", (PyCFunction) _wrap_wxListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
8202 | { "wxListItem_GetState", (PyCFunction) _wrap_wxListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
8203 | { "wxListItem_GetColumn", (PyCFunction) _wrap_wxListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
8204 | { "wxListItem_GetId", (PyCFunction) _wrap_wxListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
8205 | { "wxListItem_GetMask", (PyCFunction) _wrap_wxListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
8206 | { "wxListItem_SetFont", (PyCFunction) _wrap_wxListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
8207 | { "wxListItem_SetBackgroundColour", (PyCFunction) _wrap_wxListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8208 | { "wxListItem_SetTextColour", (PyCFunction) _wrap_wxListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8209 | { "wxListItem_SetAlign", (PyCFunction) _wrap_wxListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
8210 | { "wxListItem_SetWidth", (PyCFunction) _wrap_wxListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
8211 | { "wxListItem_SetData", (PyCFunction) _wrap_wxListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
8212 | { "wxListItem_SetImage", (PyCFunction) _wrap_wxListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
8213 | { "wxListItem_SetText", (PyCFunction) _wrap_wxListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
8214 | { "wxListItem_SetStateMask", (PyCFunction) _wrap_wxListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
8215 | { "wxListItem_SetState", (PyCFunction) _wrap_wxListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
8216 | { "wxListItem_SetColumn", (PyCFunction) _wrap_wxListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
8217 | { "wxListItem_SetId", (PyCFunction) _wrap_wxListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
8218 | { "wxListItem_SetMask", (PyCFunction) _wrap_wxListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
8219 | { "wxListItem_ClearAttributes", (PyCFunction) _wrap_wxListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
8220 | { "wxListItem_Clear", (PyCFunction) _wrap_wxListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
8221 | { "delete_wxListItem", (PyCFunction) _wrap_delete_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
8222 | { "new_wxListItem", (PyCFunction) _wrap_new_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
8223 | { "wxListItemAttr_GetFont", (PyCFunction) _wrap_wxListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
8224 | { "wxListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8225 | { "wxListItemAttr_GetTextColour", (PyCFunction) _wrap_wxListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8226 | { "wxListItemAttr_HasFont", (PyCFunction) _wrap_wxListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
8227 | { "wxListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8228 | { "wxListItemAttr_HasTextColour", (PyCFunction) _wrap_wxListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8229 | { "wxListItemAttr_SetFont", (PyCFunction) _wrap_wxListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
8230 | { "wxListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8231 | { "wxListItemAttr_SetTextColour", (PyCFunction) _wrap_wxListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8232 | { "new_wxListItemAttr", (PyCFunction) _wrap_new_wxListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
8ab979d7 RD |
8233 | { NULL, NULL } |
8234 | }; | |
1d99702e RD |
8235 | #ifdef __cplusplus |
8236 | } | |
8237 | #endif | |
8238 | /* | |
8239 | * This table is used by the pointer type-checker | |
8240 | */ | |
8241 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
8242 | { "_wxAcceleratorTable","_class_wxAcceleratorTable",0}, | |
8243 | { "_wxEvent","_class_wxTreeEvent",SwigwxTreeEventTowxEvent}, | |
8244 | { "_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent}, | |
8245 | { "_wxEvent","_class_wxListEvent",SwigwxListEventTowxEvent}, | |
8246 | { "_wxEvent","_wxListEvent",SwigwxListEventTowxEvent}, | |
8247 | { "_wxEvent","_class_wxEvent",0}, | |
8248 | { "_class_wxActivateEvent","_wxActivateEvent",0}, | |
8249 | { "_signed_long","_long",0}, | |
8250 | { "_wxMenuEvent","_class_wxMenuEvent",0}, | |
65dd82cb | 8251 | { "_wxPyBitmapDataObject","_class_wxPyBitmapDataObject",0}, |
b1462dfa | 8252 | { "_wxBitmapDataObject","_class_wxBitmapDataObject",0}, |
2f90df85 | 8253 | { "_class_wxPyCommandEvent","_wxPyCommandEvent",0}, |
b1462dfa | 8254 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
8255 | { "_wxPrintQuality","_int",0}, |
8256 | { "_wxPrintQuality","_signed_int",0}, | |
8257 | { "_wxPrintQuality","_unsigned_int",0}, | |
8258 | { "_wxPrintQuality","_wxWindowID",0}, | |
8259 | { "_wxPrintQuality","_uint",0}, | |
8260 | { "_wxPrintQuality","_EBool",0}, | |
8261 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 8262 | { "_wxPrintQuality","_time_t",0}, |
b1462dfa | 8263 | { "_class_wxCustomDataObject","_wxCustomDataObject",0}, |
f6bcfd97 | 8264 | { "_wxSpinCtrl","_class_wxSpinCtrl",0}, |
1d99702e | 8265 | { "_class_wxRegionIterator","_wxRegionIterator",0}, |
b1462dfa | 8266 | { "_class_wxPyTextDropTarget","_wxPyTextDropTarget",0}, |
1d99702e RD |
8267 | { "_class_wxMenuBar","_wxMenuBar",0}, |
8268 | { "_class_wxPyTreeItemData","_wxPyTreeItemData",0}, | |
f6bcfd97 BP |
8269 | { "_class_wxEvtHandler","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, |
8270 | { "_class_wxEvtHandler","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, | |
1d99702e RD |
8271 | { "_class_wxEvtHandler","_class_wxListCtrl",SwigwxListCtrlTowxEvtHandler}, |
8272 | { "_class_wxEvtHandler","_wxListCtrl",SwigwxListCtrlTowxEvtHandler}, | |
8273 | { "_class_wxEvtHandler","_wxEvtHandler",0}, | |
8274 | { "_wxPaintEvent","_class_wxPaintEvent",0}, | |
8275 | { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0}, | |
8276 | { "_wxCursor","_class_wxCursor",0}, | |
8277 | { "_wxNotifyEvent","_class_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, | |
8278 | { "_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, | |
c368d904 RD |
8279 | { "_wxNotifyEvent","_class_wxListEvent",SwigwxListEventTowxNotifyEvent}, |
8280 | { "_wxNotifyEvent","_wxListEvent",SwigwxListEventTowxNotifyEvent}, | |
1d99702e | 8281 | { "_wxNotifyEvent","_class_wxNotifyEvent",0}, |
f6bcfd97 | 8282 | { "_wxPyTreeCtrl","_class_wxPyTreeCtrl",0}, |
1d99702e RD |
8283 | { "_wxMask","_class_wxMask",0}, |
8284 | { "_wxPen","_class_wxPen",0}, | |
8285 | { "_wxUpdateUIEvent","_class_wxUpdateUIEvent",0}, | |
8286 | { "_byte","_unsigned_char",0}, | |
b1462dfa | 8287 | { "_wxDataObject","_class_wxDataObject",0}, |
1d99702e | 8288 | { "_wxStaticBox","_class_wxStaticBox",0}, |
65dd82cb RD |
8289 | { "_wxPyDataObjectSimple","_class_wxPyDataObjectSimple",0}, |
8290 | { "_wxPyDropSource","_class_wxPyDropSource",0}, | |
1d99702e RD |
8291 | { "_wxChoice","_class_wxChoice",0}, |
8292 | { "_wxSlider","_class_wxSlider",0}, | |
1d99702e RD |
8293 | { "_long","_unsigned_long",0}, |
8294 | { "_long","_signed_long",0}, | |
8295 | { "_wxImageList","_class_wxImageList",0}, | |
b1462dfa | 8296 | { "_wxDataObjectSimple","_class_wxDataObjectSimple",0}, |
1d99702e RD |
8297 | { "_wxDropFilesEvent","_class_wxDropFilesEvent",0}, |
8298 | { "_wxBitmapButton","_class_wxBitmapButton",0}, | |
8299 | { "_class_wxAcceleratorTable","_wxAcceleratorTable",0}, | |
b1462dfa | 8300 | { "_class_wxClipboard","_wxClipboard",0}, |
1d99702e RD |
8301 | { "_class_wxGauge","_wxGauge",0}, |
8302 | { "_wxDC","_class_wxDC",0}, | |
b1462dfa | 8303 | { "_class_wxBitmapDataObject","_wxBitmapDataObject",0}, |
1d99702e RD |
8304 | { "_wxListEvent","_class_wxListEvent",0}, |
8305 | { "_wxSpinEvent","_class_wxSpinEvent",0}, | |
b1462dfa | 8306 | { "_size_t","_wxCoord",0}, |
1d99702e | 8307 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 8308 | { "_size_t","_time_t",0}, |
1d99702e RD |
8309 | { "_size_t","_unsigned_int",0}, |
8310 | { "_size_t","_int",0}, | |
8311 | { "_size_t","_wxWindowID",0}, | |
8312 | { "_size_t","_uint",0}, | |
8313 | { "_class_wxRealPoint","_wxRealPoint",0}, | |
48115f4a | 8314 | { "_wxNavigationKeyEvent","_class_wxNavigationKeyEvent",0}, |
48115f4a | 8315 | { "_wxWindowCreateEvent","_class_wxWindowCreateEvent",0}, |
1d99702e RD |
8316 | { "_class_wxMenuItem","_wxMenuItem",0}, |
8317 | { "_class_wxPaintEvent","_wxPaintEvent",0}, | |
8318 | { "_wxSysColourChangedEvent","_class_wxSysColourChangedEvent",0}, | |
8319 | { "_wxPanel","_class_wxPanel",0}, | |
8320 | { "_wxInitDialogEvent","_class_wxInitDialogEvent",0}, | |
8321 | { "_wxCheckBox","_class_wxCheckBox",0}, | |
f6bcfd97 | 8322 | { "_class_wxPyTreeCtrl","_wxPyTreeCtrl",0}, |
1d99702e RD |
8323 | { "_wxPyEvent","_class_wxPyEvent",0}, |
8324 | { "_wxTextCtrl","_class_wxTextCtrl",0}, | |
8325 | { "_class_wxMask","_wxMask",0}, | |
b1462dfa | 8326 | { "_wxTextDataObject","_class_wxTextDataObject",0}, |
1d99702e RD |
8327 | { "_class_wxKeyEvent","_wxKeyEvent",0}, |
8328 | { "_wxColour","_class_wxColour",0}, | |
8329 | { "_class_wxDialog","_wxDialog",0}, | |
b1462dfa | 8330 | { "_class_wxFileDataObject","_wxFileDataObject",0}, |
1d99702e RD |
8331 | { "_wxIdleEvent","_class_wxIdleEvent",0}, |
8332 | { "_class_wxUpdateUIEvent","_wxUpdateUIEvent",0}, | |
b1462dfa | 8333 | { "_class_wxDataObject","_wxDataObject",0}, |
1d99702e RD |
8334 | { "_wxStaticLine","_class_wxStaticLine",0}, |
8335 | { "_wxBrush","_class_wxBrush",0}, | |
b1462dfa RD |
8336 | { "_wxDataFormat","_class_wxDataFormat",0}, |
8337 | { "_class_wxDataObjectSimple","_wxDataObjectSimple",0}, | |
1d99702e | 8338 | { "_wxShowEvent","_class_wxShowEvent",0}, |
b1462dfa | 8339 | { "_uint","_wxCoord",0}, |
1d99702e | 8340 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 8341 | { "_uint","_time_t",0}, |
1d99702e RD |
8342 | { "_uint","_size_t",0}, |
8343 | { "_uint","_unsigned_int",0}, | |
8344 | { "_uint","_int",0}, | |
8345 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 8346 | { "_wxChar","_char",0}, |
2f90df85 | 8347 | { "_wxPyValidator","_class_wxPyValidator",0}, |
1d99702e RD |
8348 | { "_class_wxEvent","_class_wxTreeEvent",SwigwxTreeEventTowxEvent}, |
8349 | { "_class_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent}, | |
8350 | { "_class_wxEvent","_class_wxListEvent",SwigwxListEventTowxEvent}, | |
8351 | { "_class_wxEvent","_wxListEvent",SwigwxListEventTowxEvent}, | |
8352 | { "_class_wxEvent","_wxEvent",0}, | |
8353 | { "_wxCheckListBox","_class_wxCheckListBox",0}, | |
8354 | { "_wxRect","_class_wxRect",0}, | |
8355 | { "_wxCommandEvent","_class_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, | |
8356 | { "_wxCommandEvent","_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, | |
8357 | { "_wxCommandEvent","_class_wxListEvent",SwigwxListEventTowxCommandEvent}, | |
8358 | { "_wxCommandEvent","_wxListEvent",SwigwxListEventTowxCommandEvent}, | |
8359 | { "_wxCommandEvent","_class_wxCommandEvent",0}, | |
8360 | { "_wxSizeEvent","_class_wxSizeEvent",0}, | |
8361 | { "_wxPoint","_class_wxPoint",0}, | |
8362 | { "_class_wxButton","_wxButton",0}, | |
8363 | { "_wxRadioBox","_class_wxRadioBox",0}, | |
f6bcfd97 BP |
8364 | { "_class_wxSpinCtrl","_wxSpinCtrl",0}, |
8365 | { "_char","_wxChar",0}, | |
1d99702e | 8366 | { "_wxBitmap","_class_wxBitmap",0}, |
1d99702e | 8367 | { "_wxWindowDC","_class_wxWindowDC",0}, |
f6bcfd97 | 8368 | { "_wxTimerEvent","_class_wxTimerEvent",0}, |
1d99702e RD |
8369 | { "_wxScrollBar","_class_wxScrollBar",0}, |
8370 | { "_wxSpinButton","_class_wxSpinButton",0}, | |
8371 | { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0}, | |
8372 | { "_class_wxNotifyEvent","_class_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, | |
8373 | { "_class_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, | |
c368d904 RD |
8374 | { "_class_wxNotifyEvent","_class_wxListEvent",SwigwxListEventTowxNotifyEvent}, |
8375 | { "_class_wxNotifyEvent","_wxListEvent",SwigwxListEventTowxNotifyEvent}, | |
1d99702e | 8376 | { "_class_wxNotifyEvent","_wxNotifyEvent",0}, |
2f90df85 | 8377 | { "_class_wxValidator","_wxValidator",0}, |
1d99702e RD |
8378 | { "_class_wxPyEvent","_wxPyEvent",0}, |
8379 | { "_class_wxIconizeEvent","_wxIconizeEvent",0}, | |
8380 | { "_class_wxStaticBitmap","_wxStaticBitmap",0}, | |
8381 | { "_wxListItem","_class_wxListItem",0}, | |
b1462dfa | 8382 | { "_wxDropTarget","_class_wxDropTarget",0}, |
1d99702e RD |
8383 | { "_class_wxStaticLine","_wxStaticLine",0}, |
8384 | { "_wxScrollEvent","_class_wxScrollEvent",0}, | |
b1462dfa | 8385 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
8386 | { "_EBool","_wxPrintQuality",0}, |
8387 | { "_EBool","_signed_int",0}, | |
8388 | { "_EBool","_int",0}, | |
8389 | { "_EBool","_wxWindowID",0}, | |
8390 | { "_class_wxRegion","_wxRegion",0}, | |
b1462dfa | 8391 | { "_class_wxDataFormat","_wxDataFormat",0}, |
1d99702e | 8392 | { "_class_wxDropFilesEvent","_wxDropFilesEvent",0}, |
48115f4a | 8393 | { "_wxWindowDestroyEvent","_class_wxWindowDestroyEvent",0}, |
1d99702e RD |
8394 | { "_wxStaticText","_class_wxStaticText",0}, |
8395 | { "_wxFont","_class_wxFont",0}, | |
b1462dfa | 8396 | { "_class_wxPyDropTarget","_wxPyDropTarget",0}, |
1d99702e | 8397 | { "_wxCloseEvent","_class_wxCloseEvent",0}, |
1d99702e RD |
8398 | { "_unsigned_long","_long",0}, |
8399 | { "_class_wxRect","_wxRect",0}, | |
8400 | { "_class_wxDC","_wxDC",0}, | |
d426c97e | 8401 | { "_wxScrollWinEvent","_class_wxScrollWinEvent",0}, |
48115f4a RD |
8402 | { "_wxQueryNewPaletteEvent","_class_wxQueryNewPaletteEvent",0}, |
8403 | { "_class_wxWindowCreateEvent","_wxWindowCreateEvent",0}, | |
1d99702e | 8404 | { "_class_wxTreeEvent","_wxTreeEvent",0}, |
1d99702e RD |
8405 | { "_wxFocusEvent","_class_wxFocusEvent",0}, |
8406 | { "_wxMaximizeEvent","_class_wxMaximizeEvent",0}, | |
f6bcfd97 | 8407 | { "_class_wxTimerEvent","_wxTimerEvent",0}, |
1d99702e RD |
8408 | { "_class_wxSpinButton","_wxSpinButton",0}, |
8409 | { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0}, | |
8410 | { "_class_wxPanel","_wxPanel",0}, | |
8411 | { "_class_wxCheckBox","_wxCheckBox",0}, | |
8412 | { "_wxComboBox","_class_wxComboBox",0}, | |
8413 | { "_wxRadioButton","_class_wxRadioButton",0}, | |
b1462dfa | 8414 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
8415 | { "_signed_int","_wxPrintQuality",0}, |
8416 | { "_signed_int","_EBool",0}, | |
8417 | { "_signed_int","_wxWindowID",0}, | |
8418 | { "_signed_int","_int",0}, | |
8419 | { "_class_wxTextCtrl","_wxTextCtrl",0}, | |
f6bcfd97 | 8420 | { "_class_wxListItemAttr","_wxListItemAttr",0}, |
1d99702e RD |
8421 | { "_wxLayoutConstraints","_class_wxLayoutConstraints",0}, |
8422 | { "_wxMetaFileDC","_class_wxMetaFileDC",0}, | |
b1462dfa | 8423 | { "_class_wxTextDataObject","_wxTextDataObject",0}, |
1d99702e RD |
8424 | { "_wxMenu","_class_wxMenu",0}, |
8425 | { "_class_wxMoveEvent","_wxMoveEvent",0}, | |
8426 | { "_wxListBox","_class_wxListBox",0}, | |
8427 | { "_wxScreenDC","_class_wxScreenDC",0}, | |
8428 | { "_WXTYPE","_short",0}, | |
8429 | { "_WXTYPE","_signed_short",0}, | |
8430 | { "_WXTYPE","_unsigned_short",0}, | |
b1462dfa | 8431 | { "_class_wxDropTarget","_wxDropTarget",0}, |
1d99702e RD |
8432 | { "_class_wxBrush","_wxBrush",0}, |
8433 | { "_unsigned_short","_WXTYPE",0}, | |
8434 | { "_unsigned_short","_short",0}, | |
f6bcfd97 BP |
8435 | { "_class_wxWindow","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, |
8436 | { "_class_wxWindow","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, | |
1d99702e RD |
8437 | { "_class_wxWindow","_class_wxListCtrl",SwigwxListCtrlTowxWindow}, |
8438 | { "_class_wxWindow","_wxListCtrl",SwigwxListCtrlTowxWindow}, | |
8439 | { "_class_wxWindow","_wxWindow",0}, | |
8440 | { "_class_wxStaticText","_wxStaticText",0}, | |
8441 | { "_class_wxFont","_wxFont",0}, | |
b1462dfa | 8442 | { "_wxClipboard","_class_wxClipboard",0}, |
2f90df85 | 8443 | { "_class_wxPyValidator","_wxPyValidator",0}, |
1d99702e | 8444 | { "_class_wxCloseEvent","_wxCloseEvent",0}, |
2abc0a0f | 8445 | { "_wxBusyInfo","_class_wxBusyInfo",0}, |
1d99702e | 8446 | { "_class_wxMenuEvent","_wxMenuEvent",0}, |
48115f4a | 8447 | { "_wxPaletteChangedEvent","_class_wxPaletteChangedEvent",0}, |
65dd82cb | 8448 | { "_class_wxPyBitmapDataObject","_wxPyBitmapDataObject",0}, |
1d99702e RD |
8449 | { "_wxClientDC","_class_wxClientDC",0}, |
8450 | { "_wxMouseEvent","_class_wxMouseEvent",0}, | |
8451 | { "_wxListCtrl","_class_wxListCtrl",0}, | |
8452 | { "_class_wxPoint","_wxPoint",0}, | |
8453 | { "_wxRealPoint","_class_wxRealPoint",0}, | |
8454 | { "_class_wxRadioBox","_wxRadioBox",0}, | |
8455 | { "_signed_short","_WXTYPE",0}, | |
8456 | { "_signed_short","_short",0}, | |
8457 | { "_wxMemoryDC","_class_wxMemoryDC",0}, | |
65dd82cb | 8458 | { "_wxPyTextDataObject","_class_wxPyTextDataObject",0}, |
1d99702e RD |
8459 | { "_wxPaintDC","_class_wxPaintDC",0}, |
8460 | { "_class_wxWindowDC","_wxWindowDC",0}, | |
8461 | { "_class_wxFocusEvent","_wxFocusEvent",0}, | |
8462 | { "_class_wxMaximizeEvent","_wxMaximizeEvent",0}, | |
8463 | { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0}, | |
8464 | { "_class_wxCursor","_wxCursor",0}, | |
b1462dfa | 8465 | { "_wxPyFileDropTarget","_class_wxPyFileDropTarget",0}, |
1d99702e RD |
8466 | { "_wxScrolledWindow","_class_wxScrolledWindow",0}, |
8467 | { "_wxTreeItemId","_class_wxTreeItemId",0}, | |
8468 | { "_unsigned_char","_byte",0}, | |
8469 | { "_class_wxMetaFileDC","_wxMetaFileDC",0}, | |
8470 | { "_class_wxMenu","_wxMenu",0}, | |
f6bcfd97 BP |
8471 | { "_wxControl","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, |
8472 | { "_wxControl","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, | |
1d99702e RD |
8473 | { "_wxControl","_class_wxListCtrl",SwigwxListCtrlTowxControl}, |
8474 | { "_wxControl","_wxListCtrl",SwigwxListCtrlTowxControl}, | |
8475 | { "_wxControl","_class_wxControl",0}, | |
8476 | { "_class_wxListBox","_wxListBox",0}, | |
b1462dfa | 8477 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 8478 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 8479 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
8480 | { "_unsigned_int","_size_t",0}, |
8481 | { "_unsigned_int","_uint",0}, | |
8482 | { "_unsigned_int","_wxWindowID",0}, | |
8483 | { "_unsigned_int","_int",0}, | |
8484 | { "_wxIcon","_class_wxIcon",0}, | |
8485 | { "_wxDialog","_class_wxDialog",0}, | |
8486 | { "_class_wxListItem","_wxListItem",0}, | |
8487 | { "_class_wxPen","_wxPen",0}, | |
8488 | { "_short","_WXTYPE",0}, | |
8489 | { "_short","_unsigned_short",0}, | |
8490 | { "_short","_signed_short",0}, | |
8491 | { "_class_wxStaticBox","_wxStaticBox",0}, | |
65dd82cb RD |
8492 | { "_class_wxPyDataObjectSimple","_wxPyDataObjectSimple",0}, |
8493 | { "_class_wxPyDropSource","_wxPyDropSource",0}, | |
1d99702e RD |
8494 | { "_class_wxScrollEvent","_wxScrollEvent",0}, |
8495 | { "_wxJoystickEvent","_class_wxJoystickEvent",0}, | |
8496 | { "_class_wxChoice","_wxChoice",0}, | |
8497 | { "_class_wxSlider","_wxSlider",0}, | |
8498 | { "_class_wxImageList","_wxImageList",0}, | |
8499 | { "_class_wxBitmapButton","_wxBitmapButton",0}, | |
48115f4a | 8500 | { "_class_wxPaletteChangedEvent","_wxPaletteChangedEvent",0}, |
b1462dfa | 8501 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 8502 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 8503 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
8504 | { "_wxWindowID","_size_t",0}, |
8505 | { "_wxWindowID","_EBool",0}, | |
8506 | { "_wxWindowID","_uint",0}, | |
8507 | { "_wxWindowID","_int",0}, | |
8508 | { "_wxWindowID","_signed_int",0}, | |
8509 | { "_wxWindowID","_unsigned_int",0}, | |
d426c97e | 8510 | { "_class_wxScrollWinEvent","_wxScrollWinEvent",0}, |
b1462dfa | 8511 | { "_int","_wxCoord",0}, |
1d99702e | 8512 | { "_int","_wxPrintQuality",0}, |
c368d904 | 8513 | { "_int","_time_t",0}, |
1d99702e RD |
8514 | { "_int","_size_t",0}, |
8515 | { "_int","_EBool",0}, | |
8516 | { "_int","_uint",0}, | |
8517 | { "_int","_wxWindowID",0}, | |
8518 | { "_int","_unsigned_int",0}, | |
8519 | { "_int","_signed_int",0}, | |
8520 | { "_class_wxMouseEvent","_wxMouseEvent",0}, | |
2f90df85 | 8521 | { "_wxPyCommandEvent","_class_wxPyCommandEvent",0}, |
1d99702e RD |
8522 | { "_class_wxListEvent","_wxListEvent",0}, |
8523 | { "_class_wxSpinEvent","_wxSpinEvent",0}, | |
48115f4a | 8524 | { "_class_wxQueryNewPaletteEvent","_wxQueryNewPaletteEvent",0}, |
c368d904 RD |
8525 | { "_time_t","_wxCoord",0}, |
8526 | { "_time_t","_wxPrintQuality",0}, | |
8527 | { "_time_t","_unsigned_int",0}, | |
8528 | { "_time_t","_int",0}, | |
8529 | { "_time_t","_wxWindowID",0}, | |
8530 | { "_time_t","_uint",0}, | |
8531 | { "_time_t","_size_t",0}, | |
48115f4a | 8532 | { "_class_wxNavigationKeyEvent","_wxNavigationKeyEvent",0}, |
1d99702e RD |
8533 | { "_wxButton","_class_wxButton",0}, |
8534 | { "_wxSize","_class_wxSize",0}, | |
8535 | { "_wxRegionIterator","_class_wxRegionIterator",0}, | |
65dd82cb | 8536 | { "_class_wxPyTextDataObject","_wxPyTextDataObject",0}, |
1d99702e RD |
8537 | { "_wxPyTreeItemData","_class_wxPyTreeItemData",0}, |
8538 | { "_class_wxPaintDC","_wxPaintDC",0}, | |
8539 | { "_class_wxSysColourChangedEvent","_wxSysColourChangedEvent",0}, | |
b1462dfa | 8540 | { "_class_wxPyFileDropTarget","_wxPyFileDropTarget",0}, |
1d99702e RD |
8541 | { "_class_wxInitDialogEvent","_wxInitDialogEvent",0}, |
8542 | { "_class_wxComboBox","_wxComboBox",0}, | |
8543 | { "_class_wxRadioButton","_wxRadioButton",0}, | |
2f90df85 | 8544 | { "_wxValidator","_class_wxValidator",0}, |
1d99702e | 8545 | { "_class_wxTreeItemId","_wxTreeItemId",0}, |
1d99702e RD |
8546 | { "_class_wxLayoutConstraints","_wxLayoutConstraints",0}, |
8547 | { "_wxIconizeEvent","_class_wxIconizeEvent",0}, | |
f6bcfd97 BP |
8548 | { "_class_wxControl","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, |
8549 | { "_class_wxControl","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, | |
1d99702e RD |
8550 | { "_class_wxControl","_class_wxListCtrl",SwigwxListCtrlTowxControl}, |
8551 | { "_class_wxControl","_wxListCtrl",SwigwxListCtrlTowxControl}, | |
8552 | { "_class_wxControl","_wxControl",0}, | |
8553 | { "_wxStaticBitmap","_class_wxStaticBitmap",0}, | |
8554 | { "_class_wxIcon","_wxIcon",0}, | |
8555 | { "_class_wxColour","_wxColour",0}, | |
8556 | { "_class_wxScreenDC","_wxScreenDC",0}, | |
8557 | { "_wxPalette","_class_wxPalette",0}, | |
8558 | { "_class_wxIdleEvent","_wxIdleEvent",0}, | |
b1462dfa RD |
8559 | { "_wxCoord","_int",0}, |
8560 | { "_wxCoord","_signed_int",0}, | |
8561 | { "_wxCoord","_unsigned_int",0}, | |
8562 | { "_wxCoord","_wxWindowID",0}, | |
8563 | { "_wxCoord","_uint",0}, | |
8564 | { "_wxCoord","_EBool",0}, | |
8565 | { "_wxCoord","_size_t",0}, | |
c368d904 | 8566 | { "_wxCoord","_time_t",0}, |
b1462dfa | 8567 | { "_wxCoord","_wxPrintQuality",0}, |
1d99702e | 8568 | { "_wxEraseEvent","_class_wxEraseEvent",0}, |
b1462dfa | 8569 | { "_wxDataObjectComposite","_class_wxDataObjectComposite",0}, |
1d99702e RD |
8570 | { "_class_wxJoystickEvent","_wxJoystickEvent",0}, |
8571 | { "_wxRegion","_class_wxRegion",0}, | |
8572 | { "_class_wxShowEvent","_wxShowEvent",0}, | |
b1462dfa | 8573 | { "_wxPyDropTarget","_class_wxPyDropTarget",0}, |
1d99702e RD |
8574 | { "_wxActivateEvent","_class_wxActivateEvent",0}, |
8575 | { "_wxGauge","_class_wxGauge",0}, | |
8576 | { "_class_wxCheckListBox","_wxCheckListBox",0}, | |
2abc0a0f | 8577 | { "_class_wxBusyInfo","_wxBusyInfo",0}, |
1d99702e RD |
8578 | { "_class_wxCommandEvent","_class_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, |
8579 | { "_class_wxCommandEvent","_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, | |
8580 | { "_class_wxCommandEvent","_class_wxListEvent",SwigwxListEventTowxCommandEvent}, | |
8581 | { "_class_wxCommandEvent","_wxListEvent",SwigwxListEventTowxCommandEvent}, | |
8582 | { "_class_wxCommandEvent","_wxCommandEvent",0}, | |
8583 | { "_class_wxClientDC","_wxClientDC",0}, | |
8584 | { "_class_wxSizeEvent","_wxSizeEvent",0}, | |
8585 | { "_class_wxListCtrl","_wxListCtrl",0}, | |
b1462dfa | 8586 | { "_wxCustomDataObject","_class_wxCustomDataObject",0}, |
1d99702e RD |
8587 | { "_class_wxSize","_wxSize",0}, |
8588 | { "_class_wxBitmap","_wxBitmap",0}, | |
8589 | { "_class_wxMemoryDC","_wxMemoryDC",0}, | |
b1462dfa | 8590 | { "_wxPyTextDropTarget","_class_wxPyTextDropTarget",0}, |
1d99702e RD |
8591 | { "_wxMenuBar","_class_wxMenuBar",0}, |
8592 | { "_wxTreeEvent","_class_wxTreeEvent",0}, | |
f6bcfd97 BP |
8593 | { "_wxEvtHandler","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, |
8594 | { "_wxEvtHandler","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, | |
1d99702e RD |
8595 | { "_wxEvtHandler","_class_wxListCtrl",SwigwxListCtrlTowxEvtHandler}, |
8596 | { "_wxEvtHandler","_wxListCtrl",SwigwxListCtrlTowxEvtHandler}, | |
8597 | { "_wxEvtHandler","_class_wxEvtHandler",0}, | |
8598 | { "_wxMenuItem","_class_wxMenuItem",0}, | |
8599 | { "_class_wxScrollBar","_wxScrollBar",0}, | |
1d99702e | 8600 | { "_class_wxScrolledWindow","_wxScrolledWindow",0}, |
f6bcfd97 | 8601 | { "_wxListItemAttr","_class_wxListItemAttr",0}, |
1d99702e RD |
8602 | { "_wxKeyEvent","_class_wxKeyEvent",0}, |
8603 | { "_wxMoveEvent","_class_wxMoveEvent",0}, | |
8604 | { "_class_wxPalette","_wxPalette",0}, | |
b1462dfa | 8605 | { "_wxFileDataObject","_class_wxFileDataObject",0}, |
1d99702e | 8606 | { "_class_wxEraseEvent","_wxEraseEvent",0}, |
b1462dfa | 8607 | { "_class_wxDataObjectComposite","_wxDataObjectComposite",0}, |
f6bcfd97 BP |
8608 | { "_wxWindow","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, |
8609 | { "_wxWindow","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, | |
1d99702e RD |
8610 | { "_wxWindow","_class_wxListCtrl",SwigwxListCtrlTowxWindow}, |
8611 | { "_wxWindow","_wxListCtrl",SwigwxListCtrlTowxWindow}, | |
8612 | { "_wxWindow","_class_wxWindow",0}, | |
48115f4a | 8613 | { "_class_wxWindowDestroyEvent","_wxWindowDestroyEvent",0}, |
1d99702e RD |
8614 | {0,0,0}}; |
8615 | ||
8ab979d7 RD |
8616 | static PyObject *SWIG_globals; |
8617 | #ifdef __cplusplus | |
8618 | extern "C" | |
8619 | #endif | |
1d99702e | 8620 | SWIGEXPORT(void) initcontrols2c() { |
8ab979d7 RD |
8621 | PyObject *m, *d; |
8622 | SWIG_globals = SWIG_newvarlink(); | |
8623 | m = Py_InitModule("controls2c", controls2cMethods); | |
8624 | d = PyModule_GetDict(m); | |
af309447 RD |
8625 | PyDict_SetItemString(d,"wxLIST_MASK_TEXT", PyInt_FromLong((long) wxLIST_MASK_TEXT)); |
8626 | PyDict_SetItemString(d,"wxLIST_MASK_IMAGE", PyInt_FromLong((long) wxLIST_MASK_IMAGE)); | |
8627 | PyDict_SetItemString(d,"wxLIST_MASK_DATA", PyInt_FromLong((long) wxLIST_MASK_DATA)); | |
8628 | PyDict_SetItemString(d,"wxLIST_MASK_WIDTH", PyInt_FromLong((long) wxLIST_MASK_WIDTH)); | |
8629 | PyDict_SetItemString(d,"wxLIST_MASK_FORMAT", PyInt_FromLong((long) wxLIST_MASK_FORMAT)); | |
bb0054cd | 8630 | PyDict_SetItemString(d,"wxLIST_MASK_STATE", PyInt_FromLong((long) wxLIST_MASK_STATE)); |
af309447 RD |
8631 | PyDict_SetItemString(d,"wxLIST_STATE_DONTCARE", PyInt_FromLong((long) wxLIST_STATE_DONTCARE)); |
8632 | PyDict_SetItemString(d,"wxLIST_STATE_DROPHILITED", PyInt_FromLong((long) wxLIST_STATE_DROPHILITED)); | |
8633 | PyDict_SetItemString(d,"wxLIST_STATE_FOCUSED", PyInt_FromLong((long) wxLIST_STATE_FOCUSED)); | |
8634 | PyDict_SetItemString(d,"wxLIST_STATE_SELECTED", PyInt_FromLong((long) wxLIST_STATE_SELECTED)); | |
8635 | PyDict_SetItemString(d,"wxLIST_STATE_CUT", PyInt_FromLong((long) wxLIST_STATE_CUT)); | |
8636 | PyDict_SetItemString(d,"wxLIST_HITTEST_ABOVE", PyInt_FromLong((long) wxLIST_HITTEST_ABOVE)); | |
8637 | PyDict_SetItemString(d,"wxLIST_HITTEST_BELOW", PyInt_FromLong((long) wxLIST_HITTEST_BELOW)); | |
8638 | PyDict_SetItemString(d,"wxLIST_HITTEST_NOWHERE", PyInt_FromLong((long) wxLIST_HITTEST_NOWHERE)); | |
8639 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMICON)); | |
8640 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMLABEL)); | |
8641 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMRIGHT)); | |
8642 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMSTATEICON)); | |
8643 | PyDict_SetItemString(d,"wxLIST_HITTEST_TOLEFT", PyInt_FromLong((long) wxLIST_HITTEST_TOLEFT)); | |
8644 | PyDict_SetItemString(d,"wxLIST_HITTEST_TORIGHT", PyInt_FromLong((long) wxLIST_HITTEST_TORIGHT)); | |
8645 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEM", PyInt_FromLong((long) wxLIST_HITTEST_ONITEM)); | |
8646 | PyDict_SetItemString(d,"wxLIST_NEXT_ABOVE", PyInt_FromLong((long) wxLIST_NEXT_ABOVE)); | |
8647 | PyDict_SetItemString(d,"wxLIST_NEXT_ALL", PyInt_FromLong((long) wxLIST_NEXT_ALL)); | |
8648 | PyDict_SetItemString(d,"wxLIST_NEXT_BELOW", PyInt_FromLong((long) wxLIST_NEXT_BELOW)); | |
8649 | PyDict_SetItemString(d,"wxLIST_NEXT_LEFT", PyInt_FromLong((long) wxLIST_NEXT_LEFT)); | |
8650 | PyDict_SetItemString(d,"wxLIST_NEXT_RIGHT", PyInt_FromLong((long) wxLIST_NEXT_RIGHT)); | |
8651 | PyDict_SetItemString(d,"wxLIST_ALIGN_DEFAULT", PyInt_FromLong((long) wxLIST_ALIGN_DEFAULT)); | |
8652 | PyDict_SetItemString(d,"wxLIST_ALIGN_LEFT", PyInt_FromLong((long) wxLIST_ALIGN_LEFT)); | |
8653 | PyDict_SetItemString(d,"wxLIST_ALIGN_TOP", PyInt_FromLong((long) wxLIST_ALIGN_TOP)); | |
8654 | PyDict_SetItemString(d,"wxLIST_ALIGN_SNAP_TO_GRID", PyInt_FromLong((long) wxLIST_ALIGN_SNAP_TO_GRID)); | |
af309447 RD |
8655 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE", PyInt_FromLong((long) wxLIST_AUTOSIZE)); |
8656 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE_USEHEADER", PyInt_FromLong((long) wxLIST_AUTOSIZE_USEHEADER)); | |
8657 | PyDict_SetItemString(d,"wxLIST_RECT_BOUNDS", PyInt_FromLong((long) wxLIST_RECT_BOUNDS)); | |
8658 | PyDict_SetItemString(d,"wxLIST_RECT_ICON", PyInt_FromLong((long) wxLIST_RECT_ICON)); | |
8659 | PyDict_SetItemString(d,"wxLIST_RECT_LABEL", PyInt_FromLong((long) wxLIST_RECT_LABEL)); | |
8660 | PyDict_SetItemString(d,"wxLIST_FIND_UP", PyInt_FromLong((long) wxLIST_FIND_UP)); | |
8661 | PyDict_SetItemString(d,"wxLIST_FIND_DOWN", PyInt_FromLong((long) wxLIST_FIND_DOWN)); | |
8662 | PyDict_SetItemString(d,"wxLIST_FIND_LEFT", PyInt_FromLong((long) wxLIST_FIND_LEFT)); | |
8663 | PyDict_SetItemString(d,"wxLIST_FIND_RIGHT", PyInt_FromLong((long) wxLIST_FIND_RIGHT)); | |
f6bcfd97 BP |
8664 | PyDict_SetItemString(d,"wxLIST_FORMAT_LEFT", PyInt_FromLong((long) wxLIST_FORMAT_LEFT)); |
8665 | PyDict_SetItemString(d,"wxLIST_FORMAT_RIGHT", PyInt_FromLong((long) wxLIST_FORMAT_RIGHT)); | |
8666 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTRE", PyInt_FromLong((long) wxLIST_FORMAT_CENTRE)); | |
8667 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTER", PyInt_FromLong((long) wxLIST_FORMAT_CENTER)); | |
1b62f00d RD |
8668 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
8669 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
8670 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
8671 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
8672 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
8673 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
8674 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_GET_INFO)); | |
8675 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_SET_INFO)); | |
8676 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
8677 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
8678 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_LIST_KEY_DOWN)); | |
8679 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
8680 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_CLICK)); | |
8681 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
8682 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
8683 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
694759cf RD |
8684 | PyDict_SetItemString(d,"wxTreeItemIcon_Normal", PyInt_FromLong((long) wxTreeItemIcon_Normal)); |
8685 | PyDict_SetItemString(d,"wxTreeItemIcon_Selected", PyInt_FromLong((long) wxTreeItemIcon_Selected)); | |
8686 | PyDict_SetItemString(d,"wxTreeItemIcon_Expanded", PyInt_FromLong((long) wxTreeItemIcon_Expanded)); | |
8687 | PyDict_SetItemString(d,"wxTreeItemIcon_SelectedExpanded", PyInt_FromLong((long) wxTreeItemIcon_SelectedExpanded)); | |
8688 | PyDict_SetItemString(d,"wxTreeItemIcon_Max", PyInt_FromLong((long) wxTreeItemIcon_Max)); | |
164b735b RD |
8689 | PyDict_SetItemString(d,"wxTREE_HITTEST_ABOVE", PyInt_FromLong((long) wxTREE_HITTEST_ABOVE)); |
8690 | PyDict_SetItemString(d,"wxTREE_HITTEST_BELOW", PyInt_FromLong((long) wxTREE_HITTEST_BELOW)); | |
8691 | PyDict_SetItemString(d,"wxTREE_HITTEST_NOWHERE", PyInt_FromLong((long) wxTREE_HITTEST_NOWHERE)); | |
8692 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMBUTTON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMBUTTON)); | |
8693 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMICON)); | |
8694 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMINDENT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMINDENT)); | |
8695 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLABEL)); | |
8696 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMRIGHT)); | |
8697 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMSTATEICON)); | |
8698 | PyDict_SetItemString(d,"wxTREE_HITTEST_TOLEFT", PyInt_FromLong((long) wxTREE_HITTEST_TOLEFT)); | |
8699 | PyDict_SetItemString(d,"wxTREE_HITTEST_TORIGHT", PyInt_FromLong((long) wxTREE_HITTEST_TORIGHT)); | |
8700 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMUPPERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMUPPERPART)); | |
8701 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLOWERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLOWERPART)); | |
8702 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEM", PyInt_FromLong((long) wxTREE_HITTEST_ONITEM)); | |
1b62f00d RD |
8703 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
8704 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
8705 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
8706 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
8707 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
8708 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_GET_INFO)); | |
8709 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SET_INFO)); | |
8710 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
8711 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
8712 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
8713 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
8714 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
8715 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
8716 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_TREE_KEY_DOWN)); | |
8717 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
8718 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
8719 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
1d99702e RD |
8720 | { |
8721 | int i; | |
8722 | for (i = 0; _swig_mapping[i].n1; i++) | |
8723 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
8724 | } | |
8ab979d7 | 8725 | } |