]>
Commit | Line | Data |
---|---|---|
8ab979d7 | 1 | /* |
9c039d08 | 2 | * FILE : msw/controls2.cpp |
8ab979d7 RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
1afc06c2 | 6 | * Version 1.1 (Build 810) |
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__) | |
1d99702e | 30 | # define SWIGEXPORT(a) a _export |
8ab979d7 | 31 | # else |
1d99702e | 32 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
1d99702e | 36 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
37 | #endif |
38 | ||
39 | #ifdef __cplusplus | |
40 | extern "C" { | |
41 | #endif | |
42 | #include "Python.h" | |
43 | extern void SWIG_MakePtr(char *, void *, char *); | |
44 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
45 | extern char *SWIG_GetPtr(char *, void **, char *); | |
1d99702e | 46 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
8ab979d7 RD |
47 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
48 | extern PyObject *SWIG_newvarlink(void); | |
49 | #ifdef __cplusplus | |
50 | } | |
51 | #endif | |
8ab979d7 RD |
52 | #define SWIG_init initcontrols2c |
53 | ||
54 | #define SWIG_name "controls2c" | |
55 | ||
56 | #include "helpers.h" | |
2f90df85 RD |
57 | #ifdef __WXMSW__ |
58 | #include <windows.h> | |
59 | #endif | |
8ab979d7 RD |
60 | #include <wx/listctrl.h> |
61 | #include <wx/treectrl.h> | |
8ab979d7 RD |
62 | |
63 | static PyObject* l_output_helper(PyObject* target, PyObject* o) { | |
64 | PyObject* o2; | |
1d99702e RD |
65 | PyObject* o3; |
66 | if (!target) { | |
8ab979d7 | 67 | target = o; |
1d99702e | 68 | } else if (target == Py_None) { |
8ab979d7 RD |
69 | Py_DECREF(Py_None); |
70 | target = o; | |
1d99702e | 71 | } else { |
8ab979d7 RD |
72 | if (!PyList_Check(target)) { |
73 | o2 = target; | |
74 | target = PyList_New(0); | |
75 | PyList_Append(target, o2); | |
76 | Py_XDECREF(o2); | |
77 | } | |
78 | PyList_Append(target,o); | |
79 | Py_XDECREF(o); | |
80 | } | |
81 | return target; | |
82 | } | |
83 | ||
84 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
85 | PyObject* o2; | |
86 | PyObject* o3; | |
87 | ||
1d99702e | 88 | if (!target) { |
8ab979d7 | 89 | target = o; |
1d99702e | 90 | } else if (target == Py_None) { |
8ab979d7 RD |
91 | Py_DECREF(Py_None); |
92 | target = o; | |
1d99702e | 93 | } else { |
8ab979d7 RD |
94 | if (!PyTuple_Check(target)) { |
95 | o2 = target; | |
96 | target = PyTuple_New(1); | |
97 | PyTuple_SetItem(target, 0, o2); | |
98 | } | |
1d99702e RD |
99 | o3 = PyTuple_New(1); |
100 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
101 | |
102 | o2 = target; | |
1d99702e RD |
103 | target = PySequence_Concat(o2, o3); |
104 | Py_DECREF(o2); | |
8ab979d7 RD |
105 | Py_DECREF(o3); |
106 | } | |
107 | return target; | |
108 | } | |
109 | ||
8ab979d7 RD |
110 | static char* wxStringErrorMsg = "string type is required for parameter"; |
111 | ||
112 | extern wxValidator wxPyDefaultValidator; | |
cf694132 | 113 | |
dcd38683 RD |
114 | int wxCALLBACK wxPyTreeCtrl_SortItems(long item1, long item2, long funcPtr) { |
115 | int retval = 0; | |
116 | PyObject* func = (PyObject*)funcPtr; | |
117 | bool doSave = wxPyRestoreThread(); | |
118 | ||
119 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
120 | PyObject* result = PyEval_CallObject(func, args); | |
121 | Py_DECREF(args); | |
122 | if (result) { | |
123 | retval = PyInt_AsLong(result); | |
124 | Py_DECREF(result); | |
125 | } | |
126 | ||
127 | wxPySaveThread(doSave); | |
128 | return retval; | |
129 | } | |
130 | ||
131 | ||
cf694132 RD |
132 | class wxPyTreeItemData : public wxTreeItemData { |
133 | public: | |
134 | wxPyTreeItemData(PyObject* obj = NULL) { | |
135 | if (obj == NULL) | |
136 | obj = Py_None; | |
137 | Py_INCREF(obj); | |
138 | m_obj = obj; | |
139 | } | |
140 | ||
141 | ~wxPyTreeItemData() { | |
1afc06c2 | 142 | bool doSave = wxPyRestoreThread(); |
cf694132 | 143 | Py_DECREF(m_obj); |
1afc06c2 | 144 | wxPySaveThread(doSave); |
cf694132 RD |
145 | } |
146 | ||
147 | PyObject* GetData() { | |
148 | Py_INCREF(m_obj); | |
149 | return m_obj; | |
150 | } | |
151 | ||
152 | void SetData(PyObject* obj) { | |
153 | Py_DECREF(m_obj); | |
154 | m_obj = obj; | |
155 | Py_INCREF(obj); | |
156 | } | |
157 | ||
158 | PyObject* m_obj; | |
159 | }; | |
1d99702e RD |
160 | #ifdef __cplusplus |
161 | extern "C" { | |
162 | #endif | |
af309447 | 163 | #define wxListItem_m_mask_set(_swigobj,_swigval) (_swigobj->m_mask = _swigval,_swigval) |
efc5f224 | 164 | static PyObject *_wrap_wxListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
165 | PyObject * _resultobj; |
166 | long _result; | |
167 | wxListItem * _arg0; | |
168 | long _arg1; | |
1d99702e | 169 | PyObject * _argo0 = 0; |
efc5f224 | 170 | char *_kwnames[] = { "self","m_mask", NULL }; |
af309447 RD |
171 | |
172 | self = self; | |
efc5f224 | 173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_mask_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 174 | return NULL; |
1d99702e RD |
175 | if (_argo0) { |
176 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
177 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
af309447 RD |
178 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_set. Expected _wxListItem_p."); |
179 | return NULL; | |
180 | } | |
181 | } | |
cf694132 RD |
182 | { |
183 | wxPy_BEGIN_ALLOW_THREADS; | |
184 | _result = (long )wxListItem_m_mask_set(_arg0,_arg1); | |
185 | ||
186 | wxPy_END_ALLOW_THREADS; | |
187 | } _resultobj = Py_BuildValue("l",_result); | |
af309447 RD |
188 | return _resultobj; |
189 | } | |
190 | ||
8ab979d7 | 191 | #define wxListItem_m_mask_get(_swigobj) ((long ) _swigobj->m_mask) |
efc5f224 | 192 | static PyObject *_wrap_wxListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
193 | PyObject * _resultobj; |
194 | long _result; | |
195 | wxListItem * _arg0; | |
1d99702e | 196 | PyObject * _argo0 = 0; |
efc5f224 | 197 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
198 | |
199 | self = self; | |
efc5f224 | 200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_mask_get",_kwnames,&_argo0)) |
8ab979d7 | 201 | return NULL; |
1d99702e RD |
202 | if (_argo0) { |
203 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
204 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
8ab979d7 RD |
205 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_get. Expected _wxListItem_p."); |
206 | return NULL; | |
207 | } | |
208 | } | |
cf694132 RD |
209 | { |
210 | wxPy_BEGIN_ALLOW_THREADS; | |
211 | _result = (long )wxListItem_m_mask_get(_arg0); | |
212 | ||
213 | wxPy_END_ALLOW_THREADS; | |
214 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
215 | return _resultobj; |
216 | } | |
217 | ||
af309447 | 218 | #define wxListItem_m_itemId_set(_swigobj,_swigval) (_swigobj->m_itemId = _swigval,_swigval) |
efc5f224 | 219 | static PyObject *_wrap_wxListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
220 | PyObject * _resultobj; |
221 | long _result; | |
222 | wxListItem * _arg0; | |
223 | long _arg1; | |
1d99702e | 224 | PyObject * _argo0 = 0; |
efc5f224 | 225 | char *_kwnames[] = { "self","m_itemId", NULL }; |
af309447 RD |
226 | |
227 | self = self; | |
efc5f224 | 228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_itemId_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 229 | return NULL; |
1d99702e RD |
230 | if (_argo0) { |
231 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
232 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
af309447 RD |
233 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_set. Expected _wxListItem_p."); |
234 | return NULL; | |
235 | } | |
236 | } | |
cf694132 RD |
237 | { |
238 | wxPy_BEGIN_ALLOW_THREADS; | |
239 | _result = (long )wxListItem_m_itemId_set(_arg0,_arg1); | |
240 | ||
241 | wxPy_END_ALLOW_THREADS; | |
242 | } _resultobj = Py_BuildValue("l",_result); | |
af309447 RD |
243 | return _resultobj; |
244 | } | |
245 | ||
8ab979d7 | 246 | #define wxListItem_m_itemId_get(_swigobj) ((long ) _swigobj->m_itemId) |
efc5f224 | 247 | static PyObject *_wrap_wxListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
248 | PyObject * _resultobj; |
249 | long _result; | |
250 | wxListItem * _arg0; | |
1d99702e | 251 | PyObject * _argo0 = 0; |
efc5f224 | 252 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
253 | |
254 | self = self; | |
efc5f224 | 255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_itemId_get",_kwnames,&_argo0)) |
8ab979d7 | 256 | return NULL; |
1d99702e RD |
257 | if (_argo0) { |
258 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
259 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
8ab979d7 RD |
260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_get. Expected _wxListItem_p."); |
261 | return NULL; | |
262 | } | |
263 | } | |
cf694132 RD |
264 | { |
265 | wxPy_BEGIN_ALLOW_THREADS; | |
266 | _result = (long )wxListItem_m_itemId_get(_arg0); | |
267 | ||
268 | wxPy_END_ALLOW_THREADS; | |
269 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
270 | return _resultobj; |
271 | } | |
272 | ||
af309447 | 273 | #define wxListItem_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval) |
efc5f224 | 274 | static PyObject *_wrap_wxListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
275 | PyObject * _resultobj; |
276 | int _result; | |
277 | wxListItem * _arg0; | |
278 | int _arg1; | |
1d99702e | 279 | PyObject * _argo0 = 0; |
efc5f224 | 280 | char *_kwnames[] = { "self","m_col", NULL }; |
af309447 RD |
281 | |
282 | self = self; | |
efc5f224 | 283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_col_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 284 | return NULL; |
1d99702e RD |
285 | if (_argo0) { |
286 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
287 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
af309447 RD |
288 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_set. Expected _wxListItem_p."); |
289 | return NULL; | |
290 | } | |
291 | } | |
cf694132 RD |
292 | { |
293 | wxPy_BEGIN_ALLOW_THREADS; | |
294 | _result = (int )wxListItem_m_col_set(_arg0,_arg1); | |
295 | ||
296 | wxPy_END_ALLOW_THREADS; | |
297 | } _resultobj = Py_BuildValue("i",_result); | |
af309447 RD |
298 | return _resultobj; |
299 | } | |
300 | ||
8ab979d7 | 301 | #define wxListItem_m_col_get(_swigobj) ((int ) _swigobj->m_col) |
efc5f224 | 302 | static PyObject *_wrap_wxListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
303 | PyObject * _resultobj; |
304 | int _result; | |
305 | wxListItem * _arg0; | |
1d99702e | 306 | PyObject * _argo0 = 0; |
efc5f224 | 307 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
308 | |
309 | self = self; | |
efc5f224 | 310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_col_get",_kwnames,&_argo0)) |
8ab979d7 | 311 | return NULL; |
1d99702e RD |
312 | if (_argo0) { |
313 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
314 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
8ab979d7 RD |
315 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_get. Expected _wxListItem_p."); |
316 | return NULL; | |
317 | } | |
318 | } | |
cf694132 RD |
319 | { |
320 | wxPy_BEGIN_ALLOW_THREADS; | |
321 | _result = (int )wxListItem_m_col_get(_arg0); | |
322 | ||
323 | wxPy_END_ALLOW_THREADS; | |
324 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
325 | return _resultobj; |
326 | } | |
327 | ||
af309447 | 328 | #define wxListItem_m_state_set(_swigobj,_swigval) (_swigobj->m_state = _swigval,_swigval) |
efc5f224 | 329 | static PyObject *_wrap_wxListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
330 | PyObject * _resultobj; |
331 | long _result; | |
332 | wxListItem * _arg0; | |
333 | long _arg1; | |
1d99702e | 334 | PyObject * _argo0 = 0; |
efc5f224 | 335 | char *_kwnames[] = { "self","m_state", NULL }; |
af309447 RD |
336 | |
337 | self = self; | |
efc5f224 | 338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_state_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 339 | return NULL; |
1d99702e RD |
340 | if (_argo0) { |
341 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
342 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
af309447 RD |
343 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_set. Expected _wxListItem_p."); |
344 | return NULL; | |
345 | } | |
346 | } | |
cf694132 RD |
347 | { |
348 | wxPy_BEGIN_ALLOW_THREADS; | |
349 | _result = (long )wxListItem_m_state_set(_arg0,_arg1); | |
350 | ||
351 | wxPy_END_ALLOW_THREADS; | |
352 | } _resultobj = Py_BuildValue("l",_result); | |
af309447 RD |
353 | return _resultobj; |
354 | } | |
355 | ||
8ab979d7 | 356 | #define wxListItem_m_state_get(_swigobj) ((long ) _swigobj->m_state) |
efc5f224 | 357 | static PyObject *_wrap_wxListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
358 | PyObject * _resultobj; |
359 | long _result; | |
360 | wxListItem * _arg0; | |
1d99702e | 361 | PyObject * _argo0 = 0; |
efc5f224 | 362 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
363 | |
364 | self = self; | |
efc5f224 | 365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_state_get",_kwnames,&_argo0)) |
8ab979d7 | 366 | return NULL; |
1d99702e RD |
367 | if (_argo0) { |
368 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
369 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
8ab979d7 RD |
370 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_get. Expected _wxListItem_p."); |
371 | return NULL; | |
372 | } | |
373 | } | |
cf694132 RD |
374 | { |
375 | wxPy_BEGIN_ALLOW_THREADS; | |
376 | _result = (long )wxListItem_m_state_get(_arg0); | |
377 | ||
378 | wxPy_END_ALLOW_THREADS; | |
379 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
380 | return _resultobj; |
381 | } | |
382 | ||
af309447 | 383 | #define wxListItem_m_stateMask_set(_swigobj,_swigval) (_swigobj->m_stateMask = _swigval,_swigval) |
efc5f224 | 384 | static PyObject *_wrap_wxListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
385 | PyObject * _resultobj; |
386 | long _result; | |
387 | wxListItem * _arg0; | |
388 | long _arg1; | |
1d99702e | 389 | PyObject * _argo0 = 0; |
efc5f224 | 390 | char *_kwnames[] = { "self","m_stateMask", NULL }; |
af309447 RD |
391 | |
392 | self = self; | |
efc5f224 | 393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_stateMask_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 394 | return NULL; |
1d99702e RD |
395 | if (_argo0) { |
396 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
397 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
af309447 RD |
398 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_set. Expected _wxListItem_p."); |
399 | return NULL; | |
400 | } | |
401 | } | |
cf694132 RD |
402 | { |
403 | wxPy_BEGIN_ALLOW_THREADS; | |
404 | _result = (long )wxListItem_m_stateMask_set(_arg0,_arg1); | |
405 | ||
406 | wxPy_END_ALLOW_THREADS; | |
407 | } _resultobj = Py_BuildValue("l",_result); | |
af309447 RD |
408 | return _resultobj; |
409 | } | |
410 | ||
8ab979d7 | 411 | #define wxListItem_m_stateMask_get(_swigobj) ((long ) _swigobj->m_stateMask) |
efc5f224 | 412 | static PyObject *_wrap_wxListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
413 | PyObject * _resultobj; |
414 | long _result; | |
415 | wxListItem * _arg0; | |
1d99702e | 416 | PyObject * _argo0 = 0; |
efc5f224 | 417 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
418 | |
419 | self = self; | |
efc5f224 | 420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_stateMask_get",_kwnames,&_argo0)) |
8ab979d7 | 421 | return NULL; |
1d99702e RD |
422 | if (_argo0) { |
423 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
424 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
8ab979d7 RD |
425 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_get. Expected _wxListItem_p."); |
426 | return NULL; | |
427 | } | |
428 | } | |
cf694132 RD |
429 | { |
430 | wxPy_BEGIN_ALLOW_THREADS; | |
431 | _result = (long )wxListItem_m_stateMask_get(_arg0); | |
432 | ||
433 | wxPy_END_ALLOW_THREADS; | |
434 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
435 | return _resultobj; |
436 | } | |
437 | ||
af309447 | 438 | #define wxListItem_m_text_set(_swigobj,_swigval) (_swigobj->m_text = *(_swigval),_swigval) |
efc5f224 | 439 | static PyObject *_wrap_wxListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
440 | PyObject * _resultobj; |
441 | wxString * _result; | |
442 | wxListItem * _arg0; | |
443 | wxString * _arg1; | |
1d99702e | 444 | PyObject * _argo0 = 0; |
af309447 | 445 | PyObject * _obj1 = 0; |
efc5f224 | 446 | char *_kwnames[] = { "self","m_text", NULL }; |
af309447 RD |
447 | |
448 | self = self; | |
efc5f224 | 449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_m_text_set",_kwnames,&_argo0,&_obj1)) |
af309447 | 450 | return NULL; |
1d99702e RD |
451 | if (_argo0) { |
452 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
453 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
af309447 RD |
454 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_set. Expected _wxListItem_p."); |
455 | return NULL; | |
456 | } | |
457 | } | |
458 | { | |
459 | if (!PyString_Check(_obj1)) { | |
460 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
461 | return NULL; | |
462 | } | |
cf694132 | 463 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
af309447 | 464 | } |
af309447 | 465 | { |
cf694132 RD |
466 | wxPy_BEGIN_ALLOW_THREADS; |
467 | _result = (wxString *)wxListItem_m_text_set(_arg0,_arg1); | |
468 | ||
469 | wxPy_END_ALLOW_THREADS; | |
470 | }{ | |
eec92d76 | 471 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
af309447 RD |
472 | } |
473 | { | |
474 | if (_obj1) | |
475 | delete _arg1; | |
476 | } | |
477 | return _resultobj; | |
478 | } | |
479 | ||
8ab979d7 | 480 | #define wxListItem_m_text_get(_swigobj) (&_swigobj->m_text) |
efc5f224 | 481 | static PyObject *_wrap_wxListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
482 | PyObject * _resultobj; |
483 | wxString * _result; | |
484 | wxListItem * _arg0; | |
1d99702e | 485 | PyObject * _argo0 = 0; |
efc5f224 | 486 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
487 | |
488 | self = self; | |
efc5f224 | 489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_text_get",_kwnames,&_argo0)) |
8ab979d7 | 490 | return NULL; |
1d99702e RD |
491 | if (_argo0) { |
492 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
493 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
8ab979d7 RD |
494 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_get. Expected _wxListItem_p."); |
495 | return NULL; | |
496 | } | |
497 | } | |
8ab979d7 | 498 | { |
cf694132 RD |
499 | wxPy_BEGIN_ALLOW_THREADS; |
500 | _result = (wxString *)wxListItem_m_text_get(_arg0); | |
501 | ||
502 | wxPy_END_ALLOW_THREADS; | |
503 | }{ | |
eec92d76 | 504 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
505 | } |
506 | return _resultobj; | |
507 | } | |
508 | ||
af309447 | 509 | #define wxListItem_m_image_set(_swigobj,_swigval) (_swigobj->m_image = _swigval,_swigval) |
efc5f224 | 510 | static PyObject *_wrap_wxListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
511 | PyObject * _resultobj; |
512 | int _result; | |
513 | wxListItem * _arg0; | |
514 | int _arg1; | |
1d99702e | 515 | PyObject * _argo0 = 0; |
efc5f224 | 516 | char *_kwnames[] = { "self","m_image", NULL }; |
af309447 RD |
517 | |
518 | self = self; | |
efc5f224 | 519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_image_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 520 | return NULL; |
1d99702e RD |
521 | if (_argo0) { |
522 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
523 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
af309447 RD |
524 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_set. Expected _wxListItem_p."); |
525 | return NULL; | |
526 | } | |
527 | } | |
cf694132 RD |
528 | { |
529 | wxPy_BEGIN_ALLOW_THREADS; | |
530 | _result = (int )wxListItem_m_image_set(_arg0,_arg1); | |
531 | ||
532 | wxPy_END_ALLOW_THREADS; | |
533 | } _resultobj = Py_BuildValue("i",_result); | |
af309447 RD |
534 | return _resultobj; |
535 | } | |
536 | ||
8ab979d7 | 537 | #define wxListItem_m_image_get(_swigobj) ((int ) _swigobj->m_image) |
efc5f224 | 538 | static PyObject *_wrap_wxListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
539 | PyObject * _resultobj; |
540 | int _result; | |
541 | wxListItem * _arg0; | |
1d99702e | 542 | PyObject * _argo0 = 0; |
efc5f224 | 543 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
544 | |
545 | self = self; | |
efc5f224 | 546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_image_get",_kwnames,&_argo0)) |
8ab979d7 | 547 | return NULL; |
1d99702e RD |
548 | if (_argo0) { |
549 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
550 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
8ab979d7 RD |
551 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_get. Expected _wxListItem_p."); |
552 | return NULL; | |
553 | } | |
554 | } | |
cf694132 RD |
555 | { |
556 | wxPy_BEGIN_ALLOW_THREADS; | |
557 | _result = (int )wxListItem_m_image_get(_arg0); | |
558 | ||
559 | wxPy_END_ALLOW_THREADS; | |
560 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
561 | return _resultobj; |
562 | } | |
563 | ||
af309447 | 564 | #define wxListItem_m_data_set(_swigobj,_swigval) (_swigobj->m_data = _swigval,_swigval) |
efc5f224 | 565 | static PyObject *_wrap_wxListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
566 | PyObject * _resultobj; |
567 | long _result; | |
568 | wxListItem * _arg0; | |
569 | long _arg1; | |
1d99702e | 570 | PyObject * _argo0 = 0; |
efc5f224 | 571 | char *_kwnames[] = { "self","m_data", NULL }; |
af309447 RD |
572 | |
573 | self = self; | |
efc5f224 | 574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_data_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 575 | return NULL; |
1d99702e RD |
576 | if (_argo0) { |
577 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
578 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
af309447 RD |
579 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_set. Expected _wxListItem_p."); |
580 | return NULL; | |
581 | } | |
582 | } | |
cf694132 RD |
583 | { |
584 | wxPy_BEGIN_ALLOW_THREADS; | |
585 | _result = (long )wxListItem_m_data_set(_arg0,_arg1); | |
586 | ||
587 | wxPy_END_ALLOW_THREADS; | |
588 | } _resultobj = Py_BuildValue("l",_result); | |
af309447 RD |
589 | return _resultobj; |
590 | } | |
591 | ||
8ab979d7 | 592 | #define wxListItem_m_data_get(_swigobj) ((long ) _swigobj->m_data) |
efc5f224 | 593 | static PyObject *_wrap_wxListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
594 | PyObject * _resultobj; |
595 | long _result; | |
596 | wxListItem * _arg0; | |
1d99702e | 597 | PyObject * _argo0 = 0; |
efc5f224 | 598 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
599 | |
600 | self = self; | |
efc5f224 | 601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_data_get",_kwnames,&_argo0)) |
8ab979d7 | 602 | return NULL; |
1d99702e RD |
603 | if (_argo0) { |
604 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
605 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
8ab979d7 RD |
606 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_get. Expected _wxListItem_p."); |
607 | return NULL; | |
608 | } | |
609 | } | |
cf694132 RD |
610 | { |
611 | wxPy_BEGIN_ALLOW_THREADS; | |
612 | _result = (long )wxListItem_m_data_get(_arg0); | |
613 | ||
614 | wxPy_END_ALLOW_THREADS; | |
615 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
616 | return _resultobj; |
617 | } | |
618 | ||
af309447 | 619 | #define wxListItem_m_format_set(_swigobj,_swigval) (_swigobj->m_format = _swigval,_swigval) |
efc5f224 | 620 | static PyObject *_wrap_wxListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
621 | PyObject * _resultobj; |
622 | int _result; | |
623 | wxListItem * _arg0; | |
624 | int _arg1; | |
1d99702e | 625 | PyObject * _argo0 = 0; |
efc5f224 | 626 | char *_kwnames[] = { "self","m_format", NULL }; |
af309447 RD |
627 | |
628 | self = self; | |
efc5f224 | 629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_format_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 630 | return NULL; |
1d99702e RD |
631 | if (_argo0) { |
632 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
633 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
af309447 RD |
634 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_set. Expected _wxListItem_p."); |
635 | return NULL; | |
636 | } | |
637 | } | |
cf694132 RD |
638 | { |
639 | wxPy_BEGIN_ALLOW_THREADS; | |
640 | _result = (int )wxListItem_m_format_set(_arg0,_arg1); | |
641 | ||
642 | wxPy_END_ALLOW_THREADS; | |
643 | } _resultobj = Py_BuildValue("i",_result); | |
af309447 RD |
644 | return _resultobj; |
645 | } | |
646 | ||
8ab979d7 | 647 | #define wxListItem_m_format_get(_swigobj) ((int ) _swigobj->m_format) |
efc5f224 | 648 | static PyObject *_wrap_wxListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
649 | PyObject * _resultobj; |
650 | int _result; | |
651 | wxListItem * _arg0; | |
1d99702e | 652 | PyObject * _argo0 = 0; |
efc5f224 | 653 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
654 | |
655 | self = self; | |
efc5f224 | 656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_format_get",_kwnames,&_argo0)) |
8ab979d7 | 657 | return NULL; |
1d99702e RD |
658 | if (_argo0) { |
659 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
660 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
8ab979d7 RD |
661 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_get. Expected _wxListItem_p."); |
662 | return NULL; | |
663 | } | |
664 | } | |
cf694132 RD |
665 | { |
666 | wxPy_BEGIN_ALLOW_THREADS; | |
667 | _result = (int )wxListItem_m_format_get(_arg0); | |
668 | ||
669 | wxPy_END_ALLOW_THREADS; | |
670 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
671 | return _resultobj; |
672 | } | |
673 | ||
af309447 | 674 | #define wxListItem_m_width_set(_swigobj,_swigval) (_swigobj->m_width = _swigval,_swigval) |
efc5f224 | 675 | static PyObject *_wrap_wxListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
676 | PyObject * _resultobj; |
677 | int _result; | |
678 | wxListItem * _arg0; | |
679 | int _arg1; | |
1d99702e | 680 | PyObject * _argo0 = 0; |
efc5f224 | 681 | char *_kwnames[] = { "self","m_width", NULL }; |
af309447 RD |
682 | |
683 | self = self; | |
efc5f224 | 684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_width_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 685 | return NULL; |
1d99702e RD |
686 | if (_argo0) { |
687 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
688 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
af309447 RD |
689 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_set. Expected _wxListItem_p."); |
690 | return NULL; | |
691 | } | |
692 | } | |
cf694132 RD |
693 | { |
694 | wxPy_BEGIN_ALLOW_THREADS; | |
695 | _result = (int )wxListItem_m_width_set(_arg0,_arg1); | |
696 | ||
697 | wxPy_END_ALLOW_THREADS; | |
698 | } _resultobj = Py_BuildValue("i",_result); | |
af309447 RD |
699 | return _resultobj; |
700 | } | |
701 | ||
8ab979d7 | 702 | #define wxListItem_m_width_get(_swigobj) ((int ) _swigobj->m_width) |
efc5f224 | 703 | static PyObject *_wrap_wxListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
704 | PyObject * _resultobj; |
705 | int _result; | |
706 | wxListItem * _arg0; | |
1d99702e | 707 | PyObject * _argo0 = 0; |
efc5f224 | 708 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
709 | |
710 | self = self; | |
efc5f224 | 711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_width_get",_kwnames,&_argo0)) |
8ab979d7 | 712 | return NULL; |
1d99702e RD |
713 | if (_argo0) { |
714 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
715 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
8ab979d7 RD |
716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_get. Expected _wxListItem_p."); |
717 | return NULL; | |
718 | } | |
719 | } | |
cf694132 RD |
720 | { |
721 | wxPy_BEGIN_ALLOW_THREADS; | |
722 | _result = (int )wxListItem_m_width_get(_arg0); | |
723 | ||
724 | wxPy_END_ALLOW_THREADS; | |
725 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
726 | return _resultobj; |
727 | } | |
728 | ||
729 | #define new_wxListItem() (new wxListItem()) | |
efc5f224 | 730 | static PyObject *_wrap_new_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
731 | PyObject * _resultobj; |
732 | wxListItem * _result; | |
efc5f224 | 733 | char *_kwnames[] = { NULL }; |
8ab979d7 RD |
734 | char _ptemp[128]; |
735 | ||
736 | self = self; | |
efc5f224 | 737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxListItem",_kwnames)) |
8ab979d7 | 738 | return NULL; |
cf694132 RD |
739 | { |
740 | wxPy_BEGIN_ALLOW_THREADS; | |
741 | _result = (wxListItem *)new_wxListItem(); | |
742 | ||
743 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
744 | } if (_result) { |
745 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p"); | |
746 | _resultobj = Py_BuildValue("s",_ptemp); | |
747 | } else { | |
748 | Py_INCREF(Py_None); | |
749 | _resultobj = Py_None; | |
750 | } | |
8ab979d7 RD |
751 | return _resultobj; |
752 | } | |
753 | ||
754 | #define delete_wxListItem(_swigobj) (delete _swigobj) | |
efc5f224 | 755 | static PyObject *_wrap_delete_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
756 | PyObject * _resultobj; |
757 | wxListItem * _arg0; | |
1d99702e | 758 | PyObject * _argo0 = 0; |
efc5f224 | 759 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
760 | |
761 | self = self; | |
efc5f224 | 762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxListItem",_kwnames,&_argo0)) |
8ab979d7 | 763 | return NULL; |
1d99702e RD |
764 | if (_argo0) { |
765 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
766 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
8ab979d7 RD |
767 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxListItem. Expected _wxListItem_p."); |
768 | return NULL; | |
769 | } | |
770 | } | |
cf694132 RD |
771 | { |
772 | wxPy_BEGIN_ALLOW_THREADS; | |
773 | delete_wxListItem(_arg0); | |
774 | ||
775 | wxPy_END_ALLOW_THREADS; | |
776 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
777 | _resultobj = Py_None; |
778 | return _resultobj; | |
779 | } | |
780 | ||
781 | static void *SwigwxListEventTowxCommandEvent(void *ptr) { | |
782 | wxListEvent *src; | |
783 | wxCommandEvent *dest; | |
784 | src = (wxListEvent *) ptr; | |
785 | dest = (wxCommandEvent *) src; | |
786 | return (void *) dest; | |
787 | } | |
788 | ||
789 | static void *SwigwxListEventTowxEvent(void *ptr) { | |
790 | wxListEvent *src; | |
791 | wxEvent *dest; | |
792 | src = (wxListEvent *) ptr; | |
793 | dest = (wxEvent *) src; | |
794 | return (void *) dest; | |
795 | } | |
796 | ||
af309447 | 797 | #define wxListEvent_m_code_set(_swigobj,_swigval) (_swigobj->m_code = _swigval,_swigval) |
efc5f224 | 798 | static PyObject *_wrap_wxListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
799 | PyObject * _resultobj; |
800 | int _result; | |
801 | wxListEvent * _arg0; | |
802 | int _arg1; | |
1d99702e | 803 | PyObject * _argo0 = 0; |
efc5f224 | 804 | char *_kwnames[] = { "self","m_code", NULL }; |
af309447 RD |
805 | |
806 | self = self; | |
efc5f224 | 807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_code_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 808 | return NULL; |
1d99702e RD |
809 | if (_argo0) { |
810 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
811 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
af309447 RD |
812 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_code_set. Expected _wxListEvent_p."); |
813 | return NULL; | |
814 | } | |
815 | } | |
cf694132 RD |
816 | { |
817 | wxPy_BEGIN_ALLOW_THREADS; | |
818 | _result = (int )wxListEvent_m_code_set(_arg0,_arg1); | |
819 | ||
820 | wxPy_END_ALLOW_THREADS; | |
821 | } _resultobj = Py_BuildValue("i",_result); | |
af309447 RD |
822 | return _resultobj; |
823 | } | |
824 | ||
8ab979d7 | 825 | #define wxListEvent_m_code_get(_swigobj) ((int ) _swigobj->m_code) |
efc5f224 | 826 | static PyObject *_wrap_wxListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
827 | PyObject * _resultobj; |
828 | int _result; | |
829 | wxListEvent * _arg0; | |
1d99702e | 830 | PyObject * _argo0 = 0; |
efc5f224 | 831 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
832 | |
833 | self = self; | |
efc5f224 | 834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_code_get",_kwnames,&_argo0)) |
8ab979d7 | 835 | return NULL; |
1d99702e RD |
836 | if (_argo0) { |
837 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
838 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
8ab979d7 RD |
839 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_code_get. Expected _wxListEvent_p."); |
840 | return NULL; | |
841 | } | |
842 | } | |
cf694132 RD |
843 | { |
844 | wxPy_BEGIN_ALLOW_THREADS; | |
845 | _result = (int )wxListEvent_m_code_get(_arg0); | |
846 | ||
847 | wxPy_END_ALLOW_THREADS; | |
848 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
849 | return _resultobj; |
850 | } | |
851 | ||
af309447 | 852 | #define wxListEvent_m_itemIndex_set(_swigobj,_swigval) (_swigobj->m_itemIndex = _swigval,_swigval) |
efc5f224 | 853 | static PyObject *_wrap_wxListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
854 | PyObject * _resultobj; |
855 | long _result; | |
856 | wxListEvent * _arg0; | |
857 | long _arg1; | |
1d99702e | 858 | PyObject * _argo0 = 0; |
efc5f224 | 859 | char *_kwnames[] = { "self","m_itemIndex", NULL }; |
af309447 RD |
860 | |
861 | self = self; | |
efc5f224 | 862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListEvent_m_itemIndex_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 863 | return NULL; |
1d99702e RD |
864 | if (_argo0) { |
865 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
866 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
af309447 RD |
867 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_set. Expected _wxListEvent_p."); |
868 | return NULL; | |
869 | } | |
870 | } | |
cf694132 RD |
871 | { |
872 | wxPy_BEGIN_ALLOW_THREADS; | |
873 | _result = (long )wxListEvent_m_itemIndex_set(_arg0,_arg1); | |
874 | ||
875 | wxPy_END_ALLOW_THREADS; | |
876 | } _resultobj = Py_BuildValue("l",_result); | |
af309447 RD |
877 | return _resultobj; |
878 | } | |
879 | ||
8ab979d7 | 880 | #define wxListEvent_m_itemIndex_get(_swigobj) ((long ) _swigobj->m_itemIndex) |
efc5f224 | 881 | static PyObject *_wrap_wxListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
882 | PyObject * _resultobj; |
883 | long _result; | |
884 | wxListEvent * _arg0; | |
1d99702e | 885 | PyObject * _argo0 = 0; |
efc5f224 | 886 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
887 | |
888 | self = self; | |
efc5f224 | 889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_itemIndex_get",_kwnames,&_argo0)) |
8ab979d7 | 890 | return NULL; |
1d99702e RD |
891 | if (_argo0) { |
892 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
893 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
8ab979d7 RD |
894 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_get. Expected _wxListEvent_p."); |
895 | return NULL; | |
896 | } | |
897 | } | |
cf694132 RD |
898 | { |
899 | wxPy_BEGIN_ALLOW_THREADS; | |
900 | _result = (long )wxListEvent_m_itemIndex_get(_arg0); | |
901 | ||
902 | wxPy_END_ALLOW_THREADS; | |
903 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
904 | return _resultobj; |
905 | } | |
906 | ||
af309447 | 907 | #define wxListEvent_m_oldItemIndex_set(_swigobj,_swigval) (_swigobj->m_oldItemIndex = _swigval,_swigval) |
efc5f224 | 908 | static PyObject *_wrap_wxListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
909 | PyObject * _resultobj; |
910 | long _result; | |
911 | wxListEvent * _arg0; | |
912 | long _arg1; | |
1d99702e | 913 | PyObject * _argo0 = 0; |
efc5f224 | 914 | char *_kwnames[] = { "self","m_oldItemIndex", NULL }; |
af309447 RD |
915 | |
916 | self = self; | |
efc5f224 | 917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListEvent_m_oldItemIndex_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 918 | return NULL; |
1d99702e RD |
919 | if (_argo0) { |
920 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
921 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
af309447 RD |
922 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_set. Expected _wxListEvent_p."); |
923 | return NULL; | |
924 | } | |
925 | } | |
cf694132 RD |
926 | { |
927 | wxPy_BEGIN_ALLOW_THREADS; | |
928 | _result = (long )wxListEvent_m_oldItemIndex_set(_arg0,_arg1); | |
929 | ||
930 | wxPy_END_ALLOW_THREADS; | |
931 | } _resultobj = Py_BuildValue("l",_result); | |
af309447 RD |
932 | return _resultobj; |
933 | } | |
934 | ||
8ab979d7 | 935 | #define wxListEvent_m_oldItemIndex_get(_swigobj) ((long ) _swigobj->m_oldItemIndex) |
efc5f224 | 936 | static PyObject *_wrap_wxListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
937 | PyObject * _resultobj; |
938 | long _result; | |
939 | wxListEvent * _arg0; | |
1d99702e | 940 | PyObject * _argo0 = 0; |
efc5f224 | 941 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
942 | |
943 | self = self; | |
efc5f224 | 944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_oldItemIndex_get",_kwnames,&_argo0)) |
8ab979d7 | 945 | return NULL; |
1d99702e RD |
946 | if (_argo0) { |
947 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
948 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
8ab979d7 RD |
949 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_get. Expected _wxListEvent_p."); |
950 | return NULL; | |
951 | } | |
952 | } | |
cf694132 RD |
953 | { |
954 | wxPy_BEGIN_ALLOW_THREADS; | |
955 | _result = (long )wxListEvent_m_oldItemIndex_get(_arg0); | |
956 | ||
957 | wxPy_END_ALLOW_THREADS; | |
958 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
959 | return _resultobj; |
960 | } | |
961 | ||
af309447 | 962 | #define wxListEvent_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval) |
efc5f224 | 963 | static PyObject *_wrap_wxListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
964 | PyObject * _resultobj; |
965 | int _result; | |
966 | wxListEvent * _arg0; | |
967 | int _arg1; | |
1d99702e | 968 | PyObject * _argo0 = 0; |
efc5f224 | 969 | char *_kwnames[] = { "self","m_col", NULL }; |
af309447 RD |
970 | |
971 | self = self; | |
efc5f224 | 972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_col_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 973 | return NULL; |
1d99702e RD |
974 | if (_argo0) { |
975 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
976 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
af309447 RD |
977 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_set. Expected _wxListEvent_p."); |
978 | return NULL; | |
979 | } | |
980 | } | |
cf694132 RD |
981 | { |
982 | wxPy_BEGIN_ALLOW_THREADS; | |
983 | _result = (int )wxListEvent_m_col_set(_arg0,_arg1); | |
984 | ||
985 | wxPy_END_ALLOW_THREADS; | |
986 | } _resultobj = Py_BuildValue("i",_result); | |
af309447 RD |
987 | return _resultobj; |
988 | } | |
989 | ||
8ab979d7 | 990 | #define wxListEvent_m_col_get(_swigobj) ((int ) _swigobj->m_col) |
efc5f224 | 991 | static PyObject *_wrap_wxListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
992 | PyObject * _resultobj; |
993 | int _result; | |
994 | wxListEvent * _arg0; | |
1d99702e | 995 | PyObject * _argo0 = 0; |
efc5f224 | 996 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
997 | |
998 | self = self; | |
efc5f224 | 999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_col_get",_kwnames,&_argo0)) |
8ab979d7 | 1000 | return NULL; |
1d99702e RD |
1001 | if (_argo0) { |
1002 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1003 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
8ab979d7 RD |
1004 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_get. Expected _wxListEvent_p."); |
1005 | return NULL; | |
1006 | } | |
1007 | } | |
cf694132 RD |
1008 | { |
1009 | wxPy_BEGIN_ALLOW_THREADS; | |
1010 | _result = (int )wxListEvent_m_col_get(_arg0); | |
1011 | ||
1012 | wxPy_END_ALLOW_THREADS; | |
1013 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1014 | return _resultobj; |
1015 | } | |
1016 | ||
af309447 | 1017 | #define wxListEvent_m_cancelled_set(_swigobj,_swigval) (_swigobj->m_cancelled = _swigval,_swigval) |
efc5f224 | 1018 | static PyObject *_wrap_wxListEvent_m_cancelled_set(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
1019 | PyObject * _resultobj; |
1020 | bool _result; | |
1021 | wxListEvent * _arg0; | |
1022 | bool _arg1; | |
1d99702e | 1023 | PyObject * _argo0 = 0; |
af309447 | 1024 | int tempbool1; |
efc5f224 | 1025 | char *_kwnames[] = { "self","m_cancelled", NULL }; |
af309447 RD |
1026 | |
1027 | self = self; | |
efc5f224 | 1028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_cancelled_set",_kwnames,&_argo0,&tempbool1)) |
af309447 | 1029 | return NULL; |
1d99702e RD |
1030 | if (_argo0) { |
1031 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1032 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
af309447 RD |
1033 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_cancelled_set. Expected _wxListEvent_p."); |
1034 | return NULL; | |
1035 | } | |
1036 | } | |
1037 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
1038 | { |
1039 | wxPy_BEGIN_ALLOW_THREADS; | |
1040 | _result = (bool )wxListEvent_m_cancelled_set(_arg0,_arg1); | |
1041 | ||
1042 | wxPy_END_ALLOW_THREADS; | |
1043 | } _resultobj = Py_BuildValue("i",_result); | |
af309447 RD |
1044 | return _resultobj; |
1045 | } | |
1046 | ||
8ab979d7 | 1047 | #define wxListEvent_m_cancelled_get(_swigobj) ((bool ) _swigobj->m_cancelled) |
efc5f224 | 1048 | static PyObject *_wrap_wxListEvent_m_cancelled_get(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1049 | PyObject * _resultobj; |
1050 | bool _result; | |
1051 | wxListEvent * _arg0; | |
1d99702e | 1052 | PyObject * _argo0 = 0; |
efc5f224 | 1053 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1054 | |
1055 | self = self; | |
efc5f224 | 1056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_cancelled_get",_kwnames,&_argo0)) |
8ab979d7 | 1057 | return NULL; |
1d99702e RD |
1058 | if (_argo0) { |
1059 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1060 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
8ab979d7 RD |
1061 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_cancelled_get. Expected _wxListEvent_p."); |
1062 | return NULL; | |
1063 | } | |
1064 | } | |
cf694132 RD |
1065 | { |
1066 | wxPy_BEGIN_ALLOW_THREADS; | |
1067 | _result = (bool )wxListEvent_m_cancelled_get(_arg0); | |
1068 | ||
1069 | wxPy_END_ALLOW_THREADS; | |
1070 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1071 | return _resultobj; |
1072 | } | |
1073 | ||
af309447 | 1074 | #define wxListEvent_m_pointDrag_set(_swigobj,_swigval) (_swigobj->m_pointDrag = *(_swigval),_swigval) |
efc5f224 | 1075 | static PyObject *_wrap_wxListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
1076 | PyObject * _resultobj; |
1077 | wxPoint * _result; | |
1078 | wxListEvent * _arg0; | |
1079 | wxPoint * _arg1; | |
1d99702e | 1080 | PyObject * _argo0 = 0; |
2f90df85 RD |
1081 | wxPoint temp; |
1082 | PyObject * _obj1 = 0; | |
efc5f224 | 1083 | char *_kwnames[] = { "self","m_pointDrag", NULL }; |
af309447 RD |
1084 | char _ptemp[128]; |
1085 | ||
1086 | self = self; | |
2f90df85 | 1087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListEvent_m_pointDrag_set",_kwnames,&_argo0,&_obj1)) |
af309447 | 1088 | return NULL; |
1d99702e RD |
1089 | if (_argo0) { |
1090 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1091 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
af309447 RD |
1092 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_set. Expected _wxListEvent_p."); |
1093 | return NULL; | |
1094 | } | |
1095 | } | |
2f90df85 RD |
1096 | { |
1097 | _arg1 = &temp; | |
1098 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 1099 | return NULL; |
2f90df85 | 1100 | } |
cf694132 RD |
1101 | { |
1102 | wxPy_BEGIN_ALLOW_THREADS; | |
1103 | _result = (wxPoint *)wxListEvent_m_pointDrag_set(_arg0,_arg1); | |
1104 | ||
1105 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1106 | } if (_result) { |
1107 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
1108 | _resultobj = Py_BuildValue("s",_ptemp); | |
1109 | } else { | |
1110 | Py_INCREF(Py_None); | |
1111 | _resultobj = Py_None; | |
1112 | } | |
af309447 RD |
1113 | return _resultobj; |
1114 | } | |
1115 | ||
8ab979d7 | 1116 | #define wxListEvent_m_pointDrag_get(_swigobj) (&_swigobj->m_pointDrag) |
efc5f224 | 1117 | static PyObject *_wrap_wxListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1118 | PyObject * _resultobj; |
1119 | wxPoint * _result; | |
1120 | wxListEvent * _arg0; | |
1d99702e | 1121 | PyObject * _argo0 = 0; |
efc5f224 | 1122 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1123 | char _ptemp[128]; |
1124 | ||
1125 | self = self; | |
efc5f224 | 1126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_pointDrag_get",_kwnames,&_argo0)) |
8ab979d7 | 1127 | return NULL; |
1d99702e RD |
1128 | if (_argo0) { |
1129 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1130 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
8ab979d7 RD |
1131 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_get. Expected _wxListEvent_p."); |
1132 | return NULL; | |
1133 | } | |
1134 | } | |
cf694132 RD |
1135 | { |
1136 | wxPy_BEGIN_ALLOW_THREADS; | |
1137 | _result = (wxPoint *)wxListEvent_m_pointDrag_get(_arg0); | |
1138 | ||
1139 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1140 | } if (_result) { |
1141 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
1142 | _resultobj = Py_BuildValue("s",_ptemp); | |
1143 | } else { | |
1144 | Py_INCREF(Py_None); | |
1145 | _resultobj = Py_None; | |
1146 | } | |
8ab979d7 RD |
1147 | return _resultobj; |
1148 | } | |
1149 | ||
af309447 | 1150 | #define wxListEvent_m_item_set(_swigobj,_swigval) (_swigobj->m_item = *(_swigval),_swigval) |
efc5f224 | 1151 | static PyObject *_wrap_wxListEvent_m_item_set(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
1152 | PyObject * _resultobj; |
1153 | wxListItem * _result; | |
1154 | wxListEvent * _arg0; | |
1155 | wxListItem * _arg1; | |
1d99702e RD |
1156 | PyObject * _argo0 = 0; |
1157 | PyObject * _argo1 = 0; | |
efc5f224 | 1158 | char *_kwnames[] = { "self","m_item", NULL }; |
af309447 RD |
1159 | char _ptemp[128]; |
1160 | ||
1161 | self = self; | |
efc5f224 | 1162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListEvent_m_item_set",_kwnames,&_argo0,&_argo1)) |
af309447 | 1163 | return NULL; |
1d99702e RD |
1164 | if (_argo0) { |
1165 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1166 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
af309447 RD |
1167 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_set. Expected _wxListEvent_p."); |
1168 | return NULL; | |
1169 | } | |
1170 | } | |
1d99702e RD |
1171 | if (_argo1) { |
1172 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1173 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
af309447 RD |
1174 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListEvent_m_item_set. Expected _wxListItem_p."); |
1175 | return NULL; | |
1176 | } | |
1177 | } | |
cf694132 RD |
1178 | { |
1179 | wxPy_BEGIN_ALLOW_THREADS; | |
1180 | _result = (wxListItem *)wxListEvent_m_item_set(_arg0,_arg1); | |
1181 | ||
1182 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1183 | } if (_result) { |
1184 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p"); | |
1185 | _resultobj = Py_BuildValue("s",_ptemp); | |
1186 | } else { | |
1187 | Py_INCREF(Py_None); | |
1188 | _resultobj = Py_None; | |
1189 | } | |
af309447 RD |
1190 | return _resultobj; |
1191 | } | |
1192 | ||
8ab979d7 | 1193 | #define wxListEvent_m_item_get(_swigobj) (&_swigobj->m_item) |
efc5f224 | 1194 | static PyObject *_wrap_wxListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1195 | PyObject * _resultobj; |
1196 | wxListItem * _result; | |
1197 | wxListEvent * _arg0; | |
1d99702e | 1198 | PyObject * _argo0 = 0; |
efc5f224 | 1199 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1200 | char _ptemp[128]; |
1201 | ||
1202 | self = self; | |
efc5f224 | 1203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_item_get",_kwnames,&_argo0)) |
8ab979d7 | 1204 | return NULL; |
1d99702e RD |
1205 | if (_argo0) { |
1206 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1207 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
8ab979d7 RD |
1208 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_get. Expected _wxListEvent_p."); |
1209 | return NULL; | |
1210 | } | |
1211 | } | |
cf694132 RD |
1212 | { |
1213 | wxPy_BEGIN_ALLOW_THREADS; | |
1214 | _result = (wxListItem *)wxListEvent_m_item_get(_arg0); | |
1215 | ||
1216 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1217 | } if (_result) { |
1218 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p"); | |
1219 | _resultobj = Py_BuildValue("s",_ptemp); | |
1220 | } else { | |
1221 | Py_INCREF(Py_None); | |
1222 | _resultobj = Py_None; | |
1223 | } | |
8ab979d7 RD |
1224 | return _resultobj; |
1225 | } | |
1226 | ||
1227 | static void *SwigwxListCtrlTowxControl(void *ptr) { | |
1228 | wxListCtrl *src; | |
1229 | wxControl *dest; | |
1230 | src = (wxListCtrl *) ptr; | |
1231 | dest = (wxControl *) src; | |
1232 | return (void *) dest; | |
1233 | } | |
1234 | ||
1235 | static void *SwigwxListCtrlTowxWindow(void *ptr) { | |
1236 | wxListCtrl *src; | |
1237 | wxWindow *dest; | |
1238 | src = (wxListCtrl *) ptr; | |
1239 | dest = (wxWindow *) src; | |
1240 | return (void *) dest; | |
1241 | } | |
1242 | ||
1243 | static void *SwigwxListCtrlTowxEvtHandler(void *ptr) { | |
1244 | wxListCtrl *src; | |
1245 | wxEvtHandler *dest; | |
1246 | src = (wxListCtrl *) ptr; | |
1247 | dest = (wxEvtHandler *) src; | |
1248 | return (void *) dest; | |
1249 | } | |
1250 | ||
1251 | #define new_wxListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
efc5f224 | 1252 | static PyObject *_wrap_new_wxListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1253 | PyObject * _resultobj; |
1254 | wxListCtrl * _result; | |
1255 | wxWindow * _arg0; | |
1256 | wxWindowID _arg1; | |
1d99702e RD |
1257 | wxPoint * _arg2 = (wxPoint *) &wxPyDefaultPosition; |
1258 | wxSize * _arg3 = (wxSize *) &wxPyDefaultSize; | |
1259 | long _arg4 = (long ) wxLC_ICON; | |
1260 | wxValidator * _arg5 = (wxValidator *) &wxPyDefaultValidator; | |
1261 | char * _arg6 = (char *) "listCtrl"; | |
1262 | PyObject * _argo0 = 0; | |
2f90df85 RD |
1263 | wxPoint temp; |
1264 | PyObject * _obj2 = 0; | |
1265 | wxSize temp0; | |
1266 | PyObject * _obj3 = 0; | |
1d99702e | 1267 | PyObject * _argo5 = 0; |
efc5f224 | 1268 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
1269 | char _ptemp[128]; |
1270 | ||
1271 | self = self; | |
2f90df85 | 1272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlOs:new_wxListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) |
8ab979d7 | 1273 | return NULL; |
1d99702e RD |
1274 | if (_argo0) { |
1275 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1276 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1277 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListCtrl. Expected _wxWindow_p."); |
1278 | return NULL; | |
1279 | } | |
1280 | } | |
2f90df85 RD |
1281 | if (_obj2) |
1282 | { | |
1283 | _arg2 = &temp; | |
1284 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 1285 | return NULL; |
2f90df85 RD |
1286 | } |
1287 | if (_obj3) | |
1288 | { | |
1289 | _arg3 = &temp0; | |
1290 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 1291 | return NULL; |
2f90df85 | 1292 | } |
1d99702e RD |
1293 | if (_argo5) { |
1294 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
1295 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
8ab979d7 RD |
1296 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListCtrl. Expected _wxValidator_p."); |
1297 | return NULL; | |
1298 | } | |
1299 | } | |
cf694132 RD |
1300 | { |
1301 | wxPy_BEGIN_ALLOW_THREADS; | |
1302 | _result = (wxListCtrl *)new_wxListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); | |
1303 | ||
1304 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1305 | } if (_result) { |
1306 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListCtrl_p"); | |
1307 | _resultobj = Py_BuildValue("s",_ptemp); | |
1308 | } else { | |
1309 | Py_INCREF(Py_None); | |
1310 | _resultobj = Py_None; | |
1311 | } | |
8ab979d7 RD |
1312 | return _resultobj; |
1313 | } | |
1314 | ||
1315 | #define wxListCtrl_Arrange(_swigobj,_swigarg0) (_swigobj->Arrange(_swigarg0)) | |
efc5f224 | 1316 | static PyObject *_wrap_wxListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1317 | PyObject * _resultobj; |
1318 | bool _result; | |
1319 | wxListCtrl * _arg0; | |
1d99702e RD |
1320 | int _arg1 = (int ) (wxLIST_ALIGN_DEFAULT); |
1321 | PyObject * _argo0 = 0; | |
efc5f224 | 1322 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
1323 | |
1324 | self = self; | |
efc5f224 | 1325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxListCtrl_Arrange",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1326 | return NULL; |
1d99702e RD |
1327 | if (_argo0) { |
1328 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1329 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
1330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Arrange. Expected _wxListCtrl_p."); |
1331 | return NULL; | |
1332 | } | |
1333 | } | |
cf694132 RD |
1334 | { |
1335 | wxPy_BEGIN_ALLOW_THREADS; | |
1336 | _result = (bool )wxListCtrl_Arrange(_arg0,_arg1); | |
1337 | ||
1338 | wxPy_END_ALLOW_THREADS; | |
1339 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1340 | return _resultobj; |
1341 | } | |
1342 | ||
1343 | #define wxListCtrl_DeleteItem(_swigobj,_swigarg0) (_swigobj->DeleteItem(_swigarg0)) | |
efc5f224 | 1344 | static PyObject *_wrap_wxListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1345 | PyObject * _resultobj; |
1346 | bool _result; | |
1347 | wxListCtrl * _arg0; | |
1348 | long _arg1; | |
1d99702e | 1349 | PyObject * _argo0 = 0; |
efc5f224 | 1350 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
1351 | |
1352 | self = self; | |
efc5f224 | 1353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_DeleteItem",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1354 | return NULL; |
1d99702e RD |
1355 | if (_argo0) { |
1356 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1357 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
1358 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteItem. Expected _wxListCtrl_p."); |
1359 | return NULL; | |
1360 | } | |
1361 | } | |
cf694132 RD |
1362 | { |
1363 | wxPy_BEGIN_ALLOW_THREADS; | |
1364 | _result = (bool )wxListCtrl_DeleteItem(_arg0,_arg1); | |
1365 | ||
1366 | wxPy_END_ALLOW_THREADS; | |
1367 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1368 | return _resultobj; |
1369 | } | |
1370 | ||
1371 | #define wxListCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) | |
efc5f224 | 1372 | static PyObject *_wrap_wxListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1373 | PyObject * _resultobj; |
1374 | bool _result; | |
1375 | wxListCtrl * _arg0; | |
1d99702e | 1376 | PyObject * _argo0 = 0; |
efc5f224 | 1377 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1378 | |
1379 | self = self; | |
efc5f224 | 1380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllItems",_kwnames,&_argo0)) |
8ab979d7 | 1381 | return NULL; |
1d99702e RD |
1382 | if (_argo0) { |
1383 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1384 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
1385 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllItems. Expected _wxListCtrl_p."); |
1386 | return NULL; | |
1387 | } | |
1388 | } | |
cf694132 RD |
1389 | { |
1390 | wxPy_BEGIN_ALLOW_THREADS; | |
1391 | _result = (bool )wxListCtrl_DeleteAllItems(_arg0); | |
1392 | ||
1393 | wxPy_END_ALLOW_THREADS; | |
1394 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1395 | return _resultobj; |
1396 | } | |
1397 | ||
1398 | #define wxListCtrl_DeleteColumn(_swigobj,_swigarg0) (_swigobj->DeleteColumn(_swigarg0)) | |
efc5f224 | 1399 | static PyObject *_wrap_wxListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1400 | PyObject * _resultobj; |
1401 | bool _result; | |
1402 | wxListCtrl * _arg0; | |
1403 | int _arg1; | |
1d99702e | 1404 | PyObject * _argo0 = 0; |
efc5f224 | 1405 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
1406 | |
1407 | self = self; | |
efc5f224 | 1408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_DeleteColumn",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1409 | return NULL; |
1d99702e RD |
1410 | if (_argo0) { |
1411 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1412 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
1413 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteColumn. Expected _wxListCtrl_p."); |
1414 | return NULL; | |
1415 | } | |
1416 | } | |
cf694132 RD |
1417 | { |
1418 | wxPy_BEGIN_ALLOW_THREADS; | |
1419 | _result = (bool )wxListCtrl_DeleteColumn(_arg0,_arg1); | |
1420 | ||
1421 | wxPy_END_ALLOW_THREADS; | |
1422 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1423 | return _resultobj; |
1424 | } | |
1425 | ||
1426 | #define wxListCtrl_DeleteAllColumns(_swigobj) (_swigobj->DeleteAllColumns()) | |
efc5f224 | 1427 | static PyObject *_wrap_wxListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1428 | PyObject * _resultobj; |
1429 | bool _result; | |
1430 | wxListCtrl * _arg0; | |
1d99702e | 1431 | PyObject * _argo0 = 0; |
efc5f224 | 1432 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1433 | |
1434 | self = self; | |
efc5f224 | 1435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllColumns",_kwnames,&_argo0)) |
8ab979d7 | 1436 | return NULL; |
1d99702e RD |
1437 | if (_argo0) { |
1438 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1439 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
1440 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllColumns. Expected _wxListCtrl_p."); |
1441 | return NULL; | |
1442 | } | |
1443 | } | |
cf694132 RD |
1444 | { |
1445 | wxPy_BEGIN_ALLOW_THREADS; | |
1446 | _result = (bool )wxListCtrl_DeleteAllColumns(_arg0); | |
1447 | ||
1448 | wxPy_END_ALLOW_THREADS; | |
1449 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1450 | return _resultobj; |
1451 | } | |
1452 | ||
1453 | #define wxListCtrl_ClearAll(_swigobj) (_swigobj->ClearAll()) | |
efc5f224 | 1454 | static PyObject *_wrap_wxListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1455 | PyObject * _resultobj; |
1456 | wxListCtrl * _arg0; | |
1d99702e | 1457 | PyObject * _argo0 = 0; |
efc5f224 | 1458 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1459 | |
1460 | self = self; | |
efc5f224 | 1461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_ClearAll",_kwnames,&_argo0)) |
8ab979d7 | 1462 | return NULL; |
1d99702e RD |
1463 | if (_argo0) { |
1464 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1465 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
1466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ClearAll. Expected _wxListCtrl_p."); |
1467 | return NULL; | |
1468 | } | |
1469 | } | |
cf694132 RD |
1470 | { |
1471 | wxPy_BEGIN_ALLOW_THREADS; | |
1472 | wxListCtrl_ClearAll(_arg0); | |
1473 | ||
1474 | wxPy_END_ALLOW_THREADS; | |
1475 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
1476 | _resultobj = Py_None; |
1477 | return _resultobj; | |
1478 | } | |
1479 | ||
1480 | #define wxListCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0)) | |
efc5f224 | 1481 | static PyObject *_wrap_wxListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1482 | PyObject * _resultobj; |
1483 | wxTextCtrl * _result; | |
1484 | wxListCtrl * _arg0; | |
1485 | long _arg1; | |
1d99702e | 1486 | PyObject * _argo0 = 0; |
efc5f224 | 1487 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
1488 | char _ptemp[128]; |
1489 | ||
1490 | self = self; | |
efc5f224 | 1491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EditLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1492 | return NULL; |
1d99702e RD |
1493 | if (_argo0) { |
1494 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1495 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
1496 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EditLabel. Expected _wxListCtrl_p."); |
1497 | return NULL; | |
1498 | } | |
1499 | } | |
cf694132 RD |
1500 | { |
1501 | wxPy_BEGIN_ALLOW_THREADS; | |
1502 | _result = (wxTextCtrl *)wxListCtrl_EditLabel(_arg0,_arg1); | |
1503 | ||
1504 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1505 | } if (_result) { |
1506 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p"); | |
1507 | _resultobj = Py_BuildValue("s",_ptemp); | |
1508 | } else { | |
1509 | Py_INCREF(Py_None); | |
1510 | _resultobj = Py_None; | |
1511 | } | |
8ab979d7 RD |
1512 | return _resultobj; |
1513 | } | |
1514 | ||
1515 | #define wxListCtrl_EndEditLabel(_swigobj,_swigarg0) (_swigobj->EndEditLabel(_swigarg0)) | |
efc5f224 | 1516 | static PyObject *_wrap_wxListCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1517 | PyObject * _resultobj; |
1518 | bool _result; | |
1519 | wxListCtrl * _arg0; | |
1520 | bool _arg1; | |
1d99702e | 1521 | PyObject * _argo0 = 0; |
8ab979d7 | 1522 | int tempbool1; |
efc5f224 | 1523 | char *_kwnames[] = { "self","cancel", NULL }; |
8ab979d7 RD |
1524 | |
1525 | self = self; | |
efc5f224 | 1526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_EndEditLabel",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 1527 | return NULL; |
1d99702e RD |
1528 | if (_argo0) { |
1529 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1530 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
1531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EndEditLabel. Expected _wxListCtrl_p."); |
1532 | return NULL; | |
1533 | } | |
1534 | } | |
1535 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
1536 | { |
1537 | wxPy_BEGIN_ALLOW_THREADS; | |
1538 | _result = (bool )wxListCtrl_EndEditLabel(_arg0,_arg1); | |
1539 | ||
1540 | wxPy_END_ALLOW_THREADS; | |
1541 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1542 | return _resultobj; |
1543 | } | |
1544 | ||
be4d9c1f | 1545 | #define wxListCtrl_GetEditControl(_swigobj) (_swigobj->GetEditControl()) |
efc5f224 | 1546 | static PyObject *_wrap_wxListCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
be4d9c1f RD |
1547 | PyObject * _resultobj; |
1548 | wxTextCtrl * _result; | |
1549 | wxListCtrl * _arg0; | |
1d99702e | 1550 | PyObject * _argo0 = 0; |
efc5f224 | 1551 | char *_kwnames[] = { "self", NULL }; |
be4d9c1f RD |
1552 | char _ptemp[128]; |
1553 | ||
1554 | self = self; | |
efc5f224 | 1555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetEditControl",_kwnames,&_argo0)) |
be4d9c1f | 1556 | return NULL; |
1d99702e RD |
1557 | if (_argo0) { |
1558 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1559 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
be4d9c1f RD |
1560 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetEditControl. Expected _wxListCtrl_p."); |
1561 | return NULL; | |
1562 | } | |
1563 | } | |
cf694132 RD |
1564 | { |
1565 | wxPy_BEGIN_ALLOW_THREADS; | |
1566 | _result = (wxTextCtrl *)wxListCtrl_GetEditControl(_arg0); | |
1567 | ||
1568 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1569 | } if (_result) { |
1570 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p"); | |
1571 | _resultobj = Py_BuildValue("s",_ptemp); | |
1572 | } else { | |
1573 | Py_INCREF(Py_None); | |
1574 | _resultobj = Py_None; | |
1575 | } | |
be4d9c1f RD |
1576 | return _resultobj; |
1577 | } | |
1578 | ||
8ab979d7 | 1579 | #define wxListCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) |
efc5f224 | 1580 | static PyObject *_wrap_wxListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1581 | PyObject * _resultobj; |
1582 | bool _result; | |
1583 | wxListCtrl * _arg0; | |
1584 | long _arg1; | |
1d99702e | 1585 | PyObject * _argo0 = 0; |
efc5f224 | 1586 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
1587 | |
1588 | self = self; | |
efc5f224 | 1589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EnsureVisible",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1590 | return NULL; |
1d99702e RD |
1591 | if (_argo0) { |
1592 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1593 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
1594 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EnsureVisible. Expected _wxListCtrl_p."); |
1595 | return NULL; | |
1596 | } | |
1597 | } | |
cf694132 RD |
1598 | { |
1599 | wxPy_BEGIN_ALLOW_THREADS; | |
1600 | _result = (bool )wxListCtrl_EnsureVisible(_arg0,_arg1); | |
1601 | ||
1602 | wxPy_END_ALLOW_THREADS; | |
1603 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1604 | return _resultobj; |
1605 | } | |
1606 | ||
1607 | #define wxListCtrl_FindItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 1608 | static PyObject *_wrap_wxListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1609 | PyObject * _resultobj; |
1610 | long _result; | |
1611 | wxListCtrl * _arg0; | |
1612 | long _arg1; | |
1613 | wxString * _arg2; | |
1d99702e RD |
1614 | bool _arg3 = (bool ) FALSE; |
1615 | PyObject * _argo0 = 0; | |
8ab979d7 | 1616 | PyObject * _obj2 = 0; |
1d99702e | 1617 | int tempbool3 = (int) FALSE; |
efc5f224 | 1618 | char *_kwnames[] = { "self","start","str","partial", NULL }; |
8ab979d7 RD |
1619 | |
1620 | self = self; | |
efc5f224 | 1621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|i:wxListCtrl_FindItem",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3)) |
8ab979d7 | 1622 | return NULL; |
1d99702e RD |
1623 | if (_argo0) { |
1624 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1625 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
1626 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItem. Expected _wxListCtrl_p."); |
1627 | return NULL; | |
1628 | } | |
1629 | } | |
1630 | { | |
1631 | if (!PyString_Check(_obj2)) { | |
1632 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1633 | return NULL; | |
1634 | } | |
cf694132 | 1635 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); |
8ab979d7 RD |
1636 | } |
1637 | _arg3 = (bool ) tempbool3; | |
cf694132 RD |
1638 | { |
1639 | wxPy_BEGIN_ALLOW_THREADS; | |
1640 | _result = (long )wxListCtrl_FindItem(_arg0,_arg1,*_arg2,_arg3); | |
1641 | ||
1642 | wxPy_END_ALLOW_THREADS; | |
1643 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
1644 | { |
1645 | if (_obj2) | |
1646 | delete _arg2; | |
1647 | } | |
1648 | return _resultobj; | |
1649 | } | |
1650 | ||
1651 | #define wxListCtrl_FindItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindItem(_swigarg0,_swigarg1)) | |
efc5f224 | 1652 | static PyObject *_wrap_wxListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1653 | PyObject * _resultobj; |
1654 | long _result; | |
1655 | wxListCtrl * _arg0; | |
1656 | long _arg1; | |
1657 | long _arg2; | |
1d99702e | 1658 | PyObject * _argo0 = 0; |
efc5f224 | 1659 | char *_kwnames[] = { "self","start","data", NULL }; |
8ab979d7 RD |
1660 | |
1661 | self = self; | |
efc5f224 | 1662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_FindItemData",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 1663 | return NULL; |
1d99702e RD |
1664 | if (_argo0) { |
1665 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1666 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
1667 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemData. Expected _wxListCtrl_p."); |
1668 | return NULL; | |
1669 | } | |
1670 | } | |
cf694132 RD |
1671 | { |
1672 | wxPy_BEGIN_ALLOW_THREADS; | |
1673 | _result = (long )wxListCtrl_FindItemData(_arg0,_arg1,_arg2); | |
1674 | ||
1675 | wxPy_END_ALLOW_THREADS; | |
1676 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
1677 | return _resultobj; |
1678 | } | |
1679 | ||
1680 | #define wxListCtrl_FindItemAtPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 1681 | static PyObject *_wrap_wxListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1682 | PyObject * _resultobj; |
1683 | long _result; | |
1684 | wxListCtrl * _arg0; | |
1685 | long _arg1; | |
1686 | wxPoint * _arg2; | |
1687 | int _arg3; | |
1d99702e | 1688 | PyObject * _argo0 = 0; |
2f90df85 RD |
1689 | wxPoint temp; |
1690 | PyObject * _obj2 = 0; | |
efc5f224 | 1691 | char *_kwnames[] = { "self","start","pt","direction", NULL }; |
8ab979d7 RD |
1692 | |
1693 | self = self; | |
2f90df85 | 1694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_FindItemAtPos",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) |
8ab979d7 | 1695 | return NULL; |
1d99702e RD |
1696 | if (_argo0) { |
1697 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1698 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
1699 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemAtPos. Expected _wxListCtrl_p."); |
1700 | return NULL; | |
1701 | } | |
1702 | } | |
2f90df85 RD |
1703 | { |
1704 | _arg2 = &temp; | |
1705 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 1706 | return NULL; |
2f90df85 | 1707 | } |
cf694132 RD |
1708 | { |
1709 | wxPy_BEGIN_ALLOW_THREADS; | |
1710 | _result = (long )wxListCtrl_FindItemAtPos(_arg0,_arg1,*_arg2,_arg3); | |
1711 | ||
1712 | wxPy_END_ALLOW_THREADS; | |
1713 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
1714 | return _resultobj; |
1715 | } | |
1716 | ||
1717 | #define wxListCtrl_GetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetColumn(_swigarg0,_swigarg1)) | |
efc5f224 | 1718 | static PyObject *_wrap_wxListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1719 | PyObject * _resultobj; |
1720 | bool _result; | |
1721 | wxListCtrl * _arg0; | |
1722 | int _arg1; | |
1723 | wxListItem * _arg2; | |
1d99702e RD |
1724 | PyObject * _argo0 = 0; |
1725 | PyObject * _argo2 = 0; | |
efc5f224 | 1726 | char *_kwnames[] = { "self","col","item", NULL }; |
8ab979d7 RD |
1727 | |
1728 | self = self; | |
efc5f224 | 1729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_GetColumn",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 1730 | return NULL; |
1d99702e RD |
1731 | if (_argo0) { |
1732 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1733 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
1734 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumn. Expected _wxListCtrl_p."); |
1735 | return NULL; | |
1736 | } | |
1737 | } | |
1d99702e RD |
1738 | if (_argo2) { |
1739 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
1740 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
8ab979d7 RD |
1741 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_GetColumn. Expected _wxListItem_p."); |
1742 | return NULL; | |
1743 | } | |
1744 | } | |
cf694132 RD |
1745 | { |
1746 | wxPy_BEGIN_ALLOW_THREADS; | |
1747 | _result = (bool )wxListCtrl_GetColumn(_arg0,_arg1,*_arg2); | |
1748 | ||
1749 | wxPy_END_ALLOW_THREADS; | |
1750 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1751 | return _resultobj; |
1752 | } | |
1753 | ||
1754 | #define wxListCtrl_GetColumnWidth(_swigobj,_swigarg0) (_swigobj->GetColumnWidth(_swigarg0)) | |
efc5f224 | 1755 | static PyObject *_wrap_wxListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1756 | PyObject * _resultobj; |
1757 | int _result; | |
1758 | wxListCtrl * _arg0; | |
1759 | int _arg1; | |
1d99702e | 1760 | PyObject * _argo0 = 0; |
efc5f224 | 1761 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
1762 | |
1763 | self = self; | |
efc5f224 | 1764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetColumnWidth",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1765 | return NULL; |
1d99702e RD |
1766 | if (_argo0) { |
1767 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1768 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
1769 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnWidth. Expected _wxListCtrl_p."); |
1770 | return NULL; | |
1771 | } | |
1772 | } | |
cf694132 RD |
1773 | { |
1774 | wxPy_BEGIN_ALLOW_THREADS; | |
1775 | _result = (int )wxListCtrl_GetColumnWidth(_arg0,_arg1); | |
1776 | ||
1777 | wxPy_END_ALLOW_THREADS; | |
1778 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1779 | return _resultobj; |
1780 | } | |
1781 | ||
1782 | #define wxListCtrl_GetCountPerPage(_swigobj) (_swigobj->GetCountPerPage()) | |
efc5f224 | 1783 | static PyObject *_wrap_wxListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1784 | PyObject * _resultobj; |
1785 | int _result; | |
1786 | wxListCtrl * _arg0; | |
1d99702e | 1787 | PyObject * _argo0 = 0; |
efc5f224 | 1788 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1789 | |
1790 | self = self; | |
efc5f224 | 1791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetCountPerPage",_kwnames,&_argo0)) |
8ab979d7 | 1792 | return NULL; |
1d99702e RD |
1793 | if (_argo0) { |
1794 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1795 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
1796 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetCountPerPage. Expected _wxListCtrl_p."); |
1797 | return NULL; | |
1798 | } | |
1799 | } | |
cf694132 RD |
1800 | { |
1801 | wxPy_BEGIN_ALLOW_THREADS; | |
1802 | _result = (int )wxListCtrl_GetCountPerPage(_arg0); | |
1803 | ||
1804 | wxPy_END_ALLOW_THREADS; | |
1805 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
1806 | return _resultobj; |
1807 | } | |
1808 | ||
1809 | #define wxListCtrl_GetImageList(_swigobj,_swigarg0) (_swigobj->GetImageList(_swigarg0)) | |
efc5f224 | 1810 | static PyObject *_wrap_wxListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1811 | PyObject * _resultobj; |
1812 | wxImageList * _result; | |
1813 | wxListCtrl * _arg0; | |
1814 | int _arg1; | |
1d99702e | 1815 | PyObject * _argo0 = 0; |
efc5f224 | 1816 | char *_kwnames[] = { "self","which", NULL }; |
8ab979d7 RD |
1817 | char _ptemp[128]; |
1818 | ||
1819 | self = self; | |
efc5f224 | 1820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetImageList",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1821 | return NULL; |
1d99702e RD |
1822 | if (_argo0) { |
1823 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1824 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
1825 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetImageList. Expected _wxListCtrl_p."); |
1826 | return NULL; | |
1827 | } | |
1828 | } | |
cf694132 RD |
1829 | { |
1830 | wxPy_BEGIN_ALLOW_THREADS; | |
1831 | _result = (wxImageList *)wxListCtrl_GetImageList(_arg0,_arg1); | |
1832 | ||
1833 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1834 | } if (_result) { |
1835 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p"); | |
1836 | _resultobj = Py_BuildValue("s",_ptemp); | |
1837 | } else { | |
1838 | Py_INCREF(Py_None); | |
1839 | _resultobj = Py_None; | |
1840 | } | |
8ab979d7 RD |
1841 | return _resultobj; |
1842 | } | |
1843 | ||
1844 | #define wxListCtrl_GetItemData(_swigobj,_swigarg0) (_swigobj->GetItemData(_swigarg0)) | |
efc5f224 | 1845 | static PyObject *_wrap_wxListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1846 | PyObject * _resultobj; |
1847 | long _result; | |
1848 | wxListCtrl * _arg0; | |
1849 | long _arg1; | |
1d99702e | 1850 | PyObject * _argo0 = 0; |
efc5f224 | 1851 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
1852 | |
1853 | self = self; | |
efc5f224 | 1854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemData",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1855 | return NULL; |
1d99702e RD |
1856 | if (_argo0) { |
1857 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1858 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
1859 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemData. Expected _wxListCtrl_p."); |
1860 | return NULL; | |
1861 | } | |
1862 | } | |
cf694132 RD |
1863 | { |
1864 | wxPy_BEGIN_ALLOW_THREADS; | |
1865 | _result = (long )wxListCtrl_GetItemData(_arg0,_arg1); | |
1866 | ||
1867 | wxPy_END_ALLOW_THREADS; | |
1868 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
1869 | return _resultobj; |
1870 | } | |
1871 | ||
e166644c | 1872 | static wxListItem * wxListCtrl_GetItem(wxListCtrl *self,long itemId,int col) { |
8ab979d7 | 1873 | wxListItem* info = new wxListItem; |
0699c864 | 1874 | info->m_itemId = itemId; |
e166644c | 1875 | info->m_col = col; |
f17fee68 | 1876 | info->m_mask = 0xFFFF; |
8ab979d7 RD |
1877 | self->GetItem(*info); |
1878 | return info; | |
1879 | } | |
efc5f224 | 1880 | static PyObject *_wrap_wxListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1881 | PyObject * _resultobj; |
1882 | wxListItem * _result; | |
1883 | wxListCtrl * _arg0; | |
0699c864 | 1884 | long _arg1; |
e166644c | 1885 | int _arg2 = (int ) 0; |
1d99702e | 1886 | PyObject * _argo0 = 0; |
e166644c | 1887 | char *_kwnames[] = { "self","itemId","col", NULL }; |
8ab979d7 RD |
1888 | char _ptemp[128]; |
1889 | ||
1890 | self = self; | |
e166644c | 1891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItem",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 1892 | return NULL; |
1d99702e RD |
1893 | if (_argo0) { |
1894 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1895 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
1896 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItem. Expected _wxListCtrl_p."); |
1897 | return NULL; | |
1898 | } | |
1899 | } | |
cf694132 RD |
1900 | { |
1901 | wxPy_BEGIN_ALLOW_THREADS; | |
e166644c | 1902 | _result = (wxListItem *)wxListCtrl_GetItem(_arg0,_arg1,_arg2); |
cf694132 RD |
1903 | |
1904 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1905 | } if (_result) { |
1906 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p"); | |
1907 | _resultobj = Py_BuildValue("s",_ptemp); | |
1908 | } else { | |
1909 | Py_INCREF(Py_None); | |
1910 | _resultobj = Py_None; | |
1911 | } | |
8ab979d7 RD |
1912 | return _resultobj; |
1913 | } | |
1914 | ||
1915 | static wxPoint * wxListCtrl_GetItemPosition(wxListCtrl *self,long item) { | |
1916 | wxPoint* pos = new wxPoint; | |
1917 | self->GetItemPosition(item, *pos); | |
1918 | return pos; | |
1919 | } | |
efc5f224 | 1920 | static PyObject *_wrap_wxListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1921 | PyObject * _resultobj; |
1922 | wxPoint * _result; | |
1923 | wxListCtrl * _arg0; | |
1924 | long _arg1; | |
1d99702e | 1925 | PyObject * _argo0 = 0; |
efc5f224 | 1926 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
1927 | char _ptemp[128]; |
1928 | ||
1929 | self = self; | |
efc5f224 | 1930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemPosition",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1931 | return NULL; |
1d99702e RD |
1932 | if (_argo0) { |
1933 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1934 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
1935 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemPosition. Expected _wxListCtrl_p."); |
1936 | return NULL; | |
1937 | } | |
1938 | } | |
cf694132 RD |
1939 | { |
1940 | wxPy_BEGIN_ALLOW_THREADS; | |
1941 | _result = (wxPoint *)wxListCtrl_GetItemPosition(_arg0,_arg1); | |
1942 | ||
1943 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1944 | } if (_result) { |
1945 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
1946 | _resultobj = Py_BuildValue("s",_ptemp); | |
1947 | } else { | |
1948 | Py_INCREF(Py_None); | |
1949 | _resultobj = Py_None; | |
1950 | } | |
8ab979d7 RD |
1951 | return _resultobj; |
1952 | } | |
1953 | ||
1954 | static wxRect * wxListCtrl_GetItemRect(wxListCtrl *self,long item,int code) { | |
1955 | wxRect* rect= new wxRect; | |
1956 | self->GetItemRect(item, *rect, code); | |
1957 | return rect; | |
1958 | } | |
efc5f224 | 1959 | static PyObject *_wrap_wxListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1960 | PyObject * _resultobj; |
1961 | wxRect * _result; | |
1962 | wxListCtrl * _arg0; | |
1963 | long _arg1; | |
1d99702e RD |
1964 | int _arg2 = (int ) (wxLIST_RECT_BOUNDS); |
1965 | PyObject * _argo0 = 0; | |
efc5f224 | 1966 | char *_kwnames[] = { "self","item","code", NULL }; |
8ab979d7 RD |
1967 | char _ptemp[128]; |
1968 | ||
1969 | self = self; | |
efc5f224 | 1970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItemRect",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 1971 | return NULL; |
1d99702e RD |
1972 | if (_argo0) { |
1973 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1974 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
1975 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemRect. Expected _wxListCtrl_p."); |
1976 | return NULL; | |
1977 | } | |
1978 | } | |
cf694132 RD |
1979 | { |
1980 | wxPy_BEGIN_ALLOW_THREADS; | |
1981 | _result = (wxRect *)wxListCtrl_GetItemRect(_arg0,_arg1,_arg2); | |
1982 | ||
1983 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
1984 | } if (_result) { |
1985 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRect_p"); | |
1986 | _resultobj = Py_BuildValue("s",_ptemp); | |
1987 | } else { | |
1988 | Py_INCREF(Py_None); | |
1989 | _resultobj = Py_None; | |
1990 | } | |
8ab979d7 RD |
1991 | return _resultobj; |
1992 | } | |
1993 | ||
1994 | #define wxListCtrl_GetItemState(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemState(_swigarg0,_swigarg1)) | |
efc5f224 | 1995 | static PyObject *_wrap_wxListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1996 | PyObject * _resultobj; |
1997 | int _result; | |
1998 | wxListCtrl * _arg0; | |
1999 | long _arg1; | |
2000 | long _arg2; | |
1d99702e | 2001 | PyObject * _argo0 = 0; |
efc5f224 | 2002 | char *_kwnames[] = { "self","item","stateMask", NULL }; |
8ab979d7 RD |
2003 | |
2004 | self = self; | |
efc5f224 | 2005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_GetItemState",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 2006 | return NULL; |
1d99702e RD |
2007 | if (_argo0) { |
2008 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2009 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
2010 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemState. Expected _wxListCtrl_p."); |
2011 | return NULL; | |
2012 | } | |
2013 | } | |
cf694132 RD |
2014 | { |
2015 | wxPy_BEGIN_ALLOW_THREADS; | |
2016 | _result = (int )wxListCtrl_GetItemState(_arg0,_arg1,_arg2); | |
2017 | ||
2018 | wxPy_END_ALLOW_THREADS; | |
2019 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2020 | return _resultobj; |
2021 | } | |
2022 | ||
2023 | #define wxListCtrl_GetItemCount(_swigobj) (_swigobj->GetItemCount()) | |
efc5f224 | 2024 | static PyObject *_wrap_wxListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2025 | PyObject * _resultobj; |
2026 | int _result; | |
2027 | wxListCtrl * _arg0; | |
1d99702e | 2028 | PyObject * _argo0 = 0; |
efc5f224 | 2029 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2030 | |
2031 | self = self; | |
efc5f224 | 2032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetItemCount",_kwnames,&_argo0)) |
8ab979d7 | 2033 | return NULL; |
1d99702e RD |
2034 | if (_argo0) { |
2035 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2036 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
2037 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemCount. Expected _wxListCtrl_p."); |
2038 | return NULL; | |
2039 | } | |
2040 | } | |
cf694132 RD |
2041 | { |
2042 | wxPy_BEGIN_ALLOW_THREADS; | |
2043 | _result = (int )wxListCtrl_GetItemCount(_arg0); | |
2044 | ||
2045 | wxPy_END_ALLOW_THREADS; | |
2046 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2047 | return _resultobj; |
2048 | } | |
2049 | ||
2050 | #define wxListCtrl_GetItemSpacing(_swigobj,_swigarg0) (_swigobj->GetItemSpacing(_swigarg0)) | |
efc5f224 | 2051 | static PyObject *_wrap_wxListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2052 | PyObject * _resultobj; |
2053 | int _result; | |
2054 | wxListCtrl * _arg0; | |
2055 | bool _arg1; | |
1d99702e | 2056 | PyObject * _argo0 = 0; |
8ab979d7 | 2057 | int tempbool1; |
efc5f224 | 2058 | char *_kwnames[] = { "self","isSmall", NULL }; |
8ab979d7 RD |
2059 | |
2060 | self = self; | |
efc5f224 | 2061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetItemSpacing",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 2062 | return NULL; |
1d99702e RD |
2063 | if (_argo0) { |
2064 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2065 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
2066 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemSpacing. Expected _wxListCtrl_p."); |
2067 | return NULL; | |
2068 | } | |
2069 | } | |
2070 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
2071 | { |
2072 | wxPy_BEGIN_ALLOW_THREADS; | |
2073 | _result = (int )wxListCtrl_GetItemSpacing(_arg0,_arg1); | |
2074 | ||
2075 | wxPy_END_ALLOW_THREADS; | |
2076 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2077 | return _resultobj; |
2078 | } | |
2079 | ||
2080 | #define wxListCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) | |
efc5f224 | 2081 | static PyObject *_wrap_wxListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2082 | PyObject * _resultobj; |
2083 | wxString * _result; | |
2084 | wxListCtrl * _arg0; | |
2085 | long _arg1; | |
1d99702e | 2086 | PyObject * _argo0 = 0; |
efc5f224 | 2087 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
2088 | |
2089 | self = self; | |
efc5f224 | 2090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemText",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2091 | return NULL; |
1d99702e RD |
2092 | if (_argo0) { |
2093 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2094 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
2095 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemText. Expected _wxListCtrl_p."); |
2096 | return NULL; | |
2097 | } | |
2098 | } | |
8ab979d7 | 2099 | { |
cf694132 RD |
2100 | wxPy_BEGIN_ALLOW_THREADS; |
2101 | _result = new wxString (wxListCtrl_GetItemText(_arg0,_arg1)); | |
2102 | ||
2103 | wxPy_END_ALLOW_THREADS; | |
2104 | }{ | |
eec92d76 | 2105 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
2106 | } |
2107 | { | |
2108 | delete _result; | |
2109 | } | |
2110 | return _resultobj; | |
2111 | } | |
2112 | ||
2113 | #define wxListCtrl_GetNextItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetNextItem(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 2114 | static PyObject *_wrap_wxListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2115 | PyObject * _resultobj; |
2116 | long _result; | |
2117 | wxListCtrl * _arg0; | |
2118 | long _arg1; | |
1d99702e RD |
2119 | int _arg2 = (int ) (wxLIST_NEXT_ALL); |
2120 | int _arg3 = (int ) (wxLIST_STATE_DONTCARE); | |
2121 | PyObject * _argo0 = 0; | |
efc5f224 | 2122 | char *_kwnames[] = { "self","item","geometry","state", NULL }; |
8ab979d7 RD |
2123 | |
2124 | self = self; | |
efc5f224 | 2125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:wxListCtrl_GetNextItem",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 2126 | return NULL; |
1d99702e RD |
2127 | if (_argo0) { |
2128 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2129 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
2130 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetNextItem. Expected _wxListCtrl_p."); |
2131 | return NULL; | |
2132 | } | |
2133 | } | |
cf694132 RD |
2134 | { |
2135 | wxPy_BEGIN_ALLOW_THREADS; | |
2136 | _result = (long )wxListCtrl_GetNextItem(_arg0,_arg1,_arg2,_arg3); | |
2137 | ||
2138 | wxPy_END_ALLOW_THREADS; | |
2139 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
2140 | return _resultobj; |
2141 | } | |
2142 | ||
2143 | #define wxListCtrl_GetSelectedItemCount(_swigobj) (_swigobj->GetSelectedItemCount()) | |
efc5f224 | 2144 | static PyObject *_wrap_wxListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2145 | PyObject * _resultobj; |
2146 | int _result; | |
2147 | wxListCtrl * _arg0; | |
1d99702e | 2148 | PyObject * _argo0 = 0; |
efc5f224 | 2149 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2150 | |
2151 | self = self; | |
efc5f224 | 2152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetSelectedItemCount",_kwnames,&_argo0)) |
8ab979d7 | 2153 | return NULL; |
1d99702e RD |
2154 | if (_argo0) { |
2155 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2156 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
2157 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetSelectedItemCount. Expected _wxListCtrl_p."); |
2158 | return NULL; | |
2159 | } | |
2160 | } | |
cf694132 RD |
2161 | { |
2162 | wxPy_BEGIN_ALLOW_THREADS; | |
2163 | _result = (int )wxListCtrl_GetSelectedItemCount(_arg0); | |
2164 | ||
2165 | wxPy_END_ALLOW_THREADS; | |
2166 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2167 | return _resultobj; |
2168 | } | |
2169 | ||
2170 | #define wxListCtrl_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
efc5f224 | 2171 | static PyObject *_wrap_wxListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2172 | PyObject * _resultobj; |
2173 | wxColour * _result; | |
2174 | wxListCtrl * _arg0; | |
1d99702e | 2175 | PyObject * _argo0 = 0; |
efc5f224 | 2176 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2177 | char _ptemp[128]; |
2178 | ||
2179 | self = self; | |
efc5f224 | 2180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTextColour",_kwnames,&_argo0)) |
8ab979d7 | 2181 | return NULL; |
1d99702e RD |
2182 | if (_argo0) { |
2183 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2184 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
2185 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTextColour. Expected _wxListCtrl_p."); |
2186 | return NULL; | |
2187 | } | |
2188 | } | |
cf694132 RD |
2189 | { |
2190 | wxPy_BEGIN_ALLOW_THREADS; | |
2191 | _result = new wxColour (wxListCtrl_GetTextColour(_arg0)); | |
2192 | ||
2193 | wxPy_END_ALLOW_THREADS; | |
2194 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
8ab979d7 RD |
2195 | _resultobj = Py_BuildValue("s",_ptemp); |
2196 | return _resultobj; | |
2197 | } | |
2198 | ||
be4d9c1f | 2199 | #define wxListCtrl_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) |
efc5f224 | 2200 | static PyObject *_wrap_wxListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
be4d9c1f RD |
2201 | PyObject * _resultobj; |
2202 | wxListCtrl * _arg0; | |
2203 | wxColour * _arg1; | |
1d99702e RD |
2204 | PyObject * _argo0 = 0; |
2205 | PyObject * _argo1 = 0; | |
efc5f224 | 2206 | char *_kwnames[] = { "self","col", NULL }; |
be4d9c1f RD |
2207 | |
2208 | self = self; | |
efc5f224 | 2209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetTextColour",_kwnames,&_argo0,&_argo1)) |
be4d9c1f | 2210 | return NULL; |
1d99702e RD |
2211 | if (_argo0) { |
2212 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2213 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
be4d9c1f RD |
2214 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetTextColour. Expected _wxListCtrl_p."); |
2215 | return NULL; | |
2216 | } | |
2217 | } | |
1d99702e RD |
2218 | if (_argo1) { |
2219 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2220 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) { | |
be4d9c1f RD |
2221 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetTextColour. Expected _wxColour_p."); |
2222 | return NULL; | |
2223 | } | |
2224 | } | |
cf694132 RD |
2225 | { |
2226 | wxPy_BEGIN_ALLOW_THREADS; | |
2227 | wxListCtrl_SetTextColour(_arg0,*_arg1); | |
2228 | ||
2229 | wxPy_END_ALLOW_THREADS; | |
2230 | } Py_INCREF(Py_None); | |
be4d9c1f RD |
2231 | _resultobj = Py_None; |
2232 | return _resultobj; | |
2233 | } | |
2234 | ||
8ab979d7 | 2235 | #define wxListCtrl_GetTopItem(_swigobj) (_swigobj->GetTopItem()) |
efc5f224 | 2236 | static PyObject *_wrap_wxListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2237 | PyObject * _resultobj; |
2238 | long _result; | |
2239 | wxListCtrl * _arg0; | |
1d99702e | 2240 | PyObject * _argo0 = 0; |
efc5f224 | 2241 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2242 | |
2243 | self = self; | |
efc5f224 | 2244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTopItem",_kwnames,&_argo0)) |
8ab979d7 | 2245 | return NULL; |
1d99702e RD |
2246 | if (_argo0) { |
2247 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2248 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
2249 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTopItem. Expected _wxListCtrl_p."); |
2250 | return NULL; | |
2251 | } | |
2252 | } | |
cf694132 RD |
2253 | { |
2254 | wxPy_BEGIN_ALLOW_THREADS; | |
2255 | _result = (long )wxListCtrl_GetTopItem(_arg0); | |
2256 | ||
2257 | wxPy_END_ALLOW_THREADS; | |
2258 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
2259 | return _resultobj; |
2260 | } | |
2261 | ||
2262 | #define wxListCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) | |
efc5f224 | 2263 | static PyObject *_wrap_wxListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2264 | PyObject * _resultobj; |
2265 | long _result; | |
2266 | wxListCtrl * _arg0; | |
2267 | wxPoint * _arg1; | |
2268 | int * _arg2; | |
2269 | int temp; | |
1d99702e | 2270 | PyObject * _argo0 = 0; |
2f90df85 RD |
2271 | wxPoint temp0; |
2272 | PyObject * _obj1 = 0; | |
efc5f224 | 2273 | char *_kwnames[] = { "self","point", NULL }; |
8ab979d7 RD |
2274 | |
2275 | self = self; | |
2276 | { | |
2277 | _arg2 = &temp; | |
2278 | } | |
2f90df85 | 2279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_HitTest",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 2280 | return NULL; |
1d99702e RD |
2281 | if (_argo0) { |
2282 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2283 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
2284 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_HitTest. Expected _wxListCtrl_p."); |
2285 | return NULL; | |
2286 | } | |
2287 | } | |
2f90df85 RD |
2288 | { |
2289 | _arg1 = &temp0; | |
2290 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 2291 | return NULL; |
2f90df85 | 2292 | } |
cf694132 RD |
2293 | { |
2294 | wxPy_BEGIN_ALLOW_THREADS; | |
2295 | _result = (long )wxListCtrl_HitTest(_arg0,*_arg1,*_arg2); | |
2296 | ||
2297 | wxPy_END_ALLOW_THREADS; | |
2298 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
2299 | { |
2300 | PyObject *o; | |
2301 | o = PyInt_FromLong((long) (*_arg2)); | |
2302 | _resultobj = t_output_helper(_resultobj, o); | |
2303 | } | |
2304 | return _resultobj; | |
2305 | } | |
2306 | ||
0699c864 | 2307 | #define wxListCtrl_InsertColumnWith(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertColumn(_swigarg0,_swigarg1)) |
efc5f224 | 2308 | static PyObject *_wrap_wxListCtrl_InsertColumnWith(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2309 | PyObject * _resultobj; |
2310 | long _result; | |
2311 | wxListCtrl * _arg0; | |
2312 | long _arg1; | |
2313 | wxListItem * _arg2; | |
1d99702e RD |
2314 | PyObject * _argo0 = 0; |
2315 | PyObject * _argo2 = 0; | |
efc5f224 | 2316 | char *_kwnames[] = { "self","col","info", NULL }; |
8ab979d7 RD |
2317 | |
2318 | self = self; | |
efc5f224 | 2319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertColumnWith",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 2320 | return NULL; |
1d99702e RD |
2321 | if (_argo0) { |
2322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
0699c864 | 2324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumnWith. Expected _wxListCtrl_p."); |
8ab979d7 RD |
2325 | return NULL; |
2326 | } | |
2327 | } | |
1d99702e RD |
2328 | if (_argo2) { |
2329 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
2330 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
0699c864 | 2331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_InsertColumnWith. Expected _wxListItem_p."); |
8ab979d7 RD |
2332 | return NULL; |
2333 | } | |
2334 | } | |
cf694132 RD |
2335 | { |
2336 | wxPy_BEGIN_ALLOW_THREADS; | |
2337 | _result = (long )wxListCtrl_InsertColumnWith(_arg0,_arg1,*_arg2); | |
2338 | ||
2339 | wxPy_END_ALLOW_THREADS; | |
2340 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
2341 | return _resultobj; |
2342 | } | |
2343 | ||
2344 | #define wxListCtrl_InsertColumn(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertColumn(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
efc5f224 | 2345 | static PyObject *_wrap_wxListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2346 | PyObject * _resultobj; |
2347 | long _result; | |
2348 | wxListCtrl * _arg0; | |
2349 | long _arg1; | |
2350 | wxString * _arg2; | |
1d99702e RD |
2351 | int _arg3 = (int ) (wxLIST_FORMAT_LEFT); |
2352 | int _arg4 = (int ) -1; | |
2353 | PyObject * _argo0 = 0; | |
8ab979d7 | 2354 | PyObject * _obj2 = 0; |
efc5f224 | 2355 | char *_kwnames[] = { "self","col","heading","format","width", NULL }; |
8ab979d7 RD |
2356 | |
2357 | self = self; | |
efc5f224 | 2358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|ii:wxListCtrl_InsertColumn",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3,&_arg4)) |
8ab979d7 | 2359 | return NULL; |
1d99702e RD |
2360 | if (_argo0) { |
2361 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2362 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
2363 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumn. Expected _wxListCtrl_p."); |
2364 | return NULL; | |
2365 | } | |
2366 | } | |
2367 | { | |
2368 | if (!PyString_Check(_obj2)) { | |
2369 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2370 | return NULL; | |
2371 | } | |
cf694132 | 2372 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); |
8ab979d7 | 2373 | } |
cf694132 RD |
2374 | { |
2375 | wxPy_BEGIN_ALLOW_THREADS; | |
2376 | _result = (long )wxListCtrl_InsertColumn(_arg0,_arg1,*_arg2,_arg3,_arg4); | |
2377 | ||
2378 | wxPy_END_ALLOW_THREADS; | |
2379 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
2380 | { |
2381 | if (_obj2) | |
2382 | delete _arg2; | |
2383 | } | |
2384 | return _resultobj; | |
2385 | } | |
2386 | ||
2387 | #define wxListCtrl_InsertItem(_swigobj,_swigarg0) (_swigobj->InsertItem(_swigarg0)) | |
efc5f224 | 2388 | static PyObject *_wrap_wxListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2389 | PyObject * _resultobj; |
2390 | long _result; | |
2391 | wxListCtrl * _arg0; | |
2392 | wxListItem * _arg1; | |
1d99702e RD |
2393 | PyObject * _argo0 = 0; |
2394 | PyObject * _argo1 = 0; | |
efc5f224 | 2395 | char *_kwnames[] = { "self","info", NULL }; |
8ab979d7 RD |
2396 | |
2397 | self = self; | |
efc5f224 | 2398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_InsertItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 2399 | return NULL; |
1d99702e RD |
2400 | if (_argo0) { |
2401 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2402 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
2403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertItem. Expected _wxListCtrl_p."); |
2404 | return NULL; | |
2405 | } | |
2406 | } | |
1d99702e RD |
2407 | if (_argo1) { |
2408 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2409 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
8ab979d7 RD |
2410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_InsertItem. Expected _wxListItem_p."); |
2411 | return NULL; | |
2412 | } | |
2413 | } | |
cf694132 RD |
2414 | { |
2415 | wxPy_BEGIN_ALLOW_THREADS; | |
2416 | _result = (long )wxListCtrl_InsertItem(_arg0,*_arg1); | |
2417 | ||
2418 | wxPy_END_ALLOW_THREADS; | |
2419 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
2420 | return _resultobj; |
2421 | } | |
2422 | ||
2423 | #define wxListCtrl_InsertStringItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) | |
efc5f224 | 2424 | static PyObject *_wrap_wxListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2425 | PyObject * _resultobj; |
2426 | long _result; | |
2427 | wxListCtrl * _arg0; | |
2428 | long _arg1; | |
2429 | wxString * _arg2; | |
1d99702e | 2430 | PyObject * _argo0 = 0; |
8ab979d7 | 2431 | PyObject * _obj2 = 0; |
efc5f224 | 2432 | char *_kwnames[] = { "self","index","label", NULL }; |
8ab979d7 RD |
2433 | |
2434 | self = self; | |
efc5f224 | 2435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertStringItem",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 2436 | return NULL; |
1d99702e RD |
2437 | if (_argo0) { |
2438 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2439 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
2440 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertStringItem. Expected _wxListCtrl_p."); |
2441 | return NULL; | |
2442 | } | |
2443 | } | |
2444 | { | |
2445 | if (!PyString_Check(_obj2)) { | |
2446 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2447 | return NULL; | |
2448 | } | |
cf694132 | 2449 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); |
8ab979d7 | 2450 | } |
cf694132 RD |
2451 | { |
2452 | wxPy_BEGIN_ALLOW_THREADS; | |
2453 | _result = (long )wxListCtrl_InsertStringItem(_arg0,_arg1,*_arg2); | |
2454 | ||
2455 | wxPy_END_ALLOW_THREADS; | |
2456 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
2457 | { |
2458 | if (_obj2) | |
2459 | delete _arg2; | |
2460 | } | |
2461 | return _resultobj; | |
2462 | } | |
2463 | ||
2464 | #define wxListCtrl_InsertImageItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) | |
efc5f224 | 2465 | static PyObject *_wrap_wxListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2466 | PyObject * _resultobj; |
2467 | long _result; | |
2468 | wxListCtrl * _arg0; | |
2469 | long _arg1; | |
2470 | int _arg2; | |
1d99702e | 2471 | PyObject * _argo0 = 0; |
efc5f224 | 2472 | char *_kwnames[] = { "self","index","imageIndex", NULL }; |
8ab979d7 RD |
2473 | |
2474 | self = self; | |
efc5f224 | 2475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oli:wxListCtrl_InsertImageItem",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 2476 | return NULL; |
1d99702e RD |
2477 | if (_argo0) { |
2478 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2479 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
2480 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageItem. Expected _wxListCtrl_p."); |
2481 | return NULL; | |
2482 | } | |
2483 | } | |
cf694132 RD |
2484 | { |
2485 | wxPy_BEGIN_ALLOW_THREADS; | |
2486 | _result = (long )wxListCtrl_InsertImageItem(_arg0,_arg1,_arg2); | |
2487 | ||
2488 | wxPy_END_ALLOW_THREADS; | |
2489 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
2490 | return _resultobj; |
2491 | } | |
2492 | ||
2493 | #define wxListCtrl_InsertImageStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 2494 | static PyObject *_wrap_wxListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2495 | PyObject * _resultobj; |
2496 | long _result; | |
2497 | wxListCtrl * _arg0; | |
2498 | long _arg1; | |
2499 | wxString * _arg2; | |
2500 | int _arg3; | |
1d99702e | 2501 | PyObject * _argo0 = 0; |
8ab979d7 | 2502 | PyObject * _obj2 = 0; |
efc5f224 | 2503 | char *_kwnames[] = { "self","index","label","imageIndex", NULL }; |
8ab979d7 RD |
2504 | |
2505 | self = self; | |
efc5f224 | 2506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_InsertImageStringItem",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) |
8ab979d7 | 2507 | return NULL; |
1d99702e RD |
2508 | if (_argo0) { |
2509 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2510 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
2511 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageStringItem. Expected _wxListCtrl_p."); |
2512 | return NULL; | |
2513 | } | |
2514 | } | |
2515 | { | |
2516 | if (!PyString_Check(_obj2)) { | |
2517 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2518 | return NULL; | |
2519 | } | |
cf694132 | 2520 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); |
8ab979d7 | 2521 | } |
cf694132 RD |
2522 | { |
2523 | wxPy_BEGIN_ALLOW_THREADS; | |
2524 | _result = (long )wxListCtrl_InsertImageStringItem(_arg0,_arg1,*_arg2,_arg3); | |
2525 | ||
2526 | wxPy_END_ALLOW_THREADS; | |
2527 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
2528 | { |
2529 | if (_obj2) | |
2530 | delete _arg2; | |
2531 | } | |
2532 | return _resultobj; | |
2533 | } | |
2534 | ||
2535 | #define wxListCtrl_ScrollList(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScrollList(_swigarg0,_swigarg1)) | |
efc5f224 | 2536 | static PyObject *_wrap_wxListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2537 | PyObject * _resultobj; |
2538 | bool _result; | |
2539 | wxListCtrl * _arg0; | |
2540 | int _arg1; | |
2541 | int _arg2; | |
1d99702e | 2542 | PyObject * _argo0 = 0; |
efc5f224 | 2543 | char *_kwnames[] = { "self","dx","dy", NULL }; |
8ab979d7 RD |
2544 | |
2545 | self = self; | |
efc5f224 | 2546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_ScrollList",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 2547 | return NULL; |
1d99702e RD |
2548 | if (_argo0) { |
2549 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2550 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
2551 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ScrollList. Expected _wxListCtrl_p."); |
2552 | return NULL; | |
2553 | } | |
2554 | } | |
cf694132 RD |
2555 | { |
2556 | wxPy_BEGIN_ALLOW_THREADS; | |
2557 | _result = (bool )wxListCtrl_ScrollList(_arg0,_arg1,_arg2); | |
2558 | ||
2559 | wxPy_END_ALLOW_THREADS; | |
2560 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2561 | return _resultobj; |
2562 | } | |
2563 | ||
2564 | #define wxListCtrl_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
efc5f224 | 2565 | static PyObject *_wrap_wxListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2566 | PyObject * _resultobj; |
2567 | wxListCtrl * _arg0; | |
2568 | wxColour * _arg1; | |
1d99702e RD |
2569 | PyObject * _argo0 = 0; |
2570 | PyObject * _argo1 = 0; | |
efc5f224 | 2571 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
2572 | |
2573 | self = self; | |
efc5f224 | 2574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetBackgroundColour",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 2575 | return NULL; |
1d99702e RD |
2576 | if (_argo0) { |
2577 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2578 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
2579 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetBackgroundColour. Expected _wxListCtrl_p."); |
2580 | return NULL; | |
2581 | } | |
2582 | } | |
1d99702e RD |
2583 | if (_argo1) { |
2584 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2585 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) { | |
8ab979d7 RD |
2586 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetBackgroundColour. Expected _wxColour_p."); |
2587 | return NULL; | |
2588 | } | |
2589 | } | |
cf694132 RD |
2590 | { |
2591 | wxPy_BEGIN_ALLOW_THREADS; | |
2592 | wxListCtrl_SetBackgroundColour(_arg0,*_arg1); | |
2593 | ||
2594 | wxPy_END_ALLOW_THREADS; | |
2595 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
2596 | _resultobj = Py_None; |
2597 | return _resultobj; | |
2598 | } | |
2599 | ||
2600 | #define wxListCtrl_SetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumn(_swigarg0,_swigarg1)) | |
efc5f224 | 2601 | static PyObject *_wrap_wxListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2602 | PyObject * _resultobj; |
2603 | bool _result; | |
2604 | wxListCtrl * _arg0; | |
2605 | int _arg1; | |
2606 | wxListItem * _arg2; | |
1d99702e RD |
2607 | PyObject * _argo0 = 0; |
2608 | PyObject * _argo2 = 0; | |
efc5f224 | 2609 | char *_kwnames[] = { "self","col","item", NULL }; |
8ab979d7 RD |
2610 | |
2611 | self = self; | |
efc5f224 | 2612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_SetColumn",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 2613 | return NULL; |
1d99702e RD |
2614 | if (_argo0) { |
2615 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2616 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
2617 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumn. Expected _wxListCtrl_p."); |
2618 | return NULL; | |
2619 | } | |
2620 | } | |
1d99702e RD |
2621 | if (_argo2) { |
2622 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
2623 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
8ab979d7 RD |
2624 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_SetColumn. Expected _wxListItem_p."); |
2625 | return NULL; | |
2626 | } | |
2627 | } | |
cf694132 RD |
2628 | { |
2629 | wxPy_BEGIN_ALLOW_THREADS; | |
2630 | _result = (bool )wxListCtrl_SetColumn(_arg0,_arg1,*_arg2); | |
2631 | ||
2632 | wxPy_END_ALLOW_THREADS; | |
2633 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2634 | return _resultobj; |
2635 | } | |
2636 | ||
2637 | #define wxListCtrl_SetColumnWidth(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnWidth(_swigarg0,_swigarg1)) | |
efc5f224 | 2638 | static PyObject *_wrap_wxListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2639 | PyObject * _resultobj; |
2640 | bool _result; | |
2641 | wxListCtrl * _arg0; | |
2642 | int _arg1; | |
2643 | int _arg2; | |
1d99702e | 2644 | PyObject * _argo0 = 0; |
efc5f224 | 2645 | char *_kwnames[] = { "self","col","width", NULL }; |
8ab979d7 RD |
2646 | |
2647 | self = self; | |
efc5f224 | 2648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_SetColumnWidth",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 2649 | return NULL; |
1d99702e RD |
2650 | if (_argo0) { |
2651 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2652 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
2653 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumnWidth. Expected _wxListCtrl_p."); |
2654 | return NULL; | |
2655 | } | |
2656 | } | |
cf694132 RD |
2657 | { |
2658 | wxPy_BEGIN_ALLOW_THREADS; | |
2659 | _result = (bool )wxListCtrl_SetColumnWidth(_arg0,_arg1,_arg2); | |
2660 | ||
2661 | wxPy_END_ALLOW_THREADS; | |
2662 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2663 | return _resultobj; |
2664 | } | |
2665 | ||
2666 | #define wxListCtrl_SetImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetImageList(_swigarg0,_swigarg1)) | |
efc5f224 | 2667 | static PyObject *_wrap_wxListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2668 | PyObject * _resultobj; |
2669 | wxListCtrl * _arg0; | |
2670 | wxImageList * _arg1; | |
2671 | int _arg2; | |
1d99702e RD |
2672 | PyObject * _argo0 = 0; |
2673 | PyObject * _argo1 = 0; | |
efc5f224 | 2674 | char *_kwnames[] = { "self","imageList","which", NULL }; |
8ab979d7 RD |
2675 | |
2676 | self = self; | |
efc5f224 | 2677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_SetImageList",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 2678 | return NULL; |
1d99702e RD |
2679 | if (_argo0) { |
2680 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2681 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
2682 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetImageList. Expected _wxListCtrl_p."); |
2683 | return NULL; | |
2684 | } | |
2685 | } | |
1d99702e RD |
2686 | if (_argo1) { |
2687 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2688 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
8ab979d7 RD |
2689 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetImageList. Expected _wxImageList_p."); |
2690 | return NULL; | |
2691 | } | |
2692 | } | |
cf694132 RD |
2693 | { |
2694 | wxPy_BEGIN_ALLOW_THREADS; | |
2695 | wxListCtrl_SetImageList(_arg0,_arg1,_arg2); | |
2696 | ||
2697 | wxPy_END_ALLOW_THREADS; | |
2698 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
2699 | _resultobj = Py_None; |
2700 | return _resultobj; | |
2701 | } | |
2702 | ||
2703 | #define wxListCtrl_SetItem(_swigobj,_swigarg0) (_swigobj->SetItem(_swigarg0)) | |
efc5f224 | 2704 | static PyObject *_wrap_wxListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2705 | PyObject * _resultobj; |
2706 | bool _result; | |
2707 | wxListCtrl * _arg0; | |
2708 | wxListItem * _arg1; | |
1d99702e RD |
2709 | PyObject * _argo0 = 0; |
2710 | PyObject * _argo1 = 0; | |
efc5f224 | 2711 | char *_kwnames[] = { "self","info", NULL }; |
8ab979d7 RD |
2712 | |
2713 | self = self; | |
efc5f224 | 2714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 2715 | return NULL; |
1d99702e RD |
2716 | if (_argo0) { |
2717 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2718 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
2719 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItem. Expected _wxListCtrl_p."); |
2720 | return NULL; | |
2721 | } | |
2722 | } | |
1d99702e RD |
2723 | if (_argo1) { |
2724 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2725 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
8ab979d7 RD |
2726 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetItem. Expected _wxListItem_p."); |
2727 | return NULL; | |
2728 | } | |
2729 | } | |
cf694132 RD |
2730 | { |
2731 | wxPy_BEGIN_ALLOW_THREADS; | |
2732 | _result = (bool )wxListCtrl_SetItem(_arg0,*_arg1); | |
2733 | ||
2734 | wxPy_END_ALLOW_THREADS; | |
2735 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2736 | return _resultobj; |
2737 | } | |
2738 | ||
af309447 | 2739 | #define wxListCtrl_SetStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
efc5f224 | 2740 | static PyObject *_wrap_wxListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2741 | PyObject * _resultobj; |
2742 | long _result; | |
2743 | wxListCtrl * _arg0; | |
2744 | long _arg1; | |
2745 | int _arg2; | |
2746 | wxString * _arg3; | |
1d99702e RD |
2747 | int _arg4 = (int ) -1; |
2748 | PyObject * _argo0 = 0; | |
8ab979d7 | 2749 | PyObject * _obj3 = 0; |
efc5f224 | 2750 | char *_kwnames[] = { "self","index","col","label","imageId", NULL }; |
8ab979d7 RD |
2751 | |
2752 | self = self; | |
efc5f224 | 2753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OliO|i:wxListCtrl_SetStringItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) |
8ab979d7 | 2754 | return NULL; |
1d99702e RD |
2755 | if (_argo0) { |
2756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
af309447 | 2758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetStringItem. Expected _wxListCtrl_p."); |
8ab979d7 RD |
2759 | return NULL; |
2760 | } | |
2761 | } | |
2762 | { | |
2763 | if (!PyString_Check(_obj3)) { | |
2764 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2765 | return NULL; | |
2766 | } | |
cf694132 | 2767 | _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3)); |
8ab979d7 | 2768 | } |
cf694132 RD |
2769 | { |
2770 | wxPy_BEGIN_ALLOW_THREADS; | |
2771 | _result = (long )wxListCtrl_SetStringItem(_arg0,_arg1,_arg2,*_arg3,_arg4); | |
2772 | ||
2773 | wxPy_END_ALLOW_THREADS; | |
2774 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
2775 | { |
2776 | if (_obj3) | |
2777 | delete _arg3; | |
2778 | } | |
2779 | return _resultobj; | |
2780 | } | |
2781 | ||
2782 | #define wxListCtrl_SetItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemData(_swigarg0,_swigarg1)) | |
efc5f224 | 2783 | static PyObject *_wrap_wxListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2784 | PyObject * _resultobj; |
2785 | bool _result; | |
2786 | wxListCtrl * _arg0; | |
2787 | long _arg1; | |
2788 | long _arg2; | |
1d99702e | 2789 | PyObject * _argo0 = 0; |
efc5f224 | 2790 | char *_kwnames[] = { "self","item","data", NULL }; |
8ab979d7 RD |
2791 | |
2792 | self = self; | |
efc5f224 | 2793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_SetItemData",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 2794 | return NULL; |
1d99702e RD |
2795 | if (_argo0) { |
2796 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2797 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
2798 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemData. Expected _wxListCtrl_p."); |
2799 | return NULL; | |
2800 | } | |
2801 | } | |
cf694132 RD |
2802 | { |
2803 | wxPy_BEGIN_ALLOW_THREADS; | |
2804 | _result = (bool )wxListCtrl_SetItemData(_arg0,_arg1,_arg2); | |
2805 | ||
2806 | wxPy_END_ALLOW_THREADS; | |
2807 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2808 | return _resultobj; |
2809 | } | |
2810 | ||
2811 | #define wxListCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 2812 | static PyObject *_wrap_wxListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2813 | PyObject * _resultobj; |
2814 | bool _result; | |
2815 | wxListCtrl * _arg0; | |
2816 | long _arg1; | |
2817 | int _arg2; | |
2818 | int _arg3; | |
1d99702e | 2819 | PyObject * _argo0 = 0; |
efc5f224 | 2820 | char *_kwnames[] = { "self","item","image","selImage", NULL }; |
8ab979d7 RD |
2821 | |
2822 | self = self; | |
efc5f224 | 2823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olii:wxListCtrl_SetItemImage",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 2824 | return NULL; |
1d99702e RD |
2825 | if (_argo0) { |
2826 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2827 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
2828 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemImage. Expected _wxListCtrl_p."); |
2829 | return NULL; | |
2830 | } | |
2831 | } | |
cf694132 RD |
2832 | { |
2833 | wxPy_BEGIN_ALLOW_THREADS; | |
2834 | _result = (bool )wxListCtrl_SetItemImage(_arg0,_arg1,_arg2,_arg3); | |
2835 | ||
2836 | wxPy_END_ALLOW_THREADS; | |
2837 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2838 | return _resultobj; |
2839 | } | |
2840 | ||
2841 | #define wxListCtrl_SetItemPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemPosition(_swigarg0,_swigarg1)) | |
efc5f224 | 2842 | static PyObject *_wrap_wxListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2843 | PyObject * _resultobj; |
2844 | bool _result; | |
2845 | wxListCtrl * _arg0; | |
2846 | long _arg1; | |
2847 | wxPoint * _arg2; | |
1d99702e | 2848 | PyObject * _argo0 = 0; |
2f90df85 RD |
2849 | wxPoint temp; |
2850 | PyObject * _obj2 = 0; | |
efc5f224 | 2851 | char *_kwnames[] = { "self","item","pos", NULL }; |
8ab979d7 RD |
2852 | |
2853 | self = self; | |
2f90df85 | 2854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemPosition",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 2855 | return NULL; |
1d99702e RD |
2856 | if (_argo0) { |
2857 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2858 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
2859 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemPosition. Expected _wxListCtrl_p."); |
2860 | return NULL; | |
2861 | } | |
2862 | } | |
2f90df85 RD |
2863 | { |
2864 | _arg2 = &temp; | |
2865 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 2866 | return NULL; |
2f90df85 | 2867 | } |
cf694132 RD |
2868 | { |
2869 | wxPy_BEGIN_ALLOW_THREADS; | |
2870 | _result = (bool )wxListCtrl_SetItemPosition(_arg0,_arg1,*_arg2); | |
2871 | ||
2872 | wxPy_END_ALLOW_THREADS; | |
2873 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2874 | return _resultobj; |
2875 | } | |
2876 | ||
2877 | #define wxListCtrl_SetItemState(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemState(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 2878 | static PyObject *_wrap_wxListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2879 | PyObject * _resultobj; |
2880 | bool _result; | |
2881 | wxListCtrl * _arg0; | |
2882 | long _arg1; | |
2883 | long _arg2; | |
2884 | long _arg3; | |
1d99702e | 2885 | PyObject * _argo0 = 0; |
efc5f224 | 2886 | char *_kwnames[] = { "self","item","state","stateMask", NULL }; |
8ab979d7 RD |
2887 | |
2888 | self = self; | |
efc5f224 | 2889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxListCtrl_SetItemState",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 2890 | return NULL; |
1d99702e RD |
2891 | if (_argo0) { |
2892 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2893 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
2894 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemState. Expected _wxListCtrl_p."); |
2895 | return NULL; | |
2896 | } | |
2897 | } | |
cf694132 RD |
2898 | { |
2899 | wxPy_BEGIN_ALLOW_THREADS; | |
2900 | _result = (bool )wxListCtrl_SetItemState(_arg0,_arg1,_arg2,_arg3); | |
2901 | ||
2902 | wxPy_END_ALLOW_THREADS; | |
2903 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2904 | return _resultobj; |
2905 | } | |
2906 | ||
2907 | #define wxListCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) | |
efc5f224 | 2908 | static PyObject *_wrap_wxListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2909 | PyObject * _resultobj; |
2910 | wxListCtrl * _arg0; | |
2911 | long _arg1; | |
2912 | wxString * _arg2; | |
1d99702e | 2913 | PyObject * _argo0 = 0; |
8ab979d7 | 2914 | PyObject * _obj2 = 0; |
efc5f224 | 2915 | char *_kwnames[] = { "self","item","text", NULL }; |
8ab979d7 RD |
2916 | |
2917 | self = self; | |
efc5f224 | 2918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemText",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 2919 | return NULL; |
1d99702e RD |
2920 | if (_argo0) { |
2921 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2922 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
2923 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemText. Expected _wxListCtrl_p."); |
2924 | return NULL; | |
2925 | } | |
2926 | } | |
2927 | { | |
2928 | if (!PyString_Check(_obj2)) { | |
2929 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2930 | return NULL; | |
2931 | } | |
cf694132 | 2932 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); |
8ab979d7 | 2933 | } |
cf694132 RD |
2934 | { |
2935 | wxPy_BEGIN_ALLOW_THREADS; | |
2936 | wxListCtrl_SetItemText(_arg0,_arg1,*_arg2); | |
2937 | ||
2938 | wxPy_END_ALLOW_THREADS; | |
2939 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
2940 | _resultobj = Py_None; |
2941 | { | |
2942 | if (_obj2) | |
2943 | delete _arg2; | |
2944 | } | |
2945 | return _resultobj; | |
2946 | } | |
2947 | ||
2948 | #define wxListCtrl_SetSingleStyle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSingleStyle(_swigarg0,_swigarg1)) | |
efc5f224 | 2949 | static PyObject *_wrap_wxListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2950 | PyObject * _resultobj; |
2951 | wxListCtrl * _arg0; | |
2952 | long _arg1; | |
1d99702e RD |
2953 | bool _arg2 = (bool ) TRUE; |
2954 | PyObject * _argo0 = 0; | |
2955 | int tempbool2 = (int) TRUE; | |
efc5f224 | 2956 | char *_kwnames[] = { "self","style","add", NULL }; |
8ab979d7 RD |
2957 | |
2958 | self = self; | |
efc5f224 | 2959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_SetSingleStyle",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 2960 | return NULL; |
1d99702e RD |
2961 | if (_argo0) { |
2962 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2963 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
2964 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetSingleStyle. Expected _wxListCtrl_p."); |
2965 | return NULL; | |
2966 | } | |
2967 | } | |
2968 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
2969 | { |
2970 | wxPy_BEGIN_ALLOW_THREADS; | |
2971 | wxListCtrl_SetSingleStyle(_arg0,_arg1,_arg2); | |
2972 | ||
2973 | wxPy_END_ALLOW_THREADS; | |
2974 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
2975 | _resultobj = Py_None; |
2976 | return _resultobj; | |
2977 | } | |
2978 | ||
8ab979d7 | 2979 | #define wxListCtrl_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) |
efc5f224 | 2980 | static PyObject *_wrap_wxListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2981 | PyObject * _resultobj; |
2982 | wxListCtrl * _arg0; | |
2983 | long _arg1; | |
1d99702e | 2984 | PyObject * _argo0 = 0; |
efc5f224 | 2985 | char *_kwnames[] = { "self","style", NULL }; |
8ab979d7 RD |
2986 | |
2987 | self = self; | |
efc5f224 | 2988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2989 | return NULL; |
1d99702e RD |
2990 | if (_argo0) { |
2991 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2992 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
2993 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetWindowStyleFlag. Expected _wxListCtrl_p."); |
2994 | return NULL; | |
2995 | } | |
2996 | } | |
cf694132 RD |
2997 | { |
2998 | wxPy_BEGIN_ALLOW_THREADS; | |
2999 | wxListCtrl_SetWindowStyleFlag(_arg0,_arg1); | |
3000 | ||
3001 | wxPy_END_ALLOW_THREADS; | |
3002 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3003 | _resultobj = Py_None; |
3004 | return _resultobj; | |
3005 | } | |
3006 | ||
dcd38683 RD |
3007 | static bool wxListCtrl_SortItems(wxListCtrl *self,PyObject * func) { |
3008 | if (!PyCallable_Check(func)) | |
3009 | return FALSE; | |
3010 | ||
3011 | return self->SortItems(wxPyTreeCtrl_SortItems, (long)func); | |
3012 | } | |
3013 | static PyObject *_wrap_wxListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3014 | PyObject * _resultobj; | |
3015 | bool _result; | |
3016 | wxListCtrl * _arg0; | |
3017 | PyObject * _arg1; | |
3018 | PyObject * _argo0 = 0; | |
3019 | PyObject * _obj1 = 0; | |
3020 | char *_kwnames[] = { "self","func", NULL }; | |
3021 | ||
3022 | self = self; | |
3023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SortItems",_kwnames,&_argo0,&_obj1)) | |
3024 | return NULL; | |
3025 | if (_argo0) { | |
3026 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3027 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
3028 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SortItems. Expected _wxListCtrl_p."); | |
3029 | return NULL; | |
3030 | } | |
3031 | } | |
3032 | { | |
3033 | _arg1 = _obj1; | |
3034 | } | |
3035 | { | |
3036 | wxPy_BEGIN_ALLOW_THREADS; | |
3037 | _result = (bool )wxListCtrl_SortItems(_arg0,_arg1); | |
3038 | ||
3039 | wxPy_END_ALLOW_THREADS; | |
3040 | } _resultobj = Py_BuildValue("i",_result); | |
3041 | return _resultobj; | |
3042 | } | |
3043 | ||
d5c9047a | 3044 | #define new_wxTreeItemId() (new wxTreeItemId()) |
efc5f224 | 3045 | static PyObject *_wrap_new_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 3046 | PyObject * _resultobj; |
d5c9047a | 3047 | wxTreeItemId * _result; |
efc5f224 | 3048 | char *_kwnames[] = { NULL }; |
d5c9047a | 3049 | char _ptemp[128]; |
8ab979d7 RD |
3050 | |
3051 | self = self; | |
efc5f224 | 3052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxTreeItemId",_kwnames)) |
8ab979d7 | 3053 | return NULL; |
cf694132 RD |
3054 | { |
3055 | wxPy_BEGIN_ALLOW_THREADS; | |
3056 | _result = (wxTreeItemId *)new_wxTreeItemId(); | |
3057 | ||
3058 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
3059 | } if (_result) { |
3060 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
3061 | _resultobj = Py_BuildValue("s",_ptemp); | |
3062 | } else { | |
3063 | Py_INCREF(Py_None); | |
3064 | _resultobj = Py_None; | |
3065 | } | |
8ab979d7 RD |
3066 | return _resultobj; |
3067 | } | |
3068 | ||
d5c9047a | 3069 | #define delete_wxTreeItemId(_swigobj) (delete _swigobj) |
efc5f224 | 3070 | static PyObject *_wrap_delete_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 3071 | PyObject * _resultobj; |
d5c9047a | 3072 | wxTreeItemId * _arg0; |
1d99702e | 3073 | PyObject * _argo0 = 0; |
efc5f224 | 3074 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3075 | |
3076 | self = self; | |
efc5f224 | 3077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTreeItemId",_kwnames,&_argo0)) |
8ab979d7 | 3078 | return NULL; |
1d99702e RD |
3079 | if (_argo0) { |
3080 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3081 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
d5c9047a | 3082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTreeItemId. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
3083 | return NULL; |
3084 | } | |
3085 | } | |
cf694132 RD |
3086 | { |
3087 | wxPy_BEGIN_ALLOW_THREADS; | |
3088 | delete_wxTreeItemId(_arg0); | |
3089 | ||
3090 | wxPy_END_ALLOW_THREADS; | |
3091 | } Py_INCREF(Py_None); | |
d5c9047a | 3092 | _resultobj = Py_None; |
8ab979d7 RD |
3093 | return _resultobj; |
3094 | } | |
3095 | ||
d5c9047a | 3096 | #define wxTreeItemId_IsOk(_swigobj) (_swigobj->IsOk()) |
efc5f224 | 3097 | static PyObject *_wrap_wxTreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 3098 | PyObject * _resultobj; |
d5c9047a RD |
3099 | bool _result; |
3100 | wxTreeItemId * _arg0; | |
1d99702e | 3101 | PyObject * _argo0 = 0; |
efc5f224 | 3102 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3103 | |
3104 | self = self; | |
efc5f224 | 3105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemId_IsOk",_kwnames,&_argo0)) |
8ab979d7 | 3106 | return NULL; |
1d99702e RD |
3107 | if (_argo0) { |
3108 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3109 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
d5c9047a | 3110 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId_IsOk. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
3111 | return NULL; |
3112 | } | |
3113 | } | |
cf694132 RD |
3114 | { |
3115 | wxPy_BEGIN_ALLOW_THREADS; | |
3116 | _result = (bool )wxTreeItemId_IsOk(_arg0); | |
3117 | ||
3118 | wxPy_END_ALLOW_THREADS; | |
3119 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3120 | return _resultobj; |
3121 | } | |
3122 | ||
cf694132 | 3123 | #define new_wxTreeItemData(_swigarg0) (new wxPyTreeItemData(_swigarg0)) |
efc5f224 | 3124 | static PyObject *_wrap_new_wxTreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 3125 | PyObject * _resultobj; |
cf694132 | 3126 | wxPyTreeItemData * _result; |
1d99702e | 3127 | PyObject * _arg0 = (PyObject *) NULL; |
cf694132 | 3128 | PyObject * _obj0 = 0; |
efc5f224 | 3129 | char *_kwnames[] = { "obj", NULL }; |
d5c9047a | 3130 | char _ptemp[128]; |
8ab979d7 RD |
3131 | |
3132 | self = self; | |
efc5f224 | 3133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxTreeItemData",_kwnames,&_obj0)) |
8ab979d7 | 3134 | return NULL; |
cf694132 RD |
3135 | if (_obj0) |
3136 | { | |
3137 | _arg0 = _obj0; | |
3138 | } | |
3139 | { | |
3140 | wxPy_BEGIN_ALLOW_THREADS; | |
3141 | _result = (wxPyTreeItemData *)new_wxTreeItemData(_arg0); | |
3142 | ||
3143 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
3144 | } if (_result) { |
3145 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
3146 | _resultobj = Py_BuildValue("s",_ptemp); | |
3147 | } else { | |
3148 | Py_INCREF(Py_None); | |
3149 | _resultobj = Py_None; | |
3150 | } | |
8ab979d7 RD |
3151 | return _resultobj; |
3152 | } | |
3153 | ||
cf694132 | 3154 | #define wxTreeItemData_GetData(_swigobj) (_swigobj->GetData()) |
efc5f224 | 3155 | static PyObject *_wrap_wxTreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
3156 | PyObject * _resultobj; |
3157 | PyObject * _result; | |
3158 | wxPyTreeItemData * _arg0; | |
1d99702e | 3159 | PyObject * _argo0 = 0; |
efc5f224 | 3160 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
3161 | |
3162 | self = self; | |
efc5f224 | 3163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetData",_kwnames,&_argo0)) |
cf694132 | 3164 | return NULL; |
1d99702e RD |
3165 | if (_argo0) { |
3166 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3167 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 RD |
3168 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetData. Expected _wxPyTreeItemData_p."); |
3169 | return NULL; | |
3170 | } | |
3171 | } | |
3172 | { | |
3173 | wxPy_BEGIN_ALLOW_THREADS; | |
3174 | _result = (PyObject *)wxTreeItemData_GetData(_arg0); | |
3175 | ||
3176 | wxPy_END_ALLOW_THREADS; | |
3177 | }{ | |
3178 | _resultobj = _result; | |
3179 | } | |
3180 | return _resultobj; | |
3181 | } | |
3182 | ||
3183 | #define wxTreeItemData_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
efc5f224 | 3184 | static PyObject *_wrap_wxTreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 3185 | PyObject * _resultobj; |
cf694132 RD |
3186 | wxPyTreeItemData * _arg0; |
3187 | PyObject * _arg1; | |
1d99702e | 3188 | PyObject * _argo0 = 0; |
cf694132 | 3189 | PyObject * _obj1 = 0; |
efc5f224 | 3190 | char *_kwnames[] = { "self","obj", NULL }; |
8ab979d7 RD |
3191 | |
3192 | self = self; | |
efc5f224 | 3193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetData",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3194 | return NULL; |
1d99702e RD |
3195 | if (_argo0) { |
3196 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3197 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 3198 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetData. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
3199 | return NULL; |
3200 | } | |
3201 | } | |
cf694132 RD |
3202 | { |
3203 | _arg1 = _obj1; | |
3204 | } | |
3205 | { | |
3206 | wxPy_BEGIN_ALLOW_THREADS; | |
3207 | wxTreeItemData_SetData(_arg0,_arg1); | |
3208 | ||
3209 | wxPy_END_ALLOW_THREADS; | |
3210 | } Py_INCREF(Py_None); | |
d5c9047a | 3211 | _resultobj = Py_None; |
8ab979d7 RD |
3212 | return _resultobj; |
3213 | } | |
3214 | ||
630d84f2 | 3215 | #define wxTreeItemData_GetId(_swigobj) (_swigobj->GetId()) |
efc5f224 | 3216 | static PyObject *_wrap_wxTreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 3217 | PyObject * _resultobj; |
d5c9047a | 3218 | wxTreeItemId * _result; |
cf694132 | 3219 | wxPyTreeItemData * _arg0; |
1d99702e | 3220 | PyObject * _argo0 = 0; |
efc5f224 | 3221 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3222 | char _ptemp[128]; |
3223 | ||
3224 | self = self; | |
efc5f224 | 3225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetId",_kwnames,&_argo0)) |
8ab979d7 | 3226 | return NULL; |
1d99702e RD |
3227 | if (_argo0) { |
3228 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3229 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 3230 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetId. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
3231 | return NULL; |
3232 | } | |
3233 | } | |
cf694132 RD |
3234 | { |
3235 | wxPy_BEGIN_ALLOW_THREADS; | |
3236 | const wxTreeItemId & _result_ref = wxTreeItemData_GetId(_arg0); | |
d5c9047a | 3237 | _result = (wxTreeItemId *) &_result_ref; |
cf694132 RD |
3238 | |
3239 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
3240 | } if (_result) { |
3241 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
3242 | _resultobj = Py_BuildValue("s",_ptemp); | |
3243 | } else { | |
3244 | Py_INCREF(Py_None); | |
3245 | _resultobj = Py_None; | |
3246 | } | |
8ab979d7 RD |
3247 | return _resultobj; |
3248 | } | |
3249 | ||
630d84f2 | 3250 | #define wxTreeItemData_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) |
efc5f224 | 3251 | static PyObject *_wrap_wxTreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
630d84f2 | 3252 | PyObject * _resultobj; |
cf694132 | 3253 | wxPyTreeItemData * _arg0; |
630d84f2 | 3254 | wxTreeItemId * _arg1; |
1d99702e RD |
3255 | PyObject * _argo0 = 0; |
3256 | PyObject * _argo1 = 0; | |
efc5f224 | 3257 | char *_kwnames[] = { "self","id", NULL }; |
630d84f2 RD |
3258 | |
3259 | self = self; | |
efc5f224 | 3260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetId",_kwnames,&_argo0,&_argo1)) |
630d84f2 | 3261 | return NULL; |
1d99702e RD |
3262 | if (_argo0) { |
3263 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3264 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 3265 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetId. Expected _wxPyTreeItemData_p."); |
630d84f2 RD |
3266 | return NULL; |
3267 | } | |
3268 | } | |
1d99702e RD |
3269 | if (_argo1) { |
3270 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3271 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
630d84f2 RD |
3272 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemData_SetId. Expected _wxTreeItemId_p."); |
3273 | return NULL; | |
3274 | } | |
3275 | } | |
cf694132 RD |
3276 | { |
3277 | wxPy_BEGIN_ALLOW_THREADS; | |
3278 | wxTreeItemData_SetId(_arg0,*_arg1); | |
3279 | ||
3280 | wxPy_END_ALLOW_THREADS; | |
3281 | } Py_INCREF(Py_None); | |
630d84f2 RD |
3282 | _resultobj = Py_None; |
3283 | return _resultobj; | |
3284 | } | |
3285 | ||
8bf5d46e RD |
3286 | static void *SwigwxTreeEventTowxNotifyEvent(void *ptr) { |
3287 | wxTreeEvent *src; | |
3288 | wxNotifyEvent *dest; | |
3289 | src = (wxTreeEvent *) ptr; | |
3290 | dest = (wxNotifyEvent *) src; | |
3291 | return (void *) dest; | |
3292 | } | |
3293 | ||
8ab979d7 RD |
3294 | static void *SwigwxTreeEventTowxCommandEvent(void *ptr) { |
3295 | wxTreeEvent *src; | |
3296 | wxCommandEvent *dest; | |
3297 | src = (wxTreeEvent *) ptr; | |
3298 | dest = (wxCommandEvent *) src; | |
3299 | return (void *) dest; | |
3300 | } | |
3301 | ||
3302 | static void *SwigwxTreeEventTowxEvent(void *ptr) { | |
3303 | wxTreeEvent *src; | |
3304 | wxEvent *dest; | |
3305 | src = (wxTreeEvent *) ptr; | |
3306 | dest = (wxEvent *) src; | |
3307 | return (void *) dest; | |
3308 | } | |
3309 | ||
d5c9047a | 3310 | #define wxTreeEvent_GetItem(_swigobj) (_swigobj->GetItem()) |
efc5f224 | 3311 | static PyObject *_wrap_wxTreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 3312 | PyObject * _resultobj; |
d5c9047a | 3313 | wxTreeItemId * _result; |
8ab979d7 | 3314 | wxTreeEvent * _arg0; |
1d99702e | 3315 | PyObject * _argo0 = 0; |
efc5f224 | 3316 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 3317 | char _ptemp[128]; |
8ab979d7 RD |
3318 | |
3319 | self = self; | |
efc5f224 | 3320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetItem",_kwnames,&_argo0)) |
8ab979d7 | 3321 | return NULL; |
1d99702e RD |
3322 | if (_argo0) { |
3323 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3324 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 3325 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetItem. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
3326 | return NULL; |
3327 | } | |
3328 | } | |
cf694132 RD |
3329 | { |
3330 | wxPy_BEGIN_ALLOW_THREADS; | |
3331 | _result = new wxTreeItemId (wxTreeEvent_GetItem(_arg0)); | |
3332 | ||
3333 | wxPy_END_ALLOW_THREADS; | |
3334 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 3335 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
3336 | return _resultobj; |
3337 | } | |
3338 | ||
d5c9047a | 3339 | #define wxTreeEvent_GetOldItem(_swigobj) (_swigobj->GetOldItem()) |
efc5f224 | 3340 | static PyObject *_wrap_wxTreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 3341 | PyObject * _resultobj; |
d5c9047a | 3342 | wxTreeItemId * _result; |
8ab979d7 | 3343 | wxTreeEvent * _arg0; |
1d99702e | 3344 | PyObject * _argo0 = 0; |
efc5f224 | 3345 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3346 | char _ptemp[128]; |
3347 | ||
3348 | self = self; | |
efc5f224 | 3349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetOldItem",_kwnames,&_argo0)) |
8ab979d7 | 3350 | return NULL; |
1d99702e RD |
3351 | if (_argo0) { |
3352 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3353 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 3354 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetOldItem. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
3355 | return NULL; |
3356 | } | |
3357 | } | |
cf694132 RD |
3358 | { |
3359 | wxPy_BEGIN_ALLOW_THREADS; | |
3360 | _result = new wxTreeItemId (wxTreeEvent_GetOldItem(_arg0)); | |
3361 | ||
3362 | wxPy_END_ALLOW_THREADS; | |
3363 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
8ab979d7 RD |
3364 | _resultobj = Py_BuildValue("s",_ptemp); |
3365 | return _resultobj; | |
3366 | } | |
3367 | ||
d5c9047a | 3368 | #define wxTreeEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) |
efc5f224 | 3369 | static PyObject *_wrap_wxTreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 3370 | PyObject * _resultobj; |
d5c9047a | 3371 | wxPoint * _result; |
8ab979d7 | 3372 | wxTreeEvent * _arg0; |
1d99702e | 3373 | PyObject * _argo0 = 0; |
efc5f224 | 3374 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 3375 | char _ptemp[128]; |
8ab979d7 RD |
3376 | |
3377 | self = self; | |
efc5f224 | 3378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetPoint",_kwnames,&_argo0)) |
8ab979d7 | 3379 | return NULL; |
1d99702e RD |
3380 | if (_argo0) { |
3381 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3382 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 3383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetPoint. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
3384 | return NULL; |
3385 | } | |
3386 | } | |
cf694132 RD |
3387 | { |
3388 | wxPy_BEGIN_ALLOW_THREADS; | |
3389 | _result = new wxPoint (wxTreeEvent_GetPoint(_arg0)); | |
3390 | ||
3391 | wxPy_END_ALLOW_THREADS; | |
3392 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
d5c9047a | 3393 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
3394 | return _resultobj; |
3395 | } | |
3396 | ||
d5c9047a | 3397 | #define wxTreeEvent_GetCode(_swigobj) (_swigobj->GetCode()) |
efc5f224 | 3398 | static PyObject *_wrap_wxTreeEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 3399 | PyObject * _resultobj; |
d5c9047a | 3400 | int _result; |
8ab979d7 | 3401 | wxTreeEvent * _arg0; |
1d99702e | 3402 | PyObject * _argo0 = 0; |
efc5f224 | 3403 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3404 | |
3405 | self = self; | |
efc5f224 | 3406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetCode",_kwnames,&_argo0)) |
8ab979d7 | 3407 | return NULL; |
1d99702e RD |
3408 | if (_argo0) { |
3409 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3410 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 3411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetCode. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
3412 | return NULL; |
3413 | } | |
3414 | } | |
cf694132 RD |
3415 | { |
3416 | wxPy_BEGIN_ALLOW_THREADS; | |
3417 | _result = (int )wxTreeEvent_GetCode(_arg0); | |
3418 | ||
3419 | wxPy_END_ALLOW_THREADS; | |
3420 | } _resultobj = Py_BuildValue("i",_result); | |
d5c9047a RD |
3421 | return _resultobj; |
3422 | } | |
3423 | ||
8bf5d46e | 3424 | #define wxTreeEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 3425 | static PyObject *_wrap_wxTreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 3426 | PyObject * _resultobj; |
8bf5d46e | 3427 | wxString * _result; |
d5c9047a | 3428 | wxTreeEvent * _arg0; |
1d99702e | 3429 | PyObject * _argo0 = 0; |
efc5f224 | 3430 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
3431 | |
3432 | self = self; | |
efc5f224 | 3433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetLabel",_kwnames,&_argo0)) |
d5c9047a | 3434 | return NULL; |
1d99702e RD |
3435 | if (_argo0) { |
3436 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3437 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
8bf5d46e | 3438 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetLabel. Expected _wxTreeEvent_p."); |
d5c9047a RD |
3439 | return NULL; |
3440 | } | |
3441 | } | |
cf694132 RD |
3442 | { |
3443 | wxPy_BEGIN_ALLOW_THREADS; | |
8bf5d46e RD |
3444 | const wxString & _result_ref = wxTreeEvent_GetLabel(_arg0); |
3445 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
3446 | |
3447 | wxPy_END_ALLOW_THREADS; | |
8bf5d46e | 3448 | }{ |
eec92d76 | 3449 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8bf5d46e | 3450 | } |
8ab979d7 RD |
3451 | return _resultobj; |
3452 | } | |
3453 | ||
3454 | static void *SwigwxTreeCtrlTowxControl(void *ptr) { | |
3455 | wxTreeCtrl *src; | |
3456 | wxControl *dest; | |
3457 | src = (wxTreeCtrl *) ptr; | |
3458 | dest = (wxControl *) src; | |
3459 | return (void *) dest; | |
3460 | } | |
3461 | ||
3462 | static void *SwigwxTreeCtrlTowxWindow(void *ptr) { | |
3463 | wxTreeCtrl *src; | |
3464 | wxWindow *dest; | |
3465 | src = (wxTreeCtrl *) ptr; | |
3466 | dest = (wxWindow *) src; | |
3467 | return (void *) dest; | |
3468 | } | |
3469 | ||
3470 | static void *SwigwxTreeCtrlTowxEvtHandler(void *ptr) { | |
3471 | wxTreeCtrl *src; | |
3472 | wxEvtHandler *dest; | |
3473 | src = (wxTreeCtrl *) ptr; | |
3474 | dest = (wxEvtHandler *) src; | |
3475 | return (void *) dest; | |
3476 | } | |
3477 | ||
3478 | #define new_wxTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
efc5f224 | 3479 | static PyObject *_wrap_new_wxTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3480 | PyObject * _resultobj; |
3481 | wxTreeCtrl * _result; | |
3482 | wxWindow * _arg0; | |
1d99702e RD |
3483 | wxWindowID _arg1 = (wxWindowID ) -1; |
3484 | wxPoint * _arg2 = (wxPoint *) &wxPyDefaultPosition; | |
3485 | wxSize * _arg3 = (wxSize *) &wxPyDefaultSize; | |
3486 | long _arg4 = (long ) wxTR_HAS_BUTTONS|wxTR_LINES_AT_ROOT; | |
3487 | wxValidator * _arg5 = (wxValidator *) &wxPyDefaultValidator; | |
3488 | char * _arg6 = (char *) "wxTreeCtrl"; | |
3489 | PyObject * _argo0 = 0; | |
2f90df85 RD |
3490 | wxPoint temp; |
3491 | PyObject * _obj2 = 0; | |
3492 | wxSize temp0; | |
3493 | PyObject * _obj3 = 0; | |
1d99702e | 3494 | PyObject * _argo5 = 0; |
efc5f224 | 3495 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
3496 | char _ptemp[128]; |
3497 | ||
3498 | self = self; | |
2f90df85 | 3499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxTreeCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) |
8ab979d7 | 3500 | return NULL; |
1d99702e RD |
3501 | if (_argo0) { |
3502 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3503 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3504 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTreeCtrl. Expected _wxWindow_p."); |
3505 | return NULL; | |
3506 | } | |
3507 | } | |
2f90df85 RD |
3508 | if (_obj2) |
3509 | { | |
3510 | _arg2 = &temp; | |
3511 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 3512 | return NULL; |
2f90df85 RD |
3513 | } |
3514 | if (_obj3) | |
3515 | { | |
3516 | _arg3 = &temp0; | |
3517 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 3518 | return NULL; |
2f90df85 | 3519 | } |
1d99702e RD |
3520 | if (_argo5) { |
3521 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
3522 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
8ab979d7 RD |
3523 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxTreeCtrl. Expected _wxValidator_p."); |
3524 | return NULL; | |
3525 | } | |
3526 | } | |
cf694132 RD |
3527 | { |
3528 | wxPy_BEGIN_ALLOW_THREADS; | |
3529 | _result = (wxTreeCtrl *)new_wxTreeCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); | |
3530 | ||
3531 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
3532 | } if (_result) { |
3533 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeCtrl_p"); | |
3534 | _resultobj = Py_BuildValue("s",_ptemp); | |
3535 | } else { | |
3536 | Py_INCREF(Py_None); | |
3537 | _resultobj = Py_None; | |
3538 | } | |
8ab979d7 RD |
3539 | return _resultobj; |
3540 | } | |
3541 | ||
d5c9047a | 3542 | #define wxTreeCtrl_GetCount(_swigobj) (_swigobj->GetCount()) |
efc5f224 | 3543 | static PyObject *_wrap_wxTreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 3544 | PyObject * _resultobj; |
c127177f | 3545 | size_t _result; |
8ab979d7 | 3546 | wxTreeCtrl * _arg0; |
1d99702e | 3547 | PyObject * _argo0 = 0; |
efc5f224 | 3548 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3549 | |
3550 | self = self; | |
efc5f224 | 3551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetCount",_kwnames,&_argo0)) |
8ab979d7 | 3552 | return NULL; |
1d99702e RD |
3553 | if (_argo0) { |
3554 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3555 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
d5c9047a | 3556 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetCount. Expected _wxTreeCtrl_p."); |
8ab979d7 RD |
3557 | return NULL; |
3558 | } | |
3559 | } | |
cf694132 RD |
3560 | { |
3561 | wxPy_BEGIN_ALLOW_THREADS; | |
c127177f | 3562 | _result = (size_t )wxTreeCtrl_GetCount(_arg0); |
cf694132 RD |
3563 | |
3564 | wxPy_END_ALLOW_THREADS; | |
c127177f | 3565 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3566 | return _resultobj; |
3567 | } | |
3568 | ||
d5c9047a | 3569 | #define wxTreeCtrl_GetIndent(_swigobj) (_swigobj->GetIndent()) |
efc5f224 | 3570 | static PyObject *_wrap_wxTreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 3571 | PyObject * _resultobj; |
d5c9047a | 3572 | unsigned int _result; |
8ab979d7 | 3573 | wxTreeCtrl * _arg0; |
1d99702e | 3574 | PyObject * _argo0 = 0; |
efc5f224 | 3575 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3576 | |
3577 | self = self; | |
efc5f224 | 3578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetIndent",_kwnames,&_argo0)) |
8ab979d7 | 3579 | return NULL; |
1d99702e RD |
3580 | if (_argo0) { |
3581 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3582 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
d5c9047a | 3583 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetIndent. Expected _wxTreeCtrl_p."); |
8ab979d7 RD |
3584 | return NULL; |
3585 | } | |
3586 | } | |
cf694132 RD |
3587 | { |
3588 | wxPy_BEGIN_ALLOW_THREADS; | |
3589 | _result = (unsigned int )wxTreeCtrl_GetIndent(_arg0); | |
3590 | ||
3591 | wxPy_END_ALLOW_THREADS; | |
3592 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3593 | return _resultobj; |
3594 | } | |
3595 | ||
d5c9047a | 3596 | #define wxTreeCtrl_SetIndent(_swigobj,_swigarg0) (_swigobj->SetIndent(_swigarg0)) |
efc5f224 | 3597 | static PyObject *_wrap_wxTreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 3598 | PyObject * _resultobj; |
8ab979d7 | 3599 | wxTreeCtrl * _arg0; |
d5c9047a | 3600 | unsigned int _arg1; |
1d99702e | 3601 | PyObject * _argo0 = 0; |
efc5f224 | 3602 | char *_kwnames[] = { "self","indent", NULL }; |
8ab979d7 RD |
3603 | |
3604 | self = self; | |
efc5f224 | 3605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetIndent",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3606 | return NULL; |
1d99702e RD |
3607 | if (_argo0) { |
3608 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3609 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
d5c9047a | 3610 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetIndent. Expected _wxTreeCtrl_p."); |
8ab979d7 RD |
3611 | return NULL; |
3612 | } | |
3613 | } | |
cf694132 RD |
3614 | { |
3615 | wxPy_BEGIN_ALLOW_THREADS; | |
3616 | wxTreeCtrl_SetIndent(_arg0,_arg1); | |
3617 | ||
3618 | wxPy_END_ALLOW_THREADS; | |
3619 | } Py_INCREF(Py_None); | |
d5c9047a | 3620 | _resultobj = Py_None; |
8ab979d7 RD |
3621 | return _resultobj; |
3622 | } | |
3623 | ||
d5c9047a | 3624 | #define wxTreeCtrl_GetImageList(_swigobj) (_swigobj->GetImageList()) |
efc5f224 | 3625 | static PyObject *_wrap_wxTreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 3626 | PyObject * _resultobj; |
d5c9047a | 3627 | wxImageList * _result; |
8ab979d7 | 3628 | wxTreeCtrl * _arg0; |
1d99702e | 3629 | PyObject * _argo0 = 0; |
efc5f224 | 3630 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 3631 | char _ptemp[128]; |
8ab979d7 RD |
3632 | |
3633 | self = self; | |
efc5f224 | 3634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetImageList",_kwnames,&_argo0)) |
8ab979d7 | 3635 | return NULL; |
1d99702e RD |
3636 | if (_argo0) { |
3637 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3638 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
d5c9047a | 3639 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetImageList. Expected _wxTreeCtrl_p."); |
8ab979d7 RD |
3640 | return NULL; |
3641 | } | |
3642 | } | |
cf694132 RD |
3643 | { |
3644 | wxPy_BEGIN_ALLOW_THREADS; | |
3645 | _result = (wxImageList *)wxTreeCtrl_GetImageList(_arg0); | |
3646 | ||
3647 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
3648 | } if (_result) { |
3649 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p"); | |
3650 | _resultobj = Py_BuildValue("s",_ptemp); | |
3651 | } else { | |
3652 | Py_INCREF(Py_None); | |
3653 | _resultobj = Py_None; | |
3654 | } | |
8ab979d7 RD |
3655 | return _resultobj; |
3656 | } | |
3657 | ||
d5c9047a | 3658 | #define wxTreeCtrl_GetStateImageList(_swigobj) (_swigobj->GetStateImageList()) |
efc5f224 | 3659 | static PyObject *_wrap_wxTreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 3660 | PyObject * _resultobj; |
d5c9047a | 3661 | wxImageList * _result; |
8ab979d7 | 3662 | wxTreeCtrl * _arg0; |
1d99702e | 3663 | PyObject * _argo0 = 0; |
efc5f224 | 3664 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 3665 | char _ptemp[128]; |
8ab979d7 RD |
3666 | |
3667 | self = self; | |
efc5f224 | 3668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetStateImageList",_kwnames,&_argo0)) |
8ab979d7 | 3669 | return NULL; |
1d99702e RD |
3670 | if (_argo0) { |
3671 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3672 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
d5c9047a | 3673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetStateImageList. Expected _wxTreeCtrl_p."); |
8ab979d7 RD |
3674 | return NULL; |
3675 | } | |
3676 | } | |
cf694132 RD |
3677 | { |
3678 | wxPy_BEGIN_ALLOW_THREADS; | |
3679 | _result = (wxImageList *)wxTreeCtrl_GetStateImageList(_arg0); | |
3680 | ||
3681 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
3682 | } if (_result) { |
3683 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p"); | |
3684 | _resultobj = Py_BuildValue("s",_ptemp); | |
3685 | } else { | |
3686 | Py_INCREF(Py_None); | |
3687 | _resultobj = Py_None; | |
3688 | } | |
8ab979d7 RD |
3689 | return _resultobj; |
3690 | } | |
3691 | ||
d5c9047a | 3692 | #define wxTreeCtrl_SetImageList(_swigobj,_swigarg0) (_swigobj->SetImageList(_swigarg0)) |
efc5f224 | 3693 | static PyObject *_wrap_wxTreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 3694 | PyObject * _resultobj; |
8ab979d7 | 3695 | wxTreeCtrl * _arg0; |
d5c9047a | 3696 | wxImageList * _arg1; |
1d99702e RD |
3697 | PyObject * _argo0 = 0; |
3698 | PyObject * _argo1 = 0; | |
efc5f224 | 3699 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
3700 | |
3701 | self = self; | |
efc5f224 | 3702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3703 | return NULL; |
1d99702e RD |
3704 | if (_argo0) { |
3705 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3706 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
d5c9047a | 3707 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetImageList. Expected _wxTreeCtrl_p."); |
8ab979d7 RD |
3708 | return NULL; |
3709 | } | |
3710 | } | |
1d99702e RD |
3711 | if (_argo1) { |
3712 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3713 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
d5c9047a RD |
3714 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetImageList. Expected _wxImageList_p."); |
3715 | return NULL; | |
3716 | } | |
3717 | } | |
cf694132 RD |
3718 | { |
3719 | wxPy_BEGIN_ALLOW_THREADS; | |
3720 | wxTreeCtrl_SetImageList(_arg0,_arg1); | |
3721 | ||
3722 | wxPy_END_ALLOW_THREADS; | |
3723 | } Py_INCREF(Py_None); | |
d5c9047a | 3724 | _resultobj = Py_None; |
8ab979d7 RD |
3725 | return _resultobj; |
3726 | } | |
3727 | ||
d5c9047a | 3728 | #define wxTreeCtrl_SetStateImageList(_swigobj,_swigarg0) (_swigobj->SetStateImageList(_swigarg0)) |
efc5f224 | 3729 | static PyObject *_wrap_wxTreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 3730 | PyObject * _resultobj; |
8ab979d7 | 3731 | wxTreeCtrl * _arg0; |
d5c9047a | 3732 | wxImageList * _arg1; |
1d99702e RD |
3733 | PyObject * _argo0 = 0; |
3734 | PyObject * _argo1 = 0; | |
efc5f224 | 3735 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
3736 | |
3737 | self = self; | |
efc5f224 | 3738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetStateImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3739 | return NULL; |
1d99702e RD |
3740 | if (_argo0) { |
3741 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3742 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
d5c9047a | 3743 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetStateImageList. Expected _wxTreeCtrl_p."); |
8ab979d7 RD |
3744 | return NULL; |
3745 | } | |
3746 | } | |
1d99702e RD |
3747 | if (_argo1) { |
3748 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3749 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
d5c9047a RD |
3750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetStateImageList. Expected _wxImageList_p."); |
3751 | return NULL; | |
3752 | } | |
3753 | } | |
cf694132 RD |
3754 | { |
3755 | wxPy_BEGIN_ALLOW_THREADS; | |
3756 | wxTreeCtrl_SetStateImageList(_arg0,_arg1); | |
3757 | ||
3758 | wxPy_END_ALLOW_THREADS; | |
3759 | } Py_INCREF(Py_None); | |
d5c9047a | 3760 | _resultobj = Py_None; |
8ab979d7 RD |
3761 | return _resultobj; |
3762 | } | |
3763 | ||
b1462dfa RD |
3764 | #define wxTreeCtrl_GetSpacing(_swigobj) (_swigobj->GetSpacing()) |
3765 | static PyObject *_wrap_wxTreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3766 | PyObject * _resultobj; | |
3767 | unsigned int _result; | |
3768 | wxTreeCtrl * _arg0; | |
3769 | PyObject * _argo0 = 0; | |
3770 | char *_kwnames[] = { "self", NULL }; | |
3771 | ||
3772 | self = self; | |
3773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSpacing",_kwnames,&_argo0)) | |
3774 | return NULL; | |
3775 | if (_argo0) { | |
3776 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3777 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
3778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSpacing. Expected _wxTreeCtrl_p."); | |
3779 | return NULL; | |
3780 | } | |
3781 | } | |
3782 | { | |
3783 | wxPy_BEGIN_ALLOW_THREADS; | |
3784 | _result = (unsigned int )wxTreeCtrl_GetSpacing(_arg0); | |
3785 | ||
3786 | wxPy_END_ALLOW_THREADS; | |
3787 | } _resultobj = Py_BuildValue("i",_result); | |
3788 | return _resultobj; | |
3789 | } | |
3790 | ||
3791 | #define wxTreeCtrl_SetSpacing(_swigobj,_swigarg0) (_swigobj->SetSpacing(_swigarg0)) | |
3792 | static PyObject *_wrap_wxTreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3793 | PyObject * _resultobj; | |
3794 | wxTreeCtrl * _arg0; | |
3795 | unsigned int _arg1; | |
3796 | PyObject * _argo0 = 0; | |
3797 | char *_kwnames[] = { "self","spacing", NULL }; | |
3798 | ||
3799 | self = self; | |
3800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetSpacing",_kwnames,&_argo0,&_arg1)) | |
3801 | return NULL; | |
3802 | if (_argo0) { | |
3803 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3804 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
3805 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetSpacing. Expected _wxTreeCtrl_p."); | |
3806 | return NULL; | |
3807 | } | |
3808 | } | |
3809 | { | |
3810 | wxPy_BEGIN_ALLOW_THREADS; | |
3811 | wxTreeCtrl_SetSpacing(_arg0,_arg1); | |
3812 | ||
3813 | wxPy_END_ALLOW_THREADS; | |
3814 | } Py_INCREF(Py_None); | |
3815 | _resultobj = Py_None; | |
3816 | return _resultobj; | |
3817 | } | |
3818 | ||
d5c9047a | 3819 | #define wxTreeCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) |
efc5f224 | 3820 | static PyObject *_wrap_wxTreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 3821 | PyObject * _resultobj; |
d5c9047a | 3822 | wxString * _result; |
8ab979d7 | 3823 | wxTreeCtrl * _arg0; |
d5c9047a | 3824 | wxTreeItemId * _arg1; |
1d99702e RD |
3825 | PyObject * _argo0 = 0; |
3826 | PyObject * _argo1 = 0; | |
efc5f224 | 3827 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3828 | |
3829 | self = self; | |
efc5f224 | 3830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemText",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3831 | return NULL; |
1d99702e RD |
3832 | if (_argo0) { |
3833 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3834 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
d5c9047a | 3835 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemText. Expected _wxTreeCtrl_p."); |
8ab979d7 RD |
3836 | return NULL; |
3837 | } | |
3838 | } | |
1d99702e RD |
3839 | if (_argo1) { |
3840 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3841 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
3842 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemText. Expected _wxTreeItemId_p."); |
3843 | return NULL; | |
3844 | } | |
3845 | } | |
d5c9047a | 3846 | { |
cf694132 RD |
3847 | wxPy_BEGIN_ALLOW_THREADS; |
3848 | _result = new wxString (wxTreeCtrl_GetItemText(_arg0,*_arg1)); | |
3849 | ||
3850 | wxPy_END_ALLOW_THREADS; | |
3851 | }{ | |
eec92d76 | 3852 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
d5c9047a RD |
3853 | } |
3854 | { | |
3855 | delete _result; | |
3856 | } | |
8ab979d7 RD |
3857 | return _resultobj; |
3858 | } | |
3859 | ||
694759cf | 3860 | #define wxTreeCtrl_GetItemImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemImage(_swigarg0,_swigarg1)) |
efc5f224 | 3861 | static PyObject *_wrap_wxTreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 3862 | PyObject * _resultobj; |
d5c9047a | 3863 | int _result; |
8ab979d7 | 3864 | wxTreeCtrl * _arg0; |
d5c9047a | 3865 | wxTreeItemId * _arg1; |
694759cf | 3866 | wxTreeItemIcon _arg2 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); |
1d99702e RD |
3867 | PyObject * _argo0 = 0; |
3868 | PyObject * _argo1 = 0; | |
694759cf | 3869 | char *_kwnames[] = { "self","item","which", NULL }; |
8ab979d7 RD |
3870 | |
3871 | self = self; | |
694759cf | 3872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetItemImage",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 3873 | return NULL; |
1d99702e RD |
3874 | if (_argo0) { |
3875 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3876 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
d5c9047a | 3877 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemImage. Expected _wxTreeCtrl_p."); |
8ab979d7 RD |
3878 | return NULL; |
3879 | } | |
3880 | } | |
1d99702e RD |
3881 | if (_argo1) { |
3882 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3883 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
3884 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemImage. Expected _wxTreeItemId_p."); |
3885 | return NULL; | |
3886 | } | |
3887 | } | |
cf694132 RD |
3888 | { |
3889 | wxPy_BEGIN_ALLOW_THREADS; | |
694759cf | 3890 | _result = (int )wxTreeCtrl_GetItemImage(_arg0,*_arg1,_arg2); |
cf694132 RD |
3891 | |
3892 | wxPy_END_ALLOW_THREADS; | |
3893 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3894 | return _resultobj; |
3895 | } | |
3896 | ||
d5c9047a | 3897 | #define wxTreeCtrl_GetItemSelectedImage(_swigobj,_swigarg0) (_swigobj->GetItemSelectedImage(_swigarg0)) |
efc5f224 | 3898 | static PyObject *_wrap_wxTreeCtrl_GetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 3899 | PyObject * _resultobj; |
d5c9047a | 3900 | int _result; |
8ab979d7 | 3901 | wxTreeCtrl * _arg0; |
d5c9047a | 3902 | wxTreeItemId * _arg1; |
1d99702e RD |
3903 | PyObject * _argo0 = 0; |
3904 | PyObject * _argo1 = 0; | |
efc5f224 | 3905 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3906 | |
3907 | self = self; | |
efc5f224 | 3908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemSelectedImage",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3909 | return NULL; |
1d99702e RD |
3910 | if (_argo0) { |
3911 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3912 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
d5c9047a | 3913 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemSelectedImage. Expected _wxTreeCtrl_p."); |
8ab979d7 RD |
3914 | return NULL; |
3915 | } | |
3916 | } | |
1d99702e RD |
3917 | if (_argo1) { |
3918 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3919 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
3920 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemSelectedImage. Expected _wxTreeItemId_p."); |
3921 | return NULL; | |
3922 | } | |
3923 | } | |
cf694132 RD |
3924 | { |
3925 | wxPy_BEGIN_ALLOW_THREADS; | |
3926 | _result = (int )wxTreeCtrl_GetItemSelectedImage(_arg0,*_arg1); | |
8ab979d7 | 3927 | |
cf694132 RD |
3928 | wxPy_END_ALLOW_THREADS; |
3929 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3930 | return _resultobj; |
3931 | } | |
3932 | ||
d5c9047a | 3933 | #define wxTreeCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) |
efc5f224 | 3934 | static PyObject *_wrap_wxTreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 3935 | PyObject * _resultobj; |
8ab979d7 | 3936 | wxTreeCtrl * _arg0; |
d5c9047a RD |
3937 | wxTreeItemId * _arg1; |
3938 | wxString * _arg2; | |
1d99702e RD |
3939 | PyObject * _argo0 = 0; |
3940 | PyObject * _argo1 = 0; | |
d5c9047a | 3941 | PyObject * _obj2 = 0; |
efc5f224 | 3942 | char *_kwnames[] = { "self","item","text", NULL }; |
8ab979d7 RD |
3943 | |
3944 | self = self; | |
efc5f224 | 3945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemText",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 3946 | return NULL; |
1d99702e RD |
3947 | if (_argo0) { |
3948 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3949 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
d5c9047a | 3950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemText. Expected _wxTreeCtrl_p."); |
8ab979d7 RD |
3951 | return NULL; |
3952 | } | |
3953 | } | |
1d99702e RD |
3954 | if (_argo1) { |
3955 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3956 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
3957 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemText. Expected _wxTreeItemId_p."); |
3958 | return NULL; | |
3959 | } | |
3960 | } | |
3961 | { | |
3962 | if (!PyString_Check(_obj2)) { | |
3963 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3964 | return NULL; | |
3965 | } | |
cf694132 | 3966 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); |
d5c9047a | 3967 | } |
cf694132 RD |
3968 | { |
3969 | wxPy_BEGIN_ALLOW_THREADS; | |
3970 | wxTreeCtrl_SetItemText(_arg0,*_arg1,*_arg2); | |
3971 | ||
3972 | wxPy_END_ALLOW_THREADS; | |
3973 | } Py_INCREF(Py_None); | |
d5c9047a RD |
3974 | _resultobj = Py_None; |
3975 | { | |
3976 | if (_obj2) | |
3977 | delete _arg2; | |
3978 | } | |
8ab979d7 RD |
3979 | return _resultobj; |
3980 | } | |
3981 | ||
694759cf | 3982 | #define wxTreeCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3983 | static PyObject *_wrap_wxTreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 3984 | PyObject * _resultobj; |
8ab979d7 | 3985 | wxTreeCtrl * _arg0; |
d5c9047a RD |
3986 | wxTreeItemId * _arg1; |
3987 | int _arg2; | |
694759cf | 3988 | wxTreeItemIcon _arg3 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); |
1d99702e RD |
3989 | PyObject * _argo0 = 0; |
3990 | PyObject * _argo1 = 0; | |
694759cf | 3991 | char *_kwnames[] = { "self","item","image","which", NULL }; |
8ab979d7 RD |
3992 | |
3993 | self = self; | |
694759cf | 3994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|i:wxTreeCtrl_SetItemImage",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8ab979d7 | 3995 | return NULL; |
1d99702e RD |
3996 | if (_argo0) { |
3997 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3998 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
d5c9047a | 3999 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemImage. Expected _wxTreeCtrl_p."); |
8ab979d7 RD |
4000 | return NULL; |
4001 | } | |
4002 | } | |
1d99702e RD |
4003 | if (_argo1) { |
4004 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4005 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
4006 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemImage. Expected _wxTreeItemId_p."); |
4007 | return NULL; | |
4008 | } | |
4009 | } | |
cf694132 RD |
4010 | { |
4011 | wxPy_BEGIN_ALLOW_THREADS; | |
694759cf | 4012 | wxTreeCtrl_SetItemImage(_arg0,*_arg1,_arg2,_arg3); |
cf694132 RD |
4013 | |
4014 | wxPy_END_ALLOW_THREADS; | |
4015 | } Py_INCREF(Py_None); | |
d5c9047a | 4016 | _resultobj = Py_None; |
8ab979d7 RD |
4017 | return _resultobj; |
4018 | } | |
4019 | ||
d5c9047a | 4020 | #define wxTreeCtrl_SetItemSelectedImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemSelectedImage(_swigarg0,_swigarg1)) |
efc5f224 | 4021 | static PyObject *_wrap_wxTreeCtrl_SetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4022 | PyObject * _resultobj; |
8ab979d7 | 4023 | wxTreeCtrl * _arg0; |
d5c9047a RD |
4024 | wxTreeItemId * _arg1; |
4025 | int _arg2; | |
1d99702e RD |
4026 | PyObject * _argo0 = 0; |
4027 | PyObject * _argo1 = 0; | |
efc5f224 | 4028 | char *_kwnames[] = { "self","item","image", NULL }; |
8ab979d7 RD |
4029 | |
4030 | self = self; | |
efc5f224 | 4031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxTreeCtrl_SetItemSelectedImage",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 4032 | return NULL; |
1d99702e RD |
4033 | if (_argo0) { |
4034 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4035 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
d5c9047a | 4036 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemSelectedImage. Expected _wxTreeCtrl_p."); |
8ab979d7 RD |
4037 | return NULL; |
4038 | } | |
4039 | } | |
1d99702e RD |
4040 | if (_argo1) { |
4041 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4042 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
4043 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemSelectedImage. Expected _wxTreeItemId_p."); |
4044 | return NULL; | |
4045 | } | |
4046 | } | |
cf694132 RD |
4047 | { |
4048 | wxPy_BEGIN_ALLOW_THREADS; | |
4049 | wxTreeCtrl_SetItemSelectedImage(_arg0,*_arg1,_arg2); | |
4050 | ||
4051 | wxPy_END_ALLOW_THREADS; | |
4052 | } Py_INCREF(Py_None); | |
4053 | _resultobj = Py_None; | |
4054 | return _resultobj; | |
4055 | } | |
4056 | ||
4057 | #define wxTreeCtrl_SetItemHasChildren(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemHasChildren(_swigarg0,_swigarg1)) | |
efc5f224 | 4058 | static PyObject *_wrap_wxTreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
4059 | PyObject * _resultobj; |
4060 | wxTreeCtrl * _arg0; | |
4061 | wxTreeItemId * _arg1; | |
1d99702e RD |
4062 | bool _arg2 = (bool ) TRUE; |
4063 | PyObject * _argo0 = 0; | |
4064 | PyObject * _argo1 = 0; | |
4065 | int tempbool2 = (int) TRUE; | |
efc5f224 | 4066 | char *_kwnames[] = { "self","item","hasChildren", NULL }; |
cf694132 RD |
4067 | |
4068 | self = self; | |
efc5f224 | 4069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemHasChildren",_kwnames,&_argo0,&_argo1,&tempbool2)) |
cf694132 | 4070 | return NULL; |
1d99702e RD |
4071 | if (_argo0) { |
4072 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4073 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
cf694132 RD |
4074 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemHasChildren. Expected _wxTreeCtrl_p."); |
4075 | return NULL; | |
4076 | } | |
4077 | } | |
1d99702e RD |
4078 | if (_argo1) { |
4079 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4080 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
4081 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemHasChildren. Expected _wxTreeItemId_p."); |
4082 | return NULL; | |
4083 | } | |
4084 | } | |
4085 | _arg2 = (bool ) tempbool2; | |
4086 | { | |
4087 | wxPy_BEGIN_ALLOW_THREADS; | |
4088 | wxTreeCtrl_SetItemHasChildren(_arg0,*_arg1,_arg2); | |
4089 | ||
4090 | wxPy_END_ALLOW_THREADS; | |
4091 | } Py_INCREF(Py_None); | |
d5c9047a | 4092 | _resultobj = Py_None; |
8ab979d7 RD |
4093 | return _resultobj; |
4094 | } | |
4095 | ||
cf694132 RD |
4096 | static wxPyTreeItemData * wxTreeCtrl_GetItemData(wxTreeCtrl *self,const wxTreeItemId & item) { |
4097 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
4098 | if (data == NULL) { | |
4099 | data = new wxPyTreeItemData(); | |
4100 | self->SetItemData(item, data); | |
4101 | } | |
4102 | return data; | |
4103 | } | |
efc5f224 | 4104 | static PyObject *_wrap_wxTreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
4105 | PyObject * _resultobj; |
4106 | wxPyTreeItemData * _result; | |
4107 | wxTreeCtrl * _arg0; | |
4108 | wxTreeItemId * _arg1; | |
1d99702e RD |
4109 | PyObject * _argo0 = 0; |
4110 | PyObject * _argo1 = 0; | |
efc5f224 | 4111 | char *_kwnames[] = { "self","item", NULL }; |
cf694132 RD |
4112 | char _ptemp[128]; |
4113 | ||
4114 | self = self; | |
efc5f224 | 4115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemData",_kwnames,&_argo0,&_argo1)) |
cf694132 | 4116 | return NULL; |
1d99702e RD |
4117 | if (_argo0) { |
4118 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4119 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
cf694132 RD |
4120 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemData. Expected _wxTreeCtrl_p."); |
4121 | return NULL; | |
4122 | } | |
4123 | } | |
1d99702e RD |
4124 | if (_argo1) { |
4125 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4126 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
4127 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemData. Expected _wxTreeItemId_p."); |
4128 | return NULL; | |
4129 | } | |
4130 | } | |
4131 | { | |
4132 | wxPy_BEGIN_ALLOW_THREADS; | |
4133 | _result = (wxPyTreeItemData *)wxTreeCtrl_GetItemData(_arg0,*_arg1); | |
4134 | ||
4135 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
4136 | } if (_result) { |
4137 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
4138 | _resultobj = Py_BuildValue("s",_ptemp); | |
4139 | } else { | |
4140 | Py_INCREF(Py_None); | |
4141 | _resultobj = Py_None; | |
4142 | } | |
cf694132 RD |
4143 | return _resultobj; |
4144 | } | |
4145 | ||
4146 | static void wxTreeCtrl_SetItemData(wxTreeCtrl *self,const wxTreeItemId & item,wxPyTreeItemData * data) { | |
4147 | self->SetItemData(item, data); | |
4148 | } | |
efc5f224 | 4149 | static PyObject *_wrap_wxTreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4150 | PyObject * _resultobj; |
8ab979d7 | 4151 | wxTreeCtrl * _arg0; |
d5c9047a | 4152 | wxTreeItemId * _arg1; |
cf694132 | 4153 | wxPyTreeItemData * _arg2; |
1d99702e RD |
4154 | PyObject * _argo0 = 0; |
4155 | PyObject * _argo1 = 0; | |
4156 | PyObject * _argo2 = 0; | |
efc5f224 | 4157 | char *_kwnames[] = { "self","item","data", NULL }; |
8ab979d7 RD |
4158 | |
4159 | self = self; | |
efc5f224 | 4160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemData",_kwnames,&_argo0,&_argo1,&_argo2)) |
8ab979d7 | 4161 | return NULL; |
1d99702e RD |
4162 | if (_argo0) { |
4163 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4164 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
d5c9047a | 4165 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemData. Expected _wxTreeCtrl_p."); |
8ab979d7 RD |
4166 | return NULL; |
4167 | } | |
4168 | } | |
1d99702e RD |
4169 | if (_argo1) { |
4170 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4171 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
4172 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemData. Expected _wxTreeItemId_p."); |
4173 | return NULL; | |
4174 | } | |
4175 | } | |
1d99702e RD |
4176 | if (_argo2) { |
4177 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
4178 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyTreeItemData_p")) { | |
cf694132 | 4179 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemData. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
4180 | return NULL; |
4181 | } | |
4182 | } | |
cf694132 RD |
4183 | { |
4184 | wxPy_BEGIN_ALLOW_THREADS; | |
4185 | wxTreeCtrl_SetItemData(_arg0,*_arg1,_arg2); | |
4186 | ||
4187 | wxPy_END_ALLOW_THREADS; | |
4188 | } Py_INCREF(Py_None); | |
d5c9047a | 4189 | _resultobj = Py_None; |
8ab979d7 RD |
4190 | return _resultobj; |
4191 | } | |
4192 | ||
cf694132 RD |
4193 | static PyObject * wxTreeCtrl_GetPyData(wxTreeCtrl *self,const wxTreeItemId & item) { |
4194 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
4195 | if (data == NULL) { | |
4196 | data = new wxPyTreeItemData(); | |
4197 | self->SetItemData(item, data); | |
4198 | } | |
4199 | return data->GetData(); | |
4200 | } | |
efc5f224 | 4201 | static PyObject *_wrap_wxTreeCtrl_GetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 | 4202 | PyObject * _resultobj; |
cf694132 | 4203 | PyObject * _result; |
08127323 RD |
4204 | wxTreeCtrl * _arg0; |
4205 | wxTreeItemId * _arg1; | |
1d99702e RD |
4206 | PyObject * _argo0 = 0; |
4207 | PyObject * _argo1 = 0; | |
efc5f224 | 4208 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
4209 | |
4210 | self = self; | |
efc5f224 | 4211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPyData",_kwnames,&_argo0,&_argo1)) |
08127323 | 4212 | return NULL; |
1d99702e RD |
4213 | if (_argo0) { |
4214 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4215 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
cf694132 | 4216 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPyData. Expected _wxTreeCtrl_p."); |
08127323 RD |
4217 | return NULL; |
4218 | } | |
4219 | } | |
1d99702e RD |
4220 | if (_argo1) { |
4221 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4222 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 | 4223 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPyData. Expected _wxTreeItemId_p."); |
08127323 RD |
4224 | return NULL; |
4225 | } | |
4226 | } | |
cf694132 RD |
4227 | { |
4228 | wxPy_BEGIN_ALLOW_THREADS; | |
4229 | _result = (PyObject *)wxTreeCtrl_GetPyData(_arg0,*_arg1); | |
4230 | ||
4231 | wxPy_END_ALLOW_THREADS; | |
4232 | }{ | |
4233 | _resultobj = _result; | |
4234 | } | |
4235 | return _resultobj; | |
4236 | } | |
4237 | ||
4238 | static void wxTreeCtrl_SetPyData(wxTreeCtrl *self,const wxTreeItemId & item,PyObject * obj) { | |
4239 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
4240 | if (data == NULL) { | |
4241 | data = new wxPyTreeItemData(obj); | |
4242 | self->SetItemData(item, data); | |
4243 | } else | |
4244 | data->SetData(obj); | |
4245 | } | |
efc5f224 | 4246 | static PyObject *_wrap_wxTreeCtrl_SetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
4247 | PyObject * _resultobj; |
4248 | wxTreeCtrl * _arg0; | |
4249 | wxTreeItemId * _arg1; | |
4250 | PyObject * _arg2; | |
1d99702e RD |
4251 | PyObject * _argo0 = 0; |
4252 | PyObject * _argo1 = 0; | |
cf694132 | 4253 | PyObject * _obj2 = 0; |
efc5f224 | 4254 | char *_kwnames[] = { "self","item","obj", NULL }; |
cf694132 RD |
4255 | |
4256 | self = self; | |
efc5f224 | 4257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetPyData",_kwnames,&_argo0,&_argo1,&_obj2)) |
cf694132 | 4258 | return NULL; |
1d99702e RD |
4259 | if (_argo0) { |
4260 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4261 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
cf694132 RD |
4262 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetPyData. Expected _wxTreeCtrl_p."); |
4263 | return NULL; | |
4264 | } | |
4265 | } | |
1d99702e RD |
4266 | if (_argo1) { |
4267 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4268 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
4269 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetPyData. Expected _wxTreeItemId_p."); |
4270 | return NULL; | |
4271 | } | |
4272 | } | |
4273 | { | |
4274 | _arg2 = _obj2; | |
4275 | } | |
4276 | { | |
4277 | wxPy_BEGIN_ALLOW_THREADS; | |
4278 | wxTreeCtrl_SetPyData(_arg0,*_arg1,_arg2); | |
4279 | ||
4280 | wxPy_END_ALLOW_THREADS; | |
4281 | } Py_INCREF(Py_None); | |
08127323 RD |
4282 | _resultobj = Py_None; |
4283 | return _resultobj; | |
4284 | } | |
4285 | ||
d5c9047a | 4286 | #define wxTreeCtrl_IsVisible(_swigobj,_swigarg0) (_swigobj->IsVisible(_swigarg0)) |
efc5f224 | 4287 | static PyObject *_wrap_wxTreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4288 | PyObject * _resultobj; |
d5c9047a | 4289 | bool _result; |
8ab979d7 | 4290 | wxTreeCtrl * _arg0; |
d5c9047a | 4291 | wxTreeItemId * _arg1; |
1d99702e RD |
4292 | PyObject * _argo0 = 0; |
4293 | PyObject * _argo1 = 0; | |
efc5f224 | 4294 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
4295 | |
4296 | self = self; | |
efc5f224 | 4297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4298 | return NULL; |
1d99702e RD |
4299 | if (_argo0) { |
4300 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4301 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
d5c9047a | 4302 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsVisible. Expected _wxTreeCtrl_p."); |
8ab979d7 RD |
4303 | return NULL; |
4304 | } | |
4305 | } | |
1d99702e RD |
4306 | if (_argo1) { |
4307 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4308 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
4309 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsVisible. Expected _wxTreeItemId_p."); |
4310 | return NULL; | |
4311 | } | |
4312 | } | |
cf694132 RD |
4313 | { |
4314 | wxPy_BEGIN_ALLOW_THREADS; | |
4315 | _result = (bool )wxTreeCtrl_IsVisible(_arg0,*_arg1); | |
4316 | ||
4317 | wxPy_END_ALLOW_THREADS; | |
4318 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4319 | return _resultobj; |
4320 | } | |
4321 | ||
d5c9047a | 4322 | #define wxTreeCtrl_ItemHasChildren(_swigobj,_swigarg0) (_swigobj->ItemHasChildren(_swigarg0)) |
efc5f224 | 4323 | static PyObject *_wrap_wxTreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4324 | PyObject * _resultobj; |
d5c9047a | 4325 | bool _result; |
8ab979d7 | 4326 | wxTreeCtrl * _arg0; |
d5c9047a | 4327 | wxTreeItemId * _arg1; |
1d99702e RD |
4328 | PyObject * _argo0 = 0; |
4329 | PyObject * _argo1 = 0; | |
efc5f224 | 4330 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
4331 | |
4332 | self = self; | |
efc5f224 | 4333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ItemHasChildren",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4334 | return NULL; |
1d99702e RD |
4335 | if (_argo0) { |
4336 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4337 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
d5c9047a | 4338 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ItemHasChildren. Expected _wxTreeCtrl_p."); |
8ab979d7 RD |
4339 | return NULL; |
4340 | } | |
4341 | } | |
1d99702e RD |
4342 | if (_argo1) { |
4343 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4344 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
4345 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ItemHasChildren. Expected _wxTreeItemId_p."); |
4346 | return NULL; | |
4347 | } | |
4348 | } | |
cf694132 RD |
4349 | { |
4350 | wxPy_BEGIN_ALLOW_THREADS; | |
4351 | _result = (bool )wxTreeCtrl_ItemHasChildren(_arg0,*_arg1); | |
4352 | ||
4353 | wxPy_END_ALLOW_THREADS; | |
4354 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4355 | return _resultobj; |
4356 | } | |
4357 | ||
d5c9047a | 4358 | #define wxTreeCtrl_IsExpanded(_swigobj,_swigarg0) (_swigobj->IsExpanded(_swigarg0)) |
efc5f224 | 4359 | static PyObject *_wrap_wxTreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4360 | PyObject * _resultobj; |
d5c9047a | 4361 | bool _result; |
8ab979d7 | 4362 | wxTreeCtrl * _arg0; |
d5c9047a | 4363 | wxTreeItemId * _arg1; |
1d99702e RD |
4364 | PyObject * _argo0 = 0; |
4365 | PyObject * _argo1 = 0; | |
efc5f224 | 4366 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
4367 | |
4368 | self = self; | |
efc5f224 | 4369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsExpanded",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4370 | return NULL; |
1d99702e RD |
4371 | if (_argo0) { |
4372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
d5c9047a | 4374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsExpanded. Expected _wxTreeCtrl_p."); |
8ab979d7 RD |
4375 | return NULL; |
4376 | } | |
4377 | } | |
1d99702e RD |
4378 | if (_argo1) { |
4379 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4380 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
4381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsExpanded. Expected _wxTreeItemId_p."); |
4382 | return NULL; | |
4383 | } | |
4384 | } | |
cf694132 RD |
4385 | { |
4386 | wxPy_BEGIN_ALLOW_THREADS; | |
4387 | _result = (bool )wxTreeCtrl_IsExpanded(_arg0,*_arg1); | |
4388 | ||
4389 | wxPy_END_ALLOW_THREADS; | |
4390 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4391 | return _resultobj; |
4392 | } | |
4393 | ||
d5c9047a | 4394 | #define wxTreeCtrl_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) |
efc5f224 | 4395 | static PyObject *_wrap_wxTreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4396 | PyObject * _resultobj; |
d5c9047a | 4397 | bool _result; |
8ab979d7 | 4398 | wxTreeCtrl * _arg0; |
d5c9047a | 4399 | wxTreeItemId * _arg1; |
1d99702e RD |
4400 | PyObject * _argo0 = 0; |
4401 | PyObject * _argo1 = 0; | |
efc5f224 | 4402 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
4403 | |
4404 | self = self; | |
efc5f224 | 4405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsSelected",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4406 | return NULL; |
1d99702e RD |
4407 | if (_argo0) { |
4408 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4409 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
d5c9047a | 4410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsSelected. Expected _wxTreeCtrl_p."); |
8ab979d7 RD |
4411 | return NULL; |
4412 | } | |
4413 | } | |
1d99702e RD |
4414 | if (_argo1) { |
4415 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4416 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
4417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsSelected. Expected _wxTreeItemId_p."); |
4418 | return NULL; | |
4419 | } | |
4420 | } | |
cf694132 RD |
4421 | { |
4422 | wxPy_BEGIN_ALLOW_THREADS; | |
4423 | _result = (bool )wxTreeCtrl_IsSelected(_arg0,*_arg1); | |
4424 | ||
4425 | wxPy_END_ALLOW_THREADS; | |
4426 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4427 | return _resultobj; |
4428 | } | |
4429 | ||
4430 | #define wxTreeCtrl_GetRootItem(_swigobj) (_swigobj->GetRootItem()) | |
efc5f224 | 4431 | static PyObject *_wrap_wxTreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4432 | PyObject * _resultobj; |
d5c9047a | 4433 | wxTreeItemId * _result; |
8ab979d7 | 4434 | wxTreeCtrl * _arg0; |
1d99702e | 4435 | PyObject * _argo0 = 0; |
efc5f224 | 4436 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 4437 | char _ptemp[128]; |
8ab979d7 RD |
4438 | |
4439 | self = self; | |
efc5f224 | 4440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetRootItem",_kwnames,&_argo0)) |
8ab979d7 | 4441 | return NULL; |
1d99702e RD |
4442 | if (_argo0) { |
4443 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4444 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
8ab979d7 RD |
4445 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetRootItem. Expected _wxTreeCtrl_p."); |
4446 | return NULL; | |
4447 | } | |
4448 | } | |
cf694132 RD |
4449 | { |
4450 | wxPy_BEGIN_ALLOW_THREADS; | |
4451 | _result = new wxTreeItemId (wxTreeCtrl_GetRootItem(_arg0)); | |
4452 | ||
4453 | wxPy_END_ALLOW_THREADS; | |
4454 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 4455 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
4456 | return _resultobj; |
4457 | } | |
4458 | ||
4459 | #define wxTreeCtrl_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
efc5f224 | 4460 | static PyObject *_wrap_wxTreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4461 | PyObject * _resultobj; |
d5c9047a | 4462 | wxTreeItemId * _result; |
8ab979d7 | 4463 | wxTreeCtrl * _arg0; |
1d99702e | 4464 | PyObject * _argo0 = 0; |
efc5f224 | 4465 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 4466 | char _ptemp[128]; |
8ab979d7 RD |
4467 | |
4468 | self = self; | |
efc5f224 | 4469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelection",_kwnames,&_argo0)) |
8ab979d7 | 4470 | return NULL; |
1d99702e RD |
4471 | if (_argo0) { |
4472 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4473 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
8ab979d7 RD |
4474 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelection. Expected _wxTreeCtrl_p."); |
4475 | return NULL; | |
4476 | } | |
4477 | } | |
cf694132 RD |
4478 | { |
4479 | wxPy_BEGIN_ALLOW_THREADS; | |
4480 | _result = new wxTreeItemId (wxTreeCtrl_GetSelection(_arg0)); | |
4481 | ||
4482 | wxPy_END_ALLOW_THREADS; | |
4483 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 4484 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
4485 | return _resultobj; |
4486 | } | |
4487 | ||
eb715945 RD |
4488 | #define wxTreeCtrl_GetItemParent(_swigobj,_swigarg0) (_swigobj->GetParent(_swigarg0)) |
4489 | static PyObject *_wrap_wxTreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4490 | PyObject * _resultobj; |
d5c9047a | 4491 | wxTreeItemId * _result; |
8ab979d7 | 4492 | wxTreeCtrl * _arg0; |
d5c9047a | 4493 | wxTreeItemId * _arg1; |
1d99702e RD |
4494 | PyObject * _argo0 = 0; |
4495 | PyObject * _argo1 = 0; | |
efc5f224 | 4496 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 4497 | char _ptemp[128]; |
8ab979d7 RD |
4498 | |
4499 | self = self; | |
eb715945 | 4500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4501 | return NULL; |
1d99702e RD |
4502 | if (_argo0) { |
4503 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4504 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
eb715945 | 4505 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemParent. Expected _wxTreeCtrl_p."); |
8ab979d7 RD |
4506 | return NULL; |
4507 | } | |
4508 | } | |
1d99702e RD |
4509 | if (_argo1) { |
4510 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4511 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
eb715945 | 4512 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemParent. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
4513 | return NULL; |
4514 | } | |
4515 | } | |
cf694132 RD |
4516 | { |
4517 | wxPy_BEGIN_ALLOW_THREADS; | |
eb715945 | 4518 | _result = new wxTreeItemId (wxTreeCtrl_GetItemParent(_arg0,*_arg1)); |
cf694132 RD |
4519 | |
4520 | wxPy_END_ALLOW_THREADS; | |
4521 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 4522 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
4523 | return _resultobj; |
4524 | } | |
4525 | ||
d426c97e | 4526 | static PyObject * wxTreeCtrl_GetSelections(wxTreeCtrl *self) { |
26b9cf27 | 4527 | bool doSave = wxPyRestoreThread(); |
d426c97e RD |
4528 | PyObject* rval = PyList_New(0); |
4529 | wxArrayTreeItemIds array; | |
4530 | size_t num, x; | |
4531 | num = self->GetSelections(array); | |
4532 | for (x=0; x < num; x++) { | |
4533 | PyObject* item = wxPyConstructObject((void*)&array.Item(x), | |
4534 | "wxTreeItemId"); | |
4535 | PyList_Append(rval, item); | |
4536 | } | |
26b9cf27 | 4537 | wxPySaveThread(doSave); |
d426c97e RD |
4538 | return rval; |
4539 | } | |
4540 | static PyObject *_wrap_wxTreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4541 | PyObject * _resultobj; | |
4542 | PyObject * _result; | |
4543 | wxTreeCtrl * _arg0; | |
4544 | PyObject * _argo0 = 0; | |
4545 | char *_kwnames[] = { "self", NULL }; | |
4546 | ||
4547 | self = self; | |
4548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelections",_kwnames,&_argo0)) | |
4549 | return NULL; | |
4550 | if (_argo0) { | |
4551 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4552 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
4553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelections. Expected _wxTreeCtrl_p."); | |
4554 | return NULL; | |
4555 | } | |
4556 | } | |
4557 | { | |
4558 | wxPy_BEGIN_ALLOW_THREADS; | |
4559 | _result = (PyObject *)wxTreeCtrl_GetSelections(_arg0); | |
4560 | ||
4561 | wxPy_END_ALLOW_THREADS; | |
4562 | }{ | |
4563 | _resultobj = _result; | |
4564 | } | |
4565 | return _resultobj; | |
4566 | } | |
4567 | ||
bb0054cd | 4568 | #define wxTreeCtrl_GetChildrenCount(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetChildrenCount(_swigarg0,_swigarg1)) |
efc5f224 | 4569 | static PyObject *_wrap_wxTreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
4570 | PyObject * _resultobj; |
4571 | size_t _result; | |
4572 | wxTreeCtrl * _arg0; | |
4573 | wxTreeItemId * _arg1; | |
1d99702e RD |
4574 | bool _arg2 = (bool ) TRUE; |
4575 | PyObject * _argo0 = 0; | |
4576 | PyObject * _argo1 = 0; | |
4577 | int tempbool2 = (int) TRUE; | |
efc5f224 | 4578 | char *_kwnames[] = { "self","item","recursively", NULL }; |
bb0054cd RD |
4579 | |
4580 | self = self; | |
efc5f224 | 4581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetChildrenCount",_kwnames,&_argo0,&_argo1,&tempbool2)) |
bb0054cd | 4582 | return NULL; |
1d99702e RD |
4583 | if (_argo0) { |
4584 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4585 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
bb0054cd RD |
4586 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetChildrenCount. Expected _wxTreeCtrl_p."); |
4587 | return NULL; | |
4588 | } | |
4589 | } | |
1d99702e RD |
4590 | if (_argo1) { |
4591 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4592 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
bb0054cd RD |
4593 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetChildrenCount. Expected _wxTreeItemId_p."); |
4594 | return NULL; | |
4595 | } | |
4596 | } | |
4597 | _arg2 = (bool ) tempbool2; | |
4598 | { | |
4599 | wxPy_BEGIN_ALLOW_THREADS; | |
4600 | _result = (size_t )wxTreeCtrl_GetChildrenCount(_arg0,*_arg1,_arg2); | |
4601 | ||
4602 | wxPy_END_ALLOW_THREADS; | |
4603 | } _resultobj = Py_BuildValue("i",_result); | |
4604 | return _resultobj; | |
4605 | } | |
4606 | ||
d5c9047a | 4607 | #define wxTreeCtrl_GetFirstChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetFirstChild(_swigarg0,_swigarg1)) |
efc5f224 | 4608 | static PyObject *_wrap_wxTreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4609 | PyObject * _resultobj; |
d5c9047a | 4610 | wxTreeItemId * _result; |
8ab979d7 | 4611 | wxTreeCtrl * _arg0; |
d5c9047a RD |
4612 | wxTreeItemId * _arg1; |
4613 | long * _arg2; | |
1d99702e RD |
4614 | PyObject * _argo0 = 0; |
4615 | PyObject * _argo1 = 0; | |
d5c9047a RD |
4616 | long temp; |
4617 | PyObject * _obj2 = 0; | |
efc5f224 | 4618 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 4619 | char _ptemp[128]; |
8ab979d7 RD |
4620 | |
4621 | self = self; | |
efc5f224 | 4622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetFirstChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 4623 | return NULL; |
1d99702e RD |
4624 | if (_argo0) { |
4625 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4626 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
d5c9047a | 4627 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstChild. Expected _wxTreeCtrl_p."); |
8ab979d7 RD |
4628 | return NULL; |
4629 | } | |
4630 | } | |
1d99702e RD |
4631 | if (_argo1) { |
4632 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4633 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 4634 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetFirstChild. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
4635 | return NULL; |
4636 | } | |
4637 | } | |
d5c9047a RD |
4638 | { |
4639 | temp = (long) PyInt_AsLong(_obj2); | |
4640 | _arg2 = &temp; | |
4641 | } | |
cf694132 RD |
4642 | { |
4643 | wxPy_BEGIN_ALLOW_THREADS; | |
4644 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstChild(_arg0,*_arg1,*_arg2)); | |
4645 | ||
4646 | wxPy_END_ALLOW_THREADS; | |
4647 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a RD |
4648 | _resultobj = Py_BuildValue("s",_ptemp); |
4649 | { | |
4650 | PyObject *o; | |
4651 | o = PyInt_FromLong((long) (*_arg2)); | |
4652 | _resultobj = t_output_helper(_resultobj, o); | |
4653 | } | |
8ab979d7 RD |
4654 | return _resultobj; |
4655 | } | |
4656 | ||
d5c9047a | 4657 | #define wxTreeCtrl_GetNextChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetNextChild(_swigarg0,_swigarg1)) |
efc5f224 | 4658 | static PyObject *_wrap_wxTreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4659 | PyObject * _resultobj; |
d5c9047a | 4660 | wxTreeItemId * _result; |
8ab979d7 | 4661 | wxTreeCtrl * _arg0; |
d5c9047a RD |
4662 | wxTreeItemId * _arg1; |
4663 | long * _arg2; | |
1d99702e RD |
4664 | PyObject * _argo0 = 0; |
4665 | PyObject * _argo1 = 0; | |
d5c9047a | 4666 | long temp; |
8ab979d7 | 4667 | PyObject * _obj2 = 0; |
efc5f224 | 4668 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 4669 | char _ptemp[128]; |
8ab979d7 RD |
4670 | |
4671 | self = self; | |
efc5f224 | 4672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetNextChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 4673 | return NULL; |
1d99702e RD |
4674 | if (_argo0) { |
4675 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4676 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
d5c9047a | 4677 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextChild. Expected _wxTreeCtrl_p."); |
8ab979d7 RD |
4678 | return NULL; |
4679 | } | |
4680 | } | |
1d99702e RD |
4681 | if (_argo1) { |
4682 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4683 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 4684 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextChild. Expected _wxTreeItemId_p."); |
8ab979d7 | 4685 | return NULL; |
d5c9047a | 4686 | } |
8ab979d7 | 4687 | } |
d5c9047a RD |
4688 | { |
4689 | temp = (long) PyInt_AsLong(_obj2); | |
4690 | _arg2 = &temp; | |
8ab979d7 | 4691 | } |
cf694132 RD |
4692 | { |
4693 | wxPy_BEGIN_ALLOW_THREADS; | |
4694 | _result = new wxTreeItemId (wxTreeCtrl_GetNextChild(_arg0,*_arg1,*_arg2)); | |
4695 | ||
4696 | wxPy_END_ALLOW_THREADS; | |
4697 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 4698 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 | 4699 | { |
d5c9047a RD |
4700 | PyObject *o; |
4701 | o = PyInt_FromLong((long) (*_arg2)); | |
4702 | _resultobj = t_output_helper(_resultobj, o); | |
8ab979d7 RD |
4703 | } |
4704 | return _resultobj; | |
4705 | } | |
4706 | ||
d5c9047a | 4707 | #define wxTreeCtrl_GetNextSibling(_swigobj,_swigarg0) (_swigobj->GetNextSibling(_swigarg0)) |
efc5f224 | 4708 | static PyObject *_wrap_wxTreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4709 | PyObject * _resultobj; |
d5c9047a | 4710 | wxTreeItemId * _result; |
8ab979d7 | 4711 | wxTreeCtrl * _arg0; |
d5c9047a | 4712 | wxTreeItemId * _arg1; |
1d99702e RD |
4713 | PyObject * _argo0 = 0; |
4714 | PyObject * _argo1 = 0; | |
efc5f224 | 4715 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 4716 | char _ptemp[128]; |
8ab979d7 RD |
4717 | |
4718 | self = self; | |
efc5f224 | 4719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4720 | return NULL; |
1d99702e RD |
4721 | if (_argo0) { |
4722 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4723 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
d5c9047a | 4724 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextSibling. Expected _wxTreeCtrl_p."); |
8ab979d7 RD |
4725 | return NULL; |
4726 | } | |
4727 | } | |
1d99702e RD |
4728 | if (_argo1) { |
4729 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4730 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
4731 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextSibling. Expected _wxTreeItemId_p."); |
4732 | return NULL; | |
4733 | } | |
4734 | } | |
cf694132 RD |
4735 | { |
4736 | wxPy_BEGIN_ALLOW_THREADS; | |
4737 | _result = new wxTreeItemId (wxTreeCtrl_GetNextSibling(_arg0,*_arg1)); | |
4738 | ||
4739 | wxPy_END_ALLOW_THREADS; | |
4740 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 4741 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
4742 | return _resultobj; |
4743 | } | |
4744 | ||
d5c9047a | 4745 | #define wxTreeCtrl_GetPrevSibling(_swigobj,_swigarg0) (_swigobj->GetPrevSibling(_swigarg0)) |
efc5f224 | 4746 | static PyObject *_wrap_wxTreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4747 | PyObject * _resultobj; |
d5c9047a | 4748 | wxTreeItemId * _result; |
8ab979d7 | 4749 | wxTreeCtrl * _arg0; |
d5c9047a | 4750 | wxTreeItemId * _arg1; |
1d99702e RD |
4751 | PyObject * _argo0 = 0; |
4752 | PyObject * _argo1 = 0; | |
efc5f224 | 4753 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 4754 | char _ptemp[128]; |
8ab979d7 RD |
4755 | |
4756 | self = self; | |
efc5f224 | 4757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4758 | return NULL; |
1d99702e RD |
4759 | if (_argo0) { |
4760 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4761 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
d5c9047a | 4762 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevSibling. Expected _wxTreeCtrl_p."); |
8ab979d7 RD |
4763 | return NULL; |
4764 | } | |
4765 | } | |
1d99702e RD |
4766 | if (_argo1) { |
4767 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4768 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
4769 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevSibling. Expected _wxTreeItemId_p."); |
4770 | return NULL; | |
4771 | } | |
4772 | } | |
cf694132 RD |
4773 | { |
4774 | wxPy_BEGIN_ALLOW_THREADS; | |
4775 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevSibling(_arg0,*_arg1)); | |
4776 | ||
4777 | wxPy_END_ALLOW_THREADS; | |
4778 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 4779 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
4780 | return _resultobj; |
4781 | } | |
4782 | ||
d5c9047a | 4783 | #define wxTreeCtrl_GetFirstVisibleItem(_swigobj) (_swigobj->GetFirstVisibleItem()) |
efc5f224 | 4784 | static PyObject *_wrap_wxTreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4785 | PyObject * _resultobj; |
d5c9047a | 4786 | wxTreeItemId * _result; |
8ab979d7 | 4787 | wxTreeCtrl * _arg0; |
1d99702e | 4788 | PyObject * _argo0 = 0; |
efc5f224 | 4789 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 4790 | char _ptemp[128]; |
8ab979d7 RD |
4791 | |
4792 | self = self; | |
efc5f224 | 4793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetFirstVisibleItem",_kwnames,&_argo0)) |
8ab979d7 | 4794 | return NULL; |
1d99702e RD |
4795 | if (_argo0) { |
4796 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4797 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
d5c9047a | 4798 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstVisibleItem. Expected _wxTreeCtrl_p."); |
8ab979d7 RD |
4799 | return NULL; |
4800 | } | |
4801 | } | |
cf694132 RD |
4802 | { |
4803 | wxPy_BEGIN_ALLOW_THREADS; | |
4804 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstVisibleItem(_arg0)); | |
4805 | ||
4806 | wxPy_END_ALLOW_THREADS; | |
4807 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 4808 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
4809 | return _resultobj; |
4810 | } | |
4811 | ||
d5c9047a | 4812 | #define wxTreeCtrl_GetNextVisible(_swigobj,_swigarg0) (_swigobj->GetNextVisible(_swigarg0)) |
efc5f224 | 4813 | static PyObject *_wrap_wxTreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4814 | PyObject * _resultobj; |
d5c9047a | 4815 | wxTreeItemId * _result; |
8ab979d7 | 4816 | wxTreeCtrl * _arg0; |
d5c9047a | 4817 | wxTreeItemId * _arg1; |
1d99702e RD |
4818 | PyObject * _argo0 = 0; |
4819 | PyObject * _argo1 = 0; | |
efc5f224 | 4820 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 4821 | char _ptemp[128]; |
8ab979d7 RD |
4822 | |
4823 | self = self; | |
efc5f224 | 4824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4825 | return NULL; |
1d99702e RD |
4826 | if (_argo0) { |
4827 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4828 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
d5c9047a | 4829 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextVisible. Expected _wxTreeCtrl_p."); |
8ab979d7 RD |
4830 | return NULL; |
4831 | } | |
4832 | } | |
1d99702e RD |
4833 | if (_argo1) { |
4834 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4835 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
4836 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextVisible. Expected _wxTreeItemId_p."); |
4837 | return NULL; | |
4838 | } | |
4839 | } | |
cf694132 RD |
4840 | { |
4841 | wxPy_BEGIN_ALLOW_THREADS; | |
4842 | _result = new wxTreeItemId (wxTreeCtrl_GetNextVisible(_arg0,*_arg1)); | |
4843 | ||
4844 | wxPy_END_ALLOW_THREADS; | |
4845 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 4846 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
4847 | return _resultobj; |
4848 | } | |
4849 | ||
d5c9047a | 4850 | #define wxTreeCtrl_GetPrevVisible(_swigobj,_swigarg0) (_swigobj->GetPrevVisible(_swigarg0)) |
efc5f224 | 4851 | static PyObject *_wrap_wxTreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4852 | PyObject * _resultobj; |
d5c9047a | 4853 | wxTreeItemId * _result; |
8ab979d7 | 4854 | wxTreeCtrl * _arg0; |
d5c9047a | 4855 | wxTreeItemId * _arg1; |
1d99702e RD |
4856 | PyObject * _argo0 = 0; |
4857 | PyObject * _argo1 = 0; | |
efc5f224 | 4858 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 4859 | char _ptemp[128]; |
8ab979d7 RD |
4860 | |
4861 | self = self; | |
efc5f224 | 4862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4863 | return NULL; |
1d99702e RD |
4864 | if (_argo0) { |
4865 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4866 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
d5c9047a | 4867 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevVisible. Expected _wxTreeCtrl_p."); |
8ab979d7 RD |
4868 | return NULL; |
4869 | } | |
4870 | } | |
1d99702e RD |
4871 | if (_argo1) { |
4872 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4873 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 4874 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevVisible. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
4875 | return NULL; |
4876 | } | |
4877 | } | |
cf694132 RD |
4878 | { |
4879 | wxPy_BEGIN_ALLOW_THREADS; | |
4880 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevVisible(_arg0,*_arg1)); | |
4881 | ||
4882 | wxPy_END_ALLOW_THREADS; | |
4883 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 4884 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
4885 | return _resultobj; |
4886 | } | |
4887 | ||
d426c97e RD |
4888 | #define wxTreeCtrl_GetLastChild(_swigobj,_swigarg0) (_swigobj->GetLastChild(_swigarg0)) |
4889 | static PyObject *_wrap_wxTreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4890 | PyObject * _resultobj; | |
4891 | wxTreeItemId * _result; | |
4892 | wxTreeCtrl * _arg0; | |
4893 | wxTreeItemId * _arg1; | |
4894 | PyObject * _argo0 = 0; | |
4895 | PyObject * _argo1 = 0; | |
4896 | char *_kwnames[] = { "self","item", NULL }; | |
4897 | char _ptemp[128]; | |
4898 | ||
4899 | self = self; | |
4900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetLastChild",_kwnames,&_argo0,&_argo1)) | |
4901 | return NULL; | |
4902 | if (_argo0) { | |
4903 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4904 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
4905 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetLastChild. Expected _wxTreeCtrl_p."); | |
4906 | return NULL; | |
4907 | } | |
4908 | } | |
4909 | if (_argo1) { | |
4910 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4911 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
4912 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetLastChild. Expected _wxTreeItemId_p."); | |
4913 | return NULL; | |
4914 | } | |
4915 | } | |
4916 | { | |
4917 | wxPy_BEGIN_ALLOW_THREADS; | |
4918 | _result = new wxTreeItemId (wxTreeCtrl_GetLastChild(_arg0,*_arg1)); | |
4919 | ||
4920 | wxPy_END_ALLOW_THREADS; | |
4921 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
4922 | _resultobj = Py_BuildValue("s",_ptemp); | |
4923 | return _resultobj; | |
4924 | } | |
4925 | ||
d5c9047a | 4926 | #define wxTreeCtrl_AddRoot(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->AddRoot(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
efc5f224 | 4927 | static PyObject *_wrap_wxTreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4928 | PyObject * _resultobj; |
d5c9047a | 4929 | wxTreeItemId * _result; |
8ab979d7 | 4930 | wxTreeCtrl * _arg0; |
d5c9047a | 4931 | wxString * _arg1; |
1d99702e RD |
4932 | int _arg2 = (int ) -1; |
4933 | int _arg3 = (int ) -1; | |
4934 | wxPyTreeItemData * _arg4 = (wxPyTreeItemData *) NULL; | |
4935 | PyObject * _argo0 = 0; | |
d5c9047a | 4936 | PyObject * _obj1 = 0; |
1d99702e | 4937 | PyObject * _argo4 = 0; |
efc5f224 | 4938 | char *_kwnames[] = { "self","text","image","selectedImage","data", NULL }; |
d5c9047a | 4939 | char _ptemp[128]; |
8ab979d7 RD |
4940 | |
4941 | self = self; | |
efc5f224 | 4942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iiO:wxTreeCtrl_AddRoot",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_argo4)) |
8ab979d7 | 4943 | return NULL; |
1d99702e RD |
4944 | if (_argo0) { |
4945 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4946 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
d5c9047a | 4947 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AddRoot. Expected _wxTreeCtrl_p."); |
8ab979d7 RD |
4948 | return NULL; |
4949 | } | |
4950 | } | |
d5c9047a RD |
4951 | { |
4952 | if (!PyString_Check(_obj1)) { | |
4953 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4954 | return NULL; | |
4955 | } | |
cf694132 | 4956 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
d5c9047a | 4957 | } |
1d99702e RD |
4958 | if (_argo4) { |
4959 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
4960 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxPyTreeItemData_p")) { | |
cf694132 | 4961 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxTreeCtrl_AddRoot. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
4962 | return NULL; |
4963 | } | |
4964 | } | |
cf694132 RD |
4965 | { |
4966 | wxPy_BEGIN_ALLOW_THREADS; | |
4967 | _result = new wxTreeItemId (wxTreeCtrl_AddRoot(_arg0,*_arg1,_arg2,_arg3,_arg4)); | |
4968 | ||
4969 | wxPy_END_ALLOW_THREADS; | |
4970 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a RD |
4971 | _resultobj = Py_BuildValue("s",_ptemp); |
4972 | { | |
4973 | if (_obj1) | |
4974 | delete _arg1; | |
4975 | } | |
8ab979d7 RD |
4976 | return _resultobj; |
4977 | } | |
4978 | ||
d5c9047a | 4979 | #define wxTreeCtrl_PrependItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->PrependItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 4980 | static PyObject *_wrap_wxTreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4981 | PyObject * _resultobj; |
d5c9047a | 4982 | wxTreeItemId * _result; |
8ab979d7 | 4983 | wxTreeCtrl * _arg0; |
d5c9047a RD |
4984 | wxTreeItemId * _arg1; |
4985 | wxString * _arg2; | |
1d99702e RD |
4986 | int _arg3 = (int ) -1; |
4987 | int _arg4 = (int ) -1; | |
4988 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
4989 | PyObject * _argo0 = 0; | |
4990 | PyObject * _argo1 = 0; | |
d5c9047a | 4991 | PyObject * _obj2 = 0; |
1d99702e | 4992 | PyObject * _argo5 = 0; |
efc5f224 | 4993 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 4994 | char _ptemp[128]; |
8ab979d7 RD |
4995 | |
4996 | self = self; | |
efc5f224 | 4997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_PrependItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 4998 | return NULL; |
1d99702e RD |
4999 | if (_argo0) { |
5000 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5001 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
d5c9047a | 5002 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_PrependItem. Expected _wxTreeCtrl_p."); |
8ab979d7 RD |
5003 | return NULL; |
5004 | } | |
5005 | } | |
1d99702e RD |
5006 | if (_argo1) { |
5007 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5008 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5009 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_PrependItem. Expected _wxTreeItemId_p."); |
5010 | return NULL; | |
5011 | } | |
5012 | } | |
5013 | { | |
5014 | if (!PyString_Check(_obj2)) { | |
5015 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5016 | return NULL; | |
5017 | } | |
cf694132 | 5018 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); |
d5c9047a | 5019 | } |
1d99702e RD |
5020 | if (_argo5) { |
5021 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
5022 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 5023 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_PrependItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
5024 | return NULL; |
5025 | } | |
5026 | } | |
cf694132 RD |
5027 | { |
5028 | wxPy_BEGIN_ALLOW_THREADS; | |
5029 | _result = new wxTreeItemId (wxTreeCtrl_PrependItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); | |
5030 | ||
5031 | wxPy_END_ALLOW_THREADS; | |
5032 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a RD |
5033 | _resultobj = Py_BuildValue("s",_ptemp); |
5034 | { | |
5035 | if (_obj2) | |
5036 | delete _arg2; | |
5037 | } | |
8ab979d7 RD |
5038 | return _resultobj; |
5039 | } | |
5040 | ||
d5c9047a | 5041 | #define wxTreeCtrl_InsertItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 5042 | static PyObject *_wrap_wxTreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5043 | PyObject * _resultobj; |
d5c9047a | 5044 | wxTreeItemId * _result; |
8ab979d7 | 5045 | wxTreeCtrl * _arg0; |
d5c9047a RD |
5046 | wxTreeItemId * _arg1; |
5047 | wxTreeItemId * _arg2; | |
5048 | wxString * _arg3; | |
1d99702e RD |
5049 | int _arg4 = (int ) -1; |
5050 | int _arg5 = (int ) -1; | |
5051 | wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL; | |
5052 | PyObject * _argo0 = 0; | |
5053 | PyObject * _argo1 = 0; | |
5054 | PyObject * _argo2 = 0; | |
d5c9047a | 5055 | PyObject * _obj3 = 0; |
1d99702e | 5056 | PyObject * _argo6 = 0; |
efc5f224 | 5057 | char *_kwnames[] = { "self","parent","idPrevious","text","image","selectedImage","data", NULL }; |
d5c9047a | 5058 | char _ptemp[128]; |
8ab979d7 RD |
5059 | |
5060 | self = self; | |
efc5f224 | 5061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|iiO:wxTreeCtrl_InsertItem",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3,&_arg4,&_arg5,&_argo6)) |
8ab979d7 | 5062 | return NULL; |
1d99702e RD |
5063 | if (_argo0) { |
5064 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5065 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
d5c9047a | 5066 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItem. Expected _wxTreeCtrl_p."); |
8ab979d7 RD |
5067 | return NULL; |
5068 | } | |
5069 | } | |
1d99702e RD |
5070 | if (_argo1) { |
5071 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5072 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5073 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
5074 | return NULL; | |
5075 | } | |
5076 | } | |
1d99702e RD |
5077 | if (_argo2) { |
5078 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
5079 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5080 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
5081 | return NULL; | |
5082 | } | |
5083 | } | |
5084 | { | |
5085 | if (!PyString_Check(_obj3)) { | |
5086 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5087 | return NULL; | |
5088 | } | |
cf694132 | 5089 | _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3)); |
d5c9047a | 5090 | } |
1d99702e RD |
5091 | if (_argo6) { |
5092 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
5093 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) { | |
cf694132 | 5094 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
5095 | return NULL; |
5096 | } | |
5097 | } | |
cf694132 RD |
5098 | { |
5099 | wxPy_BEGIN_ALLOW_THREADS; | |
5100 | _result = new wxTreeItemId (wxTreeCtrl_InsertItem(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6)); | |
5101 | ||
5102 | wxPy_END_ALLOW_THREADS; | |
5103 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a RD |
5104 | _resultobj = Py_BuildValue("s",_ptemp); |
5105 | { | |
5106 | if (_obj3) | |
5107 | delete _arg3; | |
5108 | } | |
8ab979d7 RD |
5109 | return _resultobj; |
5110 | } | |
5111 | ||
d5c9047a | 5112 | #define wxTreeCtrl_AppendItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->AppendItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 5113 | static PyObject *_wrap_wxTreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5114 | PyObject * _resultobj; |
d5c9047a | 5115 | wxTreeItemId * _result; |
8ab979d7 | 5116 | wxTreeCtrl * _arg0; |
d5c9047a | 5117 | wxTreeItemId * _arg1; |
8ab979d7 | 5118 | wxString * _arg2; |
1d99702e RD |
5119 | int _arg3 = (int ) -1; |
5120 | int _arg4 = (int ) -1; | |
5121 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
5122 | PyObject * _argo0 = 0; | |
5123 | PyObject * _argo1 = 0; | |
8ab979d7 | 5124 | PyObject * _obj2 = 0; |
1d99702e | 5125 | PyObject * _argo5 = 0; |
efc5f224 | 5126 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 5127 | char _ptemp[128]; |
8ab979d7 RD |
5128 | |
5129 | self = self; | |
efc5f224 | 5130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_AppendItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 5131 | return NULL; |
1d99702e RD |
5132 | if (_argo0) { |
5133 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5134 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
d5c9047a RD |
5135 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AppendItem. Expected _wxTreeCtrl_p."); |
5136 | return NULL; | |
5137 | } | |
5138 | } | |
1d99702e RD |
5139 | if (_argo1) { |
5140 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5141 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 5142 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AppendItem. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
5143 | return NULL; |
5144 | } | |
5145 | } | |
5146 | { | |
5147 | if (!PyString_Check(_obj2)) { | |
5148 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5149 | return NULL; | |
5150 | } | |
cf694132 | 5151 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); |
8ab979d7 | 5152 | } |
1d99702e RD |
5153 | if (_argo5) { |
5154 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
5155 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 5156 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_AppendItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
5157 | return NULL; |
5158 | } | |
5159 | } | |
cf694132 RD |
5160 | { |
5161 | wxPy_BEGIN_ALLOW_THREADS; | |
5162 | _result = new wxTreeItemId (wxTreeCtrl_AppendItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); | |
5163 | ||
5164 | wxPy_END_ALLOW_THREADS; | |
5165 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 5166 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
5167 | { |
5168 | if (_obj2) | |
5169 | delete _arg2; | |
5170 | } | |
5171 | return _resultobj; | |
5172 | } | |
5173 | ||
d5c9047a | 5174 | #define wxTreeCtrl_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
efc5f224 | 5175 | static PyObject *_wrap_wxTreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5176 | PyObject * _resultobj; |
8ab979d7 | 5177 | wxTreeCtrl * _arg0; |
d5c9047a | 5178 | wxTreeItemId * _arg1; |
1d99702e RD |
5179 | PyObject * _argo0 = 0; |
5180 | PyObject * _argo1 = 0; | |
efc5f224 | 5181 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
5182 | |
5183 | self = self; | |
efc5f224 | 5184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Delete",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 5185 | return NULL; |
1d99702e RD |
5186 | if (_argo0) { |
5187 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5188 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
d5c9047a | 5189 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Delete. Expected _wxTreeCtrl_p."); |
8ab979d7 RD |
5190 | return NULL; |
5191 | } | |
5192 | } | |
1d99702e RD |
5193 | if (_argo1) { |
5194 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5195 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5196 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Delete. Expected _wxTreeItemId_p."); |
5197 | return NULL; | |
5198 | } | |
5199 | } | |
cf694132 RD |
5200 | { |
5201 | wxPy_BEGIN_ALLOW_THREADS; | |
5202 | wxTreeCtrl_Delete(_arg0,*_arg1); | |
5203 | ||
5204 | wxPy_END_ALLOW_THREADS; | |
5205 | } Py_INCREF(Py_None); | |
d5c9047a RD |
5206 | _resultobj = Py_None; |
5207 | return _resultobj; | |
5208 | } | |
5209 | ||
08127323 | 5210 | #define wxTreeCtrl_DeleteChildren(_swigobj,_swigarg0) (_swigobj->DeleteChildren(_swigarg0)) |
efc5f224 | 5211 | static PyObject *_wrap_wxTreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 RD |
5212 | PyObject * _resultobj; |
5213 | wxTreeCtrl * _arg0; | |
5214 | wxTreeItemId * _arg1; | |
1d99702e RD |
5215 | PyObject * _argo0 = 0; |
5216 | PyObject * _argo1 = 0; | |
efc5f224 | 5217 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
5218 | |
5219 | self = self; | |
efc5f224 | 5220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_DeleteChildren",_kwnames,&_argo0,&_argo1)) |
08127323 | 5221 | return NULL; |
1d99702e RD |
5222 | if (_argo0) { |
5223 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5224 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
08127323 RD |
5225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteChildren. Expected _wxTreeCtrl_p."); |
5226 | return NULL; | |
5227 | } | |
5228 | } | |
1d99702e RD |
5229 | if (_argo1) { |
5230 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5231 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
08127323 RD |
5232 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_DeleteChildren. Expected _wxTreeItemId_p."); |
5233 | return NULL; | |
5234 | } | |
5235 | } | |
cf694132 RD |
5236 | { |
5237 | wxPy_BEGIN_ALLOW_THREADS; | |
5238 | wxTreeCtrl_DeleteChildren(_arg0,*_arg1); | |
5239 | ||
5240 | wxPy_END_ALLOW_THREADS; | |
5241 | } Py_INCREF(Py_None); | |
08127323 RD |
5242 | _resultobj = Py_None; |
5243 | return _resultobj; | |
5244 | } | |
5245 | ||
d5c9047a | 5246 | #define wxTreeCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) |
efc5f224 | 5247 | static PyObject *_wrap_wxTreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a RD |
5248 | PyObject * _resultobj; |
5249 | wxTreeCtrl * _arg0; | |
1d99702e | 5250 | PyObject * _argo0 = 0; |
efc5f224 | 5251 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
5252 | |
5253 | self = self; | |
efc5f224 | 5254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_DeleteAllItems",_kwnames,&_argo0)) |
d5c9047a | 5255 | return NULL; |
1d99702e RD |
5256 | if (_argo0) { |
5257 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5258 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
d5c9047a RD |
5259 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteAllItems. Expected _wxTreeCtrl_p."); |
5260 | return NULL; | |
5261 | } | |
5262 | } | |
cf694132 RD |
5263 | { |
5264 | wxPy_BEGIN_ALLOW_THREADS; | |
5265 | wxTreeCtrl_DeleteAllItems(_arg0); | |
5266 | ||
5267 | wxPy_END_ALLOW_THREADS; | |
5268 | } Py_INCREF(Py_None); | |
d5c9047a RD |
5269 | _resultobj = Py_None; |
5270 | return _resultobj; | |
5271 | } | |
5272 | ||
5273 | #define wxTreeCtrl_Expand(_swigobj,_swigarg0) (_swigobj->Expand(_swigarg0)) | |
efc5f224 | 5274 | static PyObject *_wrap_wxTreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a RD |
5275 | PyObject * _resultobj; |
5276 | wxTreeCtrl * _arg0; | |
5277 | wxTreeItemId * _arg1; | |
1d99702e RD |
5278 | PyObject * _argo0 = 0; |
5279 | PyObject * _argo1 = 0; | |
efc5f224 | 5280 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
5281 | |
5282 | self = self; | |
efc5f224 | 5283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Expand",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 5284 | return NULL; |
1d99702e RD |
5285 | if (_argo0) { |
5286 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5287 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
d5c9047a RD |
5288 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Expand. Expected _wxTreeCtrl_p."); |
5289 | return NULL; | |
5290 | } | |
5291 | } | |
1d99702e RD |
5292 | if (_argo1) { |
5293 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5294 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5295 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Expand. Expected _wxTreeItemId_p."); |
5296 | return NULL; | |
5297 | } | |
5298 | } | |
cf694132 RD |
5299 | { |
5300 | wxPy_BEGIN_ALLOW_THREADS; | |
5301 | wxTreeCtrl_Expand(_arg0,*_arg1); | |
5302 | ||
5303 | wxPy_END_ALLOW_THREADS; | |
5304 | } Py_INCREF(Py_None); | |
d5c9047a RD |
5305 | _resultobj = Py_None; |
5306 | return _resultobj; | |
5307 | } | |
5308 | ||
5309 | #define wxTreeCtrl_Collapse(_swigobj,_swigarg0) (_swigobj->Collapse(_swigarg0)) | |
efc5f224 | 5310 | static PyObject *_wrap_wxTreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a RD |
5311 | PyObject * _resultobj; |
5312 | wxTreeCtrl * _arg0; | |
5313 | wxTreeItemId * _arg1; | |
1d99702e RD |
5314 | PyObject * _argo0 = 0; |
5315 | PyObject * _argo1 = 0; | |
efc5f224 | 5316 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
5317 | |
5318 | self = self; | |
efc5f224 | 5319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Collapse",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 5320 | return NULL; |
1d99702e RD |
5321 | if (_argo0) { |
5322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
d5c9047a RD |
5324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Collapse. Expected _wxTreeCtrl_p."); |
5325 | return NULL; | |
5326 | } | |
5327 | } | |
1d99702e RD |
5328 | if (_argo1) { |
5329 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5330 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Collapse. Expected _wxTreeItemId_p."); |
5332 | return NULL; | |
5333 | } | |
5334 | } | |
cf694132 RD |
5335 | { |
5336 | wxPy_BEGIN_ALLOW_THREADS; | |
5337 | wxTreeCtrl_Collapse(_arg0,*_arg1); | |
5338 | ||
5339 | wxPy_END_ALLOW_THREADS; | |
5340 | } Py_INCREF(Py_None); | |
d5c9047a RD |
5341 | _resultobj = Py_None; |
5342 | return _resultobj; | |
5343 | } | |
5344 | ||
5345 | #define wxTreeCtrl_CollapseAndReset(_swigobj,_swigarg0) (_swigobj->CollapseAndReset(_swigarg0)) | |
efc5f224 | 5346 | static PyObject *_wrap_wxTreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a RD |
5347 | PyObject * _resultobj; |
5348 | wxTreeCtrl * _arg0; | |
5349 | wxTreeItemId * _arg1; | |
1d99702e RD |
5350 | PyObject * _argo0 = 0; |
5351 | PyObject * _argo1 = 0; | |
efc5f224 | 5352 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
5353 | |
5354 | self = self; | |
efc5f224 | 5355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_CollapseAndReset",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 5356 | return NULL; |
1d99702e RD |
5357 | if (_argo0) { |
5358 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5359 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
d5c9047a RD |
5360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_CollapseAndReset. Expected _wxTreeCtrl_p."); |
5361 | return NULL; | |
5362 | } | |
5363 | } | |
1d99702e RD |
5364 | if (_argo1) { |
5365 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5366 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5367 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_CollapseAndReset. Expected _wxTreeItemId_p."); |
5368 | return NULL; | |
5369 | } | |
5370 | } | |
cf694132 RD |
5371 | { |
5372 | wxPy_BEGIN_ALLOW_THREADS; | |
5373 | wxTreeCtrl_CollapseAndReset(_arg0,*_arg1); | |
5374 | ||
5375 | wxPy_END_ALLOW_THREADS; | |
5376 | } Py_INCREF(Py_None); | |
d5c9047a RD |
5377 | _resultobj = Py_None; |
5378 | return _resultobj; | |
5379 | } | |
5380 | ||
5381 | #define wxTreeCtrl_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0)) | |
efc5f224 | 5382 | static PyObject *_wrap_wxTreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a RD |
5383 | PyObject * _resultobj; |
5384 | wxTreeCtrl * _arg0; | |
5385 | wxTreeItemId * _arg1; | |
1d99702e RD |
5386 | PyObject * _argo0 = 0; |
5387 | PyObject * _argo1 = 0; | |
efc5f224 | 5388 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
5389 | |
5390 | self = self; | |
efc5f224 | 5391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Toggle",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 5392 | return NULL; |
1d99702e RD |
5393 | if (_argo0) { |
5394 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5395 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
d5c9047a RD |
5396 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Toggle. Expected _wxTreeCtrl_p."); |
5397 | return NULL; | |
5398 | } | |
5399 | } | |
1d99702e RD |
5400 | if (_argo1) { |
5401 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5402 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Toggle. Expected _wxTreeItemId_p."); |
5404 | return NULL; | |
5405 | } | |
5406 | } | |
cf694132 RD |
5407 | { |
5408 | wxPy_BEGIN_ALLOW_THREADS; | |
5409 | wxTreeCtrl_Toggle(_arg0,*_arg1); | |
5410 | ||
5411 | wxPy_END_ALLOW_THREADS; | |
5412 | } Py_INCREF(Py_None); | |
d5c9047a RD |
5413 | _resultobj = Py_None; |
5414 | return _resultobj; | |
5415 | } | |
5416 | ||
5417 | #define wxTreeCtrl_Unselect(_swigobj) (_swigobj->Unselect()) | |
efc5f224 | 5418 | static PyObject *_wrap_wxTreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a RD |
5419 | PyObject * _resultobj; |
5420 | wxTreeCtrl * _arg0; | |
1d99702e | 5421 | PyObject * _argo0 = 0; |
efc5f224 | 5422 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
5423 | |
5424 | self = self; | |
efc5f224 | 5425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_Unselect",_kwnames,&_argo0)) |
d5c9047a | 5426 | return NULL; |
1d99702e RD |
5427 | if (_argo0) { |
5428 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5429 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
d5c9047a RD |
5430 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Unselect. Expected _wxTreeCtrl_p."); |
5431 | return NULL; | |
5432 | } | |
5433 | } | |
cf694132 RD |
5434 | { |
5435 | wxPy_BEGIN_ALLOW_THREADS; | |
5436 | wxTreeCtrl_Unselect(_arg0); | |
5437 | ||
5438 | wxPy_END_ALLOW_THREADS; | |
5439 | } Py_INCREF(Py_None); | |
d5c9047a RD |
5440 | _resultobj = Py_None; |
5441 | return _resultobj; | |
5442 | } | |
5443 | ||
8bf5d46e | 5444 | #define wxTreeCtrl_UnselectAll(_swigobj) (_swigobj->UnselectAll()) |
efc5f224 | 5445 | static PyObject *_wrap_wxTreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
5446 | PyObject * _resultobj; |
5447 | wxTreeCtrl * _arg0; | |
1d99702e | 5448 | PyObject * _argo0 = 0; |
efc5f224 | 5449 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
5450 | |
5451 | self = self; | |
efc5f224 | 5452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_UnselectAll",_kwnames,&_argo0)) |
8bf5d46e | 5453 | return NULL; |
1d99702e RD |
5454 | if (_argo0) { |
5455 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5456 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
8bf5d46e RD |
5457 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_UnselectAll. Expected _wxTreeCtrl_p."); |
5458 | return NULL; | |
5459 | } | |
5460 | } | |
5461 | { | |
5462 | wxPy_BEGIN_ALLOW_THREADS; | |
5463 | wxTreeCtrl_UnselectAll(_arg0); | |
5464 | ||
5465 | wxPy_END_ALLOW_THREADS; | |
5466 | } Py_INCREF(Py_None); | |
5467 | _resultobj = Py_None; | |
5468 | return _resultobj; | |
5469 | } | |
5470 | ||
d5c9047a | 5471 | #define wxTreeCtrl_SelectItem(_swigobj,_swigarg0) (_swigobj->SelectItem(_swigarg0)) |
efc5f224 | 5472 | static PyObject *_wrap_wxTreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a RD |
5473 | PyObject * _resultobj; |
5474 | wxTreeCtrl * _arg0; | |
5475 | wxTreeItemId * _arg1; | |
1d99702e RD |
5476 | PyObject * _argo0 = 0; |
5477 | PyObject * _argo1 = 0; | |
efc5f224 | 5478 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
5479 | |
5480 | self = self; | |
efc5f224 | 5481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SelectItem",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 5482 | return NULL; |
1d99702e RD |
5483 | if (_argo0) { |
5484 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5485 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
d5c9047a RD |
5486 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SelectItem. Expected _wxTreeCtrl_p."); |
5487 | return NULL; | |
5488 | } | |
5489 | } | |
1d99702e RD |
5490 | if (_argo1) { |
5491 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5492 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5493 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SelectItem. Expected _wxTreeItemId_p."); |
5494 | return NULL; | |
5495 | } | |
5496 | } | |
cf694132 RD |
5497 | { |
5498 | wxPy_BEGIN_ALLOW_THREADS; | |
5499 | wxTreeCtrl_SelectItem(_arg0,*_arg1); | |
5500 | ||
5501 | wxPy_END_ALLOW_THREADS; | |
5502 | } Py_INCREF(Py_None); | |
d5c9047a RD |
5503 | _resultobj = Py_None; |
5504 | return _resultobj; | |
5505 | } | |
5506 | ||
5507 | #define wxTreeCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) | |
efc5f224 | 5508 | static PyObject *_wrap_wxTreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a RD |
5509 | PyObject * _resultobj; |
5510 | wxTreeCtrl * _arg0; | |
5511 | wxTreeItemId * _arg1; | |
1d99702e RD |
5512 | PyObject * _argo0 = 0; |
5513 | PyObject * _argo1 = 0; | |
efc5f224 | 5514 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
5515 | |
5516 | self = self; | |
efc5f224 | 5517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EnsureVisible",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 5518 | return NULL; |
1d99702e RD |
5519 | if (_argo0) { |
5520 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5521 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
d5c9047a RD |
5522 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EnsureVisible. Expected _wxTreeCtrl_p."); |
5523 | return NULL; | |
5524 | } | |
5525 | } | |
1d99702e RD |
5526 | if (_argo1) { |
5527 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5528 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5529 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EnsureVisible. Expected _wxTreeItemId_p."); |
5530 | return NULL; | |
5531 | } | |
5532 | } | |
cf694132 RD |
5533 | { |
5534 | wxPy_BEGIN_ALLOW_THREADS; | |
5535 | wxTreeCtrl_EnsureVisible(_arg0,*_arg1); | |
5536 | ||
5537 | wxPy_END_ALLOW_THREADS; | |
5538 | } Py_INCREF(Py_None); | |
d5c9047a RD |
5539 | _resultobj = Py_None; |
5540 | return _resultobj; | |
5541 | } | |
5542 | ||
5543 | #define wxTreeCtrl_ScrollTo(_swigobj,_swigarg0) (_swigobj->ScrollTo(_swigarg0)) | |
efc5f224 | 5544 | static PyObject *_wrap_wxTreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a RD |
5545 | PyObject * _resultobj; |
5546 | wxTreeCtrl * _arg0; | |
5547 | wxTreeItemId * _arg1; | |
1d99702e RD |
5548 | PyObject * _argo0 = 0; |
5549 | PyObject * _argo1 = 0; | |
efc5f224 | 5550 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
5551 | |
5552 | self = self; | |
efc5f224 | 5553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ScrollTo",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 5554 | return NULL; |
1d99702e RD |
5555 | if (_argo0) { |
5556 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5557 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
d5c9047a RD |
5558 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ScrollTo. Expected _wxTreeCtrl_p."); |
5559 | return NULL; | |
5560 | } | |
5561 | } | |
1d99702e RD |
5562 | if (_argo1) { |
5563 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5564 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5565 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ScrollTo. Expected _wxTreeItemId_p."); |
5566 | return NULL; | |
5567 | } | |
5568 | } | |
cf694132 RD |
5569 | { |
5570 | wxPy_BEGIN_ALLOW_THREADS; | |
5571 | wxTreeCtrl_ScrollTo(_arg0,*_arg1); | |
5572 | ||
5573 | wxPy_END_ALLOW_THREADS; | |
5574 | } Py_INCREF(Py_None); | |
d5c9047a RD |
5575 | _resultobj = Py_None; |
5576 | return _resultobj; | |
5577 | } | |
5578 | ||
5579 | #define wxTreeCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0)) | |
efc5f224 | 5580 | static PyObject *_wrap_wxTreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a RD |
5581 | PyObject * _resultobj; |
5582 | wxTextCtrl * _result; | |
5583 | wxTreeCtrl * _arg0; | |
5584 | wxTreeItemId * _arg1; | |
1d99702e RD |
5585 | PyObject * _argo0 = 0; |
5586 | PyObject * _argo1 = 0; | |
efc5f224 | 5587 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
5588 | char _ptemp[128]; |
5589 | ||
5590 | self = self; | |
efc5f224 | 5591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EditLabel",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 5592 | return NULL; |
1d99702e RD |
5593 | if (_argo0) { |
5594 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5595 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
d5c9047a RD |
5596 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EditLabel. Expected _wxTreeCtrl_p."); |
5597 | return NULL; | |
5598 | } | |
5599 | } | |
1d99702e RD |
5600 | if (_argo1) { |
5601 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5602 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EditLabel. Expected _wxTreeItemId_p."); |
5604 | return NULL; | |
5605 | } | |
5606 | } | |
cf694132 RD |
5607 | { |
5608 | wxPy_BEGIN_ALLOW_THREADS; | |
5609 | _result = (wxTextCtrl *)wxTreeCtrl_EditLabel(_arg0,*_arg1); | |
5610 | ||
5611 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
5612 | } if (_result) { |
5613 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p"); | |
5614 | _resultobj = Py_BuildValue("s",_ptemp); | |
5615 | } else { | |
5616 | Py_INCREF(Py_None); | |
5617 | _resultobj = Py_None; | |
5618 | } | |
d5c9047a RD |
5619 | return _resultobj; |
5620 | } | |
5621 | ||
5622 | #define wxTreeCtrl_GetEditControl(_swigobj) (_swigobj->GetEditControl()) | |
efc5f224 | 5623 | static PyObject *_wrap_wxTreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a RD |
5624 | PyObject * _resultobj; |
5625 | wxTextCtrl * _result; | |
5626 | wxTreeCtrl * _arg0; | |
1d99702e | 5627 | PyObject * _argo0 = 0; |
efc5f224 | 5628 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
5629 | char _ptemp[128]; |
5630 | ||
5631 | self = self; | |
efc5f224 | 5632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetEditControl",_kwnames,&_argo0)) |
d5c9047a | 5633 | return NULL; |
1d99702e RD |
5634 | if (_argo0) { |
5635 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5636 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
d5c9047a RD |
5637 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetEditControl. Expected _wxTreeCtrl_p."); |
5638 | return NULL; | |
5639 | } | |
5640 | } | |
cf694132 RD |
5641 | { |
5642 | wxPy_BEGIN_ALLOW_THREADS; | |
5643 | _result = (wxTextCtrl *)wxTreeCtrl_GetEditControl(_arg0); | |
5644 | ||
5645 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
5646 | } if (_result) { |
5647 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p"); | |
5648 | _resultobj = Py_BuildValue("s",_ptemp); | |
5649 | } else { | |
5650 | Py_INCREF(Py_None); | |
5651 | _resultobj = Py_None; | |
5652 | } | |
d5c9047a RD |
5653 | return _resultobj; |
5654 | } | |
5655 | ||
5656 | #define wxTreeCtrl_EndEditLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->EndEditLabel(_swigarg0,_swigarg1)) | |
efc5f224 | 5657 | static PyObject *_wrap_wxTreeCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a RD |
5658 | PyObject * _resultobj; |
5659 | wxTreeCtrl * _arg0; | |
5660 | wxTreeItemId * _arg1; | |
b1462dfa | 5661 | int _arg2 = (int ) FALSE; |
1d99702e RD |
5662 | PyObject * _argo0 = 0; |
5663 | PyObject * _argo1 = 0; | |
efc5f224 | 5664 | char *_kwnames[] = { "self","item","discardChanges", NULL }; |
d5c9047a RD |
5665 | |
5666 | self = self; | |
b1462dfa | 5667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_EndEditLabel",_kwnames,&_argo0,&_argo1,&_arg2)) |
d5c9047a | 5668 | return NULL; |
1d99702e RD |
5669 | if (_argo0) { |
5670 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5671 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
d5c9047a RD |
5672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EndEditLabel. Expected _wxTreeCtrl_p."); |
5673 | return NULL; | |
5674 | } | |
5675 | } | |
1d99702e RD |
5676 | if (_argo1) { |
5677 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5678 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5679 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EndEditLabel. Expected _wxTreeItemId_p."); |
5680 | return NULL; | |
5681 | } | |
5682 | } | |
cf694132 RD |
5683 | { |
5684 | wxPy_BEGIN_ALLOW_THREADS; | |
5685 | wxTreeCtrl_EndEditLabel(_arg0,*_arg1,_arg2); | |
5686 | ||
5687 | wxPy_END_ALLOW_THREADS; | |
5688 | } Py_INCREF(Py_None); | |
d5c9047a | 5689 | _resultobj = Py_None; |
8ab979d7 RD |
5690 | return _resultobj; |
5691 | } | |
5692 | ||
d426c97e RD |
5693 | #define wxTreeCtrl_SortChildren(_swigobj,_swigarg0) (_swigobj->SortChildren(_swigarg0)) |
5694 | static PyObject *_wrap_wxTreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5695 | PyObject * _resultobj; | |
5696 | wxTreeCtrl * _arg0; | |
5697 | wxTreeItemId * _arg1; | |
5698 | PyObject * _argo0 = 0; | |
5699 | PyObject * _argo1 = 0; | |
5700 | char *_kwnames[] = { "self","item", NULL }; | |
5701 | ||
5702 | self = self; | |
5703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SortChildren",_kwnames,&_argo0,&_argo1)) | |
5704 | return NULL; | |
5705 | if (_argo0) { | |
5706 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5707 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
5708 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SortChildren. Expected _wxTreeCtrl_p."); | |
5709 | return NULL; | |
5710 | } | |
5711 | } | |
5712 | if (_argo1) { | |
5713 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5714 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
5715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SortChildren. Expected _wxTreeItemId_p."); | |
5716 | return NULL; | |
5717 | } | |
5718 | } | |
5719 | { | |
5720 | wxPy_BEGIN_ALLOW_THREADS; | |
5721 | wxTreeCtrl_SortChildren(_arg0,*_arg1); | |
5722 | ||
5723 | wxPy_END_ALLOW_THREADS; | |
5724 | } Py_INCREF(Py_None); | |
5725 | _resultobj = Py_None; | |
5726 | return _resultobj; | |
5727 | } | |
5728 | ||
b8b8dda7 | 5729 | #define wxTreeCtrl_SetItemBold(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBold(_swigarg0,_swigarg1)) |
efc5f224 | 5730 | static PyObject *_wrap_wxTreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
5731 | PyObject * _resultobj; |
5732 | wxTreeCtrl * _arg0; | |
5733 | wxTreeItemId * _arg1; | |
b1462dfa | 5734 | int _arg2 = (int ) TRUE; |
1d99702e RD |
5735 | PyObject * _argo0 = 0; |
5736 | PyObject * _argo1 = 0; | |
efc5f224 | 5737 | char *_kwnames[] = { "self","item","bold", NULL }; |
b8b8dda7 RD |
5738 | |
5739 | self = self; | |
b1462dfa | 5740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemBold",_kwnames,&_argo0,&_argo1,&_arg2)) |
b8b8dda7 | 5741 | return NULL; |
1d99702e RD |
5742 | if (_argo0) { |
5743 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5744 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
b8b8dda7 RD |
5745 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBold. Expected _wxTreeCtrl_p."); |
5746 | return NULL; | |
5747 | } | |
5748 | } | |
1d99702e RD |
5749 | if (_argo1) { |
5750 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5751 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
b8b8dda7 RD |
5752 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBold. Expected _wxTreeItemId_p."); |
5753 | return NULL; | |
5754 | } | |
5755 | } | |
cf694132 RD |
5756 | { |
5757 | wxPy_BEGIN_ALLOW_THREADS; | |
5758 | wxTreeCtrl_SetItemBold(_arg0,*_arg1,_arg2); | |
5759 | ||
5760 | wxPy_END_ALLOW_THREADS; | |
5761 | } Py_INCREF(Py_None); | |
b8b8dda7 RD |
5762 | _resultobj = Py_None; |
5763 | return _resultobj; | |
5764 | } | |
5765 | ||
5766 | #define wxTreeCtrl_IsBold(_swigobj,_swigarg0) (_swigobj->IsBold(_swigarg0)) | |
efc5f224 | 5767 | static PyObject *_wrap_wxTreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
5768 | PyObject * _resultobj; |
5769 | bool _result; | |
5770 | wxTreeCtrl * _arg0; | |
5771 | wxTreeItemId * _arg1; | |
1d99702e RD |
5772 | PyObject * _argo0 = 0; |
5773 | PyObject * _argo1 = 0; | |
efc5f224 | 5774 | char *_kwnames[] = { "self","item", NULL }; |
b8b8dda7 RD |
5775 | |
5776 | self = self; | |
efc5f224 | 5777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsBold",_kwnames,&_argo0,&_argo1)) |
b8b8dda7 | 5778 | return NULL; |
1d99702e RD |
5779 | if (_argo0) { |
5780 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5781 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
b8b8dda7 RD |
5782 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsBold. Expected _wxTreeCtrl_p."); |
5783 | return NULL; | |
5784 | } | |
5785 | } | |
1d99702e RD |
5786 | if (_argo1) { |
5787 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5788 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
b8b8dda7 RD |
5789 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsBold. Expected _wxTreeItemId_p."); |
5790 | return NULL; | |
5791 | } | |
5792 | } | |
cf694132 RD |
5793 | { |
5794 | wxPy_BEGIN_ALLOW_THREADS; | |
5795 | _result = (bool )wxTreeCtrl_IsBold(_arg0,*_arg1); | |
5796 | ||
5797 | wxPy_END_ALLOW_THREADS; | |
5798 | } _resultobj = Py_BuildValue("i",_result); | |
b8b8dda7 RD |
5799 | return _resultobj; |
5800 | } | |
5801 | ||
164b735b | 5802 | #define wxTreeCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) |
efc5f224 | 5803 | static PyObject *_wrap_wxTreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
5804 | PyObject * _resultobj; |
5805 | wxTreeItemId * _result; | |
5806 | wxTreeCtrl * _arg0; | |
5807 | wxPoint * _arg1; | |
164b735b RD |
5808 | int * _arg2; |
5809 | int temp; | |
1d99702e | 5810 | PyObject * _argo0 = 0; |
164b735b | 5811 | wxPoint temp0; |
2f90df85 | 5812 | PyObject * _obj1 = 0; |
efc5f224 | 5813 | char *_kwnames[] = { "self","point", NULL }; |
b8b8dda7 RD |
5814 | char _ptemp[128]; |
5815 | ||
5816 | self = self; | |
164b735b RD |
5817 | { |
5818 | _arg2 = &temp; | |
5819 | } | |
2f90df85 | 5820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_HitTest",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 5821 | return NULL; |
1d99702e RD |
5822 | if (_argo0) { |
5823 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5824 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
b8b8dda7 RD |
5825 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_HitTest. Expected _wxTreeCtrl_p."); |
5826 | return NULL; | |
5827 | } | |
5828 | } | |
2f90df85 | 5829 | { |
164b735b | 5830 | _arg1 = &temp0; |
2f90df85 | 5831 | if (! wxPoint_helper(_obj1, &_arg1)) |
b8b8dda7 | 5832 | return NULL; |
2f90df85 | 5833 | } |
cf694132 RD |
5834 | { |
5835 | wxPy_BEGIN_ALLOW_THREADS; | |
164b735b | 5836 | _result = new wxTreeItemId (wxTreeCtrl_HitTest(_arg0,*_arg1,*_arg2)); |
cf694132 RD |
5837 | |
5838 | wxPy_END_ALLOW_THREADS; | |
5839 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
b8b8dda7 | 5840 | _resultobj = Py_BuildValue("s",_ptemp); |
164b735b RD |
5841 | { |
5842 | PyObject *o; | |
5843 | o = PyInt_FromLong((long) (*_arg2)); | |
5844 | _resultobj = t_output_helper(_resultobj, o); | |
5845 | } | |
b8b8dda7 RD |
5846 | return _resultobj; |
5847 | } | |
5848 | ||
b7e72427 RD |
5849 | #define wxTreeCtrl_SetItemTextColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemTextColour(_swigarg0,_swigarg1)) |
5850 | static PyObject *_wrap_wxTreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5851 | PyObject * _resultobj; | |
5852 | wxTreeCtrl * _arg0; | |
5853 | wxTreeItemId * _arg1; | |
5854 | wxColour * _arg2; | |
5855 | PyObject * _argo0 = 0; | |
5856 | PyObject * _argo1 = 0; | |
5857 | PyObject * _argo2 = 0; | |
5858 | char *_kwnames[] = { "self","item","col", NULL }; | |
5859 | ||
5860 | self = self; | |
5861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemTextColour",_kwnames,&_argo0,&_argo1,&_argo2)) | |
5862 | return NULL; | |
5863 | if (_argo0) { | |
5864 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5865 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
5866 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemTextColour. Expected _wxTreeCtrl_p."); | |
5867 | return NULL; | |
5868 | } | |
5869 | } | |
5870 | if (_argo1) { | |
5871 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5872 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
5873 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemTextColour. Expected _wxTreeItemId_p."); | |
5874 | return NULL; | |
5875 | } | |
5876 | } | |
5877 | if (_argo2) { | |
5878 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
5879 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxColour_p")) { | |
5880 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemTextColour. Expected _wxColour_p."); | |
5881 | return NULL; | |
5882 | } | |
5883 | } | |
5884 | { | |
5885 | wxPy_BEGIN_ALLOW_THREADS; | |
5886 | wxTreeCtrl_SetItemTextColour(_arg0,*_arg1,*_arg2); | |
5887 | ||
5888 | wxPy_END_ALLOW_THREADS; | |
5889 | } Py_INCREF(Py_None); | |
5890 | _resultobj = Py_None; | |
5891 | return _resultobj; | |
5892 | } | |
5893 | ||
5894 | #define wxTreeCtrl_SetItemBackgroundColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBackgroundColour(_swigarg0,_swigarg1)) | |
5895 | static PyObject *_wrap_wxTreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5896 | PyObject * _resultobj; | |
5897 | wxTreeCtrl * _arg0; | |
5898 | wxTreeItemId * _arg1; | |
5899 | wxColour * _arg2; | |
5900 | PyObject * _argo0 = 0; | |
5901 | PyObject * _argo1 = 0; | |
5902 | PyObject * _argo2 = 0; | |
5903 | char *_kwnames[] = { "self","item","col", NULL }; | |
5904 | ||
5905 | self = self; | |
5906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemBackgroundColour",_kwnames,&_argo0,&_argo1,&_argo2)) | |
5907 | return NULL; | |
5908 | if (_argo0) { | |
5909 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5910 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
5911 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxTreeCtrl_p."); | |
5912 | return NULL; | |
5913 | } | |
5914 | } | |
5915 | if (_argo1) { | |
5916 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5917 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
5918 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxTreeItemId_p."); | |
5919 | return NULL; | |
5920 | } | |
5921 | } | |
5922 | if (_argo2) { | |
5923 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
5924 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxColour_p")) { | |
5925 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxColour_p."); | |
5926 | return NULL; | |
5927 | } | |
5928 | } | |
5929 | { | |
5930 | wxPy_BEGIN_ALLOW_THREADS; | |
5931 | wxTreeCtrl_SetItemBackgroundColour(_arg0,*_arg1,*_arg2); | |
5932 | ||
5933 | wxPy_END_ALLOW_THREADS; | |
5934 | } Py_INCREF(Py_None); | |
5935 | _resultobj = Py_None; | |
5936 | return _resultobj; | |
5937 | } | |
5938 | ||
5939 | #define wxTreeCtrl_SetItemFont(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemFont(_swigarg0,_swigarg1)) | |
5940 | static PyObject *_wrap_wxTreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5941 | PyObject * _resultobj; | |
5942 | wxTreeCtrl * _arg0; | |
5943 | wxTreeItemId * _arg1; | |
5944 | wxFont * _arg2; | |
5945 | PyObject * _argo0 = 0; | |
5946 | PyObject * _argo1 = 0; | |
5947 | PyObject * _argo2 = 0; | |
5948 | char *_kwnames[] = { "self","item","font", NULL }; | |
5949 | ||
5950 | self = self; | |
5951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemFont",_kwnames,&_argo0,&_argo1,&_argo2)) | |
5952 | return NULL; | |
5953 | if (_argo0) { | |
5954 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5955 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
5956 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemFont. Expected _wxTreeCtrl_p."); | |
5957 | return NULL; | |
5958 | } | |
5959 | } | |
5960 | if (_argo1) { | |
5961 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5962 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
5963 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemFont. Expected _wxTreeItemId_p."); | |
5964 | return NULL; | |
5965 | } | |
5966 | } | |
5967 | if (_argo2) { | |
5968 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
5969 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
5970 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemFont. Expected _wxFont_p."); | |
5971 | return NULL; | |
5972 | } | |
5973 | } | |
5974 | { | |
5975 | wxPy_BEGIN_ALLOW_THREADS; | |
5976 | wxTreeCtrl_SetItemFont(_arg0,*_arg1,*_arg2); | |
5977 | ||
5978 | wxPy_END_ALLOW_THREADS; | |
5979 | } Py_INCREF(Py_None); | |
5980 | _resultobj = Py_None; | |
5981 | return _resultobj; | |
5982 | } | |
5983 | ||
b1462dfa RD |
5984 | #define wxTreeCtrl_SetItemDropHighlight(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemDropHighlight(_swigarg0,_swigarg1)) |
5985 | static PyObject *_wrap_wxTreeCtrl_SetItemDropHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5986 | PyObject * _resultobj; | |
5987 | wxTreeCtrl * _arg0; | |
5988 | wxTreeItemId * _arg1; | |
5989 | int _arg2 = (int ) TRUE; | |
5990 | PyObject * _argo0 = 0; | |
5991 | PyObject * _argo1 = 0; | |
5992 | char *_kwnames[] = { "self","item","highlight", NULL }; | |
5993 | ||
5994 | self = self; | |
5995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemDropHighlight",_kwnames,&_argo0,&_argo1,&_arg2)) | |
5996 | return NULL; | |
5997 | if (_argo0) { | |
5998 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5999 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
6000 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemDropHighlight. Expected _wxTreeCtrl_p."); | |
6001 | return NULL; | |
6002 | } | |
6003 | } | |
6004 | if (_argo1) { | |
6005 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6006 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
6007 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemDropHighlight. Expected _wxTreeItemId_p."); | |
6008 | return NULL; | |
6009 | } | |
6010 | } | |
6011 | { | |
6012 | wxPy_BEGIN_ALLOW_THREADS; | |
6013 | wxTreeCtrl_SetItemDropHighlight(_arg0,*_arg1,_arg2); | |
6014 | ||
6015 | wxPy_END_ALLOW_THREADS; | |
6016 | } Py_INCREF(Py_None); | |
6017 | _resultobj = Py_None; | |
6018 | return _resultobj; | |
6019 | } | |
6020 | ||
d426c97e RD |
6021 | static PyObject * wxTreeCtrl_GetBoundingRect(wxTreeCtrl *self,const wxTreeItemId & item,int textOnly) { |
6022 | wxRect rect; | |
164b735b RD |
6023 | if (self->GetBoundingRect(item, rect, textOnly)) { |
6024 | bool doSave = wxPyRestoreThread(); | |
6025 | wxRect* r = new wxRect(rect); | |
6026 | PyObject* val = wxPyConstructObject((void*)r, "wxRect"); | |
6027 | wxPySaveThread(doSave); | |
6028 | return val; | |
6029 | } | |
d426c97e RD |
6030 | else { |
6031 | Py_INCREF(Py_None); | |
6032 | return Py_None; | |
6033 | } | |
6034 | } | |
6035 | static PyObject *_wrap_wxTreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6036 | PyObject * _resultobj; | |
6037 | PyObject * _result; | |
6038 | wxTreeCtrl * _arg0; | |
6039 | wxTreeItemId * _arg1; | |
6040 | int _arg2 = (int ) FALSE; | |
6041 | PyObject * _argo0 = 0; | |
6042 | PyObject * _argo1 = 0; | |
6043 | char *_kwnames[] = { "self","item","textOnly", NULL }; | |
6044 | ||
6045 | self = self; | |
6046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetBoundingRect",_kwnames,&_argo0,&_argo1,&_arg2)) | |
6047 | return NULL; | |
6048 | if (_argo0) { | |
6049 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6050 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
6051 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetBoundingRect. Expected _wxTreeCtrl_p."); | |
6052 | return NULL; | |
6053 | } | |
6054 | } | |
6055 | if (_argo1) { | |
6056 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6057 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
6058 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetBoundingRect. Expected _wxTreeItemId_p."); | |
6059 | return NULL; | |
6060 | } | |
6061 | } | |
6062 | { | |
6063 | wxPy_BEGIN_ALLOW_THREADS; | |
6064 | _result = (PyObject *)wxTreeCtrl_GetBoundingRect(_arg0,*_arg1,_arg2); | |
6065 | ||
6066 | wxPy_END_ALLOW_THREADS; | |
6067 | }{ | |
6068 | _resultobj = _result; | |
6069 | } | |
6070 | return _resultobj; | |
6071 | } | |
6072 | ||
8ab979d7 | 6073 | static PyMethodDef controls2cMethods[] = { |
d426c97e | 6074 | { "wxTreeCtrl_GetBoundingRect", (PyCFunction) _wrap_wxTreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 6075 | { "wxTreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_wxTreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 RD |
6076 | { "wxTreeCtrl_SetItemFont", (PyCFunction) _wrap_wxTreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, |
6077 | { "wxTreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
6078 | { "wxTreeCtrl_SetItemTextColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
6079 | { "wxTreeCtrl_HitTest", (PyCFunction) _wrap_wxTreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
6080 | { "wxTreeCtrl_IsBold", (PyCFunction) _wrap_wxTreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
6081 | { "wxTreeCtrl_SetItemBold", (PyCFunction) _wrap_wxTreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 6082 | { "wxTreeCtrl_SortChildren", (PyCFunction) _wrap_wxTreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
6083 | { "wxTreeCtrl_EndEditLabel", (PyCFunction) _wrap_wxTreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, |
6084 | { "wxTreeCtrl_GetEditControl", (PyCFunction) _wrap_wxTreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
6085 | { "wxTreeCtrl_EditLabel", (PyCFunction) _wrap_wxTreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
6086 | { "wxTreeCtrl_ScrollTo", (PyCFunction) _wrap_wxTreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
6087 | { "wxTreeCtrl_EnsureVisible", (PyCFunction) _wrap_wxTreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
6088 | { "wxTreeCtrl_SelectItem", (PyCFunction) _wrap_wxTreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
6089 | { "wxTreeCtrl_UnselectAll", (PyCFunction) _wrap_wxTreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, | |
6090 | { "wxTreeCtrl_Unselect", (PyCFunction) _wrap_wxTreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
6091 | { "wxTreeCtrl_Toggle", (PyCFunction) _wrap_wxTreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
6092 | { "wxTreeCtrl_CollapseAndReset", (PyCFunction) _wrap_wxTreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
6093 | { "wxTreeCtrl_Collapse", (PyCFunction) _wrap_wxTreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
6094 | { "wxTreeCtrl_Expand", (PyCFunction) _wrap_wxTreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
6095 | { "wxTreeCtrl_DeleteAllItems", (PyCFunction) _wrap_wxTreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
6096 | { "wxTreeCtrl_DeleteChildren", (PyCFunction) _wrap_wxTreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
6097 | { "wxTreeCtrl_Delete", (PyCFunction) _wrap_wxTreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
6098 | { "wxTreeCtrl_AppendItem", (PyCFunction) _wrap_wxTreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
6099 | { "wxTreeCtrl_InsertItem", (PyCFunction) _wrap_wxTreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
6100 | { "wxTreeCtrl_PrependItem", (PyCFunction) _wrap_wxTreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
6101 | { "wxTreeCtrl_AddRoot", (PyCFunction) _wrap_wxTreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 6102 | { "wxTreeCtrl_GetLastChild", (PyCFunction) _wrap_wxTreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
6103 | { "wxTreeCtrl_GetPrevVisible", (PyCFunction) _wrap_wxTreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, |
6104 | { "wxTreeCtrl_GetNextVisible", (PyCFunction) _wrap_wxTreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
6105 | { "wxTreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_wxTreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
6106 | { "wxTreeCtrl_GetPrevSibling", (PyCFunction) _wrap_wxTreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
6107 | { "wxTreeCtrl_GetNextSibling", (PyCFunction) _wrap_wxTreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
6108 | { "wxTreeCtrl_GetNextChild", (PyCFunction) _wrap_wxTreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
6109 | { "wxTreeCtrl_GetFirstChild", (PyCFunction) _wrap_wxTreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
6110 | { "wxTreeCtrl_GetChildrenCount", (PyCFunction) _wrap_wxTreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 6111 | { "wxTreeCtrl_GetSelections", (PyCFunction) _wrap_wxTreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 6112 | { "wxTreeCtrl_GetItemParent", (PyCFunction) _wrap_wxTreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
6113 | { "wxTreeCtrl_GetSelection", (PyCFunction) _wrap_wxTreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, |
6114 | { "wxTreeCtrl_GetRootItem", (PyCFunction) _wrap_wxTreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
6115 | { "wxTreeCtrl_IsSelected", (PyCFunction) _wrap_wxTreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
6116 | { "wxTreeCtrl_IsExpanded", (PyCFunction) _wrap_wxTreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
6117 | { "wxTreeCtrl_ItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
6118 | { "wxTreeCtrl_IsVisible", (PyCFunction) _wrap_wxTreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
6119 | { "wxTreeCtrl_SetPyData", (PyCFunction) _wrap_wxTreeCtrl_SetPyData, METH_VARARGS | METH_KEYWORDS }, | |
6120 | { "wxTreeCtrl_GetPyData", (PyCFunction) _wrap_wxTreeCtrl_GetPyData, METH_VARARGS | METH_KEYWORDS }, | |
6121 | { "wxTreeCtrl_SetItemData", (PyCFunction) _wrap_wxTreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
6122 | { "wxTreeCtrl_GetItemData", (PyCFunction) _wrap_wxTreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
6123 | { "wxTreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
6124 | { "wxTreeCtrl_SetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
6125 | { "wxTreeCtrl_SetItemImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
6126 | { "wxTreeCtrl_SetItemText", (PyCFunction) _wrap_wxTreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
6127 | { "wxTreeCtrl_GetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
6128 | { "wxTreeCtrl_GetItemImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
6129 | { "wxTreeCtrl_GetItemText", (PyCFunction) _wrap_wxTreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
6130 | { "wxTreeCtrl_SetSpacing", (PyCFunction) _wrap_wxTreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, |
6131 | { "wxTreeCtrl_GetSpacing", (PyCFunction) _wrap_wxTreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
6132 | { "wxTreeCtrl_SetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, |
6133 | { "wxTreeCtrl_SetImageList", (PyCFunction) _wrap_wxTreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
6134 | { "wxTreeCtrl_GetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
6135 | { "wxTreeCtrl_GetImageList", (PyCFunction) _wrap_wxTreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
6136 | { "wxTreeCtrl_SetIndent", (PyCFunction) _wrap_wxTreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
6137 | { "wxTreeCtrl_GetIndent", (PyCFunction) _wrap_wxTreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
6138 | { "wxTreeCtrl_GetCount", (PyCFunction) _wrap_wxTreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
6139 | { "new_wxTreeCtrl", (PyCFunction) _wrap_new_wxTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
6140 | { "wxTreeEvent_GetLabel", (PyCFunction) _wrap_wxTreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
6141 | { "wxTreeEvent_GetCode", (PyCFunction) _wrap_wxTreeEvent_GetCode, METH_VARARGS | METH_KEYWORDS }, | |
6142 | { "wxTreeEvent_GetPoint", (PyCFunction) _wrap_wxTreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
6143 | { "wxTreeEvent_GetOldItem", (PyCFunction) _wrap_wxTreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
6144 | { "wxTreeEvent_GetItem", (PyCFunction) _wrap_wxTreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
6145 | { "wxTreeItemData_SetId", (PyCFunction) _wrap_wxTreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, | |
6146 | { "wxTreeItemData_GetId", (PyCFunction) _wrap_wxTreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
6147 | { "wxTreeItemData_SetData", (PyCFunction) _wrap_wxTreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
6148 | { "wxTreeItemData_GetData", (PyCFunction) _wrap_wxTreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
6149 | { "new_wxTreeItemData", (PyCFunction) _wrap_new_wxTreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
6150 | { "wxTreeItemId_IsOk", (PyCFunction) _wrap_wxTreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
6151 | { "delete_wxTreeItemId", (PyCFunction) _wrap_delete_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
6152 | { "new_wxTreeItemId", (PyCFunction) _wrap_new_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
dcd38683 | 6153 | { "wxListCtrl_SortItems", (PyCFunction) _wrap_wxListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
6154 | { "wxListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_wxListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, |
6155 | { "wxListCtrl_SetSingleStyle", (PyCFunction) _wrap_wxListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
6156 | { "wxListCtrl_SetItemText", (PyCFunction) _wrap_wxListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
6157 | { "wxListCtrl_SetItemState", (PyCFunction) _wrap_wxListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
6158 | { "wxListCtrl_SetItemPosition", (PyCFunction) _wrap_wxListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
6159 | { "wxListCtrl_SetItemImage", (PyCFunction) _wrap_wxListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
6160 | { "wxListCtrl_SetItemData", (PyCFunction) _wrap_wxListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
6161 | { "wxListCtrl_SetStringItem", (PyCFunction) _wrap_wxListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
6162 | { "wxListCtrl_SetItem", (PyCFunction) _wrap_wxListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
6163 | { "wxListCtrl_SetImageList", (PyCFunction) _wrap_wxListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
6164 | { "wxListCtrl_SetColumnWidth", (PyCFunction) _wrap_wxListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
6165 | { "wxListCtrl_SetColumn", (PyCFunction) _wrap_wxListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
6166 | { "wxListCtrl_SetBackgroundColour", (PyCFunction) _wrap_wxListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
6167 | { "wxListCtrl_ScrollList", (PyCFunction) _wrap_wxListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, | |
6168 | { "wxListCtrl_InsertImageStringItem", (PyCFunction) _wrap_wxListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, | |
6169 | { "wxListCtrl_InsertImageItem", (PyCFunction) _wrap_wxListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
6170 | { "wxListCtrl_InsertStringItem", (PyCFunction) _wrap_wxListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
6171 | { "wxListCtrl_InsertItem", (PyCFunction) _wrap_wxListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
6172 | { "wxListCtrl_InsertColumn", (PyCFunction) _wrap_wxListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
6173 | { "wxListCtrl_InsertColumnWith", (PyCFunction) _wrap_wxListCtrl_InsertColumnWith, METH_VARARGS | METH_KEYWORDS }, | |
6174 | { "wxListCtrl_HitTest", (PyCFunction) _wrap_wxListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
6175 | { "wxListCtrl_GetTopItem", (PyCFunction) _wrap_wxListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
6176 | { "wxListCtrl_SetTextColour", (PyCFunction) _wrap_wxListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
6177 | { "wxListCtrl_GetTextColour", (PyCFunction) _wrap_wxListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
6178 | { "wxListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_wxListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
6179 | { "wxListCtrl_GetNextItem", (PyCFunction) _wrap_wxListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
6180 | { "wxListCtrl_GetItemText", (PyCFunction) _wrap_wxListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
6181 | { "wxListCtrl_GetItemSpacing", (PyCFunction) _wrap_wxListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
6182 | { "wxListCtrl_GetItemCount", (PyCFunction) _wrap_wxListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
6183 | { "wxListCtrl_GetItemState", (PyCFunction) _wrap_wxListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
6184 | { "wxListCtrl_GetItemRect", (PyCFunction) _wrap_wxListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
6185 | { "wxListCtrl_GetItemPosition", (PyCFunction) _wrap_wxListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
6186 | { "wxListCtrl_GetItem", (PyCFunction) _wrap_wxListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
6187 | { "wxListCtrl_GetItemData", (PyCFunction) _wrap_wxListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
6188 | { "wxListCtrl_GetImageList", (PyCFunction) _wrap_wxListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
6189 | { "wxListCtrl_GetCountPerPage", (PyCFunction) _wrap_wxListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
6190 | { "wxListCtrl_GetColumnWidth", (PyCFunction) _wrap_wxListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
6191 | { "wxListCtrl_GetColumn", (PyCFunction) _wrap_wxListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
6192 | { "wxListCtrl_FindItemAtPos", (PyCFunction) _wrap_wxListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, | |
6193 | { "wxListCtrl_FindItemData", (PyCFunction) _wrap_wxListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
6194 | { "wxListCtrl_FindItem", (PyCFunction) _wrap_wxListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
6195 | { "wxListCtrl_EnsureVisible", (PyCFunction) _wrap_wxListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
6196 | { "wxListCtrl_GetEditControl", (PyCFunction) _wrap_wxListCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
6197 | { "wxListCtrl_EndEditLabel", (PyCFunction) _wrap_wxListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, | |
6198 | { "wxListCtrl_EditLabel", (PyCFunction) _wrap_wxListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
6199 | { "wxListCtrl_ClearAll", (PyCFunction) _wrap_wxListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, | |
6200 | { "wxListCtrl_DeleteAllColumns", (PyCFunction) _wrap_wxListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
6201 | { "wxListCtrl_DeleteColumn", (PyCFunction) _wrap_wxListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
6202 | { "wxListCtrl_DeleteAllItems", (PyCFunction) _wrap_wxListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
6203 | { "wxListCtrl_DeleteItem", (PyCFunction) _wrap_wxListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
6204 | { "wxListCtrl_Arrange", (PyCFunction) _wrap_wxListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
6205 | { "new_wxListCtrl", (PyCFunction) _wrap_new_wxListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
6206 | { "wxListEvent_m_item_get", (PyCFunction) _wrap_wxListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, | |
6207 | { "wxListEvent_m_item_set", (PyCFunction) _wrap_wxListEvent_m_item_set, METH_VARARGS | METH_KEYWORDS }, | |
6208 | { "wxListEvent_m_pointDrag_get", (PyCFunction) _wrap_wxListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, | |
6209 | { "wxListEvent_m_pointDrag_set", (PyCFunction) _wrap_wxListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS }, | |
6210 | { "wxListEvent_m_cancelled_get", (PyCFunction) _wrap_wxListEvent_m_cancelled_get, METH_VARARGS | METH_KEYWORDS }, | |
6211 | { "wxListEvent_m_cancelled_set", (PyCFunction) _wrap_wxListEvent_m_cancelled_set, METH_VARARGS | METH_KEYWORDS }, | |
6212 | { "wxListEvent_m_col_get", (PyCFunction) _wrap_wxListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
6213 | { "wxListEvent_m_col_set", (PyCFunction) _wrap_wxListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
6214 | { "wxListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
6215 | { "wxListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
6216 | { "wxListEvent_m_itemIndex_get", (PyCFunction) _wrap_wxListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
6217 | { "wxListEvent_m_itemIndex_set", (PyCFunction) _wrap_wxListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
6218 | { "wxListEvent_m_code_get", (PyCFunction) _wrap_wxListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, | |
6219 | { "wxListEvent_m_code_set", (PyCFunction) _wrap_wxListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS }, | |
6220 | { "delete_wxListItem", (PyCFunction) _wrap_delete_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
6221 | { "new_wxListItem", (PyCFunction) _wrap_new_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
6222 | { "wxListItem_m_width_get", (PyCFunction) _wrap_wxListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, | |
6223 | { "wxListItem_m_width_set", (PyCFunction) _wrap_wxListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
6224 | { "wxListItem_m_format_get", (PyCFunction) _wrap_wxListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
6225 | { "wxListItem_m_format_set", (PyCFunction) _wrap_wxListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
6226 | { "wxListItem_m_data_get", (PyCFunction) _wrap_wxListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
6227 | { "wxListItem_m_data_set", (PyCFunction) _wrap_wxListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
6228 | { "wxListItem_m_image_get", (PyCFunction) _wrap_wxListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
6229 | { "wxListItem_m_image_set", (PyCFunction) _wrap_wxListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
6230 | { "wxListItem_m_text_get", (PyCFunction) _wrap_wxListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
6231 | { "wxListItem_m_text_set", (PyCFunction) _wrap_wxListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
6232 | { "wxListItem_m_stateMask_get", (PyCFunction) _wrap_wxListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
6233 | { "wxListItem_m_stateMask_set", (PyCFunction) _wrap_wxListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
6234 | { "wxListItem_m_state_get", (PyCFunction) _wrap_wxListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
6235 | { "wxListItem_m_state_set", (PyCFunction) _wrap_wxListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
6236 | { "wxListItem_m_col_get", (PyCFunction) _wrap_wxListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
6237 | { "wxListItem_m_col_set", (PyCFunction) _wrap_wxListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
6238 | { "wxListItem_m_itemId_get", (PyCFunction) _wrap_wxListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
6239 | { "wxListItem_m_itemId_set", (PyCFunction) _wrap_wxListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
6240 | { "wxListItem_m_mask_get", (PyCFunction) _wrap_wxListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
6241 | { "wxListItem_m_mask_set", (PyCFunction) _wrap_wxListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
8ab979d7 RD |
6242 | { NULL, NULL } |
6243 | }; | |
1d99702e RD |
6244 | #ifdef __cplusplus |
6245 | } | |
6246 | #endif | |
6247 | /* | |
6248 | * This table is used by the pointer type-checker | |
6249 | */ | |
6250 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
6251 | { "_wxAcceleratorTable","_class_wxAcceleratorTable",0}, | |
6252 | { "_wxEvent","_class_wxTreeEvent",SwigwxTreeEventTowxEvent}, | |
6253 | { "_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent}, | |
6254 | { "_wxEvent","_class_wxListEvent",SwigwxListEventTowxEvent}, | |
6255 | { "_wxEvent","_wxListEvent",SwigwxListEventTowxEvent}, | |
6256 | { "_wxEvent","_class_wxEvent",0}, | |
6257 | { "_class_wxActivateEvent","_wxActivateEvent",0}, | |
6258 | { "_signed_long","_long",0}, | |
6259 | { "_wxMenuEvent","_class_wxMenuEvent",0}, | |
65dd82cb | 6260 | { "_wxPyBitmapDataObject","_class_wxPyBitmapDataObject",0}, |
b1462dfa | 6261 | { "_wxBitmapDataObject","_class_wxBitmapDataObject",0}, |
2f90df85 | 6262 | { "_class_wxPyCommandEvent","_wxPyCommandEvent",0}, |
b1462dfa | 6263 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
6264 | { "_wxPrintQuality","_int",0}, |
6265 | { "_wxPrintQuality","_signed_int",0}, | |
6266 | { "_wxPrintQuality","_unsigned_int",0}, | |
6267 | { "_wxPrintQuality","_wxWindowID",0}, | |
6268 | { "_wxPrintQuality","_uint",0}, | |
6269 | { "_wxPrintQuality","_EBool",0}, | |
6270 | { "_wxPrintQuality","_size_t",0}, | |
b1462dfa | 6271 | { "_class_wxCustomDataObject","_wxCustomDataObject",0}, |
1d99702e | 6272 | { "_class_wxRegionIterator","_wxRegionIterator",0}, |
b1462dfa | 6273 | { "_class_wxPyTextDropTarget","_wxPyTextDropTarget",0}, |
1d99702e RD |
6274 | { "_class_wxMenuBar","_wxMenuBar",0}, |
6275 | { "_class_wxPyTreeItemData","_wxPyTreeItemData",0}, | |
6276 | { "_class_wxEvtHandler","_class_wxTreeCtrl",SwigwxTreeCtrlTowxEvtHandler}, | |
6277 | { "_class_wxEvtHandler","_wxTreeCtrl",SwigwxTreeCtrlTowxEvtHandler}, | |
6278 | { "_class_wxEvtHandler","_class_wxListCtrl",SwigwxListCtrlTowxEvtHandler}, | |
6279 | { "_class_wxEvtHandler","_wxListCtrl",SwigwxListCtrlTowxEvtHandler}, | |
6280 | { "_class_wxEvtHandler","_wxEvtHandler",0}, | |
6281 | { "_wxPaintEvent","_class_wxPaintEvent",0}, | |
6282 | { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0}, | |
6283 | { "_wxCursor","_class_wxCursor",0}, | |
6284 | { "_wxNotifyEvent","_class_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, | |
6285 | { "_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, | |
6286 | { "_wxNotifyEvent","_class_wxNotifyEvent",0}, | |
6287 | { "_class_wxTreeCtrl","_wxTreeCtrl",0}, | |
6288 | { "_wxMask","_class_wxMask",0}, | |
6289 | { "_wxPen","_class_wxPen",0}, | |
6290 | { "_wxUpdateUIEvent","_class_wxUpdateUIEvent",0}, | |
6291 | { "_byte","_unsigned_char",0}, | |
b1462dfa | 6292 | { "_wxDataObject","_class_wxDataObject",0}, |
1d99702e | 6293 | { "_wxStaticBox","_class_wxStaticBox",0}, |
65dd82cb RD |
6294 | { "_wxPyDataObjectSimple","_class_wxPyDataObjectSimple",0}, |
6295 | { "_wxPyDropSource","_class_wxPyDropSource",0}, | |
1d99702e RD |
6296 | { "_wxChoice","_class_wxChoice",0}, |
6297 | { "_wxSlider","_class_wxSlider",0}, | |
6298 | { "_long","_wxDash",0}, | |
6299 | { "_long","_unsigned_long",0}, | |
6300 | { "_long","_signed_long",0}, | |
6301 | { "_wxImageList","_class_wxImageList",0}, | |
b1462dfa | 6302 | { "_wxDataObjectSimple","_class_wxDataObjectSimple",0}, |
1d99702e RD |
6303 | { "_wxDropFilesEvent","_class_wxDropFilesEvent",0}, |
6304 | { "_wxBitmapButton","_class_wxBitmapButton",0}, | |
6305 | { "_class_wxAcceleratorTable","_wxAcceleratorTable",0}, | |
b1462dfa | 6306 | { "_class_wxClipboard","_wxClipboard",0}, |
1d99702e RD |
6307 | { "_class_wxGauge","_wxGauge",0}, |
6308 | { "_wxDC","_class_wxDC",0}, | |
b1462dfa | 6309 | { "_class_wxBitmapDataObject","_wxBitmapDataObject",0}, |
1d99702e RD |
6310 | { "_wxListEvent","_class_wxListEvent",0}, |
6311 | { "_wxSpinEvent","_class_wxSpinEvent",0}, | |
b1462dfa | 6312 | { "_size_t","_wxCoord",0}, |
1d99702e RD |
6313 | { "_size_t","_wxPrintQuality",0}, |
6314 | { "_size_t","_unsigned_int",0}, | |
6315 | { "_size_t","_int",0}, | |
6316 | { "_size_t","_wxWindowID",0}, | |
6317 | { "_size_t","_uint",0}, | |
6318 | { "_class_wxRealPoint","_wxRealPoint",0}, | |
48115f4a | 6319 | { "_wxNavigationKeyEvent","_class_wxNavigationKeyEvent",0}, |
1d99702e | 6320 | { "_wxPrinterDC","_class_wxPrinterDC",0}, |
48115f4a | 6321 | { "_wxWindowCreateEvent","_class_wxWindowCreateEvent",0}, |
1d99702e RD |
6322 | { "_class_wxMenuItem","_wxMenuItem",0}, |
6323 | { "_class_wxPaintEvent","_wxPaintEvent",0}, | |
6324 | { "_wxSysColourChangedEvent","_class_wxSysColourChangedEvent",0}, | |
6325 | { "_wxPanel","_class_wxPanel",0}, | |
6326 | { "_wxInitDialogEvent","_class_wxInitDialogEvent",0}, | |
6327 | { "_wxCheckBox","_class_wxCheckBox",0}, | |
6328 | { "_wxPyEvent","_class_wxPyEvent",0}, | |
6329 | { "_wxTextCtrl","_class_wxTextCtrl",0}, | |
6330 | { "_class_wxMask","_wxMask",0}, | |
b1462dfa | 6331 | { "_wxTextDataObject","_class_wxTextDataObject",0}, |
1d99702e RD |
6332 | { "_class_wxKeyEvent","_wxKeyEvent",0}, |
6333 | { "_wxColour","_class_wxColour",0}, | |
6334 | { "_class_wxDialog","_wxDialog",0}, | |
b1462dfa | 6335 | { "_class_wxFileDataObject","_wxFileDataObject",0}, |
1d99702e RD |
6336 | { "_wxIdleEvent","_class_wxIdleEvent",0}, |
6337 | { "_class_wxUpdateUIEvent","_wxUpdateUIEvent",0}, | |
b1462dfa | 6338 | { "_class_wxDataObject","_wxDataObject",0}, |
1d99702e RD |
6339 | { "_wxStaticLine","_class_wxStaticLine",0}, |
6340 | { "_wxBrush","_class_wxBrush",0}, | |
b1462dfa RD |
6341 | { "_wxDataFormat","_class_wxDataFormat",0}, |
6342 | { "_class_wxDataObjectSimple","_wxDataObjectSimple",0}, | |
1d99702e | 6343 | { "_wxShowEvent","_class_wxShowEvent",0}, |
b1462dfa | 6344 | { "_uint","_wxCoord",0}, |
1d99702e RD |
6345 | { "_uint","_wxPrintQuality",0}, |
6346 | { "_uint","_size_t",0}, | |
6347 | { "_uint","_unsigned_int",0}, | |
6348 | { "_uint","_int",0}, | |
6349 | { "_uint","_wxWindowID",0}, | |
2f90df85 | 6350 | { "_wxPyValidator","_class_wxPyValidator",0}, |
1d99702e RD |
6351 | { "_class_wxEvent","_class_wxTreeEvent",SwigwxTreeEventTowxEvent}, |
6352 | { "_class_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent}, | |
6353 | { "_class_wxEvent","_class_wxListEvent",SwigwxListEventTowxEvent}, | |
6354 | { "_class_wxEvent","_wxListEvent",SwigwxListEventTowxEvent}, | |
6355 | { "_class_wxEvent","_wxEvent",0}, | |
6356 | { "_wxCheckListBox","_class_wxCheckListBox",0}, | |
6357 | { "_wxRect","_class_wxRect",0}, | |
6358 | { "_wxCommandEvent","_class_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, | |
6359 | { "_wxCommandEvent","_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, | |
6360 | { "_wxCommandEvent","_class_wxListEvent",SwigwxListEventTowxCommandEvent}, | |
6361 | { "_wxCommandEvent","_wxListEvent",SwigwxListEventTowxCommandEvent}, | |
6362 | { "_wxCommandEvent","_class_wxCommandEvent",0}, | |
6363 | { "_wxSizeEvent","_class_wxSizeEvent",0}, | |
6364 | { "_wxPoint","_class_wxPoint",0}, | |
6365 | { "_class_wxButton","_wxButton",0}, | |
6366 | { "_wxRadioBox","_class_wxRadioBox",0}, | |
6367 | { "_wxBitmap","_class_wxBitmap",0}, | |
6368 | { "_wxPyTimer","_class_wxPyTimer",0}, | |
6369 | { "_wxWindowDC","_class_wxWindowDC",0}, | |
6370 | { "_wxScrollBar","_class_wxScrollBar",0}, | |
6371 | { "_wxSpinButton","_class_wxSpinButton",0}, | |
6372 | { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0}, | |
6373 | { "_class_wxNotifyEvent","_class_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, | |
6374 | { "_class_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, | |
6375 | { "_class_wxNotifyEvent","_wxNotifyEvent",0}, | |
2f90df85 | 6376 | { "_class_wxValidator","_wxValidator",0}, |
1d99702e RD |
6377 | { "_class_wxPyEvent","_wxPyEvent",0}, |
6378 | { "_class_wxIconizeEvent","_wxIconizeEvent",0}, | |
6379 | { "_class_wxStaticBitmap","_wxStaticBitmap",0}, | |
6380 | { "_wxListItem","_class_wxListItem",0}, | |
b1462dfa | 6381 | { "_wxDropTarget","_class_wxDropTarget",0}, |
1d99702e RD |
6382 | { "_class_wxStaticLine","_wxStaticLine",0}, |
6383 | { "_wxScrollEvent","_class_wxScrollEvent",0}, | |
b1462dfa | 6384 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
6385 | { "_EBool","_wxPrintQuality",0}, |
6386 | { "_EBool","_signed_int",0}, | |
6387 | { "_EBool","_int",0}, | |
6388 | { "_EBool","_wxWindowID",0}, | |
6389 | { "_class_wxRegion","_wxRegion",0}, | |
b1462dfa | 6390 | { "_class_wxDataFormat","_wxDataFormat",0}, |
1d99702e | 6391 | { "_class_wxDropFilesEvent","_wxDropFilesEvent",0}, |
48115f4a | 6392 | { "_wxWindowDestroyEvent","_class_wxWindowDestroyEvent",0}, |
1d99702e RD |
6393 | { "_wxStaticText","_class_wxStaticText",0}, |
6394 | { "_wxFont","_class_wxFont",0}, | |
b1462dfa | 6395 | { "_class_wxPyDropTarget","_wxPyDropTarget",0}, |
1d99702e RD |
6396 | { "_wxCloseEvent","_class_wxCloseEvent",0}, |
6397 | { "_unsigned_long","_wxDash",0}, | |
6398 | { "_unsigned_long","_long",0}, | |
6399 | { "_class_wxRect","_wxRect",0}, | |
6400 | { "_class_wxDC","_wxDC",0}, | |
d426c97e | 6401 | { "_wxScrollWinEvent","_class_wxScrollWinEvent",0}, |
48115f4a RD |
6402 | { "_wxQueryNewPaletteEvent","_class_wxQueryNewPaletteEvent",0}, |
6403 | { "_class_wxWindowCreateEvent","_wxWindowCreateEvent",0}, | |
1d99702e RD |
6404 | { "_class_wxTreeEvent","_wxTreeEvent",0}, |
6405 | { "_class_wxPyTimer","_wxPyTimer",0}, | |
6406 | { "_wxFocusEvent","_class_wxFocusEvent",0}, | |
6407 | { "_wxMaximizeEvent","_class_wxMaximizeEvent",0}, | |
6408 | { "_class_wxSpinButton","_wxSpinButton",0}, | |
6409 | { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0}, | |
6410 | { "_class_wxPanel","_wxPanel",0}, | |
6411 | { "_class_wxCheckBox","_wxCheckBox",0}, | |
6412 | { "_wxComboBox","_class_wxComboBox",0}, | |
6413 | { "_wxRadioButton","_class_wxRadioButton",0}, | |
b1462dfa | 6414 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
6415 | { "_signed_int","_wxPrintQuality",0}, |
6416 | { "_signed_int","_EBool",0}, | |
6417 | { "_signed_int","_wxWindowID",0}, | |
6418 | { "_signed_int","_int",0}, | |
6419 | { "_class_wxTextCtrl","_wxTextCtrl",0}, | |
6420 | { "_wxLayoutConstraints","_class_wxLayoutConstraints",0}, | |
6421 | { "_wxMetaFileDC","_class_wxMetaFileDC",0}, | |
b1462dfa | 6422 | { "_class_wxTextDataObject","_wxTextDataObject",0}, |
1d99702e RD |
6423 | { "_wxMenu","_class_wxMenu",0}, |
6424 | { "_class_wxMoveEvent","_wxMoveEvent",0}, | |
6425 | { "_wxListBox","_class_wxListBox",0}, | |
6426 | { "_wxScreenDC","_class_wxScreenDC",0}, | |
6427 | { "_WXTYPE","_short",0}, | |
6428 | { "_WXTYPE","_signed_short",0}, | |
6429 | { "_WXTYPE","_unsigned_short",0}, | |
b1462dfa | 6430 | { "_class_wxDropTarget","_wxDropTarget",0}, |
1d99702e RD |
6431 | { "_class_wxBrush","_wxBrush",0}, |
6432 | { "_unsigned_short","_WXTYPE",0}, | |
6433 | { "_unsigned_short","_short",0}, | |
6434 | { "_class_wxWindow","_class_wxTreeCtrl",SwigwxTreeCtrlTowxWindow}, | |
6435 | { "_class_wxWindow","_wxTreeCtrl",SwigwxTreeCtrlTowxWindow}, | |
6436 | { "_class_wxWindow","_class_wxListCtrl",SwigwxListCtrlTowxWindow}, | |
6437 | { "_class_wxWindow","_wxListCtrl",SwigwxListCtrlTowxWindow}, | |
6438 | { "_class_wxWindow","_wxWindow",0}, | |
6439 | { "_class_wxStaticText","_wxStaticText",0}, | |
6440 | { "_class_wxFont","_wxFont",0}, | |
b1462dfa | 6441 | { "_wxClipboard","_class_wxClipboard",0}, |
2f90df85 | 6442 | { "_class_wxPyValidator","_wxPyValidator",0}, |
1d99702e | 6443 | { "_class_wxCloseEvent","_wxCloseEvent",0}, |
2abc0a0f | 6444 | { "_wxBusyInfo","_class_wxBusyInfo",0}, |
1d99702e | 6445 | { "_class_wxMenuEvent","_wxMenuEvent",0}, |
48115f4a | 6446 | { "_wxPaletteChangedEvent","_class_wxPaletteChangedEvent",0}, |
65dd82cb | 6447 | { "_class_wxPyBitmapDataObject","_wxPyBitmapDataObject",0}, |
1d99702e RD |
6448 | { "_wxClientDC","_class_wxClientDC",0}, |
6449 | { "_wxMouseEvent","_class_wxMouseEvent",0}, | |
6450 | { "_wxListCtrl","_class_wxListCtrl",0}, | |
6451 | { "_class_wxPoint","_wxPoint",0}, | |
6452 | { "_wxRealPoint","_class_wxRealPoint",0}, | |
6453 | { "_class_wxRadioBox","_wxRadioBox",0}, | |
6454 | { "_signed_short","_WXTYPE",0}, | |
6455 | { "_signed_short","_short",0}, | |
6456 | { "_wxMemoryDC","_class_wxMemoryDC",0}, | |
65dd82cb | 6457 | { "_wxPyTextDataObject","_class_wxPyTextDataObject",0}, |
1d99702e RD |
6458 | { "_wxPaintDC","_class_wxPaintDC",0}, |
6459 | { "_class_wxWindowDC","_wxWindowDC",0}, | |
6460 | { "_class_wxFocusEvent","_wxFocusEvent",0}, | |
6461 | { "_class_wxMaximizeEvent","_wxMaximizeEvent",0}, | |
6462 | { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0}, | |
6463 | { "_class_wxCursor","_wxCursor",0}, | |
b1462dfa | 6464 | { "_wxPyFileDropTarget","_class_wxPyFileDropTarget",0}, |
1d99702e RD |
6465 | { "_wxScrolledWindow","_class_wxScrolledWindow",0}, |
6466 | { "_wxTreeItemId","_class_wxTreeItemId",0}, | |
6467 | { "_unsigned_char","_byte",0}, | |
6468 | { "_class_wxMetaFileDC","_wxMetaFileDC",0}, | |
6469 | { "_class_wxMenu","_wxMenu",0}, | |
6470 | { "_wxControl","_class_wxTreeCtrl",SwigwxTreeCtrlTowxControl}, | |
6471 | { "_wxControl","_wxTreeCtrl",SwigwxTreeCtrlTowxControl}, | |
6472 | { "_wxControl","_class_wxListCtrl",SwigwxListCtrlTowxControl}, | |
6473 | { "_wxControl","_wxListCtrl",SwigwxListCtrlTowxControl}, | |
6474 | { "_wxControl","_class_wxControl",0}, | |
6475 | { "_class_wxListBox","_wxListBox",0}, | |
b1462dfa | 6476 | { "_unsigned_int","_wxCoord",0}, |
1d99702e RD |
6477 | { "_unsigned_int","_wxPrintQuality",0}, |
6478 | { "_unsigned_int","_size_t",0}, | |
6479 | { "_unsigned_int","_uint",0}, | |
6480 | { "_unsigned_int","_wxWindowID",0}, | |
6481 | { "_unsigned_int","_int",0}, | |
6482 | { "_wxIcon","_class_wxIcon",0}, | |
6483 | { "_wxDialog","_class_wxDialog",0}, | |
6484 | { "_class_wxListItem","_wxListItem",0}, | |
6485 | { "_class_wxPen","_wxPen",0}, | |
6486 | { "_short","_WXTYPE",0}, | |
6487 | { "_short","_unsigned_short",0}, | |
6488 | { "_short","_signed_short",0}, | |
6489 | { "_class_wxStaticBox","_wxStaticBox",0}, | |
65dd82cb RD |
6490 | { "_class_wxPyDataObjectSimple","_wxPyDataObjectSimple",0}, |
6491 | { "_class_wxPyDropSource","_wxPyDropSource",0}, | |
1d99702e RD |
6492 | { "_class_wxScrollEvent","_wxScrollEvent",0}, |
6493 | { "_wxJoystickEvent","_class_wxJoystickEvent",0}, | |
6494 | { "_class_wxChoice","_wxChoice",0}, | |
6495 | { "_class_wxSlider","_wxSlider",0}, | |
6496 | { "_class_wxImageList","_wxImageList",0}, | |
6497 | { "_class_wxBitmapButton","_wxBitmapButton",0}, | |
48115f4a | 6498 | { "_class_wxPaletteChangedEvent","_wxPaletteChangedEvent",0}, |
b1462dfa | 6499 | { "_wxWindowID","_wxCoord",0}, |
1d99702e RD |
6500 | { "_wxWindowID","_wxPrintQuality",0}, |
6501 | { "_wxWindowID","_size_t",0}, | |
6502 | { "_wxWindowID","_EBool",0}, | |
6503 | { "_wxWindowID","_uint",0}, | |
6504 | { "_wxWindowID","_int",0}, | |
6505 | { "_wxWindowID","_signed_int",0}, | |
6506 | { "_wxWindowID","_unsigned_int",0}, | |
d426c97e | 6507 | { "_class_wxScrollWinEvent","_wxScrollWinEvent",0}, |
b1462dfa | 6508 | { "_int","_wxCoord",0}, |
1d99702e RD |
6509 | { "_int","_wxPrintQuality",0}, |
6510 | { "_int","_size_t",0}, | |
6511 | { "_int","_EBool",0}, | |
6512 | { "_int","_uint",0}, | |
6513 | { "_int","_wxWindowID",0}, | |
6514 | { "_int","_unsigned_int",0}, | |
6515 | { "_int","_signed_int",0}, | |
6516 | { "_class_wxMouseEvent","_wxMouseEvent",0}, | |
2f90df85 | 6517 | { "_wxPyCommandEvent","_class_wxPyCommandEvent",0}, |
1d99702e RD |
6518 | { "_class_wxListEvent","_wxListEvent",0}, |
6519 | { "_class_wxSpinEvent","_wxSpinEvent",0}, | |
48115f4a RD |
6520 | { "_class_wxQueryNewPaletteEvent","_wxQueryNewPaletteEvent",0}, |
6521 | { "_class_wxNavigationKeyEvent","_wxNavigationKeyEvent",0}, | |
1d99702e RD |
6522 | { "_wxButton","_class_wxButton",0}, |
6523 | { "_wxSize","_class_wxSize",0}, | |
6524 | { "_wxRegionIterator","_class_wxRegionIterator",0}, | |
6525 | { "_class_wxPrinterDC","_wxPrinterDC",0}, | |
65dd82cb | 6526 | { "_class_wxPyTextDataObject","_wxPyTextDataObject",0}, |
1d99702e RD |
6527 | { "_wxPyTreeItemData","_class_wxPyTreeItemData",0}, |
6528 | { "_class_wxPaintDC","_wxPaintDC",0}, | |
6529 | { "_class_wxSysColourChangedEvent","_wxSysColourChangedEvent",0}, | |
b1462dfa | 6530 | { "_class_wxPyFileDropTarget","_wxPyFileDropTarget",0}, |
1d99702e RD |
6531 | { "_class_wxInitDialogEvent","_wxInitDialogEvent",0}, |
6532 | { "_class_wxComboBox","_wxComboBox",0}, | |
6533 | { "_class_wxRadioButton","_wxRadioButton",0}, | |
2f90df85 | 6534 | { "_wxValidator","_class_wxValidator",0}, |
1d99702e RD |
6535 | { "_class_wxTreeItemId","_wxTreeItemId",0}, |
6536 | { "_wxTreeCtrl","_class_wxTreeCtrl",0}, | |
6537 | { "_class_wxLayoutConstraints","_wxLayoutConstraints",0}, | |
6538 | { "_wxIconizeEvent","_class_wxIconizeEvent",0}, | |
6539 | { "_class_wxControl","_class_wxTreeCtrl",SwigwxTreeCtrlTowxControl}, | |
6540 | { "_class_wxControl","_wxTreeCtrl",SwigwxTreeCtrlTowxControl}, | |
6541 | { "_class_wxControl","_class_wxListCtrl",SwigwxListCtrlTowxControl}, | |
6542 | { "_class_wxControl","_wxListCtrl",SwigwxListCtrlTowxControl}, | |
6543 | { "_class_wxControl","_wxControl",0}, | |
6544 | { "_wxStaticBitmap","_class_wxStaticBitmap",0}, | |
6545 | { "_class_wxIcon","_wxIcon",0}, | |
6546 | { "_class_wxColour","_wxColour",0}, | |
6547 | { "_class_wxScreenDC","_wxScreenDC",0}, | |
6548 | { "_wxPalette","_class_wxPalette",0}, | |
6549 | { "_class_wxIdleEvent","_wxIdleEvent",0}, | |
b1462dfa RD |
6550 | { "_wxCoord","_int",0}, |
6551 | { "_wxCoord","_signed_int",0}, | |
6552 | { "_wxCoord","_unsigned_int",0}, | |
6553 | { "_wxCoord","_wxWindowID",0}, | |
6554 | { "_wxCoord","_uint",0}, | |
6555 | { "_wxCoord","_EBool",0}, | |
6556 | { "_wxCoord","_size_t",0}, | |
6557 | { "_wxCoord","_wxPrintQuality",0}, | |
1d99702e | 6558 | { "_wxEraseEvent","_class_wxEraseEvent",0}, |
b1462dfa | 6559 | { "_wxDataObjectComposite","_class_wxDataObjectComposite",0}, |
1d99702e RD |
6560 | { "_class_wxJoystickEvent","_wxJoystickEvent",0}, |
6561 | { "_wxRegion","_class_wxRegion",0}, | |
6562 | { "_class_wxShowEvent","_wxShowEvent",0}, | |
b1462dfa | 6563 | { "_wxPyDropTarget","_class_wxPyDropTarget",0}, |
1d99702e RD |
6564 | { "_wxActivateEvent","_class_wxActivateEvent",0}, |
6565 | { "_wxGauge","_class_wxGauge",0}, | |
6566 | { "_class_wxCheckListBox","_wxCheckListBox",0}, | |
2abc0a0f | 6567 | { "_class_wxBusyInfo","_wxBusyInfo",0}, |
1d99702e RD |
6568 | { "_class_wxCommandEvent","_class_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, |
6569 | { "_class_wxCommandEvent","_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, | |
6570 | { "_class_wxCommandEvent","_class_wxListEvent",SwigwxListEventTowxCommandEvent}, | |
6571 | { "_class_wxCommandEvent","_wxListEvent",SwigwxListEventTowxCommandEvent}, | |
6572 | { "_class_wxCommandEvent","_wxCommandEvent",0}, | |
6573 | { "_class_wxClientDC","_wxClientDC",0}, | |
6574 | { "_class_wxSizeEvent","_wxSizeEvent",0}, | |
6575 | { "_class_wxListCtrl","_wxListCtrl",0}, | |
b1462dfa | 6576 | { "_wxCustomDataObject","_class_wxCustomDataObject",0}, |
1d99702e RD |
6577 | { "_class_wxSize","_wxSize",0}, |
6578 | { "_class_wxBitmap","_wxBitmap",0}, | |
6579 | { "_class_wxMemoryDC","_wxMemoryDC",0}, | |
b1462dfa | 6580 | { "_wxPyTextDropTarget","_class_wxPyTextDropTarget",0}, |
1d99702e RD |
6581 | { "_wxMenuBar","_class_wxMenuBar",0}, |
6582 | { "_wxTreeEvent","_class_wxTreeEvent",0}, | |
6583 | { "_wxEvtHandler","_class_wxTreeCtrl",SwigwxTreeCtrlTowxEvtHandler}, | |
6584 | { "_wxEvtHandler","_wxTreeCtrl",SwigwxTreeCtrlTowxEvtHandler}, | |
6585 | { "_wxEvtHandler","_class_wxListCtrl",SwigwxListCtrlTowxEvtHandler}, | |
6586 | { "_wxEvtHandler","_wxListCtrl",SwigwxListCtrlTowxEvtHandler}, | |
6587 | { "_wxEvtHandler","_class_wxEvtHandler",0}, | |
6588 | { "_wxMenuItem","_class_wxMenuItem",0}, | |
6589 | { "_class_wxScrollBar","_wxScrollBar",0}, | |
6590 | { "_wxDash","_unsigned_long",0}, | |
6591 | { "_wxDash","_long",0}, | |
6592 | { "_class_wxScrolledWindow","_wxScrolledWindow",0}, | |
6593 | { "_wxKeyEvent","_class_wxKeyEvent",0}, | |
6594 | { "_wxMoveEvent","_class_wxMoveEvent",0}, | |
6595 | { "_class_wxPalette","_wxPalette",0}, | |
b1462dfa | 6596 | { "_wxFileDataObject","_class_wxFileDataObject",0}, |
1d99702e | 6597 | { "_class_wxEraseEvent","_wxEraseEvent",0}, |
b1462dfa | 6598 | { "_class_wxDataObjectComposite","_wxDataObjectComposite",0}, |
1d99702e RD |
6599 | { "_wxWindow","_class_wxTreeCtrl",SwigwxTreeCtrlTowxWindow}, |
6600 | { "_wxWindow","_wxTreeCtrl",SwigwxTreeCtrlTowxWindow}, | |
6601 | { "_wxWindow","_class_wxListCtrl",SwigwxListCtrlTowxWindow}, | |
6602 | { "_wxWindow","_wxListCtrl",SwigwxListCtrlTowxWindow}, | |
6603 | { "_wxWindow","_class_wxWindow",0}, | |
48115f4a | 6604 | { "_class_wxWindowDestroyEvent","_wxWindowDestroyEvent",0}, |
1d99702e RD |
6605 | {0,0,0}}; |
6606 | ||
8ab979d7 RD |
6607 | static PyObject *SWIG_globals; |
6608 | #ifdef __cplusplus | |
6609 | extern "C" | |
6610 | #endif | |
1d99702e | 6611 | SWIGEXPORT(void) initcontrols2c() { |
8ab979d7 RD |
6612 | PyObject *m, *d; |
6613 | SWIG_globals = SWIG_newvarlink(); | |
6614 | m = Py_InitModule("controls2c", controls2cMethods); | |
6615 | d = PyModule_GetDict(m); | |
af309447 RD |
6616 | PyDict_SetItemString(d,"wxLIST_MASK_TEXT", PyInt_FromLong((long) wxLIST_MASK_TEXT)); |
6617 | PyDict_SetItemString(d,"wxLIST_MASK_IMAGE", PyInt_FromLong((long) wxLIST_MASK_IMAGE)); | |
6618 | PyDict_SetItemString(d,"wxLIST_MASK_DATA", PyInt_FromLong((long) wxLIST_MASK_DATA)); | |
6619 | PyDict_SetItemString(d,"wxLIST_MASK_WIDTH", PyInt_FromLong((long) wxLIST_MASK_WIDTH)); | |
6620 | PyDict_SetItemString(d,"wxLIST_MASK_FORMAT", PyInt_FromLong((long) wxLIST_MASK_FORMAT)); | |
bb0054cd | 6621 | PyDict_SetItemString(d,"wxLIST_MASK_STATE", PyInt_FromLong((long) wxLIST_MASK_STATE)); |
af309447 RD |
6622 | PyDict_SetItemString(d,"wxLIST_STATE_DONTCARE", PyInt_FromLong((long) wxLIST_STATE_DONTCARE)); |
6623 | PyDict_SetItemString(d,"wxLIST_STATE_DROPHILITED", PyInt_FromLong((long) wxLIST_STATE_DROPHILITED)); | |
6624 | PyDict_SetItemString(d,"wxLIST_STATE_FOCUSED", PyInt_FromLong((long) wxLIST_STATE_FOCUSED)); | |
6625 | PyDict_SetItemString(d,"wxLIST_STATE_SELECTED", PyInt_FromLong((long) wxLIST_STATE_SELECTED)); | |
6626 | PyDict_SetItemString(d,"wxLIST_STATE_CUT", PyInt_FromLong((long) wxLIST_STATE_CUT)); | |
6627 | PyDict_SetItemString(d,"wxLIST_HITTEST_ABOVE", PyInt_FromLong((long) wxLIST_HITTEST_ABOVE)); | |
6628 | PyDict_SetItemString(d,"wxLIST_HITTEST_BELOW", PyInt_FromLong((long) wxLIST_HITTEST_BELOW)); | |
6629 | PyDict_SetItemString(d,"wxLIST_HITTEST_NOWHERE", PyInt_FromLong((long) wxLIST_HITTEST_NOWHERE)); | |
6630 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMICON)); | |
6631 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMLABEL)); | |
6632 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMRIGHT)); | |
6633 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMSTATEICON)); | |
6634 | PyDict_SetItemString(d,"wxLIST_HITTEST_TOLEFT", PyInt_FromLong((long) wxLIST_HITTEST_TOLEFT)); | |
6635 | PyDict_SetItemString(d,"wxLIST_HITTEST_TORIGHT", PyInt_FromLong((long) wxLIST_HITTEST_TORIGHT)); | |
6636 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEM", PyInt_FromLong((long) wxLIST_HITTEST_ONITEM)); | |
6637 | PyDict_SetItemString(d,"wxLIST_NEXT_ABOVE", PyInt_FromLong((long) wxLIST_NEXT_ABOVE)); | |
6638 | PyDict_SetItemString(d,"wxLIST_NEXT_ALL", PyInt_FromLong((long) wxLIST_NEXT_ALL)); | |
6639 | PyDict_SetItemString(d,"wxLIST_NEXT_BELOW", PyInt_FromLong((long) wxLIST_NEXT_BELOW)); | |
6640 | PyDict_SetItemString(d,"wxLIST_NEXT_LEFT", PyInt_FromLong((long) wxLIST_NEXT_LEFT)); | |
6641 | PyDict_SetItemString(d,"wxLIST_NEXT_RIGHT", PyInt_FromLong((long) wxLIST_NEXT_RIGHT)); | |
6642 | PyDict_SetItemString(d,"wxLIST_ALIGN_DEFAULT", PyInt_FromLong((long) wxLIST_ALIGN_DEFAULT)); | |
6643 | PyDict_SetItemString(d,"wxLIST_ALIGN_LEFT", PyInt_FromLong((long) wxLIST_ALIGN_LEFT)); | |
6644 | PyDict_SetItemString(d,"wxLIST_ALIGN_TOP", PyInt_FromLong((long) wxLIST_ALIGN_TOP)); | |
6645 | PyDict_SetItemString(d,"wxLIST_ALIGN_SNAP_TO_GRID", PyInt_FromLong((long) wxLIST_ALIGN_SNAP_TO_GRID)); | |
6646 | PyDict_SetItemString(d,"wxLIST_FORMAT_LEFT", PyInt_FromLong((long) wxLIST_FORMAT_LEFT)); | |
6647 | PyDict_SetItemString(d,"wxLIST_FORMAT_RIGHT", PyInt_FromLong((long) wxLIST_FORMAT_RIGHT)); | |
6648 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTRE", PyInt_FromLong((long) wxLIST_FORMAT_CENTRE)); | |
6649 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTER", PyInt_FromLong((long) wxLIST_FORMAT_CENTER)); | |
6650 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE", PyInt_FromLong((long) wxLIST_AUTOSIZE)); | |
6651 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE_USEHEADER", PyInt_FromLong((long) wxLIST_AUTOSIZE_USEHEADER)); | |
6652 | PyDict_SetItemString(d,"wxLIST_RECT_BOUNDS", PyInt_FromLong((long) wxLIST_RECT_BOUNDS)); | |
6653 | PyDict_SetItemString(d,"wxLIST_RECT_ICON", PyInt_FromLong((long) wxLIST_RECT_ICON)); | |
6654 | PyDict_SetItemString(d,"wxLIST_RECT_LABEL", PyInt_FromLong((long) wxLIST_RECT_LABEL)); | |
6655 | PyDict_SetItemString(d,"wxLIST_FIND_UP", PyInt_FromLong((long) wxLIST_FIND_UP)); | |
6656 | PyDict_SetItemString(d,"wxLIST_FIND_DOWN", PyInt_FromLong((long) wxLIST_FIND_DOWN)); | |
6657 | PyDict_SetItemString(d,"wxLIST_FIND_LEFT", PyInt_FromLong((long) wxLIST_FIND_LEFT)); | |
6658 | PyDict_SetItemString(d,"wxLIST_FIND_RIGHT", PyInt_FromLong((long) wxLIST_FIND_RIGHT)); | |
694759cf RD |
6659 | PyDict_SetItemString(d,"wxTreeItemIcon_Normal", PyInt_FromLong((long) wxTreeItemIcon_Normal)); |
6660 | PyDict_SetItemString(d,"wxTreeItemIcon_Selected", PyInt_FromLong((long) wxTreeItemIcon_Selected)); | |
6661 | PyDict_SetItemString(d,"wxTreeItemIcon_Expanded", PyInt_FromLong((long) wxTreeItemIcon_Expanded)); | |
6662 | PyDict_SetItemString(d,"wxTreeItemIcon_SelectedExpanded", PyInt_FromLong((long) wxTreeItemIcon_SelectedExpanded)); | |
6663 | PyDict_SetItemString(d,"wxTreeItemIcon_Max", PyInt_FromLong((long) wxTreeItemIcon_Max)); | |
164b735b RD |
6664 | PyDict_SetItemString(d,"wxTREE_HITTEST_ABOVE", PyInt_FromLong((long) wxTREE_HITTEST_ABOVE)); |
6665 | PyDict_SetItemString(d,"wxTREE_HITTEST_BELOW", PyInt_FromLong((long) wxTREE_HITTEST_BELOW)); | |
6666 | PyDict_SetItemString(d,"wxTREE_HITTEST_NOWHERE", PyInt_FromLong((long) wxTREE_HITTEST_NOWHERE)); | |
6667 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMBUTTON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMBUTTON)); | |
6668 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMICON)); | |
6669 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMINDENT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMINDENT)); | |
6670 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLABEL)); | |
6671 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMRIGHT)); | |
6672 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMSTATEICON)); | |
6673 | PyDict_SetItemString(d,"wxTREE_HITTEST_TOLEFT", PyInt_FromLong((long) wxTREE_HITTEST_TOLEFT)); | |
6674 | PyDict_SetItemString(d,"wxTREE_HITTEST_TORIGHT", PyInt_FromLong((long) wxTREE_HITTEST_TORIGHT)); | |
6675 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMUPPERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMUPPERPART)); | |
6676 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLOWERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLOWERPART)); | |
6677 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEM", PyInt_FromLong((long) wxTREE_HITTEST_ONITEM)); | |
1d99702e RD |
6678 | { |
6679 | int i; | |
6680 | for (i = 0; _swig_mapping[i].n1; i++) | |
6681 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
6682 | } | |
8ab979d7 | 6683 | } |