]>
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) | |
1afc06c2 | 6 | * Version 1.1 (Build 810) |
8ab979d7 RD |
7 | * |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
1d99702e | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
8ab979d7 RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
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 | |
8ab979d7 RD |
44 | extern void SWIG_MakePtr(char *, void *, char *); |
45 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
46 | extern char *SWIG_GetPtr(char *, void **, char *); | |
1d99702e | 47 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
8ab979d7 RD |
48 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
49 | extern PyObject *SWIG_newvarlink(void); | |
50 | #ifdef __cplusplus | |
51 | } | |
52 | #endif | |
8ab979d7 RD |
53 | #define SWIG_init initcontrols2c |
54 | ||
55 | #define SWIG_name "controls2c" | |
56 | ||
57 | #include "helpers.h" | |
2f90df85 RD |
58 | #ifdef __WXMSW__ |
59 | #include <windows.h> | |
60 | #endif | |
8ab979d7 RD |
61 | #include <wx/listctrl.h> |
62 | #include <wx/treectrl.h> | |
8ab979d7 RD |
63 | |
64 | static PyObject* l_output_helper(PyObject* target, PyObject* o) { | |
65 | PyObject* o2; | |
c368d904 | 66 | if (!target) { |
8ab979d7 | 67 | target = o; |
c368d904 | 68 | } else if (target == Py_None) { |
8ab979d7 RD |
69 | Py_DECREF(Py_None); |
70 | target = o; | |
c368d904 | 71 | } else { |
8ab979d7 RD |
72 | if (!PyList_Check(target)) { |
73 | o2 = target; | |
74 | target = PyList_New(0); | |
75 | PyList_Append(target, o2); | |
76 | Py_XDECREF(o2); | |
77 | } | |
78 | PyList_Append(target,o); | |
79 | Py_XDECREF(o); | |
80 | } | |
81 | return target; | |
82 | } | |
83 | ||
84 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
85 | PyObject* o2; | |
86 | PyObject* o3; | |
87 | ||
c368d904 | 88 | if (!target) { |
8ab979d7 | 89 | target = o; |
c368d904 | 90 | } else if (target == Py_None) { |
8ab979d7 RD |
91 | Py_DECREF(Py_None); |
92 | target = o; | |
c368d904 | 93 | } else { |
8ab979d7 RD |
94 | if (!PyTuple_Check(target)) { |
95 | o2 = target; | |
96 | target = PyTuple_New(1); | |
97 | PyTuple_SetItem(target, 0, o2); | |
98 | } | |
c368d904 RD |
99 | o3 = PyTuple_New(1); |
100 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
101 | |
102 | o2 = target; | |
c368d904 RD |
103 | target = PySequence_Concat(o2, o3); |
104 | Py_DECREF(o2); | |
8ab979d7 RD |
105 | Py_DECREF(o3); |
106 | } | |
107 | return target; | |
108 | } | |
109 | ||
8ab979d7 RD |
110 | static char* wxStringErrorMsg = "string type is required for parameter"; |
111 | ||
112 | extern wxValidator wxPyDefaultValidator; | |
cf694132 | 113 | |
f6bcfd97 | 114 | int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { |
dcd38683 RD |
115 | int retval = 0; |
116 | PyObject* func = (PyObject*)funcPtr; | |
117 | bool doSave = wxPyRestoreThread(); | |
118 | ||
119 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
120 | PyObject* result = PyEval_CallObject(func, args); | |
121 | Py_DECREF(args); | |
122 | if (result) { | |
123 | retval = PyInt_AsLong(result); | |
124 | Py_DECREF(result); | |
125 | } | |
126 | ||
127 | wxPySaveThread(doSave); | |
128 | return retval; | |
129 | } | |
130 | ||
131 | ||
cf694132 RD |
132 | class wxPyTreeItemData : public wxTreeItemData { |
133 | public: | |
134 | wxPyTreeItemData(PyObject* obj = NULL) { | |
c368d904 | 135 | if (obj == NULL) |
cf694132 | 136 | obj = Py_None; |
c368d904 RD |
137 | Py_INCREF(obj); |
138 | m_obj = obj; | |
cf694132 RD |
139 | } |
140 | ||
141 | ~wxPyTreeItemData() { | |
1afc06c2 | 142 | bool doSave = wxPyRestoreThread(); |
c368d904 | 143 | Py_DECREF(m_obj); |
1afc06c2 | 144 | wxPySaveThread(doSave); |
cf694132 RD |
145 | } |
146 | ||
147 | PyObject* GetData() { | |
148 | Py_INCREF(m_obj); | |
149 | return m_obj; | |
150 | } | |
151 | ||
152 | void SetData(PyObject* obj) { | |
c368d904 | 153 | bool doSave = wxPyRestoreThread(); |
cf694132 | 154 | Py_DECREF(m_obj); |
c368d904 | 155 | wxPySaveThread(doSave); |
cf694132 RD |
156 | m_obj = obj; |
157 | Py_INCREF(obj); | |
158 | } | |
159 | ||
160 | PyObject* m_obj; | |
161 | }; | |
f6bcfd97 BP |
162 | |
163 | class wxPyTreeCtrl : public wxTreeCtrl { | |
164 | public: | |
165 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
166 | const wxPoint& pos, | |
167 | const wxSize& size, | |
168 | long style, | |
169 | const wxValidator& validator, | |
170 | char* name) : | |
171 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
172 | ||
173 | ||
174 | int OnCompareItems(const wxTreeItemId& item1, | |
175 | const wxTreeItemId& item2) { | |
176 | int rval = 0; | |
177 | bool doSave = wxPyRestoreThread(); | |
178 | if (m_myInst.findCallback("OnCompareItems")) | |
179 | rval = m_myInst.callCallback(Py_BuildValue( | |
180 | "(OO)", | |
181 | wxPyConstructObject((void*)&item1, "wxTreeItemId"), | |
182 | wxPyConstructObject((void*)&item2, "wxTreeItemId"))); | |
183 | else | |
184 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
185 | wxPySaveThread(doSave); | |
186 | return rval; | |
187 | } | |
188 | PYPRIVATE; | |
189 | }; | |
190 | ||
1d99702e RD |
191 | #ifdef __cplusplus |
192 | extern "C" { | |
193 | #endif | |
f6bcfd97 BP |
194 | #define new_wxListItemAttr() (new wxListItemAttr()) |
195 | static PyObject *_wrap_new_wxListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 196 | PyObject * _resultobj; |
f6bcfd97 BP |
197 | wxListItemAttr * _result; |
198 | char *_kwnames[] = { NULL }; | |
199 | char _ptemp[128]; | |
af309447 RD |
200 | |
201 | self = self; | |
f6bcfd97 | 202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxListItemAttr",_kwnames)) |
af309447 | 203 | return NULL; |
cf694132 RD |
204 | { |
205 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 206 | _result = (wxListItemAttr *)new_wxListItemAttr(); |
cf694132 RD |
207 | |
208 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
209 | } if (_result) { |
210 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
211 | _resultobj = Py_BuildValue("s",_ptemp); | |
212 | } else { | |
213 | Py_INCREF(Py_None); | |
214 | _resultobj = Py_None; | |
215 | } | |
af309447 RD |
216 | return _resultobj; |
217 | } | |
218 | ||
f6bcfd97 BP |
219 | #define wxListItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) |
220 | static PyObject *_wrap_wxListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 221 | PyObject * _resultobj; |
f6bcfd97 BP |
222 | wxListItemAttr * _arg0; |
223 | wxColour * _arg1; | |
1d99702e | 224 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
225 | wxColour temp; |
226 | PyObject * _obj1 = 0; | |
227 | char *_kwnames[] = { "self","colText", NULL }; | |
8ab979d7 RD |
228 | |
229 | self = self; | |
f6bcfd97 | 230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 231 | return NULL; |
1d99702e RD |
232 | if (_argo0) { |
233 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
234 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
235 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetTextColour. Expected _wxListItemAttr_p."); | |
8ab979d7 RD |
236 | return NULL; |
237 | } | |
238 | } | |
f6bcfd97 BP |
239 | { |
240 | _arg1 = &temp; | |
241 | if (! wxColour_helper(_obj1, &_arg1)) | |
242 | return NULL; | |
243 | } | |
cf694132 RD |
244 | { |
245 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 246 | wxListItemAttr_SetTextColour(_arg0,*_arg1); |
cf694132 RD |
247 | |
248 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
249 | } Py_INCREF(Py_None); |
250 | _resultobj = Py_None; | |
8ab979d7 RD |
251 | return _resultobj; |
252 | } | |
253 | ||
f6bcfd97 BP |
254 | #define wxListItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
255 | static PyObject *_wrap_wxListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 256 | PyObject * _resultobj; |
f6bcfd97 BP |
257 | wxListItemAttr * _arg0; |
258 | wxColour * _arg1; | |
1d99702e | 259 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
260 | wxColour temp; |
261 | PyObject * _obj1 = 0; | |
262 | char *_kwnames[] = { "self","colBack", NULL }; | |
af309447 RD |
263 | |
264 | self = self; | |
f6bcfd97 | 265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
af309447 | 266 | return NULL; |
1d99702e RD |
267 | if (_argo0) { |
268 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
269 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
270 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetBackgroundColour. Expected _wxListItemAttr_p."); | |
af309447 RD |
271 | return NULL; |
272 | } | |
273 | } | |
f6bcfd97 BP |
274 | { |
275 | _arg1 = &temp; | |
276 | if (! wxColour_helper(_obj1, &_arg1)) | |
277 | return NULL; | |
278 | } | |
cf694132 RD |
279 | { |
280 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 281 | wxListItemAttr_SetBackgroundColour(_arg0,*_arg1); |
cf694132 RD |
282 | |
283 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
284 | } Py_INCREF(Py_None); |
285 | _resultobj = Py_None; | |
af309447 RD |
286 | return _resultobj; |
287 | } | |
288 | ||
f6bcfd97 BP |
289 | #define wxListItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
290 | static PyObject *_wrap_wxListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 291 | PyObject * _resultobj; |
f6bcfd97 BP |
292 | wxListItemAttr * _arg0; |
293 | wxFont * _arg1; | |
1d99702e | 294 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
295 | PyObject * _argo1 = 0; |
296 | char *_kwnames[] = { "self","font", NULL }; | |
8ab979d7 RD |
297 | |
298 | self = self; | |
f6bcfd97 | 299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 300 | return NULL; |
1d99702e RD |
301 | if (_argo0) { |
302 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
303 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
304 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetFont. Expected _wxListItemAttr_p."); | |
305 | return NULL; | |
306 | } | |
307 | } | |
308 | if (_argo1) { | |
309 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
310 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
311 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItemAttr_SetFont. Expected _wxFont_p."); | |
8ab979d7 RD |
312 | return NULL; |
313 | } | |
314 | } | |
cf694132 RD |
315 | { |
316 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 317 | wxListItemAttr_SetFont(_arg0,*_arg1); |
cf694132 RD |
318 | |
319 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
320 | } Py_INCREF(Py_None); |
321 | _resultobj = Py_None; | |
8ab979d7 RD |
322 | return _resultobj; |
323 | } | |
324 | ||
f6bcfd97 BP |
325 | #define wxListItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) |
326 | static PyObject *_wrap_wxListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 327 | PyObject * _resultobj; |
f6bcfd97 BP |
328 | bool _result; |
329 | wxListItemAttr * _arg0; | |
1d99702e | 330 | PyObject * _argo0 = 0; |
f6bcfd97 | 331 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
332 | |
333 | self = self; | |
f6bcfd97 | 334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasTextColour",_kwnames,&_argo0)) |
af309447 | 335 | return NULL; |
1d99702e RD |
336 | if (_argo0) { |
337 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
338 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
339 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasTextColour. Expected _wxListItemAttr_p."); | |
af309447 RD |
340 | return NULL; |
341 | } | |
342 | } | |
cf694132 RD |
343 | { |
344 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 345 | _result = (bool )wxListItemAttr_HasTextColour(_arg0); |
cf694132 RD |
346 | |
347 | wxPy_END_ALLOW_THREADS; | |
348 | } _resultobj = Py_BuildValue("i",_result); | |
af309447 RD |
349 | return _resultobj; |
350 | } | |
351 | ||
f6bcfd97 BP |
352 | #define wxListItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) |
353 | static PyObject *_wrap_wxListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 354 | PyObject * _resultobj; |
f6bcfd97 BP |
355 | bool _result; |
356 | wxListItemAttr * _arg0; | |
1d99702e | 357 | PyObject * _argo0 = 0; |
efc5f224 | 358 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
359 | |
360 | self = self; | |
f6bcfd97 | 361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasBackgroundColour",_kwnames,&_argo0)) |
8ab979d7 | 362 | return NULL; |
1d99702e RD |
363 | if (_argo0) { |
364 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
365 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
366 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasBackgroundColour. Expected _wxListItemAttr_p."); | |
8ab979d7 RD |
367 | return NULL; |
368 | } | |
369 | } | |
cf694132 RD |
370 | { |
371 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 372 | _result = (bool )wxListItemAttr_HasBackgroundColour(_arg0); |
cf694132 RD |
373 | |
374 | wxPy_END_ALLOW_THREADS; | |
375 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
376 | return _resultobj; |
377 | } | |
378 | ||
f6bcfd97 BP |
379 | #define wxListItemAttr_HasFont(_swigobj) (_swigobj->HasFont()) |
380 | static PyObject *_wrap_wxListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 381 | PyObject * _resultobj; |
f6bcfd97 BP |
382 | bool _result; |
383 | wxListItemAttr * _arg0; | |
1d99702e | 384 | PyObject * _argo0 = 0; |
f6bcfd97 | 385 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
386 | |
387 | self = self; | |
f6bcfd97 | 388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasFont",_kwnames,&_argo0)) |
af309447 | 389 | return NULL; |
1d99702e RD |
390 | if (_argo0) { |
391 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
392 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
393 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasFont. Expected _wxListItemAttr_p."); | |
af309447 RD |
394 | return NULL; |
395 | } | |
396 | } | |
cf694132 RD |
397 | { |
398 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 399 | _result = (bool )wxListItemAttr_HasFont(_arg0); |
cf694132 RD |
400 | |
401 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 402 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
403 | return _resultobj; |
404 | } | |
405 | ||
f6bcfd97 BP |
406 | #define wxListItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) |
407 | static PyObject *_wrap_wxListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 408 | PyObject * _resultobj; |
f6bcfd97 BP |
409 | wxColour * _result; |
410 | wxListItemAttr * _arg0; | |
1d99702e | 411 | PyObject * _argo0 = 0; |
efc5f224 | 412 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 413 | char _ptemp[128]; |
8ab979d7 RD |
414 | |
415 | self = self; | |
f6bcfd97 | 416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetTextColour",_kwnames,&_argo0)) |
8ab979d7 | 417 | return NULL; |
1d99702e RD |
418 | if (_argo0) { |
419 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
420 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
421 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetTextColour. Expected _wxListItemAttr_p."); | |
8ab979d7 RD |
422 | return NULL; |
423 | } | |
424 | } | |
cf694132 RD |
425 | { |
426 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
427 | const wxColour & _result_ref = wxListItemAttr_GetTextColour(_arg0); |
428 | _result = (wxColour *) &_result_ref; | |
cf694132 RD |
429 | |
430 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
431 | } if (_result) { |
432 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
433 | _resultobj = Py_BuildValue("s",_ptemp); | |
434 | } else { | |
435 | Py_INCREF(Py_None); | |
436 | _resultobj = Py_None; | |
437 | } | |
8ab979d7 RD |
438 | return _resultobj; |
439 | } | |
440 | ||
f6bcfd97 BP |
441 | #define wxListItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) |
442 | static PyObject *_wrap_wxListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 443 | PyObject * _resultobj; |
f6bcfd97 BP |
444 | wxColour * _result; |
445 | wxListItemAttr * _arg0; | |
1d99702e | 446 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
447 | char *_kwnames[] = { "self", NULL }; |
448 | char _ptemp[128]; | |
af309447 RD |
449 | |
450 | self = self; | |
f6bcfd97 | 451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetBackgroundColour",_kwnames,&_argo0)) |
af309447 | 452 | return NULL; |
1d99702e RD |
453 | if (_argo0) { |
454 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
455 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
456 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetBackgroundColour. Expected _wxListItemAttr_p."); | |
af309447 RD |
457 | return NULL; |
458 | } | |
459 | } | |
cf694132 RD |
460 | { |
461 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
462 | const wxColour & _result_ref = wxListItemAttr_GetBackgroundColour(_arg0); |
463 | _result = (wxColour *) &_result_ref; | |
cf694132 RD |
464 | |
465 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
466 | } if (_result) { |
467 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
468 | _resultobj = Py_BuildValue("s",_ptemp); | |
469 | } else { | |
470 | Py_INCREF(Py_None); | |
471 | _resultobj = Py_None; | |
472 | } | |
af309447 RD |
473 | return _resultobj; |
474 | } | |
475 | ||
f6bcfd97 BP |
476 | #define wxListItemAttr_GetFont(_swigobj) (_swigobj->GetFont()) |
477 | static PyObject *_wrap_wxListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 478 | PyObject * _resultobj; |
f6bcfd97 BP |
479 | wxFont * _result; |
480 | wxListItemAttr * _arg0; | |
1d99702e | 481 | PyObject * _argo0 = 0; |
efc5f224 | 482 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 483 | char _ptemp[128]; |
8ab979d7 RD |
484 | |
485 | self = self; | |
f6bcfd97 | 486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetFont",_kwnames,&_argo0)) |
8ab979d7 | 487 | return NULL; |
1d99702e RD |
488 | if (_argo0) { |
489 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
490 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
491 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetFont. Expected _wxListItemAttr_p."); | |
8ab979d7 RD |
492 | return NULL; |
493 | } | |
494 | } | |
cf694132 RD |
495 | { |
496 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
497 | const wxFont & _result_ref = wxListItemAttr_GetFont(_arg0); |
498 | _result = (wxFont *) &_result_ref; | |
cf694132 RD |
499 | |
500 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
501 | } if (_result) { |
502 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
503 | _resultobj = Py_BuildValue("s",_ptemp); | |
504 | } else { | |
505 | Py_INCREF(Py_None); | |
506 | _resultobj = Py_None; | |
507 | } | |
8ab979d7 RD |
508 | return _resultobj; |
509 | } | |
510 | ||
f6bcfd97 BP |
511 | #define new_wxListItem() (new wxListItem()) |
512 | static PyObject *_wrap_new_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 513 | PyObject * _resultobj; |
f6bcfd97 BP |
514 | wxListItem * _result; |
515 | char *_kwnames[] = { NULL }; | |
516 | char _ptemp[128]; | |
af309447 RD |
517 | |
518 | self = self; | |
f6bcfd97 | 519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxListItem",_kwnames)) |
af309447 | 520 | return NULL; |
af309447 | 521 | { |
cf694132 | 522 | wxPy_BEGIN_ALLOW_THREADS; |
f6bcfd97 | 523 | _result = (wxListItem *)new_wxListItem(); |
cf694132 RD |
524 | |
525 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
526 | } if (_result) { |
527 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p"); | |
528 | _resultobj = Py_BuildValue("s",_ptemp); | |
529 | } else { | |
530 | Py_INCREF(Py_None); | |
531 | _resultobj = Py_None; | |
532 | } | |
af309447 RD |
533 | return _resultobj; |
534 | } | |
535 | ||
f6bcfd97 BP |
536 | #define delete_wxListItem(_swigobj) (delete _swigobj) |
537 | static PyObject *_wrap_delete_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 538 | PyObject * _resultobj; |
8ab979d7 | 539 | wxListItem * _arg0; |
1d99702e | 540 | PyObject * _argo0 = 0; |
efc5f224 | 541 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
542 | |
543 | self = self; | |
f6bcfd97 | 544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxListItem",_kwnames,&_argo0)) |
8ab979d7 | 545 | return NULL; |
1d99702e RD |
546 | if (_argo0) { |
547 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
548 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 549 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxListItem. Expected _wxListItem_p."); |
8ab979d7 RD |
550 | return NULL; |
551 | } | |
552 | } | |
8ab979d7 | 553 | { |
cf694132 | 554 | wxPy_BEGIN_ALLOW_THREADS; |
f6bcfd97 | 555 | delete_wxListItem(_arg0); |
cf694132 RD |
556 | |
557 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
558 | } Py_INCREF(Py_None); |
559 | _resultobj = Py_None; | |
8ab979d7 RD |
560 | return _resultobj; |
561 | } | |
562 | ||
f6bcfd97 BP |
563 | #define wxListItem_Clear(_swigobj) (_swigobj->Clear()) |
564 | static PyObject *_wrap_wxListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 565 | PyObject * _resultobj; |
af309447 | 566 | wxListItem * _arg0; |
1d99702e | 567 | PyObject * _argo0 = 0; |
f6bcfd97 | 568 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
569 | |
570 | self = self; | |
f6bcfd97 | 571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_Clear",_kwnames,&_argo0)) |
af309447 | 572 | return NULL; |
1d99702e RD |
573 | if (_argo0) { |
574 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
575 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 576 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_Clear. Expected _wxListItem_p."); |
af309447 RD |
577 | return NULL; |
578 | } | |
579 | } | |
cf694132 RD |
580 | { |
581 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 582 | wxListItem_Clear(_arg0); |
cf694132 RD |
583 | |
584 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
585 | } Py_INCREF(Py_None); |
586 | _resultobj = Py_None; | |
af309447 RD |
587 | return _resultobj; |
588 | } | |
589 | ||
f6bcfd97 BP |
590 | #define wxListItem_ClearAttributes(_swigobj) (_swigobj->ClearAttributes()) |
591 | static PyObject *_wrap_wxListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 592 | PyObject * _resultobj; |
8ab979d7 | 593 | wxListItem * _arg0; |
1d99702e | 594 | PyObject * _argo0 = 0; |
efc5f224 | 595 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
596 | |
597 | self = self; | |
f6bcfd97 | 598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_ClearAttributes",_kwnames,&_argo0)) |
8ab979d7 | 599 | return NULL; |
1d99702e RD |
600 | if (_argo0) { |
601 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
602 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_ClearAttributes. Expected _wxListItem_p."); |
8ab979d7 RD |
604 | return NULL; |
605 | } | |
606 | } | |
cf694132 RD |
607 | { |
608 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 609 | wxListItem_ClearAttributes(_arg0); |
cf694132 RD |
610 | |
611 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
612 | } Py_INCREF(Py_None); |
613 | _resultobj = Py_None; | |
614 | return _resultobj; | |
615 | } | |
616 | ||
617 | #define wxListItem_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) | |
618 | static PyObject *_wrap_wxListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
619 | PyObject * _resultobj; | |
620 | wxListItem * _arg0; | |
621 | long _arg1; | |
622 | PyObject * _argo0 = 0; | |
623 | char *_kwnames[] = { "self","mask", NULL }; | |
624 | ||
625 | self = self; | |
626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetMask",_kwnames,&_argo0,&_arg1)) | |
627 | return NULL; | |
628 | if (_argo0) { | |
629 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
630 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
631 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetMask. Expected _wxListItem_p."); | |
632 | return NULL; | |
633 | } | |
634 | } | |
635 | { | |
636 | wxPy_BEGIN_ALLOW_THREADS; | |
637 | wxListItem_SetMask(_arg0,_arg1); | |
638 | ||
639 | wxPy_END_ALLOW_THREADS; | |
640 | } Py_INCREF(Py_None); | |
641 | _resultobj = Py_None; | |
642 | return _resultobj; | |
643 | } | |
644 | ||
645 | #define wxListItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
646 | static PyObject *_wrap_wxListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
647 | PyObject * _resultobj; | |
648 | wxListItem * _arg0; | |
649 | long _arg1; | |
650 | PyObject * _argo0 = 0; | |
651 | char *_kwnames[] = { "self","id", NULL }; | |
652 | ||
653 | self = self; | |
654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetId",_kwnames,&_argo0,&_arg1)) | |
655 | return NULL; | |
656 | if (_argo0) { | |
657 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
658 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
659 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetId. Expected _wxListItem_p."); | |
660 | return NULL; | |
661 | } | |
662 | } | |
663 | { | |
664 | wxPy_BEGIN_ALLOW_THREADS; | |
665 | wxListItem_SetId(_arg0,_arg1); | |
666 | ||
667 | wxPy_END_ALLOW_THREADS; | |
668 | } Py_INCREF(Py_None); | |
669 | _resultobj = Py_None; | |
670 | return _resultobj; | |
671 | } | |
672 | ||
673 | #define wxListItem_SetColumn(_swigobj,_swigarg0) (_swigobj->SetColumn(_swigarg0)) | |
674 | static PyObject *_wrap_wxListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
675 | PyObject * _resultobj; | |
676 | wxListItem * _arg0; | |
677 | int _arg1; | |
678 | PyObject * _argo0 = 0; | |
679 | char *_kwnames[] = { "self","col", NULL }; | |
680 | ||
681 | self = self; | |
682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetColumn",_kwnames,&_argo0,&_arg1)) | |
683 | return NULL; | |
684 | if (_argo0) { | |
685 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
686 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
687 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetColumn. Expected _wxListItem_p."); | |
688 | return NULL; | |
689 | } | |
690 | } | |
691 | { | |
692 | wxPy_BEGIN_ALLOW_THREADS; | |
693 | wxListItem_SetColumn(_arg0,_arg1); | |
694 | ||
695 | wxPy_END_ALLOW_THREADS; | |
696 | } Py_INCREF(Py_None); | |
697 | _resultobj = Py_None; | |
698 | return _resultobj; | |
699 | } | |
700 | ||
701 | #define wxListItem_SetState(_swigobj,_swigarg0) (_swigobj->SetState(_swigarg0)) | |
702 | static PyObject *_wrap_wxListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
703 | PyObject * _resultobj; | |
704 | wxListItem * _arg0; | |
705 | long _arg1; | |
706 | PyObject * _argo0 = 0; | |
707 | char *_kwnames[] = { "self","state", NULL }; | |
708 | ||
709 | self = self; | |
710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetState",_kwnames,&_argo0,&_arg1)) | |
711 | return NULL; | |
712 | if (_argo0) { | |
713 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
714 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetState. Expected _wxListItem_p."); | |
716 | return NULL; | |
717 | } | |
718 | } | |
719 | { | |
720 | wxPy_BEGIN_ALLOW_THREADS; | |
721 | wxListItem_SetState(_arg0,_arg1); | |
722 | ||
723 | wxPy_END_ALLOW_THREADS; | |
724 | } Py_INCREF(Py_None); | |
725 | _resultobj = Py_None; | |
726 | return _resultobj; | |
727 | } | |
728 | ||
729 | #define wxListItem_SetStateMask(_swigobj,_swigarg0) (_swigobj->SetStateMask(_swigarg0)) | |
730 | static PyObject *_wrap_wxListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
731 | PyObject * _resultobj; | |
732 | wxListItem * _arg0; | |
733 | long _arg1; | |
734 | PyObject * _argo0 = 0; | |
735 | char *_kwnames[] = { "self","stateMask", NULL }; | |
736 | ||
737 | self = self; | |
738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetStateMask",_kwnames,&_argo0,&_arg1)) | |
739 | return NULL; | |
740 | if (_argo0) { | |
741 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
742 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
743 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetStateMask. Expected _wxListItem_p."); | |
744 | return NULL; | |
745 | } | |
746 | } | |
747 | { | |
748 | wxPy_BEGIN_ALLOW_THREADS; | |
749 | wxListItem_SetStateMask(_arg0,_arg1); | |
750 | ||
751 | wxPy_END_ALLOW_THREADS; | |
752 | } Py_INCREF(Py_None); | |
753 | _resultobj = Py_None; | |
754 | return _resultobj; | |
755 | } | |
756 | ||
757 | #define wxListItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) | |
758 | static PyObject *_wrap_wxListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
759 | PyObject * _resultobj; | |
760 | wxListItem * _arg0; | |
761 | wxString * _arg1; | |
762 | PyObject * _argo0 = 0; | |
763 | PyObject * _obj1 = 0; | |
764 | char *_kwnames[] = { "self","text", NULL }; | |
765 | ||
766 | self = self; | |
767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetText",_kwnames,&_argo0,&_obj1)) | |
768 | return NULL; | |
769 | if (_argo0) { | |
770 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
771 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
772 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetText. Expected _wxListItem_p."); | |
773 | return NULL; | |
774 | } | |
775 | } | |
776 | { | |
777 | if (!PyString_Check(_obj1)) { | |
778 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
779 | return NULL; | |
780 | } | |
781 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
782 | } | |
783 | { | |
784 | wxPy_BEGIN_ALLOW_THREADS; | |
785 | wxListItem_SetText(_arg0,*_arg1); | |
786 | ||
787 | wxPy_END_ALLOW_THREADS; | |
788 | } Py_INCREF(Py_None); | |
789 | _resultobj = Py_None; | |
790 | { | |
791 | if (_obj1) | |
792 | delete _arg1; | |
793 | } | |
794 | return _resultobj; | |
795 | } | |
796 | ||
797 | #define wxListItem_SetImage(_swigobj,_swigarg0) (_swigobj->SetImage(_swigarg0)) | |
798 | static PyObject *_wrap_wxListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
799 | PyObject * _resultobj; | |
800 | wxListItem * _arg0; | |
801 | int _arg1; | |
802 | PyObject * _argo0 = 0; | |
803 | char *_kwnames[] = { "self","image", NULL }; | |
804 | ||
805 | self = self; | |
806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetImage",_kwnames,&_argo0,&_arg1)) | |
807 | return NULL; | |
808 | if (_argo0) { | |
809 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
810 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
811 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetImage. Expected _wxListItem_p."); | |
812 | return NULL; | |
813 | } | |
814 | } | |
815 | { | |
816 | wxPy_BEGIN_ALLOW_THREADS; | |
817 | wxListItem_SetImage(_arg0,_arg1); | |
818 | ||
819 | wxPy_END_ALLOW_THREADS; | |
820 | } Py_INCREF(Py_None); | |
821 | _resultobj = Py_None; | |
822 | return _resultobj; | |
823 | } | |
824 | ||
825 | #define wxListItem_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
826 | static PyObject *_wrap_wxListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
827 | PyObject * _resultobj; | |
828 | wxListItem * _arg0; | |
829 | long _arg1; | |
830 | PyObject * _argo0 = 0; | |
831 | char *_kwnames[] = { "self","data", NULL }; | |
832 | ||
833 | self = self; | |
834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetData",_kwnames,&_argo0,&_arg1)) | |
835 | return NULL; | |
836 | if (_argo0) { | |
837 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
838 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
839 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetData. Expected _wxListItem_p."); | |
840 | return NULL; | |
841 | } | |
842 | } | |
843 | { | |
844 | wxPy_BEGIN_ALLOW_THREADS; | |
845 | wxListItem_SetData(_arg0,_arg1); | |
846 | ||
847 | wxPy_END_ALLOW_THREADS; | |
848 | } Py_INCREF(Py_None); | |
849 | _resultobj = Py_None; | |
850 | return _resultobj; | |
851 | } | |
852 | ||
853 | #define wxListItem_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
854 | static PyObject *_wrap_wxListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
855 | PyObject * _resultobj; | |
856 | wxListItem * _arg0; | |
857 | int _arg1; | |
858 | PyObject * _argo0 = 0; | |
859 | char *_kwnames[] = { "self","width", NULL }; | |
860 | ||
861 | self = self; | |
862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetWidth",_kwnames,&_argo0,&_arg1)) | |
863 | return NULL; | |
864 | if (_argo0) { | |
865 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
866 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
867 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetWidth. Expected _wxListItem_p."); | |
868 | return NULL; | |
869 | } | |
870 | } | |
871 | { | |
872 | wxPy_BEGIN_ALLOW_THREADS; | |
873 | wxListItem_SetWidth(_arg0,_arg1); | |
874 | ||
875 | wxPy_END_ALLOW_THREADS; | |
876 | } Py_INCREF(Py_None); | |
877 | _resultobj = Py_None; | |
878 | return _resultobj; | |
879 | } | |
880 | ||
881 | #define wxListItem_SetAlign(_swigobj,_swigarg0) (_swigobj->SetAlign(_swigarg0)) | |
882 | static PyObject *_wrap_wxListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
883 | PyObject * _resultobj; | |
884 | wxListItem * _arg0; | |
885 | wxListColumnFormat _arg1; | |
886 | PyObject * _argo0 = 0; | |
887 | char *_kwnames[] = { "self","align", NULL }; | |
888 | ||
889 | self = self; | |
890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetAlign",_kwnames,&_argo0,&_arg1)) | |
891 | return NULL; | |
892 | if (_argo0) { | |
893 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
894 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
895 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetAlign. Expected _wxListItem_p."); | |
896 | return NULL; | |
897 | } | |
898 | } | |
899 | { | |
900 | wxPy_BEGIN_ALLOW_THREADS; | |
901 | wxListItem_SetAlign(_arg0,_arg1); | |
902 | ||
903 | wxPy_END_ALLOW_THREADS; | |
904 | } Py_INCREF(Py_None); | |
905 | _resultobj = Py_None; | |
906 | return _resultobj; | |
907 | } | |
908 | ||
909 | #define wxListItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
910 | static PyObject *_wrap_wxListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
911 | PyObject * _resultobj; | |
912 | wxListItem * _arg0; | |
913 | wxColour * _arg1; | |
914 | PyObject * _argo0 = 0; | |
915 | wxColour temp; | |
916 | PyObject * _obj1 = 0; | |
917 | char *_kwnames[] = { "self","colText", NULL }; | |
918 | ||
919 | self = self; | |
920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
921 | return NULL; | |
922 | if (_argo0) { | |
923 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
924 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
925 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetTextColour. Expected _wxListItem_p."); | |
926 | return NULL; | |
927 | } | |
928 | } | |
929 | { | |
930 | _arg1 = &temp; | |
931 | if (! wxColour_helper(_obj1, &_arg1)) | |
932 | return NULL; | |
933 | } | |
934 | { | |
935 | wxPy_BEGIN_ALLOW_THREADS; | |
936 | wxListItem_SetTextColour(_arg0,*_arg1); | |
937 | ||
938 | wxPy_END_ALLOW_THREADS; | |
939 | } Py_INCREF(Py_None); | |
940 | _resultobj = Py_None; | |
941 | return _resultobj; | |
942 | } | |
943 | ||
944 | #define wxListItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
945 | static PyObject *_wrap_wxListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
946 | PyObject * _resultobj; | |
947 | wxListItem * _arg0; | |
948 | wxColour * _arg1; | |
949 | PyObject * _argo0 = 0; | |
950 | wxColour temp; | |
951 | PyObject * _obj1 = 0; | |
952 | char *_kwnames[] = { "self","colBack", NULL }; | |
953 | ||
954 | self = self; | |
955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
956 | return NULL; | |
957 | if (_argo0) { | |
958 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
959 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
960 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetBackgroundColour. Expected _wxListItem_p."); | |
961 | return NULL; | |
962 | } | |
963 | } | |
964 | { | |
965 | _arg1 = &temp; | |
966 | if (! wxColour_helper(_obj1, &_arg1)) | |
967 | return NULL; | |
968 | } | |
969 | { | |
970 | wxPy_BEGIN_ALLOW_THREADS; | |
971 | wxListItem_SetBackgroundColour(_arg0,*_arg1); | |
972 | ||
973 | wxPy_END_ALLOW_THREADS; | |
974 | } Py_INCREF(Py_None); | |
975 | _resultobj = Py_None; | |
976 | return _resultobj; | |
977 | } | |
978 | ||
979 | #define wxListItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
980 | static PyObject *_wrap_wxListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
981 | PyObject * _resultobj; | |
982 | wxListItem * _arg0; | |
983 | wxFont * _arg1; | |
984 | PyObject * _argo0 = 0; | |
985 | PyObject * _argo1 = 0; | |
986 | char *_kwnames[] = { "self","font", NULL }; | |
987 | ||
988 | self = self; | |
989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetFont",_kwnames,&_argo0,&_argo1)) | |
990 | return NULL; | |
991 | if (_argo0) { | |
992 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
993 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
994 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetFont. Expected _wxListItem_p."); | |
995 | return NULL; | |
996 | } | |
997 | } | |
998 | if (_argo1) { | |
999 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1000 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
1001 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItem_SetFont. Expected _wxFont_p."); | |
1002 | return NULL; | |
1003 | } | |
1004 | } | |
1005 | { | |
1006 | wxPy_BEGIN_ALLOW_THREADS; | |
1007 | wxListItem_SetFont(_arg0,*_arg1); | |
1008 | ||
1009 | wxPy_END_ALLOW_THREADS; | |
1010 | } Py_INCREF(Py_None); | |
1011 | _resultobj = Py_None; | |
1012 | return _resultobj; | |
1013 | } | |
1014 | ||
1015 | #define wxListItem_GetMask(_swigobj) (_swigobj->GetMask()) | |
1016 | static PyObject *_wrap_wxListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1017 | PyObject * _resultobj; | |
1018 | long _result; | |
1019 | wxListItem * _arg0; | |
1020 | PyObject * _argo0 = 0; | |
1021 | char *_kwnames[] = { "self", NULL }; | |
1022 | ||
1023 | self = self; | |
1024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetMask",_kwnames,&_argo0)) | |
1025 | return NULL; | |
1026 | if (_argo0) { | |
1027 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1028 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1029 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetMask. Expected _wxListItem_p."); | |
1030 | return NULL; | |
1031 | } | |
1032 | } | |
1033 | { | |
1034 | wxPy_BEGIN_ALLOW_THREADS; | |
1035 | _result = (long )wxListItem_GetMask(_arg0); | |
1036 | ||
1037 | wxPy_END_ALLOW_THREADS; | |
1038 | } _resultobj = Py_BuildValue("l",_result); | |
1039 | return _resultobj; | |
1040 | } | |
1041 | ||
1042 | #define wxListItem_GetId(_swigobj) (_swigobj->GetId()) | |
1043 | static PyObject *_wrap_wxListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1044 | PyObject * _resultobj; | |
1045 | long _result; | |
1046 | wxListItem * _arg0; | |
1047 | PyObject * _argo0 = 0; | |
1048 | char *_kwnames[] = { "self", NULL }; | |
1049 | ||
1050 | self = self; | |
1051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetId",_kwnames,&_argo0)) | |
1052 | return NULL; | |
1053 | if (_argo0) { | |
1054 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1055 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1056 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetId. Expected _wxListItem_p."); | |
1057 | return NULL; | |
1058 | } | |
1059 | } | |
1060 | { | |
1061 | wxPy_BEGIN_ALLOW_THREADS; | |
1062 | _result = (long )wxListItem_GetId(_arg0); | |
1063 | ||
1064 | wxPy_END_ALLOW_THREADS; | |
1065 | } _resultobj = Py_BuildValue("l",_result); | |
1066 | return _resultobj; | |
1067 | } | |
1068 | ||
1069 | #define wxListItem_GetColumn(_swigobj) (_swigobj->GetColumn()) | |
1070 | static PyObject *_wrap_wxListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1071 | PyObject * _resultobj; | |
1072 | int _result; | |
1073 | wxListItem * _arg0; | |
1074 | PyObject * _argo0 = 0; | |
1075 | char *_kwnames[] = { "self", NULL }; | |
1076 | ||
1077 | self = self; | |
1078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetColumn",_kwnames,&_argo0)) | |
1079 | return NULL; | |
1080 | if (_argo0) { | |
1081 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1082 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1083 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetColumn. Expected _wxListItem_p."); | |
1084 | return NULL; | |
1085 | } | |
1086 | } | |
1087 | { | |
1088 | wxPy_BEGIN_ALLOW_THREADS; | |
1089 | _result = (int )wxListItem_GetColumn(_arg0); | |
1090 | ||
1091 | wxPy_END_ALLOW_THREADS; | |
1092 | } _resultobj = Py_BuildValue("i",_result); | |
1093 | return _resultobj; | |
1094 | } | |
1095 | ||
1096 | #define wxListItem_GetState(_swigobj) (_swigobj->GetState()) | |
1097 | static PyObject *_wrap_wxListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1098 | PyObject * _resultobj; | |
1099 | long _result; | |
1100 | wxListItem * _arg0; | |
1101 | PyObject * _argo0 = 0; | |
1102 | char *_kwnames[] = { "self", NULL }; | |
1103 | ||
1104 | self = self; | |
1105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetState",_kwnames,&_argo0)) | |
1106 | return NULL; | |
1107 | if (_argo0) { | |
1108 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1109 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1110 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetState. Expected _wxListItem_p."); | |
1111 | return NULL; | |
1112 | } | |
1113 | } | |
1114 | { | |
1115 | wxPy_BEGIN_ALLOW_THREADS; | |
1116 | _result = (long )wxListItem_GetState(_arg0); | |
1117 | ||
1118 | wxPy_END_ALLOW_THREADS; | |
1119 | } _resultobj = Py_BuildValue("l",_result); | |
1120 | return _resultobj; | |
1121 | } | |
1122 | ||
1123 | #define wxListItem_GetText(_swigobj) (_swigobj->GetText()) | |
1124 | static PyObject *_wrap_wxListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1125 | PyObject * _resultobj; | |
1126 | wxString * _result; | |
1127 | wxListItem * _arg0; | |
1128 | PyObject * _argo0 = 0; | |
1129 | char *_kwnames[] = { "self", NULL }; | |
1130 | ||
1131 | self = self; | |
1132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetText",_kwnames,&_argo0)) | |
1133 | return NULL; | |
1134 | if (_argo0) { | |
1135 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1136 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1137 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetText. Expected _wxListItem_p."); | |
1138 | return NULL; | |
1139 | } | |
1140 | } | |
1141 | { | |
1142 | wxPy_BEGIN_ALLOW_THREADS; | |
1143 | const wxString & _result_ref = wxListItem_GetText(_arg0); | |
1144 | _result = (wxString *) &_result_ref; | |
1145 | ||
1146 | wxPy_END_ALLOW_THREADS; | |
1147 | }{ | |
1148 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1149 | } | |
1150 | return _resultobj; | |
1151 | } | |
1152 | ||
1153 | #define wxListItem_GetImage(_swigobj) (_swigobj->GetImage()) | |
1154 | static PyObject *_wrap_wxListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1155 | PyObject * _resultobj; | |
1156 | int _result; | |
1157 | wxListItem * _arg0; | |
1158 | PyObject * _argo0 = 0; | |
1159 | char *_kwnames[] = { "self", NULL }; | |
1160 | ||
1161 | self = self; | |
1162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetImage",_kwnames,&_argo0)) | |
1163 | return NULL; | |
1164 | if (_argo0) { | |
1165 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1166 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1167 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetImage. Expected _wxListItem_p."); | |
1168 | return NULL; | |
1169 | } | |
1170 | } | |
1171 | { | |
1172 | wxPy_BEGIN_ALLOW_THREADS; | |
1173 | _result = (int )wxListItem_GetImage(_arg0); | |
1174 | ||
1175 | wxPy_END_ALLOW_THREADS; | |
1176 | } _resultobj = Py_BuildValue("i",_result); | |
1177 | return _resultobj; | |
1178 | } | |
1179 | ||
1180 | #define wxListItem_GetData(_swigobj) (_swigobj->GetData()) | |
1181 | static PyObject *_wrap_wxListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1182 | PyObject * _resultobj; | |
1183 | long _result; | |
1184 | wxListItem * _arg0; | |
1185 | PyObject * _argo0 = 0; | |
1186 | char *_kwnames[] = { "self", NULL }; | |
1187 | ||
1188 | self = self; | |
1189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetData",_kwnames,&_argo0)) | |
1190 | return NULL; | |
1191 | if (_argo0) { | |
1192 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1193 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1194 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetData. Expected _wxListItem_p."); | |
1195 | return NULL; | |
1196 | } | |
1197 | } | |
1198 | { | |
1199 | wxPy_BEGIN_ALLOW_THREADS; | |
1200 | _result = (long )wxListItem_GetData(_arg0); | |
1201 | ||
1202 | wxPy_END_ALLOW_THREADS; | |
1203 | } _resultobj = Py_BuildValue("l",_result); | |
1204 | return _resultobj; | |
1205 | } | |
1206 | ||
1207 | #define wxListItem_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1208 | static PyObject *_wrap_wxListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1209 | PyObject * _resultobj; | |
1210 | int _result; | |
1211 | wxListItem * _arg0; | |
1212 | PyObject * _argo0 = 0; | |
1213 | char *_kwnames[] = { "self", NULL }; | |
1214 | ||
1215 | self = self; | |
1216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetWidth",_kwnames,&_argo0)) | |
1217 | return NULL; | |
1218 | if (_argo0) { | |
1219 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1220 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1221 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetWidth. Expected _wxListItem_p."); | |
1222 | return NULL; | |
1223 | } | |
1224 | } | |
1225 | { | |
1226 | wxPy_BEGIN_ALLOW_THREADS; | |
1227 | _result = (int )wxListItem_GetWidth(_arg0); | |
1228 | ||
1229 | wxPy_END_ALLOW_THREADS; | |
1230 | } _resultobj = Py_BuildValue("i",_result); | |
1231 | return _resultobj; | |
1232 | } | |
1233 | ||
1234 | #define wxListItem_GetAlign(_swigobj) (_swigobj->GetAlign()) | |
1235 | static PyObject *_wrap_wxListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1236 | PyObject * _resultobj; | |
1237 | wxListColumnFormat _result; | |
1238 | wxListItem * _arg0; | |
1239 | PyObject * _argo0 = 0; | |
1240 | char *_kwnames[] = { "self", NULL }; | |
1241 | ||
1242 | self = self; | |
1243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAlign",_kwnames,&_argo0)) | |
1244 | return NULL; | |
1245 | if (_argo0) { | |
1246 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1247 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAlign. Expected _wxListItem_p."); | |
1249 | return NULL; | |
1250 | } | |
1251 | } | |
1252 | { | |
1253 | wxPy_BEGIN_ALLOW_THREADS; | |
1254 | _result = (wxListColumnFormat )wxListItem_GetAlign(_arg0); | |
1255 | ||
1256 | wxPy_END_ALLOW_THREADS; | |
1257 | } _resultobj = Py_BuildValue("i",_result); | |
1258 | return _resultobj; | |
1259 | } | |
1260 | ||
1261 | #define wxListItem_GetAttributes(_swigobj) (_swigobj->GetAttributes()) | |
1262 | static PyObject *_wrap_wxListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1263 | PyObject * _resultobj; | |
1264 | wxListItemAttr * _result; | |
1265 | wxListItem * _arg0; | |
1266 | PyObject * _argo0 = 0; | |
1267 | char *_kwnames[] = { "self", NULL }; | |
1268 | char _ptemp[128]; | |
1269 | ||
1270 | self = self; | |
1271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAttributes",_kwnames,&_argo0)) | |
1272 | return NULL; | |
1273 | if (_argo0) { | |
1274 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1275 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1276 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAttributes. Expected _wxListItem_p."); | |
1277 | return NULL; | |
1278 | } | |
1279 | } | |
1280 | { | |
1281 | wxPy_BEGIN_ALLOW_THREADS; | |
1282 | _result = (wxListItemAttr *)wxListItem_GetAttributes(_arg0); | |
1283 | ||
1284 | wxPy_END_ALLOW_THREADS; | |
1285 | } if (_result) { | |
1286 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
1287 | _resultobj = Py_BuildValue("s",_ptemp); | |
1288 | } else { | |
1289 | Py_INCREF(Py_None); | |
1290 | _resultobj = Py_None; | |
1291 | } | |
1292 | return _resultobj; | |
1293 | } | |
1294 | ||
1295 | #define wxListItem_HasAttributes(_swigobj) (_swigobj->HasAttributes()) | |
1296 | static PyObject *_wrap_wxListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1297 | PyObject * _resultobj; | |
1298 | bool _result; | |
1299 | wxListItem * _arg0; | |
1300 | PyObject * _argo0 = 0; | |
1301 | char *_kwnames[] = { "self", NULL }; | |
1302 | ||
1303 | self = self; | |
1304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_HasAttributes",_kwnames,&_argo0)) | |
1305 | return NULL; | |
1306 | if (_argo0) { | |
1307 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1308 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1309 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_HasAttributes. Expected _wxListItem_p."); | |
1310 | return NULL; | |
1311 | } | |
1312 | } | |
1313 | { | |
1314 | wxPy_BEGIN_ALLOW_THREADS; | |
1315 | _result = (bool )wxListItem_HasAttributes(_arg0); | |
1316 | ||
1317 | wxPy_END_ALLOW_THREADS; | |
1318 | } _resultobj = Py_BuildValue("i",_result); | |
1319 | return _resultobj; | |
1320 | } | |
1321 | ||
1322 | #define wxListItem_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
1323 | static PyObject *_wrap_wxListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1324 | PyObject * _resultobj; | |
1325 | wxColour * _result; | |
1326 | wxListItem * _arg0; | |
1327 | PyObject * _argo0 = 0; | |
1328 | char *_kwnames[] = { "self", NULL }; | |
1329 | char _ptemp[128]; | |
1330 | ||
1331 | self = self; | |
1332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetTextColour",_kwnames,&_argo0)) | |
1333 | return NULL; | |
1334 | if (_argo0) { | |
1335 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1336 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1337 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetTextColour. Expected _wxListItem_p."); | |
1338 | return NULL; | |
1339 | } | |
1340 | } | |
1341 | { | |
1342 | wxPy_BEGIN_ALLOW_THREADS; | |
1343 | _result = new wxColour (wxListItem_GetTextColour(_arg0)); | |
1344 | ||
1345 | wxPy_END_ALLOW_THREADS; | |
1346 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
1347 | _resultobj = Py_BuildValue("s",_ptemp); | |
1348 | return _resultobj; | |
1349 | } | |
1350 | ||
1351 | #define wxListItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
1352 | static PyObject *_wrap_wxListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1353 | PyObject * _resultobj; | |
1354 | wxColour * _result; | |
1355 | wxListItem * _arg0; | |
1356 | PyObject * _argo0 = 0; | |
1357 | char *_kwnames[] = { "self", NULL }; | |
1358 | char _ptemp[128]; | |
1359 | ||
1360 | self = self; | |
1361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetBackgroundColour",_kwnames,&_argo0)) | |
1362 | return NULL; | |
1363 | if (_argo0) { | |
1364 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1365 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1366 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetBackgroundColour. Expected _wxListItem_p."); | |
1367 | return NULL; | |
1368 | } | |
1369 | } | |
1370 | { | |
1371 | wxPy_BEGIN_ALLOW_THREADS; | |
1372 | _result = new wxColour (wxListItem_GetBackgroundColour(_arg0)); | |
1373 | ||
1374 | wxPy_END_ALLOW_THREADS; | |
1375 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
1376 | _resultobj = Py_BuildValue("s",_ptemp); | |
1377 | return _resultobj; | |
1378 | } | |
1379 | ||
1380 | #define wxListItem_GetFont(_swigobj) (_swigobj->GetFont()) | |
1381 | static PyObject *_wrap_wxListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1382 | PyObject * _resultobj; | |
1383 | wxFont * _result; | |
1384 | wxListItem * _arg0; | |
1385 | PyObject * _argo0 = 0; | |
1386 | char *_kwnames[] = { "self", NULL }; | |
1387 | char _ptemp[128]; | |
1388 | ||
1389 | self = self; | |
1390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetFont",_kwnames,&_argo0)) | |
1391 | return NULL; | |
1392 | if (_argo0) { | |
1393 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1394 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1395 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetFont. Expected _wxListItem_p."); | |
1396 | return NULL; | |
1397 | } | |
1398 | } | |
1399 | { | |
1400 | wxPy_BEGIN_ALLOW_THREADS; | |
1401 | _result = new wxFont (wxListItem_GetFont(_arg0)); | |
1402 | ||
1403 | wxPy_END_ALLOW_THREADS; | |
1404 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); | |
1405 | _resultobj = Py_BuildValue("s",_ptemp); | |
1406 | return _resultobj; | |
1407 | } | |
1408 | ||
1409 | #define wxListItem_m_mask_set(_swigobj,_swigval) (_swigobj->m_mask = _swigval,_swigval) | |
1410 | static PyObject *_wrap_wxListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1411 | PyObject * _resultobj; | |
1412 | long _result; | |
1413 | wxListItem * _arg0; | |
1414 | long _arg1; | |
1415 | PyObject * _argo0 = 0; | |
1416 | char *_kwnames[] = { "self","m_mask", NULL }; | |
1417 | ||
1418 | self = self; | |
1419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_mask_set",_kwnames,&_argo0,&_arg1)) | |
1420 | return NULL; | |
1421 | if (_argo0) { | |
1422 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1423 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1424 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_set. Expected _wxListItem_p."); | |
1425 | return NULL; | |
1426 | } | |
1427 | } | |
1428 | { | |
1429 | wxPy_BEGIN_ALLOW_THREADS; | |
1430 | _result = (long )wxListItem_m_mask_set(_arg0,_arg1); | |
1431 | ||
1432 | wxPy_END_ALLOW_THREADS; | |
1433 | } _resultobj = Py_BuildValue("l",_result); | |
1434 | return _resultobj; | |
1435 | } | |
1436 | ||
1437 | #define wxListItem_m_mask_get(_swigobj) ((long ) _swigobj->m_mask) | |
1438 | static PyObject *_wrap_wxListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1439 | PyObject * _resultobj; | |
1440 | long _result; | |
1441 | wxListItem * _arg0; | |
1442 | PyObject * _argo0 = 0; | |
1443 | char *_kwnames[] = { "self", NULL }; | |
1444 | ||
1445 | self = self; | |
1446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_mask_get",_kwnames,&_argo0)) | |
1447 | return NULL; | |
1448 | if (_argo0) { | |
1449 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1450 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1451 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_get. Expected _wxListItem_p."); | |
1452 | return NULL; | |
1453 | } | |
1454 | } | |
1455 | { | |
1456 | wxPy_BEGIN_ALLOW_THREADS; | |
1457 | _result = (long )wxListItem_m_mask_get(_arg0); | |
1458 | ||
1459 | wxPy_END_ALLOW_THREADS; | |
1460 | } _resultobj = Py_BuildValue("l",_result); | |
1461 | return _resultobj; | |
1462 | } | |
1463 | ||
1464 | #define wxListItem_m_itemId_set(_swigobj,_swigval) (_swigobj->m_itemId = _swigval,_swigval) | |
1465 | static PyObject *_wrap_wxListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1466 | PyObject * _resultobj; | |
1467 | long _result; | |
1468 | wxListItem * _arg0; | |
1469 | long _arg1; | |
1470 | PyObject * _argo0 = 0; | |
1471 | char *_kwnames[] = { "self","m_itemId", NULL }; | |
1472 | ||
1473 | self = self; | |
1474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_itemId_set",_kwnames,&_argo0,&_arg1)) | |
1475 | return NULL; | |
1476 | if (_argo0) { | |
1477 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1478 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1479 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_set. Expected _wxListItem_p."); | |
1480 | return NULL; | |
1481 | } | |
1482 | } | |
1483 | { | |
1484 | wxPy_BEGIN_ALLOW_THREADS; | |
1485 | _result = (long )wxListItem_m_itemId_set(_arg0,_arg1); | |
1486 | ||
1487 | wxPy_END_ALLOW_THREADS; | |
1488 | } _resultobj = Py_BuildValue("l",_result); | |
1489 | return _resultobj; | |
1490 | } | |
1491 | ||
1492 | #define wxListItem_m_itemId_get(_swigobj) ((long ) _swigobj->m_itemId) | |
1493 | static PyObject *_wrap_wxListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1494 | PyObject * _resultobj; | |
1495 | long _result; | |
1496 | wxListItem * _arg0; | |
1497 | PyObject * _argo0 = 0; | |
1498 | char *_kwnames[] = { "self", NULL }; | |
1499 | ||
1500 | self = self; | |
1501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_itemId_get",_kwnames,&_argo0)) | |
1502 | return NULL; | |
1503 | if (_argo0) { | |
1504 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1505 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1506 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_get. Expected _wxListItem_p."); | |
1507 | return NULL; | |
1508 | } | |
1509 | } | |
1510 | { | |
1511 | wxPy_BEGIN_ALLOW_THREADS; | |
1512 | _result = (long )wxListItem_m_itemId_get(_arg0); | |
1513 | ||
1514 | wxPy_END_ALLOW_THREADS; | |
1515 | } _resultobj = Py_BuildValue("l",_result); | |
1516 | return _resultobj; | |
1517 | } | |
1518 | ||
1519 | #define wxListItem_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval) | |
1520 | static PyObject *_wrap_wxListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1521 | PyObject * _resultobj; | |
1522 | int _result; | |
1523 | wxListItem * _arg0; | |
1524 | int _arg1; | |
1525 | PyObject * _argo0 = 0; | |
1526 | char *_kwnames[] = { "self","m_col", NULL }; | |
1527 | ||
1528 | self = self; | |
1529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_col_set",_kwnames,&_argo0,&_arg1)) | |
1530 | return NULL; | |
1531 | if (_argo0) { | |
1532 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1533 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1534 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_set. Expected _wxListItem_p."); | |
1535 | return NULL; | |
1536 | } | |
1537 | } | |
1538 | { | |
1539 | wxPy_BEGIN_ALLOW_THREADS; | |
1540 | _result = (int )wxListItem_m_col_set(_arg0,_arg1); | |
1541 | ||
1542 | wxPy_END_ALLOW_THREADS; | |
1543 | } _resultobj = Py_BuildValue("i",_result); | |
1544 | return _resultobj; | |
1545 | } | |
1546 | ||
1547 | #define wxListItem_m_col_get(_swigobj) ((int ) _swigobj->m_col) | |
1548 | static PyObject *_wrap_wxListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1549 | PyObject * _resultobj; | |
1550 | int _result; | |
1551 | wxListItem * _arg0; | |
1552 | PyObject * _argo0 = 0; | |
1553 | char *_kwnames[] = { "self", NULL }; | |
1554 | ||
1555 | self = self; | |
1556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_col_get",_kwnames,&_argo0)) | |
1557 | return NULL; | |
1558 | if (_argo0) { | |
1559 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1560 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1561 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_get. Expected _wxListItem_p."); | |
1562 | return NULL; | |
1563 | } | |
1564 | } | |
1565 | { | |
1566 | wxPy_BEGIN_ALLOW_THREADS; | |
1567 | _result = (int )wxListItem_m_col_get(_arg0); | |
1568 | ||
1569 | wxPy_END_ALLOW_THREADS; | |
1570 | } _resultobj = Py_BuildValue("i",_result); | |
1571 | return _resultobj; | |
1572 | } | |
1573 | ||
1574 | #define wxListItem_m_state_set(_swigobj,_swigval) (_swigobj->m_state = _swigval,_swigval) | |
1575 | static PyObject *_wrap_wxListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1576 | PyObject * _resultobj; | |
1577 | long _result; | |
1578 | wxListItem * _arg0; | |
1579 | long _arg1; | |
1580 | PyObject * _argo0 = 0; | |
1581 | char *_kwnames[] = { "self","m_state", NULL }; | |
1582 | ||
1583 | self = self; | |
1584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_state_set",_kwnames,&_argo0,&_arg1)) | |
1585 | return NULL; | |
1586 | if (_argo0) { | |
1587 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1588 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1589 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_set. Expected _wxListItem_p."); | |
1590 | return NULL; | |
1591 | } | |
1592 | } | |
1593 | { | |
1594 | wxPy_BEGIN_ALLOW_THREADS; | |
1595 | _result = (long )wxListItem_m_state_set(_arg0,_arg1); | |
1596 | ||
1597 | wxPy_END_ALLOW_THREADS; | |
1598 | } _resultobj = Py_BuildValue("l",_result); | |
1599 | return _resultobj; | |
1600 | } | |
1601 | ||
1602 | #define wxListItem_m_state_get(_swigobj) ((long ) _swigobj->m_state) | |
1603 | static PyObject *_wrap_wxListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1604 | PyObject * _resultobj; | |
1605 | long _result; | |
1606 | wxListItem * _arg0; | |
1607 | PyObject * _argo0 = 0; | |
1608 | char *_kwnames[] = { "self", NULL }; | |
1609 | ||
1610 | self = self; | |
1611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_state_get",_kwnames,&_argo0)) | |
1612 | return NULL; | |
1613 | if (_argo0) { | |
1614 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1615 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1616 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_get. Expected _wxListItem_p."); | |
1617 | return NULL; | |
1618 | } | |
1619 | } | |
1620 | { | |
1621 | wxPy_BEGIN_ALLOW_THREADS; | |
1622 | _result = (long )wxListItem_m_state_get(_arg0); | |
1623 | ||
1624 | wxPy_END_ALLOW_THREADS; | |
1625 | } _resultobj = Py_BuildValue("l",_result); | |
1626 | return _resultobj; | |
1627 | } | |
1628 | ||
1629 | #define wxListItem_m_stateMask_set(_swigobj,_swigval) (_swigobj->m_stateMask = _swigval,_swigval) | |
1630 | static PyObject *_wrap_wxListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1631 | PyObject * _resultobj; | |
1632 | long _result; | |
1633 | wxListItem * _arg0; | |
1634 | long _arg1; | |
1635 | PyObject * _argo0 = 0; | |
1636 | char *_kwnames[] = { "self","m_stateMask", NULL }; | |
1637 | ||
1638 | self = self; | |
1639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_stateMask_set",_kwnames,&_argo0,&_arg1)) | |
1640 | return NULL; | |
1641 | if (_argo0) { | |
1642 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1643 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1644 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_set. Expected _wxListItem_p."); | |
1645 | return NULL; | |
1646 | } | |
1647 | } | |
1648 | { | |
1649 | wxPy_BEGIN_ALLOW_THREADS; | |
1650 | _result = (long )wxListItem_m_stateMask_set(_arg0,_arg1); | |
1651 | ||
1652 | wxPy_END_ALLOW_THREADS; | |
1653 | } _resultobj = Py_BuildValue("l",_result); | |
1654 | return _resultobj; | |
1655 | } | |
1656 | ||
1657 | #define wxListItem_m_stateMask_get(_swigobj) ((long ) _swigobj->m_stateMask) | |
1658 | static PyObject *_wrap_wxListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1659 | PyObject * _resultobj; | |
1660 | long _result; | |
1661 | wxListItem * _arg0; | |
1662 | PyObject * _argo0 = 0; | |
1663 | char *_kwnames[] = { "self", NULL }; | |
1664 | ||
1665 | self = self; | |
1666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_stateMask_get",_kwnames,&_argo0)) | |
1667 | return NULL; | |
1668 | if (_argo0) { | |
1669 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1670 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1671 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_get. Expected _wxListItem_p."); | |
1672 | return NULL; | |
1673 | } | |
1674 | } | |
1675 | { | |
1676 | wxPy_BEGIN_ALLOW_THREADS; | |
1677 | _result = (long )wxListItem_m_stateMask_get(_arg0); | |
1678 | ||
1679 | wxPy_END_ALLOW_THREADS; | |
1680 | } _resultobj = Py_BuildValue("l",_result); | |
1681 | return _resultobj; | |
1682 | } | |
1683 | ||
1684 | #define wxListItem_m_text_set(_swigobj,_swigval) (_swigobj->m_text = *(_swigval),_swigval) | |
1685 | static PyObject *_wrap_wxListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1686 | PyObject * _resultobj; | |
1687 | wxString * _result; | |
1688 | wxListItem * _arg0; | |
1689 | wxString * _arg1; | |
1690 | PyObject * _argo0 = 0; | |
1691 | PyObject * _obj1 = 0; | |
1692 | char *_kwnames[] = { "self","m_text", NULL }; | |
1693 | ||
1694 | self = self; | |
1695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_m_text_set",_kwnames,&_argo0,&_obj1)) | |
1696 | return NULL; | |
1697 | if (_argo0) { | |
1698 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1699 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1700 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_set. Expected _wxListItem_p."); | |
1701 | return NULL; | |
1702 | } | |
1703 | } | |
1704 | { | |
1705 | if (!PyString_Check(_obj1)) { | |
1706 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1707 | return NULL; | |
1708 | } | |
1709 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
1710 | } | |
1711 | { | |
1712 | wxPy_BEGIN_ALLOW_THREADS; | |
1713 | _result = (wxString *)wxListItem_m_text_set(_arg0,_arg1); | |
1714 | ||
1715 | wxPy_END_ALLOW_THREADS; | |
1716 | }{ | |
1717 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1718 | } | |
1719 | { | |
1720 | if (_obj1) | |
1721 | delete _arg1; | |
1722 | } | |
1723 | return _resultobj; | |
1724 | } | |
1725 | ||
1726 | #define wxListItem_m_text_get(_swigobj) (&_swigobj->m_text) | |
1727 | static PyObject *_wrap_wxListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1728 | PyObject * _resultobj; | |
1729 | wxString * _result; | |
1730 | wxListItem * _arg0; | |
1731 | PyObject * _argo0 = 0; | |
1732 | char *_kwnames[] = { "self", NULL }; | |
1733 | ||
1734 | self = self; | |
1735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_text_get",_kwnames,&_argo0)) | |
1736 | return NULL; | |
1737 | if (_argo0) { | |
1738 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1739 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1740 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_get. Expected _wxListItem_p."); | |
1741 | return NULL; | |
1742 | } | |
1743 | } | |
1744 | { | |
1745 | wxPy_BEGIN_ALLOW_THREADS; | |
1746 | _result = (wxString *)wxListItem_m_text_get(_arg0); | |
1747 | ||
1748 | wxPy_END_ALLOW_THREADS; | |
1749 | }{ | |
1750 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1751 | } | |
1752 | return _resultobj; | |
1753 | } | |
1754 | ||
1755 | #define wxListItem_m_image_set(_swigobj,_swigval) (_swigobj->m_image = _swigval,_swigval) | |
1756 | static PyObject *_wrap_wxListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1757 | PyObject * _resultobj; | |
1758 | int _result; | |
1759 | wxListItem * _arg0; | |
1760 | int _arg1; | |
1761 | PyObject * _argo0 = 0; | |
1762 | char *_kwnames[] = { "self","m_image", NULL }; | |
1763 | ||
1764 | self = self; | |
1765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_image_set",_kwnames,&_argo0,&_arg1)) | |
1766 | return NULL; | |
1767 | if (_argo0) { | |
1768 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1769 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1770 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_set. Expected _wxListItem_p."); | |
1771 | return NULL; | |
1772 | } | |
1773 | } | |
1774 | { | |
1775 | wxPy_BEGIN_ALLOW_THREADS; | |
1776 | _result = (int )wxListItem_m_image_set(_arg0,_arg1); | |
1777 | ||
1778 | wxPy_END_ALLOW_THREADS; | |
1779 | } _resultobj = Py_BuildValue("i",_result); | |
1780 | return _resultobj; | |
1781 | } | |
1782 | ||
1783 | #define wxListItem_m_image_get(_swigobj) ((int ) _swigobj->m_image) | |
1784 | static PyObject *_wrap_wxListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1785 | PyObject * _resultobj; | |
1786 | int _result; | |
1787 | wxListItem * _arg0; | |
1788 | PyObject * _argo0 = 0; | |
1789 | char *_kwnames[] = { "self", NULL }; | |
1790 | ||
1791 | self = self; | |
1792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_image_get",_kwnames,&_argo0)) | |
1793 | return NULL; | |
1794 | if (_argo0) { | |
1795 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1796 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1797 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_get. Expected _wxListItem_p."); | |
1798 | return NULL; | |
1799 | } | |
1800 | } | |
1801 | { | |
1802 | wxPy_BEGIN_ALLOW_THREADS; | |
1803 | _result = (int )wxListItem_m_image_get(_arg0); | |
1804 | ||
1805 | wxPy_END_ALLOW_THREADS; | |
1806 | } _resultobj = Py_BuildValue("i",_result); | |
1807 | return _resultobj; | |
1808 | } | |
1809 | ||
1810 | #define wxListItem_m_data_set(_swigobj,_swigval) (_swigobj->m_data = _swigval,_swigval) | |
1811 | static PyObject *_wrap_wxListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1812 | PyObject * _resultobj; | |
1813 | long _result; | |
1814 | wxListItem * _arg0; | |
1815 | long _arg1; | |
1816 | PyObject * _argo0 = 0; | |
1817 | char *_kwnames[] = { "self","m_data", NULL }; | |
1818 | ||
1819 | self = self; | |
1820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_data_set",_kwnames,&_argo0,&_arg1)) | |
1821 | return NULL; | |
1822 | if (_argo0) { | |
1823 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1824 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1825 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_set. Expected _wxListItem_p."); | |
1826 | return NULL; | |
1827 | } | |
1828 | } | |
1829 | { | |
1830 | wxPy_BEGIN_ALLOW_THREADS; | |
1831 | _result = (long )wxListItem_m_data_set(_arg0,_arg1); | |
1832 | ||
1833 | wxPy_END_ALLOW_THREADS; | |
1834 | } _resultobj = Py_BuildValue("l",_result); | |
1835 | return _resultobj; | |
1836 | } | |
1837 | ||
1838 | #define wxListItem_m_data_get(_swigobj) ((long ) _swigobj->m_data) | |
1839 | static PyObject *_wrap_wxListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1840 | PyObject * _resultobj; | |
1841 | long _result; | |
1842 | wxListItem * _arg0; | |
1843 | PyObject * _argo0 = 0; | |
1844 | char *_kwnames[] = { "self", NULL }; | |
1845 | ||
1846 | self = self; | |
1847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_data_get",_kwnames,&_argo0)) | |
1848 | return NULL; | |
1849 | if (_argo0) { | |
1850 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1851 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1852 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_get. Expected _wxListItem_p."); | |
1853 | return NULL; | |
1854 | } | |
1855 | } | |
1856 | { | |
1857 | wxPy_BEGIN_ALLOW_THREADS; | |
1858 | _result = (long )wxListItem_m_data_get(_arg0); | |
1859 | ||
1860 | wxPy_END_ALLOW_THREADS; | |
1861 | } _resultobj = Py_BuildValue("l",_result); | |
1862 | return _resultobj; | |
1863 | } | |
1864 | ||
1865 | #define wxListItem_m_format_set(_swigobj,_swigval) (_swigobj->m_format = _swigval,_swigval) | |
1866 | static PyObject *_wrap_wxListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1867 | PyObject * _resultobj; | |
1868 | int _result; | |
1869 | wxListItem * _arg0; | |
1870 | int _arg1; | |
1871 | PyObject * _argo0 = 0; | |
1872 | char *_kwnames[] = { "self","m_format", NULL }; | |
1873 | ||
1874 | self = self; | |
1875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_format_set",_kwnames,&_argo0,&_arg1)) | |
1876 | return NULL; | |
1877 | if (_argo0) { | |
1878 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1879 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1880 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_set. Expected _wxListItem_p."); | |
1881 | return NULL; | |
1882 | } | |
1883 | } | |
1884 | { | |
1885 | wxPy_BEGIN_ALLOW_THREADS; | |
1886 | _result = (int )wxListItem_m_format_set(_arg0,_arg1); | |
1887 | ||
1888 | wxPy_END_ALLOW_THREADS; | |
1889 | } _resultobj = Py_BuildValue("i",_result); | |
1890 | return _resultobj; | |
1891 | } | |
1892 | ||
1893 | #define wxListItem_m_format_get(_swigobj) ((int ) _swigobj->m_format) | |
1894 | static PyObject *_wrap_wxListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1895 | PyObject * _resultobj; | |
1896 | int _result; | |
1897 | wxListItem * _arg0; | |
1898 | PyObject * _argo0 = 0; | |
1899 | char *_kwnames[] = { "self", NULL }; | |
1900 | ||
1901 | self = self; | |
1902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_format_get",_kwnames,&_argo0)) | |
1903 | return NULL; | |
1904 | if (_argo0) { | |
1905 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1906 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1907 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_get. Expected _wxListItem_p."); | |
1908 | return NULL; | |
1909 | } | |
1910 | } | |
1911 | { | |
1912 | wxPy_BEGIN_ALLOW_THREADS; | |
1913 | _result = (int )wxListItem_m_format_get(_arg0); | |
1914 | ||
1915 | wxPy_END_ALLOW_THREADS; | |
1916 | } _resultobj = Py_BuildValue("i",_result); | |
1917 | return _resultobj; | |
8ab979d7 RD |
1918 | } |
1919 | ||
f6bcfd97 BP |
1920 | #define wxListItem_m_width_set(_swigobj,_swigval) (_swigobj->m_width = _swigval,_swigval) |
1921 | static PyObject *_wrap_wxListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 1922 | PyObject * _resultobj; |
f6bcfd97 | 1923 | int _result; |
af309447 | 1924 | wxListItem * _arg0; |
f6bcfd97 | 1925 | int _arg1; |
1d99702e | 1926 | PyObject * _argo0 = 0; |
f6bcfd97 | 1927 | char *_kwnames[] = { "self","m_width", NULL }; |
af309447 RD |
1928 | |
1929 | self = self; | |
f6bcfd97 | 1930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_width_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 1931 | return NULL; |
1d99702e RD |
1932 | if (_argo0) { |
1933 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1934 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 1935 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_set. Expected _wxListItem_p."); |
af309447 RD |
1936 | return NULL; |
1937 | } | |
1938 | } | |
cf694132 RD |
1939 | { |
1940 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 1941 | _result = (int )wxListItem_m_width_set(_arg0,_arg1); |
cf694132 RD |
1942 | |
1943 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 1944 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
1945 | return _resultobj; |
1946 | } | |
1947 | ||
f6bcfd97 BP |
1948 | #define wxListItem_m_width_get(_swigobj) ((int ) _swigobj->m_width) |
1949 | static PyObject *_wrap_wxListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 1950 | PyObject * _resultobj; |
f6bcfd97 | 1951 | int _result; |
8ab979d7 | 1952 | wxListItem * _arg0; |
1d99702e | 1953 | PyObject * _argo0 = 0; |
efc5f224 | 1954 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1955 | |
1956 | self = self; | |
f6bcfd97 | 1957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_width_get",_kwnames,&_argo0)) |
8ab979d7 | 1958 | return NULL; |
1d99702e RD |
1959 | if (_argo0) { |
1960 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1961 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 BP |
1962 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_get. Expected _wxListItem_p."); |
1963 | return NULL; | |
1964 | } | |
1965 | } | |
1966 | { | |
1967 | wxPy_BEGIN_ALLOW_THREADS; | |
1968 | _result = (int )wxListItem_m_width_get(_arg0); | |
1969 | ||
1970 | wxPy_END_ALLOW_THREADS; | |
1971 | } _resultobj = Py_BuildValue("i",_result); | |
1972 | return _resultobj; | |
1973 | } | |
1974 | ||
c368d904 RD |
1975 | static void *SwigwxListEventTowxNotifyEvent(void *ptr) { |
1976 | wxListEvent *src; | |
1977 | wxNotifyEvent *dest; | |
1978 | src = (wxListEvent *) ptr; | |
1979 | dest = (wxNotifyEvent *) src; | |
1980 | return (void *) dest; | |
1981 | } | |
1982 | ||
f6bcfd97 BP |
1983 | static void *SwigwxListEventTowxCommandEvent(void *ptr) { |
1984 | wxListEvent *src; | |
1985 | wxCommandEvent *dest; | |
1986 | src = (wxListEvent *) ptr; | |
1987 | dest = (wxCommandEvent *) src; | |
1988 | return (void *) dest; | |
1989 | } | |
1990 | ||
1991 | static void *SwigwxListEventTowxEvent(void *ptr) { | |
1992 | wxListEvent *src; | |
1993 | wxEvent *dest; | |
1994 | src = (wxListEvent *) ptr; | |
1995 | dest = (wxEvent *) src; | |
1996 | return (void *) dest; | |
1997 | } | |
1998 | ||
1999 | #define wxListEvent_m_code_set(_swigobj,_swigval) (_swigobj->m_code = _swigval,_swigval) | |
2000 | static PyObject *_wrap_wxListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2001 | PyObject * _resultobj; | |
2002 | int _result; | |
2003 | wxListEvent * _arg0; | |
2004 | int _arg1; | |
2005 | PyObject * _argo0 = 0; | |
2006 | char *_kwnames[] = { "self","m_code", NULL }; | |
2007 | ||
2008 | self = self; | |
2009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_code_set",_kwnames,&_argo0,&_arg1)) | |
2010 | return NULL; | |
2011 | if (_argo0) { | |
2012 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2013 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2014 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_code_set. Expected _wxListEvent_p."); | |
2015 | return NULL; | |
2016 | } | |
2017 | } | |
2018 | { | |
2019 | wxPy_BEGIN_ALLOW_THREADS; | |
2020 | _result = (int )wxListEvent_m_code_set(_arg0,_arg1); | |
2021 | ||
2022 | wxPy_END_ALLOW_THREADS; | |
2023 | } _resultobj = Py_BuildValue("i",_result); | |
2024 | return _resultobj; | |
2025 | } | |
2026 | ||
2027 | #define wxListEvent_m_code_get(_swigobj) ((int ) _swigobj->m_code) | |
2028 | static PyObject *_wrap_wxListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2029 | PyObject * _resultobj; | |
2030 | int _result; | |
2031 | wxListEvent * _arg0; | |
2032 | PyObject * _argo0 = 0; | |
2033 | char *_kwnames[] = { "self", NULL }; | |
2034 | ||
2035 | self = self; | |
2036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_code_get",_kwnames,&_argo0)) | |
2037 | return NULL; | |
2038 | if (_argo0) { | |
2039 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2040 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2041 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_code_get. Expected _wxListEvent_p."); | |
2042 | return NULL; | |
2043 | } | |
2044 | } | |
2045 | { | |
2046 | wxPy_BEGIN_ALLOW_THREADS; | |
2047 | _result = (int )wxListEvent_m_code_get(_arg0); | |
2048 | ||
2049 | wxPy_END_ALLOW_THREADS; | |
2050 | } _resultobj = Py_BuildValue("i",_result); | |
2051 | return _resultobj; | |
2052 | } | |
2053 | ||
2054 | #define wxListEvent_m_itemIndex_set(_swigobj,_swigval) (_swigobj->m_itemIndex = _swigval,_swigval) | |
2055 | static PyObject *_wrap_wxListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2056 | PyObject * _resultobj; | |
2057 | long _result; | |
2058 | wxListEvent * _arg0; | |
2059 | long _arg1; | |
2060 | PyObject * _argo0 = 0; | |
2061 | char *_kwnames[] = { "self","m_itemIndex", NULL }; | |
2062 | ||
2063 | self = self; | |
2064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListEvent_m_itemIndex_set",_kwnames,&_argo0,&_arg1)) | |
2065 | return NULL; | |
2066 | if (_argo0) { | |
2067 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2068 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2069 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_set. Expected _wxListEvent_p."); | |
2070 | return NULL; | |
2071 | } | |
2072 | } | |
2073 | { | |
2074 | wxPy_BEGIN_ALLOW_THREADS; | |
2075 | _result = (long )wxListEvent_m_itemIndex_set(_arg0,_arg1); | |
2076 | ||
2077 | wxPy_END_ALLOW_THREADS; | |
2078 | } _resultobj = Py_BuildValue("l",_result); | |
2079 | return _resultobj; | |
2080 | } | |
2081 | ||
2082 | #define wxListEvent_m_itemIndex_get(_swigobj) ((long ) _swigobj->m_itemIndex) | |
2083 | static PyObject *_wrap_wxListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2084 | PyObject * _resultobj; | |
2085 | long _result; | |
2086 | wxListEvent * _arg0; | |
2087 | PyObject * _argo0 = 0; | |
2088 | char *_kwnames[] = { "self", NULL }; | |
2089 | ||
2090 | self = self; | |
2091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_itemIndex_get",_kwnames,&_argo0)) | |
2092 | return NULL; | |
2093 | if (_argo0) { | |
2094 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2095 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2096 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_get. Expected _wxListEvent_p."); | |
2097 | return NULL; | |
2098 | } | |
2099 | } | |
2100 | { | |
2101 | wxPy_BEGIN_ALLOW_THREADS; | |
2102 | _result = (long )wxListEvent_m_itemIndex_get(_arg0); | |
2103 | ||
2104 | wxPy_END_ALLOW_THREADS; | |
2105 | } _resultobj = Py_BuildValue("l",_result); | |
2106 | return _resultobj; | |
2107 | } | |
2108 | ||
2109 | #define wxListEvent_m_oldItemIndex_set(_swigobj,_swigval) (_swigobj->m_oldItemIndex = _swigval,_swigval) | |
2110 | static PyObject *_wrap_wxListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2111 | PyObject * _resultobj; | |
2112 | long _result; | |
2113 | wxListEvent * _arg0; | |
2114 | long _arg1; | |
2115 | PyObject * _argo0 = 0; | |
2116 | char *_kwnames[] = { "self","m_oldItemIndex", NULL }; | |
2117 | ||
2118 | self = self; | |
2119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListEvent_m_oldItemIndex_set",_kwnames,&_argo0,&_arg1)) | |
2120 | return NULL; | |
2121 | if (_argo0) { | |
2122 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2123 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2124 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_set. Expected _wxListEvent_p."); | |
2125 | return NULL; | |
2126 | } | |
2127 | } | |
2128 | { | |
2129 | wxPy_BEGIN_ALLOW_THREADS; | |
2130 | _result = (long )wxListEvent_m_oldItemIndex_set(_arg0,_arg1); | |
2131 | ||
2132 | wxPy_END_ALLOW_THREADS; | |
2133 | } _resultobj = Py_BuildValue("l",_result); | |
2134 | return _resultobj; | |
2135 | } | |
2136 | ||
2137 | #define wxListEvent_m_oldItemIndex_get(_swigobj) ((long ) _swigobj->m_oldItemIndex) | |
2138 | static PyObject *_wrap_wxListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2139 | PyObject * _resultobj; | |
2140 | long _result; | |
2141 | wxListEvent * _arg0; | |
2142 | PyObject * _argo0 = 0; | |
2143 | char *_kwnames[] = { "self", NULL }; | |
2144 | ||
2145 | self = self; | |
2146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_oldItemIndex_get",_kwnames,&_argo0)) | |
2147 | return NULL; | |
2148 | if (_argo0) { | |
2149 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2150 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2151 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_get. Expected _wxListEvent_p."); | |
2152 | return NULL; | |
2153 | } | |
2154 | } | |
2155 | { | |
2156 | wxPy_BEGIN_ALLOW_THREADS; | |
2157 | _result = (long )wxListEvent_m_oldItemIndex_get(_arg0); | |
2158 | ||
2159 | wxPy_END_ALLOW_THREADS; | |
2160 | } _resultobj = Py_BuildValue("l",_result); | |
2161 | return _resultobj; | |
2162 | } | |
2163 | ||
2164 | #define wxListEvent_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval) | |
2165 | static PyObject *_wrap_wxListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2166 | PyObject * _resultobj; | |
2167 | int _result; | |
2168 | wxListEvent * _arg0; | |
2169 | int _arg1; | |
2170 | PyObject * _argo0 = 0; | |
2171 | char *_kwnames[] = { "self","m_col", NULL }; | |
2172 | ||
2173 | self = self; | |
2174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_col_set",_kwnames,&_argo0,&_arg1)) | |
2175 | return NULL; | |
2176 | if (_argo0) { | |
2177 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2178 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2179 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_set. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2180 | return NULL; |
2181 | } | |
2182 | } | |
cf694132 RD |
2183 | { |
2184 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2185 | _result = (int )wxListEvent_m_col_set(_arg0,_arg1); |
cf694132 RD |
2186 | |
2187 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 2188 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2189 | return _resultobj; |
2190 | } | |
2191 | ||
f6bcfd97 BP |
2192 | #define wxListEvent_m_col_get(_swigobj) ((int ) _swigobj->m_col) |
2193 | static PyObject *_wrap_wxListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
2194 | PyObject * _resultobj; |
2195 | int _result; | |
f6bcfd97 | 2196 | wxListEvent * _arg0; |
1d99702e | 2197 | PyObject * _argo0 = 0; |
f6bcfd97 | 2198 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2199 | |
2200 | self = self; | |
f6bcfd97 | 2201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_col_get",_kwnames,&_argo0)) |
af309447 | 2202 | return NULL; |
1d99702e RD |
2203 | if (_argo0) { |
2204 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2205 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2206 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_get. Expected _wxListEvent_p."); | |
af309447 RD |
2207 | return NULL; |
2208 | } | |
2209 | } | |
cf694132 RD |
2210 | { |
2211 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2212 | _result = (int )wxListEvent_m_col_get(_arg0); |
cf694132 RD |
2213 | |
2214 | wxPy_END_ALLOW_THREADS; | |
2215 | } _resultobj = Py_BuildValue("i",_result); | |
af309447 RD |
2216 | return _resultobj; |
2217 | } | |
2218 | ||
f6bcfd97 BP |
2219 | #define wxListEvent_m_cancelled_set(_swigobj,_swigval) (_swigobj->m_cancelled = _swigval,_swigval) |
2220 | static PyObject *_wrap_wxListEvent_m_cancelled_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2221 | PyObject * _resultobj; |
f6bcfd97 BP |
2222 | bool _result; |
2223 | wxListEvent * _arg0; | |
2224 | bool _arg1; | |
1d99702e | 2225 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
2226 | int tempbool1; |
2227 | char *_kwnames[] = { "self","m_cancelled", NULL }; | |
8ab979d7 RD |
2228 | |
2229 | self = self; | |
f6bcfd97 | 2230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_cancelled_set",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 2231 | return NULL; |
1d99702e RD |
2232 | if (_argo0) { |
2233 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2234 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2235 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_cancelled_set. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2236 | return NULL; |
2237 | } | |
2238 | } | |
f6bcfd97 | 2239 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
2240 | { |
2241 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2242 | _result = (bool )wxListEvent_m_cancelled_set(_arg0,_arg1); |
cf694132 RD |
2243 | |
2244 | wxPy_END_ALLOW_THREADS; | |
2245 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2246 | return _resultobj; |
2247 | } | |
2248 | ||
f6bcfd97 BP |
2249 | #define wxListEvent_m_cancelled_get(_swigobj) ((bool ) _swigobj->m_cancelled) |
2250 | static PyObject *_wrap_wxListEvent_m_cancelled_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2251 | PyObject * _resultobj; |
f6bcfd97 BP |
2252 | bool _result; |
2253 | wxListEvent * _arg0; | |
1d99702e | 2254 | PyObject * _argo0 = 0; |
f6bcfd97 | 2255 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2256 | |
2257 | self = self; | |
f6bcfd97 | 2258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_cancelled_get",_kwnames,&_argo0)) |
af309447 | 2259 | return NULL; |
1d99702e RD |
2260 | if (_argo0) { |
2261 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2262 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2263 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_cancelled_get. Expected _wxListEvent_p."); | |
af309447 RD |
2264 | return NULL; |
2265 | } | |
2266 | } | |
cf694132 RD |
2267 | { |
2268 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2269 | _result = (bool )wxListEvent_m_cancelled_get(_arg0); |
cf694132 RD |
2270 | |
2271 | wxPy_END_ALLOW_THREADS; | |
2272 | } _resultobj = Py_BuildValue("i",_result); | |
af309447 RD |
2273 | return _resultobj; |
2274 | } | |
2275 | ||
f6bcfd97 BP |
2276 | #define wxListEvent_m_pointDrag_set(_swigobj,_swigval) (_swigobj->m_pointDrag = *(_swigval),_swigval) |
2277 | static PyObject *_wrap_wxListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2278 | PyObject * _resultobj; |
f6bcfd97 BP |
2279 | wxPoint * _result; |
2280 | wxListEvent * _arg0; | |
2281 | wxPoint * _arg1; | |
1d99702e | 2282 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
2283 | wxPoint temp; |
2284 | PyObject * _obj1 = 0; | |
2285 | char *_kwnames[] = { "self","m_pointDrag", NULL }; | |
2286 | char _ptemp[128]; | |
8ab979d7 RD |
2287 | |
2288 | self = self; | |
f6bcfd97 | 2289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListEvent_m_pointDrag_set",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 2290 | return NULL; |
1d99702e RD |
2291 | if (_argo0) { |
2292 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2293 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2294 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_set. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2295 | return NULL; |
2296 | } | |
2297 | } | |
f6bcfd97 BP |
2298 | { |
2299 | _arg1 = &temp; | |
2300 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2301 | return NULL; | |
2302 | } | |
cf694132 RD |
2303 | { |
2304 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2305 | _result = (wxPoint *)wxListEvent_m_pointDrag_set(_arg0,_arg1); |
cf694132 RD |
2306 | |
2307 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
2308 | } if (_result) { |
2309 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
2310 | _resultobj = Py_BuildValue("s",_ptemp); | |
2311 | } else { | |
2312 | Py_INCREF(Py_None); | |
2313 | _resultobj = Py_None; | |
2314 | } | |
8ab979d7 RD |
2315 | return _resultobj; |
2316 | } | |
2317 | ||
f6bcfd97 BP |
2318 | #define wxListEvent_m_pointDrag_get(_swigobj) (&_swigobj->m_pointDrag) |
2319 | static PyObject *_wrap_wxListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2320 | PyObject * _resultobj; |
f6bcfd97 BP |
2321 | wxPoint * _result; |
2322 | wxListEvent * _arg0; | |
2323 | PyObject * _argo0 = 0; | |
2324 | char *_kwnames[] = { "self", NULL }; | |
8ab979d7 RD |
2325 | char _ptemp[128]; |
2326 | ||
2327 | self = self; | |
f6bcfd97 BP |
2328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_pointDrag_get",_kwnames,&_argo0)) |
2329 | return NULL; | |
2330 | if (_argo0) { | |
2331 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2332 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2333 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_get. Expected _wxListEvent_p."); | |
8ab979d7 | 2334 | return NULL; |
f6bcfd97 BP |
2335 | } |
2336 | } | |
cf694132 RD |
2337 | { |
2338 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2339 | _result = (wxPoint *)wxListEvent_m_pointDrag_get(_arg0); |
cf694132 RD |
2340 | |
2341 | wxPy_END_ALLOW_THREADS; | |
1d99702e | 2342 | } if (_result) { |
f6bcfd97 | 2343 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); |
1d99702e RD |
2344 | _resultobj = Py_BuildValue("s",_ptemp); |
2345 | } else { | |
2346 | Py_INCREF(Py_None); | |
2347 | _resultobj = Py_None; | |
2348 | } | |
8ab979d7 RD |
2349 | return _resultobj; |
2350 | } | |
2351 | ||
f6bcfd97 BP |
2352 | #define wxListEvent_m_item_set(_swigobj,_swigval) (_swigobj->m_item = *(_swigval),_swigval) |
2353 | static PyObject *_wrap_wxListEvent_m_item_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2354 | PyObject * _resultobj; |
f6bcfd97 BP |
2355 | wxListItem * _result; |
2356 | wxListEvent * _arg0; | |
2357 | wxListItem * _arg1; | |
1d99702e | 2358 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
2359 | PyObject * _argo1 = 0; |
2360 | char *_kwnames[] = { "self","m_item", NULL }; | |
2361 | char _ptemp[128]; | |
8ab979d7 RD |
2362 | |
2363 | self = self; | |
f6bcfd97 | 2364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListEvent_m_item_set",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 2365 | return NULL; |
1d99702e RD |
2366 | if (_argo0) { |
2367 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2368 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2369 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_set. Expected _wxListEvent_p."); | |
2370 | return NULL; | |
2371 | } | |
2372 | } | |
2373 | if (_argo1) { | |
2374 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2375 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
2376 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListEvent_m_item_set. Expected _wxListItem_p."); | |
8ab979d7 RD |
2377 | return NULL; |
2378 | } | |
2379 | } | |
cf694132 RD |
2380 | { |
2381 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2382 | _result = (wxListItem *)wxListEvent_m_item_set(_arg0,_arg1); |
cf694132 RD |
2383 | |
2384 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
2385 | } if (_result) { |
2386 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p"); | |
2387 | _resultobj = Py_BuildValue("s",_ptemp); | |
2388 | } else { | |
2389 | Py_INCREF(Py_None); | |
2390 | _resultobj = Py_None; | |
2391 | } | |
8ab979d7 RD |
2392 | return _resultobj; |
2393 | } | |
2394 | ||
f6bcfd97 BP |
2395 | #define wxListEvent_m_item_get(_swigobj) (&_swigobj->m_item) |
2396 | static PyObject *_wrap_wxListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2397 | PyObject * _resultobj; |
f6bcfd97 | 2398 | wxListItem * _result; |
af309447 | 2399 | wxListEvent * _arg0; |
1d99702e | 2400 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
2401 | char *_kwnames[] = { "self", NULL }; |
2402 | char _ptemp[128]; | |
af309447 RD |
2403 | |
2404 | self = self; | |
f6bcfd97 | 2405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_item_get",_kwnames,&_argo0)) |
af309447 | 2406 | return NULL; |
1d99702e RD |
2407 | if (_argo0) { |
2408 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2409 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_get. Expected _wxListEvent_p."); |
af309447 RD |
2411 | return NULL; |
2412 | } | |
2413 | } | |
cf694132 RD |
2414 | { |
2415 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2416 | _result = (wxListItem *)wxListEvent_m_item_get(_arg0); |
cf694132 RD |
2417 | |
2418 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
2419 | } if (_result) { |
2420 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p"); | |
2421 | _resultobj = Py_BuildValue("s",_ptemp); | |
2422 | } else { | |
2423 | Py_INCREF(Py_None); | |
2424 | _resultobj = Py_None; | |
2425 | } | |
af309447 RD |
2426 | return _resultobj; |
2427 | } | |
2428 | ||
f6bcfd97 BP |
2429 | #define wxListEvent_GetCode(_swigobj) (_swigobj->GetCode()) |
2430 | static PyObject *_wrap_wxListEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2431 | PyObject * _resultobj; |
2432 | int _result; | |
2433 | wxListEvent * _arg0; | |
1d99702e | 2434 | PyObject * _argo0 = 0; |
efc5f224 | 2435 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2436 | |
2437 | self = self; | |
f6bcfd97 | 2438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCode",_kwnames,&_argo0)) |
8ab979d7 | 2439 | return NULL; |
1d99702e RD |
2440 | if (_argo0) { |
2441 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2442 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2443 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCode. Expected _wxListEvent_p."); |
8ab979d7 RD |
2444 | return NULL; |
2445 | } | |
2446 | } | |
cf694132 RD |
2447 | { |
2448 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2449 | _result = (int )wxListEvent_GetCode(_arg0); |
cf694132 RD |
2450 | |
2451 | wxPy_END_ALLOW_THREADS; | |
2452 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2453 | return _resultobj; |
2454 | } | |
2455 | ||
f6bcfd97 BP |
2456 | #define wxListEvent_GetIndex(_swigobj) (_swigobj->GetIndex()) |
2457 | static PyObject *_wrap_wxListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
2458 | PyObject * _resultobj; |
2459 | long _result; | |
2460 | wxListEvent * _arg0; | |
1d99702e | 2461 | PyObject * _argo0 = 0; |
f6bcfd97 | 2462 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2463 | |
2464 | self = self; | |
f6bcfd97 | 2465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetIndex",_kwnames,&_argo0)) |
af309447 | 2466 | return NULL; |
1d99702e RD |
2467 | if (_argo0) { |
2468 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2469 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2470 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetIndex. Expected _wxListEvent_p."); |
af309447 RD |
2471 | return NULL; |
2472 | } | |
2473 | } | |
cf694132 RD |
2474 | { |
2475 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2476 | _result = (long )wxListEvent_GetIndex(_arg0); |
cf694132 RD |
2477 | |
2478 | wxPy_END_ALLOW_THREADS; | |
2479 | } _resultobj = Py_BuildValue("l",_result); | |
af309447 RD |
2480 | return _resultobj; |
2481 | } | |
2482 | ||
f6bcfd97 BP |
2483 | #define wxListEvent_GetOldIndex(_swigobj) (_swigobj->GetOldIndex()) |
2484 | static PyObject *_wrap_wxListEvent_GetOldIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2485 | PyObject * _resultobj; |
2486 | long _result; | |
2487 | wxListEvent * _arg0; | |
1d99702e | 2488 | PyObject * _argo0 = 0; |
efc5f224 | 2489 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2490 | |
2491 | self = self; | |
f6bcfd97 | 2492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetOldIndex",_kwnames,&_argo0)) |
8ab979d7 | 2493 | return NULL; |
1d99702e RD |
2494 | if (_argo0) { |
2495 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2496 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetOldIndex. Expected _wxListEvent_p."); |
8ab979d7 RD |
2498 | return NULL; |
2499 | } | |
2500 | } | |
cf694132 RD |
2501 | { |
2502 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2503 | _result = (long )wxListEvent_GetOldIndex(_arg0); |
cf694132 RD |
2504 | |
2505 | wxPy_END_ALLOW_THREADS; | |
2506 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
2507 | return _resultobj; |
2508 | } | |
2509 | ||
f6bcfd97 BP |
2510 | #define wxListEvent_GetOldItem(_swigobj) (_swigobj->GetOldItem()) |
2511 | static PyObject *_wrap_wxListEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
2512 | PyObject * _resultobj; |
2513 | long _result; | |
2514 | wxListEvent * _arg0; | |
1d99702e | 2515 | PyObject * _argo0 = 0; |
f6bcfd97 | 2516 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2517 | |
2518 | self = self; | |
f6bcfd97 | 2519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetOldItem",_kwnames,&_argo0)) |
af309447 | 2520 | return NULL; |
1d99702e RD |
2521 | if (_argo0) { |
2522 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2523 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2524 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetOldItem. Expected _wxListEvent_p."); |
af309447 RD |
2525 | return NULL; |
2526 | } | |
2527 | } | |
cf694132 RD |
2528 | { |
2529 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2530 | _result = (long )wxListEvent_GetOldItem(_arg0); |
cf694132 RD |
2531 | |
2532 | wxPy_END_ALLOW_THREADS; | |
2533 | } _resultobj = Py_BuildValue("l",_result); | |
af309447 RD |
2534 | return _resultobj; |
2535 | } | |
2536 | ||
f6bcfd97 BP |
2537 | #define wxListEvent_GetColumn(_swigobj) (_swigobj->GetColumn()) |
2538 | static PyObject *_wrap_wxListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2539 | PyObject * _resultobj; |
f6bcfd97 | 2540 | int _result; |
8ab979d7 | 2541 | wxListEvent * _arg0; |
1d99702e | 2542 | PyObject * _argo0 = 0; |
efc5f224 | 2543 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2544 | |
2545 | self = self; | |
f6bcfd97 | 2546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetColumn",_kwnames,&_argo0)) |
8ab979d7 | 2547 | return NULL; |
1d99702e RD |
2548 | if (_argo0) { |
2549 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2550 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2551 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetColumn. Expected _wxListEvent_p."); |
8ab979d7 RD |
2552 | return NULL; |
2553 | } | |
2554 | } | |
cf694132 RD |
2555 | { |
2556 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2557 | _result = (int )wxListEvent_GetColumn(_arg0); |
cf694132 RD |
2558 | |
2559 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 2560 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2561 | return _resultobj; |
2562 | } | |
2563 | ||
f6bcfd97 BP |
2564 | #define wxListEvent_Cancelled(_swigobj) (_swigobj->Cancelled()) |
2565 | static PyObject *_wrap_wxListEvent_Cancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2566 | PyObject * _resultobj; |
f6bcfd97 | 2567 | bool _result; |
af309447 | 2568 | wxListEvent * _arg0; |
1d99702e | 2569 | PyObject * _argo0 = 0; |
f6bcfd97 | 2570 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2571 | |
2572 | self = self; | |
f6bcfd97 | 2573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_Cancelled",_kwnames,&_argo0)) |
af309447 | 2574 | return NULL; |
1d99702e RD |
2575 | if (_argo0) { |
2576 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2577 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2578 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_Cancelled. Expected _wxListEvent_p."); |
af309447 RD |
2579 | return NULL; |
2580 | } | |
2581 | } | |
cf694132 RD |
2582 | { |
2583 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2584 | _result = (bool )wxListEvent_Cancelled(_arg0); |
cf694132 RD |
2585 | |
2586 | wxPy_END_ALLOW_THREADS; | |
2587 | } _resultobj = Py_BuildValue("i",_result); | |
af309447 RD |
2588 | return _resultobj; |
2589 | } | |
2590 | ||
f6bcfd97 BP |
2591 | #define wxListEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) |
2592 | static PyObject *_wrap_wxListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2593 | PyObject * _resultobj; |
f6bcfd97 | 2594 | wxPoint * _result; |
8ab979d7 | 2595 | wxListEvent * _arg0; |
1d99702e | 2596 | PyObject * _argo0 = 0; |
efc5f224 | 2597 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 2598 | char _ptemp[128]; |
8ab979d7 RD |
2599 | |
2600 | self = self; | |
f6bcfd97 | 2601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetPoint",_kwnames,&_argo0)) |
8ab979d7 | 2602 | return NULL; |
1d99702e RD |
2603 | if (_argo0) { |
2604 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2605 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2606 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetPoint. Expected _wxListEvent_p."); |
8ab979d7 RD |
2607 | return NULL; |
2608 | } | |
2609 | } | |
cf694132 RD |
2610 | { |
2611 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2612 | _result = new wxPoint (wxListEvent_GetPoint(_arg0)); |
cf694132 RD |
2613 | |
2614 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
2615 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
2616 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
2617 | return _resultobj; |
2618 | } | |
2619 | ||
f6bcfd97 BP |
2620 | #define wxListEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) |
2621 | static PyObject *_wrap_wxListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2622 | PyObject * _resultobj; |
f6bcfd97 | 2623 | wxString * _result; |
af309447 | 2624 | wxListEvent * _arg0; |
1d99702e | 2625 | PyObject * _argo0 = 0; |
f6bcfd97 | 2626 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2627 | |
2628 | self = self; | |
f6bcfd97 | 2629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetLabel",_kwnames,&_argo0)) |
af309447 | 2630 | return NULL; |
1d99702e RD |
2631 | if (_argo0) { |
2632 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2633 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2634 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetLabel. Expected _wxListEvent_p."); |
af309447 RD |
2635 | return NULL; |
2636 | } | |
2637 | } | |
cf694132 RD |
2638 | { |
2639 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
2640 | const wxString & _result_ref = wxListEvent_GetLabel(_arg0); |
2641 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
2642 | |
2643 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
2644 | }{ |
2645 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2646 | } | |
af309447 RD |
2647 | return _resultobj; |
2648 | } | |
2649 | ||
f6bcfd97 BP |
2650 | #define wxListEvent_GetText(_swigobj) (_swigobj->GetText()) |
2651 | static PyObject *_wrap_wxListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2652 | PyObject * _resultobj; |
f6bcfd97 | 2653 | wxString * _result; |
8ab979d7 | 2654 | wxListEvent * _arg0; |
1d99702e | 2655 | PyObject * _argo0 = 0; |
efc5f224 | 2656 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2657 | |
2658 | self = self; | |
f6bcfd97 | 2659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetText",_kwnames,&_argo0)) |
8ab979d7 | 2660 | return NULL; |
1d99702e RD |
2661 | if (_argo0) { |
2662 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2663 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2664 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetText. Expected _wxListEvent_p."); |
8ab979d7 RD |
2665 | return NULL; |
2666 | } | |
2667 | } | |
cf694132 RD |
2668 | { |
2669 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
2670 | const wxString & _result_ref = wxListEvent_GetText(_arg0); |
2671 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
2672 | |
2673 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 BP |
2674 | }{ |
2675 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2676 | } | |
8ab979d7 RD |
2677 | return _resultobj; |
2678 | } | |
2679 | ||
f6bcfd97 BP |
2680 | #define wxListEvent_GetImage(_swigobj) (_swigobj->GetImage()) |
2681 | static PyObject *_wrap_wxListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2682 | PyObject * _resultobj; |
f6bcfd97 | 2683 | int _result; |
af309447 | 2684 | wxListEvent * _arg0; |
1d99702e | 2685 | PyObject * _argo0 = 0; |
f6bcfd97 | 2686 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2687 | |
2688 | self = self; | |
f6bcfd97 | 2689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetImage",_kwnames,&_argo0)) |
af309447 | 2690 | return NULL; |
1d99702e RD |
2691 | if (_argo0) { |
2692 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2693 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2694 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetImage. Expected _wxListEvent_p."); |
af309447 RD |
2695 | return NULL; |
2696 | } | |
2697 | } | |
cf694132 RD |
2698 | { |
2699 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2700 | _result = (int )wxListEvent_GetImage(_arg0); |
cf694132 RD |
2701 | |
2702 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 2703 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2704 | return _resultobj; |
2705 | } | |
2706 | ||
f6bcfd97 BP |
2707 | #define wxListEvent_GetData(_swigobj) (_swigobj->GetData()) |
2708 | static PyObject *_wrap_wxListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2709 | PyObject * _resultobj; |
f6bcfd97 | 2710 | long _result; |
8ab979d7 | 2711 | wxListEvent * _arg0; |
1d99702e | 2712 | PyObject * _argo0 = 0; |
efc5f224 | 2713 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2714 | |
2715 | self = self; | |
f6bcfd97 | 2716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetData",_kwnames,&_argo0)) |
8ab979d7 | 2717 | return NULL; |
1d99702e RD |
2718 | if (_argo0) { |
2719 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2720 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2721 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetData. Expected _wxListEvent_p."); |
8ab979d7 RD |
2722 | return NULL; |
2723 | } | |
2724 | } | |
cf694132 RD |
2725 | { |
2726 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2727 | _result = (long )wxListEvent_GetData(_arg0); |
cf694132 RD |
2728 | |
2729 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 2730 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2731 | return _resultobj; |
2732 | } | |
2733 | ||
f6bcfd97 BP |
2734 | #define wxListEvent_GetMask(_swigobj) (_swigobj->GetMask()) |
2735 | static PyObject *_wrap_wxListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2736 | PyObject * _resultobj; |
f6bcfd97 | 2737 | long _result; |
af309447 | 2738 | wxListEvent * _arg0; |
1d99702e | 2739 | PyObject * _argo0 = 0; |
f6bcfd97 | 2740 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2741 | |
2742 | self = self; | |
f6bcfd97 | 2743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetMask",_kwnames,&_argo0)) |
af309447 | 2744 | return NULL; |
1d99702e RD |
2745 | if (_argo0) { |
2746 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2747 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2748 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetMask. Expected _wxListEvent_p."); |
af309447 RD |
2749 | return NULL; |
2750 | } | |
2751 | } | |
cf694132 RD |
2752 | { |
2753 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2754 | _result = (long )wxListEvent_GetMask(_arg0); |
cf694132 RD |
2755 | |
2756 | wxPy_END_ALLOW_THREADS; | |
f6bcfd97 | 2757 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2758 | return _resultobj; |
2759 | } | |
2760 | ||
f6bcfd97 BP |
2761 | #define wxListEvent_GetItem(_swigobj) (_swigobj->GetItem()) |
2762 | static PyObject *_wrap_wxListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2763 | PyObject * _resultobj; |
2764 | wxListItem * _result; | |
2765 | wxListEvent * _arg0; | |
1d99702e | 2766 | PyObject * _argo0 = 0; |
efc5f224 | 2767 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2768 | char _ptemp[128]; |
2769 | ||
2770 | self = self; | |
f6bcfd97 | 2771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetItem",_kwnames,&_argo0)) |
8ab979d7 | 2772 | return NULL; |
1d99702e RD |
2773 | if (_argo0) { |
2774 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2775 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2776 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetItem. Expected _wxListEvent_p."); |
8ab979d7 RD |
2777 | return NULL; |
2778 | } | |
2779 | } | |
cf694132 RD |
2780 | { |
2781 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
2782 | const wxListItem & _result_ref = wxListEvent_GetItem(_arg0); |
2783 | _result = (wxListItem *) &_result_ref; | |
cf694132 RD |
2784 | |
2785 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
2786 | } if (_result) { |
2787 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p"); | |
2788 | _resultobj = Py_BuildValue("s",_ptemp); | |
2789 | } else { | |
2790 | Py_INCREF(Py_None); | |
2791 | _resultobj = Py_None; | |
2792 | } | |
8ab979d7 RD |
2793 | return _resultobj; |
2794 | } | |
2795 | ||
2796 | static void *SwigwxListCtrlTowxControl(void *ptr) { | |
2797 | wxListCtrl *src; | |
2798 | wxControl *dest; | |
2799 | src = (wxListCtrl *) ptr; | |
2800 | dest = (wxControl *) src; | |
2801 | return (void *) dest; | |
2802 | } | |
2803 | ||
2804 | static void *SwigwxListCtrlTowxWindow(void *ptr) { | |
2805 | wxListCtrl *src; | |
2806 | wxWindow *dest; | |
2807 | src = (wxListCtrl *) ptr; | |
2808 | dest = (wxWindow *) src; | |
2809 | return (void *) dest; | |
2810 | } | |
2811 | ||
2812 | static void *SwigwxListCtrlTowxEvtHandler(void *ptr) { | |
2813 | wxListCtrl *src; | |
2814 | wxEvtHandler *dest; | |
2815 | src = (wxListCtrl *) ptr; | |
2816 | dest = (wxEvtHandler *) src; | |
2817 | return (void *) dest; | |
2818 | } | |
2819 | ||
2820 | #define new_wxListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
efc5f224 | 2821 | static PyObject *_wrap_new_wxListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2822 | PyObject * _resultobj; |
2823 | wxListCtrl * _result; | |
2824 | wxWindow * _arg0; | |
2825 | wxWindowID _arg1; | |
1d99702e RD |
2826 | wxPoint * _arg2 = (wxPoint *) &wxPyDefaultPosition; |
2827 | wxSize * _arg3 = (wxSize *) &wxPyDefaultSize; | |
2828 | long _arg4 = (long ) wxLC_ICON; | |
2829 | wxValidator * _arg5 = (wxValidator *) &wxPyDefaultValidator; | |
2830 | char * _arg6 = (char *) "listCtrl"; | |
2831 | PyObject * _argo0 = 0; | |
2f90df85 RD |
2832 | wxPoint temp; |
2833 | PyObject * _obj2 = 0; | |
2834 | wxSize temp0; | |
2835 | PyObject * _obj3 = 0; | |
1d99702e | 2836 | PyObject * _argo5 = 0; |
efc5f224 | 2837 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
2838 | char _ptemp[128]; |
2839 | ||
2840 | self = self; | |
2f90df85 | 2841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlOs:new_wxListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) |
8ab979d7 | 2842 | return NULL; |
1d99702e RD |
2843 | if (_argo0) { |
2844 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2845 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2846 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListCtrl. Expected _wxWindow_p."); |
2847 | return NULL; | |
2848 | } | |
2849 | } | |
2f90df85 RD |
2850 | if (_obj2) |
2851 | { | |
2852 | _arg2 = &temp; | |
2853 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 2854 | return NULL; |
2f90df85 RD |
2855 | } |
2856 | if (_obj3) | |
2857 | { | |
2858 | _arg3 = &temp0; | |
2859 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 2860 | return NULL; |
2f90df85 | 2861 | } |
1d99702e RD |
2862 | if (_argo5) { |
2863 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
2864 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
8ab979d7 RD |
2865 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListCtrl. Expected _wxValidator_p."); |
2866 | return NULL; | |
2867 | } | |
2868 | } | |
cf694132 RD |
2869 | { |
2870 | wxPy_BEGIN_ALLOW_THREADS; | |
2871 | _result = (wxListCtrl *)new_wxListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); | |
2872 | ||
2873 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
2874 | } if (_result) { |
2875 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListCtrl_p"); | |
2876 | _resultobj = Py_BuildValue("s",_ptemp); | |
2877 | } else { | |
2878 | Py_INCREF(Py_None); | |
2879 | _resultobj = Py_None; | |
2880 | } | |
8ab979d7 RD |
2881 | return _resultobj; |
2882 | } | |
2883 | ||
2884 | #define wxListCtrl_Arrange(_swigobj,_swigarg0) (_swigobj->Arrange(_swigarg0)) | |
efc5f224 | 2885 | static PyObject *_wrap_wxListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2886 | PyObject * _resultobj; |
2887 | bool _result; | |
2888 | wxListCtrl * _arg0; | |
1d99702e RD |
2889 | int _arg1 = (int ) (wxLIST_ALIGN_DEFAULT); |
2890 | PyObject * _argo0 = 0; | |
efc5f224 | 2891 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
2892 | |
2893 | self = self; | |
efc5f224 | 2894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxListCtrl_Arrange",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2895 | return NULL; |
1d99702e RD |
2896 | if (_argo0) { |
2897 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2898 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
2899 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Arrange. Expected _wxListCtrl_p."); |
2900 | return NULL; | |
2901 | } | |
2902 | } | |
cf694132 RD |
2903 | { |
2904 | wxPy_BEGIN_ALLOW_THREADS; | |
2905 | _result = (bool )wxListCtrl_Arrange(_arg0,_arg1); | |
2906 | ||
2907 | wxPy_END_ALLOW_THREADS; | |
2908 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2909 | return _resultobj; |
2910 | } | |
2911 | ||
2912 | #define wxListCtrl_DeleteItem(_swigobj,_swigarg0) (_swigobj->DeleteItem(_swigarg0)) | |
efc5f224 | 2913 | static PyObject *_wrap_wxListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2914 | PyObject * _resultobj; |
2915 | bool _result; | |
2916 | wxListCtrl * _arg0; | |
2917 | long _arg1; | |
1d99702e | 2918 | PyObject * _argo0 = 0; |
efc5f224 | 2919 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
2920 | |
2921 | self = self; | |
efc5f224 | 2922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_DeleteItem",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2923 | return NULL; |
1d99702e RD |
2924 | if (_argo0) { |
2925 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2926 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
2927 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteItem. Expected _wxListCtrl_p."); |
2928 | return NULL; | |
2929 | } | |
2930 | } | |
cf694132 RD |
2931 | { |
2932 | wxPy_BEGIN_ALLOW_THREADS; | |
2933 | _result = (bool )wxListCtrl_DeleteItem(_arg0,_arg1); | |
2934 | ||
2935 | wxPy_END_ALLOW_THREADS; | |
2936 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2937 | return _resultobj; |
2938 | } | |
2939 | ||
2940 | #define wxListCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) | |
efc5f224 | 2941 | static PyObject *_wrap_wxListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2942 | PyObject * _resultobj; |
2943 | bool _result; | |
2944 | wxListCtrl * _arg0; | |
1d99702e | 2945 | PyObject * _argo0 = 0; |
efc5f224 | 2946 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2947 | |
2948 | self = self; | |
efc5f224 | 2949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllItems",_kwnames,&_argo0)) |
8ab979d7 | 2950 | return NULL; |
1d99702e RD |
2951 | if (_argo0) { |
2952 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2953 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
2954 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllItems. Expected _wxListCtrl_p."); |
2955 | return NULL; | |
2956 | } | |
2957 | } | |
cf694132 RD |
2958 | { |
2959 | wxPy_BEGIN_ALLOW_THREADS; | |
2960 | _result = (bool )wxListCtrl_DeleteAllItems(_arg0); | |
2961 | ||
2962 | wxPy_END_ALLOW_THREADS; | |
2963 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2964 | return _resultobj; |
2965 | } | |
2966 | ||
2967 | #define wxListCtrl_DeleteColumn(_swigobj,_swigarg0) (_swigobj->DeleteColumn(_swigarg0)) | |
efc5f224 | 2968 | static PyObject *_wrap_wxListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2969 | PyObject * _resultobj; |
2970 | bool _result; | |
2971 | wxListCtrl * _arg0; | |
2972 | int _arg1; | |
1d99702e | 2973 | PyObject * _argo0 = 0; |
efc5f224 | 2974 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
2975 | |
2976 | self = self; | |
efc5f224 | 2977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_DeleteColumn",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2978 | return NULL; |
1d99702e RD |
2979 | if (_argo0) { |
2980 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2981 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
2982 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteColumn. Expected _wxListCtrl_p."); |
2983 | return NULL; | |
2984 | } | |
2985 | } | |
cf694132 RD |
2986 | { |
2987 | wxPy_BEGIN_ALLOW_THREADS; | |
2988 | _result = (bool )wxListCtrl_DeleteColumn(_arg0,_arg1); | |
2989 | ||
2990 | wxPy_END_ALLOW_THREADS; | |
2991 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
2992 | return _resultobj; |
2993 | } | |
2994 | ||
2995 | #define wxListCtrl_DeleteAllColumns(_swigobj) (_swigobj->DeleteAllColumns()) | |
efc5f224 | 2996 | static PyObject *_wrap_wxListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2997 | PyObject * _resultobj; |
2998 | bool _result; | |
2999 | wxListCtrl * _arg0; | |
1d99702e | 3000 | PyObject * _argo0 = 0; |
efc5f224 | 3001 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3002 | |
3003 | self = self; | |
efc5f224 | 3004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllColumns",_kwnames,&_argo0)) |
8ab979d7 | 3005 | return NULL; |
1d99702e RD |
3006 | if (_argo0) { |
3007 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3008 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3009 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllColumns. Expected _wxListCtrl_p."); |
3010 | return NULL; | |
3011 | } | |
3012 | } | |
cf694132 RD |
3013 | { |
3014 | wxPy_BEGIN_ALLOW_THREADS; | |
3015 | _result = (bool )wxListCtrl_DeleteAllColumns(_arg0); | |
3016 | ||
3017 | wxPy_END_ALLOW_THREADS; | |
3018 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3019 | return _resultobj; |
3020 | } | |
3021 | ||
3022 | #define wxListCtrl_ClearAll(_swigobj) (_swigobj->ClearAll()) | |
efc5f224 | 3023 | static PyObject *_wrap_wxListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3024 | PyObject * _resultobj; |
3025 | wxListCtrl * _arg0; | |
1d99702e | 3026 | PyObject * _argo0 = 0; |
efc5f224 | 3027 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3028 | |
3029 | self = self; | |
efc5f224 | 3030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_ClearAll",_kwnames,&_argo0)) |
8ab979d7 | 3031 | return NULL; |
1d99702e RD |
3032 | if (_argo0) { |
3033 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3034 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3035 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ClearAll. Expected _wxListCtrl_p."); |
3036 | return NULL; | |
3037 | } | |
3038 | } | |
cf694132 RD |
3039 | { |
3040 | wxPy_BEGIN_ALLOW_THREADS; | |
3041 | wxListCtrl_ClearAll(_arg0); | |
3042 | ||
3043 | wxPy_END_ALLOW_THREADS; | |
3044 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
3045 | _resultobj = Py_None; |
3046 | return _resultobj; | |
3047 | } | |
3048 | ||
3049 | #define wxListCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0)) | |
efc5f224 | 3050 | static PyObject *_wrap_wxListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3051 | PyObject * _resultobj; |
3052 | wxTextCtrl * _result; | |
3053 | wxListCtrl * _arg0; | |
3054 | long _arg1; | |
1d99702e | 3055 | PyObject * _argo0 = 0; |
efc5f224 | 3056 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3057 | char _ptemp[128]; |
3058 | ||
3059 | self = self; | |
efc5f224 | 3060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EditLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3061 | return NULL; |
1d99702e RD |
3062 | if (_argo0) { |
3063 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3064 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3065 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EditLabel. Expected _wxListCtrl_p."); |
3066 | return NULL; | |
3067 | } | |
3068 | } | |
cf694132 RD |
3069 | { |
3070 | wxPy_BEGIN_ALLOW_THREADS; | |
3071 | _result = (wxTextCtrl *)wxListCtrl_EditLabel(_arg0,_arg1); | |
3072 | ||
3073 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
3074 | } if (_result) { |
3075 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p"); | |
3076 | _resultobj = Py_BuildValue("s",_ptemp); | |
3077 | } else { | |
3078 | Py_INCREF(Py_None); | |
3079 | _resultobj = Py_None; | |
3080 | } | |
8ab979d7 RD |
3081 | return _resultobj; |
3082 | } | |
3083 | ||
3084 | #define wxListCtrl_EndEditLabel(_swigobj,_swigarg0) (_swigobj->EndEditLabel(_swigarg0)) | |
efc5f224 | 3085 | static PyObject *_wrap_wxListCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3086 | PyObject * _resultobj; |
3087 | bool _result; | |
3088 | wxListCtrl * _arg0; | |
3089 | bool _arg1; | |
1d99702e | 3090 | PyObject * _argo0 = 0; |
8ab979d7 | 3091 | int tempbool1; |
efc5f224 | 3092 | char *_kwnames[] = { "self","cancel", NULL }; |
8ab979d7 RD |
3093 | |
3094 | self = self; | |
efc5f224 | 3095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_EndEditLabel",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3096 | return NULL; |
1d99702e RD |
3097 | if (_argo0) { |
3098 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3099 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3100 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EndEditLabel. Expected _wxListCtrl_p."); |
3101 | return NULL; | |
3102 | } | |
3103 | } | |
3104 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
3105 | { |
3106 | wxPy_BEGIN_ALLOW_THREADS; | |
3107 | _result = (bool )wxListCtrl_EndEditLabel(_arg0,_arg1); | |
3108 | ||
3109 | wxPy_END_ALLOW_THREADS; | |
3110 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3111 | return _resultobj; |
3112 | } | |
3113 | ||
be4d9c1f | 3114 | #define wxListCtrl_GetEditControl(_swigobj) (_swigobj->GetEditControl()) |
efc5f224 | 3115 | static PyObject *_wrap_wxListCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
be4d9c1f RD |
3116 | PyObject * _resultobj; |
3117 | wxTextCtrl * _result; | |
3118 | wxListCtrl * _arg0; | |
1d99702e | 3119 | PyObject * _argo0 = 0; |
efc5f224 | 3120 | char *_kwnames[] = { "self", NULL }; |
be4d9c1f RD |
3121 | char _ptemp[128]; |
3122 | ||
3123 | self = self; | |
efc5f224 | 3124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetEditControl",_kwnames,&_argo0)) |
be4d9c1f | 3125 | return NULL; |
1d99702e RD |
3126 | if (_argo0) { |
3127 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3128 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
be4d9c1f RD |
3129 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetEditControl. Expected _wxListCtrl_p."); |
3130 | return NULL; | |
3131 | } | |
3132 | } | |
cf694132 RD |
3133 | { |
3134 | wxPy_BEGIN_ALLOW_THREADS; | |
3135 | _result = (wxTextCtrl *)wxListCtrl_GetEditControl(_arg0); | |
3136 | ||
3137 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
3138 | } if (_result) { |
3139 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p"); | |
3140 | _resultobj = Py_BuildValue("s",_ptemp); | |
3141 | } else { | |
3142 | Py_INCREF(Py_None); | |
3143 | _resultobj = Py_None; | |
3144 | } | |
be4d9c1f RD |
3145 | return _resultobj; |
3146 | } | |
3147 | ||
8ab979d7 | 3148 | #define wxListCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) |
efc5f224 | 3149 | static PyObject *_wrap_wxListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3150 | PyObject * _resultobj; |
3151 | bool _result; | |
3152 | wxListCtrl * _arg0; | |
3153 | long _arg1; | |
1d99702e | 3154 | PyObject * _argo0 = 0; |
efc5f224 | 3155 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3156 | |
3157 | self = self; | |
efc5f224 | 3158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EnsureVisible",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3159 | return NULL; |
1d99702e RD |
3160 | if (_argo0) { |
3161 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3162 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3163 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EnsureVisible. Expected _wxListCtrl_p."); |
3164 | return NULL; | |
3165 | } | |
3166 | } | |
cf694132 RD |
3167 | { |
3168 | wxPy_BEGIN_ALLOW_THREADS; | |
3169 | _result = (bool )wxListCtrl_EnsureVisible(_arg0,_arg1); | |
3170 | ||
3171 | wxPy_END_ALLOW_THREADS; | |
3172 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3173 | return _resultobj; |
3174 | } | |
3175 | ||
3176 | #define wxListCtrl_FindItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 3177 | static PyObject *_wrap_wxListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3178 | PyObject * _resultobj; |
3179 | long _result; | |
3180 | wxListCtrl * _arg0; | |
3181 | long _arg1; | |
3182 | wxString * _arg2; | |
1d99702e RD |
3183 | bool _arg3 = (bool ) FALSE; |
3184 | PyObject * _argo0 = 0; | |
8ab979d7 | 3185 | PyObject * _obj2 = 0; |
1d99702e | 3186 | int tempbool3 = (int) FALSE; |
efc5f224 | 3187 | char *_kwnames[] = { "self","start","str","partial", NULL }; |
8ab979d7 RD |
3188 | |
3189 | self = self; | |
efc5f224 | 3190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|i:wxListCtrl_FindItem",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3)) |
8ab979d7 | 3191 | return NULL; |
1d99702e RD |
3192 | if (_argo0) { |
3193 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3194 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItem. Expected _wxListCtrl_p."); |
3196 | return NULL; | |
3197 | } | |
3198 | } | |
3199 | { | |
3200 | if (!PyString_Check(_obj2)) { | |
3201 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3202 | return NULL; | |
3203 | } | |
cf694132 | 3204 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); |
8ab979d7 RD |
3205 | } |
3206 | _arg3 = (bool ) tempbool3; | |
cf694132 RD |
3207 | { |
3208 | wxPy_BEGIN_ALLOW_THREADS; | |
3209 | _result = (long )wxListCtrl_FindItem(_arg0,_arg1,*_arg2,_arg3); | |
3210 | ||
3211 | wxPy_END_ALLOW_THREADS; | |
3212 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
3213 | { |
3214 | if (_obj2) | |
3215 | delete _arg2; | |
3216 | } | |
3217 | return _resultobj; | |
3218 | } | |
3219 | ||
3220 | #define wxListCtrl_FindItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindItem(_swigarg0,_swigarg1)) | |
efc5f224 | 3221 | static PyObject *_wrap_wxListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3222 | PyObject * _resultobj; |
3223 | long _result; | |
3224 | wxListCtrl * _arg0; | |
3225 | long _arg1; | |
3226 | long _arg2; | |
1d99702e | 3227 | PyObject * _argo0 = 0; |
efc5f224 | 3228 | char *_kwnames[] = { "self","start","data", NULL }; |
8ab979d7 RD |
3229 | |
3230 | self = self; | |
efc5f224 | 3231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_FindItemData",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3232 | return NULL; |
1d99702e RD |
3233 | if (_argo0) { |
3234 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3235 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3236 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemData. Expected _wxListCtrl_p."); |
3237 | return NULL; | |
3238 | } | |
3239 | } | |
cf694132 RD |
3240 | { |
3241 | wxPy_BEGIN_ALLOW_THREADS; | |
3242 | _result = (long )wxListCtrl_FindItemData(_arg0,_arg1,_arg2); | |
3243 | ||
3244 | wxPy_END_ALLOW_THREADS; | |
3245 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
3246 | return _resultobj; |
3247 | } | |
3248 | ||
3249 | #define wxListCtrl_FindItemAtPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 3250 | static PyObject *_wrap_wxListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3251 | PyObject * _resultobj; |
3252 | long _result; | |
3253 | wxListCtrl * _arg0; | |
3254 | long _arg1; | |
3255 | wxPoint * _arg2; | |
3256 | int _arg3; | |
1d99702e | 3257 | PyObject * _argo0 = 0; |
2f90df85 RD |
3258 | wxPoint temp; |
3259 | PyObject * _obj2 = 0; | |
efc5f224 | 3260 | char *_kwnames[] = { "self","start","pt","direction", NULL }; |
8ab979d7 RD |
3261 | |
3262 | self = self; | |
2f90df85 | 3263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_FindItemAtPos",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) |
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_FindItemAtPos. Expected _wxListCtrl_p."); |
3269 | return NULL; | |
3270 | } | |
3271 | } | |
2f90df85 RD |
3272 | { |
3273 | _arg2 = &temp; | |
3274 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 3275 | return NULL; |
2f90df85 | 3276 | } |
cf694132 RD |
3277 | { |
3278 | wxPy_BEGIN_ALLOW_THREADS; | |
3279 | _result = (long )wxListCtrl_FindItemAtPos(_arg0,_arg1,*_arg2,_arg3); | |
3280 | ||
3281 | wxPy_END_ALLOW_THREADS; | |
3282 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
3283 | return _resultobj; |
3284 | } | |
3285 | ||
3286 | #define wxListCtrl_GetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetColumn(_swigarg0,_swigarg1)) | |
efc5f224 | 3287 | static PyObject *_wrap_wxListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3288 | PyObject * _resultobj; |
3289 | bool _result; | |
3290 | wxListCtrl * _arg0; | |
3291 | int _arg1; | |
3292 | wxListItem * _arg2; | |
1d99702e RD |
3293 | PyObject * _argo0 = 0; |
3294 | PyObject * _argo2 = 0; | |
efc5f224 | 3295 | char *_kwnames[] = { "self","col","item", NULL }; |
8ab979d7 RD |
3296 | |
3297 | self = self; | |
efc5f224 | 3298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_GetColumn",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 3299 | return NULL; |
1d99702e RD |
3300 | if (_argo0) { |
3301 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3302 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3303 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumn. Expected _wxListCtrl_p."); |
3304 | return NULL; | |
3305 | } | |
3306 | } | |
1d99702e RD |
3307 | if (_argo2) { |
3308 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3309 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
8ab979d7 RD |
3310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_GetColumn. Expected _wxListItem_p."); |
3311 | return NULL; | |
3312 | } | |
3313 | } | |
cf694132 RD |
3314 | { |
3315 | wxPy_BEGIN_ALLOW_THREADS; | |
3316 | _result = (bool )wxListCtrl_GetColumn(_arg0,_arg1,*_arg2); | |
3317 | ||
3318 | wxPy_END_ALLOW_THREADS; | |
3319 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3320 | return _resultobj; |
3321 | } | |
3322 | ||
3323 | #define wxListCtrl_GetColumnWidth(_swigobj,_swigarg0) (_swigobj->GetColumnWidth(_swigarg0)) | |
efc5f224 | 3324 | static PyObject *_wrap_wxListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3325 | PyObject * _resultobj; |
3326 | int _result; | |
3327 | wxListCtrl * _arg0; | |
3328 | int _arg1; | |
1d99702e | 3329 | PyObject * _argo0 = 0; |
efc5f224 | 3330 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
3331 | |
3332 | self = self; | |
efc5f224 | 3333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetColumnWidth",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3334 | return NULL; |
1d99702e RD |
3335 | if (_argo0) { |
3336 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3337 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3338 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnWidth. Expected _wxListCtrl_p."); |
3339 | return NULL; | |
3340 | } | |
3341 | } | |
cf694132 RD |
3342 | { |
3343 | wxPy_BEGIN_ALLOW_THREADS; | |
3344 | _result = (int )wxListCtrl_GetColumnWidth(_arg0,_arg1); | |
3345 | ||
3346 | wxPy_END_ALLOW_THREADS; | |
3347 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3348 | return _resultobj; |
3349 | } | |
3350 | ||
3351 | #define wxListCtrl_GetCountPerPage(_swigobj) (_swigobj->GetCountPerPage()) | |
efc5f224 | 3352 | static PyObject *_wrap_wxListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3353 | PyObject * _resultobj; |
3354 | int _result; | |
3355 | wxListCtrl * _arg0; | |
1d99702e | 3356 | PyObject * _argo0 = 0; |
efc5f224 | 3357 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3358 | |
3359 | self = self; | |
efc5f224 | 3360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetCountPerPage",_kwnames,&_argo0)) |
8ab979d7 | 3361 | return NULL; |
1d99702e RD |
3362 | if (_argo0) { |
3363 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3364 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3365 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetCountPerPage. Expected _wxListCtrl_p."); |
3366 | return NULL; | |
3367 | } | |
3368 | } | |
cf694132 RD |
3369 | { |
3370 | wxPy_BEGIN_ALLOW_THREADS; | |
3371 | _result = (int )wxListCtrl_GetCountPerPage(_arg0); | |
3372 | ||
3373 | wxPy_END_ALLOW_THREADS; | |
3374 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3375 | return _resultobj; |
3376 | } | |
3377 | ||
3378 | #define wxListCtrl_GetImageList(_swigobj,_swigarg0) (_swigobj->GetImageList(_swigarg0)) | |
efc5f224 | 3379 | static PyObject *_wrap_wxListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3380 | PyObject * _resultobj; |
3381 | wxImageList * _result; | |
3382 | wxListCtrl * _arg0; | |
3383 | int _arg1; | |
1d99702e | 3384 | PyObject * _argo0 = 0; |
efc5f224 | 3385 | char *_kwnames[] = { "self","which", NULL }; |
8ab979d7 RD |
3386 | char _ptemp[128]; |
3387 | ||
3388 | self = self; | |
efc5f224 | 3389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetImageList",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3390 | return NULL; |
1d99702e RD |
3391 | if (_argo0) { |
3392 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3393 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3394 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetImageList. Expected _wxListCtrl_p."); |
3395 | return NULL; | |
3396 | } | |
3397 | } | |
cf694132 RD |
3398 | { |
3399 | wxPy_BEGIN_ALLOW_THREADS; | |
3400 | _result = (wxImageList *)wxListCtrl_GetImageList(_arg0,_arg1); | |
3401 | ||
3402 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
3403 | } if (_result) { |
3404 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p"); | |
3405 | _resultobj = Py_BuildValue("s",_ptemp); | |
3406 | } else { | |
3407 | Py_INCREF(Py_None); | |
3408 | _resultobj = Py_None; | |
3409 | } | |
8ab979d7 RD |
3410 | return _resultobj; |
3411 | } | |
3412 | ||
3413 | #define wxListCtrl_GetItemData(_swigobj,_swigarg0) (_swigobj->GetItemData(_swigarg0)) | |
efc5f224 | 3414 | static PyObject *_wrap_wxListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3415 | PyObject * _resultobj; |
3416 | long _result; | |
3417 | wxListCtrl * _arg0; | |
3418 | long _arg1; | |
1d99702e | 3419 | PyObject * _argo0 = 0; |
efc5f224 | 3420 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3421 | |
3422 | self = self; | |
efc5f224 | 3423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemData",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3424 | return NULL; |
1d99702e RD |
3425 | if (_argo0) { |
3426 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3427 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3428 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemData. Expected _wxListCtrl_p."); |
3429 | return NULL; | |
3430 | } | |
3431 | } | |
cf694132 RD |
3432 | { |
3433 | wxPy_BEGIN_ALLOW_THREADS; | |
3434 | _result = (long )wxListCtrl_GetItemData(_arg0,_arg1); | |
3435 | ||
3436 | wxPy_END_ALLOW_THREADS; | |
3437 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
3438 | return _resultobj; |
3439 | } | |
3440 | ||
e166644c | 3441 | static wxListItem * wxListCtrl_GetItem(wxListCtrl *self,long itemId,int col) { |
8ab979d7 | 3442 | wxListItem* info = new wxListItem; |
0699c864 | 3443 | info->m_itemId = itemId; |
e166644c | 3444 | info->m_col = col; |
f17fee68 | 3445 | info->m_mask = 0xFFFF; |
8ab979d7 RD |
3446 | self->GetItem(*info); |
3447 | return info; | |
3448 | } | |
efc5f224 | 3449 | static PyObject *_wrap_wxListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3450 | PyObject * _resultobj; |
3451 | wxListItem * _result; | |
3452 | wxListCtrl * _arg0; | |
0699c864 | 3453 | long _arg1; |
e166644c | 3454 | int _arg2 = (int ) 0; |
1d99702e | 3455 | PyObject * _argo0 = 0; |
e166644c | 3456 | char *_kwnames[] = { "self","itemId","col", NULL }; |
8ab979d7 RD |
3457 | char _ptemp[128]; |
3458 | ||
3459 | self = self; | |
e166644c | 3460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItem",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3461 | return NULL; |
1d99702e RD |
3462 | if (_argo0) { |
3463 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3464 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3465 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItem. Expected _wxListCtrl_p."); |
3466 | return NULL; | |
3467 | } | |
3468 | } | |
cf694132 RD |
3469 | { |
3470 | wxPy_BEGIN_ALLOW_THREADS; | |
e166644c | 3471 | _result = (wxListItem *)wxListCtrl_GetItem(_arg0,_arg1,_arg2); |
cf694132 RD |
3472 | |
3473 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
3474 | } if (_result) { |
3475 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p"); | |
3476 | _resultobj = Py_BuildValue("s",_ptemp); | |
3477 | } else { | |
3478 | Py_INCREF(Py_None); | |
3479 | _resultobj = Py_None; | |
3480 | } | |
8ab979d7 RD |
3481 | return _resultobj; |
3482 | } | |
3483 | ||
3484 | static wxPoint * wxListCtrl_GetItemPosition(wxListCtrl *self,long item) { | |
3485 | wxPoint* pos = new wxPoint; | |
3486 | self->GetItemPosition(item, *pos); | |
3487 | return pos; | |
3488 | } | |
efc5f224 | 3489 | static PyObject *_wrap_wxListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3490 | PyObject * _resultobj; |
3491 | wxPoint * _result; | |
3492 | wxListCtrl * _arg0; | |
3493 | long _arg1; | |
1d99702e | 3494 | PyObject * _argo0 = 0; |
efc5f224 | 3495 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3496 | char _ptemp[128]; |
3497 | ||
3498 | self = self; | |
efc5f224 | 3499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemPosition",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3500 | return NULL; |
1d99702e RD |
3501 | if (_argo0) { |
3502 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3503 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3504 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemPosition. Expected _wxListCtrl_p."); |
3505 | return NULL; | |
3506 | } | |
3507 | } | |
cf694132 RD |
3508 | { |
3509 | wxPy_BEGIN_ALLOW_THREADS; | |
3510 | _result = (wxPoint *)wxListCtrl_GetItemPosition(_arg0,_arg1); | |
3511 | ||
3512 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
3513 | } if (_result) { |
3514 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
3515 | _resultobj = Py_BuildValue("s",_ptemp); | |
3516 | } else { | |
3517 | Py_INCREF(Py_None); | |
3518 | _resultobj = Py_None; | |
3519 | } | |
8ab979d7 RD |
3520 | return _resultobj; |
3521 | } | |
3522 | ||
3523 | static wxRect * wxListCtrl_GetItemRect(wxListCtrl *self,long item,int code) { | |
3524 | wxRect* rect= new wxRect; | |
3525 | self->GetItemRect(item, *rect, code); | |
3526 | return rect; | |
3527 | } | |
efc5f224 | 3528 | static PyObject *_wrap_wxListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3529 | PyObject * _resultobj; |
3530 | wxRect * _result; | |
3531 | wxListCtrl * _arg0; | |
3532 | long _arg1; | |
1d99702e RD |
3533 | int _arg2 = (int ) (wxLIST_RECT_BOUNDS); |
3534 | PyObject * _argo0 = 0; | |
efc5f224 | 3535 | char *_kwnames[] = { "self","item","code", NULL }; |
8ab979d7 RD |
3536 | char _ptemp[128]; |
3537 | ||
3538 | self = self; | |
efc5f224 | 3539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItemRect",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3540 | return NULL; |
1d99702e RD |
3541 | if (_argo0) { |
3542 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3543 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemRect. Expected _wxListCtrl_p."); |
3545 | return NULL; | |
3546 | } | |
3547 | } | |
cf694132 RD |
3548 | { |
3549 | wxPy_BEGIN_ALLOW_THREADS; | |
3550 | _result = (wxRect *)wxListCtrl_GetItemRect(_arg0,_arg1,_arg2); | |
3551 | ||
3552 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
3553 | } if (_result) { |
3554 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRect_p"); | |
3555 | _resultobj = Py_BuildValue("s",_ptemp); | |
3556 | } else { | |
3557 | Py_INCREF(Py_None); | |
3558 | _resultobj = Py_None; | |
3559 | } | |
8ab979d7 RD |
3560 | return _resultobj; |
3561 | } | |
3562 | ||
3563 | #define wxListCtrl_GetItemState(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemState(_swigarg0,_swigarg1)) | |
efc5f224 | 3564 | static PyObject *_wrap_wxListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3565 | PyObject * _resultobj; |
3566 | int _result; | |
3567 | wxListCtrl * _arg0; | |
3568 | long _arg1; | |
3569 | long _arg2; | |
1d99702e | 3570 | PyObject * _argo0 = 0; |
efc5f224 | 3571 | char *_kwnames[] = { "self","item","stateMask", NULL }; |
8ab979d7 RD |
3572 | |
3573 | self = self; | |
efc5f224 | 3574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_GetItemState",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3575 | return NULL; |
1d99702e RD |
3576 | if (_argo0) { |
3577 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3578 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3579 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemState. Expected _wxListCtrl_p."); |
3580 | return NULL; | |
3581 | } | |
3582 | } | |
cf694132 RD |
3583 | { |
3584 | wxPy_BEGIN_ALLOW_THREADS; | |
3585 | _result = (int )wxListCtrl_GetItemState(_arg0,_arg1,_arg2); | |
3586 | ||
3587 | wxPy_END_ALLOW_THREADS; | |
3588 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3589 | return _resultobj; |
3590 | } | |
3591 | ||
3592 | #define wxListCtrl_GetItemCount(_swigobj) (_swigobj->GetItemCount()) | |
efc5f224 | 3593 | static PyObject *_wrap_wxListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3594 | PyObject * _resultobj; |
3595 | int _result; | |
3596 | wxListCtrl * _arg0; | |
1d99702e | 3597 | PyObject * _argo0 = 0; |
efc5f224 | 3598 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3599 | |
3600 | self = self; | |
efc5f224 | 3601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetItemCount",_kwnames,&_argo0)) |
8ab979d7 | 3602 | return NULL; |
1d99702e RD |
3603 | if (_argo0) { |
3604 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3605 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3606 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemCount. Expected _wxListCtrl_p."); |
3607 | return NULL; | |
3608 | } | |
3609 | } | |
cf694132 RD |
3610 | { |
3611 | wxPy_BEGIN_ALLOW_THREADS; | |
3612 | _result = (int )wxListCtrl_GetItemCount(_arg0); | |
3613 | ||
3614 | wxPy_END_ALLOW_THREADS; | |
3615 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3616 | return _resultobj; |
3617 | } | |
3618 | ||
3619 | #define wxListCtrl_GetItemSpacing(_swigobj,_swigarg0) (_swigobj->GetItemSpacing(_swigarg0)) | |
efc5f224 | 3620 | static PyObject *_wrap_wxListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3621 | PyObject * _resultobj; |
3622 | int _result; | |
3623 | wxListCtrl * _arg0; | |
3624 | bool _arg1; | |
1d99702e | 3625 | PyObject * _argo0 = 0; |
8ab979d7 | 3626 | int tempbool1; |
efc5f224 | 3627 | char *_kwnames[] = { "self","isSmall", NULL }; |
8ab979d7 RD |
3628 | |
3629 | self = self; | |
efc5f224 | 3630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetItemSpacing",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3631 | return NULL; |
1d99702e RD |
3632 | if (_argo0) { |
3633 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3634 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3635 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemSpacing. Expected _wxListCtrl_p."); |
3636 | return NULL; | |
3637 | } | |
3638 | } | |
3639 | _arg1 = (bool ) tempbool1; | |
cf694132 RD |
3640 | { |
3641 | wxPy_BEGIN_ALLOW_THREADS; | |
3642 | _result = (int )wxListCtrl_GetItemSpacing(_arg0,_arg1); | |
3643 | ||
3644 | wxPy_END_ALLOW_THREADS; | |
3645 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3646 | return _resultobj; |
3647 | } | |
3648 | ||
3649 | #define wxListCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) | |
efc5f224 | 3650 | static PyObject *_wrap_wxListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3651 | PyObject * _resultobj; |
3652 | wxString * _result; | |
3653 | wxListCtrl * _arg0; | |
3654 | long _arg1; | |
1d99702e | 3655 | PyObject * _argo0 = 0; |
efc5f224 | 3656 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3657 | |
3658 | self = self; | |
efc5f224 | 3659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemText",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3660 | return NULL; |
1d99702e RD |
3661 | if (_argo0) { |
3662 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3663 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3664 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemText. Expected _wxListCtrl_p."); |
3665 | return NULL; | |
3666 | } | |
3667 | } | |
8ab979d7 | 3668 | { |
cf694132 RD |
3669 | wxPy_BEGIN_ALLOW_THREADS; |
3670 | _result = new wxString (wxListCtrl_GetItemText(_arg0,_arg1)); | |
3671 | ||
3672 | wxPy_END_ALLOW_THREADS; | |
3673 | }{ | |
eec92d76 | 3674 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8ab979d7 RD |
3675 | } |
3676 | { | |
3677 | delete _result; | |
3678 | } | |
3679 | return _resultobj; | |
3680 | } | |
3681 | ||
3682 | #define wxListCtrl_GetNextItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetNextItem(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 3683 | static PyObject *_wrap_wxListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3684 | PyObject * _resultobj; |
3685 | long _result; | |
3686 | wxListCtrl * _arg0; | |
3687 | long _arg1; | |
1d99702e RD |
3688 | int _arg2 = (int ) (wxLIST_NEXT_ALL); |
3689 | int _arg3 = (int ) (wxLIST_STATE_DONTCARE); | |
3690 | PyObject * _argo0 = 0; | |
efc5f224 | 3691 | char *_kwnames[] = { "self","item","geometry","state", NULL }; |
8ab979d7 RD |
3692 | |
3693 | self = self; | |
efc5f224 | 3694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:wxListCtrl_GetNextItem",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 3695 | return NULL; |
1d99702e RD |
3696 | if (_argo0) { |
3697 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3698 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3699 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetNextItem. Expected _wxListCtrl_p."); |
3700 | return NULL; | |
3701 | } | |
3702 | } | |
cf694132 RD |
3703 | { |
3704 | wxPy_BEGIN_ALLOW_THREADS; | |
3705 | _result = (long )wxListCtrl_GetNextItem(_arg0,_arg1,_arg2,_arg3); | |
3706 | ||
3707 | wxPy_END_ALLOW_THREADS; | |
3708 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
3709 | return _resultobj; |
3710 | } | |
3711 | ||
3712 | #define wxListCtrl_GetSelectedItemCount(_swigobj) (_swigobj->GetSelectedItemCount()) | |
efc5f224 | 3713 | static PyObject *_wrap_wxListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3714 | PyObject * _resultobj; |
3715 | int _result; | |
3716 | wxListCtrl * _arg0; | |
1d99702e | 3717 | PyObject * _argo0 = 0; |
efc5f224 | 3718 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3719 | |
3720 | self = self; | |
efc5f224 | 3721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetSelectedItemCount",_kwnames,&_argo0)) |
8ab979d7 | 3722 | return NULL; |
1d99702e RD |
3723 | if (_argo0) { |
3724 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3725 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3726 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetSelectedItemCount. Expected _wxListCtrl_p."); |
3727 | return NULL; | |
3728 | } | |
3729 | } | |
cf694132 RD |
3730 | { |
3731 | wxPy_BEGIN_ALLOW_THREADS; | |
3732 | _result = (int )wxListCtrl_GetSelectedItemCount(_arg0); | |
3733 | ||
3734 | wxPy_END_ALLOW_THREADS; | |
3735 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
3736 | return _resultobj; |
3737 | } | |
3738 | ||
3739 | #define wxListCtrl_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
efc5f224 | 3740 | static PyObject *_wrap_wxListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3741 | PyObject * _resultobj; |
3742 | wxColour * _result; | |
3743 | wxListCtrl * _arg0; | |
1d99702e | 3744 | PyObject * _argo0 = 0; |
efc5f224 | 3745 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3746 | char _ptemp[128]; |
3747 | ||
3748 | self = self; | |
efc5f224 | 3749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTextColour",_kwnames,&_argo0)) |
8ab979d7 | 3750 | return NULL; |
1d99702e RD |
3751 | if (_argo0) { |
3752 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3753 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3754 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTextColour. Expected _wxListCtrl_p."); |
3755 | return NULL; | |
3756 | } | |
3757 | } | |
cf694132 RD |
3758 | { |
3759 | wxPy_BEGIN_ALLOW_THREADS; | |
3760 | _result = new wxColour (wxListCtrl_GetTextColour(_arg0)); | |
3761 | ||
3762 | wxPy_END_ALLOW_THREADS; | |
3763 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
8ab979d7 RD |
3764 | _resultobj = Py_BuildValue("s",_ptemp); |
3765 | return _resultobj; | |
3766 | } | |
3767 | ||
be4d9c1f | 3768 | #define wxListCtrl_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) |
efc5f224 | 3769 | static PyObject *_wrap_wxListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
be4d9c1f RD |
3770 | PyObject * _resultobj; |
3771 | wxListCtrl * _arg0; | |
3772 | wxColour * _arg1; | |
1d99702e | 3773 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3774 | wxColour temp; |
3775 | PyObject * _obj1 = 0; | |
efc5f224 | 3776 | char *_kwnames[] = { "self","col", NULL }; |
be4d9c1f RD |
3777 | |
3778 | self = self; | |
f6bcfd97 | 3779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetTextColour",_kwnames,&_argo0,&_obj1)) |
be4d9c1f | 3780 | return NULL; |
1d99702e RD |
3781 | if (_argo0) { |
3782 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3783 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
be4d9c1f RD |
3784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetTextColour. Expected _wxListCtrl_p."); |
3785 | return NULL; | |
3786 | } | |
3787 | } | |
f6bcfd97 BP |
3788 | { |
3789 | _arg1 = &temp; | |
3790 | if (! wxColour_helper(_obj1, &_arg1)) | |
be4d9c1f | 3791 | return NULL; |
f6bcfd97 | 3792 | } |
cf694132 RD |
3793 | { |
3794 | wxPy_BEGIN_ALLOW_THREADS; | |
3795 | wxListCtrl_SetTextColour(_arg0,*_arg1); | |
3796 | ||
3797 | wxPy_END_ALLOW_THREADS; | |
3798 | } Py_INCREF(Py_None); | |
be4d9c1f RD |
3799 | _resultobj = Py_None; |
3800 | return _resultobj; | |
3801 | } | |
3802 | ||
8ab979d7 | 3803 | #define wxListCtrl_GetTopItem(_swigobj) (_swigobj->GetTopItem()) |
efc5f224 | 3804 | static PyObject *_wrap_wxListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3805 | PyObject * _resultobj; |
3806 | long _result; | |
3807 | wxListCtrl * _arg0; | |
1d99702e | 3808 | PyObject * _argo0 = 0; |
efc5f224 | 3809 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3810 | |
3811 | self = self; | |
efc5f224 | 3812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTopItem",_kwnames,&_argo0)) |
8ab979d7 | 3813 | return NULL; |
1d99702e RD |
3814 | if (_argo0) { |
3815 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3816 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3817 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTopItem. Expected _wxListCtrl_p."); |
3818 | return NULL; | |
3819 | } | |
3820 | } | |
cf694132 RD |
3821 | { |
3822 | wxPy_BEGIN_ALLOW_THREADS; | |
3823 | _result = (long )wxListCtrl_GetTopItem(_arg0); | |
3824 | ||
3825 | wxPy_END_ALLOW_THREADS; | |
3826 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
3827 | return _resultobj; |
3828 | } | |
3829 | ||
3830 | #define wxListCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) | |
efc5f224 | 3831 | static PyObject *_wrap_wxListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3832 | PyObject * _resultobj; |
3833 | long _result; | |
3834 | wxListCtrl * _arg0; | |
3835 | wxPoint * _arg1; | |
3836 | int * _arg2; | |
3837 | int temp; | |
1d99702e | 3838 | PyObject * _argo0 = 0; |
2f90df85 RD |
3839 | wxPoint temp0; |
3840 | PyObject * _obj1 = 0; | |
efc5f224 | 3841 | char *_kwnames[] = { "self","point", NULL }; |
8ab979d7 RD |
3842 | |
3843 | self = self; | |
3844 | { | |
3845 | _arg2 = &temp; | |
3846 | } | |
2f90df85 | 3847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_HitTest",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3848 | return NULL; |
1d99702e RD |
3849 | if (_argo0) { |
3850 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3851 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3852 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_HitTest. Expected _wxListCtrl_p."); |
3853 | return NULL; | |
3854 | } | |
3855 | } | |
2f90df85 RD |
3856 | { |
3857 | _arg1 = &temp0; | |
3858 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 3859 | return NULL; |
2f90df85 | 3860 | } |
cf694132 RD |
3861 | { |
3862 | wxPy_BEGIN_ALLOW_THREADS; | |
3863 | _result = (long )wxListCtrl_HitTest(_arg0,*_arg1,*_arg2); | |
3864 | ||
3865 | wxPy_END_ALLOW_THREADS; | |
3866 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
3867 | { |
3868 | PyObject *o; | |
3869 | o = PyInt_FromLong((long) (*_arg2)); | |
3870 | _resultobj = t_output_helper(_resultobj, o); | |
3871 | } | |
3872 | return _resultobj; | |
3873 | } | |
3874 | ||
c368d904 RD |
3875 | #define wxListCtrl_InsertColumnInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertColumn(_swigarg0,_swigarg1)) |
3876 | static PyObject *_wrap_wxListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3877 | PyObject * _resultobj; |
3878 | long _result; | |
3879 | wxListCtrl * _arg0; | |
3880 | long _arg1; | |
3881 | wxListItem * _arg2; | |
1d99702e RD |
3882 | PyObject * _argo0 = 0; |
3883 | PyObject * _argo2 = 0; | |
efc5f224 | 3884 | char *_kwnames[] = { "self","col","info", NULL }; |
8ab979d7 RD |
3885 | |
3886 | self = self; | |
c368d904 | 3887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertColumnInfo",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 3888 | return NULL; |
1d99702e RD |
3889 | if (_argo0) { |
3890 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3891 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
c368d904 | 3892 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumnInfo. Expected _wxListCtrl_p."); |
8ab979d7 RD |
3893 | return NULL; |
3894 | } | |
3895 | } | |
1d99702e RD |
3896 | if (_argo2) { |
3897 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3898 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
c368d904 | 3899 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_InsertColumnInfo. Expected _wxListItem_p."); |
8ab979d7 RD |
3900 | return NULL; |
3901 | } | |
3902 | } | |
cf694132 RD |
3903 | { |
3904 | wxPy_BEGIN_ALLOW_THREADS; | |
c368d904 | 3905 | _result = (long )wxListCtrl_InsertColumnInfo(_arg0,_arg1,*_arg2); |
cf694132 RD |
3906 | |
3907 | wxPy_END_ALLOW_THREADS; | |
3908 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
3909 | return _resultobj; |
3910 | } | |
3911 | ||
3912 | #define wxListCtrl_InsertColumn(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertColumn(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
efc5f224 | 3913 | static PyObject *_wrap_wxListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3914 | PyObject * _resultobj; |
3915 | long _result; | |
3916 | wxListCtrl * _arg0; | |
3917 | long _arg1; | |
3918 | wxString * _arg2; | |
1d99702e RD |
3919 | int _arg3 = (int ) (wxLIST_FORMAT_LEFT); |
3920 | int _arg4 = (int ) -1; | |
3921 | PyObject * _argo0 = 0; | |
8ab979d7 | 3922 | PyObject * _obj2 = 0; |
efc5f224 | 3923 | char *_kwnames[] = { "self","col","heading","format","width", NULL }; |
8ab979d7 RD |
3924 | |
3925 | self = self; | |
efc5f224 | 3926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|ii:wxListCtrl_InsertColumn",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3,&_arg4)) |
8ab979d7 | 3927 | return NULL; |
1d99702e RD |
3928 | if (_argo0) { |
3929 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3930 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3931 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumn. Expected _wxListCtrl_p."); |
3932 | return NULL; | |
3933 | } | |
3934 | } | |
3935 | { | |
3936 | if (!PyString_Check(_obj2)) { | |
3937 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3938 | return NULL; | |
3939 | } | |
cf694132 | 3940 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); |
8ab979d7 | 3941 | } |
cf694132 RD |
3942 | { |
3943 | wxPy_BEGIN_ALLOW_THREADS; | |
3944 | _result = (long )wxListCtrl_InsertColumn(_arg0,_arg1,*_arg2,_arg3,_arg4); | |
3945 | ||
3946 | wxPy_END_ALLOW_THREADS; | |
3947 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
3948 | { |
3949 | if (_obj2) | |
3950 | delete _arg2; | |
3951 | } | |
3952 | return _resultobj; | |
3953 | } | |
3954 | ||
3955 | #define wxListCtrl_InsertItem(_swigobj,_swigarg0) (_swigobj->InsertItem(_swigarg0)) | |
efc5f224 | 3956 | static PyObject *_wrap_wxListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3957 | PyObject * _resultobj; |
3958 | long _result; | |
3959 | wxListCtrl * _arg0; | |
3960 | wxListItem * _arg1; | |
1d99702e RD |
3961 | PyObject * _argo0 = 0; |
3962 | PyObject * _argo1 = 0; | |
efc5f224 | 3963 | char *_kwnames[] = { "self","info", NULL }; |
8ab979d7 RD |
3964 | |
3965 | self = self; | |
efc5f224 | 3966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_InsertItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3967 | return NULL; |
1d99702e RD |
3968 | if (_argo0) { |
3969 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3970 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
3971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertItem. Expected _wxListCtrl_p."); |
3972 | return NULL; | |
3973 | } | |
3974 | } | |
1d99702e RD |
3975 | if (_argo1) { |
3976 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3977 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
8ab979d7 RD |
3978 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_InsertItem. Expected _wxListItem_p."); |
3979 | return NULL; | |
3980 | } | |
3981 | } | |
cf694132 RD |
3982 | { |
3983 | wxPy_BEGIN_ALLOW_THREADS; | |
3984 | _result = (long )wxListCtrl_InsertItem(_arg0,*_arg1); | |
3985 | ||
3986 | wxPy_END_ALLOW_THREADS; | |
3987 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
3988 | return _resultobj; |
3989 | } | |
3990 | ||
3991 | #define wxListCtrl_InsertStringItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) | |
efc5f224 | 3992 | static PyObject *_wrap_wxListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3993 | PyObject * _resultobj; |
3994 | long _result; | |
3995 | wxListCtrl * _arg0; | |
3996 | long _arg1; | |
3997 | wxString * _arg2; | |
1d99702e | 3998 | PyObject * _argo0 = 0; |
8ab979d7 | 3999 | PyObject * _obj2 = 0; |
efc5f224 | 4000 | char *_kwnames[] = { "self","index","label", NULL }; |
8ab979d7 RD |
4001 | |
4002 | self = self; | |
efc5f224 | 4003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertStringItem",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 4004 | return NULL; |
1d99702e RD |
4005 | if (_argo0) { |
4006 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4007 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4008 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertStringItem. Expected _wxListCtrl_p."); |
4009 | return NULL; | |
4010 | } | |
4011 | } | |
4012 | { | |
4013 | if (!PyString_Check(_obj2)) { | |
4014 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4015 | return NULL; | |
4016 | } | |
cf694132 | 4017 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); |
8ab979d7 | 4018 | } |
cf694132 RD |
4019 | { |
4020 | wxPy_BEGIN_ALLOW_THREADS; | |
4021 | _result = (long )wxListCtrl_InsertStringItem(_arg0,_arg1,*_arg2); | |
4022 | ||
4023 | wxPy_END_ALLOW_THREADS; | |
4024 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
4025 | { |
4026 | if (_obj2) | |
4027 | delete _arg2; | |
4028 | } | |
4029 | return _resultobj; | |
4030 | } | |
4031 | ||
4032 | #define wxListCtrl_InsertImageItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) | |
efc5f224 | 4033 | static PyObject *_wrap_wxListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4034 | PyObject * _resultobj; |
4035 | long _result; | |
4036 | wxListCtrl * _arg0; | |
4037 | long _arg1; | |
4038 | int _arg2; | |
1d99702e | 4039 | PyObject * _argo0 = 0; |
efc5f224 | 4040 | char *_kwnames[] = { "self","index","imageIndex", NULL }; |
8ab979d7 RD |
4041 | |
4042 | self = self; | |
efc5f224 | 4043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oli:wxListCtrl_InsertImageItem",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4044 | return NULL; |
1d99702e RD |
4045 | if (_argo0) { |
4046 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4047 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageItem. Expected _wxListCtrl_p."); |
4049 | return NULL; | |
4050 | } | |
4051 | } | |
cf694132 RD |
4052 | { |
4053 | wxPy_BEGIN_ALLOW_THREADS; | |
4054 | _result = (long )wxListCtrl_InsertImageItem(_arg0,_arg1,_arg2); | |
4055 | ||
4056 | wxPy_END_ALLOW_THREADS; | |
4057 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
4058 | return _resultobj; |
4059 | } | |
4060 | ||
4061 | #define wxListCtrl_InsertImageStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 4062 | static PyObject *_wrap_wxListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4063 | PyObject * _resultobj; |
4064 | long _result; | |
4065 | wxListCtrl * _arg0; | |
4066 | long _arg1; | |
4067 | wxString * _arg2; | |
4068 | int _arg3; | |
1d99702e | 4069 | PyObject * _argo0 = 0; |
8ab979d7 | 4070 | PyObject * _obj2 = 0; |
efc5f224 | 4071 | char *_kwnames[] = { "self","index","label","imageIndex", NULL }; |
8ab979d7 RD |
4072 | |
4073 | self = self; | |
efc5f224 | 4074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_InsertImageStringItem",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) |
8ab979d7 | 4075 | return NULL; |
1d99702e RD |
4076 | if (_argo0) { |
4077 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4078 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4079 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageStringItem. Expected _wxListCtrl_p."); |
4080 | return NULL; | |
4081 | } | |
4082 | } | |
4083 | { | |
4084 | if (!PyString_Check(_obj2)) { | |
4085 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4086 | return NULL; | |
4087 | } | |
cf694132 | 4088 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); |
8ab979d7 | 4089 | } |
cf694132 RD |
4090 | { |
4091 | wxPy_BEGIN_ALLOW_THREADS; | |
4092 | _result = (long )wxListCtrl_InsertImageStringItem(_arg0,_arg1,*_arg2,_arg3); | |
4093 | ||
4094 | wxPy_END_ALLOW_THREADS; | |
4095 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
4096 | { |
4097 | if (_obj2) | |
4098 | delete _arg2; | |
4099 | } | |
4100 | return _resultobj; | |
4101 | } | |
4102 | ||
4103 | #define wxListCtrl_ScrollList(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScrollList(_swigarg0,_swigarg1)) | |
efc5f224 | 4104 | static PyObject *_wrap_wxListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4105 | PyObject * _resultobj; |
4106 | bool _result; | |
4107 | wxListCtrl * _arg0; | |
4108 | int _arg1; | |
4109 | int _arg2; | |
1d99702e | 4110 | PyObject * _argo0 = 0; |
efc5f224 | 4111 | char *_kwnames[] = { "self","dx","dy", NULL }; |
8ab979d7 RD |
4112 | |
4113 | self = self; | |
efc5f224 | 4114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_ScrollList",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4115 | return NULL; |
1d99702e RD |
4116 | if (_argo0) { |
4117 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4118 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4119 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ScrollList. Expected _wxListCtrl_p."); |
4120 | return NULL; | |
4121 | } | |
4122 | } | |
cf694132 RD |
4123 | { |
4124 | wxPy_BEGIN_ALLOW_THREADS; | |
4125 | _result = (bool )wxListCtrl_ScrollList(_arg0,_arg1,_arg2); | |
4126 | ||
4127 | wxPy_END_ALLOW_THREADS; | |
4128 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4129 | return _resultobj; |
4130 | } | |
4131 | ||
4132 | #define wxListCtrl_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
efc5f224 | 4133 | static PyObject *_wrap_wxListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4134 | PyObject * _resultobj; |
4135 | wxListCtrl * _arg0; | |
4136 | wxColour * _arg1; | |
1d99702e | 4137 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
4138 | wxColour temp; |
4139 | PyObject * _obj1 = 0; | |
efc5f224 | 4140 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
4141 | |
4142 | self = self; | |
f6bcfd97 | 4143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4144 | return NULL; |
1d99702e RD |
4145 | if (_argo0) { |
4146 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4147 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4148 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetBackgroundColour. Expected _wxListCtrl_p."); |
4149 | return NULL; | |
4150 | } | |
4151 | } | |
f6bcfd97 BP |
4152 | { |
4153 | _arg1 = &temp; | |
4154 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 4155 | return NULL; |
f6bcfd97 | 4156 | } |
cf694132 RD |
4157 | { |
4158 | wxPy_BEGIN_ALLOW_THREADS; | |
4159 | wxListCtrl_SetBackgroundColour(_arg0,*_arg1); | |
4160 | ||
4161 | wxPy_END_ALLOW_THREADS; | |
4162 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4163 | _resultobj = Py_None; |
4164 | return _resultobj; | |
4165 | } | |
4166 | ||
4167 | #define wxListCtrl_SetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumn(_swigarg0,_swigarg1)) | |
efc5f224 | 4168 | static PyObject *_wrap_wxListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4169 | PyObject * _resultobj; |
4170 | bool _result; | |
4171 | wxListCtrl * _arg0; | |
4172 | int _arg1; | |
4173 | wxListItem * _arg2; | |
1d99702e RD |
4174 | PyObject * _argo0 = 0; |
4175 | PyObject * _argo2 = 0; | |
efc5f224 | 4176 | char *_kwnames[] = { "self","col","item", NULL }; |
8ab979d7 RD |
4177 | |
4178 | self = self; | |
efc5f224 | 4179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_SetColumn",_kwnames,&_argo0,&_arg1,&_argo2)) |
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_SetColumn. Expected _wxListCtrl_p."); |
4185 | return NULL; | |
4186 | } | |
4187 | } | |
1d99702e RD |
4188 | if (_argo2) { |
4189 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
4190 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
8ab979d7 RD |
4191 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_SetColumn. Expected _wxListItem_p."); |
4192 | return NULL; | |
4193 | } | |
4194 | } | |
cf694132 RD |
4195 | { |
4196 | wxPy_BEGIN_ALLOW_THREADS; | |
4197 | _result = (bool )wxListCtrl_SetColumn(_arg0,_arg1,*_arg2); | |
4198 | ||
4199 | wxPy_END_ALLOW_THREADS; | |
4200 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4201 | return _resultobj; |
4202 | } | |
4203 | ||
4204 | #define wxListCtrl_SetColumnWidth(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnWidth(_swigarg0,_swigarg1)) | |
efc5f224 | 4205 | static PyObject *_wrap_wxListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4206 | PyObject * _resultobj; |
4207 | bool _result; | |
4208 | wxListCtrl * _arg0; | |
4209 | int _arg1; | |
4210 | int _arg2; | |
1d99702e | 4211 | PyObject * _argo0 = 0; |
efc5f224 | 4212 | char *_kwnames[] = { "self","col","width", NULL }; |
8ab979d7 RD |
4213 | |
4214 | self = self; | |
efc5f224 | 4215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_SetColumnWidth",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4216 | return NULL; |
1d99702e RD |
4217 | if (_argo0) { |
4218 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4219 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4220 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumnWidth. Expected _wxListCtrl_p."); |
4221 | return NULL; | |
4222 | } | |
4223 | } | |
cf694132 RD |
4224 | { |
4225 | wxPy_BEGIN_ALLOW_THREADS; | |
4226 | _result = (bool )wxListCtrl_SetColumnWidth(_arg0,_arg1,_arg2); | |
4227 | ||
4228 | wxPy_END_ALLOW_THREADS; | |
4229 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4230 | return _resultobj; |
4231 | } | |
4232 | ||
4233 | #define wxListCtrl_SetImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetImageList(_swigarg0,_swigarg1)) | |
efc5f224 | 4234 | static PyObject *_wrap_wxListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4235 | PyObject * _resultobj; |
4236 | wxListCtrl * _arg0; | |
4237 | wxImageList * _arg1; | |
4238 | int _arg2; | |
1d99702e RD |
4239 | PyObject * _argo0 = 0; |
4240 | PyObject * _argo1 = 0; | |
efc5f224 | 4241 | char *_kwnames[] = { "self","imageList","which", NULL }; |
8ab979d7 RD |
4242 | |
4243 | self = self; | |
efc5f224 | 4244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_SetImageList",_kwnames,&_argo0,&_argo1,&_arg2)) |
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_SetImageList. Expected _wxListCtrl_p."); |
4250 | return NULL; | |
4251 | } | |
4252 | } | |
1d99702e RD |
4253 | if (_argo1) { |
4254 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4255 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
8ab979d7 RD |
4256 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetImageList. Expected _wxImageList_p."); |
4257 | return NULL; | |
4258 | } | |
4259 | } | |
cf694132 RD |
4260 | { |
4261 | wxPy_BEGIN_ALLOW_THREADS; | |
4262 | wxListCtrl_SetImageList(_arg0,_arg1,_arg2); | |
4263 | ||
4264 | wxPy_END_ALLOW_THREADS; | |
4265 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4266 | _resultobj = Py_None; |
4267 | return _resultobj; | |
4268 | } | |
4269 | ||
4270 | #define wxListCtrl_SetItem(_swigobj,_swigarg0) (_swigobj->SetItem(_swigarg0)) | |
efc5f224 | 4271 | static PyObject *_wrap_wxListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4272 | PyObject * _resultobj; |
4273 | bool _result; | |
4274 | wxListCtrl * _arg0; | |
4275 | wxListItem * _arg1; | |
1d99702e RD |
4276 | PyObject * _argo0 = 0; |
4277 | PyObject * _argo1 = 0; | |
efc5f224 | 4278 | char *_kwnames[] = { "self","info", NULL }; |
8ab979d7 RD |
4279 | |
4280 | self = self; | |
efc5f224 | 4281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4282 | return NULL; |
1d99702e RD |
4283 | if (_argo0) { |
4284 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4285 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItem. Expected _wxListCtrl_p."); |
4287 | return NULL; | |
4288 | } | |
4289 | } | |
1d99702e RD |
4290 | if (_argo1) { |
4291 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4292 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
8ab979d7 RD |
4293 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetItem. Expected _wxListItem_p."); |
4294 | return NULL; | |
4295 | } | |
4296 | } | |
cf694132 RD |
4297 | { |
4298 | wxPy_BEGIN_ALLOW_THREADS; | |
4299 | _result = (bool )wxListCtrl_SetItem(_arg0,*_arg1); | |
4300 | ||
4301 | wxPy_END_ALLOW_THREADS; | |
4302 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4303 | return _resultobj; |
4304 | } | |
4305 | ||
af309447 | 4306 | #define wxListCtrl_SetStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
efc5f224 | 4307 | static PyObject *_wrap_wxListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4308 | PyObject * _resultobj; |
4309 | long _result; | |
4310 | wxListCtrl * _arg0; | |
4311 | long _arg1; | |
4312 | int _arg2; | |
4313 | wxString * _arg3; | |
1d99702e RD |
4314 | int _arg4 = (int ) -1; |
4315 | PyObject * _argo0 = 0; | |
8ab979d7 | 4316 | PyObject * _obj3 = 0; |
efc5f224 | 4317 | char *_kwnames[] = { "self","index","col","label","imageId", NULL }; |
8ab979d7 RD |
4318 | |
4319 | self = self; | |
efc5f224 | 4320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OliO|i:wxListCtrl_SetStringItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) |
8ab979d7 | 4321 | return NULL; |
1d99702e RD |
4322 | if (_argo0) { |
4323 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4324 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
af309447 | 4325 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetStringItem. Expected _wxListCtrl_p."); |
8ab979d7 RD |
4326 | return NULL; |
4327 | } | |
4328 | } | |
4329 | { | |
4330 | if (!PyString_Check(_obj3)) { | |
4331 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4332 | return NULL; | |
4333 | } | |
cf694132 | 4334 | _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3)); |
8ab979d7 | 4335 | } |
cf694132 RD |
4336 | { |
4337 | wxPy_BEGIN_ALLOW_THREADS; | |
4338 | _result = (long )wxListCtrl_SetStringItem(_arg0,_arg1,_arg2,*_arg3,_arg4); | |
4339 | ||
4340 | wxPy_END_ALLOW_THREADS; | |
4341 | } _resultobj = Py_BuildValue("l",_result); | |
8ab979d7 RD |
4342 | { |
4343 | if (_obj3) | |
4344 | delete _arg3; | |
4345 | } | |
4346 | return _resultobj; | |
4347 | } | |
4348 | ||
4349 | #define wxListCtrl_SetItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemData(_swigarg0,_swigarg1)) | |
efc5f224 | 4350 | static PyObject *_wrap_wxListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4351 | PyObject * _resultobj; |
4352 | bool _result; | |
4353 | wxListCtrl * _arg0; | |
4354 | long _arg1; | |
4355 | long _arg2; | |
1d99702e | 4356 | PyObject * _argo0 = 0; |
efc5f224 | 4357 | char *_kwnames[] = { "self","item","data", NULL }; |
8ab979d7 RD |
4358 | |
4359 | self = self; | |
efc5f224 | 4360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_SetItemData",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4361 | return NULL; |
1d99702e RD |
4362 | if (_argo0) { |
4363 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4364 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4365 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemData. Expected _wxListCtrl_p."); |
4366 | return NULL; | |
4367 | } | |
4368 | } | |
cf694132 RD |
4369 | { |
4370 | wxPy_BEGIN_ALLOW_THREADS; | |
4371 | _result = (bool )wxListCtrl_SetItemData(_arg0,_arg1,_arg2); | |
4372 | ||
4373 | wxPy_END_ALLOW_THREADS; | |
4374 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4375 | return _resultobj; |
4376 | } | |
4377 | ||
4378 | #define wxListCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 4379 | static PyObject *_wrap_wxListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4380 | PyObject * _resultobj; |
4381 | bool _result; | |
4382 | wxListCtrl * _arg0; | |
4383 | long _arg1; | |
4384 | int _arg2; | |
4385 | int _arg3; | |
1d99702e | 4386 | PyObject * _argo0 = 0; |
efc5f224 | 4387 | char *_kwnames[] = { "self","item","image","selImage", NULL }; |
8ab979d7 RD |
4388 | |
4389 | self = self; | |
efc5f224 | 4390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olii:wxListCtrl_SetItemImage",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 4391 | return NULL; |
1d99702e RD |
4392 | if (_argo0) { |
4393 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4394 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4395 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemImage. Expected _wxListCtrl_p."); |
4396 | return NULL; | |
4397 | } | |
4398 | } | |
cf694132 RD |
4399 | { |
4400 | wxPy_BEGIN_ALLOW_THREADS; | |
4401 | _result = (bool )wxListCtrl_SetItemImage(_arg0,_arg1,_arg2,_arg3); | |
4402 | ||
4403 | wxPy_END_ALLOW_THREADS; | |
4404 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4405 | return _resultobj; |
4406 | } | |
4407 | ||
4408 | #define wxListCtrl_SetItemPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemPosition(_swigarg0,_swigarg1)) | |
efc5f224 | 4409 | static PyObject *_wrap_wxListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4410 | PyObject * _resultobj; |
4411 | bool _result; | |
4412 | wxListCtrl * _arg0; | |
4413 | long _arg1; | |
4414 | wxPoint * _arg2; | |
1d99702e | 4415 | PyObject * _argo0 = 0; |
2f90df85 RD |
4416 | wxPoint temp; |
4417 | PyObject * _obj2 = 0; | |
efc5f224 | 4418 | char *_kwnames[] = { "self","item","pos", NULL }; |
8ab979d7 RD |
4419 | |
4420 | self = self; | |
2f90df85 | 4421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemPosition",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 4422 | return NULL; |
1d99702e RD |
4423 | if (_argo0) { |
4424 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4425 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4426 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemPosition. Expected _wxListCtrl_p."); |
4427 | return NULL; | |
4428 | } | |
4429 | } | |
2f90df85 RD |
4430 | { |
4431 | _arg2 = &temp; | |
4432 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 4433 | return NULL; |
2f90df85 | 4434 | } |
cf694132 RD |
4435 | { |
4436 | wxPy_BEGIN_ALLOW_THREADS; | |
4437 | _result = (bool )wxListCtrl_SetItemPosition(_arg0,_arg1,*_arg2); | |
4438 | ||
4439 | wxPy_END_ALLOW_THREADS; | |
4440 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4441 | return _resultobj; |
4442 | } | |
4443 | ||
4444 | #define wxListCtrl_SetItemState(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemState(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 4445 | static PyObject *_wrap_wxListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4446 | PyObject * _resultobj; |
4447 | bool _result; | |
4448 | wxListCtrl * _arg0; | |
4449 | long _arg1; | |
4450 | long _arg2; | |
4451 | long _arg3; | |
1d99702e | 4452 | PyObject * _argo0 = 0; |
efc5f224 | 4453 | char *_kwnames[] = { "self","item","state","stateMask", NULL }; |
8ab979d7 RD |
4454 | |
4455 | self = self; | |
efc5f224 | 4456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxListCtrl_SetItemState",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 4457 | return NULL; |
1d99702e RD |
4458 | if (_argo0) { |
4459 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4460 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4461 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemState. Expected _wxListCtrl_p."); |
4462 | return NULL; | |
4463 | } | |
4464 | } | |
cf694132 RD |
4465 | { |
4466 | wxPy_BEGIN_ALLOW_THREADS; | |
4467 | _result = (bool )wxListCtrl_SetItemState(_arg0,_arg1,_arg2,_arg3); | |
4468 | ||
4469 | wxPy_END_ALLOW_THREADS; | |
4470 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4471 | return _resultobj; |
4472 | } | |
4473 | ||
4474 | #define wxListCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) | |
efc5f224 | 4475 | static PyObject *_wrap_wxListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4476 | PyObject * _resultobj; |
4477 | wxListCtrl * _arg0; | |
4478 | long _arg1; | |
4479 | wxString * _arg2; | |
1d99702e | 4480 | PyObject * _argo0 = 0; |
8ab979d7 | 4481 | PyObject * _obj2 = 0; |
efc5f224 | 4482 | char *_kwnames[] = { "self","item","text", NULL }; |
8ab979d7 RD |
4483 | |
4484 | self = self; | |
efc5f224 | 4485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemText",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 4486 | return NULL; |
1d99702e RD |
4487 | if (_argo0) { |
4488 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4489 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4490 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemText. Expected _wxListCtrl_p."); |
4491 | return NULL; | |
4492 | } | |
4493 | } | |
4494 | { | |
4495 | if (!PyString_Check(_obj2)) { | |
4496 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4497 | return NULL; | |
4498 | } | |
cf694132 | 4499 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); |
8ab979d7 | 4500 | } |
cf694132 RD |
4501 | { |
4502 | wxPy_BEGIN_ALLOW_THREADS; | |
4503 | wxListCtrl_SetItemText(_arg0,_arg1,*_arg2); | |
4504 | ||
4505 | wxPy_END_ALLOW_THREADS; | |
4506 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4507 | _resultobj = Py_None; |
4508 | { | |
4509 | if (_obj2) | |
4510 | delete _arg2; | |
4511 | } | |
4512 | return _resultobj; | |
4513 | } | |
4514 | ||
4515 | #define wxListCtrl_SetSingleStyle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSingleStyle(_swigarg0,_swigarg1)) | |
efc5f224 | 4516 | static PyObject *_wrap_wxListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4517 | PyObject * _resultobj; |
4518 | wxListCtrl * _arg0; | |
4519 | long _arg1; | |
1d99702e RD |
4520 | bool _arg2 = (bool ) TRUE; |
4521 | PyObject * _argo0 = 0; | |
4522 | int tempbool2 = (int) TRUE; | |
efc5f224 | 4523 | char *_kwnames[] = { "self","style","add", NULL }; |
8ab979d7 RD |
4524 | |
4525 | self = self; | |
efc5f224 | 4526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_SetSingleStyle",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 4527 | return NULL; |
1d99702e RD |
4528 | if (_argo0) { |
4529 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4530 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetSingleStyle. Expected _wxListCtrl_p."); |
4532 | return NULL; | |
4533 | } | |
4534 | } | |
4535 | _arg2 = (bool ) tempbool2; | |
cf694132 RD |
4536 | { |
4537 | wxPy_BEGIN_ALLOW_THREADS; | |
4538 | wxListCtrl_SetSingleStyle(_arg0,_arg1,_arg2); | |
4539 | ||
4540 | wxPy_END_ALLOW_THREADS; | |
4541 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4542 | _resultobj = Py_None; |
4543 | return _resultobj; | |
4544 | } | |
4545 | ||
8ab979d7 | 4546 | #define wxListCtrl_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) |
efc5f224 | 4547 | static PyObject *_wrap_wxListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4548 | PyObject * _resultobj; |
4549 | wxListCtrl * _arg0; | |
4550 | long _arg1; | |
1d99702e | 4551 | PyObject * _argo0 = 0; |
efc5f224 | 4552 | char *_kwnames[] = { "self","style", NULL }; |
8ab979d7 RD |
4553 | |
4554 | self = self; | |
efc5f224 | 4555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4556 | return NULL; |
1d99702e RD |
4557 | if (_argo0) { |
4558 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4559 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
8ab979d7 RD |
4560 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetWindowStyleFlag. Expected _wxListCtrl_p."); |
4561 | return NULL; | |
4562 | } | |
4563 | } | |
cf694132 RD |
4564 | { |
4565 | wxPy_BEGIN_ALLOW_THREADS; | |
4566 | wxListCtrl_SetWindowStyleFlag(_arg0,_arg1); | |
4567 | ||
4568 | wxPy_END_ALLOW_THREADS; | |
4569 | } Py_INCREF(Py_None); | |
8ab979d7 RD |
4570 | _resultobj = Py_None; |
4571 | return _resultobj; | |
4572 | } | |
4573 | ||
dcd38683 RD |
4574 | static bool wxListCtrl_SortItems(wxListCtrl *self,PyObject * func) { |
4575 | if (!PyCallable_Check(func)) | |
4576 | return FALSE; | |
4577 | ||
f6bcfd97 | 4578 | return self->SortItems(wxPyListCtrl_SortItems, (long)func); |
dcd38683 RD |
4579 | } |
4580 | static PyObject *_wrap_wxListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4581 | PyObject * _resultobj; | |
4582 | bool _result; | |
4583 | wxListCtrl * _arg0; | |
4584 | PyObject * _arg1; | |
4585 | PyObject * _argo0 = 0; | |
4586 | PyObject * _obj1 = 0; | |
4587 | char *_kwnames[] = { "self","func", NULL }; | |
4588 | ||
4589 | self = self; | |
4590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SortItems",_kwnames,&_argo0,&_obj1)) | |
4591 | return NULL; | |
4592 | if (_argo0) { | |
4593 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4594 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
4595 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SortItems. Expected _wxListCtrl_p."); | |
4596 | return NULL; | |
4597 | } | |
4598 | } | |
4599 | { | |
4600 | _arg1 = _obj1; | |
4601 | } | |
4602 | { | |
4603 | wxPy_BEGIN_ALLOW_THREADS; | |
4604 | _result = (bool )wxListCtrl_SortItems(_arg0,_arg1); | |
4605 | ||
4606 | wxPy_END_ALLOW_THREADS; | |
4607 | } _resultobj = Py_BuildValue("i",_result); | |
4608 | return _resultobj; | |
4609 | } | |
4610 | ||
d5c9047a | 4611 | #define new_wxTreeItemId() (new wxTreeItemId()) |
efc5f224 | 4612 | static PyObject *_wrap_new_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4613 | PyObject * _resultobj; |
d5c9047a | 4614 | wxTreeItemId * _result; |
efc5f224 | 4615 | char *_kwnames[] = { NULL }; |
d5c9047a | 4616 | char _ptemp[128]; |
8ab979d7 RD |
4617 | |
4618 | self = self; | |
efc5f224 | 4619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxTreeItemId",_kwnames)) |
8ab979d7 | 4620 | return NULL; |
cf694132 RD |
4621 | { |
4622 | wxPy_BEGIN_ALLOW_THREADS; | |
4623 | _result = (wxTreeItemId *)new_wxTreeItemId(); | |
4624 | ||
4625 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
4626 | } if (_result) { |
4627 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
4628 | _resultobj = Py_BuildValue("s",_ptemp); | |
4629 | } else { | |
4630 | Py_INCREF(Py_None); | |
4631 | _resultobj = Py_None; | |
4632 | } | |
8ab979d7 RD |
4633 | return _resultobj; |
4634 | } | |
4635 | ||
d5c9047a | 4636 | #define delete_wxTreeItemId(_swigobj) (delete _swigobj) |
efc5f224 | 4637 | static PyObject *_wrap_delete_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4638 | PyObject * _resultobj; |
d5c9047a | 4639 | wxTreeItemId * _arg0; |
1d99702e | 4640 | PyObject * _argo0 = 0; |
efc5f224 | 4641 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4642 | |
4643 | self = self; | |
efc5f224 | 4644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTreeItemId",_kwnames,&_argo0)) |
8ab979d7 | 4645 | return NULL; |
1d99702e RD |
4646 | if (_argo0) { |
4647 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4648 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
d5c9047a | 4649 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTreeItemId. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
4650 | return NULL; |
4651 | } | |
4652 | } | |
cf694132 RD |
4653 | { |
4654 | wxPy_BEGIN_ALLOW_THREADS; | |
4655 | delete_wxTreeItemId(_arg0); | |
4656 | ||
4657 | wxPy_END_ALLOW_THREADS; | |
4658 | } Py_INCREF(Py_None); | |
d5c9047a | 4659 | _resultobj = Py_None; |
8ab979d7 RD |
4660 | return _resultobj; |
4661 | } | |
4662 | ||
d5c9047a | 4663 | #define wxTreeItemId_IsOk(_swigobj) (_swigobj->IsOk()) |
efc5f224 | 4664 | static PyObject *_wrap_wxTreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4665 | PyObject * _resultobj; |
d5c9047a RD |
4666 | bool _result; |
4667 | wxTreeItemId * _arg0; | |
1d99702e | 4668 | PyObject * _argo0 = 0; |
efc5f224 | 4669 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4670 | |
4671 | self = self; | |
efc5f224 | 4672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemId_IsOk",_kwnames,&_argo0)) |
8ab979d7 | 4673 | return NULL; |
1d99702e RD |
4674 | if (_argo0) { |
4675 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4676 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
d5c9047a | 4677 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId_IsOk. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
4678 | return NULL; |
4679 | } | |
4680 | } | |
cf694132 RD |
4681 | { |
4682 | wxPy_BEGIN_ALLOW_THREADS; | |
4683 | _result = (bool )wxTreeItemId_IsOk(_arg0); | |
4684 | ||
4685 | wxPy_END_ALLOW_THREADS; | |
4686 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
4687 | return _resultobj; |
4688 | } | |
4689 | ||
f6bcfd97 | 4690 | static int wxTreeItemId___cmp__(wxTreeItemId *self,wxTreeItemId * other) { |
c368d904 | 4691 | if (! other) return -1; |
f6bcfd97 BP |
4692 | return *self != *other; |
4693 | } | |
4694 | static PyObject *_wrap_wxTreeItemId___cmp__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4695 | PyObject * _resultobj; | |
4696 | int _result; | |
4697 | wxTreeItemId * _arg0; | |
4698 | wxTreeItemId * _arg1; | |
4699 | PyObject * _argo0 = 0; | |
4700 | PyObject * _argo1 = 0; | |
4701 | char *_kwnames[] = { "self","other", NULL }; | |
4702 | ||
4703 | self = self; | |
4704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemId___cmp__",_kwnames,&_argo0,&_argo1)) | |
4705 | return NULL; | |
4706 | if (_argo0) { | |
4707 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4708 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
4709 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
4710 | return NULL; | |
4711 | } | |
4712 | } | |
4713 | if (_argo1) { | |
4714 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4715 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
4716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
4717 | return NULL; | |
4718 | } | |
4719 | } | |
4720 | { | |
4721 | wxPy_BEGIN_ALLOW_THREADS; | |
4722 | _result = (int )wxTreeItemId___cmp__(_arg0,_arg1); | |
4723 | ||
4724 | wxPy_END_ALLOW_THREADS; | |
4725 | } _resultobj = Py_BuildValue("i",_result); | |
4726 | return _resultobj; | |
4727 | } | |
4728 | ||
cf694132 | 4729 | #define new_wxTreeItemData(_swigarg0) (new wxPyTreeItemData(_swigarg0)) |
efc5f224 | 4730 | static PyObject *_wrap_new_wxTreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4731 | PyObject * _resultobj; |
cf694132 | 4732 | wxPyTreeItemData * _result; |
1d99702e | 4733 | PyObject * _arg0 = (PyObject *) NULL; |
cf694132 | 4734 | PyObject * _obj0 = 0; |
efc5f224 | 4735 | char *_kwnames[] = { "obj", NULL }; |
d5c9047a | 4736 | char _ptemp[128]; |
8ab979d7 RD |
4737 | |
4738 | self = self; | |
efc5f224 | 4739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxTreeItemData",_kwnames,&_obj0)) |
8ab979d7 | 4740 | return NULL; |
cf694132 RD |
4741 | if (_obj0) |
4742 | { | |
4743 | _arg0 = _obj0; | |
4744 | } | |
4745 | { | |
4746 | wxPy_BEGIN_ALLOW_THREADS; | |
4747 | _result = (wxPyTreeItemData *)new_wxTreeItemData(_arg0); | |
4748 | ||
4749 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
4750 | } if (_result) { |
4751 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
4752 | _resultobj = Py_BuildValue("s",_ptemp); | |
4753 | } else { | |
4754 | Py_INCREF(Py_None); | |
4755 | _resultobj = Py_None; | |
4756 | } | |
8ab979d7 RD |
4757 | return _resultobj; |
4758 | } | |
4759 | ||
cf694132 | 4760 | #define wxTreeItemData_GetData(_swigobj) (_swigobj->GetData()) |
efc5f224 | 4761 | static PyObject *_wrap_wxTreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
4762 | PyObject * _resultobj; |
4763 | PyObject * _result; | |
4764 | wxPyTreeItemData * _arg0; | |
1d99702e | 4765 | PyObject * _argo0 = 0; |
efc5f224 | 4766 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
4767 | |
4768 | self = self; | |
efc5f224 | 4769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetData",_kwnames,&_argo0)) |
cf694132 | 4770 | return NULL; |
1d99702e RD |
4771 | if (_argo0) { |
4772 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4773 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 RD |
4774 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetData. Expected _wxPyTreeItemData_p."); |
4775 | return NULL; | |
4776 | } | |
4777 | } | |
4778 | { | |
4779 | wxPy_BEGIN_ALLOW_THREADS; | |
4780 | _result = (PyObject *)wxTreeItemData_GetData(_arg0); | |
4781 | ||
4782 | wxPy_END_ALLOW_THREADS; | |
4783 | }{ | |
4784 | _resultobj = _result; | |
4785 | } | |
4786 | return _resultobj; | |
4787 | } | |
4788 | ||
4789 | #define wxTreeItemData_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
efc5f224 | 4790 | static PyObject *_wrap_wxTreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4791 | PyObject * _resultobj; |
cf694132 RD |
4792 | wxPyTreeItemData * _arg0; |
4793 | PyObject * _arg1; | |
1d99702e | 4794 | PyObject * _argo0 = 0; |
cf694132 | 4795 | PyObject * _obj1 = 0; |
efc5f224 | 4796 | char *_kwnames[] = { "self","obj", NULL }; |
8ab979d7 RD |
4797 | |
4798 | self = self; | |
efc5f224 | 4799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetData",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4800 | return NULL; |
1d99702e RD |
4801 | if (_argo0) { |
4802 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4803 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 4804 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetData. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
4805 | return NULL; |
4806 | } | |
4807 | } | |
cf694132 RD |
4808 | { |
4809 | _arg1 = _obj1; | |
4810 | } | |
4811 | { | |
4812 | wxPy_BEGIN_ALLOW_THREADS; | |
4813 | wxTreeItemData_SetData(_arg0,_arg1); | |
4814 | ||
4815 | wxPy_END_ALLOW_THREADS; | |
4816 | } Py_INCREF(Py_None); | |
d5c9047a | 4817 | _resultobj = Py_None; |
8ab979d7 RD |
4818 | return _resultobj; |
4819 | } | |
4820 | ||
630d84f2 | 4821 | #define wxTreeItemData_GetId(_swigobj) (_swigobj->GetId()) |
efc5f224 | 4822 | static PyObject *_wrap_wxTreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4823 | PyObject * _resultobj; |
d5c9047a | 4824 | wxTreeItemId * _result; |
cf694132 | 4825 | wxPyTreeItemData * _arg0; |
1d99702e | 4826 | PyObject * _argo0 = 0; |
efc5f224 | 4827 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4828 | char _ptemp[128]; |
4829 | ||
4830 | self = self; | |
efc5f224 | 4831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetId",_kwnames,&_argo0)) |
8ab979d7 | 4832 | return NULL; |
1d99702e RD |
4833 | if (_argo0) { |
4834 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4835 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 4836 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetId. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
4837 | return NULL; |
4838 | } | |
4839 | } | |
cf694132 RD |
4840 | { |
4841 | wxPy_BEGIN_ALLOW_THREADS; | |
4842 | const wxTreeItemId & _result_ref = wxTreeItemData_GetId(_arg0); | |
d5c9047a | 4843 | _result = (wxTreeItemId *) &_result_ref; |
cf694132 RD |
4844 | |
4845 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
4846 | } if (_result) { |
4847 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
4848 | _resultobj = Py_BuildValue("s",_ptemp); | |
4849 | } else { | |
4850 | Py_INCREF(Py_None); | |
4851 | _resultobj = Py_None; | |
4852 | } | |
8ab979d7 RD |
4853 | return _resultobj; |
4854 | } | |
4855 | ||
630d84f2 | 4856 | #define wxTreeItemData_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) |
efc5f224 | 4857 | static PyObject *_wrap_wxTreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
630d84f2 | 4858 | PyObject * _resultobj; |
cf694132 | 4859 | wxPyTreeItemData * _arg0; |
630d84f2 | 4860 | wxTreeItemId * _arg1; |
1d99702e RD |
4861 | PyObject * _argo0 = 0; |
4862 | PyObject * _argo1 = 0; | |
efc5f224 | 4863 | char *_kwnames[] = { "self","id", NULL }; |
630d84f2 RD |
4864 | |
4865 | self = self; | |
efc5f224 | 4866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetId",_kwnames,&_argo0,&_argo1)) |
630d84f2 | 4867 | return NULL; |
1d99702e RD |
4868 | if (_argo0) { |
4869 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4870 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 4871 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetId. Expected _wxPyTreeItemData_p."); |
630d84f2 RD |
4872 | return NULL; |
4873 | } | |
4874 | } | |
1d99702e RD |
4875 | if (_argo1) { |
4876 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4877 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
630d84f2 RD |
4878 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemData_SetId. Expected _wxTreeItemId_p."); |
4879 | return NULL; | |
4880 | } | |
4881 | } | |
cf694132 RD |
4882 | { |
4883 | wxPy_BEGIN_ALLOW_THREADS; | |
4884 | wxTreeItemData_SetId(_arg0,*_arg1); | |
4885 | ||
4886 | wxPy_END_ALLOW_THREADS; | |
4887 | } Py_INCREF(Py_None); | |
630d84f2 RD |
4888 | _resultobj = Py_None; |
4889 | return _resultobj; | |
4890 | } | |
4891 | ||
8bf5d46e RD |
4892 | static void *SwigwxTreeEventTowxNotifyEvent(void *ptr) { |
4893 | wxTreeEvent *src; | |
4894 | wxNotifyEvent *dest; | |
4895 | src = (wxTreeEvent *) ptr; | |
4896 | dest = (wxNotifyEvent *) src; | |
4897 | return (void *) dest; | |
4898 | } | |
4899 | ||
8ab979d7 RD |
4900 | static void *SwigwxTreeEventTowxCommandEvent(void *ptr) { |
4901 | wxTreeEvent *src; | |
4902 | wxCommandEvent *dest; | |
4903 | src = (wxTreeEvent *) ptr; | |
4904 | dest = (wxCommandEvent *) src; | |
4905 | return (void *) dest; | |
4906 | } | |
4907 | ||
4908 | static void *SwigwxTreeEventTowxEvent(void *ptr) { | |
4909 | wxTreeEvent *src; | |
4910 | wxEvent *dest; | |
4911 | src = (wxTreeEvent *) ptr; | |
4912 | dest = (wxEvent *) src; | |
4913 | return (void *) dest; | |
4914 | } | |
4915 | ||
d5c9047a | 4916 | #define wxTreeEvent_GetItem(_swigobj) (_swigobj->GetItem()) |
efc5f224 | 4917 | static PyObject *_wrap_wxTreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4918 | PyObject * _resultobj; |
d5c9047a | 4919 | wxTreeItemId * _result; |
8ab979d7 | 4920 | wxTreeEvent * _arg0; |
1d99702e | 4921 | PyObject * _argo0 = 0; |
efc5f224 | 4922 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 4923 | char _ptemp[128]; |
8ab979d7 RD |
4924 | |
4925 | self = self; | |
efc5f224 | 4926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetItem",_kwnames,&_argo0)) |
8ab979d7 | 4927 | return NULL; |
1d99702e RD |
4928 | if (_argo0) { |
4929 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4930 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 4931 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetItem. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
4932 | return NULL; |
4933 | } | |
4934 | } | |
cf694132 RD |
4935 | { |
4936 | wxPy_BEGIN_ALLOW_THREADS; | |
4937 | _result = new wxTreeItemId (wxTreeEvent_GetItem(_arg0)); | |
4938 | ||
4939 | wxPy_END_ALLOW_THREADS; | |
4940 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 4941 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
4942 | return _resultobj; |
4943 | } | |
4944 | ||
d5c9047a | 4945 | #define wxTreeEvent_GetOldItem(_swigobj) (_swigobj->GetOldItem()) |
efc5f224 | 4946 | static PyObject *_wrap_wxTreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4947 | PyObject * _resultobj; |
d5c9047a | 4948 | wxTreeItemId * _result; |
8ab979d7 | 4949 | wxTreeEvent * _arg0; |
1d99702e | 4950 | PyObject * _argo0 = 0; |
efc5f224 | 4951 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4952 | char _ptemp[128]; |
4953 | ||
4954 | self = self; | |
efc5f224 | 4955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetOldItem",_kwnames,&_argo0)) |
8ab979d7 | 4956 | return NULL; |
1d99702e RD |
4957 | if (_argo0) { |
4958 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4959 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 4960 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetOldItem. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
4961 | return NULL; |
4962 | } | |
4963 | } | |
cf694132 RD |
4964 | { |
4965 | wxPy_BEGIN_ALLOW_THREADS; | |
4966 | _result = new wxTreeItemId (wxTreeEvent_GetOldItem(_arg0)); | |
4967 | ||
4968 | wxPy_END_ALLOW_THREADS; | |
4969 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
8ab979d7 RD |
4970 | _resultobj = Py_BuildValue("s",_ptemp); |
4971 | return _resultobj; | |
4972 | } | |
4973 | ||
d5c9047a | 4974 | #define wxTreeEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) |
efc5f224 | 4975 | static PyObject *_wrap_wxTreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4976 | PyObject * _resultobj; |
d5c9047a | 4977 | wxPoint * _result; |
8ab979d7 | 4978 | wxTreeEvent * _arg0; |
1d99702e | 4979 | PyObject * _argo0 = 0; |
efc5f224 | 4980 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 4981 | char _ptemp[128]; |
8ab979d7 RD |
4982 | |
4983 | self = self; | |
efc5f224 | 4984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetPoint",_kwnames,&_argo0)) |
8ab979d7 | 4985 | return NULL; |
1d99702e RD |
4986 | if (_argo0) { |
4987 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4988 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 4989 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetPoint. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
4990 | return NULL; |
4991 | } | |
4992 | } | |
cf694132 RD |
4993 | { |
4994 | wxPy_BEGIN_ALLOW_THREADS; | |
4995 | _result = new wxPoint (wxTreeEvent_GetPoint(_arg0)); | |
4996 | ||
4997 | wxPy_END_ALLOW_THREADS; | |
4998 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
d5c9047a | 4999 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
5000 | return _resultobj; |
5001 | } | |
5002 | ||
d5c9047a | 5003 | #define wxTreeEvent_GetCode(_swigobj) (_swigobj->GetCode()) |
efc5f224 | 5004 | static PyObject *_wrap_wxTreeEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5005 | PyObject * _resultobj; |
d5c9047a | 5006 | int _result; |
8ab979d7 | 5007 | wxTreeEvent * _arg0; |
1d99702e | 5008 | PyObject * _argo0 = 0; |
efc5f224 | 5009 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5010 | |
5011 | self = self; | |
efc5f224 | 5012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetCode",_kwnames,&_argo0)) |
8ab979d7 | 5013 | return NULL; |
1d99702e RD |
5014 | if (_argo0) { |
5015 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5016 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 5017 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetCode. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
5018 | return NULL; |
5019 | } | |
5020 | } | |
cf694132 RD |
5021 | { |
5022 | wxPy_BEGIN_ALLOW_THREADS; | |
5023 | _result = (int )wxTreeEvent_GetCode(_arg0); | |
5024 | ||
5025 | wxPy_END_ALLOW_THREADS; | |
5026 | } _resultobj = Py_BuildValue("i",_result); | |
d5c9047a RD |
5027 | return _resultobj; |
5028 | } | |
5029 | ||
8bf5d46e | 5030 | #define wxTreeEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 5031 | static PyObject *_wrap_wxTreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 5032 | PyObject * _resultobj; |
8bf5d46e | 5033 | wxString * _result; |
d5c9047a | 5034 | wxTreeEvent * _arg0; |
1d99702e | 5035 | PyObject * _argo0 = 0; |
efc5f224 | 5036 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
5037 | |
5038 | self = self; | |
efc5f224 | 5039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetLabel",_kwnames,&_argo0)) |
d5c9047a | 5040 | return NULL; |
1d99702e RD |
5041 | if (_argo0) { |
5042 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5043 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
8bf5d46e | 5044 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetLabel. Expected _wxTreeEvent_p."); |
d5c9047a RD |
5045 | return NULL; |
5046 | } | |
5047 | } | |
cf694132 RD |
5048 | { |
5049 | wxPy_BEGIN_ALLOW_THREADS; | |
8bf5d46e RD |
5050 | const wxString & _result_ref = wxTreeEvent_GetLabel(_arg0); |
5051 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
5052 | |
5053 | wxPy_END_ALLOW_THREADS; | |
8bf5d46e | 5054 | }{ |
eec92d76 | 5055 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8bf5d46e | 5056 | } |
8ab979d7 RD |
5057 | return _resultobj; |
5058 | } | |
5059 | ||
f6bcfd97 BP |
5060 | static void *SwigwxPyTreeCtrlTowxControl(void *ptr) { |
5061 | wxPyTreeCtrl *src; | |
8ab979d7 | 5062 | wxControl *dest; |
f6bcfd97 | 5063 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
5064 | dest = (wxControl *) src; |
5065 | return (void *) dest; | |
5066 | } | |
5067 | ||
f6bcfd97 BP |
5068 | static void *SwigwxPyTreeCtrlTowxWindow(void *ptr) { |
5069 | wxPyTreeCtrl *src; | |
8ab979d7 | 5070 | wxWindow *dest; |
f6bcfd97 | 5071 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
5072 | dest = (wxWindow *) src; |
5073 | return (void *) dest; | |
5074 | } | |
5075 | ||
f6bcfd97 BP |
5076 | static void *SwigwxPyTreeCtrlTowxEvtHandler(void *ptr) { |
5077 | wxPyTreeCtrl *src; | |
8ab979d7 | 5078 | wxEvtHandler *dest; |
f6bcfd97 | 5079 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
5080 | dest = (wxEvtHandler *) src; |
5081 | return (void *) dest; | |
5082 | } | |
5083 | ||
f6bcfd97 | 5084 | #define new_wxTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 5085 | static PyObject *_wrap_new_wxTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5086 | PyObject * _resultobj; |
f6bcfd97 | 5087 | wxPyTreeCtrl * _result; |
8ab979d7 | 5088 | wxWindow * _arg0; |
1d99702e RD |
5089 | wxWindowID _arg1 = (wxWindowID ) -1; |
5090 | wxPoint * _arg2 = (wxPoint *) &wxPyDefaultPosition; | |
5091 | wxSize * _arg3 = (wxSize *) &wxPyDefaultSize; | |
5092 | long _arg4 = (long ) wxTR_HAS_BUTTONS|wxTR_LINES_AT_ROOT; | |
5093 | wxValidator * _arg5 = (wxValidator *) &wxPyDefaultValidator; | |
5094 | char * _arg6 = (char *) "wxTreeCtrl"; | |
5095 | PyObject * _argo0 = 0; | |
2f90df85 RD |
5096 | wxPoint temp; |
5097 | PyObject * _obj2 = 0; | |
5098 | wxSize temp0; | |
5099 | PyObject * _obj3 = 0; | |
1d99702e | 5100 | PyObject * _argo5 = 0; |
efc5f224 | 5101 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
5102 | char _ptemp[128]; |
5103 | ||
5104 | self = self; | |
2f90df85 | 5105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxTreeCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) |
8ab979d7 | 5106 | return NULL; |
1d99702e RD |
5107 | if (_argo0) { |
5108 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5109 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5110 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTreeCtrl. Expected _wxWindow_p."); |
5111 | return NULL; | |
5112 | } | |
5113 | } | |
2f90df85 RD |
5114 | if (_obj2) |
5115 | { | |
5116 | _arg2 = &temp; | |
5117 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 5118 | return NULL; |
2f90df85 RD |
5119 | } |
5120 | if (_obj3) | |
5121 | { | |
5122 | _arg3 = &temp0; | |
5123 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 5124 | return NULL; |
2f90df85 | 5125 | } |
1d99702e RD |
5126 | if (_argo5) { |
5127 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
5128 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
8ab979d7 RD |
5129 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxTreeCtrl. Expected _wxValidator_p."); |
5130 | return NULL; | |
5131 | } | |
5132 | } | |
cf694132 RD |
5133 | { |
5134 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 5135 | _result = (wxPyTreeCtrl *)new_wxTreeCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); |
cf694132 RD |
5136 | |
5137 | wxPy_END_ALLOW_THREADS; | |
1d99702e | 5138 | } if (_result) { |
f6bcfd97 | 5139 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p"); |
1d99702e RD |
5140 | _resultobj = Py_BuildValue("s",_ptemp); |
5141 | } else { | |
5142 | Py_INCREF(Py_None); | |
5143 | _resultobj = Py_None; | |
5144 | } | |
8ab979d7 RD |
5145 | return _resultobj; |
5146 | } | |
5147 | ||
f6bcfd97 BP |
5148 | #define wxTreeCtrl__setSelf(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setSelf(_swigarg0,_swigarg1)) |
5149 | static PyObject *_wrap_wxTreeCtrl__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5150 | PyObject * _resultobj; | |
5151 | wxPyTreeCtrl * _arg0; | |
5152 | PyObject * _arg1; | |
5153 | PyObject * _arg2; | |
5154 | PyObject * _argo0 = 0; | |
5155 | PyObject * _obj1 = 0; | |
5156 | PyObject * _obj2 = 0; | |
5157 | char *_kwnames[] = { "self","self","_class", NULL }; | |
5158 | ||
5159 | self = self; | |
5160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl__setSelf",_kwnames,&_argo0,&_obj1,&_obj2)) | |
5161 | return NULL; | |
5162 | if (_argo0) { | |
5163 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5164 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
5165 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl__setSelf. Expected _wxPyTreeCtrl_p."); | |
5166 | return NULL; | |
5167 | } | |
5168 | } | |
5169 | { | |
5170 | _arg1 = _obj1; | |
5171 | } | |
5172 | { | |
5173 | _arg2 = _obj2; | |
5174 | } | |
5175 | { | |
5176 | wxPy_BEGIN_ALLOW_THREADS; | |
5177 | wxTreeCtrl__setSelf(_arg0,_arg1,_arg2); | |
5178 | ||
5179 | wxPy_END_ALLOW_THREADS; | |
5180 | } Py_INCREF(Py_None); | |
5181 | _resultobj = Py_None; | |
5182 | return _resultobj; | |
5183 | } | |
5184 | ||
d5c9047a | 5185 | #define wxTreeCtrl_GetCount(_swigobj) (_swigobj->GetCount()) |
efc5f224 | 5186 | static PyObject *_wrap_wxTreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5187 | PyObject * _resultobj; |
c127177f | 5188 | size_t _result; |
f6bcfd97 | 5189 | wxPyTreeCtrl * _arg0; |
1d99702e | 5190 | PyObject * _argo0 = 0; |
efc5f224 | 5191 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5192 | |
5193 | self = self; | |
efc5f224 | 5194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetCount",_kwnames,&_argo0)) |
8ab979d7 | 5195 | return NULL; |
1d99702e RD |
5196 | if (_argo0) { |
5197 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5198 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5199 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetCount. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5200 | return NULL; |
5201 | } | |
5202 | } | |
cf694132 RD |
5203 | { |
5204 | wxPy_BEGIN_ALLOW_THREADS; | |
c127177f | 5205 | _result = (size_t )wxTreeCtrl_GetCount(_arg0); |
cf694132 RD |
5206 | |
5207 | wxPy_END_ALLOW_THREADS; | |
c127177f | 5208 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5209 | return _resultobj; |
5210 | } | |
5211 | ||
d5c9047a | 5212 | #define wxTreeCtrl_GetIndent(_swigobj) (_swigobj->GetIndent()) |
efc5f224 | 5213 | static PyObject *_wrap_wxTreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5214 | PyObject * _resultobj; |
d5c9047a | 5215 | unsigned int _result; |
f6bcfd97 | 5216 | wxPyTreeCtrl * _arg0; |
1d99702e | 5217 | PyObject * _argo0 = 0; |
efc5f224 | 5218 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5219 | |
5220 | self = self; | |
efc5f224 | 5221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetIndent",_kwnames,&_argo0)) |
8ab979d7 | 5222 | return NULL; |
1d99702e RD |
5223 | if (_argo0) { |
5224 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5225 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5226 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetIndent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5227 | return NULL; |
5228 | } | |
5229 | } | |
cf694132 RD |
5230 | { |
5231 | wxPy_BEGIN_ALLOW_THREADS; | |
5232 | _result = (unsigned int )wxTreeCtrl_GetIndent(_arg0); | |
5233 | ||
5234 | wxPy_END_ALLOW_THREADS; | |
5235 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5236 | return _resultobj; |
5237 | } | |
5238 | ||
d5c9047a | 5239 | #define wxTreeCtrl_SetIndent(_swigobj,_swigarg0) (_swigobj->SetIndent(_swigarg0)) |
efc5f224 | 5240 | static PyObject *_wrap_wxTreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5241 | PyObject * _resultobj; |
f6bcfd97 | 5242 | wxPyTreeCtrl * _arg0; |
d5c9047a | 5243 | unsigned int _arg1; |
1d99702e | 5244 | PyObject * _argo0 = 0; |
efc5f224 | 5245 | char *_kwnames[] = { "self","indent", NULL }; |
8ab979d7 RD |
5246 | |
5247 | self = self; | |
efc5f224 | 5248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetIndent",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5249 | return NULL; |
1d99702e RD |
5250 | if (_argo0) { |
5251 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5252 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5253 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetIndent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5254 | return NULL; |
5255 | } | |
5256 | } | |
cf694132 RD |
5257 | { |
5258 | wxPy_BEGIN_ALLOW_THREADS; | |
5259 | wxTreeCtrl_SetIndent(_arg0,_arg1); | |
5260 | ||
5261 | wxPy_END_ALLOW_THREADS; | |
5262 | } Py_INCREF(Py_None); | |
d5c9047a | 5263 | _resultobj = Py_None; |
8ab979d7 RD |
5264 | return _resultobj; |
5265 | } | |
5266 | ||
d5c9047a | 5267 | #define wxTreeCtrl_GetImageList(_swigobj) (_swigobj->GetImageList()) |
efc5f224 | 5268 | static PyObject *_wrap_wxTreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5269 | PyObject * _resultobj; |
d5c9047a | 5270 | wxImageList * _result; |
f6bcfd97 | 5271 | wxPyTreeCtrl * _arg0; |
1d99702e | 5272 | PyObject * _argo0 = 0; |
efc5f224 | 5273 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 5274 | char _ptemp[128]; |
8ab979d7 RD |
5275 | |
5276 | self = self; | |
efc5f224 | 5277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetImageList",_kwnames,&_argo0)) |
8ab979d7 | 5278 | return NULL; |
1d99702e RD |
5279 | if (_argo0) { |
5280 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5281 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5282 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5283 | return NULL; |
5284 | } | |
5285 | } | |
cf694132 RD |
5286 | { |
5287 | wxPy_BEGIN_ALLOW_THREADS; | |
5288 | _result = (wxImageList *)wxTreeCtrl_GetImageList(_arg0); | |
5289 | ||
5290 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
5291 | } if (_result) { |
5292 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p"); | |
5293 | _resultobj = Py_BuildValue("s",_ptemp); | |
5294 | } else { | |
5295 | Py_INCREF(Py_None); | |
5296 | _resultobj = Py_None; | |
5297 | } | |
8ab979d7 RD |
5298 | return _resultobj; |
5299 | } | |
5300 | ||
d5c9047a | 5301 | #define wxTreeCtrl_GetStateImageList(_swigobj) (_swigobj->GetStateImageList()) |
efc5f224 | 5302 | static PyObject *_wrap_wxTreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5303 | PyObject * _resultobj; |
d5c9047a | 5304 | wxImageList * _result; |
f6bcfd97 | 5305 | wxPyTreeCtrl * _arg0; |
1d99702e | 5306 | PyObject * _argo0 = 0; |
efc5f224 | 5307 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 5308 | char _ptemp[128]; |
8ab979d7 RD |
5309 | |
5310 | self = self; | |
efc5f224 | 5311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetStateImageList",_kwnames,&_argo0)) |
8ab979d7 | 5312 | return NULL; |
1d99702e RD |
5313 | if (_argo0) { |
5314 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5315 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5316 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetStateImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5317 | return NULL; |
5318 | } | |
5319 | } | |
cf694132 RD |
5320 | { |
5321 | wxPy_BEGIN_ALLOW_THREADS; | |
5322 | _result = (wxImageList *)wxTreeCtrl_GetStateImageList(_arg0); | |
5323 | ||
5324 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
5325 | } if (_result) { |
5326 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p"); | |
5327 | _resultobj = Py_BuildValue("s",_ptemp); | |
5328 | } else { | |
5329 | Py_INCREF(Py_None); | |
5330 | _resultobj = Py_None; | |
5331 | } | |
8ab979d7 RD |
5332 | return _resultobj; |
5333 | } | |
5334 | ||
d5c9047a | 5335 | #define wxTreeCtrl_SetImageList(_swigobj,_swigarg0) (_swigobj->SetImageList(_swigarg0)) |
efc5f224 | 5336 | static PyObject *_wrap_wxTreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5337 | PyObject * _resultobj; |
f6bcfd97 | 5338 | wxPyTreeCtrl * _arg0; |
d5c9047a | 5339 | wxImageList * _arg1; |
1d99702e RD |
5340 | PyObject * _argo0 = 0; |
5341 | PyObject * _argo1 = 0; | |
efc5f224 | 5342 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
5343 | |
5344 | self = self; | |
efc5f224 | 5345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 5346 | return NULL; |
1d99702e RD |
5347 | if (_argo0) { |
5348 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5349 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5350 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5351 | return NULL; |
5352 | } | |
5353 | } | |
1d99702e RD |
5354 | if (_argo1) { |
5355 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5356 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
d5c9047a RD |
5357 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetImageList. Expected _wxImageList_p."); |
5358 | return NULL; | |
5359 | } | |
5360 | } | |
cf694132 RD |
5361 | { |
5362 | wxPy_BEGIN_ALLOW_THREADS; | |
5363 | wxTreeCtrl_SetImageList(_arg0,_arg1); | |
5364 | ||
5365 | wxPy_END_ALLOW_THREADS; | |
5366 | } Py_INCREF(Py_None); | |
d5c9047a | 5367 | _resultobj = Py_None; |
8ab979d7 RD |
5368 | return _resultobj; |
5369 | } | |
5370 | ||
d5c9047a | 5371 | #define wxTreeCtrl_SetStateImageList(_swigobj,_swigarg0) (_swigobj->SetStateImageList(_swigarg0)) |
efc5f224 | 5372 | static PyObject *_wrap_wxTreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5373 | PyObject * _resultobj; |
f6bcfd97 | 5374 | wxPyTreeCtrl * _arg0; |
d5c9047a | 5375 | wxImageList * _arg1; |
1d99702e RD |
5376 | PyObject * _argo0 = 0; |
5377 | PyObject * _argo1 = 0; | |
efc5f224 | 5378 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
5379 | |
5380 | self = self; | |
efc5f224 | 5381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetStateImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 5382 | return NULL; |
1d99702e RD |
5383 | if (_argo0) { |
5384 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5385 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetStateImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5387 | return NULL; |
5388 | } | |
5389 | } | |
1d99702e RD |
5390 | if (_argo1) { |
5391 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5392 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
d5c9047a RD |
5393 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetStateImageList. Expected _wxImageList_p."); |
5394 | return NULL; | |
5395 | } | |
5396 | } | |
cf694132 RD |
5397 | { |
5398 | wxPy_BEGIN_ALLOW_THREADS; | |
5399 | wxTreeCtrl_SetStateImageList(_arg0,_arg1); | |
5400 | ||
5401 | wxPy_END_ALLOW_THREADS; | |
5402 | } Py_INCREF(Py_None); | |
d5c9047a | 5403 | _resultobj = Py_None; |
8ab979d7 RD |
5404 | return _resultobj; |
5405 | } | |
5406 | ||
b1462dfa RD |
5407 | #define wxTreeCtrl_GetSpacing(_swigobj) (_swigobj->GetSpacing()) |
5408 | static PyObject *_wrap_wxTreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5409 | PyObject * _resultobj; | |
5410 | unsigned int _result; | |
f6bcfd97 | 5411 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
5412 | PyObject * _argo0 = 0; |
5413 | char *_kwnames[] = { "self", NULL }; | |
5414 | ||
5415 | self = self; | |
5416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSpacing",_kwnames,&_argo0)) | |
5417 | return NULL; | |
5418 | if (_argo0) { | |
5419 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5420 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5421 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSpacing. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
5422 | return NULL; |
5423 | } | |
5424 | } | |
5425 | { | |
5426 | wxPy_BEGIN_ALLOW_THREADS; | |
5427 | _result = (unsigned int )wxTreeCtrl_GetSpacing(_arg0); | |
5428 | ||
5429 | wxPy_END_ALLOW_THREADS; | |
5430 | } _resultobj = Py_BuildValue("i",_result); | |
5431 | return _resultobj; | |
5432 | } | |
5433 | ||
5434 | #define wxTreeCtrl_SetSpacing(_swigobj,_swigarg0) (_swigobj->SetSpacing(_swigarg0)) | |
5435 | static PyObject *_wrap_wxTreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5436 | PyObject * _resultobj; | |
f6bcfd97 | 5437 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
5438 | unsigned int _arg1; |
5439 | PyObject * _argo0 = 0; | |
5440 | char *_kwnames[] = { "self","spacing", NULL }; | |
5441 | ||
5442 | self = self; | |
5443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetSpacing",_kwnames,&_argo0,&_arg1)) | |
5444 | return NULL; | |
5445 | if (_argo0) { | |
5446 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5447 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5448 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetSpacing. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
5449 | return NULL; |
5450 | } | |
5451 | } | |
5452 | { | |
5453 | wxPy_BEGIN_ALLOW_THREADS; | |
5454 | wxTreeCtrl_SetSpacing(_arg0,_arg1); | |
5455 | ||
5456 | wxPy_END_ALLOW_THREADS; | |
5457 | } Py_INCREF(Py_None); | |
5458 | _resultobj = Py_None; | |
5459 | return _resultobj; | |
5460 | } | |
5461 | ||
d5c9047a | 5462 | #define wxTreeCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) |
efc5f224 | 5463 | static PyObject *_wrap_wxTreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5464 | PyObject * _resultobj; |
d5c9047a | 5465 | wxString * _result; |
f6bcfd97 | 5466 | wxPyTreeCtrl * _arg0; |
d5c9047a | 5467 | wxTreeItemId * _arg1; |
1d99702e RD |
5468 | PyObject * _argo0 = 0; |
5469 | PyObject * _argo1 = 0; | |
efc5f224 | 5470 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
5471 | |
5472 | self = self; | |
efc5f224 | 5473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemText",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 5474 | return NULL; |
1d99702e RD |
5475 | if (_argo0) { |
5476 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5477 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5478 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemText. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5479 | return NULL; |
5480 | } | |
5481 | } | |
1d99702e RD |
5482 | if (_argo1) { |
5483 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5484 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5485 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemText. Expected _wxTreeItemId_p."); |
5486 | return NULL; | |
5487 | } | |
5488 | } | |
d5c9047a | 5489 | { |
cf694132 RD |
5490 | wxPy_BEGIN_ALLOW_THREADS; |
5491 | _result = new wxString (wxTreeCtrl_GetItemText(_arg0,*_arg1)); | |
5492 | ||
5493 | wxPy_END_ALLOW_THREADS; | |
5494 | }{ | |
eec92d76 | 5495 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
d5c9047a RD |
5496 | } |
5497 | { | |
5498 | delete _result; | |
5499 | } | |
8ab979d7 RD |
5500 | return _resultobj; |
5501 | } | |
5502 | ||
694759cf | 5503 | #define wxTreeCtrl_GetItemImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemImage(_swigarg0,_swigarg1)) |
efc5f224 | 5504 | static PyObject *_wrap_wxTreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5505 | PyObject * _resultobj; |
d5c9047a | 5506 | int _result; |
f6bcfd97 | 5507 | wxPyTreeCtrl * _arg0; |
d5c9047a | 5508 | wxTreeItemId * _arg1; |
694759cf | 5509 | wxTreeItemIcon _arg2 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); |
1d99702e RD |
5510 | PyObject * _argo0 = 0; |
5511 | PyObject * _argo1 = 0; | |
694759cf | 5512 | char *_kwnames[] = { "self","item","which", NULL }; |
8ab979d7 RD |
5513 | |
5514 | self = self; | |
694759cf | 5515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetItemImage",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 5516 | return NULL; |
1d99702e RD |
5517 | if (_argo0) { |
5518 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5519 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5520 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5521 | return NULL; |
5522 | } | |
5523 | } | |
1d99702e RD |
5524 | if (_argo1) { |
5525 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5526 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5527 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemImage. Expected _wxTreeItemId_p."); |
5528 | return NULL; | |
5529 | } | |
5530 | } | |
cf694132 RD |
5531 | { |
5532 | wxPy_BEGIN_ALLOW_THREADS; | |
694759cf | 5533 | _result = (int )wxTreeCtrl_GetItemImage(_arg0,*_arg1,_arg2); |
cf694132 RD |
5534 | |
5535 | wxPy_END_ALLOW_THREADS; | |
5536 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5537 | return _resultobj; |
5538 | } | |
5539 | ||
d5c9047a | 5540 | #define wxTreeCtrl_GetItemSelectedImage(_swigobj,_swigarg0) (_swigobj->GetItemSelectedImage(_swigarg0)) |
efc5f224 | 5541 | static PyObject *_wrap_wxTreeCtrl_GetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5542 | PyObject * _resultobj; |
d5c9047a | 5543 | int _result; |
f6bcfd97 | 5544 | wxPyTreeCtrl * _arg0; |
d5c9047a | 5545 | wxTreeItemId * _arg1; |
1d99702e RD |
5546 | PyObject * _argo0 = 0; |
5547 | PyObject * _argo1 = 0; | |
efc5f224 | 5548 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
5549 | |
5550 | self = self; | |
efc5f224 | 5551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemSelectedImage",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 5552 | return NULL; |
1d99702e RD |
5553 | if (_argo0) { |
5554 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5555 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5556 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5557 | return NULL; |
5558 | } | |
5559 | } | |
1d99702e RD |
5560 | if (_argo1) { |
5561 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5562 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5563 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemSelectedImage. Expected _wxTreeItemId_p."); |
5564 | return NULL; | |
5565 | } | |
5566 | } | |
cf694132 RD |
5567 | { |
5568 | wxPy_BEGIN_ALLOW_THREADS; | |
5569 | _result = (int )wxTreeCtrl_GetItemSelectedImage(_arg0,*_arg1); | |
8ab979d7 | 5570 | |
cf694132 RD |
5571 | wxPy_END_ALLOW_THREADS; |
5572 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5573 | return _resultobj; |
5574 | } | |
5575 | ||
d5c9047a | 5576 | #define wxTreeCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) |
efc5f224 | 5577 | static PyObject *_wrap_wxTreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5578 | PyObject * _resultobj; |
f6bcfd97 | 5579 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
5580 | wxTreeItemId * _arg1; |
5581 | wxString * _arg2; | |
1d99702e RD |
5582 | PyObject * _argo0 = 0; |
5583 | PyObject * _argo1 = 0; | |
d5c9047a | 5584 | PyObject * _obj2 = 0; |
efc5f224 | 5585 | char *_kwnames[] = { "self","item","text", NULL }; |
8ab979d7 RD |
5586 | |
5587 | self = self; | |
efc5f224 | 5588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemText",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 5589 | return NULL; |
1d99702e RD |
5590 | if (_argo0) { |
5591 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5592 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5593 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemText. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5594 | return NULL; |
5595 | } | |
5596 | } | |
1d99702e RD |
5597 | if (_argo1) { |
5598 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5599 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5600 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemText. Expected _wxTreeItemId_p."); |
5601 | return NULL; | |
5602 | } | |
5603 | } | |
5604 | { | |
5605 | if (!PyString_Check(_obj2)) { | |
5606 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5607 | return NULL; | |
5608 | } | |
cf694132 | 5609 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); |
d5c9047a | 5610 | } |
cf694132 RD |
5611 | { |
5612 | wxPy_BEGIN_ALLOW_THREADS; | |
5613 | wxTreeCtrl_SetItemText(_arg0,*_arg1,*_arg2); | |
5614 | ||
5615 | wxPy_END_ALLOW_THREADS; | |
5616 | } Py_INCREF(Py_None); | |
d5c9047a RD |
5617 | _resultobj = Py_None; |
5618 | { | |
5619 | if (_obj2) | |
5620 | delete _arg2; | |
5621 | } | |
8ab979d7 RD |
5622 | return _resultobj; |
5623 | } | |
5624 | ||
694759cf | 5625 | #define wxTreeCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 5626 | static PyObject *_wrap_wxTreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5627 | PyObject * _resultobj; |
f6bcfd97 | 5628 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
5629 | wxTreeItemId * _arg1; |
5630 | int _arg2; | |
694759cf | 5631 | wxTreeItemIcon _arg3 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); |
1d99702e RD |
5632 | PyObject * _argo0 = 0; |
5633 | PyObject * _argo1 = 0; | |
694759cf | 5634 | char *_kwnames[] = { "self","item","image","which", NULL }; |
8ab979d7 RD |
5635 | |
5636 | self = self; | |
694759cf | 5637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|i:wxTreeCtrl_SetItemImage",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8ab979d7 | 5638 | return NULL; |
1d99702e RD |
5639 | if (_argo0) { |
5640 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5641 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5642 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5643 | return NULL; |
5644 | } | |
5645 | } | |
1d99702e RD |
5646 | if (_argo1) { |
5647 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5648 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5649 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemImage. Expected _wxTreeItemId_p."); |
5650 | return NULL; | |
5651 | } | |
5652 | } | |
cf694132 RD |
5653 | { |
5654 | wxPy_BEGIN_ALLOW_THREADS; | |
694759cf | 5655 | wxTreeCtrl_SetItemImage(_arg0,*_arg1,_arg2,_arg3); |
cf694132 RD |
5656 | |
5657 | wxPy_END_ALLOW_THREADS; | |
5658 | } Py_INCREF(Py_None); | |
d5c9047a | 5659 | _resultobj = Py_None; |
8ab979d7 RD |
5660 | return _resultobj; |
5661 | } | |
5662 | ||
d5c9047a | 5663 | #define wxTreeCtrl_SetItemSelectedImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemSelectedImage(_swigarg0,_swigarg1)) |
efc5f224 | 5664 | static PyObject *_wrap_wxTreeCtrl_SetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5665 | PyObject * _resultobj; |
f6bcfd97 | 5666 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
5667 | wxTreeItemId * _arg1; |
5668 | int _arg2; | |
1d99702e RD |
5669 | PyObject * _argo0 = 0; |
5670 | PyObject * _argo1 = 0; | |
efc5f224 | 5671 | char *_kwnames[] = { "self","item","image", NULL }; |
8ab979d7 RD |
5672 | |
5673 | self = self; | |
efc5f224 | 5674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxTreeCtrl_SetItemSelectedImage",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 5675 | return NULL; |
1d99702e RD |
5676 | if (_argo0) { |
5677 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5678 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5679 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5680 | return NULL; |
5681 | } | |
5682 | } | |
1d99702e RD |
5683 | if (_argo1) { |
5684 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5685 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5686 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemSelectedImage. Expected _wxTreeItemId_p."); |
5687 | return NULL; | |
5688 | } | |
5689 | } | |
cf694132 RD |
5690 | { |
5691 | wxPy_BEGIN_ALLOW_THREADS; | |
5692 | wxTreeCtrl_SetItemSelectedImage(_arg0,*_arg1,_arg2); | |
5693 | ||
5694 | wxPy_END_ALLOW_THREADS; | |
5695 | } Py_INCREF(Py_None); | |
5696 | _resultobj = Py_None; | |
5697 | return _resultobj; | |
5698 | } | |
5699 | ||
5700 | #define wxTreeCtrl_SetItemHasChildren(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemHasChildren(_swigarg0,_swigarg1)) | |
efc5f224 | 5701 | static PyObject *_wrap_wxTreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 | 5702 | PyObject * _resultobj; |
f6bcfd97 | 5703 | wxPyTreeCtrl * _arg0; |
cf694132 | 5704 | wxTreeItemId * _arg1; |
1d99702e RD |
5705 | bool _arg2 = (bool ) TRUE; |
5706 | PyObject * _argo0 = 0; | |
5707 | PyObject * _argo1 = 0; | |
5708 | int tempbool2 = (int) TRUE; | |
efc5f224 | 5709 | char *_kwnames[] = { "self","item","hasChildren", NULL }; |
cf694132 RD |
5710 | |
5711 | self = self; | |
efc5f224 | 5712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemHasChildren",_kwnames,&_argo0,&_argo1,&tempbool2)) |
cf694132 | 5713 | return NULL; |
1d99702e RD |
5714 | if (_argo0) { |
5715 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5716 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5717 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
5718 | return NULL; |
5719 | } | |
5720 | } | |
1d99702e RD |
5721 | if (_argo1) { |
5722 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5723 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
5724 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemHasChildren. Expected _wxTreeItemId_p."); |
5725 | return NULL; | |
5726 | } | |
5727 | } | |
5728 | _arg2 = (bool ) tempbool2; | |
5729 | { | |
5730 | wxPy_BEGIN_ALLOW_THREADS; | |
5731 | wxTreeCtrl_SetItemHasChildren(_arg0,*_arg1,_arg2); | |
5732 | ||
5733 | wxPy_END_ALLOW_THREADS; | |
5734 | } Py_INCREF(Py_None); | |
d5c9047a | 5735 | _resultobj = Py_None; |
8ab979d7 RD |
5736 | return _resultobj; |
5737 | } | |
5738 | ||
f6bcfd97 | 5739 | static wxPyTreeItemData * wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item) { |
cf694132 RD |
5740 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
5741 | if (data == NULL) { | |
5742 | data = new wxPyTreeItemData(); | |
f6bcfd97 | 5743 | data->SetId(item); // set the id |
cf694132 RD |
5744 | self->SetItemData(item, data); |
5745 | } | |
5746 | return data; | |
5747 | } | |
efc5f224 | 5748 | static PyObject *_wrap_wxTreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
5749 | PyObject * _resultobj; |
5750 | wxPyTreeItemData * _result; | |
f6bcfd97 | 5751 | wxPyTreeCtrl * _arg0; |
cf694132 | 5752 | wxTreeItemId * _arg1; |
1d99702e RD |
5753 | PyObject * _argo0 = 0; |
5754 | PyObject * _argo1 = 0; | |
efc5f224 | 5755 | char *_kwnames[] = { "self","item", NULL }; |
cf694132 RD |
5756 | char _ptemp[128]; |
5757 | ||
5758 | self = self; | |
efc5f224 | 5759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemData",_kwnames,&_argo0,&_argo1)) |
cf694132 | 5760 | return NULL; |
1d99702e RD |
5761 | if (_argo0) { |
5762 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5763 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5764 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemData. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
5765 | return NULL; |
5766 | } | |
5767 | } | |
1d99702e RD |
5768 | if (_argo1) { |
5769 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5770 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
5771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemData. Expected _wxTreeItemId_p."); |
5772 | return NULL; | |
5773 | } | |
5774 | } | |
5775 | { | |
5776 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 5777 | _result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(_arg0,*_arg1); |
cf694132 RD |
5778 | |
5779 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
5780 | } if (_result) { |
5781 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
5782 | _resultobj = Py_BuildValue("s",_ptemp); | |
5783 | } else { | |
5784 | Py_INCREF(Py_None); | |
5785 | _resultobj = Py_None; | |
5786 | } | |
cf694132 RD |
5787 | return _resultobj; |
5788 | } | |
5789 | ||
f6bcfd97 BP |
5790 | static void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item,wxPyTreeItemData * data) { |
5791 | data->SetId(item); // set the id | |
5792 | self->SetItemData(item, data); | |
c368d904 | 5793 | } |
efc5f224 | 5794 | static PyObject *_wrap_wxTreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5795 | PyObject * _resultobj; |
f6bcfd97 | 5796 | wxPyTreeCtrl * _arg0; |
d5c9047a | 5797 | wxTreeItemId * _arg1; |
cf694132 | 5798 | wxPyTreeItemData * _arg2; |
1d99702e RD |
5799 | PyObject * _argo0 = 0; |
5800 | PyObject * _argo1 = 0; | |
5801 | PyObject * _argo2 = 0; | |
efc5f224 | 5802 | char *_kwnames[] = { "self","item","data", NULL }; |
8ab979d7 RD |
5803 | |
5804 | self = self; | |
efc5f224 | 5805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemData",_kwnames,&_argo0,&_argo1,&_argo2)) |
8ab979d7 | 5806 | return NULL; |
1d99702e RD |
5807 | if (_argo0) { |
5808 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5809 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5810 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemData. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5811 | return NULL; |
5812 | } | |
5813 | } | |
1d99702e RD |
5814 | if (_argo1) { |
5815 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5816 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5817 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemData. Expected _wxTreeItemId_p."); |
5818 | return NULL; | |
5819 | } | |
5820 | } | |
1d99702e RD |
5821 | if (_argo2) { |
5822 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
5823 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyTreeItemData_p")) { | |
cf694132 | 5824 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemData. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
5825 | return NULL; |
5826 | } | |
5827 | } | |
cf694132 RD |
5828 | { |
5829 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 5830 | wxPyTreeCtrl_SetItemData(_arg0,*_arg1,_arg2); |
cf694132 RD |
5831 | |
5832 | wxPy_END_ALLOW_THREADS; | |
5833 | } Py_INCREF(Py_None); | |
d5c9047a | 5834 | _resultobj = Py_None; |
8ab979d7 RD |
5835 | return _resultobj; |
5836 | } | |
5837 | ||
f6bcfd97 | 5838 | static PyObject * wxPyTreeCtrl_GetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item) { |
cf694132 RD |
5839 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
5840 | if (data == NULL) { | |
5841 | data = new wxPyTreeItemData(); | |
f6bcfd97 | 5842 | data->SetId(item); // set the id |
cf694132 RD |
5843 | self->SetItemData(item, data); |
5844 | } | |
5845 | return data->GetData(); | |
c368d904 | 5846 | } |
efc5f224 | 5847 | static PyObject *_wrap_wxTreeCtrl_GetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 | 5848 | PyObject * _resultobj; |
cf694132 | 5849 | PyObject * _result; |
f6bcfd97 | 5850 | wxPyTreeCtrl * _arg0; |
08127323 | 5851 | wxTreeItemId * _arg1; |
1d99702e RD |
5852 | PyObject * _argo0 = 0; |
5853 | PyObject * _argo1 = 0; | |
efc5f224 | 5854 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
5855 | |
5856 | self = self; | |
efc5f224 | 5857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPyData",_kwnames,&_argo0,&_argo1)) |
08127323 | 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_GetPyData. Expected _wxPyTreeCtrl_p."); | |
08127323 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 | 5869 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPyData. Expected _wxTreeItemId_p."); |
08127323 RD |
5870 | return NULL; |
5871 | } | |
5872 | } | |
cf694132 RD |
5873 | { |
5874 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 5875 | _result = (PyObject *)wxPyTreeCtrl_GetPyData(_arg0,*_arg1); |
cf694132 RD |
5876 | |
5877 | wxPy_END_ALLOW_THREADS; | |
5878 | }{ | |
5879 | _resultobj = _result; | |
5880 | } | |
5881 | return _resultobj; | |
5882 | } | |
5883 | ||
f6bcfd97 | 5884 | static void wxPyTreeCtrl_SetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item,PyObject * obj) { |
cf694132 RD |
5885 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
5886 | if (data == NULL) { | |
5887 | data = new wxPyTreeItemData(obj); | |
f6bcfd97 | 5888 | data->SetId(item); // set the id |
cf694132 RD |
5889 | self->SetItemData(item, data); |
5890 | } else | |
5891 | data->SetData(obj); | |
c368d904 | 5892 | } |
efc5f224 | 5893 | static PyObject *_wrap_wxTreeCtrl_SetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 | 5894 | PyObject * _resultobj; |
f6bcfd97 | 5895 | wxPyTreeCtrl * _arg0; |
cf694132 RD |
5896 | wxTreeItemId * _arg1; |
5897 | PyObject * _arg2; | |
1d99702e RD |
5898 | PyObject * _argo0 = 0; |
5899 | PyObject * _argo1 = 0; | |
cf694132 | 5900 | PyObject * _obj2 = 0; |
efc5f224 | 5901 | char *_kwnames[] = { "self","item","obj", NULL }; |
cf694132 RD |
5902 | |
5903 | self = self; | |
efc5f224 | 5904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetPyData",_kwnames,&_argo0,&_argo1,&_obj2)) |
cf694132 | 5905 | return NULL; |
1d99702e RD |
5906 | if (_argo0) { |
5907 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5908 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5909 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetPyData. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
5910 | return NULL; |
5911 | } | |
5912 | } | |
1d99702e RD |
5913 | if (_argo1) { |
5914 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5915 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
5916 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetPyData. Expected _wxTreeItemId_p."); |
5917 | return NULL; | |
5918 | } | |
5919 | } | |
5920 | { | |
5921 | _arg2 = _obj2; | |
5922 | } | |
5923 | { | |
5924 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 5925 | wxPyTreeCtrl_SetPyData(_arg0,*_arg1,_arg2); |
cf694132 RD |
5926 | |
5927 | wxPy_END_ALLOW_THREADS; | |
5928 | } Py_INCREF(Py_None); | |
08127323 RD |
5929 | _resultobj = Py_None; |
5930 | return _resultobj; | |
5931 | } | |
5932 | ||
d5c9047a | 5933 | #define wxTreeCtrl_IsVisible(_swigobj,_swigarg0) (_swigobj->IsVisible(_swigarg0)) |
efc5f224 | 5934 | static PyObject *_wrap_wxTreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5935 | PyObject * _resultobj; |
d5c9047a | 5936 | bool _result; |
f6bcfd97 | 5937 | wxPyTreeCtrl * _arg0; |
d5c9047a | 5938 | wxTreeItemId * _arg1; |
1d99702e RD |
5939 | PyObject * _argo0 = 0; |
5940 | PyObject * _argo1 = 0; | |
efc5f224 | 5941 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
5942 | |
5943 | self = self; | |
efc5f224 | 5944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 5945 | return NULL; |
1d99702e RD |
5946 | if (_argo0) { |
5947 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5948 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5949 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5950 | return NULL; |
5951 | } | |
5952 | } | |
1d99702e RD |
5953 | if (_argo1) { |
5954 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5955 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5956 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsVisible. Expected _wxTreeItemId_p."); |
5957 | return NULL; | |
5958 | } | |
5959 | } | |
cf694132 RD |
5960 | { |
5961 | wxPy_BEGIN_ALLOW_THREADS; | |
5962 | _result = (bool )wxTreeCtrl_IsVisible(_arg0,*_arg1); | |
5963 | ||
5964 | wxPy_END_ALLOW_THREADS; | |
5965 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
5966 | return _resultobj; |
5967 | } | |
5968 | ||
d5c9047a | 5969 | #define wxTreeCtrl_ItemHasChildren(_swigobj,_swigarg0) (_swigobj->ItemHasChildren(_swigarg0)) |
efc5f224 | 5970 | static PyObject *_wrap_wxTreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5971 | PyObject * _resultobj; |
d5c9047a | 5972 | bool _result; |
f6bcfd97 | 5973 | wxPyTreeCtrl * _arg0; |
d5c9047a | 5974 | wxTreeItemId * _arg1; |
1d99702e RD |
5975 | PyObject * _argo0 = 0; |
5976 | PyObject * _argo1 = 0; | |
efc5f224 | 5977 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
5978 | |
5979 | self = self; | |
efc5f224 | 5980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ItemHasChildren",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 5981 | return NULL; |
1d99702e RD |
5982 | if (_argo0) { |
5983 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5984 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
5985 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
5986 | return NULL; |
5987 | } | |
5988 | } | |
1d99702e RD |
5989 | if (_argo1) { |
5990 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5991 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
5992 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ItemHasChildren. Expected _wxTreeItemId_p."); |
5993 | return NULL; | |
5994 | } | |
5995 | } | |
cf694132 RD |
5996 | { |
5997 | wxPy_BEGIN_ALLOW_THREADS; | |
5998 | _result = (bool )wxTreeCtrl_ItemHasChildren(_arg0,*_arg1); | |
5999 | ||
6000 | wxPy_END_ALLOW_THREADS; | |
6001 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
6002 | return _resultobj; |
6003 | } | |
6004 | ||
d5c9047a | 6005 | #define wxTreeCtrl_IsExpanded(_swigobj,_swigarg0) (_swigobj->IsExpanded(_swigarg0)) |
efc5f224 | 6006 | static PyObject *_wrap_wxTreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6007 | PyObject * _resultobj; |
d5c9047a | 6008 | bool _result; |
f6bcfd97 | 6009 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6010 | wxTreeItemId * _arg1; |
1d99702e RD |
6011 | PyObject * _argo0 = 0; |
6012 | PyObject * _argo1 = 0; | |
efc5f224 | 6013 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
6014 | |
6015 | self = self; | |
efc5f224 | 6016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsExpanded",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6017 | return NULL; |
1d99702e RD |
6018 | if (_argo0) { |
6019 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6020 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6021 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsExpanded. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6022 | return NULL; |
6023 | } | |
6024 | } | |
1d99702e RD |
6025 | if (_argo1) { |
6026 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6027 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6028 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsExpanded. Expected _wxTreeItemId_p."); |
6029 | return NULL; | |
6030 | } | |
6031 | } | |
cf694132 RD |
6032 | { |
6033 | wxPy_BEGIN_ALLOW_THREADS; | |
6034 | _result = (bool )wxTreeCtrl_IsExpanded(_arg0,*_arg1); | |
6035 | ||
6036 | wxPy_END_ALLOW_THREADS; | |
6037 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
6038 | return _resultobj; |
6039 | } | |
6040 | ||
d5c9047a | 6041 | #define wxTreeCtrl_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) |
efc5f224 | 6042 | static PyObject *_wrap_wxTreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6043 | PyObject * _resultobj; |
d5c9047a | 6044 | bool _result; |
f6bcfd97 | 6045 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6046 | wxTreeItemId * _arg1; |
1d99702e RD |
6047 | PyObject * _argo0 = 0; |
6048 | PyObject * _argo1 = 0; | |
efc5f224 | 6049 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
6050 | |
6051 | self = self; | |
efc5f224 | 6052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsSelected",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6053 | return NULL; |
1d99702e RD |
6054 | if (_argo0) { |
6055 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6056 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6057 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsSelected. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6058 | return NULL; |
6059 | } | |
6060 | } | |
1d99702e RD |
6061 | if (_argo1) { |
6062 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6063 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6064 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsSelected. Expected _wxTreeItemId_p."); |
6065 | return NULL; | |
6066 | } | |
6067 | } | |
cf694132 RD |
6068 | { |
6069 | wxPy_BEGIN_ALLOW_THREADS; | |
6070 | _result = (bool )wxTreeCtrl_IsSelected(_arg0,*_arg1); | |
6071 | ||
6072 | wxPy_END_ALLOW_THREADS; | |
6073 | } _resultobj = Py_BuildValue("i",_result); | |
8ab979d7 RD |
6074 | return _resultobj; |
6075 | } | |
6076 | ||
6077 | #define wxTreeCtrl_GetRootItem(_swigobj) (_swigobj->GetRootItem()) | |
efc5f224 | 6078 | static PyObject *_wrap_wxTreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6079 | PyObject * _resultobj; |
d5c9047a | 6080 | wxTreeItemId * _result; |
f6bcfd97 | 6081 | wxPyTreeCtrl * _arg0; |
1d99702e | 6082 | PyObject * _argo0 = 0; |
efc5f224 | 6083 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 6084 | char _ptemp[128]; |
8ab979d7 RD |
6085 | |
6086 | self = self; | |
efc5f224 | 6087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetRootItem",_kwnames,&_argo0)) |
8ab979d7 | 6088 | return NULL; |
1d99702e RD |
6089 | if (_argo0) { |
6090 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6091 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6092 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetRootItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6093 | return NULL; |
6094 | } | |
6095 | } | |
cf694132 RD |
6096 | { |
6097 | wxPy_BEGIN_ALLOW_THREADS; | |
6098 | _result = new wxTreeItemId (wxTreeCtrl_GetRootItem(_arg0)); | |
6099 | ||
6100 | wxPy_END_ALLOW_THREADS; | |
6101 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6102 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6103 | return _resultobj; |
6104 | } | |
6105 | ||
6106 | #define wxTreeCtrl_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
efc5f224 | 6107 | static PyObject *_wrap_wxTreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6108 | PyObject * _resultobj; |
d5c9047a | 6109 | wxTreeItemId * _result; |
f6bcfd97 | 6110 | wxPyTreeCtrl * _arg0; |
1d99702e | 6111 | PyObject * _argo0 = 0; |
efc5f224 | 6112 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 6113 | char _ptemp[128]; |
8ab979d7 RD |
6114 | |
6115 | self = self; | |
efc5f224 | 6116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelection",_kwnames,&_argo0)) |
8ab979d7 | 6117 | return NULL; |
1d99702e RD |
6118 | if (_argo0) { |
6119 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6120 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelection. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6122 | return NULL; |
6123 | } | |
6124 | } | |
cf694132 RD |
6125 | { |
6126 | wxPy_BEGIN_ALLOW_THREADS; | |
6127 | _result = new wxTreeItemId (wxTreeCtrl_GetSelection(_arg0)); | |
6128 | ||
6129 | wxPy_END_ALLOW_THREADS; | |
6130 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6131 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6132 | return _resultobj; |
6133 | } | |
6134 | ||
eb715945 RD |
6135 | #define wxTreeCtrl_GetItemParent(_swigobj,_swigarg0) (_swigobj->GetParent(_swigarg0)) |
6136 | static PyObject *_wrap_wxTreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 6137 | PyObject * _resultobj; |
d5c9047a | 6138 | wxTreeItemId * _result; |
f6bcfd97 | 6139 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6140 | wxTreeItemId * _arg1; |
1d99702e RD |
6141 | PyObject * _argo0 = 0; |
6142 | PyObject * _argo1 = 0; | |
efc5f224 | 6143 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 6144 | char _ptemp[128]; |
8ab979d7 RD |
6145 | |
6146 | self = self; | |
eb715945 | 6147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6148 | return NULL; |
1d99702e RD |
6149 | if (_argo0) { |
6150 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6151 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6152 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemParent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6153 | return NULL; |
6154 | } | |
6155 | } | |
1d99702e RD |
6156 | if (_argo1) { |
6157 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6158 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
eb715945 | 6159 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemParent. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
6160 | return NULL; |
6161 | } | |
6162 | } | |
cf694132 RD |
6163 | { |
6164 | wxPy_BEGIN_ALLOW_THREADS; | |
eb715945 | 6165 | _result = new wxTreeItemId (wxTreeCtrl_GetItemParent(_arg0,*_arg1)); |
cf694132 RD |
6166 | |
6167 | wxPy_END_ALLOW_THREADS; | |
6168 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6169 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6170 | return _resultobj; |
6171 | } | |
6172 | ||
f6bcfd97 | 6173 | static PyObject * wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self) { |
26b9cf27 | 6174 | bool doSave = wxPyRestoreThread(); |
d426c97e RD |
6175 | PyObject* rval = PyList_New(0); |
6176 | wxArrayTreeItemIds array; | |
6177 | size_t num, x; | |
6178 | num = self->GetSelections(array); | |
6179 | for (x=0; x < num; x++) { | |
c368d904 RD |
6180 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); |
6181 | PyObject* item = wxPyConstructObject((void*)tii, "wxTreeItemId", TRUE); | |
d426c97e RD |
6182 | PyList_Append(rval, item); |
6183 | } | |
26b9cf27 | 6184 | wxPySaveThread(doSave); |
d426c97e RD |
6185 | return rval; |
6186 | } | |
6187 | static PyObject *_wrap_wxTreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6188 | PyObject * _resultobj; | |
6189 | PyObject * _result; | |
f6bcfd97 | 6190 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
6191 | PyObject * _argo0 = 0; |
6192 | char *_kwnames[] = { "self", NULL }; | |
6193 | ||
6194 | self = self; | |
6195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelections",_kwnames,&_argo0)) | |
6196 | return NULL; | |
6197 | if (_argo0) { | |
6198 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6199 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6200 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelections. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
6201 | return NULL; |
6202 | } | |
6203 | } | |
6204 | { | |
6205 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 6206 | _result = (PyObject *)wxPyTreeCtrl_GetSelections(_arg0); |
d426c97e RD |
6207 | |
6208 | wxPy_END_ALLOW_THREADS; | |
6209 | }{ | |
6210 | _resultobj = _result; | |
6211 | } | |
6212 | return _resultobj; | |
6213 | } | |
6214 | ||
bb0054cd | 6215 | #define wxTreeCtrl_GetChildrenCount(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetChildrenCount(_swigarg0,_swigarg1)) |
efc5f224 | 6216 | static PyObject *_wrap_wxTreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
6217 | PyObject * _resultobj; |
6218 | size_t _result; | |
f6bcfd97 | 6219 | wxPyTreeCtrl * _arg0; |
bb0054cd | 6220 | wxTreeItemId * _arg1; |
1d99702e RD |
6221 | bool _arg2 = (bool ) TRUE; |
6222 | PyObject * _argo0 = 0; | |
6223 | PyObject * _argo1 = 0; | |
6224 | int tempbool2 = (int) TRUE; | |
efc5f224 | 6225 | char *_kwnames[] = { "self","item","recursively", NULL }; |
bb0054cd RD |
6226 | |
6227 | self = self; | |
efc5f224 | 6228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetChildrenCount",_kwnames,&_argo0,&_argo1,&tempbool2)) |
bb0054cd | 6229 | return NULL; |
1d99702e RD |
6230 | if (_argo0) { |
6231 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6232 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6233 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetChildrenCount. Expected _wxPyTreeCtrl_p."); | |
bb0054cd RD |
6234 | return NULL; |
6235 | } | |
6236 | } | |
1d99702e RD |
6237 | if (_argo1) { |
6238 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6239 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
bb0054cd RD |
6240 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetChildrenCount. Expected _wxTreeItemId_p."); |
6241 | return NULL; | |
6242 | } | |
6243 | } | |
6244 | _arg2 = (bool ) tempbool2; | |
6245 | { | |
6246 | wxPy_BEGIN_ALLOW_THREADS; | |
6247 | _result = (size_t )wxTreeCtrl_GetChildrenCount(_arg0,*_arg1,_arg2); | |
6248 | ||
6249 | wxPy_END_ALLOW_THREADS; | |
6250 | } _resultobj = Py_BuildValue("i",_result); | |
6251 | return _resultobj; | |
6252 | } | |
6253 | ||
d5c9047a | 6254 | #define wxTreeCtrl_GetFirstChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetFirstChild(_swigarg0,_swigarg1)) |
efc5f224 | 6255 | static PyObject *_wrap_wxTreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6256 | PyObject * _resultobj; |
d5c9047a | 6257 | wxTreeItemId * _result; |
f6bcfd97 | 6258 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
6259 | wxTreeItemId * _arg1; |
6260 | long * _arg2; | |
1d99702e RD |
6261 | PyObject * _argo0 = 0; |
6262 | PyObject * _argo1 = 0; | |
d5c9047a RD |
6263 | long temp; |
6264 | PyObject * _obj2 = 0; | |
efc5f224 | 6265 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 6266 | char _ptemp[128]; |
8ab979d7 RD |
6267 | |
6268 | self = self; | |
efc5f224 | 6269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetFirstChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 6270 | return NULL; |
1d99702e RD |
6271 | if (_argo0) { |
6272 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6273 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6274 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstChild. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6275 | return NULL; |
6276 | } | |
6277 | } | |
1d99702e RD |
6278 | if (_argo1) { |
6279 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6280 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 6281 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetFirstChild. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
6282 | return NULL; |
6283 | } | |
6284 | } | |
d5c9047a RD |
6285 | { |
6286 | temp = (long) PyInt_AsLong(_obj2); | |
6287 | _arg2 = &temp; | |
6288 | } | |
cf694132 RD |
6289 | { |
6290 | wxPy_BEGIN_ALLOW_THREADS; | |
6291 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstChild(_arg0,*_arg1,*_arg2)); | |
6292 | ||
6293 | wxPy_END_ALLOW_THREADS; | |
6294 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a RD |
6295 | _resultobj = Py_BuildValue("s",_ptemp); |
6296 | { | |
6297 | PyObject *o; | |
6298 | o = PyInt_FromLong((long) (*_arg2)); | |
6299 | _resultobj = t_output_helper(_resultobj, o); | |
6300 | } | |
8ab979d7 RD |
6301 | return _resultobj; |
6302 | } | |
6303 | ||
d5c9047a | 6304 | #define wxTreeCtrl_GetNextChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetNextChild(_swigarg0,_swigarg1)) |
efc5f224 | 6305 | static PyObject *_wrap_wxTreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6306 | PyObject * _resultobj; |
d5c9047a | 6307 | wxTreeItemId * _result; |
f6bcfd97 | 6308 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
6309 | wxTreeItemId * _arg1; |
6310 | long * _arg2; | |
1d99702e RD |
6311 | PyObject * _argo0 = 0; |
6312 | PyObject * _argo1 = 0; | |
d5c9047a | 6313 | long temp; |
8ab979d7 | 6314 | PyObject * _obj2 = 0; |
efc5f224 | 6315 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 6316 | char _ptemp[128]; |
8ab979d7 RD |
6317 | |
6318 | self = self; | |
efc5f224 | 6319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetNextChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 6320 | return NULL; |
1d99702e RD |
6321 | if (_argo0) { |
6322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextChild. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6325 | return NULL; |
6326 | } | |
6327 | } | |
1d99702e RD |
6328 | if (_argo1) { |
6329 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6330 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 6331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextChild. Expected _wxTreeItemId_p."); |
8ab979d7 | 6332 | return NULL; |
d5c9047a | 6333 | } |
8ab979d7 | 6334 | } |
d5c9047a RD |
6335 | { |
6336 | temp = (long) PyInt_AsLong(_obj2); | |
6337 | _arg2 = &temp; | |
8ab979d7 | 6338 | } |
cf694132 RD |
6339 | { |
6340 | wxPy_BEGIN_ALLOW_THREADS; | |
6341 | _result = new wxTreeItemId (wxTreeCtrl_GetNextChild(_arg0,*_arg1,*_arg2)); | |
6342 | ||
6343 | wxPy_END_ALLOW_THREADS; | |
6344 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6345 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 | 6346 | { |
d5c9047a RD |
6347 | PyObject *o; |
6348 | o = PyInt_FromLong((long) (*_arg2)); | |
6349 | _resultobj = t_output_helper(_resultobj, o); | |
8ab979d7 RD |
6350 | } |
6351 | return _resultobj; | |
6352 | } | |
6353 | ||
d5c9047a | 6354 | #define wxTreeCtrl_GetNextSibling(_swigobj,_swigarg0) (_swigobj->GetNextSibling(_swigarg0)) |
efc5f224 | 6355 | static PyObject *_wrap_wxTreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6356 | PyObject * _resultobj; |
d5c9047a | 6357 | wxTreeItemId * _result; |
f6bcfd97 | 6358 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6359 | wxTreeItemId * _arg1; |
1d99702e RD |
6360 | PyObject * _argo0 = 0; |
6361 | PyObject * _argo1 = 0; | |
efc5f224 | 6362 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 6363 | char _ptemp[128]; |
8ab979d7 RD |
6364 | |
6365 | self = self; | |
efc5f224 | 6366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6367 | return NULL; |
1d99702e RD |
6368 | if (_argo0) { |
6369 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6370 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextSibling. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6372 | return NULL; |
6373 | } | |
6374 | } | |
1d99702e RD |
6375 | if (_argo1) { |
6376 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6377 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6378 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextSibling. Expected _wxTreeItemId_p."); |
6379 | return NULL; | |
6380 | } | |
6381 | } | |
cf694132 RD |
6382 | { |
6383 | wxPy_BEGIN_ALLOW_THREADS; | |
6384 | _result = new wxTreeItemId (wxTreeCtrl_GetNextSibling(_arg0,*_arg1)); | |
6385 | ||
6386 | wxPy_END_ALLOW_THREADS; | |
6387 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6388 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6389 | return _resultobj; |
6390 | } | |
6391 | ||
d5c9047a | 6392 | #define wxTreeCtrl_GetPrevSibling(_swigobj,_swigarg0) (_swigobj->GetPrevSibling(_swigarg0)) |
efc5f224 | 6393 | static PyObject *_wrap_wxTreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6394 | PyObject * _resultobj; |
d5c9047a | 6395 | wxTreeItemId * _result; |
f6bcfd97 | 6396 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6397 | wxTreeItemId * _arg1; |
1d99702e RD |
6398 | PyObject * _argo0 = 0; |
6399 | PyObject * _argo1 = 0; | |
efc5f224 | 6400 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 6401 | char _ptemp[128]; |
8ab979d7 RD |
6402 | |
6403 | self = self; | |
efc5f224 | 6404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6405 | return NULL; |
1d99702e RD |
6406 | if (_argo0) { |
6407 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6408 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6409 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevSibling. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6410 | return NULL; |
6411 | } | |
6412 | } | |
1d99702e RD |
6413 | if (_argo1) { |
6414 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6415 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6416 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevSibling. Expected _wxTreeItemId_p."); |
6417 | return NULL; | |
6418 | } | |
6419 | } | |
cf694132 RD |
6420 | { |
6421 | wxPy_BEGIN_ALLOW_THREADS; | |
6422 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevSibling(_arg0,*_arg1)); | |
6423 | ||
6424 | wxPy_END_ALLOW_THREADS; | |
6425 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6426 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6427 | return _resultobj; |
6428 | } | |
6429 | ||
d5c9047a | 6430 | #define wxTreeCtrl_GetFirstVisibleItem(_swigobj) (_swigobj->GetFirstVisibleItem()) |
efc5f224 | 6431 | static PyObject *_wrap_wxTreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6432 | PyObject * _resultobj; |
d5c9047a | 6433 | wxTreeItemId * _result; |
f6bcfd97 | 6434 | wxPyTreeCtrl * _arg0; |
1d99702e | 6435 | PyObject * _argo0 = 0; |
efc5f224 | 6436 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 6437 | char _ptemp[128]; |
8ab979d7 RD |
6438 | |
6439 | self = self; | |
efc5f224 | 6440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetFirstVisibleItem",_kwnames,&_argo0)) |
8ab979d7 | 6441 | return NULL; |
1d99702e RD |
6442 | if (_argo0) { |
6443 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6444 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6445 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstVisibleItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6446 | return NULL; |
6447 | } | |
6448 | } | |
cf694132 RD |
6449 | { |
6450 | wxPy_BEGIN_ALLOW_THREADS; | |
6451 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstVisibleItem(_arg0)); | |
6452 | ||
6453 | wxPy_END_ALLOW_THREADS; | |
6454 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6455 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6456 | return _resultobj; |
6457 | } | |
6458 | ||
d5c9047a | 6459 | #define wxTreeCtrl_GetNextVisible(_swigobj,_swigarg0) (_swigobj->GetNextVisible(_swigarg0)) |
efc5f224 | 6460 | static PyObject *_wrap_wxTreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6461 | PyObject * _resultobj; |
d5c9047a | 6462 | wxTreeItemId * _result; |
f6bcfd97 | 6463 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6464 | wxTreeItemId * _arg1; |
1d99702e RD |
6465 | PyObject * _argo0 = 0; |
6466 | PyObject * _argo1 = 0; | |
efc5f224 | 6467 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 6468 | char _ptemp[128]; |
8ab979d7 RD |
6469 | |
6470 | self = self; | |
efc5f224 | 6471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6472 | return NULL; |
1d99702e RD |
6473 | if (_argo0) { |
6474 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6475 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6476 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6477 | return NULL; |
6478 | } | |
6479 | } | |
1d99702e RD |
6480 | if (_argo1) { |
6481 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6482 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6483 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextVisible. Expected _wxTreeItemId_p."); |
6484 | return NULL; | |
6485 | } | |
6486 | } | |
cf694132 RD |
6487 | { |
6488 | wxPy_BEGIN_ALLOW_THREADS; | |
6489 | _result = new wxTreeItemId (wxTreeCtrl_GetNextVisible(_arg0,*_arg1)); | |
6490 | ||
6491 | wxPy_END_ALLOW_THREADS; | |
6492 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6493 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6494 | return _resultobj; |
6495 | } | |
6496 | ||
d5c9047a | 6497 | #define wxTreeCtrl_GetPrevVisible(_swigobj,_swigarg0) (_swigobj->GetPrevVisible(_swigarg0)) |
efc5f224 | 6498 | static PyObject *_wrap_wxTreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6499 | PyObject * _resultobj; |
d5c9047a | 6500 | wxTreeItemId * _result; |
f6bcfd97 | 6501 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6502 | wxTreeItemId * _arg1; |
1d99702e RD |
6503 | PyObject * _argo0 = 0; |
6504 | PyObject * _argo1 = 0; | |
efc5f224 | 6505 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 6506 | char _ptemp[128]; |
8ab979d7 RD |
6507 | |
6508 | self = self; | |
efc5f224 | 6509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6510 | return NULL; |
1d99702e RD |
6511 | if (_argo0) { |
6512 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6513 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6514 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6515 | return NULL; |
6516 | } | |
6517 | } | |
1d99702e RD |
6518 | if (_argo1) { |
6519 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6520 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 6521 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevVisible. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
6522 | return NULL; |
6523 | } | |
6524 | } | |
cf694132 RD |
6525 | { |
6526 | wxPy_BEGIN_ALLOW_THREADS; | |
6527 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevVisible(_arg0,*_arg1)); | |
6528 | ||
6529 | wxPy_END_ALLOW_THREADS; | |
6530 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6531 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6532 | return _resultobj; |
6533 | } | |
6534 | ||
d426c97e RD |
6535 | #define wxTreeCtrl_GetLastChild(_swigobj,_swigarg0) (_swigobj->GetLastChild(_swigarg0)) |
6536 | static PyObject *_wrap_wxTreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6537 | PyObject * _resultobj; | |
6538 | wxTreeItemId * _result; | |
f6bcfd97 | 6539 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
6540 | wxTreeItemId * _arg1; |
6541 | PyObject * _argo0 = 0; | |
6542 | PyObject * _argo1 = 0; | |
6543 | char *_kwnames[] = { "self","item", NULL }; | |
6544 | char _ptemp[128]; | |
6545 | ||
6546 | self = self; | |
6547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetLastChild",_kwnames,&_argo0,&_argo1)) | |
6548 | return NULL; | |
6549 | if (_argo0) { | |
6550 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6551 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6552 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetLastChild. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
6553 | return NULL; |
6554 | } | |
6555 | } | |
6556 | if (_argo1) { | |
6557 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6558 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
6559 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetLastChild. Expected _wxTreeItemId_p."); | |
6560 | return NULL; | |
6561 | } | |
6562 | } | |
6563 | { | |
6564 | wxPy_BEGIN_ALLOW_THREADS; | |
6565 | _result = new wxTreeItemId (wxTreeCtrl_GetLastChild(_arg0,*_arg1)); | |
6566 | ||
6567 | wxPy_END_ALLOW_THREADS; | |
6568 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
6569 | _resultobj = Py_BuildValue("s",_ptemp); | |
6570 | return _resultobj; | |
6571 | } | |
6572 | ||
d5c9047a | 6573 | #define wxTreeCtrl_AddRoot(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->AddRoot(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
efc5f224 | 6574 | static PyObject *_wrap_wxTreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6575 | PyObject * _resultobj; |
d5c9047a | 6576 | wxTreeItemId * _result; |
f6bcfd97 | 6577 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6578 | wxString * _arg1; |
1d99702e RD |
6579 | int _arg2 = (int ) -1; |
6580 | int _arg3 = (int ) -1; | |
6581 | wxPyTreeItemData * _arg4 = (wxPyTreeItemData *) NULL; | |
6582 | PyObject * _argo0 = 0; | |
d5c9047a | 6583 | PyObject * _obj1 = 0; |
1d99702e | 6584 | PyObject * _argo4 = 0; |
efc5f224 | 6585 | char *_kwnames[] = { "self","text","image","selectedImage","data", NULL }; |
d5c9047a | 6586 | char _ptemp[128]; |
8ab979d7 RD |
6587 | |
6588 | self = self; | |
efc5f224 | 6589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iiO:wxTreeCtrl_AddRoot",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_argo4)) |
8ab979d7 | 6590 | return NULL; |
1d99702e RD |
6591 | if (_argo0) { |
6592 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6593 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6594 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AddRoot. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6595 | return NULL; |
6596 | } | |
6597 | } | |
d5c9047a RD |
6598 | { |
6599 | if (!PyString_Check(_obj1)) { | |
6600 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6601 | return NULL; | |
6602 | } | |
cf694132 | 6603 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
d5c9047a | 6604 | } |
1d99702e RD |
6605 | if (_argo4) { |
6606 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
6607 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxPyTreeItemData_p")) { | |
cf694132 | 6608 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxTreeCtrl_AddRoot. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
6609 | return NULL; |
6610 | } | |
6611 | } | |
cf694132 RD |
6612 | { |
6613 | wxPy_BEGIN_ALLOW_THREADS; | |
6614 | _result = new wxTreeItemId (wxTreeCtrl_AddRoot(_arg0,*_arg1,_arg2,_arg3,_arg4)); | |
6615 | ||
6616 | wxPy_END_ALLOW_THREADS; | |
6617 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a RD |
6618 | _resultobj = Py_BuildValue("s",_ptemp); |
6619 | { | |
6620 | if (_obj1) | |
6621 | delete _arg1; | |
6622 | } | |
8ab979d7 RD |
6623 | return _resultobj; |
6624 | } | |
6625 | ||
d5c9047a | 6626 | #define wxTreeCtrl_PrependItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->PrependItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 6627 | static PyObject *_wrap_wxTreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6628 | PyObject * _resultobj; |
d5c9047a | 6629 | wxTreeItemId * _result; |
f6bcfd97 | 6630 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
6631 | wxTreeItemId * _arg1; |
6632 | wxString * _arg2; | |
1d99702e RD |
6633 | int _arg3 = (int ) -1; |
6634 | int _arg4 = (int ) -1; | |
6635 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
6636 | PyObject * _argo0 = 0; | |
6637 | PyObject * _argo1 = 0; | |
d5c9047a | 6638 | PyObject * _obj2 = 0; |
1d99702e | 6639 | PyObject * _argo5 = 0; |
efc5f224 | 6640 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 6641 | char _ptemp[128]; |
8ab979d7 RD |
6642 | |
6643 | self = self; | |
efc5f224 | 6644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_PrependItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 6645 | return NULL; |
1d99702e RD |
6646 | if (_argo0) { |
6647 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6648 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6649 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_PrependItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6650 | return NULL; |
6651 | } | |
6652 | } | |
1d99702e RD |
6653 | if (_argo1) { |
6654 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6655 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_PrependItem. Expected _wxTreeItemId_p."); |
6657 | return NULL; | |
6658 | } | |
6659 | } | |
6660 | { | |
6661 | if (!PyString_Check(_obj2)) { | |
6662 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6663 | return NULL; | |
6664 | } | |
cf694132 | 6665 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); |
d5c9047a | 6666 | } |
1d99702e RD |
6667 | if (_argo5) { |
6668 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
6669 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 6670 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_PrependItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
6671 | return NULL; |
6672 | } | |
6673 | } | |
cf694132 RD |
6674 | { |
6675 | wxPy_BEGIN_ALLOW_THREADS; | |
6676 | _result = new wxTreeItemId (wxTreeCtrl_PrependItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); | |
6677 | ||
6678 | wxPy_END_ALLOW_THREADS; | |
6679 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a RD |
6680 | _resultobj = Py_BuildValue("s",_ptemp); |
6681 | { | |
6682 | if (_obj2) | |
6683 | delete _arg2; | |
6684 | } | |
8ab979d7 RD |
6685 | return _resultobj; |
6686 | } | |
6687 | ||
d5c9047a | 6688 | #define wxTreeCtrl_InsertItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 6689 | static PyObject *_wrap_wxTreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6690 | PyObject * _resultobj; |
d5c9047a | 6691 | wxTreeItemId * _result; |
f6bcfd97 | 6692 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
6693 | wxTreeItemId * _arg1; |
6694 | wxTreeItemId * _arg2; | |
6695 | wxString * _arg3; | |
1d99702e RD |
6696 | int _arg4 = (int ) -1; |
6697 | int _arg5 = (int ) -1; | |
6698 | wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL; | |
6699 | PyObject * _argo0 = 0; | |
6700 | PyObject * _argo1 = 0; | |
6701 | PyObject * _argo2 = 0; | |
d5c9047a | 6702 | PyObject * _obj3 = 0; |
1d99702e | 6703 | PyObject * _argo6 = 0; |
efc5f224 | 6704 | char *_kwnames[] = { "self","parent","idPrevious","text","image","selectedImage","data", NULL }; |
d5c9047a | 6705 | char _ptemp[128]; |
8ab979d7 RD |
6706 | |
6707 | self = self; | |
efc5f224 | 6708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|iiO:wxTreeCtrl_InsertItem",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3,&_arg4,&_arg5,&_argo6)) |
8ab979d7 | 6709 | return NULL; |
1d99702e RD |
6710 | if (_argo0) { |
6711 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6712 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6714 | return NULL; |
6715 | } | |
6716 | } | |
1d99702e RD |
6717 | if (_argo1) { |
6718 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6719 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6720 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
6721 | return NULL; | |
6722 | } | |
6723 | } | |
1d99702e RD |
6724 | if (_argo2) { |
6725 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
6726 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6727 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
6728 | return NULL; | |
6729 | } | |
6730 | } | |
6731 | { | |
6732 | if (!PyString_Check(_obj3)) { | |
6733 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6734 | return NULL; | |
6735 | } | |
cf694132 | 6736 | _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3)); |
d5c9047a | 6737 | } |
1d99702e RD |
6738 | if (_argo6) { |
6739 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
6740 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) { | |
cf694132 | 6741 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
6742 | return NULL; |
6743 | } | |
6744 | } | |
cf694132 RD |
6745 | { |
6746 | wxPy_BEGIN_ALLOW_THREADS; | |
6747 | _result = new wxTreeItemId (wxTreeCtrl_InsertItem(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6)); | |
6748 | ||
6749 | wxPy_END_ALLOW_THREADS; | |
6750 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a RD |
6751 | _resultobj = Py_BuildValue("s",_ptemp); |
6752 | { | |
6753 | if (_obj3) | |
6754 | delete _arg3; | |
6755 | } | |
8ab979d7 RD |
6756 | return _resultobj; |
6757 | } | |
6758 | ||
f6bcfd97 BP |
6759 | #define wxTreeCtrl_InsertItemBefore(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
6760 | static PyObject *_wrap_wxTreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6761 | PyObject * _resultobj; | |
6762 | wxTreeItemId * _result; | |
6763 | wxPyTreeCtrl * _arg0; | |
6764 | wxTreeItemId * _arg1; | |
6765 | size_t _arg2; | |
6766 | wxString * _arg3; | |
6767 | int _arg4 = (int ) -1; | |
6768 | int _arg5 = (int ) -1; | |
6769 | wxTreeItemData * _arg6 = (wxTreeItemData *) NULL; | |
6770 | PyObject * _argo0 = 0; | |
6771 | PyObject * _argo1 = 0; | |
6772 | PyObject * _obj3 = 0; | |
6773 | PyObject * _argo6 = 0; | |
6774 | char *_kwnames[] = { "self","parent","before","text","image","selectedImage","data", NULL }; | |
6775 | char _ptemp[128]; | |
6776 | ||
6777 | self = self; | |
6778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|iiO:wxTreeCtrl_InsertItemBefore",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_arg4,&_arg5,&_argo6)) | |
6779 | return NULL; | |
6780 | if (_argo0) { | |
6781 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6782 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6783 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItemBefore. Expected _wxPyTreeCtrl_p."); | |
6784 | return NULL; | |
6785 | } | |
6786 | } | |
6787 | if (_argo1) { | |
6788 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6789 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
6790 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemId_p."); | |
6791 | return NULL; | |
6792 | } | |
6793 | } | |
6794 | { | |
6795 | if (!PyString_Check(_obj3)) { | |
6796 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6797 | return NULL; | |
6798 | } | |
6799 | _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3)); | |
6800 | } | |
6801 | if (_argo6) { | |
6802 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
6803 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxTreeItemData_p")) { | |
6804 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemData_p."); | |
6805 | return NULL; | |
6806 | } | |
6807 | } | |
6808 | { | |
6809 | wxPy_BEGIN_ALLOW_THREADS; | |
6810 | _result = new wxTreeItemId (wxTreeCtrl_InsertItemBefore(_arg0,*_arg1,_arg2,*_arg3,_arg4,_arg5,_arg6)); | |
6811 | ||
6812 | wxPy_END_ALLOW_THREADS; | |
6813 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
6814 | _resultobj = Py_BuildValue("s",_ptemp); | |
6815 | { | |
6816 | if (_obj3) | |
6817 | delete _arg3; | |
6818 | } | |
6819 | return _resultobj; | |
6820 | } | |
6821 | ||
d5c9047a | 6822 | #define wxTreeCtrl_AppendItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->AppendItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 6823 | static PyObject *_wrap_wxTreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6824 | PyObject * _resultobj; |
d5c9047a | 6825 | wxTreeItemId * _result; |
f6bcfd97 | 6826 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6827 | wxTreeItemId * _arg1; |
8ab979d7 | 6828 | wxString * _arg2; |
1d99702e RD |
6829 | int _arg3 = (int ) -1; |
6830 | int _arg4 = (int ) -1; | |
6831 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
6832 | PyObject * _argo0 = 0; | |
6833 | PyObject * _argo1 = 0; | |
8ab979d7 | 6834 | PyObject * _obj2 = 0; |
1d99702e | 6835 | PyObject * _argo5 = 0; |
efc5f224 | 6836 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 6837 | char _ptemp[128]; |
8ab979d7 RD |
6838 | |
6839 | self = self; | |
efc5f224 | 6840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_AppendItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 6841 | return NULL; |
1d99702e RD |
6842 | if (_argo0) { |
6843 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6844 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6845 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AppendItem. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
6846 | return NULL; |
6847 | } | |
6848 | } | |
1d99702e RD |
6849 | if (_argo1) { |
6850 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6851 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 6852 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AppendItem. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
6853 | return NULL; |
6854 | } | |
6855 | } | |
6856 | { | |
6857 | if (!PyString_Check(_obj2)) { | |
6858 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6859 | return NULL; | |
6860 | } | |
cf694132 | 6861 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); |
8ab979d7 | 6862 | } |
1d99702e RD |
6863 | if (_argo5) { |
6864 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
6865 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 6866 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_AppendItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
6867 | return NULL; |
6868 | } | |
6869 | } | |
cf694132 RD |
6870 | { |
6871 | wxPy_BEGIN_ALLOW_THREADS; | |
6872 | _result = new wxTreeItemId (wxTreeCtrl_AppendItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); | |
6873 | ||
6874 | wxPy_END_ALLOW_THREADS; | |
6875 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
d5c9047a | 6876 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
6877 | { |
6878 | if (_obj2) | |
6879 | delete _arg2; | |
6880 | } | |
6881 | return _resultobj; | |
6882 | } | |
6883 | ||
d5c9047a | 6884 | #define wxTreeCtrl_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
efc5f224 | 6885 | static PyObject *_wrap_wxTreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6886 | PyObject * _resultobj; |
f6bcfd97 | 6887 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6888 | wxTreeItemId * _arg1; |
1d99702e RD |
6889 | PyObject * _argo0 = 0; |
6890 | PyObject * _argo1 = 0; | |
efc5f224 | 6891 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
6892 | |
6893 | self = self; | |
efc5f224 | 6894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Delete",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6895 | return NULL; |
1d99702e RD |
6896 | if (_argo0) { |
6897 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6898 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6899 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Delete. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6900 | return NULL; |
6901 | } | |
6902 | } | |
1d99702e RD |
6903 | if (_argo1) { |
6904 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6905 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6906 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Delete. Expected _wxTreeItemId_p."); |
6907 | return NULL; | |
6908 | } | |
6909 | } | |
cf694132 RD |
6910 | { |
6911 | wxPy_BEGIN_ALLOW_THREADS; | |
6912 | wxTreeCtrl_Delete(_arg0,*_arg1); | |
6913 | ||
6914 | wxPy_END_ALLOW_THREADS; | |
6915 | } Py_INCREF(Py_None); | |
d5c9047a RD |
6916 | _resultobj = Py_None; |
6917 | return _resultobj; | |
6918 | } | |
6919 | ||
08127323 | 6920 | #define wxTreeCtrl_DeleteChildren(_swigobj,_swigarg0) (_swigobj->DeleteChildren(_swigarg0)) |
efc5f224 | 6921 | static PyObject *_wrap_wxTreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 | 6922 | PyObject * _resultobj; |
f6bcfd97 | 6923 | wxPyTreeCtrl * _arg0; |
08127323 | 6924 | wxTreeItemId * _arg1; |
1d99702e RD |
6925 | PyObject * _argo0 = 0; |
6926 | PyObject * _argo1 = 0; | |
efc5f224 | 6927 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
6928 | |
6929 | self = self; | |
efc5f224 | 6930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_DeleteChildren",_kwnames,&_argo0,&_argo1)) |
08127323 | 6931 | return NULL; |
1d99702e RD |
6932 | if (_argo0) { |
6933 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6934 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6935 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteChildren. Expected _wxPyTreeCtrl_p."); | |
08127323 RD |
6936 | return NULL; |
6937 | } | |
6938 | } | |
1d99702e RD |
6939 | if (_argo1) { |
6940 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6941 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
08127323 RD |
6942 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_DeleteChildren. Expected _wxTreeItemId_p."); |
6943 | return NULL; | |
6944 | } | |
6945 | } | |
cf694132 RD |
6946 | { |
6947 | wxPy_BEGIN_ALLOW_THREADS; | |
6948 | wxTreeCtrl_DeleteChildren(_arg0,*_arg1); | |
6949 | ||
6950 | wxPy_END_ALLOW_THREADS; | |
6951 | } Py_INCREF(Py_None); | |
08127323 RD |
6952 | _resultobj = Py_None; |
6953 | return _resultobj; | |
6954 | } | |
6955 | ||
d5c9047a | 6956 | #define wxTreeCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) |
efc5f224 | 6957 | static PyObject *_wrap_wxTreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 6958 | PyObject * _resultobj; |
f6bcfd97 | 6959 | wxPyTreeCtrl * _arg0; |
1d99702e | 6960 | PyObject * _argo0 = 0; |
efc5f224 | 6961 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
6962 | |
6963 | self = self; | |
efc5f224 | 6964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_DeleteAllItems",_kwnames,&_argo0)) |
d5c9047a | 6965 | return NULL; |
1d99702e RD |
6966 | if (_argo0) { |
6967 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6968 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6969 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteAllItems. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
6970 | return NULL; |
6971 | } | |
6972 | } | |
cf694132 RD |
6973 | { |
6974 | wxPy_BEGIN_ALLOW_THREADS; | |
6975 | wxTreeCtrl_DeleteAllItems(_arg0); | |
6976 | ||
6977 | wxPy_END_ALLOW_THREADS; | |
6978 | } Py_INCREF(Py_None); | |
d5c9047a RD |
6979 | _resultobj = Py_None; |
6980 | return _resultobj; | |
6981 | } | |
6982 | ||
6983 | #define wxTreeCtrl_Expand(_swigobj,_swigarg0) (_swigobj->Expand(_swigarg0)) | |
efc5f224 | 6984 | static PyObject *_wrap_wxTreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 6985 | PyObject * _resultobj; |
f6bcfd97 | 6986 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6987 | wxTreeItemId * _arg1; |
1d99702e RD |
6988 | PyObject * _argo0 = 0; |
6989 | PyObject * _argo1 = 0; | |
efc5f224 | 6990 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
6991 | |
6992 | self = self; | |
efc5f224 | 6993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Expand",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 6994 | return NULL; |
1d99702e RD |
6995 | if (_argo0) { |
6996 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6997 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6998 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Expand. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
6999 | return NULL; |
7000 | } | |
7001 | } | |
1d99702e RD |
7002 | if (_argo1) { |
7003 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7004 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7005 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Expand. Expected _wxTreeItemId_p."); |
7006 | return NULL; | |
7007 | } | |
7008 | } | |
cf694132 RD |
7009 | { |
7010 | wxPy_BEGIN_ALLOW_THREADS; | |
7011 | wxTreeCtrl_Expand(_arg0,*_arg1); | |
7012 | ||
7013 | wxPy_END_ALLOW_THREADS; | |
7014 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7015 | _resultobj = Py_None; |
7016 | return _resultobj; | |
7017 | } | |
7018 | ||
7019 | #define wxTreeCtrl_Collapse(_swigobj,_swigarg0) (_swigobj->Collapse(_swigarg0)) | |
efc5f224 | 7020 | static PyObject *_wrap_wxTreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7021 | PyObject * _resultobj; |
f6bcfd97 | 7022 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7023 | wxTreeItemId * _arg1; |
1d99702e RD |
7024 | PyObject * _argo0 = 0; |
7025 | PyObject * _argo1 = 0; | |
efc5f224 | 7026 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7027 | |
7028 | self = self; | |
efc5f224 | 7029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Collapse",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7030 | return NULL; |
1d99702e RD |
7031 | if (_argo0) { |
7032 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7033 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7034 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Collapse. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7035 | return NULL; |
7036 | } | |
7037 | } | |
1d99702e RD |
7038 | if (_argo1) { |
7039 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7040 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7041 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Collapse. Expected _wxTreeItemId_p."); |
7042 | return NULL; | |
7043 | } | |
7044 | } | |
cf694132 RD |
7045 | { |
7046 | wxPy_BEGIN_ALLOW_THREADS; | |
7047 | wxTreeCtrl_Collapse(_arg0,*_arg1); | |
7048 | ||
7049 | wxPy_END_ALLOW_THREADS; | |
7050 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7051 | _resultobj = Py_None; |
7052 | return _resultobj; | |
7053 | } | |
7054 | ||
7055 | #define wxTreeCtrl_CollapseAndReset(_swigobj,_swigarg0) (_swigobj->CollapseAndReset(_swigarg0)) | |
efc5f224 | 7056 | static PyObject *_wrap_wxTreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7057 | PyObject * _resultobj; |
f6bcfd97 | 7058 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7059 | wxTreeItemId * _arg1; |
1d99702e RD |
7060 | PyObject * _argo0 = 0; |
7061 | PyObject * _argo1 = 0; | |
efc5f224 | 7062 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7063 | |
7064 | self = self; | |
efc5f224 | 7065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_CollapseAndReset",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7066 | return NULL; |
1d99702e RD |
7067 | if (_argo0) { |
7068 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7069 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7070 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_CollapseAndReset. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7071 | return NULL; |
7072 | } | |
7073 | } | |
1d99702e RD |
7074 | if (_argo1) { |
7075 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7076 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7077 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_CollapseAndReset. Expected _wxTreeItemId_p."); |
7078 | return NULL; | |
7079 | } | |
7080 | } | |
cf694132 RD |
7081 | { |
7082 | wxPy_BEGIN_ALLOW_THREADS; | |
7083 | wxTreeCtrl_CollapseAndReset(_arg0,*_arg1); | |
7084 | ||
7085 | wxPy_END_ALLOW_THREADS; | |
7086 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7087 | _resultobj = Py_None; |
7088 | return _resultobj; | |
7089 | } | |
7090 | ||
7091 | #define wxTreeCtrl_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0)) | |
efc5f224 | 7092 | static PyObject *_wrap_wxTreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7093 | PyObject * _resultobj; |
f6bcfd97 | 7094 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7095 | wxTreeItemId * _arg1; |
1d99702e RD |
7096 | PyObject * _argo0 = 0; |
7097 | PyObject * _argo1 = 0; | |
efc5f224 | 7098 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7099 | |
7100 | self = self; | |
efc5f224 | 7101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Toggle",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7102 | return NULL; |
1d99702e RD |
7103 | if (_argo0) { |
7104 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7105 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7106 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Toggle. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7107 | return NULL; |
7108 | } | |
7109 | } | |
1d99702e RD |
7110 | if (_argo1) { |
7111 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7112 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7113 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Toggle. Expected _wxTreeItemId_p."); |
7114 | return NULL; | |
7115 | } | |
7116 | } | |
cf694132 RD |
7117 | { |
7118 | wxPy_BEGIN_ALLOW_THREADS; | |
7119 | wxTreeCtrl_Toggle(_arg0,*_arg1); | |
7120 | ||
7121 | wxPy_END_ALLOW_THREADS; | |
7122 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7123 | _resultobj = Py_None; |
7124 | return _resultobj; | |
7125 | } | |
7126 | ||
7127 | #define wxTreeCtrl_Unselect(_swigobj) (_swigobj->Unselect()) | |
efc5f224 | 7128 | static PyObject *_wrap_wxTreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7129 | PyObject * _resultobj; |
f6bcfd97 | 7130 | wxPyTreeCtrl * _arg0; |
1d99702e | 7131 | PyObject * _argo0 = 0; |
efc5f224 | 7132 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
7133 | |
7134 | self = self; | |
efc5f224 | 7135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_Unselect",_kwnames,&_argo0)) |
d5c9047a | 7136 | return NULL; |
1d99702e RD |
7137 | if (_argo0) { |
7138 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7139 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7140 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Unselect. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7141 | return NULL; |
7142 | } | |
7143 | } | |
cf694132 RD |
7144 | { |
7145 | wxPy_BEGIN_ALLOW_THREADS; | |
7146 | wxTreeCtrl_Unselect(_arg0); | |
7147 | ||
7148 | wxPy_END_ALLOW_THREADS; | |
7149 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7150 | _resultobj = Py_None; |
7151 | return _resultobj; | |
7152 | } | |
7153 | ||
8bf5d46e | 7154 | #define wxTreeCtrl_UnselectAll(_swigobj) (_swigobj->UnselectAll()) |
efc5f224 | 7155 | static PyObject *_wrap_wxTreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e | 7156 | PyObject * _resultobj; |
f6bcfd97 | 7157 | wxPyTreeCtrl * _arg0; |
1d99702e | 7158 | PyObject * _argo0 = 0; |
efc5f224 | 7159 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
7160 | |
7161 | self = self; | |
efc5f224 | 7162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_UnselectAll",_kwnames,&_argo0)) |
8bf5d46e | 7163 | return NULL; |
1d99702e RD |
7164 | if (_argo0) { |
7165 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7166 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7167 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_UnselectAll. Expected _wxPyTreeCtrl_p."); | |
8bf5d46e RD |
7168 | return NULL; |
7169 | } | |
7170 | } | |
7171 | { | |
7172 | wxPy_BEGIN_ALLOW_THREADS; | |
7173 | wxTreeCtrl_UnselectAll(_arg0); | |
7174 | ||
7175 | wxPy_END_ALLOW_THREADS; | |
7176 | } Py_INCREF(Py_None); | |
7177 | _resultobj = Py_None; | |
7178 | return _resultobj; | |
7179 | } | |
7180 | ||
d5c9047a | 7181 | #define wxTreeCtrl_SelectItem(_swigobj,_swigarg0) (_swigobj->SelectItem(_swigarg0)) |
efc5f224 | 7182 | static PyObject *_wrap_wxTreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7183 | PyObject * _resultobj; |
f6bcfd97 | 7184 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7185 | wxTreeItemId * _arg1; |
1d99702e RD |
7186 | PyObject * _argo0 = 0; |
7187 | PyObject * _argo1 = 0; | |
efc5f224 | 7188 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7189 | |
7190 | self = self; | |
efc5f224 | 7191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SelectItem",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7192 | return NULL; |
1d99702e RD |
7193 | if (_argo0) { |
7194 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7195 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7196 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SelectItem. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7197 | return NULL; |
7198 | } | |
7199 | } | |
1d99702e RD |
7200 | if (_argo1) { |
7201 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7202 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7203 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SelectItem. Expected _wxTreeItemId_p."); |
7204 | return NULL; | |
7205 | } | |
7206 | } | |
cf694132 RD |
7207 | { |
7208 | wxPy_BEGIN_ALLOW_THREADS; | |
7209 | wxTreeCtrl_SelectItem(_arg0,*_arg1); | |
7210 | ||
7211 | wxPy_END_ALLOW_THREADS; | |
7212 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7213 | _resultobj = Py_None; |
7214 | return _resultobj; | |
7215 | } | |
7216 | ||
7217 | #define wxTreeCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) | |
efc5f224 | 7218 | static PyObject *_wrap_wxTreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7219 | PyObject * _resultobj; |
f6bcfd97 | 7220 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7221 | wxTreeItemId * _arg1; |
1d99702e RD |
7222 | PyObject * _argo0 = 0; |
7223 | PyObject * _argo1 = 0; | |
efc5f224 | 7224 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7225 | |
7226 | self = self; | |
efc5f224 | 7227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EnsureVisible",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7228 | return NULL; |
1d99702e RD |
7229 | if (_argo0) { |
7230 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7231 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7232 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EnsureVisible. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7233 | return NULL; |
7234 | } | |
7235 | } | |
1d99702e RD |
7236 | if (_argo1) { |
7237 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7238 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7239 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EnsureVisible. Expected _wxTreeItemId_p."); |
7240 | return NULL; | |
7241 | } | |
7242 | } | |
cf694132 RD |
7243 | { |
7244 | wxPy_BEGIN_ALLOW_THREADS; | |
7245 | wxTreeCtrl_EnsureVisible(_arg0,*_arg1); | |
7246 | ||
7247 | wxPy_END_ALLOW_THREADS; | |
7248 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7249 | _resultobj = Py_None; |
7250 | return _resultobj; | |
7251 | } | |
7252 | ||
7253 | #define wxTreeCtrl_ScrollTo(_swigobj,_swigarg0) (_swigobj->ScrollTo(_swigarg0)) | |
efc5f224 | 7254 | static PyObject *_wrap_wxTreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7255 | PyObject * _resultobj; |
f6bcfd97 | 7256 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7257 | wxTreeItemId * _arg1; |
1d99702e RD |
7258 | PyObject * _argo0 = 0; |
7259 | PyObject * _argo1 = 0; | |
efc5f224 | 7260 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7261 | |
7262 | self = self; | |
efc5f224 | 7263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ScrollTo",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7264 | return NULL; |
1d99702e RD |
7265 | if (_argo0) { |
7266 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7267 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7268 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ScrollTo. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7269 | return NULL; |
7270 | } | |
7271 | } | |
1d99702e RD |
7272 | if (_argo1) { |
7273 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7274 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7275 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ScrollTo. Expected _wxTreeItemId_p."); |
7276 | return NULL; | |
7277 | } | |
7278 | } | |
cf694132 RD |
7279 | { |
7280 | wxPy_BEGIN_ALLOW_THREADS; | |
7281 | wxTreeCtrl_ScrollTo(_arg0,*_arg1); | |
7282 | ||
7283 | wxPy_END_ALLOW_THREADS; | |
7284 | } Py_INCREF(Py_None); | |
d5c9047a RD |
7285 | _resultobj = Py_None; |
7286 | return _resultobj; | |
7287 | } | |
7288 | ||
7289 | #define wxTreeCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0)) | |
efc5f224 | 7290 | static PyObject *_wrap_wxTreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a RD |
7291 | PyObject * _resultobj; |
7292 | wxTextCtrl * _result; | |
f6bcfd97 | 7293 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7294 | wxTreeItemId * _arg1; |
1d99702e RD |
7295 | PyObject * _argo0 = 0; |
7296 | PyObject * _argo1 = 0; | |
efc5f224 | 7297 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
7298 | char _ptemp[128]; |
7299 | ||
7300 | self = self; | |
efc5f224 | 7301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EditLabel",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 7302 | return NULL; |
1d99702e RD |
7303 | if (_argo0) { |
7304 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7305 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7306 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EditLabel. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7307 | return NULL; |
7308 | } | |
7309 | } | |
1d99702e RD |
7310 | if (_argo1) { |
7311 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7312 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7313 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EditLabel. Expected _wxTreeItemId_p."); |
7314 | return NULL; | |
7315 | } | |
7316 | } | |
cf694132 RD |
7317 | { |
7318 | wxPy_BEGIN_ALLOW_THREADS; | |
7319 | _result = (wxTextCtrl *)wxTreeCtrl_EditLabel(_arg0,*_arg1); | |
7320 | ||
7321 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
7322 | } if (_result) { |
7323 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p"); | |
7324 | _resultobj = Py_BuildValue("s",_ptemp); | |
7325 | } else { | |
7326 | Py_INCREF(Py_None); | |
7327 | _resultobj = Py_None; | |
7328 | } | |
d5c9047a RD |
7329 | return _resultobj; |
7330 | } | |
7331 | ||
7332 | #define wxTreeCtrl_GetEditControl(_swigobj) (_swigobj->GetEditControl()) | |
efc5f224 | 7333 | static PyObject *_wrap_wxTreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a RD |
7334 | PyObject * _resultobj; |
7335 | wxTextCtrl * _result; | |
f6bcfd97 | 7336 | wxPyTreeCtrl * _arg0; |
1d99702e | 7337 | PyObject * _argo0 = 0; |
efc5f224 | 7338 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
7339 | char _ptemp[128]; |
7340 | ||
7341 | self = self; | |
efc5f224 | 7342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetEditControl",_kwnames,&_argo0)) |
d5c9047a | 7343 | return NULL; |
1d99702e RD |
7344 | if (_argo0) { |
7345 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7346 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7347 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetEditControl. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7348 | return NULL; |
7349 | } | |
7350 | } | |
cf694132 RD |
7351 | { |
7352 | wxPy_BEGIN_ALLOW_THREADS; | |
7353 | _result = (wxTextCtrl *)wxTreeCtrl_GetEditControl(_arg0); | |
7354 | ||
7355 | wxPy_END_ALLOW_THREADS; | |
1d99702e RD |
7356 | } if (_result) { |
7357 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTextCtrl_p"); | |
7358 | _resultobj = Py_BuildValue("s",_ptemp); | |
7359 | } else { | |
7360 | Py_INCREF(Py_None); | |
7361 | _resultobj = Py_None; | |
7362 | } | |
d5c9047a RD |
7363 | return _resultobj; |
7364 | } | |
7365 | ||
7366 | #define wxTreeCtrl_EndEditLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->EndEditLabel(_swigarg0,_swigarg1)) | |
efc5f224 | 7367 | static PyObject *_wrap_wxTreeCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 7368 | PyObject * _resultobj; |
f6bcfd97 | 7369 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7370 | wxTreeItemId * _arg1; |
b1462dfa | 7371 | int _arg2 = (int ) FALSE; |
1d99702e RD |
7372 | PyObject * _argo0 = 0; |
7373 | PyObject * _argo1 = 0; | |
efc5f224 | 7374 | char *_kwnames[] = { "self","item","discardChanges", NULL }; |
d5c9047a RD |
7375 | |
7376 | self = self; | |
b1462dfa | 7377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_EndEditLabel",_kwnames,&_argo0,&_argo1,&_arg2)) |
d5c9047a | 7378 | return NULL; |
1d99702e RD |
7379 | if (_argo0) { |
7380 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7381 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7382 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EndEditLabel. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7383 | return NULL; |
7384 | } | |
7385 | } | |
1d99702e RD |
7386 | if (_argo1) { |
7387 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7388 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7389 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EndEditLabel. Expected _wxTreeItemId_p."); |
7390 | return NULL; | |
7391 | } | |
7392 | } | |
cf694132 RD |
7393 | { |
7394 | wxPy_BEGIN_ALLOW_THREADS; | |
7395 | wxTreeCtrl_EndEditLabel(_arg0,*_arg1,_arg2); | |
7396 | ||
7397 | wxPy_END_ALLOW_THREADS; | |
7398 | } Py_INCREF(Py_None); | |
d5c9047a | 7399 | _resultobj = Py_None; |
8ab979d7 RD |
7400 | return _resultobj; |
7401 | } | |
7402 | ||
d426c97e RD |
7403 | #define wxTreeCtrl_SortChildren(_swigobj,_swigarg0) (_swigobj->SortChildren(_swigarg0)) |
7404 | static PyObject *_wrap_wxTreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7405 | PyObject * _resultobj; | |
f6bcfd97 | 7406 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
7407 | wxTreeItemId * _arg1; |
7408 | PyObject * _argo0 = 0; | |
7409 | PyObject * _argo1 = 0; | |
7410 | char *_kwnames[] = { "self","item", NULL }; | |
7411 | ||
7412 | self = self; | |
7413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SortChildren",_kwnames,&_argo0,&_argo1)) | |
7414 | return NULL; | |
7415 | if (_argo0) { | |
7416 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7417 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7418 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SortChildren. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
7419 | return NULL; |
7420 | } | |
7421 | } | |
7422 | if (_argo1) { | |
7423 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7424 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7425 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SortChildren. Expected _wxTreeItemId_p."); | |
7426 | return NULL; | |
7427 | } | |
7428 | } | |
7429 | { | |
7430 | wxPy_BEGIN_ALLOW_THREADS; | |
7431 | wxTreeCtrl_SortChildren(_arg0,*_arg1); | |
7432 | ||
7433 | wxPy_END_ALLOW_THREADS; | |
7434 | } Py_INCREF(Py_None); | |
7435 | _resultobj = Py_None; | |
7436 | return _resultobj; | |
7437 | } | |
7438 | ||
b8b8dda7 | 7439 | #define wxTreeCtrl_SetItemBold(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBold(_swigarg0,_swigarg1)) |
efc5f224 | 7440 | static PyObject *_wrap_wxTreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 | 7441 | PyObject * _resultobj; |
f6bcfd97 | 7442 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 7443 | wxTreeItemId * _arg1; |
b1462dfa | 7444 | int _arg2 = (int ) TRUE; |
1d99702e RD |
7445 | PyObject * _argo0 = 0; |
7446 | PyObject * _argo1 = 0; | |
efc5f224 | 7447 | char *_kwnames[] = { "self","item","bold", NULL }; |
b8b8dda7 RD |
7448 | |
7449 | self = self; | |
b1462dfa | 7450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemBold",_kwnames,&_argo0,&_argo1,&_arg2)) |
b8b8dda7 | 7451 | return NULL; |
1d99702e RD |
7452 | if (_argo0) { |
7453 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7454 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7455 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBold. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
7456 | return NULL; |
7457 | } | |
7458 | } | |
1d99702e RD |
7459 | if (_argo1) { |
7460 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7461 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
b8b8dda7 RD |
7462 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBold. Expected _wxTreeItemId_p."); |
7463 | return NULL; | |
7464 | } | |
7465 | } | |
cf694132 RD |
7466 | { |
7467 | wxPy_BEGIN_ALLOW_THREADS; | |
7468 | wxTreeCtrl_SetItemBold(_arg0,*_arg1,_arg2); | |
7469 | ||
7470 | wxPy_END_ALLOW_THREADS; | |
7471 | } Py_INCREF(Py_None); | |
b8b8dda7 RD |
7472 | _resultobj = Py_None; |
7473 | return _resultobj; | |
7474 | } | |
7475 | ||
7476 | #define wxTreeCtrl_IsBold(_swigobj,_swigarg0) (_swigobj->IsBold(_swigarg0)) | |
efc5f224 | 7477 | static PyObject *_wrap_wxTreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
7478 | PyObject * _resultobj; |
7479 | bool _result; | |
f6bcfd97 | 7480 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 7481 | wxTreeItemId * _arg1; |
1d99702e RD |
7482 | PyObject * _argo0 = 0; |
7483 | PyObject * _argo1 = 0; | |
efc5f224 | 7484 | char *_kwnames[] = { "self","item", NULL }; |
b8b8dda7 RD |
7485 | |
7486 | self = self; | |
efc5f224 | 7487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsBold",_kwnames,&_argo0,&_argo1)) |
b8b8dda7 | 7488 | return NULL; |
1d99702e RD |
7489 | if (_argo0) { |
7490 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7491 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsBold. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
7493 | return NULL; |
7494 | } | |
7495 | } | |
1d99702e RD |
7496 | if (_argo1) { |
7497 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7498 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
b8b8dda7 RD |
7499 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsBold. Expected _wxTreeItemId_p."); |
7500 | return NULL; | |
7501 | } | |
7502 | } | |
cf694132 RD |
7503 | { |
7504 | wxPy_BEGIN_ALLOW_THREADS; | |
7505 | _result = (bool )wxTreeCtrl_IsBold(_arg0,*_arg1); | |
7506 | ||
7507 | wxPy_END_ALLOW_THREADS; | |
7508 | } _resultobj = Py_BuildValue("i",_result); | |
b8b8dda7 RD |
7509 | return _resultobj; |
7510 | } | |
7511 | ||
164b735b | 7512 | #define wxTreeCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) |
efc5f224 | 7513 | static PyObject *_wrap_wxTreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
7514 | PyObject * _resultobj; |
7515 | wxTreeItemId * _result; | |
f6bcfd97 | 7516 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 7517 | wxPoint * _arg1; |
164b735b RD |
7518 | int * _arg2; |
7519 | int temp; | |
1d99702e | 7520 | PyObject * _argo0 = 0; |
164b735b | 7521 | wxPoint temp0; |
2f90df85 | 7522 | PyObject * _obj1 = 0; |
efc5f224 | 7523 | char *_kwnames[] = { "self","point", NULL }; |
b8b8dda7 RD |
7524 | char _ptemp[128]; |
7525 | ||
7526 | self = self; | |
164b735b RD |
7527 | { |
7528 | _arg2 = &temp; | |
7529 | } | |
2f90df85 | 7530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_HitTest",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 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_HitTest. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
7536 | return NULL; |
7537 | } | |
7538 | } | |
2f90df85 | 7539 | { |
164b735b | 7540 | _arg1 = &temp0; |
2f90df85 | 7541 | if (! wxPoint_helper(_obj1, &_arg1)) |
b8b8dda7 | 7542 | return NULL; |
2f90df85 | 7543 | } |
cf694132 RD |
7544 | { |
7545 | wxPy_BEGIN_ALLOW_THREADS; | |
164b735b | 7546 | _result = new wxTreeItemId (wxTreeCtrl_HitTest(_arg0,*_arg1,*_arg2)); |
cf694132 RD |
7547 | |
7548 | wxPy_END_ALLOW_THREADS; | |
7549 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); | |
b8b8dda7 | 7550 | _resultobj = Py_BuildValue("s",_ptemp); |
164b735b RD |
7551 | { |
7552 | PyObject *o; | |
7553 | o = PyInt_FromLong((long) (*_arg2)); | |
7554 | _resultobj = t_output_helper(_resultobj, o); | |
7555 | } | |
b8b8dda7 RD |
7556 | return _resultobj; |
7557 | } | |
7558 | ||
b7e72427 RD |
7559 | #define wxTreeCtrl_SetItemTextColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemTextColour(_swigarg0,_swigarg1)) |
7560 | static PyObject *_wrap_wxTreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7561 | PyObject * _resultobj; | |
f6bcfd97 | 7562 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
7563 | wxTreeItemId * _arg1; |
7564 | wxColour * _arg2; | |
7565 | PyObject * _argo0 = 0; | |
7566 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
7567 | wxColour temp; |
7568 | PyObject * _obj2 = 0; | |
b7e72427 RD |
7569 | char *_kwnames[] = { "self","item","col", NULL }; |
7570 | ||
7571 | self = self; | |
f6bcfd97 | 7572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemTextColour",_kwnames,&_argo0,&_argo1,&_obj2)) |
b7e72427 RD |
7573 | return NULL; |
7574 | if (_argo0) { | |
7575 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7576 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7577 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemTextColour. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
7578 | return NULL; |
7579 | } | |
7580 | } | |
7581 | if (_argo1) { | |
7582 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7583 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7584 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemTextColour. Expected _wxTreeItemId_p."); | |
7585 | return NULL; | |
7586 | } | |
7587 | } | |
f6bcfd97 BP |
7588 | { |
7589 | _arg2 = &temp; | |
7590 | if (! wxColour_helper(_obj2, &_arg2)) | |
b7e72427 | 7591 | return NULL; |
f6bcfd97 | 7592 | } |
b7e72427 RD |
7593 | { |
7594 | wxPy_BEGIN_ALLOW_THREADS; | |
7595 | wxTreeCtrl_SetItemTextColour(_arg0,*_arg1,*_arg2); | |
7596 | ||
7597 | wxPy_END_ALLOW_THREADS; | |
7598 | } Py_INCREF(Py_None); | |
7599 | _resultobj = Py_None; | |
7600 | return _resultobj; | |
7601 | } | |
7602 | ||
7603 | #define wxTreeCtrl_SetItemBackgroundColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBackgroundColour(_swigarg0,_swigarg1)) | |
7604 | static PyObject *_wrap_wxTreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7605 | PyObject * _resultobj; | |
f6bcfd97 | 7606 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
7607 | wxTreeItemId * _arg1; |
7608 | wxColour * _arg2; | |
7609 | PyObject * _argo0 = 0; | |
7610 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
7611 | wxColour temp; |
7612 | PyObject * _obj2 = 0; | |
b7e72427 RD |
7613 | char *_kwnames[] = { "self","item","col", NULL }; |
7614 | ||
7615 | self = self; | |
f6bcfd97 | 7616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemBackgroundColour",_kwnames,&_argo0,&_argo1,&_obj2)) |
b7e72427 RD |
7617 | return NULL; |
7618 | if (_argo0) { | |
7619 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7620 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7621 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
7622 | return NULL; |
7623 | } | |
7624 | } | |
7625 | if (_argo1) { | |
7626 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7627 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7628 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxTreeItemId_p."); | |
7629 | return NULL; | |
7630 | } | |
7631 | } | |
f6bcfd97 BP |
7632 | { |
7633 | _arg2 = &temp; | |
7634 | if (! wxColour_helper(_obj2, &_arg2)) | |
b7e72427 | 7635 | return NULL; |
f6bcfd97 | 7636 | } |
b7e72427 RD |
7637 | { |
7638 | wxPy_BEGIN_ALLOW_THREADS; | |
7639 | wxTreeCtrl_SetItemBackgroundColour(_arg0,*_arg1,*_arg2); | |
7640 | ||
7641 | wxPy_END_ALLOW_THREADS; | |
7642 | } Py_INCREF(Py_None); | |
7643 | _resultobj = Py_None; | |
7644 | return _resultobj; | |
7645 | } | |
7646 | ||
7647 | #define wxTreeCtrl_SetItemFont(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemFont(_swigarg0,_swigarg1)) | |
7648 | static PyObject *_wrap_wxTreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7649 | PyObject * _resultobj; | |
f6bcfd97 | 7650 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
7651 | wxTreeItemId * _arg1; |
7652 | wxFont * _arg2; | |
7653 | PyObject * _argo0 = 0; | |
7654 | PyObject * _argo1 = 0; | |
7655 | PyObject * _argo2 = 0; | |
7656 | char *_kwnames[] = { "self","item","font", NULL }; | |
7657 | ||
7658 | self = self; | |
7659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemFont",_kwnames,&_argo0,&_argo1,&_argo2)) | |
7660 | return NULL; | |
7661 | if (_argo0) { | |
7662 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7663 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7664 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemFont. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
7665 | return NULL; |
7666 | } | |
7667 | } | |
7668 | if (_argo1) { | |
7669 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7670 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7671 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemFont. Expected _wxTreeItemId_p."); | |
7672 | return NULL; | |
7673 | } | |
7674 | } | |
7675 | if (_argo2) { | |
7676 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7677 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
7678 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemFont. Expected _wxFont_p."); | |
7679 | return NULL; | |
7680 | } | |
7681 | } | |
7682 | { | |
7683 | wxPy_BEGIN_ALLOW_THREADS; | |
7684 | wxTreeCtrl_SetItemFont(_arg0,*_arg1,*_arg2); | |
7685 | ||
7686 | wxPy_END_ALLOW_THREADS; | |
7687 | } Py_INCREF(Py_None); | |
7688 | _resultobj = Py_None; | |
7689 | return _resultobj; | |
7690 | } | |
7691 | ||
b1462dfa RD |
7692 | #define wxTreeCtrl_SetItemDropHighlight(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemDropHighlight(_swigarg0,_swigarg1)) |
7693 | static PyObject *_wrap_wxTreeCtrl_SetItemDropHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7694 | PyObject * _resultobj; | |
f6bcfd97 | 7695 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
7696 | wxTreeItemId * _arg1; |
7697 | int _arg2 = (int ) TRUE; | |
7698 | PyObject * _argo0 = 0; | |
7699 | PyObject * _argo1 = 0; | |
7700 | char *_kwnames[] = { "self","item","highlight", NULL }; | |
7701 | ||
7702 | self = self; | |
7703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemDropHighlight",_kwnames,&_argo0,&_argo1,&_arg2)) | |
7704 | return NULL; | |
7705 | if (_argo0) { | |
7706 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7707 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7708 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemDropHighlight. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
7709 | return NULL; |
7710 | } | |
7711 | } | |
7712 | if (_argo1) { | |
7713 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7714 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemDropHighlight. Expected _wxTreeItemId_p."); | |
7716 | return NULL; | |
7717 | } | |
7718 | } | |
7719 | { | |
7720 | wxPy_BEGIN_ALLOW_THREADS; | |
7721 | wxTreeCtrl_SetItemDropHighlight(_arg0,*_arg1,_arg2); | |
7722 | ||
7723 | wxPy_END_ALLOW_THREADS; | |
7724 | } Py_INCREF(Py_None); | |
7725 | _resultobj = Py_None; | |
7726 | return _resultobj; | |
7727 | } | |
7728 | ||
f6bcfd97 | 7729 | static PyObject * wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,const wxTreeItemId & item,int textOnly) { |
d426c97e | 7730 | wxRect rect; |
164b735b RD |
7731 | if (self->GetBoundingRect(item, rect, textOnly)) { |
7732 | bool doSave = wxPyRestoreThread(); | |
7733 | wxRect* r = new wxRect(rect); | |
7734 | PyObject* val = wxPyConstructObject((void*)r, "wxRect"); | |
7735 | wxPySaveThread(doSave); | |
7736 | return val; | |
7737 | } | |
d426c97e RD |
7738 | else { |
7739 | Py_INCREF(Py_None); | |
7740 | return Py_None; | |
7741 | } | |
7742 | } | |
7743 | static PyObject *_wrap_wxTreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7744 | PyObject * _resultobj; | |
7745 | PyObject * _result; | |
f6bcfd97 | 7746 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
7747 | wxTreeItemId * _arg1; |
7748 | int _arg2 = (int ) FALSE; | |
7749 | PyObject * _argo0 = 0; | |
7750 | PyObject * _argo1 = 0; | |
7751 | char *_kwnames[] = { "self","item","textOnly", NULL }; | |
7752 | ||
7753 | self = self; | |
7754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetBoundingRect",_kwnames,&_argo0,&_argo1,&_arg2)) | |
7755 | return NULL; | |
7756 | if (_argo0) { | |
7757 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7758 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7759 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetBoundingRect. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
7760 | return NULL; |
7761 | } | |
7762 | } | |
7763 | if (_argo1) { | |
7764 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7765 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7766 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetBoundingRect. Expected _wxTreeItemId_p."); | |
7767 | return NULL; | |
7768 | } | |
7769 | } | |
7770 | { | |
7771 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 7772 | _result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(_arg0,*_arg1,_arg2); |
d426c97e RD |
7773 | |
7774 | wxPy_END_ALLOW_THREADS; | |
7775 | }{ | |
7776 | _resultobj = _result; | |
7777 | } | |
7778 | return _resultobj; | |
7779 | } | |
7780 | ||
8ab979d7 | 7781 | static PyMethodDef controls2cMethods[] = { |
d426c97e | 7782 | { "wxTreeCtrl_GetBoundingRect", (PyCFunction) _wrap_wxTreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 7783 | { "wxTreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_wxTreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 RD |
7784 | { "wxTreeCtrl_SetItemFont", (PyCFunction) _wrap_wxTreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, |
7785 | { "wxTreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
7786 | { "wxTreeCtrl_SetItemTextColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
7787 | { "wxTreeCtrl_HitTest", (PyCFunction) _wrap_wxTreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
7788 | { "wxTreeCtrl_IsBold", (PyCFunction) _wrap_wxTreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
7789 | { "wxTreeCtrl_SetItemBold", (PyCFunction) _wrap_wxTreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 7790 | { "wxTreeCtrl_SortChildren", (PyCFunction) _wrap_wxTreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
7791 | { "wxTreeCtrl_EndEditLabel", (PyCFunction) _wrap_wxTreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, |
7792 | { "wxTreeCtrl_GetEditControl", (PyCFunction) _wrap_wxTreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
7793 | { "wxTreeCtrl_EditLabel", (PyCFunction) _wrap_wxTreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
7794 | { "wxTreeCtrl_ScrollTo", (PyCFunction) _wrap_wxTreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
7795 | { "wxTreeCtrl_EnsureVisible", (PyCFunction) _wrap_wxTreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
7796 | { "wxTreeCtrl_SelectItem", (PyCFunction) _wrap_wxTreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
7797 | { "wxTreeCtrl_UnselectAll", (PyCFunction) _wrap_wxTreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, | |
7798 | { "wxTreeCtrl_Unselect", (PyCFunction) _wrap_wxTreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
7799 | { "wxTreeCtrl_Toggle", (PyCFunction) _wrap_wxTreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
7800 | { "wxTreeCtrl_CollapseAndReset", (PyCFunction) _wrap_wxTreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
7801 | { "wxTreeCtrl_Collapse", (PyCFunction) _wrap_wxTreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
7802 | { "wxTreeCtrl_Expand", (PyCFunction) _wrap_wxTreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
7803 | { "wxTreeCtrl_DeleteAllItems", (PyCFunction) _wrap_wxTreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
7804 | { "wxTreeCtrl_DeleteChildren", (PyCFunction) _wrap_wxTreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
7805 | { "wxTreeCtrl_Delete", (PyCFunction) _wrap_wxTreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
7806 | { "wxTreeCtrl_AppendItem", (PyCFunction) _wrap_wxTreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 7807 | { "wxTreeCtrl_InsertItemBefore", (PyCFunction) _wrap_wxTreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
7808 | { "wxTreeCtrl_InsertItem", (PyCFunction) _wrap_wxTreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, |
7809 | { "wxTreeCtrl_PrependItem", (PyCFunction) _wrap_wxTreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
7810 | { "wxTreeCtrl_AddRoot", (PyCFunction) _wrap_wxTreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 7811 | { "wxTreeCtrl_GetLastChild", (PyCFunction) _wrap_wxTreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
7812 | { "wxTreeCtrl_GetPrevVisible", (PyCFunction) _wrap_wxTreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, |
7813 | { "wxTreeCtrl_GetNextVisible", (PyCFunction) _wrap_wxTreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
7814 | { "wxTreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_wxTreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
7815 | { "wxTreeCtrl_GetPrevSibling", (PyCFunction) _wrap_wxTreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
7816 | { "wxTreeCtrl_GetNextSibling", (PyCFunction) _wrap_wxTreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
7817 | { "wxTreeCtrl_GetNextChild", (PyCFunction) _wrap_wxTreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
7818 | { "wxTreeCtrl_GetFirstChild", (PyCFunction) _wrap_wxTreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
7819 | { "wxTreeCtrl_GetChildrenCount", (PyCFunction) _wrap_wxTreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 7820 | { "wxTreeCtrl_GetSelections", (PyCFunction) _wrap_wxTreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 7821 | { "wxTreeCtrl_GetItemParent", (PyCFunction) _wrap_wxTreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
7822 | { "wxTreeCtrl_GetSelection", (PyCFunction) _wrap_wxTreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, |
7823 | { "wxTreeCtrl_GetRootItem", (PyCFunction) _wrap_wxTreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
7824 | { "wxTreeCtrl_IsSelected", (PyCFunction) _wrap_wxTreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
7825 | { "wxTreeCtrl_IsExpanded", (PyCFunction) _wrap_wxTreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
7826 | { "wxTreeCtrl_ItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
7827 | { "wxTreeCtrl_IsVisible", (PyCFunction) _wrap_wxTreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
7828 | { "wxTreeCtrl_SetPyData", (PyCFunction) _wrap_wxTreeCtrl_SetPyData, METH_VARARGS | METH_KEYWORDS }, | |
7829 | { "wxTreeCtrl_GetPyData", (PyCFunction) _wrap_wxTreeCtrl_GetPyData, METH_VARARGS | METH_KEYWORDS }, | |
7830 | { "wxTreeCtrl_SetItemData", (PyCFunction) _wrap_wxTreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
7831 | { "wxTreeCtrl_GetItemData", (PyCFunction) _wrap_wxTreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
7832 | { "wxTreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
7833 | { "wxTreeCtrl_SetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
7834 | { "wxTreeCtrl_SetItemImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
7835 | { "wxTreeCtrl_SetItemText", (PyCFunction) _wrap_wxTreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
7836 | { "wxTreeCtrl_GetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
7837 | { "wxTreeCtrl_GetItemImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
7838 | { "wxTreeCtrl_GetItemText", (PyCFunction) _wrap_wxTreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
7839 | { "wxTreeCtrl_SetSpacing", (PyCFunction) _wrap_wxTreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, |
7840 | { "wxTreeCtrl_GetSpacing", (PyCFunction) _wrap_wxTreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
7841 | { "wxTreeCtrl_SetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, |
7842 | { "wxTreeCtrl_SetImageList", (PyCFunction) _wrap_wxTreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
7843 | { "wxTreeCtrl_GetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
7844 | { "wxTreeCtrl_GetImageList", (PyCFunction) _wrap_wxTreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
7845 | { "wxTreeCtrl_SetIndent", (PyCFunction) _wrap_wxTreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
7846 | { "wxTreeCtrl_GetIndent", (PyCFunction) _wrap_wxTreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
7847 | { "wxTreeCtrl_GetCount", (PyCFunction) _wrap_wxTreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 7848 | { "wxTreeCtrl__setSelf", (PyCFunction) _wrap_wxTreeCtrl__setSelf, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
7849 | { "new_wxTreeCtrl", (PyCFunction) _wrap_new_wxTreeCtrl, METH_VARARGS | METH_KEYWORDS }, |
7850 | { "wxTreeEvent_GetLabel", (PyCFunction) _wrap_wxTreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
7851 | { "wxTreeEvent_GetCode", (PyCFunction) _wrap_wxTreeEvent_GetCode, METH_VARARGS | METH_KEYWORDS }, | |
7852 | { "wxTreeEvent_GetPoint", (PyCFunction) _wrap_wxTreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
7853 | { "wxTreeEvent_GetOldItem", (PyCFunction) _wrap_wxTreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
7854 | { "wxTreeEvent_GetItem", (PyCFunction) _wrap_wxTreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
7855 | { "wxTreeItemData_SetId", (PyCFunction) _wrap_wxTreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, | |
7856 | { "wxTreeItemData_GetId", (PyCFunction) _wrap_wxTreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
7857 | { "wxTreeItemData_SetData", (PyCFunction) _wrap_wxTreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
7858 | { "wxTreeItemData_GetData", (PyCFunction) _wrap_wxTreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
7859 | { "new_wxTreeItemData", (PyCFunction) _wrap_new_wxTreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 7860 | { "wxTreeItemId___cmp__", (PyCFunction) _wrap_wxTreeItemId___cmp__, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
7861 | { "wxTreeItemId_IsOk", (PyCFunction) _wrap_wxTreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, |
7862 | { "delete_wxTreeItemId", (PyCFunction) _wrap_delete_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
7863 | { "new_wxTreeItemId", (PyCFunction) _wrap_new_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
dcd38683 | 7864 | { "wxListCtrl_SortItems", (PyCFunction) _wrap_wxListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
7865 | { "wxListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_wxListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, |
7866 | { "wxListCtrl_SetSingleStyle", (PyCFunction) _wrap_wxListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
7867 | { "wxListCtrl_SetItemText", (PyCFunction) _wrap_wxListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
7868 | { "wxListCtrl_SetItemState", (PyCFunction) _wrap_wxListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
7869 | { "wxListCtrl_SetItemPosition", (PyCFunction) _wrap_wxListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
7870 | { "wxListCtrl_SetItemImage", (PyCFunction) _wrap_wxListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
7871 | { "wxListCtrl_SetItemData", (PyCFunction) _wrap_wxListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
7872 | { "wxListCtrl_SetStringItem", (PyCFunction) _wrap_wxListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
7873 | { "wxListCtrl_SetItem", (PyCFunction) _wrap_wxListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
7874 | { "wxListCtrl_SetImageList", (PyCFunction) _wrap_wxListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
7875 | { "wxListCtrl_SetColumnWidth", (PyCFunction) _wrap_wxListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
7876 | { "wxListCtrl_SetColumn", (PyCFunction) _wrap_wxListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
7877 | { "wxListCtrl_SetBackgroundColour", (PyCFunction) _wrap_wxListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
7878 | { "wxListCtrl_ScrollList", (PyCFunction) _wrap_wxListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, | |
7879 | { "wxListCtrl_InsertImageStringItem", (PyCFunction) _wrap_wxListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, | |
7880 | { "wxListCtrl_InsertImageItem", (PyCFunction) _wrap_wxListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
7881 | { "wxListCtrl_InsertStringItem", (PyCFunction) _wrap_wxListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
7882 | { "wxListCtrl_InsertItem", (PyCFunction) _wrap_wxListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
7883 | { "wxListCtrl_InsertColumn", (PyCFunction) _wrap_wxListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
c368d904 | 7884 | { "wxListCtrl_InsertColumnInfo", (PyCFunction) _wrap_wxListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
7885 | { "wxListCtrl_HitTest", (PyCFunction) _wrap_wxListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
7886 | { "wxListCtrl_GetTopItem", (PyCFunction) _wrap_wxListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
7887 | { "wxListCtrl_SetTextColour", (PyCFunction) _wrap_wxListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
7888 | { "wxListCtrl_GetTextColour", (PyCFunction) _wrap_wxListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
7889 | { "wxListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_wxListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
7890 | { "wxListCtrl_GetNextItem", (PyCFunction) _wrap_wxListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
7891 | { "wxListCtrl_GetItemText", (PyCFunction) _wrap_wxListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
7892 | { "wxListCtrl_GetItemSpacing", (PyCFunction) _wrap_wxListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
7893 | { "wxListCtrl_GetItemCount", (PyCFunction) _wrap_wxListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
7894 | { "wxListCtrl_GetItemState", (PyCFunction) _wrap_wxListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
7895 | { "wxListCtrl_GetItemRect", (PyCFunction) _wrap_wxListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
7896 | { "wxListCtrl_GetItemPosition", (PyCFunction) _wrap_wxListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
7897 | { "wxListCtrl_GetItem", (PyCFunction) _wrap_wxListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
7898 | { "wxListCtrl_GetItemData", (PyCFunction) _wrap_wxListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
7899 | { "wxListCtrl_GetImageList", (PyCFunction) _wrap_wxListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
7900 | { "wxListCtrl_GetCountPerPage", (PyCFunction) _wrap_wxListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
7901 | { "wxListCtrl_GetColumnWidth", (PyCFunction) _wrap_wxListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
7902 | { "wxListCtrl_GetColumn", (PyCFunction) _wrap_wxListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
7903 | { "wxListCtrl_FindItemAtPos", (PyCFunction) _wrap_wxListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, | |
7904 | { "wxListCtrl_FindItemData", (PyCFunction) _wrap_wxListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
7905 | { "wxListCtrl_FindItem", (PyCFunction) _wrap_wxListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
7906 | { "wxListCtrl_EnsureVisible", (PyCFunction) _wrap_wxListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
7907 | { "wxListCtrl_GetEditControl", (PyCFunction) _wrap_wxListCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
7908 | { "wxListCtrl_EndEditLabel", (PyCFunction) _wrap_wxListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, | |
7909 | { "wxListCtrl_EditLabel", (PyCFunction) _wrap_wxListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
7910 | { "wxListCtrl_ClearAll", (PyCFunction) _wrap_wxListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, | |
7911 | { "wxListCtrl_DeleteAllColumns", (PyCFunction) _wrap_wxListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
7912 | { "wxListCtrl_DeleteColumn", (PyCFunction) _wrap_wxListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
7913 | { "wxListCtrl_DeleteAllItems", (PyCFunction) _wrap_wxListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
7914 | { "wxListCtrl_DeleteItem", (PyCFunction) _wrap_wxListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
7915 | { "wxListCtrl_Arrange", (PyCFunction) _wrap_wxListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
7916 | { "new_wxListCtrl", (PyCFunction) _wrap_new_wxListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
7917 | { "wxListEvent_GetItem", (PyCFunction) _wrap_wxListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, |
7918 | { "wxListEvent_GetMask", (PyCFunction) _wrap_wxListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
7919 | { "wxListEvent_GetData", (PyCFunction) _wrap_wxListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
7920 | { "wxListEvent_GetImage", (PyCFunction) _wrap_wxListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
7921 | { "wxListEvent_GetText", (PyCFunction) _wrap_wxListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
7922 | { "wxListEvent_GetLabel", (PyCFunction) _wrap_wxListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
7923 | { "wxListEvent_GetPoint", (PyCFunction) _wrap_wxListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
7924 | { "wxListEvent_Cancelled", (PyCFunction) _wrap_wxListEvent_Cancelled, METH_VARARGS | METH_KEYWORDS }, | |
7925 | { "wxListEvent_GetColumn", (PyCFunction) _wrap_wxListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
7926 | { "wxListEvent_GetOldItem", (PyCFunction) _wrap_wxListEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
7927 | { "wxListEvent_GetOldIndex", (PyCFunction) _wrap_wxListEvent_GetOldIndex, METH_VARARGS | METH_KEYWORDS }, | |
7928 | { "wxListEvent_GetIndex", (PyCFunction) _wrap_wxListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
7929 | { "wxListEvent_GetCode", (PyCFunction) _wrap_wxListEvent_GetCode, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
7930 | { "wxListEvent_m_item_get", (PyCFunction) _wrap_wxListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, |
7931 | { "wxListEvent_m_item_set", (PyCFunction) _wrap_wxListEvent_m_item_set, METH_VARARGS | METH_KEYWORDS }, | |
7932 | { "wxListEvent_m_pointDrag_get", (PyCFunction) _wrap_wxListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, | |
7933 | { "wxListEvent_m_pointDrag_set", (PyCFunction) _wrap_wxListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS }, | |
7934 | { "wxListEvent_m_cancelled_get", (PyCFunction) _wrap_wxListEvent_m_cancelled_get, METH_VARARGS | METH_KEYWORDS }, | |
7935 | { "wxListEvent_m_cancelled_set", (PyCFunction) _wrap_wxListEvent_m_cancelled_set, METH_VARARGS | METH_KEYWORDS }, | |
7936 | { "wxListEvent_m_col_get", (PyCFunction) _wrap_wxListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
7937 | { "wxListEvent_m_col_set", (PyCFunction) _wrap_wxListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
7938 | { "wxListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
7939 | { "wxListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
7940 | { "wxListEvent_m_itemIndex_get", (PyCFunction) _wrap_wxListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
7941 | { "wxListEvent_m_itemIndex_set", (PyCFunction) _wrap_wxListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
7942 | { "wxListEvent_m_code_get", (PyCFunction) _wrap_wxListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, | |
7943 | { "wxListEvent_m_code_set", (PyCFunction) _wrap_wxListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
7944 | { "wxListItem_m_width_get", (PyCFunction) _wrap_wxListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, |
7945 | { "wxListItem_m_width_set", (PyCFunction) _wrap_wxListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
7946 | { "wxListItem_m_format_get", (PyCFunction) _wrap_wxListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
7947 | { "wxListItem_m_format_set", (PyCFunction) _wrap_wxListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
7948 | { "wxListItem_m_data_get", (PyCFunction) _wrap_wxListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
7949 | { "wxListItem_m_data_set", (PyCFunction) _wrap_wxListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
7950 | { "wxListItem_m_image_get", (PyCFunction) _wrap_wxListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
7951 | { "wxListItem_m_image_set", (PyCFunction) _wrap_wxListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
7952 | { "wxListItem_m_text_get", (PyCFunction) _wrap_wxListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
7953 | { "wxListItem_m_text_set", (PyCFunction) _wrap_wxListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
7954 | { "wxListItem_m_stateMask_get", (PyCFunction) _wrap_wxListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
7955 | { "wxListItem_m_stateMask_set", (PyCFunction) _wrap_wxListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
7956 | { "wxListItem_m_state_get", (PyCFunction) _wrap_wxListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
7957 | { "wxListItem_m_state_set", (PyCFunction) _wrap_wxListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
7958 | { "wxListItem_m_col_get", (PyCFunction) _wrap_wxListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
7959 | { "wxListItem_m_col_set", (PyCFunction) _wrap_wxListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
7960 | { "wxListItem_m_itemId_get", (PyCFunction) _wrap_wxListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
7961 | { "wxListItem_m_itemId_set", (PyCFunction) _wrap_wxListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
7962 | { "wxListItem_m_mask_get", (PyCFunction) _wrap_wxListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
7963 | { "wxListItem_m_mask_set", (PyCFunction) _wrap_wxListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
7964 | { "wxListItem_GetFont", (PyCFunction) _wrap_wxListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, |
7965 | { "wxListItem_GetBackgroundColour", (PyCFunction) _wrap_wxListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
7966 | { "wxListItem_GetTextColour", (PyCFunction) _wrap_wxListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
7967 | { "wxListItem_HasAttributes", (PyCFunction) _wrap_wxListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
7968 | { "wxListItem_GetAttributes", (PyCFunction) _wrap_wxListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
7969 | { "wxListItem_GetAlign", (PyCFunction) _wrap_wxListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
7970 | { "wxListItem_GetWidth", (PyCFunction) _wrap_wxListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
7971 | { "wxListItem_GetData", (PyCFunction) _wrap_wxListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
7972 | { "wxListItem_GetImage", (PyCFunction) _wrap_wxListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
7973 | { "wxListItem_GetText", (PyCFunction) _wrap_wxListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
7974 | { "wxListItem_GetState", (PyCFunction) _wrap_wxListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
7975 | { "wxListItem_GetColumn", (PyCFunction) _wrap_wxListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
7976 | { "wxListItem_GetId", (PyCFunction) _wrap_wxListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
7977 | { "wxListItem_GetMask", (PyCFunction) _wrap_wxListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
7978 | { "wxListItem_SetFont", (PyCFunction) _wrap_wxListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
7979 | { "wxListItem_SetBackgroundColour", (PyCFunction) _wrap_wxListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
7980 | { "wxListItem_SetTextColour", (PyCFunction) _wrap_wxListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
7981 | { "wxListItem_SetAlign", (PyCFunction) _wrap_wxListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
7982 | { "wxListItem_SetWidth", (PyCFunction) _wrap_wxListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
7983 | { "wxListItem_SetData", (PyCFunction) _wrap_wxListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
7984 | { "wxListItem_SetImage", (PyCFunction) _wrap_wxListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
7985 | { "wxListItem_SetText", (PyCFunction) _wrap_wxListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
7986 | { "wxListItem_SetStateMask", (PyCFunction) _wrap_wxListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
7987 | { "wxListItem_SetState", (PyCFunction) _wrap_wxListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
7988 | { "wxListItem_SetColumn", (PyCFunction) _wrap_wxListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
7989 | { "wxListItem_SetId", (PyCFunction) _wrap_wxListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
7990 | { "wxListItem_SetMask", (PyCFunction) _wrap_wxListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
7991 | { "wxListItem_ClearAttributes", (PyCFunction) _wrap_wxListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
7992 | { "wxListItem_Clear", (PyCFunction) _wrap_wxListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
7993 | { "delete_wxListItem", (PyCFunction) _wrap_delete_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
7994 | { "new_wxListItem", (PyCFunction) _wrap_new_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
7995 | { "wxListItemAttr_GetFont", (PyCFunction) _wrap_wxListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
7996 | { "wxListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
7997 | { "wxListItemAttr_GetTextColour", (PyCFunction) _wrap_wxListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
7998 | { "wxListItemAttr_HasFont", (PyCFunction) _wrap_wxListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
7999 | { "wxListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8000 | { "wxListItemAttr_HasTextColour", (PyCFunction) _wrap_wxListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8001 | { "wxListItemAttr_SetFont", (PyCFunction) _wrap_wxListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
8002 | { "wxListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8003 | { "wxListItemAttr_SetTextColour", (PyCFunction) _wrap_wxListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8004 | { "new_wxListItemAttr", (PyCFunction) _wrap_new_wxListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
8ab979d7 RD |
8005 | { NULL, NULL } |
8006 | }; | |
1d99702e RD |
8007 | #ifdef __cplusplus |
8008 | } | |
8009 | #endif | |
8010 | /* | |
8011 | * This table is used by the pointer type-checker | |
8012 | */ | |
8013 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
8014 | { "_wxAcceleratorTable","_class_wxAcceleratorTable",0}, | |
8015 | { "_wxEvent","_class_wxTreeEvent",SwigwxTreeEventTowxEvent}, | |
8016 | { "_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent}, | |
8017 | { "_wxEvent","_class_wxListEvent",SwigwxListEventTowxEvent}, | |
8018 | { "_wxEvent","_wxListEvent",SwigwxListEventTowxEvent}, | |
8019 | { "_wxEvent","_class_wxEvent",0}, | |
8020 | { "_class_wxActivateEvent","_wxActivateEvent",0}, | |
8021 | { "_signed_long","_long",0}, | |
8022 | { "_wxMenuEvent","_class_wxMenuEvent",0}, | |
65dd82cb | 8023 | { "_wxPyBitmapDataObject","_class_wxPyBitmapDataObject",0}, |
b1462dfa | 8024 | { "_wxBitmapDataObject","_class_wxBitmapDataObject",0}, |
2f90df85 | 8025 | { "_class_wxPyCommandEvent","_wxPyCommandEvent",0}, |
b1462dfa | 8026 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
8027 | { "_wxPrintQuality","_int",0}, |
8028 | { "_wxPrintQuality","_signed_int",0}, | |
8029 | { "_wxPrintQuality","_unsigned_int",0}, | |
8030 | { "_wxPrintQuality","_wxWindowID",0}, | |
8031 | { "_wxPrintQuality","_uint",0}, | |
8032 | { "_wxPrintQuality","_EBool",0}, | |
8033 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 8034 | { "_wxPrintQuality","_time_t",0}, |
b1462dfa | 8035 | { "_class_wxCustomDataObject","_wxCustomDataObject",0}, |
f6bcfd97 | 8036 | { "_wxSpinCtrl","_class_wxSpinCtrl",0}, |
1d99702e | 8037 | { "_class_wxRegionIterator","_wxRegionIterator",0}, |
b1462dfa | 8038 | { "_class_wxPyTextDropTarget","_wxPyTextDropTarget",0}, |
1d99702e RD |
8039 | { "_class_wxMenuBar","_wxMenuBar",0}, |
8040 | { "_class_wxPyTreeItemData","_wxPyTreeItemData",0}, | |
f6bcfd97 BP |
8041 | { "_class_wxEvtHandler","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, |
8042 | { "_class_wxEvtHandler","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, | |
1d99702e RD |
8043 | { "_class_wxEvtHandler","_class_wxListCtrl",SwigwxListCtrlTowxEvtHandler}, |
8044 | { "_class_wxEvtHandler","_wxListCtrl",SwigwxListCtrlTowxEvtHandler}, | |
8045 | { "_class_wxEvtHandler","_wxEvtHandler",0}, | |
8046 | { "_wxPaintEvent","_class_wxPaintEvent",0}, | |
8047 | { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0}, | |
8048 | { "_wxCursor","_class_wxCursor",0}, | |
8049 | { "_wxNotifyEvent","_class_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, | |
8050 | { "_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, | |
c368d904 RD |
8051 | { "_wxNotifyEvent","_class_wxListEvent",SwigwxListEventTowxNotifyEvent}, |
8052 | { "_wxNotifyEvent","_wxListEvent",SwigwxListEventTowxNotifyEvent}, | |
1d99702e | 8053 | { "_wxNotifyEvent","_class_wxNotifyEvent",0}, |
f6bcfd97 | 8054 | { "_wxPyTreeCtrl","_class_wxPyTreeCtrl",0}, |
1d99702e RD |
8055 | { "_wxMask","_class_wxMask",0}, |
8056 | { "_wxPen","_class_wxPen",0}, | |
8057 | { "_wxUpdateUIEvent","_class_wxUpdateUIEvent",0}, | |
8058 | { "_byte","_unsigned_char",0}, | |
b1462dfa | 8059 | { "_wxDataObject","_class_wxDataObject",0}, |
1d99702e | 8060 | { "_wxStaticBox","_class_wxStaticBox",0}, |
65dd82cb RD |
8061 | { "_wxPyDataObjectSimple","_class_wxPyDataObjectSimple",0}, |
8062 | { "_wxPyDropSource","_class_wxPyDropSource",0}, | |
1d99702e RD |
8063 | { "_wxChoice","_class_wxChoice",0}, |
8064 | { "_wxSlider","_class_wxSlider",0}, | |
1d99702e RD |
8065 | { "_long","_unsigned_long",0}, |
8066 | { "_long","_signed_long",0}, | |
8067 | { "_wxImageList","_class_wxImageList",0}, | |
b1462dfa | 8068 | { "_wxDataObjectSimple","_class_wxDataObjectSimple",0}, |
1d99702e RD |
8069 | { "_wxDropFilesEvent","_class_wxDropFilesEvent",0}, |
8070 | { "_wxBitmapButton","_class_wxBitmapButton",0}, | |
8071 | { "_class_wxAcceleratorTable","_wxAcceleratorTable",0}, | |
b1462dfa | 8072 | { "_class_wxClipboard","_wxClipboard",0}, |
1d99702e RD |
8073 | { "_class_wxGauge","_wxGauge",0}, |
8074 | { "_wxDC","_class_wxDC",0}, | |
b1462dfa | 8075 | { "_class_wxBitmapDataObject","_wxBitmapDataObject",0}, |
1d99702e RD |
8076 | { "_wxListEvent","_class_wxListEvent",0}, |
8077 | { "_wxSpinEvent","_class_wxSpinEvent",0}, | |
b1462dfa | 8078 | { "_size_t","_wxCoord",0}, |
1d99702e | 8079 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 8080 | { "_size_t","_time_t",0}, |
1d99702e RD |
8081 | { "_size_t","_unsigned_int",0}, |
8082 | { "_size_t","_int",0}, | |
8083 | { "_size_t","_wxWindowID",0}, | |
8084 | { "_size_t","_uint",0}, | |
8085 | { "_class_wxRealPoint","_wxRealPoint",0}, | |
48115f4a | 8086 | { "_wxNavigationKeyEvent","_class_wxNavigationKeyEvent",0}, |
1d99702e | 8087 | { "_wxPrinterDC","_class_wxPrinterDC",0}, |
48115f4a | 8088 | { "_wxWindowCreateEvent","_class_wxWindowCreateEvent",0}, |
1d99702e RD |
8089 | { "_class_wxMenuItem","_wxMenuItem",0}, |
8090 | { "_class_wxPaintEvent","_wxPaintEvent",0}, | |
8091 | { "_wxSysColourChangedEvent","_class_wxSysColourChangedEvent",0}, | |
8092 | { "_wxPanel","_class_wxPanel",0}, | |
8093 | { "_wxInitDialogEvent","_class_wxInitDialogEvent",0}, | |
8094 | { "_wxCheckBox","_class_wxCheckBox",0}, | |
f6bcfd97 | 8095 | { "_class_wxPyTreeCtrl","_wxPyTreeCtrl",0}, |
1d99702e RD |
8096 | { "_wxPyEvent","_class_wxPyEvent",0}, |
8097 | { "_wxTextCtrl","_class_wxTextCtrl",0}, | |
8098 | { "_class_wxMask","_wxMask",0}, | |
b1462dfa | 8099 | { "_wxTextDataObject","_class_wxTextDataObject",0}, |
1d99702e RD |
8100 | { "_class_wxKeyEvent","_wxKeyEvent",0}, |
8101 | { "_wxColour","_class_wxColour",0}, | |
8102 | { "_class_wxDialog","_wxDialog",0}, | |
b1462dfa | 8103 | { "_class_wxFileDataObject","_wxFileDataObject",0}, |
1d99702e RD |
8104 | { "_wxIdleEvent","_class_wxIdleEvent",0}, |
8105 | { "_class_wxUpdateUIEvent","_wxUpdateUIEvent",0}, | |
b1462dfa | 8106 | { "_class_wxDataObject","_wxDataObject",0}, |
1d99702e RD |
8107 | { "_wxStaticLine","_class_wxStaticLine",0}, |
8108 | { "_wxBrush","_class_wxBrush",0}, | |
b1462dfa RD |
8109 | { "_wxDataFormat","_class_wxDataFormat",0}, |
8110 | { "_class_wxDataObjectSimple","_wxDataObjectSimple",0}, | |
1d99702e | 8111 | { "_wxShowEvent","_class_wxShowEvent",0}, |
b1462dfa | 8112 | { "_uint","_wxCoord",0}, |
1d99702e | 8113 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 8114 | { "_uint","_time_t",0}, |
1d99702e RD |
8115 | { "_uint","_size_t",0}, |
8116 | { "_uint","_unsigned_int",0}, | |
8117 | { "_uint","_int",0}, | |
8118 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 8119 | { "_wxChar","_char",0}, |
2f90df85 | 8120 | { "_wxPyValidator","_class_wxPyValidator",0}, |
1d99702e RD |
8121 | { "_class_wxEvent","_class_wxTreeEvent",SwigwxTreeEventTowxEvent}, |
8122 | { "_class_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent}, | |
8123 | { "_class_wxEvent","_class_wxListEvent",SwigwxListEventTowxEvent}, | |
8124 | { "_class_wxEvent","_wxListEvent",SwigwxListEventTowxEvent}, | |
8125 | { "_class_wxEvent","_wxEvent",0}, | |
8126 | { "_wxCheckListBox","_class_wxCheckListBox",0}, | |
8127 | { "_wxRect","_class_wxRect",0}, | |
8128 | { "_wxCommandEvent","_class_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, | |
8129 | { "_wxCommandEvent","_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, | |
8130 | { "_wxCommandEvent","_class_wxListEvent",SwigwxListEventTowxCommandEvent}, | |
8131 | { "_wxCommandEvent","_wxListEvent",SwigwxListEventTowxCommandEvent}, | |
8132 | { "_wxCommandEvent","_class_wxCommandEvent",0}, | |
8133 | { "_wxSizeEvent","_class_wxSizeEvent",0}, | |
8134 | { "_wxPoint","_class_wxPoint",0}, | |
8135 | { "_class_wxButton","_wxButton",0}, | |
8136 | { "_wxRadioBox","_class_wxRadioBox",0}, | |
f6bcfd97 BP |
8137 | { "_class_wxSpinCtrl","_wxSpinCtrl",0}, |
8138 | { "_char","_wxChar",0}, | |
1d99702e | 8139 | { "_wxBitmap","_class_wxBitmap",0}, |
1d99702e | 8140 | { "_wxWindowDC","_class_wxWindowDC",0}, |
f6bcfd97 | 8141 | { "_wxTimerEvent","_class_wxTimerEvent",0}, |
1d99702e RD |
8142 | { "_wxScrollBar","_class_wxScrollBar",0}, |
8143 | { "_wxSpinButton","_class_wxSpinButton",0}, | |
8144 | { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0}, | |
8145 | { "_class_wxNotifyEvent","_class_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, | |
8146 | { "_class_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, | |
c368d904 RD |
8147 | { "_class_wxNotifyEvent","_class_wxListEvent",SwigwxListEventTowxNotifyEvent}, |
8148 | { "_class_wxNotifyEvent","_wxListEvent",SwigwxListEventTowxNotifyEvent}, | |
1d99702e | 8149 | { "_class_wxNotifyEvent","_wxNotifyEvent",0}, |
2f90df85 | 8150 | { "_class_wxValidator","_wxValidator",0}, |
1d99702e RD |
8151 | { "_class_wxPyEvent","_wxPyEvent",0}, |
8152 | { "_class_wxIconizeEvent","_wxIconizeEvent",0}, | |
8153 | { "_class_wxStaticBitmap","_wxStaticBitmap",0}, | |
8154 | { "_wxListItem","_class_wxListItem",0}, | |
b1462dfa | 8155 | { "_wxDropTarget","_class_wxDropTarget",0}, |
1d99702e RD |
8156 | { "_class_wxStaticLine","_wxStaticLine",0}, |
8157 | { "_wxScrollEvent","_class_wxScrollEvent",0}, | |
b1462dfa | 8158 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
8159 | { "_EBool","_wxPrintQuality",0}, |
8160 | { "_EBool","_signed_int",0}, | |
8161 | { "_EBool","_int",0}, | |
8162 | { "_EBool","_wxWindowID",0}, | |
8163 | { "_class_wxRegion","_wxRegion",0}, | |
b1462dfa | 8164 | { "_class_wxDataFormat","_wxDataFormat",0}, |
1d99702e | 8165 | { "_class_wxDropFilesEvent","_wxDropFilesEvent",0}, |
48115f4a | 8166 | { "_wxWindowDestroyEvent","_class_wxWindowDestroyEvent",0}, |
1d99702e RD |
8167 | { "_wxStaticText","_class_wxStaticText",0}, |
8168 | { "_wxFont","_class_wxFont",0}, | |
b1462dfa | 8169 | { "_class_wxPyDropTarget","_wxPyDropTarget",0}, |
1d99702e | 8170 | { "_wxCloseEvent","_class_wxCloseEvent",0}, |
1d99702e RD |
8171 | { "_unsigned_long","_long",0}, |
8172 | { "_class_wxRect","_wxRect",0}, | |
8173 | { "_class_wxDC","_wxDC",0}, | |
d426c97e | 8174 | { "_wxScrollWinEvent","_class_wxScrollWinEvent",0}, |
48115f4a RD |
8175 | { "_wxQueryNewPaletteEvent","_class_wxQueryNewPaletteEvent",0}, |
8176 | { "_class_wxWindowCreateEvent","_wxWindowCreateEvent",0}, | |
1d99702e | 8177 | { "_class_wxTreeEvent","_wxTreeEvent",0}, |
1d99702e RD |
8178 | { "_wxFocusEvent","_class_wxFocusEvent",0}, |
8179 | { "_wxMaximizeEvent","_class_wxMaximizeEvent",0}, | |
f6bcfd97 | 8180 | { "_class_wxTimerEvent","_wxTimerEvent",0}, |
1d99702e RD |
8181 | { "_class_wxSpinButton","_wxSpinButton",0}, |
8182 | { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0}, | |
8183 | { "_class_wxPanel","_wxPanel",0}, | |
8184 | { "_class_wxCheckBox","_wxCheckBox",0}, | |
8185 | { "_wxComboBox","_class_wxComboBox",0}, | |
8186 | { "_wxRadioButton","_class_wxRadioButton",0}, | |
b1462dfa | 8187 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
8188 | { "_signed_int","_wxPrintQuality",0}, |
8189 | { "_signed_int","_EBool",0}, | |
8190 | { "_signed_int","_wxWindowID",0}, | |
8191 | { "_signed_int","_int",0}, | |
8192 | { "_class_wxTextCtrl","_wxTextCtrl",0}, | |
f6bcfd97 | 8193 | { "_class_wxListItemAttr","_wxListItemAttr",0}, |
1d99702e RD |
8194 | { "_wxLayoutConstraints","_class_wxLayoutConstraints",0}, |
8195 | { "_wxMetaFileDC","_class_wxMetaFileDC",0}, | |
b1462dfa | 8196 | { "_class_wxTextDataObject","_wxTextDataObject",0}, |
1d99702e RD |
8197 | { "_wxMenu","_class_wxMenu",0}, |
8198 | { "_class_wxMoveEvent","_wxMoveEvent",0}, | |
8199 | { "_wxListBox","_class_wxListBox",0}, | |
8200 | { "_wxScreenDC","_class_wxScreenDC",0}, | |
8201 | { "_WXTYPE","_short",0}, | |
8202 | { "_WXTYPE","_signed_short",0}, | |
8203 | { "_WXTYPE","_unsigned_short",0}, | |
b1462dfa | 8204 | { "_class_wxDropTarget","_wxDropTarget",0}, |
1d99702e RD |
8205 | { "_class_wxBrush","_wxBrush",0}, |
8206 | { "_unsigned_short","_WXTYPE",0}, | |
8207 | { "_unsigned_short","_short",0}, | |
f6bcfd97 BP |
8208 | { "_class_wxWindow","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, |
8209 | { "_class_wxWindow","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, | |
1d99702e RD |
8210 | { "_class_wxWindow","_class_wxListCtrl",SwigwxListCtrlTowxWindow}, |
8211 | { "_class_wxWindow","_wxListCtrl",SwigwxListCtrlTowxWindow}, | |
8212 | { "_class_wxWindow","_wxWindow",0}, | |
8213 | { "_class_wxStaticText","_wxStaticText",0}, | |
8214 | { "_class_wxFont","_wxFont",0}, | |
b1462dfa | 8215 | { "_wxClipboard","_class_wxClipboard",0}, |
2f90df85 | 8216 | { "_class_wxPyValidator","_wxPyValidator",0}, |
1d99702e | 8217 | { "_class_wxCloseEvent","_wxCloseEvent",0}, |
2abc0a0f | 8218 | { "_wxBusyInfo","_class_wxBusyInfo",0}, |
1d99702e | 8219 | { "_class_wxMenuEvent","_wxMenuEvent",0}, |
48115f4a | 8220 | { "_wxPaletteChangedEvent","_class_wxPaletteChangedEvent",0}, |
65dd82cb | 8221 | { "_class_wxPyBitmapDataObject","_wxPyBitmapDataObject",0}, |
1d99702e RD |
8222 | { "_wxClientDC","_class_wxClientDC",0}, |
8223 | { "_wxMouseEvent","_class_wxMouseEvent",0}, | |
8224 | { "_wxListCtrl","_class_wxListCtrl",0}, | |
8225 | { "_class_wxPoint","_wxPoint",0}, | |
8226 | { "_wxRealPoint","_class_wxRealPoint",0}, | |
8227 | { "_class_wxRadioBox","_wxRadioBox",0}, | |
8228 | { "_signed_short","_WXTYPE",0}, | |
8229 | { "_signed_short","_short",0}, | |
8230 | { "_wxMemoryDC","_class_wxMemoryDC",0}, | |
65dd82cb | 8231 | { "_wxPyTextDataObject","_class_wxPyTextDataObject",0}, |
1d99702e RD |
8232 | { "_wxPaintDC","_class_wxPaintDC",0}, |
8233 | { "_class_wxWindowDC","_wxWindowDC",0}, | |
8234 | { "_class_wxFocusEvent","_wxFocusEvent",0}, | |
8235 | { "_class_wxMaximizeEvent","_wxMaximizeEvent",0}, | |
8236 | { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0}, | |
8237 | { "_class_wxCursor","_wxCursor",0}, | |
b1462dfa | 8238 | { "_wxPyFileDropTarget","_class_wxPyFileDropTarget",0}, |
1d99702e RD |
8239 | { "_wxScrolledWindow","_class_wxScrolledWindow",0}, |
8240 | { "_wxTreeItemId","_class_wxTreeItemId",0}, | |
8241 | { "_unsigned_char","_byte",0}, | |
8242 | { "_class_wxMetaFileDC","_wxMetaFileDC",0}, | |
8243 | { "_class_wxMenu","_wxMenu",0}, | |
f6bcfd97 BP |
8244 | { "_wxControl","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, |
8245 | { "_wxControl","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, | |
1d99702e RD |
8246 | { "_wxControl","_class_wxListCtrl",SwigwxListCtrlTowxControl}, |
8247 | { "_wxControl","_wxListCtrl",SwigwxListCtrlTowxControl}, | |
8248 | { "_wxControl","_class_wxControl",0}, | |
8249 | { "_class_wxListBox","_wxListBox",0}, | |
b1462dfa | 8250 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 8251 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 8252 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
8253 | { "_unsigned_int","_size_t",0}, |
8254 | { "_unsigned_int","_uint",0}, | |
8255 | { "_unsigned_int","_wxWindowID",0}, | |
8256 | { "_unsigned_int","_int",0}, | |
8257 | { "_wxIcon","_class_wxIcon",0}, | |
8258 | { "_wxDialog","_class_wxDialog",0}, | |
8259 | { "_class_wxListItem","_wxListItem",0}, | |
8260 | { "_class_wxPen","_wxPen",0}, | |
8261 | { "_short","_WXTYPE",0}, | |
8262 | { "_short","_unsigned_short",0}, | |
8263 | { "_short","_signed_short",0}, | |
8264 | { "_class_wxStaticBox","_wxStaticBox",0}, | |
65dd82cb RD |
8265 | { "_class_wxPyDataObjectSimple","_wxPyDataObjectSimple",0}, |
8266 | { "_class_wxPyDropSource","_wxPyDropSource",0}, | |
1d99702e RD |
8267 | { "_class_wxScrollEvent","_wxScrollEvent",0}, |
8268 | { "_wxJoystickEvent","_class_wxJoystickEvent",0}, | |
8269 | { "_class_wxChoice","_wxChoice",0}, | |
8270 | { "_class_wxSlider","_wxSlider",0}, | |
8271 | { "_class_wxImageList","_wxImageList",0}, | |
8272 | { "_class_wxBitmapButton","_wxBitmapButton",0}, | |
48115f4a | 8273 | { "_class_wxPaletteChangedEvent","_wxPaletteChangedEvent",0}, |
b1462dfa | 8274 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 8275 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 8276 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
8277 | { "_wxWindowID","_size_t",0}, |
8278 | { "_wxWindowID","_EBool",0}, | |
8279 | { "_wxWindowID","_uint",0}, | |
8280 | { "_wxWindowID","_int",0}, | |
8281 | { "_wxWindowID","_signed_int",0}, | |
8282 | { "_wxWindowID","_unsigned_int",0}, | |
d426c97e | 8283 | { "_class_wxScrollWinEvent","_wxScrollWinEvent",0}, |
b1462dfa | 8284 | { "_int","_wxCoord",0}, |
1d99702e | 8285 | { "_int","_wxPrintQuality",0}, |
c368d904 | 8286 | { "_int","_time_t",0}, |
1d99702e RD |
8287 | { "_int","_size_t",0}, |
8288 | { "_int","_EBool",0}, | |
8289 | { "_int","_uint",0}, | |
8290 | { "_int","_wxWindowID",0}, | |
8291 | { "_int","_unsigned_int",0}, | |
8292 | { "_int","_signed_int",0}, | |
8293 | { "_class_wxMouseEvent","_wxMouseEvent",0}, | |
2f90df85 | 8294 | { "_wxPyCommandEvent","_class_wxPyCommandEvent",0}, |
1d99702e RD |
8295 | { "_class_wxListEvent","_wxListEvent",0}, |
8296 | { "_class_wxSpinEvent","_wxSpinEvent",0}, | |
48115f4a | 8297 | { "_class_wxQueryNewPaletteEvent","_wxQueryNewPaletteEvent",0}, |
c368d904 RD |
8298 | { "_time_t","_wxCoord",0}, |
8299 | { "_time_t","_wxPrintQuality",0}, | |
8300 | { "_time_t","_unsigned_int",0}, | |
8301 | { "_time_t","_int",0}, | |
8302 | { "_time_t","_wxWindowID",0}, | |
8303 | { "_time_t","_uint",0}, | |
8304 | { "_time_t","_size_t",0}, | |
48115f4a | 8305 | { "_class_wxNavigationKeyEvent","_wxNavigationKeyEvent",0}, |
1d99702e RD |
8306 | { "_wxButton","_class_wxButton",0}, |
8307 | { "_wxSize","_class_wxSize",0}, | |
8308 | { "_wxRegionIterator","_class_wxRegionIterator",0}, | |
8309 | { "_class_wxPrinterDC","_wxPrinterDC",0}, | |
65dd82cb | 8310 | { "_class_wxPyTextDataObject","_wxPyTextDataObject",0}, |
1d99702e RD |
8311 | { "_wxPyTreeItemData","_class_wxPyTreeItemData",0}, |
8312 | { "_class_wxPaintDC","_wxPaintDC",0}, | |
8313 | { "_class_wxSysColourChangedEvent","_wxSysColourChangedEvent",0}, | |
b1462dfa | 8314 | { "_class_wxPyFileDropTarget","_wxPyFileDropTarget",0}, |
1d99702e RD |
8315 | { "_class_wxInitDialogEvent","_wxInitDialogEvent",0}, |
8316 | { "_class_wxComboBox","_wxComboBox",0}, | |
8317 | { "_class_wxRadioButton","_wxRadioButton",0}, | |
2f90df85 | 8318 | { "_wxValidator","_class_wxValidator",0}, |
1d99702e | 8319 | { "_class_wxTreeItemId","_wxTreeItemId",0}, |
1d99702e RD |
8320 | { "_class_wxLayoutConstraints","_wxLayoutConstraints",0}, |
8321 | { "_wxIconizeEvent","_class_wxIconizeEvent",0}, | |
f6bcfd97 BP |
8322 | { "_class_wxControl","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, |
8323 | { "_class_wxControl","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, | |
1d99702e RD |
8324 | { "_class_wxControl","_class_wxListCtrl",SwigwxListCtrlTowxControl}, |
8325 | { "_class_wxControl","_wxListCtrl",SwigwxListCtrlTowxControl}, | |
8326 | { "_class_wxControl","_wxControl",0}, | |
8327 | { "_wxStaticBitmap","_class_wxStaticBitmap",0}, | |
8328 | { "_class_wxIcon","_wxIcon",0}, | |
8329 | { "_class_wxColour","_wxColour",0}, | |
8330 | { "_class_wxScreenDC","_wxScreenDC",0}, | |
8331 | { "_wxPalette","_class_wxPalette",0}, | |
8332 | { "_class_wxIdleEvent","_wxIdleEvent",0}, | |
b1462dfa RD |
8333 | { "_wxCoord","_int",0}, |
8334 | { "_wxCoord","_signed_int",0}, | |
8335 | { "_wxCoord","_unsigned_int",0}, | |
8336 | { "_wxCoord","_wxWindowID",0}, | |
8337 | { "_wxCoord","_uint",0}, | |
8338 | { "_wxCoord","_EBool",0}, | |
8339 | { "_wxCoord","_size_t",0}, | |
c368d904 | 8340 | { "_wxCoord","_time_t",0}, |
b1462dfa | 8341 | { "_wxCoord","_wxPrintQuality",0}, |
1d99702e | 8342 | { "_wxEraseEvent","_class_wxEraseEvent",0}, |
b1462dfa | 8343 | { "_wxDataObjectComposite","_class_wxDataObjectComposite",0}, |
1d99702e RD |
8344 | { "_class_wxJoystickEvent","_wxJoystickEvent",0}, |
8345 | { "_wxRegion","_class_wxRegion",0}, | |
8346 | { "_class_wxShowEvent","_wxShowEvent",0}, | |
b1462dfa | 8347 | { "_wxPyDropTarget","_class_wxPyDropTarget",0}, |
1d99702e RD |
8348 | { "_wxActivateEvent","_class_wxActivateEvent",0}, |
8349 | { "_wxGauge","_class_wxGauge",0}, | |
8350 | { "_class_wxCheckListBox","_wxCheckListBox",0}, | |
2abc0a0f | 8351 | { "_class_wxBusyInfo","_wxBusyInfo",0}, |
1d99702e RD |
8352 | { "_class_wxCommandEvent","_class_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, |
8353 | { "_class_wxCommandEvent","_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, | |
8354 | { "_class_wxCommandEvent","_class_wxListEvent",SwigwxListEventTowxCommandEvent}, | |
8355 | { "_class_wxCommandEvent","_wxListEvent",SwigwxListEventTowxCommandEvent}, | |
8356 | { "_class_wxCommandEvent","_wxCommandEvent",0}, | |
8357 | { "_class_wxClientDC","_wxClientDC",0}, | |
8358 | { "_class_wxSizeEvent","_wxSizeEvent",0}, | |
8359 | { "_class_wxListCtrl","_wxListCtrl",0}, | |
b1462dfa | 8360 | { "_wxCustomDataObject","_class_wxCustomDataObject",0}, |
1d99702e RD |
8361 | { "_class_wxSize","_wxSize",0}, |
8362 | { "_class_wxBitmap","_wxBitmap",0}, | |
8363 | { "_class_wxMemoryDC","_wxMemoryDC",0}, | |
b1462dfa | 8364 | { "_wxPyTextDropTarget","_class_wxPyTextDropTarget",0}, |
1d99702e RD |
8365 | { "_wxMenuBar","_class_wxMenuBar",0}, |
8366 | { "_wxTreeEvent","_class_wxTreeEvent",0}, | |
f6bcfd97 BP |
8367 | { "_wxEvtHandler","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, |
8368 | { "_wxEvtHandler","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, | |
1d99702e RD |
8369 | { "_wxEvtHandler","_class_wxListCtrl",SwigwxListCtrlTowxEvtHandler}, |
8370 | { "_wxEvtHandler","_wxListCtrl",SwigwxListCtrlTowxEvtHandler}, | |
8371 | { "_wxEvtHandler","_class_wxEvtHandler",0}, | |
8372 | { "_wxMenuItem","_class_wxMenuItem",0}, | |
8373 | { "_class_wxScrollBar","_wxScrollBar",0}, | |
1d99702e | 8374 | { "_class_wxScrolledWindow","_wxScrolledWindow",0}, |
f6bcfd97 | 8375 | { "_wxListItemAttr","_class_wxListItemAttr",0}, |
1d99702e RD |
8376 | { "_wxKeyEvent","_class_wxKeyEvent",0}, |
8377 | { "_wxMoveEvent","_class_wxMoveEvent",0}, | |
8378 | { "_class_wxPalette","_wxPalette",0}, | |
b1462dfa | 8379 | { "_wxFileDataObject","_class_wxFileDataObject",0}, |
1d99702e | 8380 | { "_class_wxEraseEvent","_wxEraseEvent",0}, |
b1462dfa | 8381 | { "_class_wxDataObjectComposite","_wxDataObjectComposite",0}, |
f6bcfd97 BP |
8382 | { "_wxWindow","_class_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, |
8383 | { "_wxWindow","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, | |
1d99702e RD |
8384 | { "_wxWindow","_class_wxListCtrl",SwigwxListCtrlTowxWindow}, |
8385 | { "_wxWindow","_wxListCtrl",SwigwxListCtrlTowxWindow}, | |
8386 | { "_wxWindow","_class_wxWindow",0}, | |
48115f4a | 8387 | { "_class_wxWindowDestroyEvent","_wxWindowDestroyEvent",0}, |
1d99702e RD |
8388 | {0,0,0}}; |
8389 | ||
8ab979d7 RD |
8390 | static PyObject *SWIG_globals; |
8391 | #ifdef __cplusplus | |
8392 | extern "C" | |
8393 | #endif | |
1d99702e | 8394 | SWIGEXPORT(void) initcontrols2c() { |
8ab979d7 RD |
8395 | PyObject *m, *d; |
8396 | SWIG_globals = SWIG_newvarlink(); | |
8397 | m = Py_InitModule("controls2c", controls2cMethods); | |
8398 | d = PyModule_GetDict(m); | |
af309447 RD |
8399 | PyDict_SetItemString(d,"wxLIST_MASK_TEXT", PyInt_FromLong((long) wxLIST_MASK_TEXT)); |
8400 | PyDict_SetItemString(d,"wxLIST_MASK_IMAGE", PyInt_FromLong((long) wxLIST_MASK_IMAGE)); | |
8401 | PyDict_SetItemString(d,"wxLIST_MASK_DATA", PyInt_FromLong((long) wxLIST_MASK_DATA)); | |
8402 | PyDict_SetItemString(d,"wxLIST_MASK_WIDTH", PyInt_FromLong((long) wxLIST_MASK_WIDTH)); | |
8403 | PyDict_SetItemString(d,"wxLIST_MASK_FORMAT", PyInt_FromLong((long) wxLIST_MASK_FORMAT)); | |
bb0054cd | 8404 | PyDict_SetItemString(d,"wxLIST_MASK_STATE", PyInt_FromLong((long) wxLIST_MASK_STATE)); |
af309447 RD |
8405 | PyDict_SetItemString(d,"wxLIST_STATE_DONTCARE", PyInt_FromLong((long) wxLIST_STATE_DONTCARE)); |
8406 | PyDict_SetItemString(d,"wxLIST_STATE_DROPHILITED", PyInt_FromLong((long) wxLIST_STATE_DROPHILITED)); | |
8407 | PyDict_SetItemString(d,"wxLIST_STATE_FOCUSED", PyInt_FromLong((long) wxLIST_STATE_FOCUSED)); | |
8408 | PyDict_SetItemString(d,"wxLIST_STATE_SELECTED", PyInt_FromLong((long) wxLIST_STATE_SELECTED)); | |
8409 | PyDict_SetItemString(d,"wxLIST_STATE_CUT", PyInt_FromLong((long) wxLIST_STATE_CUT)); | |
8410 | PyDict_SetItemString(d,"wxLIST_HITTEST_ABOVE", PyInt_FromLong((long) wxLIST_HITTEST_ABOVE)); | |
8411 | PyDict_SetItemString(d,"wxLIST_HITTEST_BELOW", PyInt_FromLong((long) wxLIST_HITTEST_BELOW)); | |
8412 | PyDict_SetItemString(d,"wxLIST_HITTEST_NOWHERE", PyInt_FromLong((long) wxLIST_HITTEST_NOWHERE)); | |
8413 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMICON)); | |
8414 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMLABEL)); | |
8415 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMRIGHT)); | |
8416 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMSTATEICON)); | |
8417 | PyDict_SetItemString(d,"wxLIST_HITTEST_TOLEFT", PyInt_FromLong((long) wxLIST_HITTEST_TOLEFT)); | |
8418 | PyDict_SetItemString(d,"wxLIST_HITTEST_TORIGHT", PyInt_FromLong((long) wxLIST_HITTEST_TORIGHT)); | |
8419 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEM", PyInt_FromLong((long) wxLIST_HITTEST_ONITEM)); | |
8420 | PyDict_SetItemString(d,"wxLIST_NEXT_ABOVE", PyInt_FromLong((long) wxLIST_NEXT_ABOVE)); | |
8421 | PyDict_SetItemString(d,"wxLIST_NEXT_ALL", PyInt_FromLong((long) wxLIST_NEXT_ALL)); | |
8422 | PyDict_SetItemString(d,"wxLIST_NEXT_BELOW", PyInt_FromLong((long) wxLIST_NEXT_BELOW)); | |
8423 | PyDict_SetItemString(d,"wxLIST_NEXT_LEFT", PyInt_FromLong((long) wxLIST_NEXT_LEFT)); | |
8424 | PyDict_SetItemString(d,"wxLIST_NEXT_RIGHT", PyInt_FromLong((long) wxLIST_NEXT_RIGHT)); | |
8425 | PyDict_SetItemString(d,"wxLIST_ALIGN_DEFAULT", PyInt_FromLong((long) wxLIST_ALIGN_DEFAULT)); | |
8426 | PyDict_SetItemString(d,"wxLIST_ALIGN_LEFT", PyInt_FromLong((long) wxLIST_ALIGN_LEFT)); | |
8427 | PyDict_SetItemString(d,"wxLIST_ALIGN_TOP", PyInt_FromLong((long) wxLIST_ALIGN_TOP)); | |
8428 | PyDict_SetItemString(d,"wxLIST_ALIGN_SNAP_TO_GRID", PyInt_FromLong((long) wxLIST_ALIGN_SNAP_TO_GRID)); | |
af309447 RD |
8429 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE", PyInt_FromLong((long) wxLIST_AUTOSIZE)); |
8430 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE_USEHEADER", PyInt_FromLong((long) wxLIST_AUTOSIZE_USEHEADER)); | |
8431 | PyDict_SetItemString(d,"wxLIST_RECT_BOUNDS", PyInt_FromLong((long) wxLIST_RECT_BOUNDS)); | |
8432 | PyDict_SetItemString(d,"wxLIST_RECT_ICON", PyInt_FromLong((long) wxLIST_RECT_ICON)); | |
8433 | PyDict_SetItemString(d,"wxLIST_RECT_LABEL", PyInt_FromLong((long) wxLIST_RECT_LABEL)); | |
8434 | PyDict_SetItemString(d,"wxLIST_FIND_UP", PyInt_FromLong((long) wxLIST_FIND_UP)); | |
8435 | PyDict_SetItemString(d,"wxLIST_FIND_DOWN", PyInt_FromLong((long) wxLIST_FIND_DOWN)); | |
8436 | PyDict_SetItemString(d,"wxLIST_FIND_LEFT", PyInt_FromLong((long) wxLIST_FIND_LEFT)); | |
8437 | PyDict_SetItemString(d,"wxLIST_FIND_RIGHT", PyInt_FromLong((long) wxLIST_FIND_RIGHT)); | |
f6bcfd97 BP |
8438 | PyDict_SetItemString(d,"wxLIST_FORMAT_LEFT", PyInt_FromLong((long) wxLIST_FORMAT_LEFT)); |
8439 | PyDict_SetItemString(d,"wxLIST_FORMAT_RIGHT", PyInt_FromLong((long) wxLIST_FORMAT_RIGHT)); | |
8440 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTRE", PyInt_FromLong((long) wxLIST_FORMAT_CENTRE)); | |
8441 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTER", PyInt_FromLong((long) wxLIST_FORMAT_CENTER)); | |
694759cf RD |
8442 | PyDict_SetItemString(d,"wxTreeItemIcon_Normal", PyInt_FromLong((long) wxTreeItemIcon_Normal)); |
8443 | PyDict_SetItemString(d,"wxTreeItemIcon_Selected", PyInt_FromLong((long) wxTreeItemIcon_Selected)); | |
8444 | PyDict_SetItemString(d,"wxTreeItemIcon_Expanded", PyInt_FromLong((long) wxTreeItemIcon_Expanded)); | |
8445 | PyDict_SetItemString(d,"wxTreeItemIcon_SelectedExpanded", PyInt_FromLong((long) wxTreeItemIcon_SelectedExpanded)); | |
8446 | PyDict_SetItemString(d,"wxTreeItemIcon_Max", PyInt_FromLong((long) wxTreeItemIcon_Max)); | |
164b735b RD |
8447 | PyDict_SetItemString(d,"wxTREE_HITTEST_ABOVE", PyInt_FromLong((long) wxTREE_HITTEST_ABOVE)); |
8448 | PyDict_SetItemString(d,"wxTREE_HITTEST_BELOW", PyInt_FromLong((long) wxTREE_HITTEST_BELOW)); | |
8449 | PyDict_SetItemString(d,"wxTREE_HITTEST_NOWHERE", PyInt_FromLong((long) wxTREE_HITTEST_NOWHERE)); | |
8450 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMBUTTON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMBUTTON)); | |
8451 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMICON)); | |
8452 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMINDENT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMINDENT)); | |
8453 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLABEL)); | |
8454 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMRIGHT)); | |
8455 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMSTATEICON)); | |
8456 | PyDict_SetItemString(d,"wxTREE_HITTEST_TOLEFT", PyInt_FromLong((long) wxTREE_HITTEST_TOLEFT)); | |
8457 | PyDict_SetItemString(d,"wxTREE_HITTEST_TORIGHT", PyInt_FromLong((long) wxTREE_HITTEST_TORIGHT)); | |
8458 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMUPPERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMUPPERPART)); | |
8459 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLOWERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLOWERPART)); | |
8460 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEM", PyInt_FromLong((long) wxTREE_HITTEST_ONITEM)); | |
1d99702e RD |
8461 | { |
8462 | int i; | |
8463 | for (i = 0; _swig_mapping[i].n1; i++) | |
8464 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
8465 | } | |
8ab979d7 | 8466 | } |