]>
Commit | Line | Data |
---|---|---|
8ab979d7 | 1 | /* |
c368d904 | 2 | * FILE : src/msw/controls2.cpp |
8ab979d7 RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
185d7c3e | 6 | * Version 1.1 (Build 883) |
8ab979d7 RD |
7 | * |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
1d99702e | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
8ab979d7 RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
c368d904 | 30 | # define SWIGEXPORT(a) a _export |
8ab979d7 | 31 | # else |
c368d904 | 32 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
c368d904 | 36 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
37 | #endif |
38 | ||
c368d904 RD |
39 | #include "Python.h" |
40 | ||
8ab979d7 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
185d7c3e | 44 | |
8ab979d7 RD |
45 | extern void SWIG_MakePtr(char *, void *, char *); |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
1d99702e | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
8ab979d7 RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
8ab979d7 RD |
54 | #define SWIG_init initcontrols2c |
55 | ||
56 | #define SWIG_name "controls2c" | |
57 | ||
58 | #include "helpers.h" | |
2f90df85 RD |
59 | #ifdef __WXMSW__ |
60 | #include <windows.h> | |
61 | #endif | |
8ab979d7 RD |
62 | #include <wx/listctrl.h> |
63 | #include <wx/treectrl.h> | |
8ab979d7 RD |
64 | |
65 | static PyObject* l_output_helper(PyObject* target, PyObject* o) { | |
66 | PyObject* o2; | |
185d7c3e | 67 | if (!target) { |
8ab979d7 | 68 | target = o; |
185d7c3e | 69 | } else if (target == Py_None) { |
8ab979d7 RD |
70 | Py_DECREF(Py_None); |
71 | target = o; | |
185d7c3e | 72 | } else { |
8ab979d7 RD |
73 | if (!PyList_Check(target)) { |
74 | o2 = target; | |
75 | target = PyList_New(0); | |
76 | PyList_Append(target, o2); | |
77 | Py_XDECREF(o2); | |
78 | } | |
79 | PyList_Append(target,o); | |
80 | Py_XDECREF(o); | |
81 | } | |
82 | return target; | |
83 | } | |
84 | ||
85 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
86 | PyObject* o2; | |
87 | PyObject* o3; | |
88 | ||
185d7c3e | 89 | if (!target) { |
8ab979d7 | 90 | target = o; |
185d7c3e | 91 | } else if (target == Py_None) { |
8ab979d7 RD |
92 | Py_DECREF(Py_None); |
93 | target = o; | |
185d7c3e | 94 | } else { |
8ab979d7 RD |
95 | if (!PyTuple_Check(target)) { |
96 | o2 = target; | |
97 | target = PyTuple_New(1); | |
98 | PyTuple_SetItem(target, 0, o2); | |
99 | } | |
185d7c3e RD |
100 | o3 = PyTuple_New(1); |
101 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
102 | |
103 | o2 = target; | |
185d7c3e RD |
104 | target = PySequence_Concat(o2, o3); |
105 | Py_DECREF(o2); | |
8ab979d7 RD |
106 | Py_DECREF(o3); |
107 | } | |
108 | return target; | |
109 | } | |
110 | ||
8ab979d7 RD |
111 | static char* wxStringErrorMsg = "string type is required for parameter"; |
112 | ||
f6bcfd97 | 113 | int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { |
dcd38683 RD |
114 | int retval = 0; |
115 | PyObject* func = (PyObject*)funcPtr; | |
116 | bool doSave = wxPyRestoreThread(); | |
117 | ||
118 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
119 | PyObject* result = PyEval_CallObject(func, args); | |
120 | Py_DECREF(args); | |
121 | if (result) { | |
122 | retval = PyInt_AsLong(result); | |
123 | Py_DECREF(result); | |
124 | } | |
125 | ||
126 | wxPySaveThread(doSave); | |
127 | return retval; | |
128 | } | |
129 | ||
130 | ||
cf694132 RD |
131 | class wxPyTreeItemData : public wxTreeItemData { |
132 | public: | |
133 | wxPyTreeItemData(PyObject* obj = NULL) { | |
c368d904 | 134 | if (obj == NULL) |
cf694132 | 135 | obj = Py_None; |
c368d904 RD |
136 | Py_INCREF(obj); |
137 | m_obj = obj; | |
cf694132 RD |
138 | } |
139 | ||
140 | ~wxPyTreeItemData() { | |
1afc06c2 | 141 | bool doSave = wxPyRestoreThread(); |
c368d904 | 142 | Py_DECREF(m_obj); |
1afc06c2 | 143 | wxPySaveThread(doSave); |
cf694132 RD |
144 | } |
145 | ||
146 | PyObject* GetData() { | |
147 | Py_INCREF(m_obj); | |
148 | return m_obj; | |
149 | } | |
150 | ||
151 | void SetData(PyObject* obj) { | |
c368d904 | 152 | bool doSave = wxPyRestoreThread(); |
cf694132 | 153 | Py_DECREF(m_obj); |
c368d904 | 154 | wxPySaveThread(doSave); |
cf694132 RD |
155 | m_obj = obj; |
156 | Py_INCREF(obj); | |
157 | } | |
158 | ||
159 | PyObject* m_obj; | |
160 | }; | |
f6bcfd97 BP |
161 | |
162 | class wxPyTreeCtrl : public wxTreeCtrl { | |
163 | public: | |
164 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
165 | const wxPoint& pos, | |
166 | const wxSize& size, | |
167 | long style, | |
168 | const wxValidator& validator, | |
169 | char* name) : | |
170 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
171 | ||
172 | ||
173 | int OnCompareItems(const wxTreeItemId& item1, | |
174 | const wxTreeItemId& item2) { | |
175 | int rval = 0; | |
176 | bool doSave = wxPyRestoreThread(); | |
177 | if (m_myInst.findCallback("OnCompareItems")) | |
178 | rval = m_myInst.callCallback(Py_BuildValue( | |
179 | "(OO)", | |
180 | wxPyConstructObject((void*)&item1, "wxTreeItemId"), | |
181 | wxPyConstructObject((void*)&item2, "wxTreeItemId"))); | |
182 | else | |
183 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
184 | wxPySaveThread(doSave); | |
185 | return rval; | |
186 | } | |
187 | PYPRIVATE; | |
188 | }; | |
189 | ||
1d99702e RD |
190 | #ifdef __cplusplus |
191 | extern "C" { | |
192 | #endif | |
f6bcfd97 BP |
193 | #define new_wxListItemAttr() (new wxListItemAttr()) |
194 | static PyObject *_wrap_new_wxListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 195 | PyObject * _resultobj; |
f6bcfd97 BP |
196 | wxListItemAttr * _result; |
197 | char *_kwnames[] = { NULL }; | |
198 | char _ptemp[128]; | |
af309447 RD |
199 | |
200 | self = self; | |
f6bcfd97 | 201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxListItemAttr",_kwnames)) |
af309447 | 202 | return NULL; |
cf694132 RD |
203 | { |
204 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 205 | _result = (wxListItemAttr *)new_wxListItemAttr(); |
cf694132 RD |
206 | |
207 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
208 | } if (_result) { |
209 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
210 | _resultobj = Py_BuildValue("s",_ptemp); | |
211 | } else { | |
212 | Py_INCREF(Py_None); | |
213 | _resultobj = Py_None; | |
214 | } | |
af309447 RD |
215 | return _resultobj; |
216 | } | |
217 | ||
f6bcfd97 BP |
218 | #define wxListItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) |
219 | static PyObject *_wrap_wxListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 220 | PyObject * _resultobj; |
f6bcfd97 BP |
221 | wxListItemAttr * _arg0; |
222 | wxColour * _arg1; | |
1d99702e | 223 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
224 | wxColour temp; |
225 | PyObject * _obj1 = 0; | |
226 | char *_kwnames[] = { "self","colText", NULL }; | |
8ab979d7 RD |
227 | |
228 | self = self; | |
f6bcfd97 | 229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 230 | return NULL; |
1d99702e RD |
231 | if (_argo0) { |
232 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
233 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
234 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetTextColour. Expected _wxListItemAttr_p."); | |
8ab979d7 RD |
235 | return NULL; |
236 | } | |
237 | } | |
f6bcfd97 BP |
238 | { |
239 | _arg1 = &temp; | |
240 | if (! wxColour_helper(_obj1, &_arg1)) | |
241 | return NULL; | |
242 | } | |
cf694132 RD |
243 | { |
244 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 245 | wxListItemAttr_SetTextColour(_arg0,*_arg1); |
cf694132 RD |
246 | |
247 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
248 | } Py_INCREF(Py_None); |
249 | _resultobj = Py_None; | |
8ab979d7 RD |
250 | return _resultobj; |
251 | } | |
252 | ||
f6bcfd97 BP |
253 | #define wxListItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
254 | static PyObject *_wrap_wxListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 255 | PyObject * _resultobj; |
f6bcfd97 BP |
256 | wxListItemAttr * _arg0; |
257 | wxColour * _arg1; | |
1d99702e | 258 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
259 | wxColour temp; |
260 | PyObject * _obj1 = 0; | |
261 | char *_kwnames[] = { "self","colBack", NULL }; | |
af309447 RD |
262 | |
263 | self = self; | |
f6bcfd97 | 264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
af309447 | 265 | return NULL; |
1d99702e RD |
266 | if (_argo0) { |
267 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
268 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
269 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetBackgroundColour. Expected _wxListItemAttr_p."); | |
af309447 RD |
270 | return NULL; |
271 | } | |
272 | } | |
f6bcfd97 BP |
273 | { |
274 | _arg1 = &temp; | |
275 | if (! wxColour_helper(_obj1, &_arg1)) | |
276 | return NULL; | |
277 | } | |
cf694132 RD |
278 | { |
279 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 280 | wxListItemAttr_SetBackgroundColour(_arg0,*_arg1); |
cf694132 RD |
281 | |
282 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
283 | } Py_INCREF(Py_None); |
284 | _resultobj = Py_None; | |
af309447 RD |
285 | return _resultobj; |
286 | } | |
287 | ||
f6bcfd97 BP |
288 | #define wxListItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
289 | static PyObject *_wrap_wxListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 290 | PyObject * _resultobj; |
f6bcfd97 BP |
291 | wxListItemAttr * _arg0; |
292 | wxFont * _arg1; | |
1d99702e | 293 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
294 | PyObject * _argo1 = 0; |
295 | char *_kwnames[] = { "self","font", NULL }; | |
8ab979d7 RD |
296 | |
297 | self = self; | |
f6bcfd97 | 298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 299 | return NULL; |
1d99702e RD |
300 | if (_argo0) { |
301 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
302 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
303 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetFont. Expected _wxListItemAttr_p."); | |
304 | return NULL; | |
305 | } | |
306 | } | |
307 | if (_argo1) { | |
308 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
309 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItemAttr_SetFont. Expected _wxFont_p."); | |
8ab979d7 RD |
311 | return NULL; |
312 | } | |
313 | } | |
cf694132 RD |
314 | { |
315 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 316 | wxListItemAttr_SetFont(_arg0,*_arg1); |
cf694132 RD |
317 | |
318 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
319 | } Py_INCREF(Py_None); |
320 | _resultobj = Py_None; | |
8ab979d7 RD |
321 | return _resultobj; |
322 | } | |
323 | ||
f6bcfd97 BP |
324 | #define wxListItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) |
325 | static PyObject *_wrap_wxListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 326 | PyObject * _resultobj; |
f6bcfd97 BP |
327 | bool _result; |
328 | wxListItemAttr * _arg0; | |
1d99702e | 329 | PyObject * _argo0 = 0; |
f6bcfd97 | 330 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
331 | |
332 | self = self; | |
f6bcfd97 | 333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasTextColour",_kwnames,&_argo0)) |
af309447 | 334 | return NULL; |
1d99702e RD |
335 | if (_argo0) { |
336 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
337 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
338 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasTextColour. Expected _wxListItemAttr_p."); | |
af309447 RD |
339 | return NULL; |
340 | } | |
341 | } | |
cf694132 RD |
342 | { |
343 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 344 | _result = (bool )wxListItemAttr_HasTextColour(_arg0); |
cf694132 RD |
345 | |
346 | wxPy_END_ALLOW_THREADS; | |
347 | } _resultobj = Py_BuildValue("i",_result); | |
af309447 RD |
348 | return _resultobj; |
349 | } | |
350 | ||
f6bcfd97 BP |
351 | #define wxListItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) |
352 | static PyObject *_wrap_wxListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 353 | PyObject * _resultobj; |
f6bcfd97 BP |
354 | bool _result; |
355 | wxListItemAttr * _arg0; | |
1d99702e | 356 | PyObject * _argo0 = 0; |
efc5f224 | 357 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
358 | |
359 | self = self; | |
f6bcfd97 | 360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasBackgroundColour",_kwnames,&_argo0)) |
8ab979d7 | 361 | return NULL; |
1d99702e RD |
362 | if (_argo0) { |
363 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
364 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
365 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasBackgroundColour. Expected _wxListItemAttr_p."); | |
8ab979d7 RD |
366 | return NULL; |
367 | } | |
368 | } | |
cf694132 RD |
369 | { |
370 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 371 | _result = (bool )wxListItemAttr_HasBackgroundColour(_arg0); |
cf694132 RD |
372 | |
373 | wxPy_END_ALLOW_THREADS; | |
374 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
375 | return _resultobj; |
376 | } | |
377 | ||
f6bcfd97 BP |
378 | #define wxListItemAttr_HasFont(_swigobj) (_swigobj->HasFont()) |
379 | static PyObject *_wrap_wxListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 380 | PyObject * _resultobj; |
f6bcfd97 BP |
381 | bool _result; |
382 | wxListItemAttr * _arg0; | |
1d99702e | 383 | PyObject * _argo0 = 0; |
f6bcfd97 | 384 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
385 | |
386 | self = self; | |
f6bcfd97 | 387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasFont",_kwnames,&_argo0)) |
af309447 | 388 | return NULL; |
1d99702e RD |
389 | if (_argo0) { |
390 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
391 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
392 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasFont. Expected _wxListItemAttr_p."); | |
af309447 RD |
393 | return NULL; |
394 | } | |
395 | } | |
cf694132 RD |
396 | { |
397 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 398 | _result = (bool )wxListItemAttr_HasFont(_arg0); |
cf694132 RD |
399 | |
400 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 401 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
402 | return _resultobj; |
403 | } | |
404 | ||
f6bcfd97 BP |
405 | #define wxListItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) |
406 | static PyObject *_wrap_wxListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 407 | PyObject * _resultobj; |
f6bcfd97 BP |
408 | wxColour * _result; |
409 | wxListItemAttr * _arg0; | |
1d99702e | 410 | PyObject * _argo0 = 0; |
efc5f224 | 411 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 412 | char _ptemp[128]; |
8ab979d7 RD |
413 | |
414 | self = self; | |
f6bcfd97 | 415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetTextColour",_kwnames,&_argo0)) |
8ab979d7 | 416 | return NULL; |
1d99702e RD |
417 | if (_argo0) { |
418 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
419 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
420 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetTextColour. Expected _wxListItemAttr_p."); | |
8ab979d7 RD |
421 | return NULL; |
422 | } | |
423 | } | |
cf694132 RD |
424 | { |
425 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
426 | const wxColour & _result_ref = wxListItemAttr_GetTextColour(_arg0); |
427 | _result = (wxColour *) &_result_ref; | |
cf694132 RD |
428 | |
429 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
430 | } if (_result) { |
431 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
432 | _resultobj = Py_BuildValue("s",_ptemp); | |
433 | } else { | |
434 | Py_INCREF(Py_None); | |
435 | _resultobj = Py_None; | |
436 | } | |
8ab979d7 RD |
437 | return _resultobj; |
438 | } | |
439 | ||
f6bcfd97 BP |
440 | #define wxListItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) |
441 | static PyObject *_wrap_wxListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 442 | PyObject * _resultobj; |
f6bcfd97 BP |
443 | wxColour * _result; |
444 | wxListItemAttr * _arg0; | |
1d99702e | 445 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
446 | char *_kwnames[] = { "self", NULL }; |
447 | char _ptemp[128]; | |
af309447 RD |
448 | |
449 | self = self; | |
f6bcfd97 | 450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetBackgroundColour",_kwnames,&_argo0)) |
af309447 | 451 | return NULL; |
1d99702e RD |
452 | if (_argo0) { |
453 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
454 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
455 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetBackgroundColour. Expected _wxListItemAttr_p."); | |
af309447 RD |
456 | return NULL; |
457 | } | |
458 | } | |
cf694132 RD |
459 | { |
460 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
461 | const wxColour & _result_ref = wxListItemAttr_GetBackgroundColour(_arg0); |
462 | _result = (wxColour *) &_result_ref; | |
cf694132 RD |
463 | |
464 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
465 | } if (_result) { |
466 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
467 | _resultobj = Py_BuildValue("s",_ptemp); | |
468 | } else { | |
469 | Py_INCREF(Py_None); | |
470 | _resultobj = Py_None; | |
471 | } | |
af309447 RD |
472 | return _resultobj; |
473 | } | |
474 | ||
f6bcfd97 BP |
475 | #define wxListItemAttr_GetFont(_swigobj) (_swigobj->GetFont()) |
476 | static PyObject *_wrap_wxListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 477 | PyObject * _resultobj; |
f6bcfd97 BP |
478 | wxFont * _result; |
479 | wxListItemAttr * _arg0; | |
1d99702e | 480 | PyObject * _argo0 = 0; |
efc5f224 | 481 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 482 | char _ptemp[128]; |
8ab979d7 RD |
483 | |
484 | self = self; | |
f6bcfd97 | 485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetFont",_kwnames,&_argo0)) |
8ab979d7 | 486 | return NULL; |
1d99702e RD |
487 | if (_argo0) { |
488 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
489 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
490 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetFont. Expected _wxListItemAttr_p."); | |
8ab979d7 RD |
491 | return NULL; |
492 | } | |
493 | } | |
cf694132 RD |
494 | { |
495 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
496 | const wxFont & _result_ref = wxListItemAttr_GetFont(_arg0); |
497 | _result = (wxFont *) &_result_ref; | |
cf694132 RD |
498 | |
499 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
500 | } if (_result) { |
501 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
502 | _resultobj = Py_BuildValue("s",_ptemp); | |
503 | } else { | |
504 | Py_INCREF(Py_None); | |
505 | _resultobj = Py_None; | |
506 | } | |
8ab979d7 RD |
507 | return _resultobj; |
508 | } | |
509 | ||
f6bcfd97 BP |
510 | #define new_wxListItem() (new wxListItem()) |
511 | static PyObject *_wrap_new_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 512 | PyObject * _resultobj; |
f6bcfd97 BP |
513 | wxListItem * _result; |
514 | char *_kwnames[] = { NULL }; | |
515 | char _ptemp[128]; | |
af309447 RD |
516 | |
517 | self = self; | |
f6bcfd97 | 518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxListItem",_kwnames)) |
af309447 | 519 | return NULL; |
af309447 | 520 | { |
cf694132 | 521 | wxPy_BEGIN_ALLOW_THREADS; |
f6bcfd97 | 522 | _result = (wxListItem *)new_wxListItem(); |
cf694132 RD |
523 | |
524 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
525 | } if (_result) { |
526 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p"); | |
527 | _resultobj = Py_BuildValue("s",_ptemp); | |
528 | } else { | |
529 | Py_INCREF(Py_None); | |
530 | _resultobj = Py_None; | |
531 | } | |
af309447 RD |
532 | return _resultobj; |
533 | } | |
534 | ||
f6bcfd97 BP |
535 | #define delete_wxListItem(_swigobj) (delete _swigobj) |
536 | static PyObject *_wrap_delete_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 537 | PyObject * _resultobj; |
8ab979d7 | 538 | wxListItem * _arg0; |
1d99702e | 539 | PyObject * _argo0 = 0; |
efc5f224 | 540 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
541 | |
542 | self = self; | |
f6bcfd97 | 543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxListItem",_kwnames,&_argo0)) |
8ab979d7 | 544 | return NULL; |
1d99702e RD |
545 | if (_argo0) { |
546 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
547 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 548 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxListItem. Expected _wxListItem_p."); |
8ab979d7 RD |
549 | return NULL; |
550 | } | |
551 | } | |
8ab979d7 | 552 | { |
cf694132 | 553 | wxPy_BEGIN_ALLOW_THREADS; |
f6bcfd97 | 554 | delete_wxListItem(_arg0); |
cf694132 RD |
555 | |
556 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
557 | } Py_INCREF(Py_None); |
558 | _resultobj = Py_None; | |
8ab979d7 RD |
559 | return _resultobj; |
560 | } | |
561 | ||
f6bcfd97 BP |
562 | #define wxListItem_Clear(_swigobj) (_swigobj->Clear()) |
563 | static PyObject *_wrap_wxListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 564 | PyObject * _resultobj; |
af309447 | 565 | wxListItem * _arg0; |
1d99702e | 566 | PyObject * _argo0 = 0; |
f6bcfd97 | 567 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
568 | |
569 | self = self; | |
f6bcfd97 | 570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_Clear",_kwnames,&_argo0)) |
af309447 | 571 | return NULL; |
1d99702e RD |
572 | if (_argo0) { |
573 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
574 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 575 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_Clear. Expected _wxListItem_p."); |
af309447 RD |
576 | return NULL; |
577 | } | |
578 | } | |
cf694132 RD |
579 | { |
580 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 581 | wxListItem_Clear(_arg0); |
cf694132 RD |
582 | |
583 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
584 | } Py_INCREF(Py_None); |
585 | _resultobj = Py_None; | |
af309447 RD |
586 | return _resultobj; |
587 | } | |
588 | ||
f6bcfd97 BP |
589 | #define wxListItem_ClearAttributes(_swigobj) (_swigobj->ClearAttributes()) |
590 | static PyObject *_wrap_wxListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 591 | PyObject * _resultobj; |
8ab979d7 | 592 | wxListItem * _arg0; |
1d99702e | 593 | PyObject * _argo0 = 0; |
efc5f224 | 594 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
595 | |
596 | self = self; | |
f6bcfd97 | 597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_ClearAttributes",_kwnames,&_argo0)) |
8ab979d7 | 598 | return NULL; |
1d99702e RD |
599 | if (_argo0) { |
600 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
601 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 602 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_ClearAttributes. Expected _wxListItem_p."); |
8ab979d7 RD |
603 | return NULL; |
604 | } | |
605 | } | |
cf694132 RD |
606 | { |
607 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 608 | wxListItem_ClearAttributes(_arg0); |
cf694132 RD |
609 | |
610 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
611 | } Py_INCREF(Py_None); |
612 | _resultobj = Py_None; | |
613 | return _resultobj; | |
614 | } | |
615 | ||
616 | #define wxListItem_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) | |
617 | static PyObject *_wrap_wxListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
618 | PyObject * _resultobj; | |
619 | wxListItem * _arg0; | |
620 | long _arg1; | |
621 | PyObject * _argo0 = 0; | |
622 | char *_kwnames[] = { "self","mask", NULL }; | |
623 | ||
624 | self = self; | |
625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetMask",_kwnames,&_argo0,&_arg1)) | |
626 | return NULL; | |
627 | if (_argo0) { | |
628 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
629 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
630 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetMask. Expected _wxListItem_p."); | |
631 | return NULL; | |
632 | } | |
633 | } | |
634 | { | |
635 | wxPy_BEGIN_ALLOW_THREADS; | |
636 | wxListItem_SetMask(_arg0,_arg1); | |
637 | ||
638 | wxPy_END_ALLOW_THREADS; | |
639 | } Py_INCREF(Py_None); | |
640 | _resultobj = Py_None; | |
641 | return _resultobj; | |
642 | } | |
643 | ||
644 | #define wxListItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
645 | static PyObject *_wrap_wxListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
646 | PyObject * _resultobj; | |
647 | wxListItem * _arg0; | |
648 | long _arg1; | |
649 | PyObject * _argo0 = 0; | |
650 | char *_kwnames[] = { "self","id", NULL }; | |
651 | ||
652 | self = self; | |
653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetId",_kwnames,&_argo0,&_arg1)) | |
654 | return NULL; | |
655 | if (_argo0) { | |
656 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
657 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
658 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetId. Expected _wxListItem_p."); | |
659 | return NULL; | |
660 | } | |
661 | } | |
662 | { | |
663 | wxPy_BEGIN_ALLOW_THREADS; | |
664 | wxListItem_SetId(_arg0,_arg1); | |
665 | ||
666 | wxPy_END_ALLOW_THREADS; | |
667 | } Py_INCREF(Py_None); | |
668 | _resultobj = Py_None; | |
669 | return _resultobj; | |
670 | } | |
671 | ||
672 | #define wxListItem_SetColumn(_swigobj,_swigarg0) (_swigobj->SetColumn(_swigarg0)) | |
673 | static PyObject *_wrap_wxListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
674 | PyObject * _resultobj; | |
675 | wxListItem * _arg0; | |
676 | int _arg1; | |
677 | PyObject * _argo0 = 0; | |
678 | char *_kwnames[] = { "self","col", NULL }; | |
679 | ||
680 | self = self; | |
681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetColumn",_kwnames,&_argo0,&_arg1)) | |
682 | return NULL; | |
683 | if (_argo0) { | |
684 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
685 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
686 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetColumn. Expected _wxListItem_p."); | |
687 | return NULL; | |
688 | } | |
689 | } | |
690 | { | |
691 | wxPy_BEGIN_ALLOW_THREADS; | |
692 | wxListItem_SetColumn(_arg0,_arg1); | |
693 | ||
694 | wxPy_END_ALLOW_THREADS; | |
695 | } Py_INCREF(Py_None); | |
696 | _resultobj = Py_None; | |
697 | return _resultobj; | |
698 | } | |
699 | ||
700 | #define wxListItem_SetState(_swigobj,_swigarg0) (_swigobj->SetState(_swigarg0)) | |
701 | static PyObject *_wrap_wxListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
702 | PyObject * _resultobj; | |
703 | wxListItem * _arg0; | |
704 | long _arg1; | |
705 | PyObject * _argo0 = 0; | |
706 | char *_kwnames[] = { "self","state", NULL }; | |
707 | ||
708 | self = self; | |
709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetState",_kwnames,&_argo0,&_arg1)) | |
710 | return NULL; | |
711 | if (_argo0) { | |
712 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
713 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
714 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetState. Expected _wxListItem_p."); | |
715 | return NULL; | |
716 | } | |
717 | } | |
718 | { | |
719 | wxPy_BEGIN_ALLOW_THREADS; | |
720 | wxListItem_SetState(_arg0,_arg1); | |
721 | ||
722 | wxPy_END_ALLOW_THREADS; | |
723 | } Py_INCREF(Py_None); | |
724 | _resultobj = Py_None; | |
725 | return _resultobj; | |
726 | } | |
727 | ||
728 | #define wxListItem_SetStateMask(_swigobj,_swigarg0) (_swigobj->SetStateMask(_swigarg0)) | |
729 | static PyObject *_wrap_wxListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
730 | PyObject * _resultobj; | |
731 | wxListItem * _arg0; | |
732 | long _arg1; | |
733 | PyObject * _argo0 = 0; | |
734 | char *_kwnames[] = { "self","stateMask", NULL }; | |
735 | ||
736 | self = self; | |
737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetStateMask",_kwnames,&_argo0,&_arg1)) | |
738 | return NULL; | |
739 | if (_argo0) { | |
740 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
741 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetStateMask. Expected _wxListItem_p."); | |
743 | return NULL; | |
744 | } | |
745 | } | |
746 | { | |
747 | wxPy_BEGIN_ALLOW_THREADS; | |
748 | wxListItem_SetStateMask(_arg0,_arg1); | |
749 | ||
750 | wxPy_END_ALLOW_THREADS; | |
751 | } Py_INCREF(Py_None); | |
752 | _resultobj = Py_None; | |
753 | return _resultobj; | |
754 | } | |
755 | ||
756 | #define wxListItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) | |
757 | static PyObject *_wrap_wxListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
758 | PyObject * _resultobj; | |
759 | wxListItem * _arg0; | |
760 | wxString * _arg1; | |
761 | PyObject * _argo0 = 0; | |
762 | PyObject * _obj1 = 0; | |
763 | char *_kwnames[] = { "self","text", NULL }; | |
764 | ||
765 | self = self; | |
766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetText",_kwnames,&_argo0,&_obj1)) | |
767 | return NULL; | |
768 | if (_argo0) { | |
769 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
770 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetText. Expected _wxListItem_p."); | |
772 | return NULL; | |
773 | } | |
774 | } | |
775 | { | |
185d7c3e RD |
776 | #if PYTHON_API_VERSION >= 1009 |
777 | char* tmpPtr; int tmpSize; | |
778 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
779 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
780 | return NULL; | |
781 | } | |
782 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
783 | return NULL; | |
784 | _arg1 = new wxString(tmpPtr, tmpSize); | |
785 | #else | |
f6bcfd97 BP |
786 | if (!PyString_Check(_obj1)) { |
787 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
788 | return NULL; | |
789 | } | |
185d7c3e RD |
790 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
791 | #endif | |
f6bcfd97 BP |
792 | } |
793 | { | |
794 | wxPy_BEGIN_ALLOW_THREADS; | |
795 | wxListItem_SetText(_arg0,*_arg1); | |
796 | ||
797 | wxPy_END_ALLOW_THREADS; | |
798 | } Py_INCREF(Py_None); | |
799 | _resultobj = Py_None; | |
800 | { | |
801 | if (_obj1) | |
802 | delete _arg1; | |
803 | } | |
804 | return _resultobj; | |
805 | } | |
806 | ||
807 | #define wxListItem_SetImage(_swigobj,_swigarg0) (_swigobj->SetImage(_swigarg0)) | |
808 | static PyObject *_wrap_wxListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
809 | PyObject * _resultobj; | |
810 | wxListItem * _arg0; | |
811 | int _arg1; | |
812 | PyObject * _argo0 = 0; | |
813 | char *_kwnames[] = { "self","image", NULL }; | |
814 | ||
815 | self = self; | |
816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetImage",_kwnames,&_argo0,&_arg1)) | |
817 | return NULL; | |
818 | if (_argo0) { | |
819 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
820 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
821 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetImage. Expected _wxListItem_p."); | |
822 | return NULL; | |
823 | } | |
824 | } | |
825 | { | |
826 | wxPy_BEGIN_ALLOW_THREADS; | |
827 | wxListItem_SetImage(_arg0,_arg1); | |
828 | ||
829 | wxPy_END_ALLOW_THREADS; | |
830 | } Py_INCREF(Py_None); | |
831 | _resultobj = Py_None; | |
832 | return _resultobj; | |
833 | } | |
834 | ||
835 | #define wxListItem_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
836 | static PyObject *_wrap_wxListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
837 | PyObject * _resultobj; | |
838 | wxListItem * _arg0; | |
839 | long _arg1; | |
840 | PyObject * _argo0 = 0; | |
841 | char *_kwnames[] = { "self","data", NULL }; | |
842 | ||
843 | self = self; | |
844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetData",_kwnames,&_argo0,&_arg1)) | |
845 | return NULL; | |
846 | if (_argo0) { | |
847 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
848 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
849 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetData. Expected _wxListItem_p."); | |
850 | return NULL; | |
851 | } | |
852 | } | |
853 | { | |
854 | wxPy_BEGIN_ALLOW_THREADS; | |
855 | wxListItem_SetData(_arg0,_arg1); | |
856 | ||
857 | wxPy_END_ALLOW_THREADS; | |
858 | } Py_INCREF(Py_None); | |
859 | _resultobj = Py_None; | |
860 | return _resultobj; | |
861 | } | |
862 | ||
863 | #define wxListItem_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
864 | static PyObject *_wrap_wxListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
865 | PyObject * _resultobj; | |
866 | wxListItem * _arg0; | |
867 | int _arg1; | |
868 | PyObject * _argo0 = 0; | |
869 | char *_kwnames[] = { "self","width", NULL }; | |
870 | ||
871 | self = self; | |
872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetWidth",_kwnames,&_argo0,&_arg1)) | |
873 | return NULL; | |
874 | if (_argo0) { | |
875 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
876 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
877 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetWidth. Expected _wxListItem_p."); | |
878 | return NULL; | |
879 | } | |
880 | } | |
881 | { | |
882 | wxPy_BEGIN_ALLOW_THREADS; | |
883 | wxListItem_SetWidth(_arg0,_arg1); | |
884 | ||
885 | wxPy_END_ALLOW_THREADS; | |
886 | } Py_INCREF(Py_None); | |
887 | _resultobj = Py_None; | |
888 | return _resultobj; | |
889 | } | |
890 | ||
891 | #define wxListItem_SetAlign(_swigobj,_swigarg0) (_swigobj->SetAlign(_swigarg0)) | |
892 | static PyObject *_wrap_wxListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
893 | PyObject * _resultobj; | |
894 | wxListItem * _arg0; | |
895 | wxListColumnFormat _arg1; | |
896 | PyObject * _argo0 = 0; | |
897 | char *_kwnames[] = { "self","align", NULL }; | |
898 | ||
899 | self = self; | |
900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetAlign",_kwnames,&_argo0,&_arg1)) | |
901 | return NULL; | |
902 | if (_argo0) { | |
903 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
904 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
905 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetAlign. Expected _wxListItem_p."); | |
906 | return NULL; | |
907 | } | |
908 | } | |
909 | { | |
910 | wxPy_BEGIN_ALLOW_THREADS; | |
911 | wxListItem_SetAlign(_arg0,_arg1); | |
912 | ||
913 | wxPy_END_ALLOW_THREADS; | |
914 | } Py_INCREF(Py_None); | |
915 | _resultobj = Py_None; | |
916 | return _resultobj; | |
917 | } | |
918 | ||
919 | #define wxListItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
920 | static PyObject *_wrap_wxListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
921 | PyObject * _resultobj; | |
922 | wxListItem * _arg0; | |
923 | wxColour * _arg1; | |
924 | PyObject * _argo0 = 0; | |
925 | wxColour temp; | |
926 | PyObject * _obj1 = 0; | |
927 | char *_kwnames[] = { "self","colText", NULL }; | |
928 | ||
929 | self = self; | |
930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
931 | return NULL; | |
932 | if (_argo0) { | |
933 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
934 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
935 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetTextColour. Expected _wxListItem_p."); | |
936 | return NULL; | |
937 | } | |
938 | } | |
939 | { | |
940 | _arg1 = &temp; | |
941 | if (! wxColour_helper(_obj1, &_arg1)) | |
942 | return NULL; | |
943 | } | |
944 | { | |
945 | wxPy_BEGIN_ALLOW_THREADS; | |
946 | wxListItem_SetTextColour(_arg0,*_arg1); | |
947 | ||
948 | wxPy_END_ALLOW_THREADS; | |
949 | } Py_INCREF(Py_None); | |
950 | _resultobj = Py_None; | |
951 | return _resultobj; | |
952 | } | |
953 | ||
954 | #define wxListItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
955 | static PyObject *_wrap_wxListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
956 | PyObject * _resultobj; | |
957 | wxListItem * _arg0; | |
958 | wxColour * _arg1; | |
959 | PyObject * _argo0 = 0; | |
960 | wxColour temp; | |
961 | PyObject * _obj1 = 0; | |
962 | char *_kwnames[] = { "self","colBack", NULL }; | |
963 | ||
964 | self = self; | |
965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
966 | return NULL; | |
967 | if (_argo0) { | |
968 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
969 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
970 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetBackgroundColour. Expected _wxListItem_p."); | |
971 | return NULL; | |
972 | } | |
973 | } | |
974 | { | |
975 | _arg1 = &temp; | |
976 | if (! wxColour_helper(_obj1, &_arg1)) | |
977 | return NULL; | |
978 | } | |
979 | { | |
980 | wxPy_BEGIN_ALLOW_THREADS; | |
981 | wxListItem_SetBackgroundColour(_arg0,*_arg1); | |
982 | ||
983 | wxPy_END_ALLOW_THREADS; | |
984 | } Py_INCREF(Py_None); | |
985 | _resultobj = Py_None; | |
986 | return _resultobj; | |
987 | } | |
988 | ||
989 | #define wxListItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
990 | static PyObject *_wrap_wxListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
991 | PyObject * _resultobj; | |
992 | wxListItem * _arg0; | |
993 | wxFont * _arg1; | |
994 | PyObject * _argo0 = 0; | |
995 | PyObject * _argo1 = 0; | |
996 | char *_kwnames[] = { "self","font", NULL }; | |
997 | ||
998 | self = self; | |
999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetFont",_kwnames,&_argo0,&_argo1)) | |
1000 | return NULL; | |
1001 | if (_argo0) { | |
1002 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1003 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1004 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetFont. Expected _wxListItem_p."); | |
1005 | return NULL; | |
1006 | } | |
1007 | } | |
1008 | if (_argo1) { | |
1009 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1010 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
1011 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItem_SetFont. Expected _wxFont_p."); | |
1012 | return NULL; | |
1013 | } | |
1014 | } | |
1015 | { | |
1016 | wxPy_BEGIN_ALLOW_THREADS; | |
1017 | wxListItem_SetFont(_arg0,*_arg1); | |
1018 | ||
1019 | wxPy_END_ALLOW_THREADS; | |
1020 | } Py_INCREF(Py_None); | |
1021 | _resultobj = Py_None; | |
1022 | return _resultobj; | |
1023 | } | |
1024 | ||
1025 | #define wxListItem_GetMask(_swigobj) (_swigobj->GetMask()) | |
1026 | static PyObject *_wrap_wxListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1027 | PyObject * _resultobj; | |
1028 | long _result; | |
1029 | wxListItem * _arg0; | |
1030 | PyObject * _argo0 = 0; | |
1031 | char *_kwnames[] = { "self", NULL }; | |
1032 | ||
1033 | self = self; | |
1034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetMask",_kwnames,&_argo0)) | |
1035 | return NULL; | |
1036 | if (_argo0) { | |
1037 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1038 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1039 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetMask. Expected _wxListItem_p."); | |
1040 | return NULL; | |
1041 | } | |
1042 | } | |
1043 | { | |
1044 | wxPy_BEGIN_ALLOW_THREADS; | |
1045 | _result = (long )wxListItem_GetMask(_arg0); | |
1046 | ||
1047 | wxPy_END_ALLOW_THREADS; | |
1048 | } _resultobj = Py_BuildValue("l",_result); | |
1049 | return _resultobj; | |
1050 | } | |
1051 | ||
1052 | #define wxListItem_GetId(_swigobj) (_swigobj->GetId()) | |
1053 | static PyObject *_wrap_wxListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1054 | PyObject * _resultobj; | |
1055 | long _result; | |
1056 | wxListItem * _arg0; | |
1057 | PyObject * _argo0 = 0; | |
1058 | char *_kwnames[] = { "self", NULL }; | |
1059 | ||
1060 | self = self; | |
1061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetId",_kwnames,&_argo0)) | |
1062 | return NULL; | |
1063 | if (_argo0) { | |
1064 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1065 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1066 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetId. Expected _wxListItem_p."); | |
1067 | return NULL; | |
1068 | } | |
1069 | } | |
1070 | { | |
1071 | wxPy_BEGIN_ALLOW_THREADS; | |
1072 | _result = (long )wxListItem_GetId(_arg0); | |
1073 | ||
1074 | wxPy_END_ALLOW_THREADS; | |
1075 | } _resultobj = Py_BuildValue("l",_result); | |
1076 | return _resultobj; | |
1077 | } | |
1078 | ||
1079 | #define wxListItem_GetColumn(_swigobj) (_swigobj->GetColumn()) | |
1080 | static PyObject *_wrap_wxListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1081 | PyObject * _resultobj; | |
1082 | int _result; | |
1083 | wxListItem * _arg0; | |
1084 | PyObject * _argo0 = 0; | |
1085 | char *_kwnames[] = { "self", NULL }; | |
1086 | ||
1087 | self = self; | |
1088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetColumn",_kwnames,&_argo0)) | |
1089 | return NULL; | |
1090 | if (_argo0) { | |
1091 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1092 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1093 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetColumn. Expected _wxListItem_p."); | |
1094 | return NULL; | |
1095 | } | |
1096 | } | |
1097 | { | |
1098 | wxPy_BEGIN_ALLOW_THREADS; | |
1099 | _result = (int )wxListItem_GetColumn(_arg0); | |
1100 | ||
1101 | wxPy_END_ALLOW_THREADS; | |
1102 | } _resultobj = Py_BuildValue("i",_result); | |
1103 | return _resultobj; | |
1104 | } | |
1105 | ||
1106 | #define wxListItem_GetState(_swigobj) (_swigobj->GetState()) | |
1107 | static PyObject *_wrap_wxListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1108 | PyObject * _resultobj; | |
1109 | long _result; | |
1110 | wxListItem * _arg0; | |
1111 | PyObject * _argo0 = 0; | |
1112 | char *_kwnames[] = { "self", NULL }; | |
1113 | ||
1114 | self = self; | |
1115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetState",_kwnames,&_argo0)) | |
1116 | return NULL; | |
1117 | if (_argo0) { | |
1118 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1119 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1120 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetState. Expected _wxListItem_p."); | |
1121 | return NULL; | |
1122 | } | |
1123 | } | |
1124 | { | |
1125 | wxPy_BEGIN_ALLOW_THREADS; | |
1126 | _result = (long )wxListItem_GetState(_arg0); | |
1127 | ||
1128 | wxPy_END_ALLOW_THREADS; | |
1129 | } _resultobj = Py_BuildValue("l",_result); | |
1130 | return _resultobj; | |
1131 | } | |
1132 | ||
1133 | #define wxListItem_GetText(_swigobj) (_swigobj->GetText()) | |
1134 | static PyObject *_wrap_wxListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1135 | PyObject * _resultobj; | |
1136 | wxString * _result; | |
1137 | wxListItem * _arg0; | |
1138 | PyObject * _argo0 = 0; | |
1139 | char *_kwnames[] = { "self", NULL }; | |
1140 | ||
1141 | self = self; | |
1142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetText",_kwnames,&_argo0)) | |
1143 | return NULL; | |
1144 | if (_argo0) { | |
1145 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1146 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1147 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetText. Expected _wxListItem_p."); | |
1148 | return NULL; | |
1149 | } | |
1150 | } | |
1151 | { | |
1152 | wxPy_BEGIN_ALLOW_THREADS; | |
1153 | const wxString & _result_ref = wxListItem_GetText(_arg0); | |
1154 | _result = (wxString *) &_result_ref; | |
1155 | ||
1156 | wxPy_END_ALLOW_THREADS; | |
1157 | }{ | |
1158 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1159 | } | |
1160 | return _resultobj; | |
1161 | } | |
1162 | ||
1163 | #define wxListItem_GetImage(_swigobj) (_swigobj->GetImage()) | |
1164 | static PyObject *_wrap_wxListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1165 | PyObject * _resultobj; | |
1166 | int _result; | |
1167 | wxListItem * _arg0; | |
1168 | PyObject * _argo0 = 0; | |
1169 | char *_kwnames[] = { "self", NULL }; | |
1170 | ||
1171 | self = self; | |
1172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetImage",_kwnames,&_argo0)) | |
1173 | return NULL; | |
1174 | if (_argo0) { | |
1175 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1176 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1177 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetImage. Expected _wxListItem_p."); | |
1178 | return NULL; | |
1179 | } | |
1180 | } | |
1181 | { | |
1182 | wxPy_BEGIN_ALLOW_THREADS; | |
1183 | _result = (int )wxListItem_GetImage(_arg0); | |
1184 | ||
1185 | wxPy_END_ALLOW_THREADS; | |
1186 | } _resultobj = Py_BuildValue("i",_result); | |
1187 | return _resultobj; | |
1188 | } | |
1189 | ||
1190 | #define wxListItem_GetData(_swigobj) (_swigobj->GetData()) | |
1191 | static PyObject *_wrap_wxListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1192 | PyObject * _resultobj; | |
1193 | long _result; | |
1194 | wxListItem * _arg0; | |
1195 | PyObject * _argo0 = 0; | |
1196 | char *_kwnames[] = { "self", NULL }; | |
1197 | ||
1198 | self = self; | |
1199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetData",_kwnames,&_argo0)) | |
1200 | return NULL; | |
1201 | if (_argo0) { | |
1202 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1203 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1204 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetData. Expected _wxListItem_p."); | |
1205 | return NULL; | |
1206 | } | |
1207 | } | |
1208 | { | |
1209 | wxPy_BEGIN_ALLOW_THREADS; | |
1210 | _result = (long )wxListItem_GetData(_arg0); | |
1211 | ||
1212 | wxPy_END_ALLOW_THREADS; | |
1213 | } _resultobj = Py_BuildValue("l",_result); | |
1214 | return _resultobj; | |
1215 | } | |
1216 | ||
1217 | #define wxListItem_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1218 | static PyObject *_wrap_wxListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1219 | PyObject * _resultobj; | |
1220 | int _result; | |
1221 | wxListItem * _arg0; | |
1222 | PyObject * _argo0 = 0; | |
1223 | char *_kwnames[] = { "self", NULL }; | |
1224 | ||
1225 | self = self; | |
1226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetWidth",_kwnames,&_argo0)) | |
1227 | return NULL; | |
1228 | if (_argo0) { | |
1229 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1230 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1231 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetWidth. Expected _wxListItem_p."); | |
1232 | return NULL; | |
1233 | } | |
1234 | } | |
1235 | { | |
1236 | wxPy_BEGIN_ALLOW_THREADS; | |
1237 | _result = (int )wxListItem_GetWidth(_arg0); | |
1238 | ||
1239 | wxPy_END_ALLOW_THREADS; | |
1240 | } _resultobj = Py_BuildValue("i",_result); | |
1241 | return _resultobj; | |
1242 | } | |
1243 | ||
1244 | #define wxListItem_GetAlign(_swigobj) (_swigobj->GetAlign()) | |
1245 | static PyObject *_wrap_wxListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1246 | PyObject * _resultobj; | |
1247 | wxListColumnFormat _result; | |
1248 | wxListItem * _arg0; | |
1249 | PyObject * _argo0 = 0; | |
1250 | char *_kwnames[] = { "self", NULL }; | |
1251 | ||
1252 | self = self; | |
1253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAlign",_kwnames,&_argo0)) | |
1254 | return NULL; | |
1255 | if (_argo0) { | |
1256 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1257 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1258 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAlign. Expected _wxListItem_p."); | |
1259 | return NULL; | |
1260 | } | |
1261 | } | |
1262 | { | |
1263 | wxPy_BEGIN_ALLOW_THREADS; | |
1264 | _result = (wxListColumnFormat )wxListItem_GetAlign(_arg0); | |
1265 | ||
1266 | wxPy_END_ALLOW_THREADS; | |
1267 | } _resultobj = Py_BuildValue("i",_result); | |
1268 | return _resultobj; | |
1269 | } | |
1270 | ||
1271 | #define wxListItem_GetAttributes(_swigobj) (_swigobj->GetAttributes()) | |
1272 | static PyObject *_wrap_wxListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1273 | PyObject * _resultobj; | |
1274 | wxListItemAttr * _result; | |
1275 | wxListItem * _arg0; | |
1276 | PyObject * _argo0 = 0; | |
1277 | char *_kwnames[] = { "self", NULL }; | |
1278 | char _ptemp[128]; | |
1279 | ||
1280 | self = self; | |
1281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAttributes",_kwnames,&_argo0)) | |
1282 | return NULL; | |
1283 | if (_argo0) { | |
1284 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1285 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAttributes. Expected _wxListItem_p."); | |
1287 | return NULL; | |
1288 | } | |
1289 | } | |
1290 | { | |
1291 | wxPy_BEGIN_ALLOW_THREADS; | |
1292 | _result = (wxListItemAttr *)wxListItem_GetAttributes(_arg0); | |
1293 | ||
1294 | wxPy_END_ALLOW_THREADS; | |
1295 | } if (_result) { | |
1296 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
1297 | _resultobj = Py_BuildValue("s",_ptemp); | |
1298 | } else { | |
1299 | Py_INCREF(Py_None); | |
1300 | _resultobj = Py_None; | |
1301 | } | |
1302 | return _resultobj; | |
1303 | } | |
1304 | ||
1305 | #define wxListItem_HasAttributes(_swigobj) (_swigobj->HasAttributes()) | |
1306 | static PyObject *_wrap_wxListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1307 | PyObject * _resultobj; | |
1308 | bool _result; | |
1309 | wxListItem * _arg0; | |
1310 | PyObject * _argo0 = 0; | |
1311 | char *_kwnames[] = { "self", NULL }; | |
1312 | ||
1313 | self = self; | |
1314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_HasAttributes",_kwnames,&_argo0)) | |
1315 | return NULL; | |
1316 | if (_argo0) { | |
1317 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1318 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1319 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_HasAttributes. Expected _wxListItem_p."); | |
1320 | return NULL; | |
1321 | } | |
1322 | } | |
1323 | { | |
1324 | wxPy_BEGIN_ALLOW_THREADS; | |
1325 | _result = (bool )wxListItem_HasAttributes(_arg0); | |
1326 | ||
1327 | wxPy_END_ALLOW_THREADS; | |
1328 | } _resultobj = Py_BuildValue("i",_result); | |
1329 | return _resultobj; | |
1330 | } | |
1331 | ||
1332 | #define wxListItem_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
1333 | static PyObject *_wrap_wxListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1334 | PyObject * _resultobj; | |
1335 | wxColour * _result; | |
1336 | wxListItem * _arg0; | |
1337 | PyObject * _argo0 = 0; | |
1338 | char *_kwnames[] = { "self", NULL }; | |
1339 | char _ptemp[128]; | |
1340 | ||
1341 | self = self; | |
1342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetTextColour",_kwnames,&_argo0)) | |
1343 | return NULL; | |
1344 | if (_argo0) { | |
1345 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1346 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1347 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetTextColour. Expected _wxListItem_p."); | |
1348 | return NULL; | |
1349 | } | |
1350 | } | |
1351 | { | |
1352 | wxPy_BEGIN_ALLOW_THREADS; | |
1353 | _result = new wxColour (wxListItem_GetTextColour(_arg0)); | |
1354 | ||
1355 | wxPy_END_ALLOW_THREADS; | |
1356 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
1357 | _resultobj = Py_BuildValue("s",_ptemp); | |
1358 | return _resultobj; | |
1359 | } | |
1360 | ||
1361 | #define wxListItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
1362 | static PyObject *_wrap_wxListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1363 | PyObject * _resultobj; | |
1364 | wxColour * _result; | |
1365 | wxListItem * _arg0; | |
1366 | PyObject * _argo0 = 0; | |
1367 | char *_kwnames[] = { "self", NULL }; | |
1368 | char _ptemp[128]; | |
1369 | ||
1370 | self = self; | |
1371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetBackgroundColour",_kwnames,&_argo0)) | |
1372 | return NULL; | |
1373 | if (_argo0) { | |
1374 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1375 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1376 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetBackgroundColour. Expected _wxListItem_p."); | |
1377 | return NULL; | |
1378 | } | |
1379 | } | |
1380 | { | |
1381 | wxPy_BEGIN_ALLOW_THREADS; | |
1382 | _result = new wxColour (wxListItem_GetBackgroundColour(_arg0)); | |
1383 | ||
1384 | wxPy_END_ALLOW_THREADS; | |
1385 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
1386 | _resultobj = Py_BuildValue("s",_ptemp); | |
1387 | return _resultobj; | |
1388 | } | |
1389 | ||
1390 | #define wxListItem_GetFont(_swigobj) (_swigobj->GetFont()) | |
1391 | static PyObject *_wrap_wxListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1392 | PyObject * _resultobj; | |
1393 | wxFont * _result; | |
1394 | wxListItem * _arg0; | |
1395 | PyObject * _argo0 = 0; | |
1396 | char *_kwnames[] = { "self", NULL }; | |
1397 | char _ptemp[128]; | |
1398 | ||
1399 | self = self; | |
1400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetFont",_kwnames,&_argo0)) | |
1401 | return NULL; | |
1402 | if (_argo0) { | |
1403 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1404 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1405 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetFont. Expected _wxListItem_p."); | |
1406 | return NULL; | |
1407 | } | |
1408 | } | |
1409 | { | |
1410 | wxPy_BEGIN_ALLOW_THREADS; | |
1411 | _result = new wxFont (wxListItem_GetFont(_arg0)); | |
1412 | ||
1413 | wxPy_END_ALLOW_THREADS; | |
1414 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); | |
1415 | _resultobj = Py_BuildValue("s",_ptemp); | |
1416 | return _resultobj; | |
1417 | } | |
1418 | ||
1419 | #define wxListItem_m_mask_set(_swigobj,_swigval) (_swigobj->m_mask = _swigval,_swigval) | |
1420 | static PyObject *_wrap_wxListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1421 | PyObject * _resultobj; | |
1422 | long _result; | |
1423 | wxListItem * _arg0; | |
1424 | long _arg1; | |
1425 | PyObject * _argo0 = 0; | |
1426 | char *_kwnames[] = { "self","m_mask", NULL }; | |
1427 | ||
1428 | self = self; | |
1429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_mask_set",_kwnames,&_argo0,&_arg1)) | |
1430 | return NULL; | |
1431 | if (_argo0) { | |
1432 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1433 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1434 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_set. Expected _wxListItem_p."); | |
1435 | return NULL; | |
1436 | } | |
1437 | } | |
1438 | { | |
1439 | wxPy_BEGIN_ALLOW_THREADS; | |
1440 | _result = (long )wxListItem_m_mask_set(_arg0,_arg1); | |
1441 | ||
1442 | wxPy_END_ALLOW_THREADS; | |
1443 | } _resultobj = Py_BuildValue("l",_result); | |
1444 | return _resultobj; | |
1445 | } | |
1446 | ||
1447 | #define wxListItem_m_mask_get(_swigobj) ((long ) _swigobj->m_mask) | |
1448 | static PyObject *_wrap_wxListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1449 | PyObject * _resultobj; | |
1450 | long _result; | |
1451 | wxListItem * _arg0; | |
1452 | PyObject * _argo0 = 0; | |
1453 | char *_kwnames[] = { "self", NULL }; | |
1454 | ||
1455 | self = self; | |
1456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_mask_get",_kwnames,&_argo0)) | |
1457 | return NULL; | |
1458 | if (_argo0) { | |
1459 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1460 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1461 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_get. Expected _wxListItem_p."); | |
1462 | return NULL; | |
1463 | } | |
1464 | } | |
1465 | { | |
1466 | wxPy_BEGIN_ALLOW_THREADS; | |
1467 | _result = (long )wxListItem_m_mask_get(_arg0); | |
1468 | ||
1469 | wxPy_END_ALLOW_THREADS; | |
1470 | } _resultobj = Py_BuildValue("l",_result); | |
1471 | return _resultobj; | |
1472 | } | |
1473 | ||
1474 | #define wxListItem_m_itemId_set(_swigobj,_swigval) (_swigobj->m_itemId = _swigval,_swigval) | |
1475 | static PyObject *_wrap_wxListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1476 | PyObject * _resultobj; | |
1477 | long _result; | |
1478 | wxListItem * _arg0; | |
1479 | long _arg1; | |
1480 | PyObject * _argo0 = 0; | |
1481 | char *_kwnames[] = { "self","m_itemId", NULL }; | |
1482 | ||
1483 | self = self; | |
1484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_itemId_set",_kwnames,&_argo0,&_arg1)) | |
1485 | return NULL; | |
1486 | if (_argo0) { | |
1487 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1488 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_set. Expected _wxListItem_p."); | |
1490 | return NULL; | |
1491 | } | |
1492 | } | |
1493 | { | |
1494 | wxPy_BEGIN_ALLOW_THREADS; | |
1495 | _result = (long )wxListItem_m_itemId_set(_arg0,_arg1); | |
1496 | ||
1497 | wxPy_END_ALLOW_THREADS; | |
1498 | } _resultobj = Py_BuildValue("l",_result); | |
1499 | return _resultobj; | |
1500 | } | |
1501 | ||
1502 | #define wxListItem_m_itemId_get(_swigobj) ((long ) _swigobj->m_itemId) | |
1503 | static PyObject *_wrap_wxListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1504 | PyObject * _resultobj; | |
1505 | long _result; | |
1506 | wxListItem * _arg0; | |
1507 | PyObject * _argo0 = 0; | |
1508 | char *_kwnames[] = { "self", NULL }; | |
1509 | ||
1510 | self = self; | |
1511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_itemId_get",_kwnames,&_argo0)) | |
1512 | return NULL; | |
1513 | if (_argo0) { | |
1514 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1515 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_get. Expected _wxListItem_p."); | |
1517 | return NULL; | |
1518 | } | |
1519 | } | |
1520 | { | |
1521 | wxPy_BEGIN_ALLOW_THREADS; | |
1522 | _result = (long )wxListItem_m_itemId_get(_arg0); | |
1523 | ||
1524 | wxPy_END_ALLOW_THREADS; | |
1525 | } _resultobj = Py_BuildValue("l",_result); | |
1526 | return _resultobj; | |
1527 | } | |
1528 | ||
1529 | #define wxListItem_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval) | |
1530 | static PyObject *_wrap_wxListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1531 | PyObject * _resultobj; | |
1532 | int _result; | |
1533 | wxListItem * _arg0; | |
1534 | int _arg1; | |
1535 | PyObject * _argo0 = 0; | |
1536 | char *_kwnames[] = { "self","m_col", NULL }; | |
1537 | ||
1538 | self = self; | |
1539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_col_set",_kwnames,&_argo0,&_arg1)) | |
1540 | return NULL; | |
1541 | if (_argo0) { | |
1542 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1543 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_set. Expected _wxListItem_p."); | |
1545 | return NULL; | |
1546 | } | |
1547 | } | |
1548 | { | |
1549 | wxPy_BEGIN_ALLOW_THREADS; | |
1550 | _result = (int )wxListItem_m_col_set(_arg0,_arg1); | |
1551 | ||
1552 | wxPy_END_ALLOW_THREADS; | |
1553 | } _resultobj = Py_BuildValue("i",_result); | |
1554 | return _resultobj; | |
1555 | } | |
1556 | ||
1557 | #define wxListItem_m_col_get(_swigobj) ((int ) _swigobj->m_col) | |
1558 | static PyObject *_wrap_wxListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1559 | PyObject * _resultobj; | |
1560 | int _result; | |
1561 | wxListItem * _arg0; | |
1562 | PyObject * _argo0 = 0; | |
1563 | char *_kwnames[] = { "self", NULL }; | |
1564 | ||
1565 | self = self; | |
1566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_col_get",_kwnames,&_argo0)) | |
1567 | return NULL; | |
1568 | if (_argo0) { | |
1569 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1570 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1571 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_get. Expected _wxListItem_p."); | |
1572 | return NULL; | |
1573 | } | |
1574 | } | |
1575 | { | |
1576 | wxPy_BEGIN_ALLOW_THREADS; | |
1577 | _result = (int )wxListItem_m_col_get(_arg0); | |
1578 | ||
1579 | wxPy_END_ALLOW_THREADS; | |
1580 | } _resultobj = Py_BuildValue("i",_result); | |
1581 | return _resultobj; | |
1582 | } | |
1583 | ||
1584 | #define wxListItem_m_state_set(_swigobj,_swigval) (_swigobj->m_state = _swigval,_swigval) | |
1585 | static PyObject *_wrap_wxListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1586 | PyObject * _resultobj; | |
1587 | long _result; | |
1588 | wxListItem * _arg0; | |
1589 | long _arg1; | |
1590 | PyObject * _argo0 = 0; | |
1591 | char *_kwnames[] = { "self","m_state", NULL }; | |
1592 | ||
1593 | self = self; | |
1594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_state_set",_kwnames,&_argo0,&_arg1)) | |
1595 | return NULL; | |
1596 | if (_argo0) { | |
1597 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1598 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1599 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_set. Expected _wxListItem_p."); | |
1600 | return NULL; | |
1601 | } | |
1602 | } | |
1603 | { | |
1604 | wxPy_BEGIN_ALLOW_THREADS; | |
1605 | _result = (long )wxListItem_m_state_set(_arg0,_arg1); | |
1606 | ||
1607 | wxPy_END_ALLOW_THREADS; | |
1608 | } _resultobj = Py_BuildValue("l",_result); | |
1609 | return _resultobj; | |
1610 | } | |
1611 | ||
1612 | #define wxListItem_m_state_get(_swigobj) ((long ) _swigobj->m_state) | |
1613 | static PyObject *_wrap_wxListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1614 | PyObject * _resultobj; | |
1615 | long _result; | |
1616 | wxListItem * _arg0; | |
1617 | PyObject * _argo0 = 0; | |
1618 | char *_kwnames[] = { "self", NULL }; | |
1619 | ||
1620 | self = self; | |
1621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_state_get",_kwnames,&_argo0)) | |
1622 | return NULL; | |
1623 | if (_argo0) { | |
1624 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1625 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1626 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_get. Expected _wxListItem_p."); | |
1627 | return NULL; | |
1628 | } | |
1629 | } | |
1630 | { | |
1631 | wxPy_BEGIN_ALLOW_THREADS; | |
1632 | _result = (long )wxListItem_m_state_get(_arg0); | |
1633 | ||
1634 | wxPy_END_ALLOW_THREADS; | |
1635 | } _resultobj = Py_BuildValue("l",_result); | |
1636 | return _resultobj; | |
1637 | } | |
1638 | ||
1639 | #define wxListItem_m_stateMask_set(_swigobj,_swigval) (_swigobj->m_stateMask = _swigval,_swigval) | |
1640 | static PyObject *_wrap_wxListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1641 | PyObject * _resultobj; | |
1642 | long _result; | |
1643 | wxListItem * _arg0; | |
1644 | long _arg1; | |
1645 | PyObject * _argo0 = 0; | |
1646 | char *_kwnames[] = { "self","m_stateMask", NULL }; | |
1647 | ||
1648 | self = self; | |
1649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_stateMask_set",_kwnames,&_argo0,&_arg1)) | |
1650 | return NULL; | |
1651 | if (_argo0) { | |
1652 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1653 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1654 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_set. Expected _wxListItem_p."); | |
1655 | return NULL; | |
1656 | } | |
1657 | } | |
1658 | { | |
1659 | wxPy_BEGIN_ALLOW_THREADS; | |
1660 | _result = (long )wxListItem_m_stateMask_set(_arg0,_arg1); | |
1661 | ||
1662 | wxPy_END_ALLOW_THREADS; | |
1663 | } _resultobj = Py_BuildValue("l",_result); | |
1664 | return _resultobj; | |
1665 | } | |
1666 | ||
1667 | #define wxListItem_m_stateMask_get(_swigobj) ((long ) _swigobj->m_stateMask) | |
1668 | static PyObject *_wrap_wxListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1669 | PyObject * _resultobj; | |
1670 | long _result; | |
1671 | wxListItem * _arg0; | |
1672 | PyObject * _argo0 = 0; | |
1673 | char *_kwnames[] = { "self", NULL }; | |
1674 | ||
1675 | self = self; | |
1676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_stateMask_get",_kwnames,&_argo0)) | |
1677 | return NULL; | |
1678 | if (_argo0) { | |
1679 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1680 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1681 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_get. Expected _wxListItem_p."); | |
1682 | return NULL; | |
1683 | } | |
1684 | } | |
1685 | { | |
1686 | wxPy_BEGIN_ALLOW_THREADS; | |
1687 | _result = (long )wxListItem_m_stateMask_get(_arg0); | |
1688 | ||
1689 | wxPy_END_ALLOW_THREADS; | |
1690 | } _resultobj = Py_BuildValue("l",_result); | |
1691 | return _resultobj; | |
1692 | } | |
1693 | ||
1694 | #define wxListItem_m_text_set(_swigobj,_swigval) (_swigobj->m_text = *(_swigval),_swigval) | |
1695 | static PyObject *_wrap_wxListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1696 | PyObject * _resultobj; | |
1697 | wxString * _result; | |
1698 | wxListItem * _arg0; | |
1699 | wxString * _arg1; | |
1700 | PyObject * _argo0 = 0; | |
1701 | PyObject * _obj1 = 0; | |
1702 | char *_kwnames[] = { "self","m_text", NULL }; | |
1703 | ||
1704 | self = self; | |
1705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_m_text_set",_kwnames,&_argo0,&_obj1)) | |
1706 | return NULL; | |
1707 | if (_argo0) { | |
1708 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1709 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1710 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_set. Expected _wxListItem_p."); | |
1711 | return NULL; | |
1712 | } | |
1713 | } | |
1714 | { | |
185d7c3e RD |
1715 | #if PYTHON_API_VERSION >= 1009 |
1716 | char* tmpPtr; int tmpSize; | |
1717 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
1718 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
1719 | return NULL; | |
1720 | } | |
1721 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1722 | return NULL; | |
1723 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1724 | #else | |
f6bcfd97 BP |
1725 | if (!PyString_Check(_obj1)) { |
1726 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1727 | return NULL; | |
1728 | } | |
185d7c3e RD |
1729 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1730 | #endif | |
f6bcfd97 BP |
1731 | } |
1732 | { | |
1733 | wxPy_BEGIN_ALLOW_THREADS; | |
1734 | _result = (wxString *)wxListItem_m_text_set(_arg0,_arg1); | |
1735 | ||
1736 | wxPy_END_ALLOW_THREADS; | |
1737 | }{ | |
1738 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1739 | } | |
1740 | { | |
1741 | if (_obj1) | |
1742 | delete _arg1; | |
1743 | } | |
1744 | return _resultobj; | |
1745 | } | |
1746 | ||
1747 | #define wxListItem_m_text_get(_swigobj) (&_swigobj->m_text) | |
1748 | static PyObject *_wrap_wxListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1749 | PyObject * _resultobj; | |
1750 | wxString * _result; | |
1751 | wxListItem * _arg0; | |
1752 | PyObject * _argo0 = 0; | |
1753 | char *_kwnames[] = { "self", NULL }; | |
1754 | ||
1755 | self = self; | |
1756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_text_get",_kwnames,&_argo0)) | |
1757 | return NULL; | |
1758 | if (_argo0) { | |
1759 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1760 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1761 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_get. Expected _wxListItem_p."); | |
1762 | return NULL; | |
1763 | } | |
1764 | } | |
1765 | { | |
1766 | wxPy_BEGIN_ALLOW_THREADS; | |
1767 | _result = (wxString *)wxListItem_m_text_get(_arg0); | |
1768 | ||
1769 | wxPy_END_ALLOW_THREADS; | |
1770 | }{ | |
1771 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1772 | } | |
1773 | return _resultobj; | |
1774 | } | |
1775 | ||
1776 | #define wxListItem_m_image_set(_swigobj,_swigval) (_swigobj->m_image = _swigval,_swigval) | |
1777 | static PyObject *_wrap_wxListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1778 | PyObject * _resultobj; | |
1779 | int _result; | |
1780 | wxListItem * _arg0; | |
1781 | int _arg1; | |
1782 | PyObject * _argo0 = 0; | |
1783 | char *_kwnames[] = { "self","m_image", NULL }; | |
1784 | ||
1785 | self = self; | |
1786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_image_set",_kwnames,&_argo0,&_arg1)) | |
1787 | return NULL; | |
1788 | if (_argo0) { | |
1789 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1790 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1791 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_set. Expected _wxListItem_p."); | |
1792 | return NULL; | |
1793 | } | |
1794 | } | |
1795 | { | |
1796 | wxPy_BEGIN_ALLOW_THREADS; | |
1797 | _result = (int )wxListItem_m_image_set(_arg0,_arg1); | |
1798 | ||
1799 | wxPy_END_ALLOW_THREADS; | |
1800 | } _resultobj = Py_BuildValue("i",_result); | |
1801 | return _resultobj; | |
1802 | } | |
1803 | ||
1804 | #define wxListItem_m_image_get(_swigobj) ((int ) _swigobj->m_image) | |
1805 | static PyObject *_wrap_wxListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1806 | PyObject * _resultobj; | |
1807 | int _result; | |
1808 | wxListItem * _arg0; | |
1809 | PyObject * _argo0 = 0; | |
1810 | char *_kwnames[] = { "self", NULL }; | |
1811 | ||
1812 | self = self; | |
1813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_image_get",_kwnames,&_argo0)) | |
1814 | return NULL; | |
1815 | if (_argo0) { | |
1816 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1817 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_get. Expected _wxListItem_p."); | |
1819 | return NULL; | |
1820 | } | |
1821 | } | |
1822 | { | |
1823 | wxPy_BEGIN_ALLOW_THREADS; | |
1824 | _result = (int )wxListItem_m_image_get(_arg0); | |
1825 | ||
1826 | wxPy_END_ALLOW_THREADS; | |
1827 | } _resultobj = Py_BuildValue("i",_result); | |
1828 | return _resultobj; | |
1829 | } | |
1830 | ||
1831 | #define wxListItem_m_data_set(_swigobj,_swigval) (_swigobj->m_data = _swigval,_swigval) | |
1832 | static PyObject *_wrap_wxListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1833 | PyObject * _resultobj; | |
1834 | long _result; | |
1835 | wxListItem * _arg0; | |
1836 | long _arg1; | |
1837 | PyObject * _argo0 = 0; | |
1838 | char *_kwnames[] = { "self","m_data", NULL }; | |
1839 | ||
1840 | self = self; | |
1841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_data_set",_kwnames,&_argo0,&_arg1)) | |
1842 | return NULL; | |
1843 | if (_argo0) { | |
1844 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1845 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1846 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_set. Expected _wxListItem_p."); | |
1847 | return NULL; | |
1848 | } | |
1849 | } | |
1850 | { | |
1851 | wxPy_BEGIN_ALLOW_THREADS; | |
1852 | _result = (long )wxListItem_m_data_set(_arg0,_arg1); | |
1853 | ||
1854 | wxPy_END_ALLOW_THREADS; | |
1855 | } _resultobj = Py_BuildValue("l",_result); | |
1856 | return _resultobj; | |
1857 | } | |
1858 | ||
1859 | #define wxListItem_m_data_get(_swigobj) ((long ) _swigobj->m_data) | |
1860 | static PyObject *_wrap_wxListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1861 | PyObject * _resultobj; | |
1862 | long _result; | |
1863 | wxListItem * _arg0; | |
1864 | PyObject * _argo0 = 0; | |
1865 | char *_kwnames[] = { "self", NULL }; | |
1866 | ||
1867 | self = self; | |
1868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_data_get",_kwnames,&_argo0)) | |
1869 | return NULL; | |
1870 | if (_argo0) { | |
1871 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1872 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1873 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_get. Expected _wxListItem_p."); | |
1874 | return NULL; | |
1875 | } | |
1876 | } | |
1877 | { | |
1878 | wxPy_BEGIN_ALLOW_THREADS; | |
1879 | _result = (long )wxListItem_m_data_get(_arg0); | |
1880 | ||
1881 | wxPy_END_ALLOW_THREADS; | |
1882 | } _resultobj = Py_BuildValue("l",_result); | |
1883 | return _resultobj; | |
1884 | } | |
1885 | ||
1886 | #define wxListItem_m_format_set(_swigobj,_swigval) (_swigobj->m_format = _swigval,_swigval) | |
1887 | static PyObject *_wrap_wxListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1888 | PyObject * _resultobj; | |
1889 | int _result; | |
1890 | wxListItem * _arg0; | |
1891 | int _arg1; | |
1892 | PyObject * _argo0 = 0; | |
1893 | char *_kwnames[] = { "self","m_format", NULL }; | |
1894 | ||
1895 | self = self; | |
1896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_format_set",_kwnames,&_argo0,&_arg1)) | |
1897 | return NULL; | |
1898 | if (_argo0) { | |
1899 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1900 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1901 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_set. Expected _wxListItem_p."); | |
1902 | return NULL; | |
1903 | } | |
1904 | } | |
1905 | { | |
1906 | wxPy_BEGIN_ALLOW_THREADS; | |
1907 | _result = (int )wxListItem_m_format_set(_arg0,_arg1); | |
1908 | ||
1909 | wxPy_END_ALLOW_THREADS; | |
1910 | } _resultobj = Py_BuildValue("i",_result); | |
1911 | return _resultobj; | |
1912 | } | |
1913 | ||
1914 | #define wxListItem_m_format_get(_swigobj) ((int ) _swigobj->m_format) | |
1915 | static PyObject *_wrap_wxListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1916 | PyObject * _resultobj; | |
1917 | int _result; | |
1918 | wxListItem * _arg0; | |
1919 | PyObject * _argo0 = 0; | |
1920 | char *_kwnames[] = { "self", NULL }; | |
1921 | ||
1922 | self = self; | |
1923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_format_get",_kwnames,&_argo0)) | |
1924 | return NULL; | |
1925 | if (_argo0) { | |
1926 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1927 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1928 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_get. Expected _wxListItem_p."); | |
1929 | return NULL; | |
1930 | } | |
1931 | } | |
1932 | { | |
1933 | wxPy_BEGIN_ALLOW_THREADS; | |
1934 | _result = (int )wxListItem_m_format_get(_arg0); | |
1935 | ||
1936 | wxPy_END_ALLOW_THREADS; | |
1937 | } _resultobj = Py_BuildValue("i",_result); | |
1938 | return _resultobj; | |
8ab979d7 RD |
1939 | } |
1940 | ||
f6bcfd97 BP |
1941 | #define wxListItem_m_width_set(_swigobj,_swigval) (_swigobj->m_width = _swigval,_swigval) |
1942 | static PyObject *_wrap_wxListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 1943 | PyObject * _resultobj; |
f6bcfd97 | 1944 | int _result; |
af309447 | 1945 | wxListItem * _arg0; |
f6bcfd97 | 1946 | int _arg1; |
1d99702e | 1947 | PyObject * _argo0 = 0; |
f6bcfd97 | 1948 | char *_kwnames[] = { "self","m_width", NULL }; |
af309447 RD |
1949 | |
1950 | self = self; | |
f6bcfd97 | 1951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_width_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 1952 | return NULL; |
1d99702e RD |
1953 | if (_argo0) { |
1954 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1955 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1956 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_set. Expected _wxListItem_p."); |
af309447 RD |
1957 | return NULL; |
1958 | } | |
1959 | } | |
cf694132 RD |
1960 | { |
1961 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1962 | _result = (int )wxListItem_m_width_set(_arg0,_arg1); |
cf694132 RD |
1963 | |
1964 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 1965 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
1966 | return _resultobj; |
1967 | } | |
1968 | ||
f6bcfd97 BP |
1969 | #define wxListItem_m_width_get(_swigobj) ((int ) _swigobj->m_width) |
1970 | static PyObject *_wrap_wxListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1971 | PyObject * _resultobj; |
f6bcfd97 | 1972 | int _result; |
8ab979d7 | 1973 | wxListItem * _arg0; |
1d99702e | 1974 | PyObject * _argo0 = 0; |
efc5f224 | 1975 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1976 | |
1977 | self = self; | |
f6bcfd97 | 1978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_width_get",_kwnames,&_argo0)) |
8ab979d7 | 1979 | return NULL; |
1d99702e RD |
1980 | if (_argo0) { |
1981 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1982 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 BP |
1983 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_get. Expected _wxListItem_p."); |
1984 | return NULL; | |
1985 | } | |
1986 | } | |
1987 | { | |
1988 | wxPy_BEGIN_ALLOW_THREADS; | |
1989 | _result = (int )wxListItem_m_width_get(_arg0); | |
1990 | ||
1991 | wxPy_END_ALLOW_THREADS; | |
1992 | } _resultobj = Py_BuildValue("i",_result); | |
1993 | return _resultobj; | |
1994 | } | |
1995 | ||
c368d904 RD |
1996 | static void *SwigwxListEventTowxNotifyEvent(void *ptr) { |
1997 | wxListEvent *src; | |
1998 | wxNotifyEvent *dest; | |
1999 | src = (wxListEvent *) ptr; | |
2000 | dest = (wxNotifyEvent *) src; | |
2001 | return (void *) dest; | |
2002 | } | |
2003 | ||
f6bcfd97 BP |
2004 | static void *SwigwxListEventTowxCommandEvent(void *ptr) { |
2005 | wxListEvent *src; | |
2006 | wxCommandEvent *dest; | |
2007 | src = (wxListEvent *) ptr; | |
2008 | dest = (wxCommandEvent *) src; | |
2009 | return (void *) dest; | |
2010 | } | |
2011 | ||
2012 | static void *SwigwxListEventTowxEvent(void *ptr) { | |
2013 | wxListEvent *src; | |
2014 | wxEvent *dest; | |
2015 | src = (wxListEvent *) ptr; | |
2016 | dest = (wxEvent *) src; | |
2017 | return (void *) dest; | |
2018 | } | |
2019 | ||
2020 | #define wxListEvent_m_code_set(_swigobj,_swigval) (_swigobj->m_code = _swigval,_swigval) | |
2021 | static PyObject *_wrap_wxListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2022 | PyObject * _resultobj; | |
2023 | int _result; | |
2024 | wxListEvent * _arg0; | |
2025 | int _arg1; | |
2026 | PyObject * _argo0 = 0; | |
2027 | char *_kwnames[] = { "self","m_code", NULL }; | |
2028 | ||
2029 | self = self; | |
2030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_code_set",_kwnames,&_argo0,&_arg1)) | |
2031 | return NULL; | |
2032 | if (_argo0) { | |
2033 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2034 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2035 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_code_set. Expected _wxListEvent_p."); | |
2036 | return NULL; | |
2037 | } | |
2038 | } | |
2039 | { | |
2040 | wxPy_BEGIN_ALLOW_THREADS; | |
2041 | _result = (int )wxListEvent_m_code_set(_arg0,_arg1); | |
2042 | ||
2043 | wxPy_END_ALLOW_THREADS; | |
2044 | } _resultobj = Py_BuildValue("i",_result); | |
2045 | return _resultobj; | |
2046 | } | |
2047 | ||
2048 | #define wxListEvent_m_code_get(_swigobj) ((int ) _swigobj->m_code) | |
2049 | static PyObject *_wrap_wxListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2050 | PyObject * _resultobj; | |
2051 | int _result; | |
2052 | wxListEvent * _arg0; | |
2053 | PyObject * _argo0 = 0; | |
2054 | char *_kwnames[] = { "self", NULL }; | |
2055 | ||
2056 | self = self; | |
2057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_code_get",_kwnames,&_argo0)) | |
2058 | return NULL; | |
2059 | if (_argo0) { | |
2060 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2061 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2062 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_code_get. Expected _wxListEvent_p."); | |
2063 | return NULL; | |
2064 | } | |
2065 | } | |
2066 | { | |
2067 | wxPy_BEGIN_ALLOW_THREADS; | |
2068 | _result = (int )wxListEvent_m_code_get(_arg0); | |
2069 | ||
2070 | wxPy_END_ALLOW_THREADS; | |
2071 | } _resultobj = Py_BuildValue("i",_result); | |
2072 | return _resultobj; | |
2073 | } | |
2074 | ||
2075 | #define wxListEvent_m_itemIndex_set(_swigobj,_swigval) (_swigobj->m_itemIndex = _swigval,_swigval) | |
2076 | static PyObject *_wrap_wxListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2077 | PyObject * _resultobj; | |
2078 | long _result; | |
2079 | wxListEvent * _arg0; | |
2080 | long _arg1; | |
2081 | PyObject * _argo0 = 0; | |
2082 | char *_kwnames[] = { "self","m_itemIndex", NULL }; | |
2083 | ||
2084 | self = self; | |
2085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListEvent_m_itemIndex_set",_kwnames,&_argo0,&_arg1)) | |
2086 | return NULL; | |
2087 | if (_argo0) { | |
2088 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2089 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2090 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_set. Expected _wxListEvent_p."); | |
2091 | return NULL; | |
2092 | } | |
2093 | } | |
2094 | { | |
2095 | wxPy_BEGIN_ALLOW_THREADS; | |
2096 | _result = (long )wxListEvent_m_itemIndex_set(_arg0,_arg1); | |
2097 | ||
2098 | wxPy_END_ALLOW_THREADS; | |
2099 | } _resultobj = Py_BuildValue("l",_result); | |
2100 | return _resultobj; | |
2101 | } | |
2102 | ||
2103 | #define wxListEvent_m_itemIndex_get(_swigobj) ((long ) _swigobj->m_itemIndex) | |
2104 | static PyObject *_wrap_wxListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2105 | PyObject * _resultobj; | |
2106 | long _result; | |
2107 | wxListEvent * _arg0; | |
2108 | PyObject * _argo0 = 0; | |
2109 | char *_kwnames[] = { "self", NULL }; | |
2110 | ||
2111 | self = self; | |
2112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_itemIndex_get",_kwnames,&_argo0)) | |
2113 | return NULL; | |
2114 | if (_argo0) { | |
2115 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2116 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2117 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_get. Expected _wxListEvent_p."); | |
2118 | return NULL; | |
2119 | } | |
2120 | } | |
2121 | { | |
2122 | wxPy_BEGIN_ALLOW_THREADS; | |
2123 | _result = (long )wxListEvent_m_itemIndex_get(_arg0); | |
2124 | ||
2125 | wxPy_END_ALLOW_THREADS; | |
2126 | } _resultobj = Py_BuildValue("l",_result); | |
2127 | return _resultobj; | |
2128 | } | |
2129 | ||
2130 | #define wxListEvent_m_oldItemIndex_set(_swigobj,_swigval) (_swigobj->m_oldItemIndex = _swigval,_swigval) | |
2131 | static PyObject *_wrap_wxListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2132 | PyObject * _resultobj; | |
2133 | long _result; | |
2134 | wxListEvent * _arg0; | |
2135 | long _arg1; | |
2136 | PyObject * _argo0 = 0; | |
2137 | char *_kwnames[] = { "self","m_oldItemIndex", NULL }; | |
2138 | ||
2139 | self = self; | |
2140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListEvent_m_oldItemIndex_set",_kwnames,&_argo0,&_arg1)) | |
2141 | return NULL; | |
2142 | if (_argo0) { | |
2143 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2144 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2145 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_set. Expected _wxListEvent_p."); | |
2146 | return NULL; | |
2147 | } | |
2148 | } | |
2149 | { | |
2150 | wxPy_BEGIN_ALLOW_THREADS; | |
2151 | _result = (long )wxListEvent_m_oldItemIndex_set(_arg0,_arg1); | |
2152 | ||
2153 | wxPy_END_ALLOW_THREADS; | |
2154 | } _resultobj = Py_BuildValue("l",_result); | |
2155 | return _resultobj; | |
2156 | } | |
2157 | ||
2158 | #define wxListEvent_m_oldItemIndex_get(_swigobj) ((long ) _swigobj->m_oldItemIndex) | |
2159 | static PyObject *_wrap_wxListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2160 | PyObject * _resultobj; | |
2161 | long _result; | |
2162 | wxListEvent * _arg0; | |
2163 | PyObject * _argo0 = 0; | |
2164 | char *_kwnames[] = { "self", NULL }; | |
2165 | ||
2166 | self = self; | |
2167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_oldItemIndex_get",_kwnames,&_argo0)) | |
2168 | return NULL; | |
2169 | if (_argo0) { | |
2170 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2171 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2172 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_get. Expected _wxListEvent_p."); | |
2173 | return NULL; | |
2174 | } | |
2175 | } | |
2176 | { | |
2177 | wxPy_BEGIN_ALLOW_THREADS; | |
2178 | _result = (long )wxListEvent_m_oldItemIndex_get(_arg0); | |
2179 | ||
2180 | wxPy_END_ALLOW_THREADS; | |
2181 | } _resultobj = Py_BuildValue("l",_result); | |
2182 | return _resultobj; | |
2183 | } | |
2184 | ||
2185 | #define wxListEvent_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval) | |
2186 | static PyObject *_wrap_wxListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2187 | PyObject * _resultobj; | |
2188 | int _result; | |
2189 | wxListEvent * _arg0; | |
2190 | int _arg1; | |
2191 | PyObject * _argo0 = 0; | |
2192 | char *_kwnames[] = { "self","m_col", NULL }; | |
2193 | ||
2194 | self = self; | |
2195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_col_set",_kwnames,&_argo0,&_arg1)) | |
2196 | return NULL; | |
2197 | if (_argo0) { | |
2198 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2199 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2200 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_set. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2201 | return NULL; |
2202 | } | |
2203 | } | |
cf694132 RD |
2204 | { |
2205 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2206 | _result = (int )wxListEvent_m_col_set(_arg0,_arg1); |
cf694132 RD |
2207 | |
2208 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 2209 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2210 | return _resultobj; |
2211 | } | |
2212 | ||
f6bcfd97 BP |
2213 | #define wxListEvent_m_col_get(_swigobj) ((int ) _swigobj->m_col) |
2214 | static PyObject *_wrap_wxListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
2215 | PyObject * _resultobj; |
2216 | int _result; | |
f6bcfd97 | 2217 | wxListEvent * _arg0; |
1d99702e | 2218 | PyObject * _argo0 = 0; |
f6bcfd97 | 2219 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2220 | |
2221 | self = self; | |
f6bcfd97 | 2222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_col_get",_kwnames,&_argo0)) |
af309447 | 2223 | return NULL; |
1d99702e RD |
2224 | if (_argo0) { |
2225 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2226 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2227 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_get. Expected _wxListEvent_p."); | |
af309447 RD |
2228 | return NULL; |
2229 | } | |
2230 | } | |
cf694132 RD |
2231 | { |
2232 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2233 | _result = (int )wxListEvent_m_col_get(_arg0); |
cf694132 RD |
2234 | |
2235 | wxPy_END_ALLOW_THREADS; | |
2236 | } _resultobj = Py_BuildValue("i",_result); | |
af309447 RD |
2237 | return _resultobj; |
2238 | } | |
2239 | ||
f6bcfd97 BP |
2240 | #define wxListEvent_m_cancelled_set(_swigobj,_swigval) (_swigobj->m_cancelled = _swigval,_swigval) |
2241 | static PyObject *_wrap_wxListEvent_m_cancelled_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2242 | PyObject * _resultobj; |
f6bcfd97 BP |
2243 | bool _result; |
2244 | wxListEvent * _arg0; | |
2245 | bool _arg1; | |
1d99702e | 2246 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
2247 | int tempbool1; |
2248 | char *_kwnames[] = { "self","m_cancelled", NULL }; | |
8ab979d7 RD |
2249 | |
2250 | self = self; | |
f6bcfd97 | 2251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_cancelled_set",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 2252 | return NULL; |
1d99702e RD |
2253 | if (_argo0) { |
2254 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2255 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2256 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_cancelled_set. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2257 | return NULL; |
2258 | } | |
2259 | } | |
f6bcfd97 | 2260 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
2261 | { |
2262 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2263 | _result = (bool )wxListEvent_m_cancelled_set(_arg0,_arg1); |
cf694132 RD |
2264 | |
2265 | wxPy_END_ALLOW_THREADS; | |
2266 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2267 | return _resultobj; |
2268 | } | |
2269 | ||
f6bcfd97 BP |
2270 | #define wxListEvent_m_cancelled_get(_swigobj) ((bool ) _swigobj->m_cancelled) |
2271 | static PyObject *_wrap_wxListEvent_m_cancelled_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2272 | PyObject * _resultobj; |
f6bcfd97 BP |
2273 | bool _result; |
2274 | wxListEvent * _arg0; | |
1d99702e | 2275 | PyObject * _argo0 = 0; |
f6bcfd97 | 2276 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2277 | |
2278 | self = self; | |
f6bcfd97 | 2279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_cancelled_get",_kwnames,&_argo0)) |
af309447 | 2280 | return NULL; |
1d99702e RD |
2281 | if (_argo0) { |
2282 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2283 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2284 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_cancelled_get. Expected _wxListEvent_p."); | |
af309447 RD |
2285 | return NULL; |
2286 | } | |
2287 | } | |
cf694132 RD |
2288 | { |
2289 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2290 | _result = (bool )wxListEvent_m_cancelled_get(_arg0); |
cf694132 RD |
2291 | |
2292 | wxPy_END_ALLOW_THREADS; | |
2293 | } _resultobj = Py_BuildValue("i",_result); | |
af309447 RD |
2294 | return _resultobj; |
2295 | } | |
2296 | ||
f6bcfd97 BP |
2297 | #define wxListEvent_m_pointDrag_set(_swigobj,_swigval) (_swigobj->m_pointDrag = *(_swigval),_swigval) |
2298 | static PyObject *_wrap_wxListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2299 | PyObject * _resultobj; |
f6bcfd97 BP |
2300 | wxPoint * _result; |
2301 | wxListEvent * _arg0; | |
2302 | wxPoint * _arg1; | |
1d99702e | 2303 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
2304 | wxPoint temp; |
2305 | PyObject * _obj1 = 0; | |
2306 | char *_kwnames[] = { "self","m_pointDrag", NULL }; | |
2307 | char _ptemp[128]; | |
8ab979d7 RD |
2308 | |
2309 | self = self; | |
f6bcfd97 | 2310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListEvent_m_pointDrag_set",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 2311 | return NULL; |
1d99702e RD |
2312 | if (_argo0) { |
2313 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2314 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2315 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_set. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2316 | return NULL; |
2317 | } | |
2318 | } | |
f6bcfd97 BP |
2319 | { |
2320 | _arg1 = &temp; | |
2321 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2322 | return NULL; | |
2323 | } | |
cf694132 RD |
2324 | { |
2325 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2326 | _result = (wxPoint *)wxListEvent_m_pointDrag_set(_arg0,_arg1); |
cf694132 RD |
2327 | |
2328 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
2329 | } if (_result) { |
2330 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
2331 | _resultobj = Py_BuildValue("s",_ptemp); | |
2332 | } else { | |
2333 | Py_INCREF(Py_None); | |
2334 | _resultobj = Py_None; | |
2335 | } | |
8ab979d7 RD |
2336 | return _resultobj; |
2337 | } | |
2338 | ||
f6bcfd97 BP |
2339 | #define wxListEvent_m_pointDrag_get(_swigobj) (&_swigobj->m_pointDrag) |
2340 | static PyObject *_wrap_wxListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2341 | PyObject * _resultobj; |
f6bcfd97 BP |
2342 | wxPoint * _result; |
2343 | wxListEvent * _arg0; | |
2344 | PyObject * _argo0 = 0; | |
2345 | char *_kwnames[] = { "self", NULL }; | |
8ab979d7 RD |
2346 | char _ptemp[128]; |
2347 | ||
2348 | self = self; | |
f6bcfd97 BP |
2349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_pointDrag_get",_kwnames,&_argo0)) |
2350 | return NULL; | |
2351 | if (_argo0) { | |
2352 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2353 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2354 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_get. Expected _wxListEvent_p."); | |
8ab979d7 | 2355 | return NULL; |
f6bcfd97 BP |
2356 | } |
2357 | } | |
cf694132 RD |
2358 | { |
2359 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2360 | _result = (wxPoint *)wxListEvent_m_pointDrag_get(_arg0); |
cf694132 RD |
2361 | |
2362 | wxPy_END_ALLOW_THREADS; | |
1d99702e | 2363 | } if (_result) { |
f6bcfd97 | 2364 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); |
1d99702e RD |
2365 | _resultobj = Py_BuildValue("s",_ptemp); |
2366 | } else { | |
2367 | Py_INCREF(Py_None); | |
2368 | _resultobj = Py_None; | |
2369 | } | |
8ab979d7 RD |
2370 | return _resultobj; |
2371 | } | |
2372 | ||
f6bcfd97 BP |
2373 | #define wxListEvent_m_item_set(_swigobj,_swigval) (_swigobj->m_item = *(_swigval),_swigval) |
2374 | static PyObject *_wrap_wxListEvent_m_item_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2375 | PyObject * _resultobj; |
f6bcfd97 BP |
2376 | wxListItem * _result; |
2377 | wxListEvent * _arg0; | |
2378 | wxListItem * _arg1; | |
1d99702e | 2379 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
2380 | PyObject * _argo1 = 0; |
2381 | char *_kwnames[] = { "self","m_item", NULL }; | |
2382 | char _ptemp[128]; | |
8ab979d7 RD |
2383 | |
2384 | self = self; | |
f6bcfd97 | 2385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListEvent_m_item_set",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 2386 | return NULL; |
1d99702e RD |
2387 | if (_argo0) { |
2388 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2389 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2390 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_set. Expected _wxListEvent_p."); | |
2391 | return NULL; | |
2392 | } | |
2393 | } | |
2394 | if (_argo1) { | |
2395 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2396 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
2397 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListEvent_m_item_set. Expected _wxListItem_p."); | |
8ab979d7 RD |
2398 | return NULL; |
2399 | } | |
2400 | } | |
cf694132 RD |
2401 | { |
2402 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2403 | _result = (wxListItem *)wxListEvent_m_item_set(_arg0,_arg1); |
cf694132 RD |
2404 | |
2405 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
2406 | } if (_result) { |
2407 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p"); | |
2408 | _resultobj = Py_BuildValue("s",_ptemp); | |
2409 | } else { | |
2410 | Py_INCREF(Py_None); | |
2411 | _resultobj = Py_None; | |
2412 | } | |
8ab979d7 RD |
2413 | return _resultobj; |
2414 | } | |
2415 | ||
f6bcfd97 BP |
2416 | #define wxListEvent_m_item_get(_swigobj) (&_swigobj->m_item) |
2417 | static PyObject *_wrap_wxListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2418 | PyObject * _resultobj; |
f6bcfd97 | 2419 | wxListItem * _result; |
af309447 | 2420 | wxListEvent * _arg0; |
1d99702e | 2421 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
2422 | char *_kwnames[] = { "self", NULL }; |
2423 | char _ptemp[128]; | |
af309447 RD |
2424 | |
2425 | self = self; | |
f6bcfd97 | 2426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_item_get",_kwnames,&_argo0)) |
af309447 | 2427 | return NULL; |
1d99702e RD |
2428 | if (_argo0) { |
2429 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2430 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2431 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_get. Expected _wxListEvent_p."); |
af309447 RD |
2432 | return NULL; |
2433 | } | |
2434 | } | |
cf694132 RD |
2435 | { |
2436 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2437 | _result = (wxListItem *)wxListEvent_m_item_get(_arg0); |
cf694132 RD |
2438 | |
2439 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
2440 | } if (_result) { |
2441 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p"); | |
2442 | _resultobj = Py_BuildValue("s",_ptemp); | |
2443 | } else { | |
2444 | Py_INCREF(Py_None); | |
2445 | _resultobj = Py_None; | |
2446 | } | |
af309447 RD |
2447 | return _resultobj; |
2448 | } | |
2449 | ||
f6bcfd97 BP |
2450 | #define wxListEvent_GetCode(_swigobj) (_swigobj->GetCode()) |
2451 | static PyObject *_wrap_wxListEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2452 | PyObject * _resultobj; |
2453 | int _result; | |
2454 | wxListEvent * _arg0; | |
1d99702e | 2455 | PyObject * _argo0 = 0; |
efc5f224 | 2456 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2457 | |
2458 | self = self; | |
f6bcfd97 | 2459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCode",_kwnames,&_argo0)) |
8ab979d7 | 2460 | return NULL; |
1d99702e RD |
2461 | if (_argo0) { |
2462 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2463 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCode. Expected _wxListEvent_p."); |
8ab979d7 RD |
2465 | return NULL; |
2466 | } | |
2467 | } | |
cf694132 RD |
2468 | { |
2469 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2470 | _result = (int )wxListEvent_GetCode(_arg0); |
cf694132 RD |
2471 | |
2472 | wxPy_END_ALLOW_THREADS; | |
2473 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2474 | return _resultobj; |
2475 | } | |
2476 | ||
f6bcfd97 BP |
2477 | #define wxListEvent_GetIndex(_swigobj) (_swigobj->GetIndex()) |
2478 | static PyObject *_wrap_wxListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
2479 | PyObject * _resultobj; |
2480 | long _result; | |
2481 | wxListEvent * _arg0; | |
1d99702e | 2482 | PyObject * _argo0 = 0; |
f6bcfd97 | 2483 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2484 | |
2485 | self = self; | |
f6bcfd97 | 2486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetIndex",_kwnames,&_argo0)) |
af309447 | 2487 | return NULL; |
1d99702e RD |
2488 | if (_argo0) { |
2489 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2490 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2491 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetIndex. Expected _wxListEvent_p."); |
af309447 RD |
2492 | return NULL; |
2493 | } | |
2494 | } | |
cf694132 RD |
2495 | { |
2496 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2497 | _result = (long )wxListEvent_GetIndex(_arg0); |
cf694132 RD |
2498 | |
2499 | wxPy_END_ALLOW_THREADS; | |
2500 | } _resultobj = Py_BuildValue("l",_result); | |
af309447 RD |
2501 | return _resultobj; |
2502 | } | |
2503 | ||
f6bcfd97 BP |
2504 | #define wxListEvent_GetOldIndex(_swigobj) (_swigobj->GetOldIndex()) |
2505 | static PyObject *_wrap_wxListEvent_GetOldIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2506 | PyObject * _resultobj; |
2507 | long _result; | |
2508 | wxListEvent * _arg0; | |
1d99702e | 2509 | PyObject * _argo0 = 0; |
efc5f224 | 2510 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2511 | |
2512 | self = self; | |
f6bcfd97 | 2513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetOldIndex",_kwnames,&_argo0)) |
8ab979d7 | 2514 | return NULL; |
1d99702e RD |
2515 | if (_argo0) { |
2516 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2517 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2518 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetOldIndex. Expected _wxListEvent_p."); |
8ab979d7 RD |
2519 | return NULL; |
2520 | } | |
2521 | } | |
cf694132 RD |
2522 | { |
2523 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2524 | _result = (long )wxListEvent_GetOldIndex(_arg0); |
cf694132 RD |
2525 | |
2526 | wxPy_END_ALLOW_THREADS; | |
2527 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
2528 | return _resultobj; |
2529 | } | |
2530 | ||
f6bcfd97 BP |
2531 | #define wxListEvent_GetOldItem(_swigobj) (_swigobj->GetOldItem()) |
2532 | static PyObject *_wrap_wxListEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
2533 | PyObject * _resultobj; |
2534 | long _result; | |
2535 | wxListEvent * _arg0; | |
1d99702e | 2536 | PyObject * _argo0 = 0; |
f6bcfd97 | 2537 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2538 | |
2539 | self = self; | |
f6bcfd97 | 2540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetOldItem",_kwnames,&_argo0)) |
af309447 | 2541 | return NULL; |
1d99702e RD |
2542 | if (_argo0) { |
2543 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2544 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2545 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetOldItem. Expected _wxListEvent_p."); |
af309447 RD |
2546 | return NULL; |
2547 | } | |
2548 | } | |
cf694132 RD |
2549 | { |
2550 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2551 | _result = (long )wxListEvent_GetOldItem(_arg0); |
cf694132 RD |
2552 | |
2553 | wxPy_END_ALLOW_THREADS; | |
2554 | } _resultobj = Py_BuildValue("l",_result); | |
af309447 RD |
2555 | return _resultobj; |
2556 | } | |
2557 | ||
f6bcfd97 BP |
2558 | #define wxListEvent_GetColumn(_swigobj) (_swigobj->GetColumn()) |
2559 | static PyObject *_wrap_wxListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2560 | PyObject * _resultobj; |
f6bcfd97 | 2561 | int _result; |
8ab979d7 | 2562 | wxListEvent * _arg0; |
1d99702e | 2563 | PyObject * _argo0 = 0; |
efc5f224 | 2564 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2565 | |
2566 | self = self; | |
f6bcfd97 | 2567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetColumn",_kwnames,&_argo0)) |
8ab979d7 | 2568 | return NULL; |
1d99702e RD |
2569 | if (_argo0) { |
2570 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2571 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2572 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetColumn. Expected _wxListEvent_p."); |
8ab979d7 RD |
2573 | return NULL; |
2574 | } | |
2575 | } | |
cf694132 RD |
2576 | { |
2577 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2578 | _result = (int )wxListEvent_GetColumn(_arg0); |
cf694132 RD |
2579 | |
2580 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 2581 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2582 | return _resultobj; |
2583 | } | |
2584 | ||
f6bcfd97 BP |
2585 | #define wxListEvent_Cancelled(_swigobj) (_swigobj->Cancelled()) |
2586 | static PyObject *_wrap_wxListEvent_Cancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2587 | PyObject * _resultobj; |
f6bcfd97 | 2588 | bool _result; |
af309447 | 2589 | wxListEvent * _arg0; |
1d99702e | 2590 | PyObject * _argo0 = 0; |
f6bcfd97 | 2591 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2592 | |
2593 | self = self; | |
f6bcfd97 | 2594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_Cancelled",_kwnames,&_argo0)) |
af309447 | 2595 | return NULL; |
1d99702e RD |
2596 | if (_argo0) { |
2597 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2598 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2599 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_Cancelled. Expected _wxListEvent_p."); |
af309447 RD |
2600 | return NULL; |
2601 | } | |
2602 | } | |
cf694132 RD |
2603 | { |
2604 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2605 | _result = (bool )wxListEvent_Cancelled(_arg0); |
cf694132 RD |
2606 | |
2607 | wxPy_END_ALLOW_THREADS; | |
2608 | } _resultobj = Py_BuildValue("i",_result); | |
af309447 RD |
2609 | return _resultobj; |
2610 | } | |
2611 | ||
f6bcfd97 BP |
2612 | #define wxListEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) |
2613 | static PyObject *_wrap_wxListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2614 | PyObject * _resultobj; |
f6bcfd97 | 2615 | wxPoint * _result; |
8ab979d7 | 2616 | wxListEvent * _arg0; |
1d99702e | 2617 | PyObject * _argo0 = 0; |
efc5f224 | 2618 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 2619 | char _ptemp[128]; |
8ab979d7 RD |
2620 | |
2621 | self = self; | |
f6bcfd97 | 2622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetPoint",_kwnames,&_argo0)) |
8ab979d7 | 2623 | return NULL; |
1d99702e RD |
2624 | if (_argo0) { |
2625 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2626 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2627 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetPoint. Expected _wxListEvent_p."); |
8ab979d7 RD |
2628 | return NULL; |
2629 | } | |
2630 | } | |
cf694132 RD |
2631 | { |
2632 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2633 | _result = new wxPoint (wxListEvent_GetPoint(_arg0)); |
cf694132 RD |
2634 | |
2635 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
2636 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
2637 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
2638 | return _resultobj; |
2639 | } | |
2640 | ||
f6bcfd97 BP |
2641 | #define wxListEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) |
2642 | static PyObject *_wrap_wxListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2643 | PyObject * _resultobj; |
f6bcfd97 | 2644 | wxString * _result; |
af309447 | 2645 | wxListEvent * _arg0; |
1d99702e | 2646 | PyObject * _argo0 = 0; |
f6bcfd97 | 2647 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2648 | |
2649 | self = self; | |
f6bcfd97 | 2650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetLabel",_kwnames,&_argo0)) |
af309447 | 2651 | return NULL; |
1d99702e RD |
2652 | if (_argo0) { |
2653 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2654 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2655 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetLabel. Expected _wxListEvent_p."); |
af309447 RD |
2656 | return NULL; |
2657 | } | |
2658 | } | |
cf694132 RD |
2659 | { |
2660 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
2661 | const wxString & _result_ref = wxListEvent_GetLabel(_arg0); |
2662 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
2663 | |
2664 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
2665 | }{ |
2666 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2667 | } | |
af309447 RD |
2668 | return _resultobj; |
2669 | } | |
2670 | ||
f6bcfd97 BP |
2671 | #define wxListEvent_GetText(_swigobj) (_swigobj->GetText()) |
2672 | static PyObject *_wrap_wxListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2673 | PyObject * _resultobj; |
f6bcfd97 | 2674 | wxString * _result; |
8ab979d7 | 2675 | wxListEvent * _arg0; |
1d99702e | 2676 | PyObject * _argo0 = 0; |
efc5f224 | 2677 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2678 | |
2679 | self = self; | |
f6bcfd97 | 2680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetText",_kwnames,&_argo0)) |
8ab979d7 | 2681 | return NULL; |
1d99702e RD |
2682 | if (_argo0) { |
2683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetText. Expected _wxListEvent_p."); |
8ab979d7 RD |
2686 | return NULL; |
2687 | } | |
2688 | } | |
cf694132 RD |
2689 | { |
2690 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
2691 | const wxString & _result_ref = wxListEvent_GetText(_arg0); |
2692 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
2693 | |
2694 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
2695 | }{ |
2696 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2697 | } | |
8ab979d7 RD |
2698 | return _resultobj; |
2699 | } | |
2700 | ||
f6bcfd97 BP |
2701 | #define wxListEvent_GetImage(_swigobj) (_swigobj->GetImage()) |
2702 | static PyObject *_wrap_wxListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2703 | PyObject * _resultobj; |
f6bcfd97 | 2704 | int _result; |
af309447 | 2705 | wxListEvent * _arg0; |
1d99702e | 2706 | PyObject * _argo0 = 0; |
f6bcfd97 | 2707 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2708 | |
2709 | self = self; | |
f6bcfd97 | 2710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetImage",_kwnames,&_argo0)) |
af309447 | 2711 | return NULL; |
1d99702e RD |
2712 | if (_argo0) { |
2713 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2714 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetImage. Expected _wxListEvent_p."); |
af309447 RD |
2716 | return NULL; |
2717 | } | |
2718 | } | |
cf694132 RD |
2719 | { |
2720 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2721 | _result = (int )wxListEvent_GetImage(_arg0); |
cf694132 RD |
2722 | |
2723 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 2724 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2725 | return _resultobj; |
2726 | } | |
2727 | ||
f6bcfd97 BP |
2728 | #define wxListEvent_GetData(_swigobj) (_swigobj->GetData()) |
2729 | static PyObject *_wrap_wxListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2730 | PyObject * _resultobj; |
f6bcfd97 | 2731 | long _result; |
8ab979d7 | 2732 | wxListEvent * _arg0; |
1d99702e | 2733 | PyObject * _argo0 = 0; |
efc5f224 | 2734 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2735 | |
2736 | self = self; | |
f6bcfd97 | 2737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetData",_kwnames,&_argo0)) |
8ab979d7 | 2738 | return NULL; |
1d99702e RD |
2739 | if (_argo0) { |
2740 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2741 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetData. Expected _wxListEvent_p."); |
8ab979d7 RD |
2743 | return NULL; |
2744 | } | |
2745 | } | |
cf694132 RD |
2746 | { |
2747 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2748 | _result = (long )wxListEvent_GetData(_arg0); |
cf694132 RD |
2749 | |
2750 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 2751 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2752 | return _resultobj; |
2753 | } | |
2754 | ||
f6bcfd97 BP |
2755 | #define wxListEvent_GetMask(_swigobj) (_swigobj->GetMask()) |
2756 | static PyObject *_wrap_wxListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2757 | PyObject * _resultobj; |
f6bcfd97 | 2758 | long _result; |
af309447 | 2759 | wxListEvent * _arg0; |
1d99702e | 2760 | PyObject * _argo0 = 0; |
f6bcfd97 | 2761 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2762 | |
2763 | self = self; | |
f6bcfd97 | 2764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetMask",_kwnames,&_argo0)) |
af309447 | 2765 | return NULL; |
1d99702e RD |
2766 | if (_argo0) { |
2767 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2768 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2769 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetMask. Expected _wxListEvent_p."); |
af309447 RD |
2770 | return NULL; |
2771 | } | |
2772 | } | |
cf694132 RD |
2773 | { |
2774 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2775 | _result = (long )wxListEvent_GetMask(_arg0); |
cf694132 RD |
2776 | |
2777 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 2778 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2779 | return _resultobj; |
2780 | } | |
2781 | ||
f6bcfd97 BP |
2782 | #define wxListEvent_GetItem(_swigobj) (_swigobj->GetItem()) |
2783 | static PyObject *_wrap_wxListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2784 | PyObject * _resultobj; |
2785 | wxListItem * _result; | |
2786 | wxListEvent * _arg0; | |
1d99702e | 2787 | PyObject * _argo0 = 0; |
efc5f224 | 2788 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2789 | char _ptemp[128]; |
2790 | ||
2791 | self = self; | |
f6bcfd97 | 2792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetItem",_kwnames,&_argo0)) |
8ab979d7 | 2793 | return NULL; |
1d99702e RD |
2794 | if (_argo0) { |
2795 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2796 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2797 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetItem. Expected _wxListEvent_p."); |
8ab979d7 RD |
2798 | return NULL; |
2799 | } | |
2800 | } | |
cf694132 RD |
2801 | { |
2802 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
2803 | const wxListItem & _result_ref = wxListEvent_GetItem(_arg0); |
2804 | _result = (wxListItem *) &_result_ref; | |
cf694132 RD |
2805 | |
2806 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
2807 | } if (_result) { |
2808 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p"); | |
2809 | _resultobj = Py_BuildValue("s",_ptemp); | |
2810 | } else { | |
2811 | Py_INCREF(Py_None); | |
2812 | _resultobj = Py_None; | |
2813 | } | |
8ab979d7 RD |
2814 | return _resultobj; |
2815 | } | |
2816 | ||
2817 | static void *SwigwxListCtrlTowxControl(void *ptr) { | |
2818 | wxListCtrl *src; | |
2819 | wxControl *dest; | |
2820 | src = (wxListCtrl *) ptr; | |
2821 | dest = (wxControl *) src; | |
2822 | return (void *) dest; | |
2823 | } | |
2824 | ||
2825 | static void *SwigwxListCtrlTowxWindow(void *ptr) { | |
2826 | wxListCtrl *src; | |
2827 | wxWindow *dest; | |
2828 | src = (wxListCtrl *) ptr; | |
2829 | dest = (wxWindow *) src; | |
2830 | return (void *) dest; | |
2831 | } | |
2832 | ||
2833 | static void *SwigwxListCtrlTowxEvtHandler(void *ptr) { | |
2834 | wxListCtrl *src; | |
2835 | wxEvtHandler *dest; | |
2836 | src = (wxListCtrl *) ptr; | |
2837 | dest = (wxEvtHandler *) src; | |
2838 | return (void *) dest; | |
2839 | } | |
2840 | ||
2841 | #define new_wxListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
efc5f224 | 2842 | static PyObject *_wrap_new_wxListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2843 | PyObject * _resultobj; |
2844 | wxListCtrl * _result; | |
2845 | wxWindow * _arg0; | |
2846 | wxWindowID _arg1; | |
e508a2b6 RD |
2847 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
2848 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e | 2849 | long _arg4 = (long ) wxLC_ICON; |
e508a2b6 | 2850 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
2851 | char * _arg6 = (char *) "listCtrl"; |
2852 | PyObject * _argo0 = 0; | |
2f90df85 RD |
2853 | wxPoint temp; |
2854 | PyObject * _obj2 = 0; | |
2855 | wxSize temp0; | |
2856 | PyObject * _obj3 = 0; | |
1d99702e | 2857 | PyObject * _argo5 = 0; |
efc5f224 | 2858 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
2859 | char _ptemp[128]; |
2860 | ||
2861 | self = self; | |
2f90df85 | 2862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlOs:new_wxListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) |
8ab979d7 | 2863 | return NULL; |
1d99702e RD |
2864 | if (_argo0) { |
2865 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2866 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2867 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListCtrl. Expected _wxWindow_p."); |
2868 | return NULL; | |
2869 | } | |
2870 | } | |
2f90df85 RD |
2871 | if (_obj2) |
2872 | { | |
2873 | _arg2 = &temp; | |
2874 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 2875 | return NULL; |
2f90df85 RD |
2876 | } |
2877 | if (_obj3) | |
2878 | { | |
2879 | _arg3 = &temp0; | |
2880 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 2881 | return NULL; |
2f90df85 | 2882 | } |
1d99702e RD |
2883 | if (_argo5) { |
2884 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
2885 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
8ab979d7 RD |
2886 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListCtrl. Expected _wxValidator_p."); |
2887 | return NULL; | |
2888 | } | |
2889 | } | |
cf694132 RD |
2890 | { |
2891 | wxPy_BEGIN_ALLOW_THREADS; | |
2892 | _result = (wxListCtrl *)new_wxListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); | |
2893 | ||
2894 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
2895 | } if (_result) { |
2896 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListCtrl_p"); | |
2897 | _resultobj = Py_BuildValue("s",_ptemp); | |
2898 | } else { | |
2899 | Py_INCREF(Py_None); | |
2900 | _resultobj = Py_None; | |
2901 | } | |
8ab979d7 RD |
2902 | return _resultobj; |
2903 | } | |
2904 | ||
2905 | #define wxListCtrl_Arrange(_swigobj,_swigarg0) (_swigobj->Arrange(_swigarg0)) | |
efc5f224 | 2906 | static PyObject *_wrap_wxListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2907 | PyObject * _resultobj; |
2908 | bool _result; | |
2909 | wxListCtrl * _arg0; | |
1d99702e RD |
2910 | int _arg1 = (int ) (wxLIST_ALIGN_DEFAULT); |
2911 | PyObject * _argo0 = 0; | |
efc5f224 | 2912 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
2913 | |
2914 | self = self; | |
efc5f224 | 2915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxListCtrl_Arrange",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2916 | return NULL; |
1d99702e RD |
2917 | if (_argo0) { |
2918 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2919 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
2920 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Arrange. Expected _wxListCtrl_p."); |
2921 | return NULL; | |
2922 | } | |
2923 | } | |
cf694132 RD |
2924 | { |
2925 | wxPy_BEGIN_ALLOW_THREADS; | |
2926 | _result = (bool )wxListCtrl_Arrange(_arg0,_arg1); | |
2927 | ||
2928 | wxPy_END_ALLOW_THREADS; | |
2929 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2930 | return _resultobj; |
2931 | } | |
2932 | ||
2933 | #define wxListCtrl_DeleteItem(_swigobj,_swigarg0) (_swigobj->DeleteItem(_swigarg0)) | |
efc5f224 | 2934 | static PyObject *_wrap_wxListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2935 | PyObject * _resultobj; |
2936 | bool _result; | |
2937 | wxListCtrl * _arg0; | |
2938 | long _arg1; | |
1d99702e | 2939 | PyObject * _argo0 = 0; |
efc5f224 | 2940 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
2941 | |
2942 | self = self; | |
efc5f224 | 2943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_DeleteItem",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2944 | return NULL; |
1d99702e RD |
2945 | if (_argo0) { |
2946 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2947 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
2948 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteItem. Expected _wxListCtrl_p."); |
2949 | return NULL; | |
2950 | } | |
2951 | } | |
cf694132 RD |
2952 | { |
2953 | wxPy_BEGIN_ALLOW_THREADS; | |
2954 | _result = (bool )wxListCtrl_DeleteItem(_arg0,_arg1); | |
2955 | ||
2956 | wxPy_END_ALLOW_THREADS; | |
2957 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2958 | return _resultobj; |
2959 | } | |
2960 | ||
2961 | #define wxListCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) | |
efc5f224 | 2962 | static PyObject *_wrap_wxListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2963 | PyObject * _resultobj; |
2964 | bool _result; | |
2965 | wxListCtrl * _arg0; | |
1d99702e | 2966 | PyObject * _argo0 = 0; |
efc5f224 | 2967 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2968 | |
2969 | self = self; | |
efc5f224 | 2970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllItems",_kwnames,&_argo0)) |
8ab979d7 | 2971 | return NULL; |
1d99702e RD |
2972 | if (_argo0) { |
2973 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2974 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
2975 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllItems. Expected _wxListCtrl_p."); |
2976 | return NULL; | |
2977 | } | |
2978 | } | |
cf694132 RD |
2979 | { |
2980 | wxPy_BEGIN_ALLOW_THREADS; | |
2981 | _result = (bool )wxListCtrl_DeleteAllItems(_arg0); | |
2982 | ||
2983 | wxPy_END_ALLOW_THREADS; | |
2984 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2985 | return _resultobj; |
2986 | } | |
2987 | ||
2988 | #define wxListCtrl_DeleteColumn(_swigobj,_swigarg0) (_swigobj->DeleteColumn(_swigarg0)) | |
efc5f224 | 2989 | static PyObject *_wrap_wxListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2990 | PyObject * _resultobj; |
2991 | bool _result; | |
2992 | wxListCtrl * _arg0; | |
2993 | int _arg1; | |
1d99702e | 2994 | PyObject * _argo0 = 0; |
efc5f224 | 2995 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
2996 | |
2997 | self = self; | |
efc5f224 | 2998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_DeleteColumn",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2999 | return NULL; |
1d99702e RD |
3000 | if (_argo0) { |
3001 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3002 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3003 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteColumn. Expected _wxListCtrl_p."); |
3004 | return NULL; | |
3005 | } | |
3006 | } | |
cf694132 RD |
3007 | { |
3008 | wxPy_BEGIN_ALLOW_THREADS; | |
3009 | _result = (bool )wxListCtrl_DeleteColumn(_arg0,_arg1); | |
3010 | ||
3011 | wxPy_END_ALLOW_THREADS; | |
3012 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3013 | return _resultobj; |
3014 | } | |
3015 | ||
3016 | #define wxListCtrl_DeleteAllColumns(_swigobj) (_swigobj->DeleteAllColumns()) | |
efc5f224 | 3017 | static PyObject *_wrap_wxListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3018 | PyObject * _resultobj; |
3019 | bool _result; | |
3020 | wxListCtrl * _arg0; | |
1d99702e | 3021 | PyObject * _argo0 = 0; |
efc5f224 | 3022 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3023 | |
3024 | self = self; | |
efc5f224 | 3025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllColumns",_kwnames,&_argo0)) |
8ab979d7 | 3026 | return NULL; |
1d99702e RD |
3027 | if (_argo0) { |
3028 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3029 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3030 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllColumns. Expected _wxListCtrl_p."); |
3031 | return NULL; | |
3032 | } | |
3033 | } | |
cf694132 RD |
3034 | { |
3035 | wxPy_BEGIN_ALLOW_THREADS; | |
3036 | _result = (bool )wxListCtrl_DeleteAllColumns(_arg0); | |
3037 | ||
3038 | wxPy_END_ALLOW_THREADS; | |
3039 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3040 | return _resultobj; |
3041 | } | |
3042 | ||
3043 | #define wxListCtrl_ClearAll(_swigobj) (_swigobj->ClearAll()) | |
efc5f224 | 3044 | static PyObject *_wrap_wxListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3045 | PyObject * _resultobj; |
3046 | wxListCtrl * _arg0; | |
1d99702e | 3047 | PyObject * _argo0 = 0; |
efc5f224 | 3048 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3049 | |
3050 | self = self; | |
efc5f224 | 3051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_ClearAll",_kwnames,&_argo0)) |
8ab979d7 | 3052 | return NULL; |
1d99702e RD |
3053 | if (_argo0) { |
3054 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3055 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3056 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ClearAll. Expected _wxListCtrl_p."); |
3057 | return NULL; | |
3058 | } | |
3059 | } | |
cf694132 RD |
3060 | { |
3061 | wxPy_BEGIN_ALLOW_THREADS; | |
3062 | wxListCtrl_ClearAll(_arg0); | |
3063 | ||
3064 | wxPy_END_ALLOW_THREADS; | |
3065 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3066 | _resultobj = Py_None; |
3067 | return _resultobj; | |
3068 | } | |
3069 | ||
3070 | #define wxListCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0)) | |
efc5f224 | 3071 | static PyObject *_wrap_wxListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3072 | PyObject * _resultobj; |
3073 | wxTextCtrl * _result; | |
3074 | wxListCtrl * _arg0; | |
3075 | long _arg1; | |
1d99702e | 3076 | PyObject * _argo0 = 0; |
efc5f224 | 3077 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3078 | char _ptemp[128]; |
3079 | ||
3080 | self = self; | |
efc5f224 | 3081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EditLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3082 | return NULL; |
1d99702e RD |
3083 | if (_argo0) { |
3084 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3085 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3086 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EditLabel. Expected _wxListCtrl_p."); |
3087 | return NULL; | |
3088 | } | |
3089 | } | |
cf694132 RD |
3090 | { |
3091 | wxPy_BEGIN_ALLOW_THREADS; | |
3092 | _result = (wxTextCtrl *)wxListCtrl_EditLabel(_arg0,_arg1); | |
3093 | ||
3094 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
3095 | } if (_result) { |
3096 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p"); | |
3097 | _resultobj = Py_BuildValue("s",_ptemp); | |
3098 | } else { | |
3099 | Py_INCREF(Py_None); | |
3100 | _resultobj = Py_None; | |
3101 | } | |
8ab979d7 RD |
3102 | return _resultobj; |
3103 | } | |
3104 | ||
3105 | #define wxListCtrl_EndEditLabel(_swigobj,_swigarg0) (_swigobj->EndEditLabel(_swigarg0)) | |
efc5f224 | 3106 | static PyObject *_wrap_wxListCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3107 | PyObject * _resultobj; |
3108 | bool _result; | |
3109 | wxListCtrl * _arg0; | |
3110 | bool _arg1; | |
1d99702e | 3111 | PyObject * _argo0 = 0; |
8ab979d7 | 3112 | int tempbool1; |
efc5f224 | 3113 | char *_kwnames[] = { "self","cancel", NULL }; |
8ab979d7 RD |
3114 | |
3115 | self = self; | |
efc5f224 | 3116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_EndEditLabel",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3117 | return NULL; |
1d99702e RD |
3118 | if (_argo0) { |
3119 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3120 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EndEditLabel. Expected _wxListCtrl_p."); |
3122 | return NULL; | |
3123 | } | |
3124 | } | |
3125 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
3126 | { |
3127 | wxPy_BEGIN_ALLOW_THREADS; | |
3128 | _result = (bool )wxListCtrl_EndEditLabel(_arg0,_arg1); | |
3129 | ||
3130 | wxPy_END_ALLOW_THREADS; | |
3131 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3132 | return _resultobj; |
3133 | } | |
3134 | ||
be4d9c1f | 3135 | #define wxListCtrl_GetEditControl(_swigobj) (_swigobj->GetEditControl()) |
efc5f224 | 3136 | static PyObject *_wrap_wxListCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
be4d9c1f RD |
3137 | PyObject * _resultobj; |
3138 | wxTextCtrl * _result; | |
3139 | wxListCtrl * _arg0; | |
1d99702e | 3140 | PyObject * _argo0 = 0; |
efc5f224 | 3141 | char *_kwnames[] = { "self", NULL }; |
be4d9c1f RD |
3142 | char _ptemp[128]; |
3143 | ||
3144 | self = self; | |
efc5f224 | 3145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetEditControl",_kwnames,&_argo0)) |
be4d9c1f | 3146 | return NULL; |
1d99702e RD |
3147 | if (_argo0) { |
3148 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3149 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
be4d9c1f RD |
3150 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetEditControl. Expected _wxListCtrl_p."); |
3151 | return NULL; | |
3152 | } | |
3153 | } | |
cf694132 RD |
3154 | { |
3155 | wxPy_BEGIN_ALLOW_THREADS; | |
3156 | _result = (wxTextCtrl *)wxListCtrl_GetEditControl(_arg0); | |
3157 | ||
3158 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
3159 | } if (_result) { |
3160 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p"); | |
3161 | _resultobj = Py_BuildValue("s",_ptemp); | |
3162 | } else { | |
3163 | Py_INCREF(Py_None); | |
3164 | _resultobj = Py_None; | |
3165 | } | |
be4d9c1f RD |
3166 | return _resultobj; |
3167 | } | |
3168 | ||
8ab979d7 | 3169 | #define wxListCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) |
efc5f224 | 3170 | static PyObject *_wrap_wxListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3171 | PyObject * _resultobj; |
3172 | bool _result; | |
3173 | wxListCtrl * _arg0; | |
3174 | long _arg1; | |
1d99702e | 3175 | PyObject * _argo0 = 0; |
efc5f224 | 3176 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3177 | |
3178 | self = self; | |
efc5f224 | 3179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EnsureVisible",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3180 | return NULL; |
1d99702e RD |
3181 | if (_argo0) { |
3182 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3183 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3184 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EnsureVisible. Expected _wxListCtrl_p."); |
3185 | return NULL; | |
3186 | } | |
3187 | } | |
cf694132 RD |
3188 | { |
3189 | wxPy_BEGIN_ALLOW_THREADS; | |
3190 | _result = (bool )wxListCtrl_EnsureVisible(_arg0,_arg1); | |
3191 | ||
3192 | wxPy_END_ALLOW_THREADS; | |
3193 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3194 | return _resultobj; |
3195 | } | |
3196 | ||
3197 | #define wxListCtrl_FindItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 3198 | static PyObject *_wrap_wxListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3199 | PyObject * _resultobj; |
3200 | long _result; | |
3201 | wxListCtrl * _arg0; | |
3202 | long _arg1; | |
3203 | wxString * _arg2; | |
1d99702e RD |
3204 | bool _arg3 = (bool ) FALSE; |
3205 | PyObject * _argo0 = 0; | |
8ab979d7 | 3206 | PyObject * _obj2 = 0; |
1d99702e | 3207 | int tempbool3 = (int) FALSE; |
efc5f224 | 3208 | char *_kwnames[] = { "self","start","str","partial", NULL }; |
8ab979d7 RD |
3209 | |
3210 | self = self; | |
efc5f224 | 3211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|i:wxListCtrl_FindItem",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3)) |
8ab979d7 | 3212 | return NULL; |
1d99702e RD |
3213 | if (_argo0) { |
3214 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3215 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3216 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItem. Expected _wxListCtrl_p."); |
3217 | return NULL; | |
3218 | } | |
3219 | } | |
3220 | { | |
185d7c3e RD |
3221 | #if PYTHON_API_VERSION >= 1009 |
3222 | char* tmpPtr; int tmpSize; | |
3223 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
3224 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
3225 | return NULL; | |
3226 | } | |
3227 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3228 | return NULL; | |
3229 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3230 | #else | |
8ab979d7 RD |
3231 | if (!PyString_Check(_obj2)) { |
3232 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3233 | return NULL; | |
3234 | } | |
185d7c3e RD |
3235 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
3236 | #endif | |
8ab979d7 RD |
3237 | } |
3238 | _arg3 = (bool ) tempbool3; | |
cf694132 RD |
3239 | { |
3240 | wxPy_BEGIN_ALLOW_THREADS; | |
3241 | _result = (long )wxListCtrl_FindItem(_arg0,_arg1,*_arg2,_arg3); | |
3242 | ||
3243 | wxPy_END_ALLOW_THREADS; | |
3244 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
3245 | { |
3246 | if (_obj2) | |
3247 | delete _arg2; | |
3248 | } | |
3249 | return _resultobj; | |
3250 | } | |
3251 | ||
3252 | #define wxListCtrl_FindItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindItem(_swigarg0,_swigarg1)) | |
efc5f224 | 3253 | static PyObject *_wrap_wxListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3254 | PyObject * _resultobj; |
3255 | long _result; | |
3256 | wxListCtrl * _arg0; | |
3257 | long _arg1; | |
3258 | long _arg2; | |
1d99702e | 3259 | PyObject * _argo0 = 0; |
efc5f224 | 3260 | char *_kwnames[] = { "self","start","data", NULL }; |
8ab979d7 RD |
3261 | |
3262 | self = self; | |
efc5f224 | 3263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_FindItemData",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3264 | return NULL; |
1d99702e RD |
3265 | if (_argo0) { |
3266 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3267 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3268 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemData. Expected _wxListCtrl_p."); |
3269 | return NULL; | |
3270 | } | |
3271 | } | |
cf694132 RD |
3272 | { |
3273 | wxPy_BEGIN_ALLOW_THREADS; | |
3274 | _result = (long )wxListCtrl_FindItemData(_arg0,_arg1,_arg2); | |
3275 | ||
3276 | wxPy_END_ALLOW_THREADS; | |
3277 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
3278 | return _resultobj; |
3279 | } | |
3280 | ||
3281 | #define wxListCtrl_FindItemAtPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 3282 | static PyObject *_wrap_wxListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3283 | PyObject * _resultobj; |
3284 | long _result; | |
3285 | wxListCtrl * _arg0; | |
3286 | long _arg1; | |
3287 | wxPoint * _arg2; | |
3288 | int _arg3; | |
1d99702e | 3289 | PyObject * _argo0 = 0; |
2f90df85 RD |
3290 | wxPoint temp; |
3291 | PyObject * _obj2 = 0; | |
efc5f224 | 3292 | char *_kwnames[] = { "self","start","pt","direction", NULL }; |
8ab979d7 RD |
3293 | |
3294 | self = self; | |
2f90df85 | 3295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_FindItemAtPos",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) |
8ab979d7 | 3296 | return NULL; |
1d99702e RD |
3297 | if (_argo0) { |
3298 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3299 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3300 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemAtPos. Expected _wxListCtrl_p."); |
3301 | return NULL; | |
3302 | } | |
3303 | } | |
2f90df85 RD |
3304 | { |
3305 | _arg2 = &temp; | |
3306 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 3307 | return NULL; |
2f90df85 | 3308 | } |
cf694132 RD |
3309 | { |
3310 | wxPy_BEGIN_ALLOW_THREADS; | |
3311 | _result = (long )wxListCtrl_FindItemAtPos(_arg0,_arg1,*_arg2,_arg3); | |
3312 | ||
3313 | wxPy_END_ALLOW_THREADS; | |
3314 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
3315 | return _resultobj; |
3316 | } | |
3317 | ||
3318 | #define wxListCtrl_GetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetColumn(_swigarg0,_swigarg1)) | |
efc5f224 | 3319 | static PyObject *_wrap_wxListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3320 | PyObject * _resultobj; |
3321 | bool _result; | |
3322 | wxListCtrl * _arg0; | |
3323 | int _arg1; | |
3324 | wxListItem * _arg2; | |
1d99702e RD |
3325 | PyObject * _argo0 = 0; |
3326 | PyObject * _argo2 = 0; | |
efc5f224 | 3327 | char *_kwnames[] = { "self","col","item", NULL }; |
8ab979d7 RD |
3328 | |
3329 | self = self; | |
efc5f224 | 3330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_GetColumn",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 3331 | return NULL; |
1d99702e RD |
3332 | if (_argo0) { |
3333 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3334 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3335 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumn. Expected _wxListCtrl_p."); |
3336 | return NULL; | |
3337 | } | |
3338 | } | |
1d99702e RD |
3339 | if (_argo2) { |
3340 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3341 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
8ab979d7 RD |
3342 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_GetColumn. Expected _wxListItem_p."); |
3343 | return NULL; | |
3344 | } | |
3345 | } | |
cf694132 RD |
3346 | { |
3347 | wxPy_BEGIN_ALLOW_THREADS; | |
3348 | _result = (bool )wxListCtrl_GetColumn(_arg0,_arg1,*_arg2); | |
3349 | ||
3350 | wxPy_END_ALLOW_THREADS; | |
3351 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3352 | return _resultobj; |
3353 | } | |
3354 | ||
3355 | #define wxListCtrl_GetColumnWidth(_swigobj,_swigarg0) (_swigobj->GetColumnWidth(_swigarg0)) | |
efc5f224 | 3356 | static PyObject *_wrap_wxListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3357 | PyObject * _resultobj; |
3358 | int _result; | |
3359 | wxListCtrl * _arg0; | |
3360 | int _arg1; | |
1d99702e | 3361 | PyObject * _argo0 = 0; |
efc5f224 | 3362 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
3363 | |
3364 | self = self; | |
efc5f224 | 3365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetColumnWidth",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3366 | return NULL; |
1d99702e RD |
3367 | if (_argo0) { |
3368 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3369 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3370 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnWidth. Expected _wxListCtrl_p."); |
3371 | return NULL; | |
3372 | } | |
3373 | } | |
cf694132 RD |
3374 | { |
3375 | wxPy_BEGIN_ALLOW_THREADS; | |
3376 | _result = (int )wxListCtrl_GetColumnWidth(_arg0,_arg1); | |
3377 | ||
3378 | wxPy_END_ALLOW_THREADS; | |
3379 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3380 | return _resultobj; |
3381 | } | |
3382 | ||
3383 | #define wxListCtrl_GetCountPerPage(_swigobj) (_swigobj->GetCountPerPage()) | |
efc5f224 | 3384 | static PyObject *_wrap_wxListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3385 | PyObject * _resultobj; |
3386 | int _result; | |
3387 | wxListCtrl * _arg0; | |
1d99702e | 3388 | PyObject * _argo0 = 0; |
efc5f224 | 3389 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3390 | |
3391 | self = self; | |
efc5f224 | 3392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetCountPerPage",_kwnames,&_argo0)) |
8ab979d7 | 3393 | return NULL; |
1d99702e RD |
3394 | if (_argo0) { |
3395 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3396 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3397 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetCountPerPage. Expected _wxListCtrl_p."); |
3398 | return NULL; | |
3399 | } | |
3400 | } | |
cf694132 RD |
3401 | { |
3402 | wxPy_BEGIN_ALLOW_THREADS; | |
3403 | _result = (int )wxListCtrl_GetCountPerPage(_arg0); | |
3404 | ||
3405 | wxPy_END_ALLOW_THREADS; | |
3406 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3407 | return _resultobj; |
3408 | } | |
3409 | ||
3410 | #define wxListCtrl_GetImageList(_swigobj,_swigarg0) (_swigobj->GetImageList(_swigarg0)) | |
efc5f224 | 3411 | static PyObject *_wrap_wxListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3412 | PyObject * _resultobj; |
3413 | wxImageList * _result; | |
3414 | wxListCtrl * _arg0; | |
3415 | int _arg1; | |
1d99702e | 3416 | PyObject * _argo0 = 0; |
efc5f224 | 3417 | char *_kwnames[] = { "self","which", NULL }; |
8ab979d7 RD |
3418 | char _ptemp[128]; |
3419 | ||
3420 | self = self; | |
efc5f224 | 3421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetImageList",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3422 | return NULL; |
1d99702e RD |
3423 | if (_argo0) { |
3424 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3425 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3426 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetImageList. Expected _wxListCtrl_p."); |
3427 | return NULL; | |
3428 | } | |
3429 | } | |
cf694132 RD |
3430 | { |
3431 | wxPy_BEGIN_ALLOW_THREADS; | |
3432 | _result = (wxImageList *)wxListCtrl_GetImageList(_arg0,_arg1); | |
3433 | ||
3434 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
3435 | } if (_result) { |
3436 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p"); | |
3437 | _resultobj = Py_BuildValue("s",_ptemp); | |
3438 | } else { | |
3439 | Py_INCREF(Py_None); | |
3440 | _resultobj = Py_None; | |
3441 | } | |
8ab979d7 RD |
3442 | return _resultobj; |
3443 | } | |
3444 | ||
3445 | #define wxListCtrl_GetItemData(_swigobj,_swigarg0) (_swigobj->GetItemData(_swigarg0)) | |
efc5f224 | 3446 | static PyObject *_wrap_wxListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3447 | PyObject * _resultobj; |
3448 | long _result; | |
3449 | wxListCtrl * _arg0; | |
3450 | long _arg1; | |
1d99702e | 3451 | PyObject * _argo0 = 0; |
efc5f224 | 3452 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3453 | |
3454 | self = self; | |
efc5f224 | 3455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemData",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3456 | return NULL; |
1d99702e RD |
3457 | if (_argo0) { |
3458 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3459 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3460 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemData. Expected _wxListCtrl_p."); |
3461 | return NULL; | |
3462 | } | |
3463 | } | |
cf694132 RD |
3464 | { |
3465 | wxPy_BEGIN_ALLOW_THREADS; | |
3466 | _result = (long )wxListCtrl_GetItemData(_arg0,_arg1); | |
3467 | ||
3468 | wxPy_END_ALLOW_THREADS; | |
3469 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
3470 | return _resultobj; |
3471 | } | |
3472 | ||
e166644c | 3473 | static wxListItem * wxListCtrl_GetItem(wxListCtrl *self,long itemId,int col) { |
8ab979d7 | 3474 | wxListItem* info = new wxListItem; |
0699c864 | 3475 | info->m_itemId = itemId; |
e166644c | 3476 | info->m_col = col; |
f17fee68 | 3477 | info->m_mask = 0xFFFF; |
8ab979d7 RD |
3478 | self->GetItem(*info); |
3479 | return info; | |
3480 | } | |
efc5f224 | 3481 | static PyObject *_wrap_wxListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3482 | PyObject * _resultobj; |
3483 | wxListItem * _result; | |
3484 | wxListCtrl * _arg0; | |
0699c864 | 3485 | long _arg1; |
e166644c | 3486 | int _arg2 = (int ) 0; |
1d99702e | 3487 | PyObject * _argo0 = 0; |
e166644c | 3488 | char *_kwnames[] = { "self","itemId","col", NULL }; |
8ab979d7 RD |
3489 | char _ptemp[128]; |
3490 | ||
3491 | self = self; | |
e166644c | 3492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItem",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3493 | return NULL; |
1d99702e RD |
3494 | if (_argo0) { |
3495 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3496 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItem. Expected _wxListCtrl_p."); |
3498 | return NULL; | |
3499 | } | |
3500 | } | |
cf694132 RD |
3501 | { |
3502 | wxPy_BEGIN_ALLOW_THREADS; | |
e166644c | 3503 | _result = (wxListItem *)wxListCtrl_GetItem(_arg0,_arg1,_arg2); |
cf694132 RD |
3504 | |
3505 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
3506 | } if (_result) { |
3507 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p"); | |
3508 | _resultobj = Py_BuildValue("s",_ptemp); | |
3509 | } else { | |
3510 | Py_INCREF(Py_None); | |
3511 | _resultobj = Py_None; | |
3512 | } | |
8ab979d7 RD |
3513 | return _resultobj; |
3514 | } | |
3515 | ||
3516 | static wxPoint * wxListCtrl_GetItemPosition(wxListCtrl *self,long item) { | |
3517 | wxPoint* pos = new wxPoint; | |
3518 | self->GetItemPosition(item, *pos); | |
3519 | return pos; | |
3520 | } | |
efc5f224 | 3521 | static PyObject *_wrap_wxListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3522 | PyObject * _resultobj; |
3523 | wxPoint * _result; | |
3524 | wxListCtrl * _arg0; | |
3525 | long _arg1; | |
1d99702e | 3526 | PyObject * _argo0 = 0; |
efc5f224 | 3527 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3528 | char _ptemp[128]; |
3529 | ||
3530 | self = self; | |
efc5f224 | 3531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemPosition",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3532 | return NULL; |
1d99702e RD |
3533 | if (_argo0) { |
3534 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3535 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3536 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemPosition. Expected _wxListCtrl_p."); |
3537 | return NULL; | |
3538 | } | |
3539 | } | |
cf694132 RD |
3540 | { |
3541 | wxPy_BEGIN_ALLOW_THREADS; | |
3542 | _result = (wxPoint *)wxListCtrl_GetItemPosition(_arg0,_arg1); | |
3543 | ||
3544 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
3545 | } if (_result) { |
3546 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
3547 | _resultobj = Py_BuildValue("s",_ptemp); | |
3548 | } else { | |
3549 | Py_INCREF(Py_None); | |
3550 | _resultobj = Py_None; | |
3551 | } | |
8ab979d7 RD |
3552 | return _resultobj; |
3553 | } | |
3554 | ||
3555 | static wxRect * wxListCtrl_GetItemRect(wxListCtrl *self,long item,int code) { | |
3556 | wxRect* rect= new wxRect; | |
3557 | self->GetItemRect(item, *rect, code); | |
3558 | return rect; | |
3559 | } | |
efc5f224 | 3560 | static PyObject *_wrap_wxListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3561 | PyObject * _resultobj; |
3562 | wxRect * _result; | |
3563 | wxListCtrl * _arg0; | |
3564 | long _arg1; | |
1d99702e RD |
3565 | int _arg2 = (int ) (wxLIST_RECT_BOUNDS); |
3566 | PyObject * _argo0 = 0; | |
efc5f224 | 3567 | char *_kwnames[] = { "self","item","code", NULL }; |
8ab979d7 RD |
3568 | char _ptemp[128]; |
3569 | ||
3570 | self = self; | |
efc5f224 | 3571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItemRect",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3572 | return NULL; |
1d99702e RD |
3573 | if (_argo0) { |
3574 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3575 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3576 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemRect. Expected _wxListCtrl_p."); |
3577 | return NULL; | |
3578 | } | |
3579 | } | |
cf694132 RD |
3580 | { |
3581 | wxPy_BEGIN_ALLOW_THREADS; | |
3582 | _result = (wxRect *)wxListCtrl_GetItemRect(_arg0,_arg1,_arg2); | |
3583 | ||
3584 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
3585 | } if (_result) { |
3586 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRect_p"); | |
3587 | _resultobj = Py_BuildValue("s",_ptemp); | |
3588 | } else { | |
3589 | Py_INCREF(Py_None); | |
3590 | _resultobj = Py_None; | |
3591 | } | |
8ab979d7 RD |
3592 | return _resultobj; |
3593 | } | |
3594 | ||
3595 | #define wxListCtrl_GetItemState(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemState(_swigarg0,_swigarg1)) | |
efc5f224 | 3596 | static PyObject *_wrap_wxListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3597 | PyObject * _resultobj; |
3598 | int _result; | |
3599 | wxListCtrl * _arg0; | |
3600 | long _arg1; | |
3601 | long _arg2; | |
1d99702e | 3602 | PyObject * _argo0 = 0; |
efc5f224 | 3603 | char *_kwnames[] = { "self","item","stateMask", NULL }; |
8ab979d7 RD |
3604 | |
3605 | self = self; | |
efc5f224 | 3606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_GetItemState",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3607 | return NULL; |
1d99702e RD |
3608 | if (_argo0) { |
3609 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3610 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemState. Expected _wxListCtrl_p."); |
3612 | return NULL; | |
3613 | } | |
3614 | } | |
cf694132 RD |
3615 | { |
3616 | wxPy_BEGIN_ALLOW_THREADS; | |
3617 | _result = (int )wxListCtrl_GetItemState(_arg0,_arg1,_arg2); | |
3618 | ||
3619 | wxPy_END_ALLOW_THREADS; | |
3620 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3621 | return _resultobj; |
3622 | } | |
3623 | ||
3624 | #define wxListCtrl_GetItemCount(_swigobj) (_swigobj->GetItemCount()) | |
efc5f224 | 3625 | static PyObject *_wrap_wxListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3626 | PyObject * _resultobj; |
3627 | int _result; | |
3628 | wxListCtrl * _arg0; | |
1d99702e | 3629 | PyObject * _argo0 = 0; |
efc5f224 | 3630 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3631 | |
3632 | self = self; | |
efc5f224 | 3633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetItemCount",_kwnames,&_argo0)) |
8ab979d7 | 3634 | return NULL; |
1d99702e RD |
3635 | if (_argo0) { |
3636 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3637 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3638 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemCount. Expected _wxListCtrl_p."); |
3639 | return NULL; | |
3640 | } | |
3641 | } | |
cf694132 RD |
3642 | { |
3643 | wxPy_BEGIN_ALLOW_THREADS; | |
3644 | _result = (int )wxListCtrl_GetItemCount(_arg0); | |
3645 | ||
3646 | wxPy_END_ALLOW_THREADS; | |
3647 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3648 | return _resultobj; |
3649 | } | |
3650 | ||
3651 | #define wxListCtrl_GetItemSpacing(_swigobj,_swigarg0) (_swigobj->GetItemSpacing(_swigarg0)) | |
efc5f224 | 3652 | static PyObject *_wrap_wxListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3653 | PyObject * _resultobj; |
3654 | int _result; | |
3655 | wxListCtrl * _arg0; | |
3656 | bool _arg1; | |
1d99702e | 3657 | PyObject * _argo0 = 0; |
8ab979d7 | 3658 | int tempbool1; |
efc5f224 | 3659 | char *_kwnames[] = { "self","isSmall", NULL }; |
8ab979d7 RD |
3660 | |
3661 | self = self; | |
efc5f224 | 3662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetItemSpacing",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3663 | return NULL; |
1d99702e RD |
3664 | if (_argo0) { |
3665 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3666 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3667 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemSpacing. Expected _wxListCtrl_p."); |
3668 | return NULL; | |
3669 | } | |
3670 | } | |
3671 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
3672 | { |
3673 | wxPy_BEGIN_ALLOW_THREADS; | |
3674 | _result = (int )wxListCtrl_GetItemSpacing(_arg0,_arg1); | |
3675 | ||
3676 | wxPy_END_ALLOW_THREADS; | |
3677 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3678 | return _resultobj; |
3679 | } | |
3680 | ||
3681 | #define wxListCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) | |
efc5f224 | 3682 | static PyObject *_wrap_wxListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3683 | PyObject * _resultobj; |
3684 | wxString * _result; | |
3685 | wxListCtrl * _arg0; | |
3686 | long _arg1; | |
1d99702e | 3687 | PyObject * _argo0 = 0; |
efc5f224 | 3688 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3689 | |
3690 | self = self; | |
efc5f224 | 3691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemText",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3692 | return NULL; |
1d99702e RD |
3693 | if (_argo0) { |
3694 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3695 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3696 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemText. Expected _wxListCtrl_p."); |
3697 | return NULL; | |
3698 | } | |
3699 | } | |
8ab979d7 | 3700 | { |
cf694132 RD |
3701 | wxPy_BEGIN_ALLOW_THREADS; |
3702 | _result = new wxString (wxListCtrl_GetItemText(_arg0,_arg1)); | |
3703 | ||
3704 | wxPy_END_ALLOW_THREADS; | |
3705 | }{ | |
eec92d76 | 3706 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
3707 | } |
3708 | { | |
3709 | delete _result; | |
3710 | } | |
3711 | return _resultobj; | |
3712 | } | |
3713 | ||
3714 | #define wxListCtrl_GetNextItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetNextItem(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 3715 | static PyObject *_wrap_wxListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3716 | PyObject * _resultobj; |
3717 | long _result; | |
3718 | wxListCtrl * _arg0; | |
3719 | long _arg1; | |
1d99702e RD |
3720 | int _arg2 = (int ) (wxLIST_NEXT_ALL); |
3721 | int _arg3 = (int ) (wxLIST_STATE_DONTCARE); | |
3722 | PyObject * _argo0 = 0; | |
efc5f224 | 3723 | char *_kwnames[] = { "self","item","geometry","state", NULL }; |
8ab979d7 RD |
3724 | |
3725 | self = self; | |
efc5f224 | 3726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:wxListCtrl_GetNextItem",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 3727 | return NULL; |
1d99702e RD |
3728 | if (_argo0) { |
3729 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3730 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3731 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetNextItem. Expected _wxListCtrl_p."); |
3732 | return NULL; | |
3733 | } | |
3734 | } | |
cf694132 RD |
3735 | { |
3736 | wxPy_BEGIN_ALLOW_THREADS; | |
3737 | _result = (long )wxListCtrl_GetNextItem(_arg0,_arg1,_arg2,_arg3); | |
3738 | ||
3739 | wxPy_END_ALLOW_THREADS; | |
3740 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
3741 | return _resultobj; |
3742 | } | |
3743 | ||
3744 | #define wxListCtrl_GetSelectedItemCount(_swigobj) (_swigobj->GetSelectedItemCount()) | |
efc5f224 | 3745 | static PyObject *_wrap_wxListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3746 | PyObject * _resultobj; |
3747 | int _result; | |
3748 | wxListCtrl * _arg0; | |
1d99702e | 3749 | PyObject * _argo0 = 0; |
efc5f224 | 3750 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3751 | |
3752 | self = self; | |
efc5f224 | 3753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetSelectedItemCount",_kwnames,&_argo0)) |
8ab979d7 | 3754 | return NULL; |
1d99702e RD |
3755 | if (_argo0) { |
3756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetSelectedItemCount. Expected _wxListCtrl_p."); |
3759 | return NULL; | |
3760 | } | |
3761 | } | |
cf694132 RD |
3762 | { |
3763 | wxPy_BEGIN_ALLOW_THREADS; | |
3764 | _result = (int )wxListCtrl_GetSelectedItemCount(_arg0); | |
3765 | ||
3766 | wxPy_END_ALLOW_THREADS; | |
3767 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3768 | return _resultobj; |
3769 | } | |
3770 | ||
3771 | #define wxListCtrl_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
efc5f224 | 3772 | static PyObject *_wrap_wxListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3773 | PyObject * _resultobj; |
3774 | wxColour * _result; | |
3775 | wxListCtrl * _arg0; | |
1d99702e | 3776 | PyObject * _argo0 = 0; |
efc5f224 | 3777 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3778 | char _ptemp[128]; |
3779 | ||
3780 | self = self; | |
efc5f224 | 3781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTextColour",_kwnames,&_argo0)) |
8ab979d7 | 3782 | return NULL; |
1d99702e RD |
3783 | if (_argo0) { |
3784 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3785 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3786 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTextColour. Expected _wxListCtrl_p."); |
3787 | return NULL; | |
3788 | } | |
3789 | } | |
cf694132 RD |
3790 | { |
3791 | wxPy_BEGIN_ALLOW_THREADS; | |
3792 | _result = new wxColour (wxListCtrl_GetTextColour(_arg0)); | |
3793 | ||
3794 | wxPy_END_ALLOW_THREADS; | |
3795 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
8ab979d7 RD |
3796 | _resultobj = Py_BuildValue("s",_ptemp); |
3797 | return _resultobj; | |
3798 | } | |
3799 | ||
be4d9c1f | 3800 | #define wxListCtrl_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) |
efc5f224 | 3801 | static PyObject *_wrap_wxListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
be4d9c1f RD |
3802 | PyObject * _resultobj; |
3803 | wxListCtrl * _arg0; | |
3804 | wxColour * _arg1; | |
1d99702e | 3805 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3806 | wxColour temp; |
3807 | PyObject * _obj1 = 0; | |
efc5f224 | 3808 | char *_kwnames[] = { "self","col", NULL }; |
be4d9c1f RD |
3809 | |
3810 | self = self; | |
f6bcfd97 | 3811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetTextColour",_kwnames,&_argo0,&_obj1)) |
be4d9c1f | 3812 | return NULL; |
1d99702e RD |
3813 | if (_argo0) { |
3814 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3815 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
be4d9c1f RD |
3816 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetTextColour. Expected _wxListCtrl_p."); |
3817 | return NULL; | |
3818 | } | |
3819 | } | |
f6bcfd97 BP |
3820 | { |
3821 | _arg1 = &temp; | |
3822 | if (! wxColour_helper(_obj1, &_arg1)) | |
be4d9c1f | 3823 | return NULL; |
f6bcfd97 | 3824 | } |
cf694132 RD |
3825 | { |
3826 | wxPy_BEGIN_ALLOW_THREADS; | |
3827 | wxListCtrl_SetTextColour(_arg0,*_arg1); | |
3828 | ||
3829 | wxPy_END_ALLOW_THREADS; | |
3830 | } Py_INCREF(Py_None); | |
be4d9c1f RD |
3831 | _resultobj = Py_None; |
3832 | return _resultobj; | |
3833 | } | |
3834 | ||
8ab979d7 | 3835 | #define wxListCtrl_GetTopItem(_swigobj) (_swigobj->GetTopItem()) |
efc5f224 | 3836 | static PyObject *_wrap_wxListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3837 | PyObject * _resultobj; |
3838 | long _result; | |
3839 | wxListCtrl * _arg0; | |
1d99702e | 3840 | PyObject * _argo0 = 0; |
efc5f224 | 3841 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3842 | |
3843 | self = self; | |
efc5f224 | 3844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTopItem",_kwnames,&_argo0)) |
8ab979d7 | 3845 | return NULL; |
1d99702e RD |
3846 | if (_argo0) { |
3847 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3848 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3849 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTopItem. Expected _wxListCtrl_p."); |
3850 | return NULL; | |
3851 | } | |
3852 | } | |
cf694132 RD |
3853 | { |
3854 | wxPy_BEGIN_ALLOW_THREADS; | |
3855 | _result = (long )wxListCtrl_GetTopItem(_arg0); | |
3856 | ||
3857 | wxPy_END_ALLOW_THREADS; | |
3858 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
3859 | return _resultobj; |
3860 | } | |
3861 | ||
3862 | #define wxListCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) | |
efc5f224 | 3863 | static PyObject *_wrap_wxListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3864 | PyObject * _resultobj; |
3865 | long _result; | |
3866 | wxListCtrl * _arg0; | |
3867 | wxPoint * _arg1; | |
3868 | int * _arg2; | |
3869 | int temp; | |
1d99702e | 3870 | PyObject * _argo0 = 0; |
2f90df85 RD |
3871 | wxPoint temp0; |
3872 | PyObject * _obj1 = 0; | |
efc5f224 | 3873 | char *_kwnames[] = { "self","point", NULL }; |
8ab979d7 RD |
3874 | |
3875 | self = self; | |
3876 | { | |
3877 | _arg2 = &temp; | |
3878 | } | |
2f90df85 | 3879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_HitTest",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3880 | return NULL; |
1d99702e RD |
3881 | if (_argo0) { |
3882 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3883 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3884 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_HitTest. Expected _wxListCtrl_p."); |
3885 | return NULL; | |
3886 | } | |
3887 | } | |
2f90df85 RD |
3888 | { |
3889 | _arg1 = &temp0; | |
3890 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 3891 | return NULL; |
2f90df85 | 3892 | } |
cf694132 RD |
3893 | { |
3894 | wxPy_BEGIN_ALLOW_THREADS; | |
3895 | _result = (long )wxListCtrl_HitTest(_arg0,*_arg1,*_arg2); | |
3896 | ||
3897 | wxPy_END_ALLOW_THREADS; | |
3898 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
3899 | { |
3900 | PyObject *o; | |
3901 | o = PyInt_FromLong((long) (*_arg2)); | |
3902 | _resultobj = t_output_helper(_resultobj, o); | |
3903 | } | |
3904 | return _resultobj; | |
3905 | } | |
3906 | ||
c368d904 RD |
3907 | #define wxListCtrl_InsertColumnInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertColumn(_swigarg0,_swigarg1)) |
3908 | static PyObject *_wrap_wxListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3909 | PyObject * _resultobj; |
3910 | long _result; | |
3911 | wxListCtrl * _arg0; | |
3912 | long _arg1; | |
3913 | wxListItem * _arg2; | |
1d99702e RD |
3914 | PyObject * _argo0 = 0; |
3915 | PyObject * _argo2 = 0; | |
efc5f224 | 3916 | char *_kwnames[] = { "self","col","info", NULL }; |
8ab979d7 RD |
3917 | |
3918 | self = self; | |
c368d904 | 3919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertColumnInfo",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 3920 | return NULL; |
1d99702e RD |
3921 | if (_argo0) { |
3922 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3923 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
c368d904 | 3924 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumnInfo. Expected _wxListCtrl_p."); |
8ab979d7 RD |
3925 | return NULL; |
3926 | } | |
3927 | } | |
1d99702e RD |
3928 | if (_argo2) { |
3929 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3930 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
c368d904 | 3931 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_InsertColumnInfo. Expected _wxListItem_p."); |
8ab979d7 RD |
3932 | return NULL; |
3933 | } | |
3934 | } | |
cf694132 RD |
3935 | { |
3936 | wxPy_BEGIN_ALLOW_THREADS; | |
c368d904 | 3937 | _result = (long )wxListCtrl_InsertColumnInfo(_arg0,_arg1,*_arg2); |
cf694132 RD |
3938 | |
3939 | wxPy_END_ALLOW_THREADS; | |
3940 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
3941 | return _resultobj; |
3942 | } | |
3943 | ||
3944 | #define wxListCtrl_InsertColumn(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertColumn(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
efc5f224 | 3945 | static PyObject *_wrap_wxListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3946 | PyObject * _resultobj; |
3947 | long _result; | |
3948 | wxListCtrl * _arg0; | |
3949 | long _arg1; | |
3950 | wxString * _arg2; | |
1d99702e RD |
3951 | int _arg3 = (int ) (wxLIST_FORMAT_LEFT); |
3952 | int _arg4 = (int ) -1; | |
3953 | PyObject * _argo0 = 0; | |
8ab979d7 | 3954 | PyObject * _obj2 = 0; |
efc5f224 | 3955 | char *_kwnames[] = { "self","col","heading","format","width", NULL }; |
8ab979d7 RD |
3956 | |
3957 | self = self; | |
efc5f224 | 3958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|ii:wxListCtrl_InsertColumn",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3,&_arg4)) |
8ab979d7 | 3959 | return NULL; |
1d99702e RD |
3960 | if (_argo0) { |
3961 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3962 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3963 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumn. Expected _wxListCtrl_p."); |
3964 | return NULL; | |
3965 | } | |
3966 | } | |
3967 | { | |
185d7c3e RD |
3968 | #if PYTHON_API_VERSION >= 1009 |
3969 | char* tmpPtr; int tmpSize; | |
3970 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
3971 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
3972 | return NULL; | |
3973 | } | |
3974 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3975 | return NULL; | |
3976 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3977 | #else | |
8ab979d7 RD |
3978 | if (!PyString_Check(_obj2)) { |
3979 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3980 | return NULL; | |
3981 | } | |
185d7c3e RD |
3982 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
3983 | #endif | |
8ab979d7 | 3984 | } |
cf694132 RD |
3985 | { |
3986 | wxPy_BEGIN_ALLOW_THREADS; | |
3987 | _result = (long )wxListCtrl_InsertColumn(_arg0,_arg1,*_arg2,_arg3,_arg4); | |
3988 | ||
3989 | wxPy_END_ALLOW_THREADS; | |
3990 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
3991 | { |
3992 | if (_obj2) | |
3993 | delete _arg2; | |
3994 | } | |
3995 | return _resultobj; | |
3996 | } | |
3997 | ||
3998 | #define wxListCtrl_InsertItem(_swigobj,_swigarg0) (_swigobj->InsertItem(_swigarg0)) | |
efc5f224 | 3999 | static PyObject *_wrap_wxListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4000 | PyObject * _resultobj; |
4001 | long _result; | |
4002 | wxListCtrl * _arg0; | |
4003 | wxListItem * _arg1; | |
1d99702e RD |
4004 | PyObject * _argo0 = 0; |
4005 | PyObject * _argo1 = 0; | |
efc5f224 | 4006 | char *_kwnames[] = { "self","info", NULL }; |
8ab979d7 RD |
4007 | |
4008 | self = self; | |
efc5f224 | 4009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_InsertItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4010 | return NULL; |
1d99702e RD |
4011 | if (_argo0) { |
4012 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4013 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4014 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertItem. Expected _wxListCtrl_p."); |
4015 | return NULL; | |
4016 | } | |
4017 | } | |
1d99702e RD |
4018 | if (_argo1) { |
4019 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4020 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
8ab979d7 RD |
4021 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_InsertItem. Expected _wxListItem_p."); |
4022 | return NULL; | |
4023 | } | |
4024 | } | |
cf694132 RD |
4025 | { |
4026 | wxPy_BEGIN_ALLOW_THREADS; | |
4027 | _result = (long )wxListCtrl_InsertItem(_arg0,*_arg1); | |
4028 | ||
4029 | wxPy_END_ALLOW_THREADS; | |
4030 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
4031 | return _resultobj; |
4032 | } | |
4033 | ||
4034 | #define wxListCtrl_InsertStringItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) | |
efc5f224 | 4035 | static PyObject *_wrap_wxListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4036 | PyObject * _resultobj; |
4037 | long _result; | |
4038 | wxListCtrl * _arg0; | |
4039 | long _arg1; | |
4040 | wxString * _arg2; | |
1d99702e | 4041 | PyObject * _argo0 = 0; |
8ab979d7 | 4042 | PyObject * _obj2 = 0; |
efc5f224 | 4043 | char *_kwnames[] = { "self","index","label", NULL }; |
8ab979d7 RD |
4044 | |
4045 | self = self; | |
efc5f224 | 4046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertStringItem",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 4047 | return NULL; |
1d99702e RD |
4048 | if (_argo0) { |
4049 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4050 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4051 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertStringItem. Expected _wxListCtrl_p."); |
4052 | return NULL; | |
4053 | } | |
4054 | } | |
4055 | { | |
185d7c3e RD |
4056 | #if PYTHON_API_VERSION >= 1009 |
4057 | char* tmpPtr; int tmpSize; | |
4058 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
4059 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
4060 | return NULL; | |
4061 | } | |
4062 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4063 | return NULL; | |
4064 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4065 | #else | |
8ab979d7 RD |
4066 | if (!PyString_Check(_obj2)) { |
4067 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4068 | return NULL; | |
4069 | } | |
185d7c3e RD |
4070 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
4071 | #endif | |
8ab979d7 | 4072 | } |
cf694132 RD |
4073 | { |
4074 | wxPy_BEGIN_ALLOW_THREADS; | |
4075 | _result = (long )wxListCtrl_InsertStringItem(_arg0,_arg1,*_arg2); | |
4076 | ||
4077 | wxPy_END_ALLOW_THREADS; | |
4078 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
4079 | { |
4080 | if (_obj2) | |
4081 | delete _arg2; | |
4082 | } | |
4083 | return _resultobj; | |
4084 | } | |
4085 | ||
4086 | #define wxListCtrl_InsertImageItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) | |
efc5f224 | 4087 | static PyObject *_wrap_wxListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4088 | PyObject * _resultobj; |
4089 | long _result; | |
4090 | wxListCtrl * _arg0; | |
4091 | long _arg1; | |
4092 | int _arg2; | |
1d99702e | 4093 | PyObject * _argo0 = 0; |
efc5f224 | 4094 | char *_kwnames[] = { "self","index","imageIndex", NULL }; |
8ab979d7 RD |
4095 | |
4096 | self = self; | |
efc5f224 | 4097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oli:wxListCtrl_InsertImageItem",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4098 | return NULL; |
1d99702e RD |
4099 | if (_argo0) { |
4100 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4101 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4102 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageItem. Expected _wxListCtrl_p."); |
4103 | return NULL; | |
4104 | } | |
4105 | } | |
cf694132 RD |
4106 | { |
4107 | wxPy_BEGIN_ALLOW_THREADS; | |
4108 | _result = (long )wxListCtrl_InsertImageItem(_arg0,_arg1,_arg2); | |
4109 | ||
4110 | wxPy_END_ALLOW_THREADS; | |
4111 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
4112 | return _resultobj; |
4113 | } | |
4114 | ||
4115 | #define wxListCtrl_InsertImageStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 4116 | static PyObject *_wrap_wxListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4117 | PyObject * _resultobj; |
4118 | long _result; | |
4119 | wxListCtrl * _arg0; | |
4120 | long _arg1; | |
4121 | wxString * _arg2; | |
4122 | int _arg3; | |
1d99702e | 4123 | PyObject * _argo0 = 0; |
8ab979d7 | 4124 | PyObject * _obj2 = 0; |
efc5f224 | 4125 | char *_kwnames[] = { "self","index","label","imageIndex", NULL }; |
8ab979d7 RD |
4126 | |
4127 | self = self; | |
efc5f224 | 4128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_InsertImageStringItem",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) |
8ab979d7 | 4129 | return NULL; |
1d99702e RD |
4130 | if (_argo0) { |
4131 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4132 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4133 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageStringItem. Expected _wxListCtrl_p."); |
4134 | return NULL; | |
4135 | } | |
4136 | } | |
4137 | { | |
185d7c3e RD |
4138 | #if PYTHON_API_VERSION >= 1009 |
4139 | char* tmpPtr; int tmpSize; | |
4140 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
4141 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
4142 | return NULL; | |
4143 | } | |
4144 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4145 | return NULL; | |
4146 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4147 | #else | |
8ab979d7 RD |
4148 | if (!PyString_Check(_obj2)) { |
4149 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4150 | return NULL; | |
4151 | } | |
185d7c3e RD |
4152 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
4153 | #endif | |
8ab979d7 | 4154 | } |
cf694132 RD |
4155 | { |
4156 | wxPy_BEGIN_ALLOW_THREADS; | |
4157 | _result = (long )wxListCtrl_InsertImageStringItem(_arg0,_arg1,*_arg2,_arg3); | |
4158 | ||
4159 | wxPy_END_ALLOW_THREADS; | |
4160 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
4161 | { |
4162 | if (_obj2) | |
4163 | delete _arg2; | |
4164 | } | |
4165 | return _resultobj; | |
4166 | } | |
4167 | ||
4168 | #define wxListCtrl_ScrollList(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScrollList(_swigarg0,_swigarg1)) | |
efc5f224 | 4169 | static PyObject *_wrap_wxListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4170 | PyObject * _resultobj; |
4171 | bool _result; | |
4172 | wxListCtrl * _arg0; | |
4173 | int _arg1; | |
4174 | int _arg2; | |
1d99702e | 4175 | PyObject * _argo0 = 0; |
efc5f224 | 4176 | char *_kwnames[] = { "self","dx","dy", NULL }; |
8ab979d7 RD |
4177 | |
4178 | self = self; | |
efc5f224 | 4179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_ScrollList",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4180 | return NULL; |
1d99702e RD |
4181 | if (_argo0) { |
4182 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4183 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4184 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ScrollList. Expected _wxListCtrl_p."); |
4185 | return NULL; | |
4186 | } | |
4187 | } | |
cf694132 RD |
4188 | { |
4189 | wxPy_BEGIN_ALLOW_THREADS; | |
4190 | _result = (bool )wxListCtrl_ScrollList(_arg0,_arg1,_arg2); | |
4191 | ||
4192 | wxPy_END_ALLOW_THREADS; | |
4193 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4194 | return _resultobj; |
4195 | } | |
4196 | ||
4197 | #define wxListCtrl_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
efc5f224 | 4198 | static PyObject *_wrap_wxListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4199 | PyObject * _resultobj; |
4200 | wxListCtrl * _arg0; | |
4201 | wxColour * _arg1; | |
1d99702e | 4202 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
4203 | wxColour temp; |
4204 | PyObject * _obj1 = 0; | |
efc5f224 | 4205 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
4206 | |
4207 | self = self; | |
f6bcfd97 | 4208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4209 | return NULL; |
1d99702e RD |
4210 | if (_argo0) { |
4211 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4212 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4213 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetBackgroundColour. Expected _wxListCtrl_p."); |
4214 | return NULL; | |
4215 | } | |
4216 | } | |
f6bcfd97 BP |
4217 | { |
4218 | _arg1 = &temp; | |
4219 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 4220 | return NULL; |
f6bcfd97 | 4221 | } |
cf694132 RD |
4222 | { |
4223 | wxPy_BEGIN_ALLOW_THREADS; | |
4224 | wxListCtrl_SetBackgroundColour(_arg0,*_arg1); | |
4225 | ||
4226 | wxPy_END_ALLOW_THREADS; | |
4227 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4228 | _resultobj = Py_None; |
4229 | return _resultobj; | |
4230 | } | |
4231 | ||
4232 | #define wxListCtrl_SetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumn(_swigarg0,_swigarg1)) | |
efc5f224 | 4233 | static PyObject *_wrap_wxListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4234 | PyObject * _resultobj; |
4235 | bool _result; | |
4236 | wxListCtrl * _arg0; | |
4237 | int _arg1; | |
4238 | wxListItem * _arg2; | |
1d99702e RD |
4239 | PyObject * _argo0 = 0; |
4240 | PyObject * _argo2 = 0; | |
efc5f224 | 4241 | char *_kwnames[] = { "self","col","item", NULL }; |
8ab979d7 RD |
4242 | |
4243 | self = self; | |
efc5f224 | 4244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_SetColumn",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 4245 | return NULL; |
1d99702e RD |
4246 | if (_argo0) { |
4247 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4248 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4249 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumn. Expected _wxListCtrl_p."); |
4250 | return NULL; | |
4251 | } | |
4252 | } | |
1d99702e RD |
4253 | if (_argo2) { |
4254 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
4255 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
8ab979d7 RD |
4256 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_SetColumn. Expected _wxListItem_p."); |
4257 | return NULL; | |
4258 | } | |
4259 | } | |
cf694132 RD |
4260 | { |
4261 | wxPy_BEGIN_ALLOW_THREADS; | |
4262 | _result = (bool )wxListCtrl_SetColumn(_arg0,_arg1,*_arg2); | |
4263 | ||
4264 | wxPy_END_ALLOW_THREADS; | |
4265 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4266 | return _resultobj; |
4267 | } | |
4268 | ||
4269 | #define wxListCtrl_SetColumnWidth(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnWidth(_swigarg0,_swigarg1)) | |
efc5f224 | 4270 | static PyObject *_wrap_wxListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4271 | PyObject * _resultobj; |
4272 | bool _result; | |
4273 | wxListCtrl * _arg0; | |
4274 | int _arg1; | |
4275 | int _arg2; | |
1d99702e | 4276 | PyObject * _argo0 = 0; |
efc5f224 | 4277 | char *_kwnames[] = { "self","col","width", NULL }; |
8ab979d7 RD |
4278 | |
4279 | self = self; | |
efc5f224 | 4280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_SetColumnWidth",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4281 | return NULL; |
1d99702e RD |
4282 | if (_argo0) { |
4283 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4284 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4285 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumnWidth. Expected _wxListCtrl_p."); |
4286 | return NULL; | |
4287 | } | |
4288 | } | |
cf694132 RD |
4289 | { |
4290 | wxPy_BEGIN_ALLOW_THREADS; | |
4291 | _result = (bool )wxListCtrl_SetColumnWidth(_arg0,_arg1,_arg2); | |
4292 | ||
4293 | wxPy_END_ALLOW_THREADS; | |
4294 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4295 | return _resultobj; |
4296 | } | |
4297 | ||
4298 | #define wxListCtrl_SetImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetImageList(_swigarg0,_swigarg1)) | |
efc5f224 | 4299 | static PyObject *_wrap_wxListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4300 | PyObject * _resultobj; |
4301 | wxListCtrl * _arg0; | |
4302 | wxImageList * _arg1; | |
4303 | int _arg2; | |
1d99702e RD |
4304 | PyObject * _argo0 = 0; |
4305 | PyObject * _argo1 = 0; | |
efc5f224 | 4306 | char *_kwnames[] = { "self","imageList","which", NULL }; |
8ab979d7 RD |
4307 | |
4308 | self = self; | |
efc5f224 | 4309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_SetImageList",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 4310 | return NULL; |
1d99702e RD |
4311 | if (_argo0) { |
4312 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4313 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4314 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetImageList. Expected _wxListCtrl_p."); |
4315 | return NULL; | |
4316 | } | |
4317 | } | |
1d99702e RD |
4318 | if (_argo1) { |
4319 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4320 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
8ab979d7 RD |
4321 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetImageList. Expected _wxImageList_p."); |
4322 | return NULL; | |
4323 | } | |
4324 | } | |
cf694132 RD |
4325 | { |
4326 | wxPy_BEGIN_ALLOW_THREADS; | |
4327 | wxListCtrl_SetImageList(_arg0,_arg1,_arg2); | |
4328 | ||
4329 | wxPy_END_ALLOW_THREADS; | |
4330 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4331 | _resultobj = Py_None; |
4332 | return _resultobj; | |
4333 | } | |
4334 | ||
4335 | #define wxListCtrl_SetItem(_swigobj,_swigarg0) (_swigobj->SetItem(_swigarg0)) | |
efc5f224 | 4336 | static PyObject *_wrap_wxListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4337 | PyObject * _resultobj; |
4338 | bool _result; | |
4339 | wxListCtrl * _arg0; | |
4340 | wxListItem * _arg1; | |
1d99702e RD |
4341 | PyObject * _argo0 = 0; |
4342 | PyObject * _argo1 = 0; | |
efc5f224 | 4343 | char *_kwnames[] = { "self","info", NULL }; |
8ab979d7 RD |
4344 | |
4345 | self = self; | |
efc5f224 | 4346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4347 | return NULL; |
1d99702e RD |
4348 | if (_argo0) { |
4349 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4350 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4351 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItem. Expected _wxListCtrl_p."); |
4352 | return NULL; | |
4353 | } | |
4354 | } | |
1d99702e RD |
4355 | if (_argo1) { |
4356 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4357 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
8ab979d7 RD |
4358 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetItem. Expected _wxListItem_p."); |
4359 | return NULL; | |
4360 | } | |
4361 | } | |
cf694132 RD |
4362 | { |
4363 | wxPy_BEGIN_ALLOW_THREADS; | |
4364 | _result = (bool )wxListCtrl_SetItem(_arg0,*_arg1); | |
4365 | ||
4366 | wxPy_END_ALLOW_THREADS; | |
4367 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4368 | return _resultobj; |
4369 | } | |
4370 | ||
af309447 | 4371 | #define wxListCtrl_SetStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
efc5f224 | 4372 | static PyObject *_wrap_wxListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4373 | PyObject * _resultobj; |
4374 | long _result; | |
4375 | wxListCtrl * _arg0; | |
4376 | long _arg1; | |
4377 | int _arg2; | |
4378 | wxString * _arg3; | |
1d99702e RD |
4379 | int _arg4 = (int ) -1; |
4380 | PyObject * _argo0 = 0; | |
8ab979d7 | 4381 | PyObject * _obj3 = 0; |
efc5f224 | 4382 | char *_kwnames[] = { "self","index","col","label","imageId", NULL }; |
8ab979d7 RD |
4383 | |
4384 | self = self; | |
efc5f224 | 4385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OliO|i:wxListCtrl_SetStringItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) |
8ab979d7 | 4386 | return NULL; |
1d99702e RD |
4387 | if (_argo0) { |
4388 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4389 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
af309447 | 4390 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetStringItem. Expected _wxListCtrl_p."); |
8ab979d7 RD |
4391 | return NULL; |
4392 | } | |
4393 | } | |
4394 | { | |
185d7c3e RD |
4395 | #if PYTHON_API_VERSION >= 1009 |
4396 | char* tmpPtr; int tmpSize; | |
4397 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
4398 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
4399 | return NULL; | |
4400 | } | |
4401 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
4402 | return NULL; | |
4403 | _arg3 = new wxString(tmpPtr, tmpSize); | |
4404 | #else | |
8ab979d7 RD |
4405 | if (!PyString_Check(_obj3)) { |
4406 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4407 | return NULL; | |
4408 | } | |
185d7c3e RD |
4409 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
4410 | #endif | |
8ab979d7 | 4411 | } |
cf694132 RD |
4412 | { |
4413 | wxPy_BEGIN_ALLOW_THREADS; | |
4414 | _result = (long )wxListCtrl_SetStringItem(_arg0,_arg1,_arg2,*_arg3,_arg4); | |
4415 | ||
4416 | wxPy_END_ALLOW_THREADS; | |
4417 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
4418 | { |
4419 | if (_obj3) | |
4420 | delete _arg3; | |
4421 | } | |
4422 | return _resultobj; | |
4423 | } | |
4424 | ||
4425 | #define wxListCtrl_SetItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemData(_swigarg0,_swigarg1)) | |
efc5f224 | 4426 | static PyObject *_wrap_wxListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4427 | PyObject * _resultobj; |
4428 | bool _result; | |
4429 | wxListCtrl * _arg0; | |
4430 | long _arg1; | |
4431 | long _arg2; | |
1d99702e | 4432 | PyObject * _argo0 = 0; |
efc5f224 | 4433 | char *_kwnames[] = { "self","item","data", NULL }; |
8ab979d7 RD |
4434 | |
4435 | self = self; | |
efc5f224 | 4436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_SetItemData",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4437 | return NULL; |
1d99702e RD |
4438 | if (_argo0) { |
4439 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4440 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4441 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemData. Expected _wxListCtrl_p."); |
4442 | return NULL; | |
4443 | } | |
4444 | } | |
cf694132 RD |
4445 | { |
4446 | wxPy_BEGIN_ALLOW_THREADS; | |
4447 | _result = (bool )wxListCtrl_SetItemData(_arg0,_arg1,_arg2); | |
4448 | ||
4449 | wxPy_END_ALLOW_THREADS; | |
4450 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4451 | return _resultobj; |
4452 | } | |
4453 | ||
4454 | #define wxListCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 4455 | static PyObject *_wrap_wxListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4456 | PyObject * _resultobj; |
4457 | bool _result; | |
4458 | wxListCtrl * _arg0; | |
4459 | long _arg1; | |
4460 | int _arg2; | |
4461 | int _arg3; | |
1d99702e | 4462 | PyObject * _argo0 = 0; |
efc5f224 | 4463 | char *_kwnames[] = { "self","item","image","selImage", NULL }; |
8ab979d7 RD |
4464 | |
4465 | self = self; | |
efc5f224 | 4466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olii:wxListCtrl_SetItemImage",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 4467 | return NULL; |
1d99702e RD |
4468 | if (_argo0) { |
4469 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4470 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4471 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemImage. Expected _wxListCtrl_p."); |
4472 | return NULL; | |
4473 | } | |
4474 | } | |
cf694132 RD |
4475 | { |
4476 | wxPy_BEGIN_ALLOW_THREADS; | |
4477 | _result = (bool )wxListCtrl_SetItemImage(_arg0,_arg1,_arg2,_arg3); | |
4478 | ||
4479 | wxPy_END_ALLOW_THREADS; | |
4480 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4481 | return _resultobj; |
4482 | } | |
4483 | ||
4484 | #define wxListCtrl_SetItemPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemPosition(_swigarg0,_swigarg1)) | |
efc5f224 | 4485 | static PyObject *_wrap_wxListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4486 | PyObject * _resultobj; |
4487 | bool _result; | |
4488 | wxListCtrl * _arg0; | |
4489 | long _arg1; | |
4490 | wxPoint * _arg2; | |
1d99702e | 4491 | PyObject * _argo0 = 0; |
2f90df85 RD |
4492 | wxPoint temp; |
4493 | PyObject * _obj2 = 0; | |
efc5f224 | 4494 | char *_kwnames[] = { "self","item","pos", NULL }; |
8ab979d7 RD |
4495 | |
4496 | self = self; | |
2f90df85 | 4497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemPosition",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 4498 | return NULL; |
1d99702e RD |
4499 | if (_argo0) { |
4500 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4501 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4502 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemPosition. Expected _wxListCtrl_p."); |
4503 | return NULL; | |
4504 | } | |
4505 | } | |
2f90df85 RD |
4506 | { |
4507 | _arg2 = &temp; | |
4508 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 4509 | return NULL; |
2f90df85 | 4510 | } |
cf694132 RD |
4511 | { |
4512 | wxPy_BEGIN_ALLOW_THREADS; | |
4513 | _result = (bool )wxListCtrl_SetItemPosition(_arg0,_arg1,*_arg2); | |
4514 | ||
4515 | wxPy_END_ALLOW_THREADS; | |
4516 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4517 | return _resultobj; |
4518 | } | |
4519 | ||
4520 | #define wxListCtrl_SetItemState(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemState(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 4521 | static PyObject *_wrap_wxListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4522 | PyObject * _resultobj; |
4523 | bool _result; | |
4524 | wxListCtrl * _arg0; | |
4525 | long _arg1; | |
4526 | long _arg2; | |
4527 | long _arg3; | |
1d99702e | 4528 | PyObject * _argo0 = 0; |
efc5f224 | 4529 | char *_kwnames[] = { "self","item","state","stateMask", NULL }; |
8ab979d7 RD |
4530 | |
4531 | self = self; | |
efc5f224 | 4532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxListCtrl_SetItemState",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 4533 | return NULL; |
1d99702e RD |
4534 | if (_argo0) { |
4535 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4536 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4537 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemState. Expected _wxListCtrl_p."); |
4538 | return NULL; | |
4539 | } | |
4540 | } | |
cf694132 RD |
4541 | { |
4542 | wxPy_BEGIN_ALLOW_THREADS; | |
4543 | _result = (bool )wxListCtrl_SetItemState(_arg0,_arg1,_arg2,_arg3); | |
4544 | ||
4545 | wxPy_END_ALLOW_THREADS; | |
4546 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4547 | return _resultobj; |
4548 | } | |
4549 | ||
4550 | #define wxListCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) | |
efc5f224 | 4551 | static PyObject *_wrap_wxListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4552 | PyObject * _resultobj; |
4553 | wxListCtrl * _arg0; | |
4554 | long _arg1; | |
4555 | wxString * _arg2; | |
1d99702e | 4556 | PyObject * _argo0 = 0; |
8ab979d7 | 4557 | PyObject * _obj2 = 0; |
efc5f224 | 4558 | char *_kwnames[] = { "self","item","text", NULL }; |
8ab979d7 RD |
4559 | |
4560 | self = self; | |
efc5f224 | 4561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemText",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 4562 | return NULL; |
1d99702e RD |
4563 | if (_argo0) { |
4564 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4565 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4566 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemText. Expected _wxListCtrl_p."); |
4567 | return NULL; | |
4568 | } | |
4569 | } | |
4570 | { | |
185d7c3e RD |
4571 | #if PYTHON_API_VERSION >= 1009 |
4572 | char* tmpPtr; int tmpSize; | |
4573 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
4574 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
4575 | return NULL; | |
4576 | } | |
4577 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4578 | return NULL; | |
4579 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4580 | #else | |
8ab979d7 RD |
4581 | if (!PyString_Check(_obj2)) { |
4582 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4583 | return NULL; | |
4584 | } | |
185d7c3e RD |
4585 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
4586 | #endif | |
8ab979d7 | 4587 | } |
cf694132 RD |
4588 | { |
4589 | wxPy_BEGIN_ALLOW_THREADS; | |
4590 | wxListCtrl_SetItemText(_arg0,_arg1,*_arg2); | |
4591 | ||
4592 | wxPy_END_ALLOW_THREADS; | |
4593 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4594 | _resultobj = Py_None; |
4595 | { | |
4596 | if (_obj2) | |
4597 | delete _arg2; | |
4598 | } | |
4599 | return _resultobj; | |
4600 | } | |
4601 | ||
4602 | #define wxListCtrl_SetSingleStyle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSingleStyle(_swigarg0,_swigarg1)) | |
efc5f224 | 4603 | static PyObject *_wrap_wxListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4604 | PyObject * _resultobj; |
4605 | wxListCtrl * _arg0; | |
4606 | long _arg1; | |
1d99702e RD |
4607 | bool _arg2 = (bool ) TRUE; |
4608 | PyObject * _argo0 = 0; | |
4609 | int tempbool2 = (int) TRUE; | |
efc5f224 | 4610 | char *_kwnames[] = { "self","style","add", NULL }; |
8ab979d7 RD |
4611 | |
4612 | self = self; | |
efc5f224 | 4613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_SetSingleStyle",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 4614 | return NULL; |
1d99702e RD |
4615 | if (_argo0) { |
4616 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4617 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4618 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetSingleStyle. Expected _wxListCtrl_p."); |
4619 | return NULL; | |
4620 | } | |
4621 | } | |
4622 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
4623 | { |
4624 | wxPy_BEGIN_ALLOW_THREADS; | |
4625 | wxListCtrl_SetSingleStyle(_arg0,_arg1,_arg2); | |
4626 | ||
4627 | wxPy_END_ALLOW_THREADS; | |
4628 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4629 | _resultobj = Py_None; |
4630 | return _resultobj; | |
4631 | } | |
4632 | ||
8ab979d7 | 4633 | #define wxListCtrl_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) |
efc5f224 | 4634 | static PyObject *_wrap_wxListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4635 | PyObject * _resultobj; |
4636 | wxListCtrl * _arg0; | |
4637 | long _arg1; | |
1d99702e | 4638 | PyObject * _argo0 = 0; |
efc5f224 | 4639 | char *_kwnames[] = { "self","style", NULL }; |
8ab979d7 RD |
4640 | |
4641 | self = self; | |
efc5f224 | 4642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4643 | return NULL; |
1d99702e RD |
4644 | if (_argo0) { |
4645 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4646 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4647 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetWindowStyleFlag. Expected _wxListCtrl_p."); |
4648 | return NULL; | |
4649 | } | |
4650 | } | |
cf694132 RD |
4651 | { |
4652 | wxPy_BEGIN_ALLOW_THREADS; | |
4653 | wxListCtrl_SetWindowStyleFlag(_arg0,_arg1); | |
4654 | ||
4655 | wxPy_END_ALLOW_THREADS; | |
4656 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4657 | _resultobj = Py_None; |
4658 | return _resultobj; | |
4659 | } | |
4660 | ||
dcd38683 RD |
4661 | static bool wxListCtrl_SortItems(wxListCtrl *self,PyObject * func) { |
4662 | if (!PyCallable_Check(func)) | |
4663 | return FALSE; | |
4664 | ||
f6bcfd97 | 4665 | return self->SortItems(wxPyListCtrl_SortItems, (long)func); |
dcd38683 RD |
4666 | } |
4667 | static PyObject *_wrap_wxListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4668 | PyObject * _resultobj; | |
4669 | bool _result; | |
4670 | wxListCtrl * _arg0; | |
4671 | PyObject * _arg1; | |
4672 | PyObject * _argo0 = 0; | |
4673 | PyObject * _obj1 = 0; | |
4674 | char *_kwnames[] = { "self","func", NULL }; | |
4675 | ||
4676 | self = self; | |
4677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SortItems",_kwnames,&_argo0,&_obj1)) | |
4678 | return NULL; | |
4679 | if (_argo0) { | |
4680 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4681 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
4682 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SortItems. Expected _wxListCtrl_p."); | |
4683 | return NULL; | |
4684 | } | |
4685 | } | |
4686 | { | |
4687 | _arg1 = _obj1; | |
4688 | } | |
4689 | { | |
4690 | wxPy_BEGIN_ALLOW_THREADS; | |
4691 | _result = (bool )wxListCtrl_SortItems(_arg0,_arg1); | |
4692 | ||
4693 | wxPy_END_ALLOW_THREADS; | |
4694 | } _resultobj = Py_BuildValue("i",_result); | |
4695 | return _resultobj; | |
4696 | } | |
4697 | ||
d5c9047a | 4698 | #define new_wxTreeItemId() (new wxTreeItemId()) |
efc5f224 | 4699 | static PyObject *_wrap_new_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4700 | PyObject * _resultobj; |
d5c9047a | 4701 | wxTreeItemId * _result; |
efc5f224 | 4702 | char *_kwnames[] = { NULL }; |
d5c9047a | 4703 | char _ptemp[128]; |
8ab979d7 RD |
4704 | |
4705 | self = self; | |
efc5f224 | 4706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxTreeItemId",_kwnames)) |
8ab979d7 | 4707 | return NULL; |
cf694132 RD |
4708 | { |
4709 | wxPy_BEGIN_ALLOW_THREADS; | |
4710 | _result = (wxTreeItemId *)new_wxTreeItemId(); | |
4711 | ||
4712 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
4713 | } if (_result) { |
4714 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
4715 | _resultobj = Py_BuildValue("s",_ptemp); | |
4716 | } else { | |
4717 | Py_INCREF(Py_None); | |
4718 | _resultobj = Py_None; | |
4719 | } | |
8ab979d7 RD |
4720 | return _resultobj; |
4721 | } | |
4722 | ||
d5c9047a | 4723 | #define delete_wxTreeItemId(_swigobj) (delete _swigobj) |
efc5f224 | 4724 | static PyObject *_wrap_delete_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4725 | PyObject * _resultobj; |
d5c9047a | 4726 | wxTreeItemId * _arg0; |
1d99702e | 4727 | PyObject * _argo0 = 0; |
efc5f224 | 4728 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4729 | |
4730 | self = self; | |
efc5f224 | 4731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTreeItemId",_kwnames,&_argo0)) |
8ab979d7 | 4732 | return NULL; |
1d99702e RD |
4733 | if (_argo0) { |
4734 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4735 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
d5c9047a | 4736 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTreeItemId. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
4737 | return NULL; |
4738 | } | |
4739 | } | |
cf694132 RD |
4740 | { |
4741 | wxPy_BEGIN_ALLOW_THREADS; | |
4742 | delete_wxTreeItemId(_arg0); | |
4743 | ||
4744 | wxPy_END_ALLOW_THREADS; | |
4745 | } Py_INCREF(Py_None); | |
d5c9047a | 4746 | _resultobj = Py_None; |
8ab979d7 RD |
4747 | return _resultobj; |
4748 | } | |
4749 | ||
d5c9047a | 4750 | #define wxTreeItemId_IsOk(_swigobj) (_swigobj->IsOk()) |
efc5f224 | 4751 | static PyObject *_wrap_wxTreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4752 | PyObject * _resultobj; |
d5c9047a RD |
4753 | bool _result; |
4754 | wxTreeItemId * _arg0; | |
1d99702e | 4755 | PyObject * _argo0 = 0; |
efc5f224 | 4756 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4757 | |
4758 | self = self; | |
efc5f224 | 4759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemId_IsOk",_kwnames,&_argo0)) |
8ab979d7 | 4760 | return NULL; |
1d99702e RD |
4761 | if (_argo0) { |
4762 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4763 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
d5c9047a | 4764 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId_IsOk. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
4765 | return NULL; |
4766 | } | |
4767 | } | |
cf694132 RD |
4768 | { |
4769 | wxPy_BEGIN_ALLOW_THREADS; | |
4770 | _result = (bool )wxTreeItemId_IsOk(_arg0); | |
4771 | ||
4772 | wxPy_END_ALLOW_THREADS; | |
4773 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4774 | return _resultobj; |
4775 | } | |
4776 | ||
f6bcfd97 | 4777 | static int wxTreeItemId___cmp__(wxTreeItemId *self,wxTreeItemId * other) { |
c368d904 | 4778 | if (! other) return -1; |
f6bcfd97 BP |
4779 | return *self != *other; |
4780 | } | |
4781 | static PyObject *_wrap_wxTreeItemId___cmp__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4782 | PyObject * _resultobj; | |
4783 | int _result; | |
4784 | wxTreeItemId * _arg0; | |
4785 | wxTreeItemId * _arg1; | |
4786 | PyObject * _argo0 = 0; | |
4787 | PyObject * _argo1 = 0; | |
4788 | char *_kwnames[] = { "self","other", NULL }; | |
4789 | ||
4790 | self = self; | |
4791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemId___cmp__",_kwnames,&_argo0,&_argo1)) | |
4792 | return NULL; | |
4793 | if (_argo0) { | |
4794 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4795 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
4796 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
4797 | return NULL; | |
4798 | } | |
4799 | } | |
4800 | if (_argo1) { | |
4801 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4802 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
4803 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
4804 | return NULL; | |
4805 | } | |
4806 | } | |
4807 | { | |
4808 | wxPy_BEGIN_ALLOW_THREADS; | |
4809 | _result = (int )wxTreeItemId___cmp__(_arg0,_arg1); | |
4810 | ||
4811 | wxPy_END_ALLOW_THREADS; | |
4812 | } _resultobj = Py_BuildValue("i",_result); | |
4813 | return _resultobj; | |
4814 | } | |
4815 | ||
cf694132 | 4816 | #define new_wxTreeItemData(_swigarg0) (new wxPyTreeItemData(_swigarg0)) |
efc5f224 | 4817 | static PyObject *_wrap_new_wxTreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4818 | PyObject * _resultobj; |
cf694132 | 4819 | wxPyTreeItemData * _result; |
1d99702e | 4820 | PyObject * _arg0 = (PyObject *) NULL; |
cf694132 | 4821 | PyObject * _obj0 = 0; |
efc5f224 | 4822 | char *_kwnames[] = { "obj", NULL }; |
d5c9047a | 4823 | char _ptemp[128]; |
8ab979d7 RD |
4824 | |
4825 | self = self; | |
efc5f224 | 4826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxTreeItemData",_kwnames,&_obj0)) |
8ab979d7 | 4827 | return NULL; |
cf694132 RD |
4828 | if (_obj0) |
4829 | { | |
4830 | _arg0 = _obj0; | |
4831 | } | |
4832 | { | |
4833 | wxPy_BEGIN_ALLOW_THREADS; | |
4834 | _result = (wxPyTreeItemData *)new_wxTreeItemData(_arg0); | |
4835 | ||
4836 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
4837 | } if (_result) { |
4838 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
4839 | _resultobj = Py_BuildValue("s",_ptemp); | |
4840 | } else { | |
4841 | Py_INCREF(Py_None); | |
4842 | _resultobj = Py_None; | |
4843 | } | |
8ab979d7 RD |
4844 | return _resultobj; |
4845 | } | |
4846 | ||
cf694132 | 4847 | #define wxTreeItemData_GetData(_swigobj) (_swigobj->GetData()) |
efc5f224 | 4848 | static PyObject *_wrap_wxTreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
4849 | PyObject * _resultobj; |
4850 | PyObject * _result; | |
4851 | wxPyTreeItemData * _arg0; | |
1d99702e | 4852 | PyObject * _argo0 = 0; |
efc5f224 | 4853 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
4854 | |
4855 | self = self; | |
efc5f224 | 4856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetData",_kwnames,&_argo0)) |
cf694132 | 4857 | return NULL; |
1d99702e RD |
4858 | if (_argo0) { |
4859 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4860 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 RD |
4861 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetData. Expected _wxPyTreeItemData_p."); |
4862 | return NULL; | |
4863 | } | |
4864 | } | |
4865 | { | |
4866 | wxPy_BEGIN_ALLOW_THREADS; | |
4867 | _result = (PyObject *)wxTreeItemData_GetData(_arg0); | |
4868 | ||
4869 | wxPy_END_ALLOW_THREADS; | |
4870 | }{ | |
4871 | _resultobj = _result; | |
4872 | } | |
4873 | return _resultobj; | |
4874 | } | |
4875 | ||
4876 | #define wxTreeItemData_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
efc5f224 | 4877 | static PyObject *_wrap_wxTreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4878 | PyObject * _resultobj; |
cf694132 RD |
4879 | wxPyTreeItemData * _arg0; |
4880 | PyObject * _arg1; | |
1d99702e | 4881 | PyObject * _argo0 = 0; |
cf694132 | 4882 | PyObject * _obj1 = 0; |
efc5f224 | 4883 | char *_kwnames[] = { "self","obj", NULL }; |
8ab979d7 RD |
4884 | |
4885 | self = self; | |
efc5f224 | 4886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetData",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4887 | return NULL; |
1d99702e RD |
4888 | if (_argo0) { |
4889 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4890 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 4891 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetData. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
4892 | return NULL; |
4893 | } | |
4894 | } | |
cf694132 RD |
4895 | { |
4896 | _arg1 = _obj1; | |
4897 | } | |
4898 | { | |
4899 | wxPy_BEGIN_ALLOW_THREADS; | |
4900 | wxTreeItemData_SetData(_arg0,_arg1); | |
4901 | ||
4902 | wxPy_END_ALLOW_THREADS; | |
4903 | } Py_INCREF(Py_None); | |
d5c9047a | 4904 | _resultobj = Py_None; |
8ab979d7 RD |
4905 | return _resultobj; |
4906 | } | |
4907 | ||
630d84f2 | 4908 | #define wxTreeItemData_GetId(_swigobj) (_swigobj->GetId()) |
efc5f224 | 4909 | static PyObject *_wrap_wxTreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4910 | PyObject * _resultobj; |
d5c9047a | 4911 | wxTreeItemId * _result; |
cf694132 | 4912 | wxPyTreeItemData * _arg0; |
1d99702e | 4913 | PyObject * _argo0 = 0; |
efc5f224 | 4914 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4915 | char _ptemp[128]; |
4916 | ||
4917 | self = self; | |
efc5f224 | 4918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetId",_kwnames,&_argo0)) |
8ab979d7 | 4919 | return NULL; |
1d99702e RD |
4920 | if (_argo0) { |
4921 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4922 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 4923 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetId. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
4924 | return NULL; |
4925 | } | |
4926 | } | |
cf694132 RD |
4927 | { |
4928 | wxPy_BEGIN_ALLOW_THREADS; | |
4929 | const wxTreeItemId & _result_ref = wxTreeItemData_GetId(_arg0); | |
d5c9047a | 4930 | _result = (wxTreeItemId *) &_result_ref; |
cf694132 RD |
4931 | |
4932 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
4933 | } if (_result) { |
4934 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
4935 | _resultobj = Py_BuildValue("s",_ptemp); | |
4936 | } else { | |
4937 | Py_INCREF(Py_None); | |
4938 | _resultobj = Py_None; | |
4939 | } | |
8ab979d7 RD |
4940 | return _resultobj; |
4941 | } | |
4942 | ||
630d84f2 | 4943 | #define wxTreeItemData_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) |
efc5f224 | 4944 | static PyObject *_wrap_wxTreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
630d84f2 | 4945 | PyObject * _resultobj; |
cf694132 | 4946 | wxPyTreeItemData * _arg0; |
630d84f2 | 4947 | wxTreeItemId * _arg1; |
1d99702e RD |
4948 | PyObject * _argo0 = 0; |
4949 | PyObject * _argo1 = 0; | |
efc5f224 | 4950 | char *_kwnames[] = { "self","id", NULL }; |
630d84f2 RD |
4951 | |
4952 | self = self; | |
efc5f224 | 4953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetId",_kwnames,&_argo0,&_argo1)) |
630d84f2 | 4954 | return NULL; |
1d99702e RD |
4955 | if (_argo0) { |
4956 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4957 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 4958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetId. Expected _wxPyTreeItemData_p."); |
630d84f2 RD |
4959 | return NULL; |
4960 | } | |
4961 | } | |
1d99702e RD |
4962 | if (_argo1) { |
4963 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4964 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
630d84f2 RD |
4965 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemData_SetId. Expected _wxTreeItemId_p."); |
4966 | return NULL; | |
4967 | } | |
4968 | } | |
cf694132 RD |
4969 | { |
4970 | wxPy_BEGIN_ALLOW_THREADS; | |
4971 | wxTreeItemData_SetId(_arg0,*_arg1); | |
4972 | ||
4973 | wxPy_END_ALLOW_THREADS; | |
4974 | } Py_INCREF(Py_None); | |
630d84f2 RD |
4975 | _resultobj = Py_None; |
4976 | return _resultobj; | |
4977 | } | |
4978 | ||
8bf5d46e RD |
4979 | static void *SwigwxTreeEventTowxNotifyEvent(void *ptr) { |
4980 | wxTreeEvent *src; | |
4981 | wxNotifyEvent *dest; | |
4982 | src = (wxTreeEvent *) ptr; | |
4983 | dest = (wxNotifyEvent *) src; | |
4984 | return (void *) dest; | |
4985 | } | |
4986 | ||
8ab979d7 RD |
4987 | static void *SwigwxTreeEventTowxCommandEvent(void *ptr) { |
4988 | wxTreeEvent *src; | |
4989 | wxCommandEvent *dest; | |
4990 | src = (wxTreeEvent *) ptr; | |
4991 | dest = (wxCommandEvent *) src; | |
4992 | return (void *) dest; | |
4993 | } | |
4994 | ||
4995 | static void *SwigwxTreeEventTowxEvent(void *ptr) { | |
4996 | wxTreeEvent *src; | |
4997 | wxEvent *dest; | |
4998 | src = (wxTreeEvent *) ptr; | |
4999 | dest = (wxEvent *) src; | |
5000 | return (void *) dest; | |
5001 | } | |
5002 | ||
d5c9047a | 5003 | #define wxTreeEvent_GetItem(_swigobj) (_swigobj->GetItem()) |
efc5f224 | 5004 | static PyObject *_wrap_wxTreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5005 | PyObject * _resultobj; |
d5c9047a | 5006 | wxTreeItemId * _result; |
8ab979d7 | 5007 | wxTreeEvent * _arg0; |
1d99702e | 5008 | PyObject * _argo0 = 0; |
efc5f224 | 5009 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 5010 | char _ptemp[128]; |
8ab979d7 RD |
5011 | |
5012 | self = self; | |
efc5f224 | 5013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetItem",_kwnames,&_argo0)) |
8ab979d7 | 5014 | return NULL; |
1d99702e RD |
5015 | if (_argo0) { |
5016 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5017 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 5018 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetItem. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
5019 | return NULL; |
5020 | } | |
5021 | } | |
cf694132 RD |
5022 | { |
5023 | wxPy_BEGIN_ALLOW_THREADS; | |
5024 | _result = new wxTreeItemId (wxTreeEvent_GetItem(_arg0)); | |
5025 | ||
5026 | wxPy_END_ALLOW_THREADS; | |
5027 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 5028 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
5029 | return _resultobj; |
5030 | } | |
5031 | ||
d5c9047a | 5032 | #define wxTreeEvent_GetOldItem(_swigobj) (_swigobj->GetOldItem()) |
efc5f224 | 5033 | static PyObject *_wrap_wxTreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5034 | PyObject * _resultobj; |
d5c9047a | 5035 | wxTreeItemId * _result; |
8ab979d7 | 5036 | wxTreeEvent * _arg0; |
1d99702e | 5037 | PyObject * _argo0 = 0; |
efc5f224 | 5038 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5039 | char _ptemp[128]; |
5040 | ||
5041 | self = self; | |
efc5f224 | 5042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetOldItem",_kwnames,&_argo0)) |
8ab979d7 | 5043 | return NULL; |
1d99702e RD |
5044 | if (_argo0) { |
5045 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5046 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 5047 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetOldItem. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
5048 | return NULL; |
5049 | } | |
5050 | } | |
cf694132 RD |
5051 | { |
5052 | wxPy_BEGIN_ALLOW_THREADS; | |
5053 | _result = new wxTreeItemId (wxTreeEvent_GetOldItem(_arg0)); | |
5054 | ||
5055 | wxPy_END_ALLOW_THREADS; | |
5056 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
8ab979d7 RD |
5057 | _resultobj = Py_BuildValue("s",_ptemp); |
5058 | return _resultobj; | |
5059 | } | |
5060 | ||
d5c9047a | 5061 | #define wxTreeEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) |
efc5f224 | 5062 | static PyObject *_wrap_wxTreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5063 | PyObject * _resultobj; |
d5c9047a | 5064 | wxPoint * _result; |
8ab979d7 | 5065 | wxTreeEvent * _arg0; |
1d99702e | 5066 | PyObject * _argo0 = 0; |
efc5f224 | 5067 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 5068 | char _ptemp[128]; |
8ab979d7 RD |
5069 | |
5070 | self = self; | |
efc5f224 | 5071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetPoint",_kwnames,&_argo0)) |
8ab979d7 | 5072 | return NULL; |
1d99702e RD |
5073 | if (_argo0) { |
5074 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5075 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 5076 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetPoint. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
5077 | return NULL; |
5078 | } | |
5079 | } | |
cf694132 RD |
5080 | { |
5081 | wxPy_BEGIN_ALLOW_THREADS; | |
5082 | _result = new wxPoint (wxTreeEvent_GetPoint(_arg0)); | |
5083 | ||
5084 | wxPy_END_ALLOW_THREADS; | |
5085 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
d5c9047a | 5086 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
5087 | return _resultobj; |
5088 | } | |
5089 | ||
d5c9047a | 5090 | #define wxTreeEvent_GetCode(_swigobj) (_swigobj->GetCode()) |
efc5f224 | 5091 | static PyObject *_wrap_wxTreeEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5092 | PyObject * _resultobj; |
d5c9047a | 5093 | int _result; |
8ab979d7 | 5094 | wxTreeEvent * _arg0; |
1d99702e | 5095 | PyObject * _argo0 = 0; |
efc5f224 | 5096 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5097 | |
5098 | self = self; | |
efc5f224 | 5099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetCode",_kwnames,&_argo0)) |
8ab979d7 | 5100 | return NULL; |
1d99702e RD |
5101 | if (_argo0) { |
5102 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5103 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 5104 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetCode. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
5105 | return NULL; |
5106 | } | |
5107 | } | |
cf694132 RD |
5108 | { |
5109 | wxPy_BEGIN_ALLOW_THREADS; | |
5110 | _result = (int )wxTreeEvent_GetCode(_arg0); | |
5111 | ||
5112 | wxPy_END_ALLOW_THREADS; | |
5113 | } _resultobj = Py_BuildValue("i",_result); | |
d5c9047a RD |
5114 | return _resultobj; |
5115 | } | |
5116 | ||
8bf5d46e | 5117 | #define wxTreeEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 5118 | static PyObject *_wrap_wxTreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 5119 | PyObject * _resultobj; |
8bf5d46e | 5120 | wxString * _result; |
d5c9047a | 5121 | wxTreeEvent * _arg0; |
1d99702e | 5122 | PyObject * _argo0 = 0; |
efc5f224 | 5123 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
5124 | |
5125 | self = self; | |
efc5f224 | 5126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetLabel",_kwnames,&_argo0)) |
d5c9047a | 5127 | return NULL; |
1d99702e RD |
5128 | if (_argo0) { |
5129 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5130 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
8bf5d46e | 5131 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetLabel. Expected _wxTreeEvent_p."); |
d5c9047a RD |
5132 | return NULL; |
5133 | } | |
5134 | } | |
cf694132 RD |
5135 | { |
5136 | wxPy_BEGIN_ALLOW_THREADS; | |
8bf5d46e RD |
5137 | const wxString & _result_ref = wxTreeEvent_GetLabel(_arg0); |
5138 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
5139 | |
5140 | wxPy_END_ALLOW_THREADS; | |
8bf5d46e | 5141 | }{ |
eec92d76 | 5142 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8bf5d46e | 5143 | } |
8ab979d7 RD |
5144 | return _resultobj; |
5145 | } | |
5146 | ||
f6bcfd97 BP |
5147 | static void *SwigwxPyTreeCtrlTowxControl(void *ptr) { |
5148 | wxPyTreeCtrl *src; | |
8ab979d7 | 5149 | wxControl *dest; |
f6bcfd97 | 5150 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
5151 | dest = (wxControl *) src; |
5152 | return (void *) dest; | |
5153 | } | |
5154 | ||
f6bcfd97 BP |
5155 | static void *SwigwxPyTreeCtrlTowxWindow(void *ptr) { |
5156 | wxPyTreeCtrl *src; | |
8ab979d7 | 5157 | wxWindow *dest; |
f6bcfd97 | 5158 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
5159 | dest = (wxWindow *) src; |
5160 | return (void *) dest; | |
5161 | } | |
5162 | ||
f6bcfd97 BP |
5163 | static void *SwigwxPyTreeCtrlTowxEvtHandler(void *ptr) { |
5164 | wxPyTreeCtrl *src; | |
8ab979d7 | 5165 | wxEvtHandler *dest; |
f6bcfd97 | 5166 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
5167 | dest = (wxEvtHandler *) src; |
5168 | return (void *) dest; | |
5169 | } | |
5170 | ||
f6bcfd97 | 5171 | #define new_wxTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 5172 | static PyObject *_wrap_new_wxTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5173 | PyObject * _resultobj; |
f6bcfd97 | 5174 | wxPyTreeCtrl * _result; |
8ab979d7 | 5175 | wxWindow * _arg0; |
1d99702e | 5176 | wxWindowID _arg1 = (wxWindowID ) -1; |
e508a2b6 RD |
5177 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
5178 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e | 5179 | long _arg4 = (long ) wxTR_HAS_BUTTONS|wxTR_LINES_AT_ROOT; |
e508a2b6 | 5180 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
5181 | char * _arg6 = (char *) "wxTreeCtrl"; |
5182 | PyObject * _argo0 = 0; | |
2f90df85 RD |
5183 | wxPoint temp; |
5184 | PyObject * _obj2 = 0; | |
5185 | wxSize temp0; | |
5186 | PyObject * _obj3 = 0; | |
1d99702e | 5187 | PyObject * _argo5 = 0; |
efc5f224 | 5188 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
5189 | char _ptemp[128]; |
5190 | ||
5191 | self = self; | |
2f90df85 | 5192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxTreeCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) |
8ab979d7 | 5193 | return NULL; |
1d99702e RD |
5194 | if (_argo0) { |
5195 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5196 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5197 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTreeCtrl. Expected _wxWindow_p."); |
5198 | return NULL; | |
5199 | } | |
5200 | } | |
2f90df85 RD |
5201 | if (_obj2) |
5202 | { | |
5203 | _arg2 = &temp; | |
5204 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 5205 | return NULL; |
2f90df85 RD |
5206 | } |
5207 | if (_obj3) | |
5208 | { | |
5209 | _arg3 = &temp0; | |
5210 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 5211 | return NULL; |
2f90df85 | 5212 | } |
1d99702e RD |
5213 | if (_argo5) { |
5214 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
5215 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
8ab979d7 RD |
5216 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxTreeCtrl. Expected _wxValidator_p."); |
5217 | return NULL; | |
5218 | } | |
5219 | } | |
cf694132 RD |
5220 | { |
5221 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 5222 | _result = (wxPyTreeCtrl *)new_wxTreeCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); |
cf694132 RD |
5223 | |
5224 | wxPy_END_ALLOW_THREADS; | |
1d99702e | 5225 | } if (_result) { |
f6bcfd97 | 5226 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p"); |
1d99702e RD |
5227 | _resultobj = Py_BuildValue("s",_ptemp); |
5228 | } else { | |
5229 | Py_INCREF(Py_None); | |
5230 | _resultobj = Py_None; | |
5231 | } | |
8ab979d7 RD |
5232 | return _resultobj; |
5233 | } | |
5234 | ||
f6bcfd97 BP |
5235 | #define wxTreeCtrl__setSelf(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setSelf(_swigarg0,_swigarg1)) |
5236 | static PyObject *_wrap_wxTreeCtrl__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5237 | PyObject * _resultobj; | |
5238 | wxPyTreeCtrl * _arg0; | |
5239 | PyObject * _arg1; | |
5240 | PyObject * _arg2; | |
5241 | PyObject * _argo0 = 0; | |
5242 | PyObject * _obj1 = 0; | |
5243 | PyObject * _obj2 = 0; | |
5244 | char *_kwnames[] = { "self","self","_class", NULL }; | |
5245 | ||
5246 | self = self; | |
5247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl__setSelf",_kwnames,&_argo0,&_obj1,&_obj2)) | |
5248 | return NULL; | |
5249 | if (_argo0) { | |
5250 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5251 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
5252 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl__setSelf. Expected _wxPyTreeCtrl_p."); | |
5253 | return NULL; | |
5254 | } | |
5255 | } | |
5256 | { | |
5257 | _arg1 = _obj1; | |
5258 | } | |
5259 | { | |
5260 | _arg2 = _obj2; | |
5261 | } | |
5262 | { | |
5263 | wxPy_BEGIN_ALLOW_THREADS; | |
5264 | wxTreeCtrl__setSelf(_arg0,_arg1,_arg2); | |
5265 | ||
5266 | wxPy_END_ALLOW_THREADS; | |
5267 | } Py_INCREF(Py_None); | |
5268 | _resultobj = Py_None; | |
5269 | return _resultobj; | |
5270 | } | |
5271 | ||
d5c9047a | 5272 | #define wxTreeCtrl_GetCount(_swigobj) (_swigobj->GetCount()) |
efc5f224 | 5273 | static PyObject *_wrap_wxTreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5274 | PyObject * _resultobj; |
c127177f | 5275 | size_t _result; |
f6bcfd97 | 5276 | wxPyTreeCtrl * _arg0; |
1d99702e | 5277 | PyObject * _argo0 = 0; |
efc5f224 | 5278 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5279 | |
5280 | self = self; | |
efc5f224 | 5281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetCount",_kwnames,&_argo0)) |
8ab979d7 | 5282 | return NULL; |
1d99702e RD |
5283 | if (_argo0) { |
5284 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5285 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetCount. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5287 | return NULL; |
5288 | } | |
5289 | } | |
cf694132 RD |
5290 | { |
5291 | wxPy_BEGIN_ALLOW_THREADS; | |
c127177f | 5292 | _result = (size_t )wxTreeCtrl_GetCount(_arg0); |
cf694132 RD |
5293 | |
5294 | wxPy_END_ALLOW_THREADS; | |
c127177f | 5295 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5296 | return _resultobj; |
5297 | } | |
5298 | ||
d5c9047a | 5299 | #define wxTreeCtrl_GetIndent(_swigobj) (_swigobj->GetIndent()) |
efc5f224 | 5300 | static PyObject *_wrap_wxTreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5301 | PyObject * _resultobj; |
d5c9047a | 5302 | unsigned int _result; |
f6bcfd97 | 5303 | wxPyTreeCtrl * _arg0; |
1d99702e | 5304 | PyObject * _argo0 = 0; |
efc5f224 | 5305 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5306 | |
5307 | self = self; | |
efc5f224 | 5308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetIndent",_kwnames,&_argo0)) |
8ab979d7 | 5309 | return NULL; |
1d99702e RD |
5310 | if (_argo0) { |
5311 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5312 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5313 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetIndent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5314 | return NULL; |
5315 | } | |
5316 | } | |
cf694132 RD |
5317 | { |
5318 | wxPy_BEGIN_ALLOW_THREADS; | |
5319 | _result = (unsigned int )wxTreeCtrl_GetIndent(_arg0); | |
5320 | ||
5321 | wxPy_END_ALLOW_THREADS; | |
5322 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5323 | return _resultobj; |
5324 | } | |
5325 | ||
d5c9047a | 5326 | #define wxTreeCtrl_SetIndent(_swigobj,_swigarg0) (_swigobj->SetIndent(_swigarg0)) |
efc5f224 | 5327 | static PyObject *_wrap_wxTreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5328 | PyObject * _resultobj; |
f6bcfd97 | 5329 | wxPyTreeCtrl * _arg0; |
d5c9047a | 5330 | unsigned int _arg1; |
1d99702e | 5331 | PyObject * _argo0 = 0; |
efc5f224 | 5332 | char *_kwnames[] = { "self","indent", NULL }; |
8ab979d7 RD |
5333 | |
5334 | self = self; | |
efc5f224 | 5335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetIndent",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5336 | return NULL; |
1d99702e RD |
5337 | if (_argo0) { |
5338 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5339 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5340 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetIndent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5341 | return NULL; |
5342 | } | |
5343 | } | |
cf694132 RD |
5344 | { |
5345 | wxPy_BEGIN_ALLOW_THREADS; | |
5346 | wxTreeCtrl_SetIndent(_arg0,_arg1); | |
5347 | ||
5348 | wxPy_END_ALLOW_THREADS; | |
5349 | } Py_INCREF(Py_None); | |
d5c9047a | 5350 | _resultobj = Py_None; |
8ab979d7 RD |
5351 | return _resultobj; |
5352 | } | |
5353 | ||
d5c9047a | 5354 | #define wxTreeCtrl_GetImageList(_swigobj) (_swigobj->GetImageList()) |
efc5f224 | 5355 | static PyObject *_wrap_wxTreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5356 | PyObject * _resultobj; |
d5c9047a | 5357 | wxImageList * _result; |
f6bcfd97 | 5358 | wxPyTreeCtrl * _arg0; |
1d99702e | 5359 | PyObject * _argo0 = 0; |
efc5f224 | 5360 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 5361 | char _ptemp[128]; |
8ab979d7 RD |
5362 | |
5363 | self = self; | |
efc5f224 | 5364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetImageList",_kwnames,&_argo0)) |
8ab979d7 | 5365 | return NULL; |
1d99702e RD |
5366 | if (_argo0) { |
5367 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5368 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5369 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5370 | return NULL; |
5371 | } | |
5372 | } | |
cf694132 RD |
5373 | { |
5374 | wxPy_BEGIN_ALLOW_THREADS; | |
5375 | _result = (wxImageList *)wxTreeCtrl_GetImageList(_arg0); | |
5376 | ||
5377 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
5378 | } if (_result) { |
5379 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p"); | |
5380 | _resultobj = Py_BuildValue("s",_ptemp); | |
5381 | } else { | |
5382 | Py_INCREF(Py_None); | |
5383 | _resultobj = Py_None; | |
5384 | } | |
8ab979d7 RD |
5385 | return _resultobj; |
5386 | } | |
5387 | ||
d5c9047a | 5388 | #define wxTreeCtrl_GetStateImageList(_swigobj) (_swigobj->GetStateImageList()) |
efc5f224 | 5389 | static PyObject *_wrap_wxTreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5390 | PyObject * _resultobj; |
d5c9047a | 5391 | wxImageList * _result; |
f6bcfd97 | 5392 | wxPyTreeCtrl * _arg0; |
1d99702e | 5393 | PyObject * _argo0 = 0; |
efc5f224 | 5394 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 5395 | char _ptemp[128]; |
8ab979d7 RD |
5396 | |
5397 | self = self; | |
efc5f224 | 5398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetStateImageList",_kwnames,&_argo0)) |
8ab979d7 | 5399 | return NULL; |
1d99702e RD |
5400 | if (_argo0) { |
5401 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5402 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetStateImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5404 | return NULL; |
5405 | } | |
5406 | } | |
cf694132 RD |
5407 | { |
5408 | wxPy_BEGIN_ALLOW_THREADS; | |
5409 | _result = (wxImageList *)wxTreeCtrl_GetStateImageList(_arg0); | |
5410 | ||
5411 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
5412 | } if (_result) { |
5413 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p"); | |
5414 | _resultobj = Py_BuildValue("s",_ptemp); | |
5415 | } else { | |
5416 | Py_INCREF(Py_None); | |
5417 | _resultobj = Py_None; | |
5418 | } | |
8ab979d7 RD |
5419 | return _resultobj; |
5420 | } | |
5421 | ||
d5c9047a | 5422 | #define wxTreeCtrl_SetImageList(_swigobj,_swigarg0) (_swigobj->SetImageList(_swigarg0)) |
efc5f224 | 5423 | static PyObject *_wrap_wxTreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5424 | PyObject * _resultobj; |
f6bcfd97 | 5425 | wxPyTreeCtrl * _arg0; |
d5c9047a | 5426 | wxImageList * _arg1; |
1d99702e RD |
5427 | PyObject * _argo0 = 0; |
5428 | PyObject * _argo1 = 0; | |
efc5f224 | 5429 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
5430 | |
5431 | self = self; | |
efc5f224 | 5432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 5433 | return NULL; |
1d99702e RD |
5434 | if (_argo0) { |
5435 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5436 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5437 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5438 | return NULL; |
5439 | } | |
5440 | } | |
1d99702e RD |
5441 | if (_argo1) { |
5442 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5443 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
d5c9047a RD |
5444 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetImageList. Expected _wxImageList_p."); |
5445 | return NULL; | |
5446 | } | |
5447 | } | |
cf694132 RD |
5448 | { |
5449 | wxPy_BEGIN_ALLOW_THREADS; | |
5450 | wxTreeCtrl_SetImageList(_arg0,_arg1); | |
5451 | ||
5452 | wxPy_END_ALLOW_THREADS; | |
5453 | } Py_INCREF(Py_None); | |
d5c9047a | 5454 | _resultobj = Py_None; |
8ab979d7 RD |
5455 | return _resultobj; |
5456 | } | |
5457 | ||
d5c9047a | 5458 | #define wxTreeCtrl_SetStateImageList(_swigobj,_swigarg0) (_swigobj->SetStateImageList(_swigarg0)) |
efc5f224 | 5459 | static PyObject *_wrap_wxTreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5460 | PyObject * _resultobj; |
f6bcfd97 | 5461 | wxPyTreeCtrl * _arg0; |
d5c9047a | 5462 | wxImageList * _arg1; |
1d99702e RD |
5463 | PyObject * _argo0 = 0; |
5464 | PyObject * _argo1 = 0; | |
efc5f224 | 5465 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
5466 | |
5467 | self = self; | |
efc5f224 | 5468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetStateImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 5469 | return NULL; |
1d99702e RD |
5470 | if (_argo0) { |
5471 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5472 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5473 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetStateImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5474 | return NULL; |
5475 | } | |
5476 | } | |
1d99702e RD |
5477 | if (_argo1) { |
5478 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5479 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
d5c9047a RD |
5480 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetStateImageList. Expected _wxImageList_p."); |
5481 | return NULL; | |
5482 | } | |
5483 | } | |
cf694132 RD |
5484 | { |
5485 | wxPy_BEGIN_ALLOW_THREADS; | |
5486 | wxTreeCtrl_SetStateImageList(_arg0,_arg1); | |
5487 | ||
5488 | wxPy_END_ALLOW_THREADS; | |
5489 | } Py_INCREF(Py_None); | |
d5c9047a | 5490 | _resultobj = Py_None; |
8ab979d7 RD |
5491 | return _resultobj; |
5492 | } | |
5493 | ||
b1462dfa RD |
5494 | #define wxTreeCtrl_GetSpacing(_swigobj) (_swigobj->GetSpacing()) |
5495 | static PyObject *_wrap_wxTreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5496 | PyObject * _resultobj; | |
5497 | unsigned int _result; | |
f6bcfd97 | 5498 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
5499 | PyObject * _argo0 = 0; |
5500 | char *_kwnames[] = { "self", NULL }; | |
5501 | ||
5502 | self = self; | |
5503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSpacing",_kwnames,&_argo0)) | |
5504 | return NULL; | |
5505 | if (_argo0) { | |
5506 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5507 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5508 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSpacing. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
5509 | return NULL; |
5510 | } | |
5511 | } | |
5512 | { | |
5513 | wxPy_BEGIN_ALLOW_THREADS; | |
5514 | _result = (unsigned int )wxTreeCtrl_GetSpacing(_arg0); | |
5515 | ||
5516 | wxPy_END_ALLOW_THREADS; | |
5517 | } _resultobj = Py_BuildValue("i",_result); | |
5518 | return _resultobj; | |
5519 | } | |
5520 | ||
5521 | #define wxTreeCtrl_SetSpacing(_swigobj,_swigarg0) (_swigobj->SetSpacing(_swigarg0)) | |
5522 | static PyObject *_wrap_wxTreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5523 | PyObject * _resultobj; | |
f6bcfd97 | 5524 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
5525 | unsigned int _arg1; |
5526 | PyObject * _argo0 = 0; | |
5527 | char *_kwnames[] = { "self","spacing", NULL }; | |
5528 | ||
5529 | self = self; | |
5530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetSpacing",_kwnames,&_argo0,&_arg1)) | |
5531 | return NULL; | |
5532 | if (_argo0) { | |
5533 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5534 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5535 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetSpacing. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
5536 | return NULL; |
5537 | } | |
5538 | } | |
5539 | { | |
5540 | wxPy_BEGIN_ALLOW_THREADS; | |
5541 | wxTreeCtrl_SetSpacing(_arg0,_arg1); | |
5542 | ||
5543 | wxPy_END_ALLOW_THREADS; | |
5544 | } Py_INCREF(Py_None); | |
5545 | _resultobj = Py_None; | |
5546 | return _resultobj; | |
5547 | } | |
5548 | ||
d5c9047a | 5549 | #define wxTreeCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) |
efc5f224 | 5550 | static PyObject *_wrap_wxTreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5551 | PyObject * _resultobj; |
d5c9047a | 5552 | wxString * _result; |
f6bcfd97 | 5553 | wxPyTreeCtrl * _arg0; |
d5c9047a | 5554 | wxTreeItemId * _arg1; |
1d99702e RD |
5555 | PyObject * _argo0 = 0; |
5556 | PyObject * _argo1 = 0; | |
efc5f224 | 5557 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
5558 | |
5559 | self = self; | |
efc5f224 | 5560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemText",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 5561 | return NULL; |
1d99702e RD |
5562 | if (_argo0) { |
5563 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5564 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5565 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemText. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5566 | return NULL; |
5567 | } | |
5568 | } | |
1d99702e RD |
5569 | if (_argo1) { |
5570 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5571 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5572 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemText. Expected _wxTreeItemId_p."); |
5573 | return NULL; | |
5574 | } | |
5575 | } | |
d5c9047a | 5576 | { |
cf694132 RD |
5577 | wxPy_BEGIN_ALLOW_THREADS; |
5578 | _result = new wxString (wxTreeCtrl_GetItemText(_arg0,*_arg1)); | |
5579 | ||
5580 | wxPy_END_ALLOW_THREADS; | |
5581 | }{ | |
eec92d76 | 5582 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
d5c9047a RD |
5583 | } |
5584 | { | |
5585 | delete _result; | |
5586 | } | |
8ab979d7 RD |
5587 | return _resultobj; |
5588 | } | |
5589 | ||
694759cf | 5590 | #define wxTreeCtrl_GetItemImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemImage(_swigarg0,_swigarg1)) |
efc5f224 | 5591 | static PyObject *_wrap_wxTreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5592 | PyObject * _resultobj; |
d5c9047a | 5593 | int _result; |
f6bcfd97 | 5594 | wxPyTreeCtrl * _arg0; |
d5c9047a | 5595 | wxTreeItemId * _arg1; |
694759cf | 5596 | wxTreeItemIcon _arg2 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); |
1d99702e RD |
5597 | PyObject * _argo0 = 0; |
5598 | PyObject * _argo1 = 0; | |
694759cf | 5599 | char *_kwnames[] = { "self","item","which", NULL }; |
8ab979d7 RD |
5600 | |
5601 | self = self; | |
694759cf | 5602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetItemImage",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 5603 | return NULL; |
1d99702e RD |
5604 | if (_argo0) { |
5605 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5606 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5607 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5608 | return NULL; |
5609 | } | |
5610 | } | |
1d99702e RD |
5611 | if (_argo1) { |
5612 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5613 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5614 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemImage. Expected _wxTreeItemId_p."); |
5615 | return NULL; | |
5616 | } | |
5617 | } | |
cf694132 RD |
5618 | { |
5619 | wxPy_BEGIN_ALLOW_THREADS; | |
694759cf | 5620 | _result = (int )wxTreeCtrl_GetItemImage(_arg0,*_arg1,_arg2); |
cf694132 RD |
5621 | |
5622 | wxPy_END_ALLOW_THREADS; | |
5623 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5624 | return _resultobj; |
5625 | } | |
5626 | ||
d5c9047a | 5627 | #define wxTreeCtrl_GetItemSelectedImage(_swigobj,_swigarg0) (_swigobj->GetItemSelectedImage(_swigarg0)) |
efc5f224 | 5628 | static PyObject *_wrap_wxTreeCtrl_GetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5629 | PyObject * _resultobj; |
d5c9047a | 5630 | int _result; |
f6bcfd97 | 5631 | wxPyTreeCtrl * _arg0; |
d5c9047a | 5632 | wxTreeItemId * _arg1; |
1d99702e RD |
5633 | PyObject * _argo0 = 0; |
5634 | PyObject * _argo1 = 0; | |
efc5f224 | 5635 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
5636 | |
5637 | self = self; | |
efc5f224 | 5638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemSelectedImage",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 5639 | return NULL; |
1d99702e RD |
5640 | if (_argo0) { |
5641 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5642 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5643 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5644 | return NULL; |
5645 | } | |
5646 | } | |
1d99702e RD |
5647 | if (_argo1) { |
5648 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5649 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5650 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemSelectedImage. Expected _wxTreeItemId_p."); |
5651 | return NULL; | |
5652 | } | |
5653 | } | |
cf694132 RD |
5654 | { |
5655 | wxPy_BEGIN_ALLOW_THREADS; | |
5656 | _result = (int )wxTreeCtrl_GetItemSelectedImage(_arg0,*_arg1); | |
8ab979d7 | 5657 | |
cf694132 RD |
5658 | wxPy_END_ALLOW_THREADS; |
5659 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5660 | return _resultobj; |
5661 | } | |
5662 | ||
d5c9047a | 5663 | #define wxTreeCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) |
efc5f224 | 5664 | static PyObject *_wrap_wxTreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5665 | PyObject * _resultobj; |
f6bcfd97 | 5666 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
5667 | wxTreeItemId * _arg1; |
5668 | wxString * _arg2; | |
1d99702e RD |
5669 | PyObject * _argo0 = 0; |
5670 | PyObject * _argo1 = 0; | |
d5c9047a | 5671 | PyObject * _obj2 = 0; |
efc5f224 | 5672 | char *_kwnames[] = { "self","item","text", NULL }; |
8ab979d7 RD |
5673 | |
5674 | self = self; | |
efc5f224 | 5675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemText",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 5676 | return NULL; |
1d99702e RD |
5677 | if (_argo0) { |
5678 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5679 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5680 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemText. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5681 | return NULL; |
5682 | } | |
5683 | } | |
1d99702e RD |
5684 | if (_argo1) { |
5685 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5686 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5687 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemText. Expected _wxTreeItemId_p."); |
5688 | return NULL; | |
5689 | } | |
5690 | } | |
5691 | { | |
185d7c3e RD |
5692 | #if PYTHON_API_VERSION >= 1009 |
5693 | char* tmpPtr; int tmpSize; | |
5694 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
5695 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
5696 | return NULL; | |
5697 | } | |
5698 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
5699 | return NULL; | |
5700 | _arg2 = new wxString(tmpPtr, tmpSize); | |
5701 | #else | |
d5c9047a RD |
5702 | if (!PyString_Check(_obj2)) { |
5703 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5704 | return NULL; | |
5705 | } | |
185d7c3e RD |
5706 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
5707 | #endif | |
d5c9047a | 5708 | } |
cf694132 RD |
5709 | { |
5710 | wxPy_BEGIN_ALLOW_THREADS; | |
5711 | wxTreeCtrl_SetItemText(_arg0,*_arg1,*_arg2); | |
5712 | ||
5713 | wxPy_END_ALLOW_THREADS; | |
5714 | } Py_INCREF(Py_None); | |
d5c9047a RD |
5715 | _resultobj = Py_None; |
5716 | { | |
5717 | if (_obj2) | |
5718 | delete _arg2; | |
5719 | } | |
8ab979d7 RD |
5720 | return _resultobj; |
5721 | } | |
5722 | ||
694759cf | 5723 | #define wxTreeCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 5724 | static PyObject *_wrap_wxTreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5725 | PyObject * _resultobj; |
f6bcfd97 | 5726 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
5727 | wxTreeItemId * _arg1; |
5728 | int _arg2; | |
694759cf | 5729 | wxTreeItemIcon _arg3 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); |
1d99702e RD |
5730 | PyObject * _argo0 = 0; |
5731 | PyObject * _argo1 = 0; | |
694759cf | 5732 | char *_kwnames[] = { "self","item","image","which", NULL }; |
8ab979d7 RD |
5733 | |
5734 | self = self; | |
694759cf | 5735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|i:wxTreeCtrl_SetItemImage",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8ab979d7 | 5736 | return NULL; |
1d99702e RD |
5737 | if (_argo0) { |
5738 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5739 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5740 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5741 | return NULL; |
5742 | } | |
5743 | } | |
1d99702e RD |
5744 | if (_argo1) { |
5745 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5746 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5747 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemImage. Expected _wxTreeItemId_p."); |
5748 | return NULL; | |
5749 | } | |
5750 | } | |
cf694132 RD |
5751 | { |
5752 | wxPy_BEGIN_ALLOW_THREADS; | |
694759cf | 5753 | wxTreeCtrl_SetItemImage(_arg0,*_arg1,_arg2,_arg3); |
cf694132 RD |
5754 | |
5755 | wxPy_END_ALLOW_THREADS; | |
5756 | } Py_INCREF(Py_None); | |
d5c9047a | 5757 | _resultobj = Py_None; |
8ab979d7 RD |
5758 | return _resultobj; |
5759 | } | |
5760 | ||
d5c9047a | 5761 | #define wxTreeCtrl_SetItemSelectedImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemSelectedImage(_swigarg0,_swigarg1)) |
efc5f224 | 5762 | static PyObject *_wrap_wxTreeCtrl_SetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5763 | PyObject * _resultobj; |
f6bcfd97 | 5764 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
5765 | wxTreeItemId * _arg1; |
5766 | int _arg2; | |
1d99702e RD |
5767 | PyObject * _argo0 = 0; |
5768 | PyObject * _argo1 = 0; | |
efc5f224 | 5769 | char *_kwnames[] = { "self","item","image", NULL }; |
8ab979d7 RD |
5770 | |
5771 | self = self; | |
efc5f224 | 5772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxTreeCtrl_SetItemSelectedImage",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 5773 | return NULL; |
1d99702e RD |
5774 | if (_argo0) { |
5775 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5776 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5778 | return NULL; |
5779 | } | |
5780 | } | |
1d99702e RD |
5781 | if (_argo1) { |
5782 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5783 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemSelectedImage. Expected _wxTreeItemId_p."); |
5785 | return NULL; | |
5786 | } | |
5787 | } | |
cf694132 RD |
5788 | { |
5789 | wxPy_BEGIN_ALLOW_THREADS; | |
5790 | wxTreeCtrl_SetItemSelectedImage(_arg0,*_arg1,_arg2); | |
5791 | ||
5792 | wxPy_END_ALLOW_THREADS; | |
5793 | } Py_INCREF(Py_None); | |
5794 | _resultobj = Py_None; | |
5795 | return _resultobj; | |
5796 | } | |
5797 | ||
5798 | #define wxTreeCtrl_SetItemHasChildren(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemHasChildren(_swigarg0,_swigarg1)) | |
efc5f224 | 5799 | static PyObject *_wrap_wxTreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 | 5800 | PyObject * _resultobj; |
f6bcfd97 | 5801 | wxPyTreeCtrl * _arg0; |
cf694132 | 5802 | wxTreeItemId * _arg1; |
1d99702e RD |
5803 | bool _arg2 = (bool ) TRUE; |
5804 | PyObject * _argo0 = 0; | |
5805 | PyObject * _argo1 = 0; | |
5806 | int tempbool2 = (int) TRUE; | |
efc5f224 | 5807 | char *_kwnames[] = { "self","item","hasChildren", NULL }; |
cf694132 RD |
5808 | |
5809 | self = self; | |
efc5f224 | 5810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemHasChildren",_kwnames,&_argo0,&_argo1,&tempbool2)) |
cf694132 | 5811 | return NULL; |
1d99702e RD |
5812 | if (_argo0) { |
5813 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5814 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5815 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
5816 | return NULL; |
5817 | } | |
5818 | } | |
1d99702e RD |
5819 | if (_argo1) { |
5820 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5821 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
5822 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemHasChildren. Expected _wxTreeItemId_p."); |
5823 | return NULL; | |
5824 | } | |
5825 | } | |
5826 | _arg2 = (bool ) tempbool2; | |
5827 | { | |
5828 | wxPy_BEGIN_ALLOW_THREADS; | |
5829 | wxTreeCtrl_SetItemHasChildren(_arg0,*_arg1,_arg2); | |
5830 | ||
5831 | wxPy_END_ALLOW_THREADS; | |
5832 | } Py_INCREF(Py_None); | |
d5c9047a | 5833 | _resultobj = Py_None; |
8ab979d7 RD |
5834 | return _resultobj; |
5835 | } | |
5836 | ||
f6bcfd97 | 5837 | static wxPyTreeItemData * wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item) { |
cf694132 RD |
5838 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
5839 | if (data == NULL) { | |
5840 | data = new wxPyTreeItemData(); | |
f6bcfd97 | 5841 | data->SetId(item); // set the id |
cf694132 RD |
5842 | self->SetItemData(item, data); |
5843 | } | |
5844 | return data; | |
5845 | } | |
efc5f224 | 5846 | static PyObject *_wrap_wxTreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
5847 | PyObject * _resultobj; |
5848 | wxPyTreeItemData * _result; | |
f6bcfd97 | 5849 | wxPyTreeCtrl * _arg0; |
cf694132 | 5850 | wxTreeItemId * _arg1; |
1d99702e RD |
5851 | PyObject * _argo0 = 0; |
5852 | PyObject * _argo1 = 0; | |
efc5f224 | 5853 | char *_kwnames[] = { "self","item", NULL }; |
cf694132 RD |
5854 | char _ptemp[128]; |
5855 | ||
5856 | self = self; | |
efc5f224 | 5857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemData",_kwnames,&_argo0,&_argo1)) |
cf694132 | 5858 | return NULL; |
1d99702e RD |
5859 | if (_argo0) { |
5860 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5861 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5862 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemData. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
5863 | return NULL; |
5864 | } | |
5865 | } | |
1d99702e RD |
5866 | if (_argo1) { |
5867 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5868 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
5869 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemData. Expected _wxTreeItemId_p."); |
5870 | return NULL; | |
5871 | } | |
5872 | } | |
5873 | { | |
5874 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 5875 | _result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(_arg0,*_arg1); |
cf694132 RD |
5876 | |
5877 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
5878 | } if (_result) { |
5879 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
5880 | _resultobj = Py_BuildValue("s",_ptemp); | |
5881 | } else { | |
5882 | Py_INCREF(Py_None); | |
5883 | _resultobj = Py_None; | |
5884 | } | |
cf694132 RD |
5885 | return _resultobj; |
5886 | } | |
5887 | ||
f6bcfd97 BP |
5888 | static void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item,wxPyTreeItemData * data) { |
5889 | data->SetId(item); // set the id | |
5890 | self->SetItemData(item, data); | |
c368d904 | 5891 | } |
efc5f224 | 5892 | static PyObject *_wrap_wxTreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5893 | PyObject * _resultobj; |
f6bcfd97 | 5894 | wxPyTreeCtrl * _arg0; |
d5c9047a | 5895 | wxTreeItemId * _arg1; |
cf694132 | 5896 | wxPyTreeItemData * _arg2; |
1d99702e RD |
5897 | PyObject * _argo0 = 0; |
5898 | PyObject * _argo1 = 0; | |
5899 | PyObject * _argo2 = 0; | |
efc5f224 | 5900 | char *_kwnames[] = { "self","item","data", NULL }; |
8ab979d7 RD |
5901 | |
5902 | self = self; | |
efc5f224 | 5903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemData",_kwnames,&_argo0,&_argo1,&_argo2)) |
8ab979d7 | 5904 | return NULL; |
1d99702e RD |
5905 | if (_argo0) { |
5906 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5907 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5908 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemData. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5909 | return NULL; |
5910 | } | |
5911 | } | |
1d99702e RD |
5912 | if (_argo1) { |
5913 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5914 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemData. Expected _wxTreeItemId_p."); |
5916 | return NULL; | |
5917 | } | |
5918 | } | |
1d99702e RD |
5919 | if (_argo2) { |
5920 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
5921 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyTreeItemData_p")) { | |
cf694132 | 5922 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemData. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
5923 | return NULL; |
5924 | } | |
5925 | } | |
cf694132 RD |
5926 | { |
5927 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 5928 | wxPyTreeCtrl_SetItemData(_arg0,*_arg1,_arg2); |
cf694132 RD |
5929 | |
5930 | wxPy_END_ALLOW_THREADS; | |
5931 | } Py_INCREF(Py_None); | |
d5c9047a | 5932 | _resultobj = Py_None; |
8ab979d7 RD |
5933 | return _resultobj; |
5934 | } | |
5935 | ||
f6bcfd97 | 5936 | static PyObject * wxPyTreeCtrl_GetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item) { |
cf694132 RD |
5937 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
5938 | if (data == NULL) { | |
5939 | data = new wxPyTreeItemData(); | |
f6bcfd97 | 5940 | data->SetId(item); // set the id |
cf694132 RD |
5941 | self->SetItemData(item, data); |
5942 | } | |
5943 | return data->GetData(); | |
c368d904 | 5944 | } |
efc5f224 | 5945 | static PyObject *_wrap_wxTreeCtrl_GetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 | 5946 | PyObject * _resultobj; |
cf694132 | 5947 | PyObject * _result; |
f6bcfd97 | 5948 | wxPyTreeCtrl * _arg0; |
08127323 | 5949 | wxTreeItemId * _arg1; |
1d99702e RD |
5950 | PyObject * _argo0 = 0; |
5951 | PyObject * _argo1 = 0; | |
efc5f224 | 5952 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
5953 | |
5954 | self = self; | |
efc5f224 | 5955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPyData",_kwnames,&_argo0,&_argo1)) |
08127323 | 5956 | return NULL; |
1d99702e RD |
5957 | if (_argo0) { |
5958 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5959 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5960 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPyData. Expected _wxPyTreeCtrl_p."); | |
08127323 RD |
5961 | return NULL; |
5962 | } | |
5963 | } | |
1d99702e RD |
5964 | if (_argo1) { |
5965 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5966 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 | 5967 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPyData. Expected _wxTreeItemId_p."); |
08127323 RD |
5968 | return NULL; |
5969 | } | |
5970 | } | |
cf694132 RD |
5971 | { |
5972 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 5973 | _result = (PyObject *)wxPyTreeCtrl_GetPyData(_arg0,*_arg1); |
cf694132 RD |
5974 | |
5975 | wxPy_END_ALLOW_THREADS; | |
5976 | }{ | |
5977 | _resultobj = _result; | |
5978 | } | |
5979 | return _resultobj; | |
5980 | } | |
5981 | ||
f6bcfd97 | 5982 | static void wxPyTreeCtrl_SetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item,PyObject * obj) { |
cf694132 RD |
5983 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
5984 | if (data == NULL) { | |
5985 | data = new wxPyTreeItemData(obj); | |
f6bcfd97 | 5986 | data->SetId(item); // set the id |
cf694132 RD |
5987 | self->SetItemData(item, data); |
5988 | } else | |
5989 | data->SetData(obj); | |
c368d904 | 5990 | } |
efc5f224 | 5991 | static PyObject *_wrap_wxTreeCtrl_SetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 | 5992 | PyObject * _resultobj; |
f6bcfd97 | 5993 | wxPyTreeCtrl * _arg0; |
cf694132 RD |
5994 | wxTreeItemId * _arg1; |
5995 | PyObject * _arg2; | |
1d99702e RD |
5996 | PyObject * _argo0 = 0; |
5997 | PyObject * _argo1 = 0; | |
cf694132 | 5998 | PyObject * _obj2 = 0; |
efc5f224 | 5999 | char *_kwnames[] = { "self","item","obj", NULL }; |
cf694132 RD |
6000 | |
6001 | self = self; | |
efc5f224 | 6002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetPyData",_kwnames,&_argo0,&_argo1,&_obj2)) |
cf694132 | 6003 | return NULL; |
1d99702e RD |
6004 | if (_argo0) { |
6005 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6006 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6007 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetPyData. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
6008 | return NULL; |
6009 | } | |
6010 | } | |
1d99702e RD |
6011 | if (_argo1) { |
6012 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6013 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
6014 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetPyData. Expected _wxTreeItemId_p."); |
6015 | return NULL; | |
6016 | } | |
6017 | } | |
6018 | { | |
6019 | _arg2 = _obj2; | |
6020 | } | |
6021 | { | |
6022 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 6023 | wxPyTreeCtrl_SetPyData(_arg0,*_arg1,_arg2); |
cf694132 RD |
6024 | |
6025 | wxPy_END_ALLOW_THREADS; | |
6026 | } Py_INCREF(Py_None); | |
08127323 RD |
6027 | _resultobj = Py_None; |
6028 | return _resultobj; | |
6029 | } | |
6030 | ||
d5c9047a | 6031 | #define wxTreeCtrl_IsVisible(_swigobj,_swigarg0) (_swigobj->IsVisible(_swigarg0)) |
efc5f224 | 6032 | static PyObject *_wrap_wxTreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6033 | PyObject * _resultobj; |
d5c9047a | 6034 | bool _result; |
f6bcfd97 | 6035 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6036 | wxTreeItemId * _arg1; |
1d99702e RD |
6037 | PyObject * _argo0 = 0; |
6038 | PyObject * _argo1 = 0; | |
efc5f224 | 6039 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
6040 | |
6041 | self = self; | |
efc5f224 | 6042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6043 | return NULL; |
1d99702e RD |
6044 | if (_argo0) { |
6045 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6046 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6047 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6048 | return NULL; |
6049 | } | |
6050 | } | |
1d99702e RD |
6051 | if (_argo1) { |
6052 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6053 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6054 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsVisible. Expected _wxTreeItemId_p."); |
6055 | return NULL; | |
6056 | } | |
6057 | } | |
cf694132 RD |
6058 | { |
6059 | wxPy_BEGIN_ALLOW_THREADS; | |
6060 | _result = (bool )wxTreeCtrl_IsVisible(_arg0,*_arg1); | |
6061 | ||
6062 | wxPy_END_ALLOW_THREADS; | |
6063 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
6064 | return _resultobj; |
6065 | } | |
6066 | ||
d5c9047a | 6067 | #define wxTreeCtrl_ItemHasChildren(_swigobj,_swigarg0) (_swigobj->ItemHasChildren(_swigarg0)) |
efc5f224 | 6068 | static PyObject *_wrap_wxTreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6069 | PyObject * _resultobj; |
d5c9047a | 6070 | bool _result; |
f6bcfd97 | 6071 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6072 | wxTreeItemId * _arg1; |
1d99702e RD |
6073 | PyObject * _argo0 = 0; |
6074 | PyObject * _argo1 = 0; | |
efc5f224 | 6075 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
6076 | |
6077 | self = self; | |
efc5f224 | 6078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ItemHasChildren",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6079 | return NULL; |
1d99702e RD |
6080 | if (_argo0) { |
6081 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6082 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6083 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6084 | return NULL; |
6085 | } | |
6086 | } | |
1d99702e RD |
6087 | if (_argo1) { |
6088 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6089 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6090 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ItemHasChildren. Expected _wxTreeItemId_p."); |
6091 | return NULL; | |
6092 | } | |
6093 | } | |
cf694132 RD |
6094 | { |
6095 | wxPy_BEGIN_ALLOW_THREADS; | |
6096 | _result = (bool )wxTreeCtrl_ItemHasChildren(_arg0,*_arg1); | |
6097 | ||
6098 | wxPy_END_ALLOW_THREADS; | |
6099 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
6100 | return _resultobj; |
6101 | } | |
6102 | ||
d5c9047a | 6103 | #define wxTreeCtrl_IsExpanded(_swigobj,_swigarg0) (_swigobj->IsExpanded(_swigarg0)) |
efc5f224 | 6104 | static PyObject *_wrap_wxTreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6105 | PyObject * _resultobj; |
d5c9047a | 6106 | bool _result; |
f6bcfd97 | 6107 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6108 | wxTreeItemId * _arg1; |
1d99702e RD |
6109 | PyObject * _argo0 = 0; |
6110 | PyObject * _argo1 = 0; | |
efc5f224 | 6111 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
6112 | |
6113 | self = self; | |
efc5f224 | 6114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsExpanded",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6115 | return NULL; |
1d99702e RD |
6116 | if (_argo0) { |
6117 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6118 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6119 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsExpanded. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6120 | return NULL; |
6121 | } | |
6122 | } | |
1d99702e RD |
6123 | if (_argo1) { |
6124 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6125 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6126 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsExpanded. Expected _wxTreeItemId_p."); |
6127 | return NULL; | |
6128 | } | |
6129 | } | |
cf694132 RD |
6130 | { |
6131 | wxPy_BEGIN_ALLOW_THREADS; | |
6132 | _result = (bool )wxTreeCtrl_IsExpanded(_arg0,*_arg1); | |
6133 | ||
6134 | wxPy_END_ALLOW_THREADS; | |
6135 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
6136 | return _resultobj; |
6137 | } | |
6138 | ||
d5c9047a | 6139 | #define wxTreeCtrl_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) |
efc5f224 | 6140 | static PyObject *_wrap_wxTreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6141 | PyObject * _resultobj; |
d5c9047a | 6142 | bool _result; |
f6bcfd97 | 6143 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6144 | wxTreeItemId * _arg1; |
1d99702e RD |
6145 | PyObject * _argo0 = 0; |
6146 | PyObject * _argo1 = 0; | |
efc5f224 | 6147 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
6148 | |
6149 | self = self; | |
efc5f224 | 6150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsSelected",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6151 | return NULL; |
1d99702e RD |
6152 | if (_argo0) { |
6153 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6154 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6155 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsSelected. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6156 | return NULL; |
6157 | } | |
6158 | } | |
1d99702e RD |
6159 | if (_argo1) { |
6160 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6161 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6162 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsSelected. Expected _wxTreeItemId_p."); |
6163 | return NULL; | |
6164 | } | |
6165 | } | |
cf694132 RD |
6166 | { |
6167 | wxPy_BEGIN_ALLOW_THREADS; | |
6168 | _result = (bool )wxTreeCtrl_IsSelected(_arg0,*_arg1); | |
6169 | ||
6170 | wxPy_END_ALLOW_THREADS; | |
6171 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
6172 | return _resultobj; |
6173 | } | |
6174 | ||
6175 | #define wxTreeCtrl_GetRootItem(_swigobj) (_swigobj->GetRootItem()) | |
efc5f224 | 6176 | static PyObject *_wrap_wxTreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6177 | PyObject * _resultobj; |
d5c9047a | 6178 | wxTreeItemId * _result; |
f6bcfd97 | 6179 | wxPyTreeCtrl * _arg0; |
1d99702e | 6180 | PyObject * _argo0 = 0; |
efc5f224 | 6181 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 6182 | char _ptemp[128]; |
8ab979d7 RD |
6183 | |
6184 | self = self; | |
efc5f224 | 6185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetRootItem",_kwnames,&_argo0)) |
8ab979d7 | 6186 | return NULL; |
1d99702e RD |
6187 | if (_argo0) { |
6188 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6189 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6190 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetRootItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6191 | return NULL; |
6192 | } | |
6193 | } | |
cf694132 RD |
6194 | { |
6195 | wxPy_BEGIN_ALLOW_THREADS; | |
6196 | _result = new wxTreeItemId (wxTreeCtrl_GetRootItem(_arg0)); | |
6197 | ||
6198 | wxPy_END_ALLOW_THREADS; | |
6199 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6200 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6201 | return _resultobj; |
6202 | } | |
6203 | ||
6204 | #define wxTreeCtrl_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
efc5f224 | 6205 | static PyObject *_wrap_wxTreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6206 | PyObject * _resultobj; |
d5c9047a | 6207 | wxTreeItemId * _result; |
f6bcfd97 | 6208 | wxPyTreeCtrl * _arg0; |
1d99702e | 6209 | PyObject * _argo0 = 0; |
efc5f224 | 6210 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 6211 | char _ptemp[128]; |
8ab979d7 RD |
6212 | |
6213 | self = self; | |
efc5f224 | 6214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelection",_kwnames,&_argo0)) |
8ab979d7 | 6215 | return NULL; |
1d99702e RD |
6216 | if (_argo0) { |
6217 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6218 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6219 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelection. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6220 | return NULL; |
6221 | } | |
6222 | } | |
cf694132 RD |
6223 | { |
6224 | wxPy_BEGIN_ALLOW_THREADS; | |
6225 | _result = new wxTreeItemId (wxTreeCtrl_GetSelection(_arg0)); | |
6226 | ||
6227 | wxPy_END_ALLOW_THREADS; | |
6228 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6229 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6230 | return _resultobj; |
6231 | } | |
6232 | ||
eb715945 RD |
6233 | #define wxTreeCtrl_GetItemParent(_swigobj,_swigarg0) (_swigobj->GetParent(_swigarg0)) |
6234 | static PyObject *_wrap_wxTreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6235 | PyObject * _resultobj; |
d5c9047a | 6236 | wxTreeItemId * _result; |
f6bcfd97 | 6237 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6238 | wxTreeItemId * _arg1; |
1d99702e RD |
6239 | PyObject * _argo0 = 0; |
6240 | PyObject * _argo1 = 0; | |
efc5f224 | 6241 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 6242 | char _ptemp[128]; |
8ab979d7 RD |
6243 | |
6244 | self = self; | |
eb715945 | 6245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6246 | return NULL; |
1d99702e RD |
6247 | if (_argo0) { |
6248 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6249 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6250 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemParent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6251 | return NULL; |
6252 | } | |
6253 | } | |
1d99702e RD |
6254 | if (_argo1) { |
6255 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6256 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
eb715945 | 6257 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemParent. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
6258 | return NULL; |
6259 | } | |
6260 | } | |
cf694132 RD |
6261 | { |
6262 | wxPy_BEGIN_ALLOW_THREADS; | |
eb715945 | 6263 | _result = new wxTreeItemId (wxTreeCtrl_GetItemParent(_arg0,*_arg1)); |
cf694132 RD |
6264 | |
6265 | wxPy_END_ALLOW_THREADS; | |
6266 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6267 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6268 | return _resultobj; |
6269 | } | |
6270 | ||
f6bcfd97 | 6271 | static PyObject * wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self) { |
26b9cf27 | 6272 | bool doSave = wxPyRestoreThread(); |
d426c97e RD |
6273 | PyObject* rval = PyList_New(0); |
6274 | wxArrayTreeItemIds array; | |
6275 | size_t num, x; | |
6276 | num = self->GetSelections(array); | |
6277 | for (x=0; x < num; x++) { | |
c368d904 RD |
6278 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); |
6279 | PyObject* item = wxPyConstructObject((void*)tii, "wxTreeItemId", TRUE); | |
d426c97e RD |
6280 | PyList_Append(rval, item); |
6281 | } | |
26b9cf27 | 6282 | wxPySaveThread(doSave); |
d426c97e RD |
6283 | return rval; |
6284 | } | |
6285 | static PyObject *_wrap_wxTreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6286 | PyObject * _resultobj; | |
6287 | PyObject * _result; | |
f6bcfd97 | 6288 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
6289 | PyObject * _argo0 = 0; |
6290 | char *_kwnames[] = { "self", NULL }; | |
6291 | ||
6292 | self = self; | |
6293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelections",_kwnames,&_argo0)) | |
6294 | return NULL; | |
6295 | if (_argo0) { | |
6296 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6297 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6298 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelections. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
6299 | return NULL; |
6300 | } | |
6301 | } | |
6302 | { | |
6303 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 6304 | _result = (PyObject *)wxPyTreeCtrl_GetSelections(_arg0); |
d426c97e RD |
6305 | |
6306 | wxPy_END_ALLOW_THREADS; | |
6307 | }{ | |
6308 | _resultobj = _result; | |
6309 | } | |
6310 | return _resultobj; | |
6311 | } | |
6312 | ||
bb0054cd | 6313 | #define wxTreeCtrl_GetChildrenCount(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetChildrenCount(_swigarg0,_swigarg1)) |
efc5f224 | 6314 | static PyObject *_wrap_wxTreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
6315 | PyObject * _resultobj; |
6316 | size_t _result; | |
f6bcfd97 | 6317 | wxPyTreeCtrl * _arg0; |
bb0054cd | 6318 | wxTreeItemId * _arg1; |
1d99702e RD |
6319 | bool _arg2 = (bool ) TRUE; |
6320 | PyObject * _argo0 = 0; | |
6321 | PyObject * _argo1 = 0; | |
6322 | int tempbool2 = (int) TRUE; | |
efc5f224 | 6323 | char *_kwnames[] = { "self","item","recursively", NULL }; |
bb0054cd RD |
6324 | |
6325 | self = self; | |
efc5f224 | 6326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetChildrenCount",_kwnames,&_argo0,&_argo1,&tempbool2)) |
bb0054cd | 6327 | return NULL; |
1d99702e RD |
6328 | if (_argo0) { |
6329 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6330 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetChildrenCount. Expected _wxPyTreeCtrl_p."); | |
bb0054cd RD |
6332 | return NULL; |
6333 | } | |
6334 | } | |
1d99702e RD |
6335 | if (_argo1) { |
6336 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6337 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
bb0054cd RD |
6338 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetChildrenCount. Expected _wxTreeItemId_p."); |
6339 | return NULL; | |
6340 | } | |
6341 | } | |
6342 | _arg2 = (bool ) tempbool2; | |
6343 | { | |
6344 | wxPy_BEGIN_ALLOW_THREADS; | |
6345 | _result = (size_t )wxTreeCtrl_GetChildrenCount(_arg0,*_arg1,_arg2); | |
6346 | ||
6347 | wxPy_END_ALLOW_THREADS; | |
6348 | } _resultobj = Py_BuildValue("i",_result); | |
6349 | return _resultobj; | |
6350 | } | |
6351 | ||
d5c9047a | 6352 | #define wxTreeCtrl_GetFirstChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetFirstChild(_swigarg0,_swigarg1)) |
efc5f224 | 6353 | static PyObject *_wrap_wxTreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6354 | PyObject * _resultobj; |
d5c9047a | 6355 | wxTreeItemId * _result; |
f6bcfd97 | 6356 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
6357 | wxTreeItemId * _arg1; |
6358 | long * _arg2; | |
1d99702e RD |
6359 | PyObject * _argo0 = 0; |
6360 | PyObject * _argo1 = 0; | |
d5c9047a RD |
6361 | long temp; |
6362 | PyObject * _obj2 = 0; | |
efc5f224 | 6363 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 6364 | char _ptemp[128]; |
8ab979d7 RD |
6365 | |
6366 | self = self; | |
efc5f224 | 6367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetFirstChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 6368 | return NULL; |
1d99702e RD |
6369 | if (_argo0) { |
6370 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6371 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6372 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstChild. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6373 | return NULL; |
6374 | } | |
6375 | } | |
1d99702e RD |
6376 | if (_argo1) { |
6377 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6378 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 6379 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetFirstChild. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
6380 | return NULL; |
6381 | } | |
6382 | } | |
d5c9047a RD |
6383 | { |
6384 | temp = (long) PyInt_AsLong(_obj2); | |
6385 | _arg2 = &temp; | |
6386 | } | |
cf694132 RD |
6387 | { |
6388 | wxPy_BEGIN_ALLOW_THREADS; | |
6389 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstChild(_arg0,*_arg1,*_arg2)); | |
6390 | ||
6391 | wxPy_END_ALLOW_THREADS; | |
6392 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a RD |
6393 | _resultobj = Py_BuildValue("s",_ptemp); |
6394 | { | |
6395 | PyObject *o; | |
6396 | o = PyInt_FromLong((long) (*_arg2)); | |
6397 | _resultobj = t_output_helper(_resultobj, o); | |
6398 | } | |
8ab979d7 RD |
6399 | return _resultobj; |
6400 | } | |
6401 | ||
d5c9047a | 6402 | #define wxTreeCtrl_GetNextChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetNextChild(_swigarg0,_swigarg1)) |
efc5f224 | 6403 | static PyObject *_wrap_wxTreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6404 | PyObject * _resultobj; |
d5c9047a | 6405 | wxTreeItemId * _result; |
f6bcfd97 | 6406 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
6407 | wxTreeItemId * _arg1; |
6408 | long * _arg2; | |
1d99702e RD |
6409 | PyObject * _argo0 = 0; |
6410 | PyObject * _argo1 = 0; | |
d5c9047a | 6411 | long temp; |
8ab979d7 | 6412 | PyObject * _obj2 = 0; |
efc5f224 | 6413 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 6414 | char _ptemp[128]; |
8ab979d7 RD |
6415 | |
6416 | self = self; | |
efc5f224 | 6417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetNextChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 6418 | return NULL; |
1d99702e RD |
6419 | if (_argo0) { |
6420 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6421 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6422 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextChild. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6423 | return NULL; |
6424 | } | |
6425 | } | |
1d99702e RD |
6426 | if (_argo1) { |
6427 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6428 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 6429 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextChild. Expected _wxTreeItemId_p."); |
8ab979d7 | 6430 | return NULL; |
d5c9047a | 6431 | } |
8ab979d7 | 6432 | } |
d5c9047a RD |
6433 | { |
6434 | temp = (long) PyInt_AsLong(_obj2); | |
6435 | _arg2 = &temp; | |
8ab979d7 | 6436 | } |
cf694132 RD |
6437 | { |
6438 | wxPy_BEGIN_ALLOW_THREADS; | |
6439 | _result = new wxTreeItemId (wxTreeCtrl_GetNextChild(_arg0,*_arg1,*_arg2)); | |
6440 | ||
6441 | wxPy_END_ALLOW_THREADS; | |
6442 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6443 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 | 6444 | { |
d5c9047a RD |
6445 | PyObject *o; |
6446 | o = PyInt_FromLong((long) (*_arg2)); | |
6447 | _resultobj = t_output_helper(_resultobj, o); | |
8ab979d7 RD |
6448 | } |
6449 | return _resultobj; | |
6450 | } | |
6451 | ||
d5c9047a | 6452 | #define wxTreeCtrl_GetNextSibling(_swigobj,_swigarg0) (_swigobj->GetNextSibling(_swigarg0)) |
efc5f224 | 6453 | static PyObject *_wrap_wxTreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6454 | PyObject * _resultobj; |
d5c9047a | 6455 | wxTreeItemId * _result; |
f6bcfd97 | 6456 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6457 | wxTreeItemId * _arg1; |
1d99702e RD |
6458 | PyObject * _argo0 = 0; |
6459 | PyObject * _argo1 = 0; | |
efc5f224 | 6460 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 6461 | char _ptemp[128]; |
8ab979d7 RD |
6462 | |
6463 | self = self; | |
efc5f224 | 6464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6465 | return NULL; |
1d99702e RD |
6466 | if (_argo0) { |
6467 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6468 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6469 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextSibling. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6470 | return NULL; |
6471 | } | |
6472 | } | |
1d99702e RD |
6473 | if (_argo1) { |
6474 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6475 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6476 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextSibling. Expected _wxTreeItemId_p."); |
6477 | return NULL; | |
6478 | } | |
6479 | } | |
cf694132 RD |
6480 | { |
6481 | wxPy_BEGIN_ALLOW_THREADS; | |
6482 | _result = new wxTreeItemId (wxTreeCtrl_GetNextSibling(_arg0,*_arg1)); | |
6483 | ||
6484 | wxPy_END_ALLOW_THREADS; | |
6485 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6486 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6487 | return _resultobj; |
6488 | } | |
6489 | ||
d5c9047a | 6490 | #define wxTreeCtrl_GetPrevSibling(_swigobj,_swigarg0) (_swigobj->GetPrevSibling(_swigarg0)) |
efc5f224 | 6491 | static PyObject *_wrap_wxTreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6492 | PyObject * _resultobj; |
d5c9047a | 6493 | wxTreeItemId * _result; |
f6bcfd97 | 6494 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6495 | wxTreeItemId * _arg1; |
1d99702e RD |
6496 | PyObject * _argo0 = 0; |
6497 | PyObject * _argo1 = 0; | |
efc5f224 | 6498 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 6499 | char _ptemp[128]; |
8ab979d7 RD |
6500 | |
6501 | self = self; | |
efc5f224 | 6502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6503 | return NULL; |
1d99702e RD |
6504 | if (_argo0) { |
6505 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6506 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6507 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevSibling. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6508 | return NULL; |
6509 | } | |
6510 | } | |
1d99702e RD |
6511 | if (_argo1) { |
6512 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6513 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6514 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevSibling. Expected _wxTreeItemId_p."); |
6515 | return NULL; | |
6516 | } | |
6517 | } | |
cf694132 RD |
6518 | { |
6519 | wxPy_BEGIN_ALLOW_THREADS; | |
6520 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevSibling(_arg0,*_arg1)); | |
6521 | ||
6522 | wxPy_END_ALLOW_THREADS; | |
6523 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6524 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6525 | return _resultobj; |
6526 | } | |
6527 | ||
d5c9047a | 6528 | #define wxTreeCtrl_GetFirstVisibleItem(_swigobj) (_swigobj->GetFirstVisibleItem()) |
efc5f224 | 6529 | static PyObject *_wrap_wxTreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6530 | PyObject * _resultobj; |
d5c9047a | 6531 | wxTreeItemId * _result; |
f6bcfd97 | 6532 | wxPyTreeCtrl * _arg0; |
1d99702e | 6533 | PyObject * _argo0 = 0; |
efc5f224 | 6534 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 6535 | char _ptemp[128]; |
8ab979d7 RD |
6536 | |
6537 | self = self; | |
efc5f224 | 6538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetFirstVisibleItem",_kwnames,&_argo0)) |
8ab979d7 | 6539 | return NULL; |
1d99702e RD |
6540 | if (_argo0) { |
6541 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6542 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6543 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstVisibleItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6544 | return NULL; |
6545 | } | |
6546 | } | |
cf694132 RD |
6547 | { |
6548 | wxPy_BEGIN_ALLOW_THREADS; | |
6549 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstVisibleItem(_arg0)); | |
6550 | ||
6551 | wxPy_END_ALLOW_THREADS; | |
6552 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6553 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6554 | return _resultobj; |
6555 | } | |
6556 | ||
d5c9047a | 6557 | #define wxTreeCtrl_GetNextVisible(_swigobj,_swigarg0) (_swigobj->GetNextVisible(_swigarg0)) |
efc5f224 | 6558 | static PyObject *_wrap_wxTreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6559 | PyObject * _resultobj; |
d5c9047a | 6560 | wxTreeItemId * _result; |
f6bcfd97 | 6561 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6562 | wxTreeItemId * _arg1; |
1d99702e RD |
6563 | PyObject * _argo0 = 0; |
6564 | PyObject * _argo1 = 0; | |
efc5f224 | 6565 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 6566 | char _ptemp[128]; |
8ab979d7 RD |
6567 | |
6568 | self = self; | |
efc5f224 | 6569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6570 | return NULL; |
1d99702e RD |
6571 | if (_argo0) { |
6572 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6573 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6574 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6575 | return NULL; |
6576 | } | |
6577 | } | |
1d99702e RD |
6578 | if (_argo1) { |
6579 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6580 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6581 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextVisible. Expected _wxTreeItemId_p."); |
6582 | return NULL; | |
6583 | } | |
6584 | } | |
cf694132 RD |
6585 | { |
6586 | wxPy_BEGIN_ALLOW_THREADS; | |
6587 | _result = new wxTreeItemId (wxTreeCtrl_GetNextVisible(_arg0,*_arg1)); | |
6588 | ||
6589 | wxPy_END_ALLOW_THREADS; | |
6590 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6591 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6592 | return _resultobj; |
6593 | } | |
6594 | ||
d5c9047a | 6595 | #define wxTreeCtrl_GetPrevVisible(_swigobj,_swigarg0) (_swigobj->GetPrevVisible(_swigarg0)) |
efc5f224 | 6596 | static PyObject *_wrap_wxTreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6597 | PyObject * _resultobj; |
d5c9047a | 6598 | wxTreeItemId * _result; |
f6bcfd97 | 6599 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6600 | wxTreeItemId * _arg1; |
1d99702e RD |
6601 | PyObject * _argo0 = 0; |
6602 | PyObject * _argo1 = 0; | |
efc5f224 | 6603 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 6604 | char _ptemp[128]; |
8ab979d7 RD |
6605 | |
6606 | self = self; | |
efc5f224 | 6607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6608 | return NULL; |
1d99702e RD |
6609 | if (_argo0) { |
6610 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6611 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6612 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6613 | return NULL; |
6614 | } | |
6615 | } | |
1d99702e RD |
6616 | if (_argo1) { |
6617 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6618 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 6619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevVisible. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
6620 | return NULL; |
6621 | } | |
6622 | } | |
cf694132 RD |
6623 | { |
6624 | wxPy_BEGIN_ALLOW_THREADS; | |
6625 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevVisible(_arg0,*_arg1)); | |
6626 | ||
6627 | wxPy_END_ALLOW_THREADS; | |
6628 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6629 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6630 | return _resultobj; |
6631 | } | |
6632 | ||
d426c97e RD |
6633 | #define wxTreeCtrl_GetLastChild(_swigobj,_swigarg0) (_swigobj->GetLastChild(_swigarg0)) |
6634 | static PyObject *_wrap_wxTreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6635 | PyObject * _resultobj; | |
6636 | wxTreeItemId * _result; | |
f6bcfd97 | 6637 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
6638 | wxTreeItemId * _arg1; |
6639 | PyObject * _argo0 = 0; | |
6640 | PyObject * _argo1 = 0; | |
6641 | char *_kwnames[] = { "self","item", NULL }; | |
6642 | char _ptemp[128]; | |
6643 | ||
6644 | self = self; | |
6645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetLastChild",_kwnames,&_argo0,&_argo1)) | |
6646 | return NULL; | |
6647 | if (_argo0) { | |
6648 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6649 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6650 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetLastChild. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
6651 | return NULL; |
6652 | } | |
6653 | } | |
6654 | if (_argo1) { | |
6655 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6656 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
6657 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetLastChild. Expected _wxTreeItemId_p."); | |
6658 | return NULL; | |
6659 | } | |
6660 | } | |
6661 | { | |
6662 | wxPy_BEGIN_ALLOW_THREADS; | |
6663 | _result = new wxTreeItemId (wxTreeCtrl_GetLastChild(_arg0,*_arg1)); | |
6664 | ||
6665 | wxPy_END_ALLOW_THREADS; | |
6666 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
6667 | _resultobj = Py_BuildValue("s",_ptemp); | |
6668 | return _resultobj; | |
6669 | } | |
6670 | ||
d5c9047a | 6671 | #define wxTreeCtrl_AddRoot(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->AddRoot(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
efc5f224 | 6672 | static PyObject *_wrap_wxTreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6673 | PyObject * _resultobj; |
d5c9047a | 6674 | wxTreeItemId * _result; |
f6bcfd97 | 6675 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6676 | wxString * _arg1; |
1d99702e RD |
6677 | int _arg2 = (int ) -1; |
6678 | int _arg3 = (int ) -1; | |
6679 | wxPyTreeItemData * _arg4 = (wxPyTreeItemData *) NULL; | |
6680 | PyObject * _argo0 = 0; | |
d5c9047a | 6681 | PyObject * _obj1 = 0; |
1d99702e | 6682 | PyObject * _argo4 = 0; |
efc5f224 | 6683 | char *_kwnames[] = { "self","text","image","selectedImage","data", NULL }; |
d5c9047a | 6684 | char _ptemp[128]; |
8ab979d7 RD |
6685 | |
6686 | self = self; | |
efc5f224 | 6687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iiO:wxTreeCtrl_AddRoot",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_argo4)) |
8ab979d7 | 6688 | return NULL; |
1d99702e RD |
6689 | if (_argo0) { |
6690 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6691 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6692 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AddRoot. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6693 | return NULL; |
6694 | } | |
6695 | } | |
d5c9047a | 6696 | { |
185d7c3e RD |
6697 | #if PYTHON_API_VERSION >= 1009 |
6698 | char* tmpPtr; int tmpSize; | |
6699 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
6700 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
6701 | return NULL; | |
6702 | } | |
6703 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
6704 | return NULL; | |
6705 | _arg1 = new wxString(tmpPtr, tmpSize); | |
6706 | #else | |
d5c9047a RD |
6707 | if (!PyString_Check(_obj1)) { |
6708 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6709 | return NULL; | |
6710 | } | |
185d7c3e RD |
6711 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
6712 | #endif | |
d5c9047a | 6713 | } |
1d99702e RD |
6714 | if (_argo4) { |
6715 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
6716 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxPyTreeItemData_p")) { | |
cf694132 | 6717 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxTreeCtrl_AddRoot. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
6718 | return NULL; |
6719 | } | |
6720 | } | |
cf694132 RD |
6721 | { |
6722 | wxPy_BEGIN_ALLOW_THREADS; | |
6723 | _result = new wxTreeItemId (wxTreeCtrl_AddRoot(_arg0,*_arg1,_arg2,_arg3,_arg4)); | |
6724 | ||
6725 | wxPy_END_ALLOW_THREADS; | |
6726 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a RD |
6727 | _resultobj = Py_BuildValue("s",_ptemp); |
6728 | { | |
6729 | if (_obj1) | |
6730 | delete _arg1; | |
6731 | } | |
8ab979d7 RD |
6732 | return _resultobj; |
6733 | } | |
6734 | ||
d5c9047a | 6735 | #define wxTreeCtrl_PrependItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->PrependItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 6736 | static PyObject *_wrap_wxTreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6737 | PyObject * _resultobj; |
d5c9047a | 6738 | wxTreeItemId * _result; |
f6bcfd97 | 6739 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
6740 | wxTreeItemId * _arg1; |
6741 | wxString * _arg2; | |
1d99702e RD |
6742 | int _arg3 = (int ) -1; |
6743 | int _arg4 = (int ) -1; | |
6744 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
6745 | PyObject * _argo0 = 0; | |
6746 | PyObject * _argo1 = 0; | |
d5c9047a | 6747 | PyObject * _obj2 = 0; |
1d99702e | 6748 | PyObject * _argo5 = 0; |
efc5f224 | 6749 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 6750 | char _ptemp[128]; |
8ab979d7 RD |
6751 | |
6752 | self = self; | |
efc5f224 | 6753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_PrependItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 6754 | return NULL; |
1d99702e RD |
6755 | if (_argo0) { |
6756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_PrependItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6759 | return NULL; |
6760 | } | |
6761 | } | |
1d99702e RD |
6762 | if (_argo1) { |
6763 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6764 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6765 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_PrependItem. Expected _wxTreeItemId_p."); |
6766 | return NULL; | |
6767 | } | |
6768 | } | |
6769 | { | |
185d7c3e RD |
6770 | #if PYTHON_API_VERSION >= 1009 |
6771 | char* tmpPtr; int tmpSize; | |
6772 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
6773 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
6774 | return NULL; | |
6775 | } | |
6776 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
6777 | return NULL; | |
6778 | _arg2 = new wxString(tmpPtr, tmpSize); | |
6779 | #else | |
d5c9047a RD |
6780 | if (!PyString_Check(_obj2)) { |
6781 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6782 | return NULL; | |
6783 | } | |
185d7c3e RD |
6784 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
6785 | #endif | |
d5c9047a | 6786 | } |
1d99702e RD |
6787 | if (_argo5) { |
6788 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
6789 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 6790 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_PrependItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
6791 | return NULL; |
6792 | } | |
6793 | } | |
cf694132 RD |
6794 | { |
6795 | wxPy_BEGIN_ALLOW_THREADS; | |
6796 | _result = new wxTreeItemId (wxTreeCtrl_PrependItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); | |
6797 | ||
6798 | wxPy_END_ALLOW_THREADS; | |
6799 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a RD |
6800 | _resultobj = Py_BuildValue("s",_ptemp); |
6801 | { | |
6802 | if (_obj2) | |
6803 | delete _arg2; | |
6804 | } | |
8ab979d7 RD |
6805 | return _resultobj; |
6806 | } | |
6807 | ||
d5c9047a | 6808 | #define wxTreeCtrl_InsertItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 6809 | static PyObject *_wrap_wxTreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6810 | PyObject * _resultobj; |
d5c9047a | 6811 | wxTreeItemId * _result; |
f6bcfd97 | 6812 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
6813 | wxTreeItemId * _arg1; |
6814 | wxTreeItemId * _arg2; | |
6815 | wxString * _arg3; | |
1d99702e RD |
6816 | int _arg4 = (int ) -1; |
6817 | int _arg5 = (int ) -1; | |
6818 | wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL; | |
6819 | PyObject * _argo0 = 0; | |
6820 | PyObject * _argo1 = 0; | |
6821 | PyObject * _argo2 = 0; | |
d5c9047a | 6822 | PyObject * _obj3 = 0; |
1d99702e | 6823 | PyObject * _argo6 = 0; |
efc5f224 | 6824 | char *_kwnames[] = { "self","parent","idPrevious","text","image","selectedImage","data", NULL }; |
d5c9047a | 6825 | char _ptemp[128]; |
8ab979d7 RD |
6826 | |
6827 | self = self; | |
efc5f224 | 6828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|iiO:wxTreeCtrl_InsertItem",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3,&_arg4,&_arg5,&_argo6)) |
8ab979d7 | 6829 | return NULL; |
1d99702e RD |
6830 | if (_argo0) { |
6831 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6832 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6833 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6834 | return NULL; |
6835 | } | |
6836 | } | |
1d99702e RD |
6837 | if (_argo1) { |
6838 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6839 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6840 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
6841 | return NULL; | |
6842 | } | |
6843 | } | |
1d99702e RD |
6844 | if (_argo2) { |
6845 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
6846 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6847 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
6848 | return NULL; | |
6849 | } | |
6850 | } | |
6851 | { | |
185d7c3e RD |
6852 | #if PYTHON_API_VERSION >= 1009 |
6853 | char* tmpPtr; int tmpSize; | |
6854 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
6855 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
6856 | return NULL; | |
6857 | } | |
6858 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
6859 | return NULL; | |
6860 | _arg3 = new wxString(tmpPtr, tmpSize); | |
6861 | #else | |
d5c9047a RD |
6862 | if (!PyString_Check(_obj3)) { |
6863 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6864 | return NULL; | |
6865 | } | |
185d7c3e RD |
6866 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
6867 | #endif | |
d5c9047a | 6868 | } |
1d99702e RD |
6869 | if (_argo6) { |
6870 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
6871 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) { | |
cf694132 | 6872 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
6873 | return NULL; |
6874 | } | |
6875 | } | |
cf694132 RD |
6876 | { |
6877 | wxPy_BEGIN_ALLOW_THREADS; | |
6878 | _result = new wxTreeItemId (wxTreeCtrl_InsertItem(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6)); | |
6879 | ||
6880 | wxPy_END_ALLOW_THREADS; | |
6881 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a RD |
6882 | _resultobj = Py_BuildValue("s",_ptemp); |
6883 | { | |
6884 | if (_obj3) | |
6885 | delete _arg3; | |
6886 | } | |
8ab979d7 RD |
6887 | return _resultobj; |
6888 | } | |
6889 | ||
f6bcfd97 BP |
6890 | #define wxTreeCtrl_InsertItemBefore(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
6891 | static PyObject *_wrap_wxTreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6892 | PyObject * _resultobj; | |
6893 | wxTreeItemId * _result; | |
6894 | wxPyTreeCtrl * _arg0; | |
6895 | wxTreeItemId * _arg1; | |
6896 | size_t _arg2; | |
6897 | wxString * _arg3; | |
6898 | int _arg4 = (int ) -1; | |
6899 | int _arg5 = (int ) -1; | |
6900 | wxTreeItemData * _arg6 = (wxTreeItemData *) NULL; | |
6901 | PyObject * _argo0 = 0; | |
6902 | PyObject * _argo1 = 0; | |
6903 | PyObject * _obj3 = 0; | |
6904 | PyObject * _argo6 = 0; | |
6905 | char *_kwnames[] = { "self","parent","before","text","image","selectedImage","data", NULL }; | |
6906 | char _ptemp[128]; | |
6907 | ||
6908 | self = self; | |
6909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|iiO:wxTreeCtrl_InsertItemBefore",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_arg4,&_arg5,&_argo6)) | |
6910 | return NULL; | |
6911 | if (_argo0) { | |
6912 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6913 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6914 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItemBefore. Expected _wxPyTreeCtrl_p."); | |
6915 | return NULL; | |
6916 | } | |
6917 | } | |
6918 | if (_argo1) { | |
6919 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6920 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
6921 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemId_p."); | |
6922 | return NULL; | |
6923 | } | |
6924 | } | |
6925 | { | |
185d7c3e RD |
6926 | #if PYTHON_API_VERSION >= 1009 |
6927 | char* tmpPtr; int tmpSize; | |
6928 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
6929 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
6930 | return NULL; | |
6931 | } | |
6932 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
6933 | return NULL; | |
6934 | _arg3 = new wxString(tmpPtr, tmpSize); | |
6935 | #else | |
f6bcfd97 BP |
6936 | if (!PyString_Check(_obj3)) { |
6937 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6938 | return NULL; | |
6939 | } | |
185d7c3e RD |
6940 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
6941 | #endif | |
f6bcfd97 BP |
6942 | } |
6943 | if (_argo6) { | |
6944 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
6945 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxTreeItemData_p")) { | |
6946 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemData_p."); | |
6947 | return NULL; | |
6948 | } | |
6949 | } | |
6950 | { | |
6951 | wxPy_BEGIN_ALLOW_THREADS; | |
6952 | _result = new wxTreeItemId (wxTreeCtrl_InsertItemBefore(_arg0,*_arg1,_arg2,*_arg3,_arg4,_arg5,_arg6)); | |
6953 | ||
6954 | wxPy_END_ALLOW_THREADS; | |
6955 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
6956 | _resultobj = Py_BuildValue("s",_ptemp); | |
6957 | { | |
6958 | if (_obj3) | |
6959 | delete _arg3; | |
6960 | } | |
6961 | return _resultobj; | |
6962 | } | |
6963 | ||
d5c9047a | 6964 | #define wxTreeCtrl_AppendItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->AppendItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 6965 | static PyObject *_wrap_wxTreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6966 | PyObject * _resultobj; |
d5c9047a | 6967 | wxTreeItemId * _result; |
f6bcfd97 | 6968 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6969 | wxTreeItemId * _arg1; |
8ab979d7 | 6970 | wxString * _arg2; |
1d99702e RD |
6971 | int _arg3 = (int ) -1; |
6972 | int _arg4 = (int ) -1; | |
6973 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
6974 | PyObject * _argo0 = 0; | |
6975 | PyObject * _argo1 = 0; | |
8ab979d7 | 6976 | PyObject * _obj2 = 0; |
1d99702e | 6977 | PyObject * _argo5 = 0; |
efc5f224 | 6978 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 6979 | char _ptemp[128]; |
8ab979d7 RD |
6980 | |
6981 | self = self; | |
efc5f224 | 6982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_AppendItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 6983 | return NULL; |
1d99702e RD |
6984 | if (_argo0) { |
6985 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6986 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6987 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AppendItem. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
6988 | return NULL; |
6989 | } | |
6990 | } | |
1d99702e RD |
6991 | if (_argo1) { |
6992 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6993 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 6994 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AppendItem. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
6995 | return NULL; |
6996 | } | |
6997 | } | |
6998 | { | |
185d7c3e RD |
6999 | #if PYTHON_API_VERSION >= 1009 |
7000 | char* tmpPtr; int tmpSize; | |
7001 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
7002 | PyErr_SetString(PyExc_TypeError, "String or Unicode type required"); | |
7003 | return NULL; | |
7004 | } | |
7005 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7006 | return NULL; | |
7007 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7008 | #else | |
8ab979d7 RD |
7009 | if (!PyString_Check(_obj2)) { |
7010 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7011 | return NULL; | |
7012 | } | |
185d7c3e RD |
7013 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7014 | #endif | |
8ab979d7 | 7015 | } |
1d99702e RD |
7016 | if (_argo5) { |
7017 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
7018 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 7019 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_AppendItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
7020 | return NULL; |
7021 | } | |
7022 | } | |
cf694132 RD |
7023 | { |
7024 | wxPy_BEGIN_ALLOW_THREADS; | |
7025 | _result = new wxTreeItemId (wxTreeCtrl_AppendItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); | |
7026 | ||
7027 | wxPy_END_ALLOW_THREADS; | |
7028 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 7029 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7030 | { |
7031 | if (_obj2) | |
7032 | delete _arg2; | |
7033 | } | |
7034 | return _resultobj; | |
7035 | } | |
7036 | ||
d5c9047a | 7037 | #define wxTreeCtrl_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
efc5f224 | 7038 | static PyObject *_wrap_wxTreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7039 | PyObject * _resultobj; |
f6bcfd97 | 7040 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7041 | wxTreeItemId * _arg1; |
1d99702e RD |
7042 | PyObject * _argo0 = 0; |
7043 | PyObject * _argo1 = 0; | |
efc5f224 | 7044 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7045 | |
7046 | self = self; | |
efc5f224 | 7047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Delete",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7048 | return NULL; |
1d99702e RD |
7049 | if (_argo0) { |
7050 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7051 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7052 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Delete. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7053 | return NULL; |
7054 | } | |
7055 | } | |
1d99702e RD |
7056 | if (_argo1) { |
7057 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7058 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7059 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Delete. Expected _wxTreeItemId_p."); |
7060 | return NULL; | |
7061 | } | |
7062 | } | |
cf694132 RD |
7063 | { |
7064 | wxPy_BEGIN_ALLOW_THREADS; | |
7065 | wxTreeCtrl_Delete(_arg0,*_arg1); | |
7066 | ||
7067 | wxPy_END_ALLOW_THREADS; | |
7068 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7069 | _resultobj = Py_None; |
7070 | return _resultobj; | |
7071 | } | |
7072 | ||
08127323 | 7073 | #define wxTreeCtrl_DeleteChildren(_swigobj,_swigarg0) (_swigobj->DeleteChildren(_swigarg0)) |
efc5f224 | 7074 | static PyObject *_wrap_wxTreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 | 7075 | PyObject * _resultobj; |
f6bcfd97 | 7076 | wxPyTreeCtrl * _arg0; |
08127323 | 7077 | wxTreeItemId * _arg1; |
1d99702e RD |
7078 | PyObject * _argo0 = 0; |
7079 | PyObject * _argo1 = 0; | |
efc5f224 | 7080 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
7081 | |
7082 | self = self; | |
efc5f224 | 7083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_DeleteChildren",_kwnames,&_argo0,&_argo1)) |
08127323 | 7084 | return NULL; |
1d99702e RD |
7085 | if (_argo0) { |
7086 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7087 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7088 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteChildren. Expected _wxPyTreeCtrl_p."); | |
08127323 RD |
7089 | return NULL; |
7090 | } | |
7091 | } | |
1d99702e RD |
7092 | if (_argo1) { |
7093 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7094 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
08127323 RD |
7095 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_DeleteChildren. Expected _wxTreeItemId_p."); |
7096 | return NULL; | |
7097 | } | |
7098 | } | |
cf694132 RD |
7099 | { |
7100 | wxPy_BEGIN_ALLOW_THREADS; | |
7101 | wxTreeCtrl_DeleteChildren(_arg0,*_arg1); | |
7102 | ||
7103 | wxPy_END_ALLOW_THREADS; | |
7104 | } Py_INCREF(Py_None); | |
08127323 RD |
7105 | _resultobj = Py_None; |
7106 | return _resultobj; | |
7107 | } | |
7108 | ||
d5c9047a | 7109 | #define wxTreeCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) |
efc5f224 | 7110 | static PyObject *_wrap_wxTreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7111 | PyObject * _resultobj; |
f6bcfd97 | 7112 | wxPyTreeCtrl * _arg0; |
1d99702e | 7113 | PyObject * _argo0 = 0; |
efc5f224 | 7114 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
7115 | |
7116 | self = self; | |
efc5f224 | 7117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_DeleteAllItems",_kwnames,&_argo0)) |
d5c9047a | 7118 | return NULL; |
1d99702e RD |
7119 | if (_argo0) { |
7120 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7121 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7122 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteAllItems. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7123 | return NULL; |
7124 | } | |
7125 | } | |
cf694132 RD |
7126 | { |
7127 | wxPy_BEGIN_ALLOW_THREADS; | |
7128 | wxTreeCtrl_DeleteAllItems(_arg0); | |
7129 | ||
7130 | wxPy_END_ALLOW_THREADS; | |
7131 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7132 | _resultobj = Py_None; |
7133 | return _resultobj; | |
7134 | } | |
7135 | ||
7136 | #define wxTreeCtrl_Expand(_swigobj,_swigarg0) (_swigobj->Expand(_swigarg0)) | |
efc5f224 | 7137 | static PyObject *_wrap_wxTreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7138 | PyObject * _resultobj; |
f6bcfd97 | 7139 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7140 | wxTreeItemId * _arg1; |
1d99702e RD |
7141 | PyObject * _argo0 = 0; |
7142 | PyObject * _argo1 = 0; | |
efc5f224 | 7143 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7144 | |
7145 | self = self; | |
efc5f224 | 7146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Expand",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7147 | return NULL; |
1d99702e RD |
7148 | if (_argo0) { |
7149 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7150 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7151 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Expand. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7152 | return NULL; |
7153 | } | |
7154 | } | |
1d99702e RD |
7155 | if (_argo1) { |
7156 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7157 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7158 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Expand. Expected _wxTreeItemId_p."); |
7159 | return NULL; | |
7160 | } | |
7161 | } | |
cf694132 RD |
7162 | { |
7163 | wxPy_BEGIN_ALLOW_THREADS; | |
7164 | wxTreeCtrl_Expand(_arg0,*_arg1); | |
7165 | ||
7166 | wxPy_END_ALLOW_THREADS; | |
7167 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7168 | _resultobj = Py_None; |
7169 | return _resultobj; | |
7170 | } | |
7171 | ||
7172 | #define wxTreeCtrl_Collapse(_swigobj,_swigarg0) (_swigobj->Collapse(_swigarg0)) | |
efc5f224 | 7173 | static PyObject *_wrap_wxTreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7174 | PyObject * _resultobj; |
f6bcfd97 | 7175 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7176 | wxTreeItemId * _arg1; |
1d99702e RD |
7177 | PyObject * _argo0 = 0; |
7178 | PyObject * _argo1 = 0; | |
efc5f224 | 7179 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7180 | |
7181 | self = self; | |
efc5f224 | 7182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Collapse",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7183 | return NULL; |
1d99702e RD |
7184 | if (_argo0) { |
7185 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7186 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7187 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Collapse. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7188 | return NULL; |
7189 | } | |
7190 | } | |
1d99702e RD |
7191 | if (_argo1) { |
7192 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7193 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7194 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Collapse. Expected _wxTreeItemId_p."); |
7195 | return NULL; | |
7196 | } | |
7197 | } | |
cf694132 RD |
7198 | { |
7199 | wxPy_BEGIN_ALLOW_THREADS; | |
7200 | wxTreeCtrl_Collapse(_arg0,*_arg1); | |
7201 | ||
7202 | wxPy_END_ALLOW_THREADS; | |
7203 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7204 | _resultobj = Py_None; |
7205 | return _resultobj; | |
7206 | } | |
7207 | ||
7208 | #define wxTreeCtrl_CollapseAndReset(_swigobj,_swigarg0) (_swigobj->CollapseAndReset(_swigarg0)) | |
efc5f224 | 7209 | static PyObject *_wrap_wxTreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7210 | PyObject * _resultobj; |
f6bcfd97 | 7211 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7212 | wxTreeItemId * _arg1; |
1d99702e RD |
7213 | PyObject * _argo0 = 0; |
7214 | PyObject * _argo1 = 0; | |
efc5f224 | 7215 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7216 | |
7217 | self = self; | |
efc5f224 | 7218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_CollapseAndReset",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7219 | return NULL; |
1d99702e RD |
7220 | if (_argo0) { |
7221 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7222 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7223 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_CollapseAndReset. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7224 | return NULL; |
7225 | } | |
7226 | } | |
1d99702e RD |
7227 | if (_argo1) { |
7228 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7229 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7230 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_CollapseAndReset. Expected _wxTreeItemId_p."); |
7231 | return NULL; | |
7232 | } | |
7233 | } | |
cf694132 RD |
7234 | { |
7235 | wxPy_BEGIN_ALLOW_THREADS; | |
7236 | wxTreeCtrl_CollapseAndReset(_arg0,*_arg1); | |
7237 | ||
7238 | wxPy_END_ALLOW_THREADS; | |
7239 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7240 | _resultobj = Py_None; |
7241 | return _resultobj; | |
7242 | } | |
7243 | ||
7244 | #define wxTreeCtrl_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0)) | |
efc5f224 | 7245 | static PyObject *_wrap_wxTreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7246 | PyObject * _resultobj; |
f6bcfd97 | 7247 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7248 | wxTreeItemId * _arg1; |
1d99702e RD |
7249 | PyObject * _argo0 = 0; |
7250 | PyObject * _argo1 = 0; | |
efc5f224 | 7251 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7252 | |
7253 | self = self; | |
efc5f224 | 7254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Toggle",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7255 | return NULL; |
1d99702e RD |
7256 | if (_argo0) { |
7257 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7258 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7259 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Toggle. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7260 | return NULL; |
7261 | } | |
7262 | } | |
1d99702e RD |
7263 | if (_argo1) { |
7264 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7265 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7266 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Toggle. Expected _wxTreeItemId_p."); |
7267 | return NULL; | |
7268 | } | |
7269 | } | |
cf694132 RD |
7270 | { |
7271 | wxPy_BEGIN_ALLOW_THREADS; | |
7272 | wxTreeCtrl_Toggle(_arg0,*_arg1); | |
7273 | ||
7274 | wxPy_END_ALLOW_THREADS; | |
7275 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7276 | _resultobj = Py_None; |
7277 | return _resultobj; | |
7278 | } | |
7279 | ||
7280 | #define wxTreeCtrl_Unselect(_swigobj) (_swigobj->Unselect()) | |
efc5f224 | 7281 | static PyObject *_wrap_wxTreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7282 | PyObject * _resultobj; |
f6bcfd97 | 7283 | wxPyTreeCtrl * _arg0; |
1d99702e | 7284 | PyObject * _argo0 = 0; |
efc5f224 | 7285 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
7286 | |
7287 | self = self; | |
efc5f224 | 7288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_Unselect",_kwnames,&_argo0)) |
d5c9047a | 7289 | return NULL; |
1d99702e RD |
7290 | if (_argo0) { |
7291 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7292 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7293 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Unselect. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7294 | return NULL; |
7295 | } | |
7296 | } | |
cf694132 RD |
7297 | { |
7298 | wxPy_BEGIN_ALLOW_THREADS; | |
7299 | wxTreeCtrl_Unselect(_arg0); | |
7300 | ||
7301 | wxPy_END_ALLOW_THREADS; | |
7302 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7303 | _resultobj = Py_None; |
7304 | return _resultobj; | |
7305 | } | |
7306 | ||
8bf5d46e | 7307 | #define wxTreeCtrl_UnselectAll(_swigobj) (_swigobj->UnselectAll()) |
efc5f224 | 7308 | static PyObject *_wrap_wxTreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e | 7309 | PyObject * _resultobj; |
f6bcfd97 | 7310 | wxPyTreeCtrl * _arg0; |
1d99702e | 7311 | PyObject * _argo0 = 0; |
efc5f224 | 7312 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
7313 | |
7314 | self = self; | |
efc5f224 | 7315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_UnselectAll",_kwnames,&_argo0)) |
8bf5d46e | 7316 | return NULL; |
1d99702e RD |
7317 | if (_argo0) { |
7318 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7319 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7320 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_UnselectAll. Expected _wxPyTreeCtrl_p."); | |
8bf5d46e RD |
7321 | return NULL; |
7322 | } | |
7323 | } | |
7324 | { | |
7325 | wxPy_BEGIN_ALLOW_THREADS; | |
7326 | wxTreeCtrl_UnselectAll(_arg0); | |
7327 | ||
7328 | wxPy_END_ALLOW_THREADS; | |
7329 | } Py_INCREF(Py_None); | |
7330 | _resultobj = Py_None; | |
7331 | return _resultobj; | |
7332 | } | |
7333 | ||
d5c9047a | 7334 | #define wxTreeCtrl_SelectItem(_swigobj,_swigarg0) (_swigobj->SelectItem(_swigarg0)) |
efc5f224 | 7335 | static PyObject *_wrap_wxTreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7336 | PyObject * _resultobj; |
f6bcfd97 | 7337 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7338 | wxTreeItemId * _arg1; |
1d99702e RD |
7339 | PyObject * _argo0 = 0; |
7340 | PyObject * _argo1 = 0; | |
efc5f224 | 7341 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7342 | |
7343 | self = self; | |
efc5f224 | 7344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SelectItem",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7345 | return NULL; |
1d99702e RD |
7346 | if (_argo0) { |
7347 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7348 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7349 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SelectItem. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7350 | return NULL; |
7351 | } | |
7352 | } | |
1d99702e RD |
7353 | if (_argo1) { |
7354 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7355 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7356 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SelectItem. Expected _wxTreeItemId_p."); |
7357 | return NULL; | |
7358 | } | |
7359 | } | |
cf694132 RD |
7360 | { |
7361 | wxPy_BEGIN_ALLOW_THREADS; | |
7362 | wxTreeCtrl_SelectItem(_arg0,*_arg1); | |
7363 | ||
7364 | wxPy_END_ALLOW_THREADS; | |
7365 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7366 | _resultobj = Py_None; |
7367 | return _resultobj; | |
7368 | } | |
7369 | ||
7370 | #define wxTreeCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) | |
efc5f224 | 7371 | static PyObject *_wrap_wxTreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7372 | PyObject * _resultobj; |
f6bcfd97 | 7373 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7374 | wxTreeItemId * _arg1; |
1d99702e RD |
7375 | PyObject * _argo0 = 0; |
7376 | PyObject * _argo1 = 0; | |
efc5f224 | 7377 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7378 | |
7379 | self = self; | |
efc5f224 | 7380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EnsureVisible",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7381 | return NULL; |
1d99702e RD |
7382 | if (_argo0) { |
7383 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7384 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7385 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EnsureVisible. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7386 | return NULL; |
7387 | } | |
7388 | } | |
1d99702e RD |
7389 | if (_argo1) { |
7390 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7391 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7392 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EnsureVisible. Expected _wxTreeItemId_p."); |
7393 | return NULL; | |
7394 | } | |
7395 | } | |
cf694132 RD |
7396 | { |
7397 | wxPy_BEGIN_ALLOW_THREADS; | |
7398 | wxTreeCtrl_EnsureVisible(_arg0,*_arg1); | |
7399 | ||
7400 | wxPy_END_ALLOW_THREADS; | |
7401 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7402 | _resultobj = Py_None; |
7403 | return _resultobj; | |
7404 | } | |
7405 | ||
7406 | #define wxTreeCtrl_ScrollTo(_swigobj,_swigarg0) (_swigobj->ScrollTo(_swigarg0)) | |
efc5f224 | 7407 | static PyObject *_wrap_wxTreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7408 | PyObject * _resultobj; |
f6bcfd97 | 7409 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7410 | wxTreeItemId * _arg1; |
1d99702e RD |
7411 | PyObject * _argo0 = 0; |
7412 | PyObject * _argo1 = 0; | |
efc5f224 | 7413 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7414 | |
7415 | self = self; | |
efc5f224 | 7416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ScrollTo",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7417 | return NULL; |
1d99702e RD |
7418 | if (_argo0) { |
7419 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7420 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7421 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ScrollTo. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7422 | return NULL; |
7423 | } | |
7424 | } | |
1d99702e RD |
7425 | if (_argo1) { |
7426 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7427 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7428 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ScrollTo. Expected _wxTreeItemId_p."); |
7429 | return NULL; | |
7430 | } | |
7431 | } | |
cf694132 RD |
7432 | { |
7433 | wxPy_BEGIN_ALLOW_THREADS; | |
7434 | wxTreeCtrl_ScrollTo(_arg0,*_arg1); | |
7435 | ||
7436 | wxPy_END_ALLOW_THREADS; | |
7437 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7438 | _resultobj = Py_None; |
7439 | return _resultobj; | |
7440 | } | |
7441 | ||
7442 | #define wxTreeCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0)) | |
efc5f224 | 7443 | static PyObject *_wrap_wxTreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a RD |
7444 | PyObject * _resultobj; |
7445 | wxTextCtrl * _result; | |
f6bcfd97 | 7446 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7447 | wxTreeItemId * _arg1; |
1d99702e RD |
7448 | PyObject * _argo0 = 0; |
7449 | PyObject * _argo1 = 0; | |
efc5f224 | 7450 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7451 | char _ptemp[128]; |
7452 | ||
7453 | self = self; | |
efc5f224 | 7454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EditLabel",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7455 | return NULL; |
1d99702e RD |
7456 | if (_argo0) { |
7457 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7458 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7459 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EditLabel. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7460 | return NULL; |
7461 | } | |
7462 | } | |
1d99702e RD |
7463 | if (_argo1) { |
7464 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7465 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EditLabel. Expected _wxTreeItemId_p."); |
7467 | return NULL; | |
7468 | } | |
7469 | } | |
cf694132 RD |
7470 | { |
7471 | wxPy_BEGIN_ALLOW_THREADS; | |
7472 | _result = (wxTextCtrl *)wxTreeCtrl_EditLabel(_arg0,*_arg1); | |
7473 | ||
7474 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
7475 | } if (_result) { |
7476 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p"); | |
7477 | _resultobj = Py_BuildValue("s",_ptemp); | |
7478 | } else { | |
7479 | Py_INCREF(Py_None); | |
7480 | _resultobj = Py_None; | |
7481 | } | |
d5c9047a RD |
7482 | return _resultobj; |
7483 | } | |
7484 | ||
7485 | #define wxTreeCtrl_GetEditControl(_swigobj) (_swigobj->GetEditControl()) | |
efc5f224 | 7486 | static PyObject *_wrap_wxTreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a RD |
7487 | PyObject * _resultobj; |
7488 | wxTextCtrl * _result; | |
f6bcfd97 | 7489 | wxPyTreeCtrl * _arg0; |
1d99702e | 7490 | PyObject * _argo0 = 0; |
efc5f224 | 7491 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
7492 | char _ptemp[128]; |
7493 | ||
7494 | self = self; | |
efc5f224 | 7495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetEditControl",_kwnames,&_argo0)) |
d5c9047a | 7496 | return NULL; |
1d99702e RD |
7497 | if (_argo0) { |
7498 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7499 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7500 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetEditControl. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7501 | return NULL; |
7502 | } | |
7503 | } | |
cf694132 RD |
7504 | { |
7505 | wxPy_BEGIN_ALLOW_THREADS; | |
7506 | _result = (wxTextCtrl *)wxTreeCtrl_GetEditControl(_arg0); | |
7507 | ||
7508 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
7509 | } if (_result) { |
7510 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p"); | |
7511 | _resultobj = Py_BuildValue("s",_ptemp); | |
7512 | } else { | |
7513 | Py_INCREF(Py_None); | |
7514 | _resultobj = Py_None; | |
7515 | } | |
d5c9047a RD |
7516 | return _resultobj; |
7517 | } | |
7518 | ||
7519 | #define wxTreeCtrl_EndEditLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->EndEditLabel(_swigarg0,_swigarg1)) | |
efc5f224 | 7520 | static PyObject *_wrap_wxTreeCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7521 | PyObject * _resultobj; |
f6bcfd97 | 7522 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7523 | wxTreeItemId * _arg1; |
b1462dfa | 7524 | int _arg2 = (int ) FALSE; |
1d99702e RD |
7525 | PyObject * _argo0 = 0; |
7526 | PyObject * _argo1 = 0; | |
efc5f224 | 7527 | char *_kwnames[] = { "self","item","discardChanges", NULL }; |
d5c9047a RD |
7528 | |
7529 | self = self; | |
b1462dfa | 7530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_EndEditLabel",_kwnames,&_argo0,&_argo1,&_arg2)) |
d5c9047a | 7531 | return NULL; |
1d99702e RD |
7532 | if (_argo0) { |
7533 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7534 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7535 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EndEditLabel. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7536 | return NULL; |
7537 | } | |
7538 | } | |
1d99702e RD |
7539 | if (_argo1) { |
7540 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7541 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7542 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EndEditLabel. Expected _wxTreeItemId_p."); |
7543 | return NULL; | |
7544 | } | |
7545 | } | |
cf694132 RD |
7546 | { |
7547 | wxPy_BEGIN_ALLOW_THREADS; | |
7548 | wxTreeCtrl_EndEditLabel(_arg0,*_arg1,_arg2); | |
7549 | ||
7550 | wxPy_END_ALLOW_THREADS; | |
7551 | } Py_INCREF(Py_None); | |
d5c9047a | 7552 | _resultobj = Py_None; |
8ab979d7 RD |
7553 | return _resultobj; |
7554 | } | |
7555 | ||
d426c97e RD |
7556 | #define wxTreeCtrl_SortChildren(_swigobj,_swigarg0) (_swigobj->SortChildren(_swigarg0)) |
7557 | static PyObject *_wrap_wxTreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7558 | PyObject * _resultobj; | |
f6bcfd97 | 7559 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
7560 | wxTreeItemId * _arg1; |
7561 | PyObject * _argo0 = 0; | |
7562 | PyObject * _argo1 = 0; | |
7563 | char *_kwnames[] = { "self","item", NULL }; | |
7564 | ||
7565 | self = self; | |
7566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SortChildren",_kwnames,&_argo0,&_argo1)) | |
7567 | return NULL; | |
7568 | if (_argo0) { | |
7569 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7570 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7571 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SortChildren. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
7572 | return NULL; |
7573 | } | |
7574 | } | |
7575 | if (_argo1) { | |
7576 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7577 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7578 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SortChildren. Expected _wxTreeItemId_p."); | |
7579 | return NULL; | |
7580 | } | |
7581 | } | |
7582 | { | |
7583 | wxPy_BEGIN_ALLOW_THREADS; | |
7584 | wxTreeCtrl_SortChildren(_arg0,*_arg1); | |
7585 | ||
7586 | wxPy_END_ALLOW_THREADS; | |
7587 | } Py_INCREF(Py_None); | |
7588 | _resultobj = Py_None; | |
7589 | return _resultobj; | |
7590 | } | |
7591 | ||
b8b8dda7 | 7592 | #define wxTreeCtrl_SetItemBold(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBold(_swigarg0,_swigarg1)) |
efc5f224 | 7593 | static PyObject *_wrap_wxTreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 | 7594 | PyObject * _resultobj; |
f6bcfd97 | 7595 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 7596 | wxTreeItemId * _arg1; |
b1462dfa | 7597 | int _arg2 = (int ) TRUE; |
1d99702e RD |
7598 | PyObject * _argo0 = 0; |
7599 | PyObject * _argo1 = 0; | |
efc5f224 | 7600 | char *_kwnames[] = { "self","item","bold", NULL }; |
b8b8dda7 RD |
7601 | |
7602 | self = self; | |
b1462dfa | 7603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemBold",_kwnames,&_argo0,&_argo1,&_arg2)) |
b8b8dda7 | 7604 | return NULL; |
1d99702e RD |
7605 | if (_argo0) { |
7606 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7607 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7608 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBold. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
7609 | return NULL; |
7610 | } | |
7611 | } | |
1d99702e RD |
7612 | if (_argo1) { |
7613 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7614 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
b8b8dda7 RD |
7615 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBold. Expected _wxTreeItemId_p."); |
7616 | return NULL; | |
7617 | } | |
7618 | } | |
cf694132 RD |
7619 | { |
7620 | wxPy_BEGIN_ALLOW_THREADS; | |
7621 | wxTreeCtrl_SetItemBold(_arg0,*_arg1,_arg2); | |
7622 | ||
7623 | wxPy_END_ALLOW_THREADS; | |
7624 | } Py_INCREF(Py_None); | |
b8b8dda7 RD |
7625 | _resultobj = Py_None; |
7626 | return _resultobj; | |
7627 | } | |
7628 | ||
7629 | #define wxTreeCtrl_IsBold(_swigobj,_swigarg0) (_swigobj->IsBold(_swigarg0)) | |
efc5f224 | 7630 | static PyObject *_wrap_wxTreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
7631 | PyObject * _resultobj; |
7632 | bool _result; | |
f6bcfd97 | 7633 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 7634 | wxTreeItemId * _arg1; |
1d99702e RD |
7635 | PyObject * _argo0 = 0; |
7636 | PyObject * _argo1 = 0; | |
efc5f224 | 7637 | char *_kwnames[] = { "self","item", NULL }; |
b8b8dda7 RD |
7638 | |
7639 | self = self; | |
efc5f224 | 7640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsBold",_kwnames,&_argo0,&_argo1)) |
b8b8dda7 | 7641 | return NULL; |
1d99702e RD |
7642 | if (_argo0) { |
7643 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7644 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7645 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsBold. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
7646 | return NULL; |
7647 | } | |
7648 | } | |
1d99702e RD |
7649 | if (_argo1) { |
7650 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7651 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
b8b8dda7 RD |
7652 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsBold. Expected _wxTreeItemId_p."); |
7653 | return NULL; | |
7654 | } | |
7655 | } | |
cf694132 RD |
7656 | { |
7657 | wxPy_BEGIN_ALLOW_THREADS; | |
7658 | _result = (bool )wxTreeCtrl_IsBold(_arg0,*_arg1); | |
7659 | ||
7660 | wxPy_END_ALLOW_THREADS; | |
7661 | } _resultobj = Py_BuildValue("i",_result); | |
b8b8dda7 RD |
7662 | return _resultobj; |
7663 | } | |
7664 | ||
164b735b | 7665 | #define wxTreeCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) |
efc5f224 | 7666 | static PyObject *_wrap_wxTreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
7667 | PyObject * _resultobj; |
7668 | wxTreeItemId * _result; | |
f6bcfd97 | 7669 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 7670 | wxPoint * _arg1; |
164b735b RD |
7671 | int * _arg2; |
7672 | int temp; | |
1d99702e | 7673 | PyObject * _argo0 = 0; |
164b735b | 7674 | wxPoint temp0; |
2f90df85 | 7675 | PyObject * _obj1 = 0; |
efc5f224 | 7676 | char *_kwnames[] = { "self","point", NULL }; |
b8b8dda7 RD |
7677 | char _ptemp[128]; |
7678 | ||
7679 | self = self; | |
164b735b RD |
7680 | { |
7681 | _arg2 = &temp; | |
7682 | } | |
2f90df85 | 7683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_HitTest",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 7684 | return NULL; |
1d99702e RD |
7685 | if (_argo0) { |
7686 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7687 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7688 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_HitTest. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
7689 | return NULL; |
7690 | } | |
7691 | } | |
2f90df85 | 7692 | { |
164b735b | 7693 | _arg1 = &temp0; |
2f90df85 | 7694 | if (! wxPoint_helper(_obj1, &_arg1)) |
b8b8dda7 | 7695 | return NULL; |
2f90df85 | 7696 | } |
cf694132 RD |
7697 | { |
7698 | wxPy_BEGIN_ALLOW_THREADS; | |
164b735b | 7699 | _result = new wxTreeItemId (wxTreeCtrl_HitTest(_arg0,*_arg1,*_arg2)); |
cf694132 RD |
7700 | |
7701 | wxPy_END_ALLOW_THREADS; | |
7702 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
b8b8dda7 | 7703 | _resultobj = Py_BuildValue("s",_ptemp); |
164b735b RD |
7704 | { |
7705 | PyObject *o; | |
7706 | o = PyInt_FromLong((long) (*_arg2)); | |
7707 | _resultobj = t_output_helper(_resultobj, o); | |
7708 | } | |
b8b8dda7 RD |
7709 | return _resultobj; |
7710 | } | |
7711 | ||
b7e72427 RD |
7712 | #define wxTreeCtrl_SetItemTextColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemTextColour(_swigarg0,_swigarg1)) |
7713 | static PyObject *_wrap_wxTreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7714 | PyObject * _resultobj; | |
f6bcfd97 | 7715 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
7716 | wxTreeItemId * _arg1; |
7717 | wxColour * _arg2; | |
7718 | PyObject * _argo0 = 0; | |
7719 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
7720 | wxColour temp; |
7721 | PyObject * _obj2 = 0; | |
b7e72427 RD |
7722 | char *_kwnames[] = { "self","item","col", NULL }; |
7723 | ||
7724 | self = self; | |
f6bcfd97 | 7725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemTextColour",_kwnames,&_argo0,&_argo1,&_obj2)) |
b7e72427 RD |
7726 | return NULL; |
7727 | if (_argo0) { | |
7728 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7729 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7730 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemTextColour. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
7731 | return NULL; |
7732 | } | |
7733 | } | |
7734 | if (_argo1) { | |
7735 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7736 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7737 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemTextColour. Expected _wxTreeItemId_p."); | |
7738 | return NULL; | |
7739 | } | |
7740 | } | |
f6bcfd97 BP |
7741 | { |
7742 | _arg2 = &temp; | |
7743 | if (! wxColour_helper(_obj2, &_arg2)) | |
b7e72427 | 7744 | return NULL; |
f6bcfd97 | 7745 | } |
b7e72427 RD |
7746 | { |
7747 | wxPy_BEGIN_ALLOW_THREADS; | |
7748 | wxTreeCtrl_SetItemTextColour(_arg0,*_arg1,*_arg2); | |
7749 | ||
7750 | wxPy_END_ALLOW_THREADS; | |
7751 | } Py_INCREF(Py_None); | |
7752 | _resultobj = Py_None; | |
7753 | return _resultobj; | |
7754 | } | |
7755 | ||
7756 | #define wxTreeCtrl_SetItemBackgroundColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBackgroundColour(_swigarg0,_swigarg1)) | |
7757 | static PyObject *_wrap_wxTreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7758 | PyObject * _resultobj; | |
f6bcfd97 | 7759 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
7760 | wxTreeItemId * _arg1; |
7761 | wxColour * _arg2; | |
7762 | PyObject * _argo0 = 0; | |
7763 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
7764 | wxColour temp; |
7765 | PyObject * _obj2 = 0; | |
b7e72427 RD |
7766 | char *_kwnames[] = { "self","item","col", NULL }; |
7767 | ||
7768 | self = self; | |
f6bcfd97 | 7769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemBackgroundColour",_kwnames,&_argo0,&_argo1,&_obj2)) |
b7e72427 RD |
7770 | return NULL; |
7771 | if (_argo0) { | |
7772 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7773 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7774 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
7775 | return NULL; |
7776 | } | |
7777 | } | |
7778 | if (_argo1) { | |
7779 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7780 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7781 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxTreeItemId_p."); | |
7782 | return NULL; | |
7783 | } | |
7784 | } | |
f6bcfd97 BP |
7785 | { |
7786 | _arg2 = &temp; | |
7787 | if (! wxColour_helper(_obj2, &_arg2)) | |
b7e72427 | 7788 | return NULL; |
f6bcfd97 | 7789 | } |
b7e72427 RD |
7790 | { |
7791 | wxPy_BEGIN_ALLOW_THREADS; | |
7792 | wxTreeCtrl_SetItemBackgroundColour(_arg0,*_arg1,*_arg2); | |
7793 | ||
7794 | wxPy_END_ALLOW_THREADS; | |
7795 | } Py_INCREF(Py_None); | |
7796 | _resultobj = Py_None; | |
7797 | return _resultobj; | |
7798 | } | |
7799 | ||
7800 | #define wxTreeCtrl_SetItemFont(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemFont(_swigarg0,_swigarg1)) | |
7801 | static PyObject *_wrap_wxTreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7802 | PyObject * _resultobj; | |
f6bcfd97 | 7803 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
7804 | wxTreeItemId * _arg1; |
7805 | wxFont * _arg2; | |
7806 | PyObject * _argo0 = 0; | |
7807 | PyObject * _argo1 = 0; | |
7808 | PyObject * _argo2 = 0; | |
7809 | char *_kwnames[] = { "self","item","font", NULL }; | |
7810 | ||
7811 | self = self; | |
7812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemFont",_kwnames,&_argo0,&_argo1,&_argo2)) | |
7813 | return NULL; | |
7814 | if (_argo0) { | |
7815 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7816 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7817 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemFont. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
7818 | return NULL; |
7819 | } | |
7820 | } | |
7821 | if (_argo1) { | |
7822 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7823 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7824 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemFont. Expected _wxTreeItemId_p."); | |
7825 | return NULL; | |
7826 | } | |
7827 | } | |
7828 | if (_argo2) { | |
7829 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7830 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
7831 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemFont. Expected _wxFont_p."); | |
7832 | return NULL; | |
7833 | } | |
7834 | } | |
7835 | { | |
7836 | wxPy_BEGIN_ALLOW_THREADS; | |
7837 | wxTreeCtrl_SetItemFont(_arg0,*_arg1,*_arg2); | |
7838 | ||
7839 | wxPy_END_ALLOW_THREADS; | |
7840 | } Py_INCREF(Py_None); | |
7841 | _resultobj = Py_None; | |
7842 | return _resultobj; | |
7843 | } | |
7844 | ||
b1462dfa RD |
7845 | #define wxTreeCtrl_SetItemDropHighlight(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemDropHighlight(_swigarg0,_swigarg1)) |
7846 | static PyObject *_wrap_wxTreeCtrl_SetItemDropHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7847 | PyObject * _resultobj; | |
f6bcfd97 | 7848 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
7849 | wxTreeItemId * _arg1; |
7850 | int _arg2 = (int ) TRUE; | |
7851 | PyObject * _argo0 = 0; | |
7852 | PyObject * _argo1 = 0; | |
7853 | char *_kwnames[] = { "self","item","highlight", NULL }; | |
7854 | ||
7855 | self = self; | |
7856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemDropHighlight",_kwnames,&_argo0,&_argo1,&_arg2)) | |
7857 | return NULL; | |
7858 | if (_argo0) { | |
7859 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7860 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7861 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemDropHighlight. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
7862 | return NULL; |
7863 | } | |
7864 | } | |
7865 | if (_argo1) { | |
7866 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7867 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7868 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemDropHighlight. Expected _wxTreeItemId_p."); | |
7869 | return NULL; | |
7870 | } | |
7871 | } | |
7872 | { | |
7873 | wxPy_BEGIN_ALLOW_THREADS; | |
7874 | wxTreeCtrl_SetItemDropHighlight(_arg0,*_arg1,_arg2); | |
7875 | ||
7876 | wxPy_END_ALLOW_THREADS; | |
7877 | } Py_INCREF(Py_None); | |
7878 | _resultobj = Py_None; | |
7879 | return _resultobj; | |
7880 | } | |
7881 | ||
f6bcfd97 | 7882 | static PyObject * wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,const wxTreeItemId & item,int textOnly) { |
d426c97e | 7883 | wxRect rect; |
164b735b RD |
7884 | if (self->GetBoundingRect(item, rect, textOnly)) { |
7885 | bool doSave = wxPyRestoreThread(); | |
7886 | wxRect* r = new wxRect(rect); | |
7887 | PyObject* val = wxPyConstructObject((void*)r, "wxRect"); | |
7888 | wxPySaveThread(doSave); | |
7889 | return val; | |
7890 | } | |
d426c97e RD |
7891 | else { |
7892 | Py_INCREF(Py_None); | |
7893 | return Py_None; | |
7894 | } | |
7895 | } | |
7896 | static PyObject *_wrap_wxTreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7897 | PyObject * _resultobj; | |
7898 | PyObject * _result; | |
f6bcfd97 | 7899 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
7900 | wxTreeItemId * _arg1; |
7901 | int _arg2 = (int ) FALSE; | |
7902 | PyObject * _argo0 = 0; | |
7903 | PyObject * _argo1 = 0; | |
7904 | char *_kwnames[] = { "self","item","textOnly", NULL }; | |
7905 | ||
7906 | self = self; | |
7907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetBoundingRect",_kwnames,&_argo0,&_argo1,&_arg2)) | |
7908 | return NULL; | |
7909 | if (_argo0) { | |
7910 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7911 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7912 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetBoundingRect. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
7913 | return NULL; |
7914 | } | |
7915 | } | |
7916 | if (_argo1) { | |
7917 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7918 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7919 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetBoundingRect. Expected _wxTreeItemId_p."); | |
7920 | return NULL; | |
7921 | } | |
7922 | } | |
7923 | { | |
7924 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 7925 | _result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(_arg0,*_arg1,_arg2); |
d426c97e RD |
7926 | |
7927 | wxPy_END_ALLOW_THREADS; | |
7928 | }{ | |
7929 | _resultobj = _result; | |
7930 | } | |
7931 | return _resultobj; | |
7932 | } | |
7933 | ||
8ab979d7 | 7934 | static PyMethodDef controls2cMethods[] = { |
d426c97e | 7935 | { "wxTreeCtrl_GetBoundingRect", (PyCFunction) _wrap_wxTreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 7936 | { "wxTreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_wxTreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 RD |
7937 | { "wxTreeCtrl_SetItemFont", (PyCFunction) _wrap_wxTreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, |
7938 | { "wxTreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
7939 | { "wxTreeCtrl_SetItemTextColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
7940 | { "wxTreeCtrl_HitTest", (PyCFunction) _wrap_wxTreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
7941 | { "wxTreeCtrl_IsBold", (PyCFunction) _wrap_wxTreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
7942 | { "wxTreeCtrl_SetItemBold", (PyCFunction) _wrap_wxTreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 7943 | { "wxTreeCtrl_SortChildren", (PyCFunction) _wrap_wxTreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
7944 | { "wxTreeCtrl_EndEditLabel", (PyCFunction) _wrap_wxTreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, |
7945 | { "wxTreeCtrl_GetEditControl", (PyCFunction) _wrap_wxTreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
7946 | { "wxTreeCtrl_EditLabel", (PyCFunction) _wrap_wxTreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
7947 | { "wxTreeCtrl_ScrollTo", (PyCFunction) _wrap_wxTreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
7948 | { "wxTreeCtrl_EnsureVisible", (PyCFunction) _wrap_wxTreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
7949 | { "wxTreeCtrl_SelectItem", (PyCFunction) _wrap_wxTreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
7950 | { "wxTreeCtrl_UnselectAll", (PyCFunction) _wrap_wxTreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, | |
7951 | { "wxTreeCtrl_Unselect", (PyCFunction) _wrap_wxTreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
7952 | { "wxTreeCtrl_Toggle", (PyCFunction) _wrap_wxTreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
7953 | { "wxTreeCtrl_CollapseAndReset", (PyCFunction) _wrap_wxTreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
7954 | { "wxTreeCtrl_Collapse", (PyCFunction) _wrap_wxTreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
7955 | { "wxTreeCtrl_Expand", (PyCFunction) _wrap_wxTreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
7956 | { "wxTreeCtrl_DeleteAllItems", (PyCFunction) _wrap_wxTreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
7957 | { "wxTreeCtrl_DeleteChildren", (PyCFunction) _wrap_wxTreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
7958 | { "wxTreeCtrl_Delete", (PyCFunction) _wrap_wxTreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
7959 | { "wxTreeCtrl_AppendItem", (PyCFunction) _wrap_wxTreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 7960 | { "wxTreeCtrl_InsertItemBefore", (PyCFunction) _wrap_wxTreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
7961 | { "wxTreeCtrl_InsertItem", (PyCFunction) _wrap_wxTreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, |
7962 | { "wxTreeCtrl_PrependItem", (PyCFunction) _wrap_wxTreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
7963 | { "wxTreeCtrl_AddRoot", (PyCFunction) _wrap_wxTreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 7964 | { "wxTreeCtrl_GetLastChild", (PyCFunction) _wrap_wxTreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
7965 | { "wxTreeCtrl_GetPrevVisible", (PyCFunction) _wrap_wxTreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, |
7966 | { "wxTreeCtrl_GetNextVisible", (PyCFunction) _wrap_wxTreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
7967 | { "wxTreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_wxTreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
7968 | { "wxTreeCtrl_GetPrevSibling", (PyCFunction) _wrap_wxTreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
7969 | { "wxTreeCtrl_GetNextSibling", (PyCFunction) _wrap_wxTreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
7970 | { "wxTreeCtrl_GetNextChild", (PyCFunction) _wrap_wxTreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
7971 | { "wxTreeCtrl_GetFirstChild", (PyCFunction) _wrap_wxTreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
7972 | { "wxTreeCtrl_GetChildrenCount", (PyCFunction) _wrap_wxTreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 7973 | { "wxTreeCtrl_GetSelections", (PyCFunction) _wrap_wxTreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 7974 | { "wxTreeCtrl_GetItemParent", (PyCFunction) _wrap_wxTreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
7975 | { "wxTreeCtrl_GetSelection", (PyCFunction) _wrap_wxTreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, |
7976 | { "wxTreeCtrl_GetRootItem", (PyCFunction) _wrap_wxTreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
7977 | { "wxTreeCtrl_IsSelected", (PyCFunction) _wrap_wxTreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
7978 | { "wxTreeCtrl_IsExpanded", (PyCFunction) _wrap_wxTreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
7979 | { "wxTreeCtrl_ItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
7980 | { "wxTreeCtrl_IsVisible", (PyCFunction) _wrap_wxTreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
7981 | { "wxTreeCtrl_SetPyData", (PyCFunction) _wrap_wxTreeCtrl_SetPyData, METH_VARARGS | METH_KEYWORDS }, | |
7982 | { "wxTreeCtrl_GetPyData", (PyCFunction) _wrap_wxTreeCtrl_GetPyData, METH_VARARGS | METH_KEYWORDS }, | |
7983 | { "wxTreeCtrl_SetItemData", (PyCFunction) _wrap_wxTreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
7984 | { "wxTreeCtrl_GetItemData", (PyCFunction) _wrap_wxTreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
7985 | { "wxTreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
7986 | { "wxTreeCtrl_SetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
7987 | { "wxTreeCtrl_SetItemImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
7988 | { "wxTreeCtrl_SetItemText", (PyCFunction) _wrap_wxTreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
7989 | { "wxTreeCtrl_GetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
7990 | { "wxTreeCtrl_GetItemImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
7991 | { "wxTreeCtrl_GetItemText", (PyCFunction) _wrap_wxTreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
7992 | { "wxTreeCtrl_SetSpacing", (PyCFunction) _wrap_wxTreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, |
7993 | { "wxTreeCtrl_GetSpacing", (PyCFunction) _wrap_wxTreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
7994 | { "wxTreeCtrl_SetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, |
7995 | { "wxTreeCtrl_SetImageList", (PyCFunction) _wrap_wxTreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
7996 | { "wxTreeCtrl_GetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
7997 | { "wxTreeCtrl_GetImageList", (PyCFunction) _wrap_wxTreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
7998 | { "wxTreeCtrl_SetIndent", (PyCFunction) _wrap_wxTreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
7999 | { "wxTreeCtrl_GetIndent", (PyCFunction) _wrap_wxTreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
8000 | { "wxTreeCtrl_GetCount", (PyCFunction) _wrap_wxTreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 8001 | { "wxTreeCtrl__setSelf", (PyCFunction) _wrap_wxTreeCtrl__setSelf, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8002 | { "new_wxTreeCtrl", (PyCFunction) _wrap_new_wxTreeCtrl, METH_VARARGS | METH_KEYWORDS }, |
8003 | { "wxTreeEvent_GetLabel", (PyCFunction) _wrap_wxTreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
8004 | { "wxTreeEvent_GetCode", (PyCFunction) _wrap_wxTreeEvent_GetCode, METH_VARARGS | METH_KEYWORDS }, | |
8005 | { "wxTreeEvent_GetPoint", (PyCFunction) _wrap_wxTreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
8006 | { "wxTreeEvent_GetOldItem", (PyCFunction) _wrap_wxTreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
8007 | { "wxTreeEvent_GetItem", (PyCFunction) _wrap_wxTreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
8008 | { "wxTreeItemData_SetId", (PyCFunction) _wrap_wxTreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, | |
8009 | { "wxTreeItemData_GetId", (PyCFunction) _wrap_wxTreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
8010 | { "wxTreeItemData_SetData", (PyCFunction) _wrap_wxTreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
8011 | { "wxTreeItemData_GetData", (PyCFunction) _wrap_wxTreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
8012 | { "new_wxTreeItemData", (PyCFunction) _wrap_new_wxTreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 8013 | { "wxTreeItemId___cmp__", (PyCFunction) _wrap_wxTreeItemId___cmp__, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8014 | { "wxTreeItemId_IsOk", (PyCFunction) _wrap_wxTreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, |
8015 | { "delete_wxTreeItemId", (PyCFunction) _wrap_delete_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
8016 | { "new_wxTreeItemId", (PyCFunction) _wrap_new_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
dcd38683 | 8017 | { "wxListCtrl_SortItems", (PyCFunction) _wrap_wxListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8018 | { "wxListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_wxListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, |
8019 | { "wxListCtrl_SetSingleStyle", (PyCFunction) _wrap_wxListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
8020 | { "wxListCtrl_SetItemText", (PyCFunction) _wrap_wxListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
8021 | { "wxListCtrl_SetItemState", (PyCFunction) _wrap_wxListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
8022 | { "wxListCtrl_SetItemPosition", (PyCFunction) _wrap_wxListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
8023 | { "wxListCtrl_SetItemImage", (PyCFunction) _wrap_wxListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
8024 | { "wxListCtrl_SetItemData", (PyCFunction) _wrap_wxListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
8025 | { "wxListCtrl_SetStringItem", (PyCFunction) _wrap_wxListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
8026 | { "wxListCtrl_SetItem", (PyCFunction) _wrap_wxListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
8027 | { "wxListCtrl_SetImageList", (PyCFunction) _wrap_wxListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
8028 | { "wxListCtrl_SetColumnWidth", (PyCFunction) _wrap_wxListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
8029 | { "wxListCtrl_SetColumn", (PyCFunction) _wrap_wxListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
8030 | { "wxListCtrl_SetBackgroundColour", (PyCFunction) _wrap_wxListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8031 | { "wxListCtrl_ScrollList", (PyCFunction) _wrap_wxListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, | |
8032 | { "wxListCtrl_InsertImageStringItem", (PyCFunction) _wrap_wxListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, | |
8033 | { "wxListCtrl_InsertImageItem", (PyCFunction) _wrap_wxListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
8034 | { "wxListCtrl_InsertStringItem", (PyCFunction) _wrap_wxListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
8035 | { "wxListCtrl_InsertItem", (PyCFunction) _wrap_wxListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
8036 | { "wxListCtrl_InsertColumn", (PyCFunction) _wrap_wxListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
c368d904 | 8037 | { "wxListCtrl_InsertColumnInfo", (PyCFunction) _wrap_wxListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8038 | { "wxListCtrl_HitTest", (PyCFunction) _wrap_wxListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
8039 | { "wxListCtrl_GetTopItem", (PyCFunction) _wrap_wxListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
8040 | { "wxListCtrl_SetTextColour", (PyCFunction) _wrap_wxListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8041 | { "wxListCtrl_GetTextColour", (PyCFunction) _wrap_wxListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8042 | { "wxListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_wxListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
8043 | { "wxListCtrl_GetNextItem", (PyCFunction) _wrap_wxListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
8044 | { "wxListCtrl_GetItemText", (PyCFunction) _wrap_wxListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
8045 | { "wxListCtrl_GetItemSpacing", (PyCFunction) _wrap_wxListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
8046 | { "wxListCtrl_GetItemCount", (PyCFunction) _wrap_wxListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
8047 | { "wxListCtrl_GetItemState", (PyCFunction) _wrap_wxListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
8048 | { "wxListCtrl_GetItemRect", (PyCFunction) _wrap_wxListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
8049 | { "wxListCtrl_GetItemPosition", (PyCFunction) _wrap_wxListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
8050 | { "wxListCtrl_GetItem", (PyCFunction) _wrap_wxListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
8051 | { "wxListCtrl_GetItemData", (PyCFunction) _wrap_wxListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
8052 | { "wxListCtrl_GetImageList", (PyCFunction) _wrap_wxListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
8053 | { "wxListCtrl_GetCountPerPage", (PyCFunction) _wrap_wxListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
8054 | { "wxListCtrl_GetColumnWidth", (PyCFunction) _wrap_wxListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
8055 | { "wxListCtrl_GetColumn", (PyCFunction) _wrap_wxListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
8056 | { "wxListCtrl_FindItemAtPos", (PyCFunction) _wrap_wxListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, | |
8057 | { "wxListCtrl_FindItemData", (PyCFunction) _wrap_wxListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
8058 | { "wxListCtrl_FindItem", (PyCFunction) _wrap_wxListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
8059 | { "wxListCtrl_EnsureVisible", (PyCFunction) _wrap_wxListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
8060 | { "wxListCtrl_GetEditControl", (PyCFunction) _wrap_wxListCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
8061 | { "wxListCtrl_EndEditLabel", (PyCFunction) _wrap_wxListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, | |
8062 | { "wxListCtrl_EditLabel", (PyCFunction) _wrap_wxListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
8063 | { "wxListCtrl_ClearAll", (PyCFunction) _wrap_wxListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, | |
8064 | { "wxListCtrl_DeleteAllColumns", (PyCFunction) _wrap_wxListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
8065 | { "wxListCtrl_DeleteColumn", (PyCFunction) _wrap_wxListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
8066 | { "wxListCtrl_DeleteAllItems", (PyCFunction) _wrap_wxListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
8067 | { "wxListCtrl_DeleteItem", (PyCFunction) _wrap_wxListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
8068 | { "wxListCtrl_Arrange", (PyCFunction) _wrap_wxListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
8069 | { "new_wxListCtrl", (PyCFunction) _wrap_new_wxListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
8070 | { "wxListEvent_GetItem", (PyCFunction) _wrap_wxListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, |
8071 | { "wxListEvent_GetMask", (PyCFunction) _wrap_wxListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
8072 | { "wxListEvent_GetData", (PyCFunction) _wrap_wxListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
8073 | { "wxListEvent_GetImage", (PyCFunction) _wrap_wxListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
8074 | { "wxListEvent_GetText", (PyCFunction) _wrap_wxListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
8075 | { "wxListEvent_GetLabel", (PyCFunction) _wrap_wxListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
8076 | { "wxListEvent_GetPoint", (PyCFunction) _wrap_wxListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
8077 | { "wxListEvent_Cancelled", (PyCFunction) _wrap_wxListEvent_Cancelled, METH_VARARGS | METH_KEYWORDS }, | |
8078 | { "wxListEvent_GetColumn", (PyCFunction) _wrap_wxListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
8079 | { "wxListEvent_GetOldItem", (PyCFunction) _wrap_wxListEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
8080 | { "wxListEvent_GetOldIndex", (PyCFunction) _wrap_wxListEvent_GetOldIndex, METH_VARARGS | METH_KEYWORDS }, | |
8081 | { "wxListEvent_GetIndex", (PyCFunction) _wrap_wxListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
8082 | { "wxListEvent_GetCode", (PyCFunction) _wrap_wxListEvent_GetCode, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
8083 | { "wxListEvent_m_item_get", (PyCFunction) _wrap_wxListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, |
8084 | { "wxListEvent_m_item_set", (PyCFunction) _wrap_wxListEvent_m_item_set, METH_VARARGS | METH_KEYWORDS }, | |
8085 | { "wxListEvent_m_pointDrag_get", (PyCFunction) _wrap_wxListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, | |
8086 | { "wxListEvent_m_pointDrag_set", (PyCFunction) _wrap_wxListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS }, | |
8087 | { "wxListEvent_m_cancelled_get", (PyCFunction) _wrap_wxListEvent_m_cancelled_get, METH_VARARGS | METH_KEYWORDS }, | |
8088 | { "wxListEvent_m_cancelled_set", (PyCFunction) _wrap_wxListEvent_m_cancelled_set, METH_VARARGS | METH_KEYWORDS }, | |
8089 | { "wxListEvent_m_col_get", (PyCFunction) _wrap_wxListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
8090 | { "wxListEvent_m_col_set", (PyCFunction) _wrap_wxListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
8091 | { "wxListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
8092 | { "wxListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
8093 | { "wxListEvent_m_itemIndex_get", (PyCFunction) _wrap_wxListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
8094 | { "wxListEvent_m_itemIndex_set", (PyCFunction) _wrap_wxListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
8095 | { "wxListEvent_m_code_get", (PyCFunction) _wrap_wxListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, | |
8096 | { "wxListEvent_m_code_set", (PyCFunction) _wrap_wxListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
8097 | { "wxListItem_m_width_get", (PyCFunction) _wrap_wxListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, |
8098 | { "wxListItem_m_width_set", (PyCFunction) _wrap_wxListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
8099 | { "wxListItem_m_format_get", (PyCFunction) _wrap_wxListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
8100 | { "wxListItem_m_format_set", (PyCFunction) _wrap_wxListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
8101 | { "wxListItem_m_data_get", (PyCFunction) _wrap_wxListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
8102 | { "wxListItem_m_data_set", (PyCFunction) _wrap_wxListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
8103 | { "wxListItem_m_image_get", (PyCFunction) _wrap_wxListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
8104 | { "wxListItem_m_image_set", (PyCFunction) _wrap_wxListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
8105 | { "wxListItem_m_text_get", (PyCFunction) _wrap_wxListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
8106 | { "wxListItem_m_text_set", (PyCFunction) _wrap_wxListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
8107 | { "wxListItem_m_stateMask_get", (PyCFunction) _wrap_wxListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
8108 | { "wxListItem_m_stateMask_set", (PyCFunction) _wrap_wxListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
8109 | { "wxListItem_m_state_get", (PyCFunction) _wrap_wxListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
8110 | { "wxListItem_m_state_set", (PyCFunction) _wrap_wxListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
8111 | { "wxListItem_m_col_get", (PyCFunction) _wrap_wxListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
8112 | { "wxListItem_m_col_set", (PyCFunction) _wrap_wxListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
8113 | { "wxListItem_m_itemId_get", (PyCFunction) _wrap_wxListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
8114 | { "wxListItem_m_itemId_set", (PyCFunction) _wrap_wxListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
8115 | { "wxListItem_m_mask_get", (PyCFunction) _wrap_wxListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
8116 | { "wxListItem_m_mask_set", (PyCFunction) _wrap_wxListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
8117 | { "wxListItem_GetFont", (PyCFunction) _wrap_wxListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, |
8118 | { "wxListItem_GetBackgroundColour", (PyCFunction) _wrap_wxListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8119 | { "wxListItem_GetTextColour", (PyCFunction) _wrap_wxListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8120 | { "wxListItem_HasAttributes", (PyCFunction) _wrap_wxListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
8121 | { "wxListItem_GetAttributes", (PyCFunction) _wrap_wxListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
8122 | { "wxListItem_GetAlign", (PyCFunction) _wrap_wxListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
8123 | { "wxListItem_GetWidth", (PyCFunction) _wrap_wxListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
8124 | { "wxListItem_GetData", (PyCFunction) _wrap_wxListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
8125 | { "wxListItem_GetImage", (PyCFunction) _wrap_wxListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
8126 | { "wxListItem_GetText", (PyCFunction) _wrap_wxListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
8127 | { "wxListItem_GetState", (PyCFunction) _wrap_wxListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
8128 | { "wxListItem_GetColumn", (PyCFunction) _wrap_wxListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
8129 | { "wxListItem_GetId", (PyCFunction) _wrap_wxListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
8130 | { "wxListItem_GetMask", (PyCFunction) _wrap_wxListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
8131 | { "wxListItem_SetFont", (PyCFunction) _wrap_wxListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
8132 | { "wxListItem_SetBackgroundColour", (PyCFunction) _wrap_wxListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8133 | { "wxListItem_SetTextColour", (PyCFunction) _wrap_wxListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8134 | { "wxListItem_SetAlign", (PyCFunction) _wrap_wxListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
8135 | { "wxListItem_SetWidth", (PyCFunction) _wrap_wxListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
8136 | { "wxListItem_SetData", (PyCFunction) _wrap_wxListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
8137 | { "wxListItem_SetImage", (PyCFunction) _wrap_wxListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
8138 | { "wxListItem_SetText", (PyCFunction) _wrap_wxListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
8139 | { "wxListItem_SetStateMask", (PyCFunction) _wrap_wxListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
8140 | { "wxListItem_SetState", (PyCFunction) _wrap_wxListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
8141 | { "wxListItem_SetColumn", (PyCFunction) _wrap_wxListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
8142 | { "wxListItem_SetId", (PyCFunction) _wrap_wxListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
8143 | { "wxListItem_SetMask", (PyCFunction) _wrap_wxListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
8144 | { "wxListItem_ClearAttributes", (PyCFunction) _wrap_wxListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
8145 | { "wxListItem_Clear", (PyCFunction) _wrap_wxListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
8146 | { "delete_wxListItem", (PyCFunction) _wrap_delete_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
8147 | { "new_wxListItem", (PyCFunction) _wrap_new_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
8148 | { "wxListItemAttr_GetFont", (PyCFunction) _wrap_wxListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
8149 | { "wxListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8150 | { "wxListItemAttr_GetTextColour", (PyCFunction) _wrap_wxListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8151 | { "wxListItemAttr_HasFont", (PyCFunction) _wrap_wxListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
8152 | { "wxListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8153 | { "wxListItemAttr_HasTextColour", (PyCFunction) _wrap_wxListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8154 | { "wxListItemAttr_SetFont", (PyCFunction) _wrap_wxListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
8155 | { "wxListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8156 | { "wxListItemAttr_SetTextColour", (PyCFunction) _wrap_wxListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8157 | { "new_wxListItemAttr", (PyCFunction) _wrap_new_wxListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
8ab979d7 RD |
8158 | { NULL, NULL } |
8159 | }; | |
1d99702e RD |
8160 | #ifdef __cplusplus |
8161 | } | |
8162 | #endif | |
8163 | /* | |
8164 | * This table is used by the pointer type-checker | |
8165 | */ | |
8166 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
8167 | { "_wxAcceleratorTable","_class_wxAcceleratorTable",0}, | |
8168 | { "_wxEvent","_class_wxTreeEvent",SwigwxTreeEventTowxEvent}, | |
8169 | { "_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent}, | |
8170 | { "_wxEvent","_class_wxListEvent",SwigwxListEventTowxEvent}, | |
8171 | { "_wxEvent","_wxListEvent",SwigwxListEventTowxEvent}, | |
8172 | { "_wxEvent","_class_wxEvent",0}, | |
8173 | { "_class_wxActivateEvent","_wxActivateEvent",0}, | |
8174 | { "_signed_long","_long",0}, | |
8175 | { "_wxMenuEvent","_class_wxMenuEvent",0}, | |
65dd82cb | 8176 | { "_wxPyBitmapDataObject","_class_wxPyBitmapDataObject",0}, |
b1462dfa | 8177 | { "_wxBitmapDataObject","_class_wxBitmapDataObject",0}, |
2f90df85 | 8178 | { "_class_wxPyCommandEvent","_wxPyCommandEvent",0}, |
b1462dfa | 8179 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
8180 | { "_wxPrintQuality","_int",0}, |
8181 | { "_wxPrintQuality","_signed_int",0}, | |
8182 | { "_wxPrintQuality","_unsigned_int",0}, | |
8183 | { "_wxPrintQuality","_wxWindowID",0}, | |
8184 | { "_wxPrintQuality","_uint",0}, | |
8185 | { "_wxPrintQuality","_EBool",0}, | |
8186 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 8187 | { "_wxPrintQuality","_time_t",0}, |
b1462dfa | 8188 | { "_class_wxCustomDataObject","_wxCustomDataObject",0}, |
f6bcfd97 | 8189 | { "_wxSpinCtrl","_class_wxSpinCtrl",0}, |
1d99702e | 8190 | { "_class_wxRegionIterator","_wxRegionIterator",0}, |
b1462dfa | 8191 | { "_class_wxPyTextDropTarget","_wxPyTextDropTarget",0}, |
1d99702e RD |
8192 | { "_class_wxMenuBar","_wxMenuBar",0}, |
8193 | { "_class_wxPyTreeItemData","_wxPyTreeItemData",0}, | |
f6bcfd97 BP |
8194 | { "_class_wxEvtHandler","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, |
8195 | { "_class_wxEvtHandler","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, | |
1d99702e RD |
8196 | { "_class_wxEvtHandler","_class_wxListCtrl",SwigwxListCtrlTowxEvtHandler}, |
8197 | { "_class_wxEvtHandler","_wxListCtrl",SwigwxListCtrlTowxEvtHandler}, | |
8198 | { "_class_wxEvtHandler","_wxEvtHandler",0}, | |
8199 | { "_wxPaintEvent","_class_wxPaintEvent",0}, | |
8200 | { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0}, | |
8201 | { "_wxCursor","_class_wxCursor",0}, | |
8202 | { "_wxNotifyEvent","_class_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, | |
8203 | { "_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, | |
c368d904 RD |
8204 | { "_wxNotifyEvent","_class_wxListEvent",SwigwxListEventTowxNotifyEvent}, |
8205 | { "_wxNotifyEvent","_wxListEvent",SwigwxListEventTowxNotifyEvent}, | |
1d99702e | 8206 | { "_wxNotifyEvent","_class_wxNotifyEvent",0}, |
f6bcfd97 | 8207 | { "_wxPyTreeCtrl","_class_wxPyTreeCtrl",0}, |
1d99702e RD |
8208 | { "_wxMask","_class_wxMask",0}, |
8209 | { "_wxPen","_class_wxPen",0}, | |
8210 | { "_wxUpdateUIEvent","_class_wxUpdateUIEvent",0}, | |
8211 | { "_byte","_unsigned_char",0}, | |
b1462dfa | 8212 | { "_wxDataObject","_class_wxDataObject",0}, |
1d99702e | 8213 | { "_wxStaticBox","_class_wxStaticBox",0}, |
65dd82cb RD |
8214 | { "_wxPyDataObjectSimple","_class_wxPyDataObjectSimple",0}, |
8215 | { "_wxPyDropSource","_class_wxPyDropSource",0}, | |
1d99702e RD |
8216 | { "_wxChoice","_class_wxChoice",0}, |
8217 | { "_wxSlider","_class_wxSlider",0}, | |
1d99702e RD |
8218 | { "_long","_unsigned_long",0}, |
8219 | { "_long","_signed_long",0}, | |
8220 | { "_wxImageList","_class_wxImageList",0}, | |
b1462dfa | 8221 | { "_wxDataObjectSimple","_class_wxDataObjectSimple",0}, |
1d99702e RD |
8222 | { "_wxDropFilesEvent","_class_wxDropFilesEvent",0}, |
8223 | { "_wxBitmapButton","_class_wxBitmapButton",0}, | |
8224 | { "_class_wxAcceleratorTable","_wxAcceleratorTable",0}, | |
b1462dfa | 8225 | { "_class_wxClipboard","_wxClipboard",0}, |
1d99702e RD |
8226 | { "_class_wxGauge","_wxGauge",0}, |
8227 | { "_wxDC","_class_wxDC",0}, | |
b1462dfa | 8228 | { "_class_wxBitmapDataObject","_wxBitmapDataObject",0}, |
1d99702e RD |
8229 | { "_wxListEvent","_class_wxListEvent",0}, |
8230 | { "_wxSpinEvent","_class_wxSpinEvent",0}, | |
b1462dfa | 8231 | { "_size_t","_wxCoord",0}, |
1d99702e | 8232 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 8233 | { "_size_t","_time_t",0}, |
1d99702e RD |
8234 | { "_size_t","_unsigned_int",0}, |
8235 | { "_size_t","_int",0}, | |
8236 | { "_size_t","_wxWindowID",0}, | |
8237 | { "_size_t","_uint",0}, | |
8238 | { "_class_wxRealPoint","_wxRealPoint",0}, | |
48115f4a | 8239 | { "_wxNavigationKeyEvent","_class_wxNavigationKeyEvent",0}, |
1d99702e | 8240 | { "_wxPrinterDC","_class_wxPrinterDC",0}, |
48115f4a | 8241 | { "_wxWindowCreateEvent","_class_wxWindowCreateEvent",0}, |
1d99702e RD |
8242 | { "_class_wxMenuItem","_wxMenuItem",0}, |
8243 | { "_class_wxPaintEvent","_wxPaintEvent",0}, | |
8244 | { "_wxSysColourChangedEvent","_class_wxSysColourChangedEvent",0}, | |
8245 | { "_wxPanel","_class_wxPanel",0}, | |
8246 | { "_wxInitDialogEvent","_class_wxInitDialogEvent",0}, | |
8247 | { "_wxCheckBox","_class_wxCheckBox",0}, | |
f6bcfd97 | 8248 | { "_class_wxPyTreeCtrl","_wxPyTreeCtrl",0}, |
1d99702e RD |
8249 | { "_wxPyEvent","_class_wxPyEvent",0}, |
8250 | { "_wxTextCtrl","_class_wxTextCtrl",0}, | |
8251 | { "_class_wxMask","_wxMask",0}, | |
b1462dfa | 8252 | { "_wxTextDataObject","_class_wxTextDataObject",0}, |
1d99702e RD |
8253 | { "_class_wxKeyEvent","_wxKeyEvent",0}, |
8254 | { "_wxColour","_class_wxColour",0}, | |
8255 | { "_class_wxDialog","_wxDialog",0}, | |
b1462dfa | 8256 | { "_class_wxFileDataObject","_wxFileDataObject",0}, |
1d99702e RD |
8257 | { "_wxIdleEvent","_class_wxIdleEvent",0}, |
8258 | { "_class_wxUpdateUIEvent","_wxUpdateUIEvent",0}, | |
b1462dfa | 8259 | { "_class_wxDataObject","_wxDataObject",0}, |
1d99702e RD |
8260 | { "_wxStaticLine","_class_wxStaticLine",0}, |
8261 | { "_wxBrush","_class_wxBrush",0}, | |
b1462dfa RD |
8262 | { "_wxDataFormat","_class_wxDataFormat",0}, |
8263 | { "_class_wxDataObjectSimple","_wxDataObjectSimple",0}, | |
1d99702e | 8264 | { "_wxShowEvent","_class_wxShowEvent",0}, |
b1462dfa | 8265 | { "_uint","_wxCoord",0}, |
1d99702e | 8266 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 8267 | { "_uint","_time_t",0}, |
1d99702e RD |
8268 | { "_uint","_size_t",0}, |
8269 | { "_uint","_unsigned_int",0}, | |
8270 | { "_uint","_int",0}, | |
8271 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 8272 | { "_wxChar","_char",0}, |
2f90df85 | 8273 | { "_wxPyValidator","_class_wxPyValidator",0}, |
1d99702e RD |
8274 | { "_class_wxEvent","_class_wxTreeEvent",SwigwxTreeEventTowxEvent}, |
8275 | { "_class_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent}, | |
8276 | { "_class_wxEvent","_class_wxListEvent",SwigwxListEventTowxEvent}, | |
8277 | { "_class_wxEvent","_wxListEvent",SwigwxListEventTowxEvent}, | |
8278 | { "_class_wxEvent","_wxEvent",0}, | |
8279 | { "_wxCheckListBox","_class_wxCheckListBox",0}, | |
8280 | { "_wxRect","_class_wxRect",0}, | |
8281 | { "_wxCommandEvent","_class_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, | |
8282 | { "_wxCommandEvent","_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, | |
8283 | { "_wxCommandEvent","_class_wxListEvent",SwigwxListEventTowxCommandEvent}, | |
8284 | { "_wxCommandEvent","_wxListEvent",SwigwxListEventTowxCommandEvent}, | |
8285 | { "_wxCommandEvent","_class_wxCommandEvent",0}, | |
8286 | { "_wxSizeEvent","_class_wxSizeEvent",0}, | |
8287 | { "_wxPoint","_class_wxPoint",0}, | |
8288 | { "_class_wxButton","_wxButton",0}, | |
8289 | { "_wxRadioBox","_class_wxRadioBox",0}, | |
f6bcfd97 BP |
8290 | { "_class_wxSpinCtrl","_wxSpinCtrl",0}, |
8291 | { "_char","_wxChar",0}, | |
1d99702e | 8292 | { "_wxBitmap","_class_wxBitmap",0}, |
1d99702e | 8293 | { "_wxWindowDC","_class_wxWindowDC",0}, |
f6bcfd97 | 8294 | { "_wxTimerEvent","_class_wxTimerEvent",0}, |
1d99702e RD |
8295 | { "_wxScrollBar","_class_wxScrollBar",0}, |
8296 | { "_wxSpinButton","_class_wxSpinButton",0}, | |
8297 | { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0}, | |
8298 | { "_class_wxNotifyEvent","_class_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, | |
8299 | { "_class_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, | |
c368d904 RD |
8300 | { "_class_wxNotifyEvent","_class_wxListEvent",SwigwxListEventTowxNotifyEvent}, |
8301 | { "_class_wxNotifyEvent","_wxListEvent",SwigwxListEventTowxNotifyEvent}, | |
1d99702e | 8302 | { "_class_wxNotifyEvent","_wxNotifyEvent",0}, |
2f90df85 | 8303 | { "_class_wxValidator","_wxValidator",0}, |
1d99702e RD |
8304 | { "_class_wxPyEvent","_wxPyEvent",0}, |
8305 | { "_class_wxIconizeEvent","_wxIconizeEvent",0}, | |
8306 | { "_class_wxStaticBitmap","_wxStaticBitmap",0}, | |
8307 | { "_wxListItem","_class_wxListItem",0}, | |
b1462dfa | 8308 | { "_wxDropTarget","_class_wxDropTarget",0}, |
1d99702e RD |
8309 | { "_class_wxStaticLine","_wxStaticLine",0}, |
8310 | { "_wxScrollEvent","_class_wxScrollEvent",0}, | |
b1462dfa | 8311 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
8312 | { "_EBool","_wxPrintQuality",0}, |
8313 | { "_EBool","_signed_int",0}, | |
8314 | { "_EBool","_int",0}, | |
8315 | { "_EBool","_wxWindowID",0}, | |
8316 | { "_class_wxRegion","_wxRegion",0}, | |
b1462dfa | 8317 | { "_class_wxDataFormat","_wxDataFormat",0}, |
1d99702e | 8318 | { "_class_wxDropFilesEvent","_wxDropFilesEvent",0}, |
48115f4a | 8319 | { "_wxWindowDestroyEvent","_class_wxWindowDestroyEvent",0}, |
1d99702e RD |
8320 | { "_wxStaticText","_class_wxStaticText",0}, |
8321 | { "_wxFont","_class_wxFont",0}, | |
b1462dfa | 8322 | { "_class_wxPyDropTarget","_wxPyDropTarget",0}, |
1d99702e | 8323 | { "_wxCloseEvent","_class_wxCloseEvent",0}, |
1d99702e RD |
8324 | { "_unsigned_long","_long",0}, |
8325 | { "_class_wxRect","_wxRect",0}, | |
8326 | { "_class_wxDC","_wxDC",0}, | |
d426c97e | 8327 | { "_wxScrollWinEvent","_class_wxScrollWinEvent",0}, |
48115f4a RD |
8328 | { "_wxQueryNewPaletteEvent","_class_wxQueryNewPaletteEvent",0}, |
8329 | { "_class_wxWindowCreateEvent","_wxWindowCreateEvent",0}, | |
1d99702e | 8330 | { "_class_wxTreeEvent","_wxTreeEvent",0}, |
1d99702e RD |
8331 | { "_wxFocusEvent","_class_wxFocusEvent",0}, |
8332 | { "_wxMaximizeEvent","_class_wxMaximizeEvent",0}, | |
f6bcfd97 | 8333 | { "_class_wxTimerEvent","_wxTimerEvent",0}, |
1d99702e RD |
8334 | { "_class_wxSpinButton","_wxSpinButton",0}, |
8335 | { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0}, | |
8336 | { "_class_wxPanel","_wxPanel",0}, | |
8337 | { "_class_wxCheckBox","_wxCheckBox",0}, | |
8338 | { "_wxComboBox","_class_wxComboBox",0}, | |
8339 | { "_wxRadioButton","_class_wxRadioButton",0}, | |
b1462dfa | 8340 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
8341 | { "_signed_int","_wxPrintQuality",0}, |
8342 | { "_signed_int","_EBool",0}, | |
8343 | { "_signed_int","_wxWindowID",0}, | |
8344 | { "_signed_int","_int",0}, | |
8345 | { "_class_wxTextCtrl","_wxTextCtrl",0}, | |
f6bcfd97 | 8346 | { "_class_wxListItemAttr","_wxListItemAttr",0}, |
1d99702e RD |
8347 | { "_wxLayoutConstraints","_class_wxLayoutConstraints",0}, |
8348 | { "_wxMetaFileDC","_class_wxMetaFileDC",0}, | |
b1462dfa | 8349 | { "_class_wxTextDataObject","_wxTextDataObject",0}, |
1d99702e RD |
8350 | { "_wxMenu","_class_wxMenu",0}, |
8351 | { "_class_wxMoveEvent","_wxMoveEvent",0}, | |
8352 | { "_wxListBox","_class_wxListBox",0}, | |
8353 | { "_wxScreenDC","_class_wxScreenDC",0}, | |
8354 | { "_WXTYPE","_short",0}, | |
8355 | { "_WXTYPE","_signed_short",0}, | |
8356 | { "_WXTYPE","_unsigned_short",0}, | |
b1462dfa | 8357 | { "_class_wxDropTarget","_wxDropTarget",0}, |
1d99702e RD |
8358 | { "_class_wxBrush","_wxBrush",0}, |
8359 | { "_unsigned_short","_WXTYPE",0}, | |
8360 | { "_unsigned_short","_short",0}, | |
f6bcfd97 BP |
8361 | { "_class_wxWindow","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, |
8362 | { "_class_wxWindow","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, | |
1d99702e RD |
8363 | { "_class_wxWindow","_class_wxListCtrl",SwigwxListCtrlTowxWindow}, |
8364 | { "_class_wxWindow","_wxListCtrl",SwigwxListCtrlTowxWindow}, | |
8365 | { "_class_wxWindow","_wxWindow",0}, | |
8366 | { "_class_wxStaticText","_wxStaticText",0}, | |
8367 | { "_class_wxFont","_wxFont",0}, | |
b1462dfa | 8368 | { "_wxClipboard","_class_wxClipboard",0}, |
2f90df85 | 8369 | { "_class_wxPyValidator","_wxPyValidator",0}, |
1d99702e | 8370 | { "_class_wxCloseEvent","_wxCloseEvent",0}, |
2abc0a0f | 8371 | { "_wxBusyInfo","_class_wxBusyInfo",0}, |
1d99702e | 8372 | { "_class_wxMenuEvent","_wxMenuEvent",0}, |
48115f4a | 8373 | { "_wxPaletteChangedEvent","_class_wxPaletteChangedEvent",0}, |
65dd82cb | 8374 | { "_class_wxPyBitmapDataObject","_wxPyBitmapDataObject",0}, |
1d99702e RD |
8375 | { "_wxClientDC","_class_wxClientDC",0}, |
8376 | { "_wxMouseEvent","_class_wxMouseEvent",0}, | |
8377 | { "_wxListCtrl","_class_wxListCtrl",0}, | |
8378 | { "_class_wxPoint","_wxPoint",0}, | |
8379 | { "_wxRealPoint","_class_wxRealPoint",0}, | |
8380 | { "_class_wxRadioBox","_wxRadioBox",0}, | |
8381 | { "_signed_short","_WXTYPE",0}, | |
8382 | { "_signed_short","_short",0}, | |
8383 | { "_wxMemoryDC","_class_wxMemoryDC",0}, | |
65dd82cb | 8384 | { "_wxPyTextDataObject","_class_wxPyTextDataObject",0}, |
1d99702e RD |
8385 | { "_wxPaintDC","_class_wxPaintDC",0}, |
8386 | { "_class_wxWindowDC","_wxWindowDC",0}, | |
8387 | { "_class_wxFocusEvent","_wxFocusEvent",0}, | |
8388 | { "_class_wxMaximizeEvent","_wxMaximizeEvent",0}, | |
8389 | { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0}, | |
8390 | { "_class_wxCursor","_wxCursor",0}, | |
b1462dfa | 8391 | { "_wxPyFileDropTarget","_class_wxPyFileDropTarget",0}, |
1d99702e RD |
8392 | { "_wxScrolledWindow","_class_wxScrolledWindow",0}, |
8393 | { "_wxTreeItemId","_class_wxTreeItemId",0}, | |
8394 | { "_unsigned_char","_byte",0}, | |
8395 | { "_class_wxMetaFileDC","_wxMetaFileDC",0}, | |
8396 | { "_class_wxMenu","_wxMenu",0}, | |
f6bcfd97 BP |
8397 | { "_wxControl","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, |
8398 | { "_wxControl","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, | |
1d99702e RD |
8399 | { "_wxControl","_class_wxListCtrl",SwigwxListCtrlTowxControl}, |
8400 | { "_wxControl","_wxListCtrl",SwigwxListCtrlTowxControl}, | |
8401 | { "_wxControl","_class_wxControl",0}, | |
8402 | { "_class_wxListBox","_wxListBox",0}, | |
b1462dfa | 8403 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 8404 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 8405 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
8406 | { "_unsigned_int","_size_t",0}, |
8407 | { "_unsigned_int","_uint",0}, | |
8408 | { "_unsigned_int","_wxWindowID",0}, | |
8409 | { "_unsigned_int","_int",0}, | |
8410 | { "_wxIcon","_class_wxIcon",0}, | |
8411 | { "_wxDialog","_class_wxDialog",0}, | |
8412 | { "_class_wxListItem","_wxListItem",0}, | |
8413 | { "_class_wxPen","_wxPen",0}, | |
8414 | { "_short","_WXTYPE",0}, | |
8415 | { "_short","_unsigned_short",0}, | |
8416 | { "_short","_signed_short",0}, | |
8417 | { "_class_wxStaticBox","_wxStaticBox",0}, | |
65dd82cb RD |
8418 | { "_class_wxPyDataObjectSimple","_wxPyDataObjectSimple",0}, |
8419 | { "_class_wxPyDropSource","_wxPyDropSource",0}, | |
1d99702e RD |
8420 | { "_class_wxScrollEvent","_wxScrollEvent",0}, |
8421 | { "_wxJoystickEvent","_class_wxJoystickEvent",0}, | |
8422 | { "_class_wxChoice","_wxChoice",0}, | |
8423 | { "_class_wxSlider","_wxSlider",0}, | |
8424 | { "_class_wxImageList","_wxImageList",0}, | |
8425 | { "_class_wxBitmapButton","_wxBitmapButton",0}, | |
48115f4a | 8426 | { "_class_wxPaletteChangedEvent","_wxPaletteChangedEvent",0}, |
b1462dfa | 8427 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 8428 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 8429 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
8430 | { "_wxWindowID","_size_t",0}, |
8431 | { "_wxWindowID","_EBool",0}, | |
8432 | { "_wxWindowID","_uint",0}, | |
8433 | { "_wxWindowID","_int",0}, | |
8434 | { "_wxWindowID","_signed_int",0}, | |
8435 | { "_wxWindowID","_unsigned_int",0}, | |
d426c97e | 8436 | { "_class_wxScrollWinEvent","_wxScrollWinEvent",0}, |
b1462dfa | 8437 | { "_int","_wxCoord",0}, |
1d99702e | 8438 | { "_int","_wxPrintQuality",0}, |
c368d904 | 8439 | { "_int","_time_t",0}, |
1d99702e RD |
8440 | { "_int","_size_t",0}, |
8441 | { "_int","_EBool",0}, | |
8442 | { "_int","_uint",0}, | |
8443 | { "_int","_wxWindowID",0}, | |
8444 | { "_int","_unsigned_int",0}, | |
8445 | { "_int","_signed_int",0}, | |
8446 | { "_class_wxMouseEvent","_wxMouseEvent",0}, | |
2f90df85 | 8447 | { "_wxPyCommandEvent","_class_wxPyCommandEvent",0}, |
1d99702e RD |
8448 | { "_class_wxListEvent","_wxListEvent",0}, |
8449 | { "_class_wxSpinEvent","_wxSpinEvent",0}, | |
48115f4a | 8450 | { "_class_wxQueryNewPaletteEvent","_wxQueryNewPaletteEvent",0}, |
c368d904 RD |
8451 | { "_time_t","_wxCoord",0}, |
8452 | { "_time_t","_wxPrintQuality",0}, | |
8453 | { "_time_t","_unsigned_int",0}, | |
8454 | { "_time_t","_int",0}, | |
8455 | { "_time_t","_wxWindowID",0}, | |
8456 | { "_time_t","_uint",0}, | |
8457 | { "_time_t","_size_t",0}, | |
48115f4a | 8458 | { "_class_wxNavigationKeyEvent","_wxNavigationKeyEvent",0}, |
1d99702e RD |
8459 | { "_wxButton","_class_wxButton",0}, |
8460 | { "_wxSize","_class_wxSize",0}, | |
8461 | { "_wxRegionIterator","_class_wxRegionIterator",0}, | |
8462 | { "_class_wxPrinterDC","_wxPrinterDC",0}, | |
65dd82cb | 8463 | { "_class_wxPyTextDataObject","_wxPyTextDataObject",0}, |
1d99702e RD |
8464 | { "_wxPyTreeItemData","_class_wxPyTreeItemData",0}, |
8465 | { "_class_wxPaintDC","_wxPaintDC",0}, | |
8466 | { "_class_wxSysColourChangedEvent","_wxSysColourChangedEvent",0}, | |
b1462dfa | 8467 | { "_class_wxPyFileDropTarget","_wxPyFileDropTarget",0}, |
1d99702e RD |
8468 | { "_class_wxInitDialogEvent","_wxInitDialogEvent",0}, |
8469 | { "_class_wxComboBox","_wxComboBox",0}, | |
8470 | { "_class_wxRadioButton","_wxRadioButton",0}, | |
2f90df85 | 8471 | { "_wxValidator","_class_wxValidator",0}, |
1d99702e | 8472 | { "_class_wxTreeItemId","_wxTreeItemId",0}, |
1d99702e RD |
8473 | { "_class_wxLayoutConstraints","_wxLayoutConstraints",0}, |
8474 | { "_wxIconizeEvent","_class_wxIconizeEvent",0}, | |
f6bcfd97 BP |
8475 | { "_class_wxControl","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, |
8476 | { "_class_wxControl","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, | |
1d99702e RD |
8477 | { "_class_wxControl","_class_wxListCtrl",SwigwxListCtrlTowxControl}, |
8478 | { "_class_wxControl","_wxListCtrl",SwigwxListCtrlTowxControl}, | |
8479 | { "_class_wxControl","_wxControl",0}, | |
8480 | { "_wxStaticBitmap","_class_wxStaticBitmap",0}, | |
8481 | { "_class_wxIcon","_wxIcon",0}, | |
8482 | { "_class_wxColour","_wxColour",0}, | |
8483 | { "_class_wxScreenDC","_wxScreenDC",0}, | |
8484 | { "_wxPalette","_class_wxPalette",0}, | |
8485 | { "_class_wxIdleEvent","_wxIdleEvent",0}, | |
b1462dfa RD |
8486 | { "_wxCoord","_int",0}, |
8487 | { "_wxCoord","_signed_int",0}, | |
8488 | { "_wxCoord","_unsigned_int",0}, | |
8489 | { "_wxCoord","_wxWindowID",0}, | |
8490 | { "_wxCoord","_uint",0}, | |
8491 | { "_wxCoord","_EBool",0}, | |
8492 | { "_wxCoord","_size_t",0}, | |
c368d904 | 8493 | { "_wxCoord","_time_t",0}, |
b1462dfa | 8494 | { "_wxCoord","_wxPrintQuality",0}, |
1d99702e | 8495 | { "_wxEraseEvent","_class_wxEraseEvent",0}, |
b1462dfa | 8496 | { "_wxDataObjectComposite","_class_wxDataObjectComposite",0}, |
1d99702e RD |
8497 | { "_class_wxJoystickEvent","_wxJoystickEvent",0}, |
8498 | { "_wxRegion","_class_wxRegion",0}, | |
8499 | { "_class_wxShowEvent","_wxShowEvent",0}, | |
b1462dfa | 8500 | { "_wxPyDropTarget","_class_wxPyDropTarget",0}, |
1d99702e RD |
8501 | { "_wxActivateEvent","_class_wxActivateEvent",0}, |
8502 | { "_wxGauge","_class_wxGauge",0}, | |
8503 | { "_class_wxCheckListBox","_wxCheckListBox",0}, | |
2abc0a0f | 8504 | { "_class_wxBusyInfo","_wxBusyInfo",0}, |
1d99702e RD |
8505 | { "_class_wxCommandEvent","_class_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, |
8506 | { "_class_wxCommandEvent","_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, | |
8507 | { "_class_wxCommandEvent","_class_wxListEvent",SwigwxListEventTowxCommandEvent}, | |
8508 | { "_class_wxCommandEvent","_wxListEvent",SwigwxListEventTowxCommandEvent}, | |
8509 | { "_class_wxCommandEvent","_wxCommandEvent",0}, | |
8510 | { "_class_wxClientDC","_wxClientDC",0}, | |
8511 | { "_class_wxSizeEvent","_wxSizeEvent",0}, | |
8512 | { "_class_wxListCtrl","_wxListCtrl",0}, | |
b1462dfa | 8513 | { "_wxCustomDataObject","_class_wxCustomDataObject",0}, |
1d99702e RD |
8514 | { "_class_wxSize","_wxSize",0}, |
8515 | { "_class_wxBitmap","_wxBitmap",0}, | |
8516 | { "_class_wxMemoryDC","_wxMemoryDC",0}, | |
b1462dfa | 8517 | { "_wxPyTextDropTarget","_class_wxPyTextDropTarget",0}, |
1d99702e RD |
8518 | { "_wxMenuBar","_class_wxMenuBar",0}, |
8519 | { "_wxTreeEvent","_class_wxTreeEvent",0}, | |
f6bcfd97 BP |
8520 | { "_wxEvtHandler","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, |
8521 | { "_wxEvtHandler","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, | |
1d99702e RD |
8522 | { "_wxEvtHandler","_class_wxListCtrl",SwigwxListCtrlTowxEvtHandler}, |
8523 | { "_wxEvtHandler","_wxListCtrl",SwigwxListCtrlTowxEvtHandler}, | |
8524 | { "_wxEvtHandler","_class_wxEvtHandler",0}, | |
8525 | { "_wxMenuItem","_class_wxMenuItem",0}, | |
8526 | { "_class_wxScrollBar","_wxScrollBar",0}, | |
1d99702e | 8527 | { "_class_wxScrolledWindow","_wxScrolledWindow",0}, |
f6bcfd97 | 8528 | { "_wxListItemAttr","_class_wxListItemAttr",0}, |
1d99702e RD |
8529 | { "_wxKeyEvent","_class_wxKeyEvent",0}, |
8530 | { "_wxMoveEvent","_class_wxMoveEvent",0}, | |
8531 | { "_class_wxPalette","_wxPalette",0}, | |
b1462dfa | 8532 | { "_wxFileDataObject","_class_wxFileDataObject",0}, |
1d99702e | 8533 | { "_class_wxEraseEvent","_wxEraseEvent",0}, |
b1462dfa | 8534 | { "_class_wxDataObjectComposite","_wxDataObjectComposite",0}, |
f6bcfd97 BP |
8535 | { "_wxWindow","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, |
8536 | { "_wxWindow","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, | |
1d99702e RD |
8537 | { "_wxWindow","_class_wxListCtrl",SwigwxListCtrlTowxWindow}, |
8538 | { "_wxWindow","_wxListCtrl",SwigwxListCtrlTowxWindow}, | |
8539 | { "_wxWindow","_class_wxWindow",0}, | |
48115f4a | 8540 | { "_class_wxWindowDestroyEvent","_wxWindowDestroyEvent",0}, |
1d99702e RD |
8541 | {0,0,0}}; |
8542 | ||
8ab979d7 RD |
8543 | static PyObject *SWIG_globals; |
8544 | #ifdef __cplusplus | |
8545 | extern "C" | |
8546 | #endif | |
1d99702e | 8547 | SWIGEXPORT(void) initcontrols2c() { |
8ab979d7 RD |
8548 | PyObject *m, *d; |
8549 | SWIG_globals = SWIG_newvarlink(); | |
8550 | m = Py_InitModule("controls2c", controls2cMethods); | |
8551 | d = PyModule_GetDict(m); | |
af309447 RD |
8552 | PyDict_SetItemString(d,"wxLIST_MASK_TEXT", PyInt_FromLong((long) wxLIST_MASK_TEXT)); |
8553 | PyDict_SetItemString(d,"wxLIST_MASK_IMAGE", PyInt_FromLong((long) wxLIST_MASK_IMAGE)); | |
8554 | PyDict_SetItemString(d,"wxLIST_MASK_DATA", PyInt_FromLong((long) wxLIST_MASK_DATA)); | |
8555 | PyDict_SetItemString(d,"wxLIST_MASK_WIDTH", PyInt_FromLong((long) wxLIST_MASK_WIDTH)); | |
8556 | PyDict_SetItemString(d,"wxLIST_MASK_FORMAT", PyInt_FromLong((long) wxLIST_MASK_FORMAT)); | |
bb0054cd | 8557 | PyDict_SetItemString(d,"wxLIST_MASK_STATE", PyInt_FromLong((long) wxLIST_MASK_STATE)); |
af309447 RD |
8558 | PyDict_SetItemString(d,"wxLIST_STATE_DONTCARE", PyInt_FromLong((long) wxLIST_STATE_DONTCARE)); |
8559 | PyDict_SetItemString(d,"wxLIST_STATE_DROPHILITED", PyInt_FromLong((long) wxLIST_STATE_DROPHILITED)); | |
8560 | PyDict_SetItemString(d,"wxLIST_STATE_FOCUSED", PyInt_FromLong((long) wxLIST_STATE_FOCUSED)); | |
8561 | PyDict_SetItemString(d,"wxLIST_STATE_SELECTED", PyInt_FromLong((long) wxLIST_STATE_SELECTED)); | |
8562 | PyDict_SetItemString(d,"wxLIST_STATE_CUT", PyInt_FromLong((long) wxLIST_STATE_CUT)); | |
8563 | PyDict_SetItemString(d,"wxLIST_HITTEST_ABOVE", PyInt_FromLong((long) wxLIST_HITTEST_ABOVE)); | |
8564 | PyDict_SetItemString(d,"wxLIST_HITTEST_BELOW", PyInt_FromLong((long) wxLIST_HITTEST_BELOW)); | |
8565 | PyDict_SetItemString(d,"wxLIST_HITTEST_NOWHERE", PyInt_FromLong((long) wxLIST_HITTEST_NOWHERE)); | |
8566 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMICON)); | |
8567 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMLABEL)); | |
8568 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMRIGHT)); | |
8569 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMSTATEICON)); | |
8570 | PyDict_SetItemString(d,"wxLIST_HITTEST_TOLEFT", PyInt_FromLong((long) wxLIST_HITTEST_TOLEFT)); | |
8571 | PyDict_SetItemString(d,"wxLIST_HITTEST_TORIGHT", PyInt_FromLong((long) wxLIST_HITTEST_TORIGHT)); | |
8572 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEM", PyInt_FromLong((long) wxLIST_HITTEST_ONITEM)); | |
8573 | PyDict_SetItemString(d,"wxLIST_NEXT_ABOVE", PyInt_FromLong((long) wxLIST_NEXT_ABOVE)); | |
8574 | PyDict_SetItemString(d,"wxLIST_NEXT_ALL", PyInt_FromLong((long) wxLIST_NEXT_ALL)); | |
8575 | PyDict_SetItemString(d,"wxLIST_NEXT_BELOW", PyInt_FromLong((long) wxLIST_NEXT_BELOW)); | |
8576 | PyDict_SetItemString(d,"wxLIST_NEXT_LEFT", PyInt_FromLong((long) wxLIST_NEXT_LEFT)); | |
8577 | PyDict_SetItemString(d,"wxLIST_NEXT_RIGHT", PyInt_FromLong((long) wxLIST_NEXT_RIGHT)); | |
8578 | PyDict_SetItemString(d,"wxLIST_ALIGN_DEFAULT", PyInt_FromLong((long) wxLIST_ALIGN_DEFAULT)); | |
8579 | PyDict_SetItemString(d,"wxLIST_ALIGN_LEFT", PyInt_FromLong((long) wxLIST_ALIGN_LEFT)); | |
8580 | PyDict_SetItemString(d,"wxLIST_ALIGN_TOP", PyInt_FromLong((long) wxLIST_ALIGN_TOP)); | |
8581 | PyDict_SetItemString(d,"wxLIST_ALIGN_SNAP_TO_GRID", PyInt_FromLong((long) wxLIST_ALIGN_SNAP_TO_GRID)); | |
af309447 RD |
8582 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE", PyInt_FromLong((long) wxLIST_AUTOSIZE)); |
8583 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE_USEHEADER", PyInt_FromLong((long) wxLIST_AUTOSIZE_USEHEADER)); | |
8584 | PyDict_SetItemString(d,"wxLIST_RECT_BOUNDS", PyInt_FromLong((long) wxLIST_RECT_BOUNDS)); | |
8585 | PyDict_SetItemString(d,"wxLIST_RECT_ICON", PyInt_FromLong((long) wxLIST_RECT_ICON)); | |
8586 | PyDict_SetItemString(d,"wxLIST_RECT_LABEL", PyInt_FromLong((long) wxLIST_RECT_LABEL)); | |
8587 | PyDict_SetItemString(d,"wxLIST_FIND_UP", PyInt_FromLong((long) wxLIST_FIND_UP)); | |
8588 | PyDict_SetItemString(d,"wxLIST_FIND_DOWN", PyInt_FromLong((long) wxLIST_FIND_DOWN)); | |
8589 | PyDict_SetItemString(d,"wxLIST_FIND_LEFT", PyInt_FromLong((long) wxLIST_FIND_LEFT)); | |
8590 | PyDict_SetItemString(d,"wxLIST_FIND_RIGHT", PyInt_FromLong((long) wxLIST_FIND_RIGHT)); | |
f6bcfd97 BP |
8591 | PyDict_SetItemString(d,"wxLIST_FORMAT_LEFT", PyInt_FromLong((long) wxLIST_FORMAT_LEFT)); |
8592 | PyDict_SetItemString(d,"wxLIST_FORMAT_RIGHT", PyInt_FromLong((long) wxLIST_FORMAT_RIGHT)); | |
8593 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTRE", PyInt_FromLong((long) wxLIST_FORMAT_CENTRE)); | |
8594 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTER", PyInt_FromLong((long) wxLIST_FORMAT_CENTER)); | |
694759cf RD |
8595 | PyDict_SetItemString(d,"wxTreeItemIcon_Normal", PyInt_FromLong((long) wxTreeItemIcon_Normal)); |
8596 | PyDict_SetItemString(d,"wxTreeItemIcon_Selected", PyInt_FromLong((long) wxTreeItemIcon_Selected)); | |
8597 | PyDict_SetItemString(d,"wxTreeItemIcon_Expanded", PyInt_FromLong((long) wxTreeItemIcon_Expanded)); | |
8598 | PyDict_SetItemString(d,"wxTreeItemIcon_SelectedExpanded", PyInt_FromLong((long) wxTreeItemIcon_SelectedExpanded)); | |
8599 | PyDict_SetItemString(d,"wxTreeItemIcon_Max", PyInt_FromLong((long) wxTreeItemIcon_Max)); | |
164b735b RD |
8600 | PyDict_SetItemString(d,"wxTREE_HITTEST_ABOVE", PyInt_FromLong((long) wxTREE_HITTEST_ABOVE)); |
8601 | PyDict_SetItemString(d,"wxTREE_HITTEST_BELOW", PyInt_FromLong((long) wxTREE_HITTEST_BELOW)); | |
8602 | PyDict_SetItemString(d,"wxTREE_HITTEST_NOWHERE", PyInt_FromLong((long) wxTREE_HITTEST_NOWHERE)); | |
8603 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMBUTTON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMBUTTON)); | |
8604 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMICON)); | |
8605 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMINDENT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMINDENT)); | |
8606 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLABEL)); | |
8607 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMRIGHT)); | |
8608 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMSTATEICON)); | |
8609 | PyDict_SetItemString(d,"wxTREE_HITTEST_TOLEFT", PyInt_FromLong((long) wxTREE_HITTEST_TOLEFT)); | |
8610 | PyDict_SetItemString(d,"wxTREE_HITTEST_TORIGHT", PyInt_FromLong((long) wxTREE_HITTEST_TORIGHT)); | |
8611 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMUPPERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMUPPERPART)); | |
8612 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLOWERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLOWERPART)); | |
8613 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEM", PyInt_FromLong((long) wxTREE_HITTEST_ONITEM)); | |
1d99702e RD |
8614 | { |
8615 | int i; | |
8616 | for (i = 0; _swig_mapping[i].n1; i++) | |
8617 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
8618 | } | |
8ab979d7 | 8619 | } |