]>
Commit | Line | Data |
---|---|---|
8ab979d7 | 1 | /* |
c368d904 | 2 | * FILE : src/msw/controls2.cpp |
8ab979d7 RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
185d7c3e | 6 | * Version 1.1 (Build 883) |
8ab979d7 RD |
7 | * |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
1d99702e | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
8ab979d7 RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
c368d904 | 30 | # define SWIGEXPORT(a) a _export |
8ab979d7 | 31 | # else |
c368d904 | 32 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
c368d904 | 36 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
37 | #endif |
38 | ||
c368d904 RD |
39 | #include "Python.h" |
40 | ||
8ab979d7 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
185d7c3e | 44 | |
8ab979d7 RD |
45 | extern void SWIG_MakePtr(char *, void *, char *); |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
1d99702e | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
8ab979d7 RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
8ab979d7 RD |
54 | #define SWIG_init initcontrols2c |
55 | ||
56 | #define SWIG_name "controls2c" | |
57 | ||
58 | #include "helpers.h" | |
2f90df85 RD |
59 | #ifdef __WXMSW__ |
60 | #include <windows.h> | |
61 | #endif | |
8ab979d7 RD |
62 | #include <wx/listctrl.h> |
63 | #include <wx/treectrl.h> | |
9416aa89 | 64 | #include <wx/imaglist.h> |
8ab979d7 | 65 | |
8ab979d7 RD |
66 | |
67 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
68 | PyObject* o2; | |
69 | PyObject* o3; | |
70 | ||
e0672e2f | 71 | if (!target) { |
8ab979d7 | 72 | target = o; |
e0672e2f | 73 | } else if (target == Py_None) { |
8ab979d7 RD |
74 | Py_DECREF(Py_None); |
75 | target = o; | |
e0672e2f | 76 | } else { |
8ab979d7 RD |
77 | if (!PyTuple_Check(target)) { |
78 | o2 = target; | |
79 | target = PyTuple_New(1); | |
80 | PyTuple_SetItem(target, 0, o2); | |
81 | } | |
e0672e2f RD |
82 | o3 = PyTuple_New(1); |
83 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
84 | |
85 | o2 = target; | |
e0672e2f RD |
86 | target = PySequence_Concat(o2, o3); |
87 | Py_DECREF(o2); | |
8ab979d7 RD |
88 | Py_DECREF(o3); |
89 | } | |
90 | return target; | |
91 | } | |
92 | ||
794c5cb1 RD |
93 | #if PYTHON_API_VERSION >= 1009 |
94 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
95 | #else | |
96 | static char* wxStringErrorMsg = "string type is required for parameter"; | |
97 | #endif | |
8ab979d7 | 98 | |
c7e7022c RD |
99 | class wxPyListCtrl : public wxListCtrl { |
100 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl); | |
101 | public: | |
102 | wxPyListCtrl(wxWindow* parent, wxWindowID id, | |
103 | const wxPoint& pos, | |
104 | const wxSize& size, | |
105 | long style, | |
106 | const wxValidator& validator, | |
107 | char* name) : | |
108 | wxListCtrl(parent, id, pos, size, style, validator, name) {} | |
109 | ||
110 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); | |
111 | DEC_PYCALLBACK_INT_LONG(OnGetItemImage); | |
112 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); | |
113 | ||
114 | PYPRIVATE; | |
115 | }; | |
116 | ||
117 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
118 | ||
119 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
120 | IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage); | |
121 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); | |
122 | ||
f6bcfd97 | 123 | int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { |
dcd38683 RD |
124 | int retval = 0; |
125 | PyObject* func = (PyObject*)funcPtr; | |
126 | bool doSave = wxPyRestoreThread(); | |
127 | ||
128 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
129 | PyObject* result = PyEval_CallObject(func, args); | |
130 | Py_DECREF(args); | |
131 | if (result) { | |
132 | retval = PyInt_AsLong(result); | |
133 | Py_DECREF(result); | |
134 | } | |
135 | ||
136 | wxPySaveThread(doSave); | |
137 | return retval; | |
138 | } | |
139 | ||
140 | ||
cf694132 RD |
141 | class wxPyTreeItemData : public wxTreeItemData { |
142 | public: | |
143 | wxPyTreeItemData(PyObject* obj = NULL) { | |
c368d904 | 144 | if (obj == NULL) |
cf694132 | 145 | obj = Py_None; |
c368d904 RD |
146 | Py_INCREF(obj); |
147 | m_obj = obj; | |
cf694132 RD |
148 | } |
149 | ||
150 | ~wxPyTreeItemData() { | |
1afc06c2 | 151 | bool doSave = wxPyRestoreThread(); |
c368d904 | 152 | Py_DECREF(m_obj); |
1afc06c2 | 153 | wxPySaveThread(doSave); |
cf694132 RD |
154 | } |
155 | ||
156 | PyObject* GetData() { | |
157 | Py_INCREF(m_obj); | |
158 | return m_obj; | |
159 | } | |
160 | ||
161 | void SetData(PyObject* obj) { | |
c368d904 | 162 | bool doSave = wxPyRestoreThread(); |
cf694132 | 163 | Py_DECREF(m_obj); |
c368d904 | 164 | wxPySaveThread(doSave); |
cf694132 RD |
165 | m_obj = obj; |
166 | Py_INCREF(obj); | |
167 | } | |
168 | ||
169 | PyObject* m_obj; | |
170 | }; | |
f6bcfd97 BP |
171 | |
172 | class wxPyTreeCtrl : public wxTreeCtrl { | |
3b36695d | 173 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); |
f6bcfd97 BP |
174 | public: |
175 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
176 | const wxPoint& pos, | |
177 | const wxSize& size, | |
178 | long style, | |
179 | const wxValidator& validator, | |
180 | char* name) : | |
181 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
182 | ||
f6bcfd97 BP |
183 | int OnCompareItems(const wxTreeItemId& item1, |
184 | const wxTreeItemId& item2) { | |
185 | int rval = 0; | |
186 | bool doSave = wxPyRestoreThread(); | |
187 | if (m_myInst.findCallback("OnCompareItems")) | |
188 | rval = m_myInst.callCallback(Py_BuildValue( | |
189 | "(OO)", | |
190 | wxPyConstructObject((void*)&item1, "wxTreeItemId"), | |
191 | wxPyConstructObject((void*)&item2, "wxTreeItemId"))); | |
192 | else | |
193 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
194 | wxPySaveThread(doSave); | |
195 | return rval; | |
196 | } | |
197 | PYPRIVATE; | |
198 | }; | |
199 | ||
3b36695d RD |
200 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); |
201 | ||
1d99702e RD |
202 | #ifdef __cplusplus |
203 | extern "C" { | |
204 | #endif | |
c7e7022c | 205 | #define new_wxListItemAttr(_swigarg0,_swigarg1,_swigarg2) (new wxListItemAttr(_swigarg0,_swigarg1,_swigarg2)) |
f6bcfd97 | 206 | static PyObject *_wrap_new_wxListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 | 207 | PyObject * _resultobj; |
f6bcfd97 | 208 | wxListItemAttr * _result; |
c7e7022c RD |
209 | wxColour * _arg0 = (wxColour *) &wxNullColour; |
210 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
211 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
212 | wxColour temp; | |
213 | PyObject * _obj0 = 0; | |
214 | wxColour temp0; | |
215 | PyObject * _obj1 = 0; | |
216 | PyObject * _argo2 = 0; | |
217 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
f6bcfd97 | 218 | char _ptemp[128]; |
af309447 RD |
219 | |
220 | self = self; | |
c7e7022c RD |
221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxListItemAttr",_kwnames,&_obj0,&_obj1,&_argo2)) |
222 | return NULL; | |
223 | if (_obj0) | |
224 | { | |
225 | _arg0 = &temp; | |
226 | if (! wxColour_helper(_obj0, &_arg0)) | |
227 | return NULL; | |
228 | } | |
229 | if (_obj1) | |
230 | { | |
231 | _arg1 = &temp0; | |
232 | if (! wxColour_helper(_obj1, &_arg1)) | |
233 | return NULL; | |
234 | } | |
235 | if (_argo2) { | |
236 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
237 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
238 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxListItemAttr. Expected _wxFont_p."); | |
af309447 | 239 | return NULL; |
c7e7022c RD |
240 | } |
241 | } | |
cf694132 RD |
242 | { |
243 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 244 | _result = (wxListItemAttr *)new_wxListItemAttr(*_arg0,*_arg1,*_arg2); |
cf694132 RD |
245 | |
246 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 247 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
248 | } if (_result) { |
249 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
250 | _resultobj = Py_BuildValue("s",_ptemp); | |
251 | } else { | |
252 | Py_INCREF(Py_None); | |
253 | _resultobj = Py_None; | |
254 | } | |
af309447 RD |
255 | return _resultobj; |
256 | } | |
257 | ||
f6bcfd97 BP |
258 | #define wxListItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) |
259 | static PyObject *_wrap_wxListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 260 | PyObject * _resultobj; |
f6bcfd97 BP |
261 | wxListItemAttr * _arg0; |
262 | wxColour * _arg1; | |
1d99702e | 263 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
264 | wxColour temp; |
265 | PyObject * _obj1 = 0; | |
266 | char *_kwnames[] = { "self","colText", NULL }; | |
8ab979d7 RD |
267 | |
268 | self = self; | |
f6bcfd97 | 269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 270 | return NULL; |
1d99702e RD |
271 | if (_argo0) { |
272 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
273 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
274 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetTextColour. Expected _wxListItemAttr_p."); | |
8ab979d7 RD |
275 | return NULL; |
276 | } | |
277 | } | |
f6bcfd97 BP |
278 | { |
279 | _arg1 = &temp; | |
280 | if (! wxColour_helper(_obj1, &_arg1)) | |
281 | return NULL; | |
282 | } | |
cf694132 RD |
283 | { |
284 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 285 | wxListItemAttr_SetTextColour(_arg0,*_arg1); |
cf694132 RD |
286 | |
287 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 288 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
289 | } Py_INCREF(Py_None); |
290 | _resultobj = Py_None; | |
8ab979d7 RD |
291 | return _resultobj; |
292 | } | |
293 | ||
f6bcfd97 BP |
294 | #define wxListItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
295 | static PyObject *_wrap_wxListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 296 | PyObject * _resultobj; |
f6bcfd97 BP |
297 | wxListItemAttr * _arg0; |
298 | wxColour * _arg1; | |
1d99702e | 299 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
300 | wxColour temp; |
301 | PyObject * _obj1 = 0; | |
302 | char *_kwnames[] = { "self","colBack", NULL }; | |
af309447 RD |
303 | |
304 | self = self; | |
f6bcfd97 | 305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
af309447 | 306 | return NULL; |
1d99702e RD |
307 | if (_argo0) { |
308 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
309 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetBackgroundColour. Expected _wxListItemAttr_p."); | |
af309447 RD |
311 | return NULL; |
312 | } | |
313 | } | |
f6bcfd97 BP |
314 | { |
315 | _arg1 = &temp; | |
316 | if (! wxColour_helper(_obj1, &_arg1)) | |
317 | return NULL; | |
318 | } | |
cf694132 RD |
319 | { |
320 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 321 | wxListItemAttr_SetBackgroundColour(_arg0,*_arg1); |
cf694132 RD |
322 | |
323 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 324 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
325 | } Py_INCREF(Py_None); |
326 | _resultobj = Py_None; | |
af309447 RD |
327 | return _resultobj; |
328 | } | |
329 | ||
f6bcfd97 BP |
330 | #define wxListItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
331 | static PyObject *_wrap_wxListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 332 | PyObject * _resultobj; |
f6bcfd97 BP |
333 | wxListItemAttr * _arg0; |
334 | wxFont * _arg1; | |
1d99702e | 335 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
336 | PyObject * _argo1 = 0; |
337 | char *_kwnames[] = { "self","font", NULL }; | |
8ab979d7 RD |
338 | |
339 | self = self; | |
f6bcfd97 | 340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItemAttr_SetFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 341 | return NULL; |
1d99702e RD |
342 | if (_argo0) { |
343 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
344 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
345 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_SetFont. Expected _wxListItemAttr_p."); | |
346 | return NULL; | |
347 | } | |
348 | } | |
349 | if (_argo1) { | |
350 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
351 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
352 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItemAttr_SetFont. Expected _wxFont_p."); | |
8ab979d7 RD |
353 | return NULL; |
354 | } | |
355 | } | |
cf694132 RD |
356 | { |
357 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 358 | wxListItemAttr_SetFont(_arg0,*_arg1); |
cf694132 RD |
359 | |
360 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 361 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
362 | } Py_INCREF(Py_None); |
363 | _resultobj = Py_None; | |
8ab979d7 RD |
364 | return _resultobj; |
365 | } | |
366 | ||
f6bcfd97 BP |
367 | #define wxListItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) |
368 | static PyObject *_wrap_wxListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 369 | PyObject * _resultobj; |
f6bcfd97 BP |
370 | bool _result; |
371 | wxListItemAttr * _arg0; | |
1d99702e | 372 | PyObject * _argo0 = 0; |
f6bcfd97 | 373 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
374 | |
375 | self = self; | |
f6bcfd97 | 376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasTextColour",_kwnames,&_argo0)) |
af309447 | 377 | return NULL; |
1d99702e RD |
378 | if (_argo0) { |
379 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
380 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasTextColour. Expected _wxListItemAttr_p."); | |
af309447 RD |
382 | return NULL; |
383 | } | |
384 | } | |
cf694132 RD |
385 | { |
386 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 387 | _result = (bool )wxListItemAttr_HasTextColour(_arg0); |
cf694132 RD |
388 | |
389 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 390 | if (PyErr_Occurred()) return NULL; |
cf694132 | 391 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
392 | return _resultobj; |
393 | } | |
394 | ||
f6bcfd97 BP |
395 | #define wxListItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) |
396 | static PyObject *_wrap_wxListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 397 | PyObject * _resultobj; |
f6bcfd97 BP |
398 | bool _result; |
399 | wxListItemAttr * _arg0; | |
1d99702e | 400 | PyObject * _argo0 = 0; |
efc5f224 | 401 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
402 | |
403 | self = self; | |
f6bcfd97 | 404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasBackgroundColour",_kwnames,&_argo0)) |
8ab979d7 | 405 | return NULL; |
1d99702e RD |
406 | if (_argo0) { |
407 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
408 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
409 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasBackgroundColour. Expected _wxListItemAttr_p."); | |
8ab979d7 RD |
410 | return NULL; |
411 | } | |
412 | } | |
cf694132 RD |
413 | { |
414 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 415 | _result = (bool )wxListItemAttr_HasBackgroundColour(_arg0); |
cf694132 RD |
416 | |
417 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 418 | if (PyErr_Occurred()) return NULL; |
cf694132 | 419 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
420 | return _resultobj; |
421 | } | |
422 | ||
f6bcfd97 BP |
423 | #define wxListItemAttr_HasFont(_swigobj) (_swigobj->HasFont()) |
424 | static PyObject *_wrap_wxListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 425 | PyObject * _resultobj; |
f6bcfd97 BP |
426 | bool _result; |
427 | wxListItemAttr * _arg0; | |
1d99702e | 428 | PyObject * _argo0 = 0; |
f6bcfd97 | 429 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
430 | |
431 | self = self; | |
f6bcfd97 | 432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_HasFont",_kwnames,&_argo0)) |
af309447 | 433 | return NULL; |
1d99702e RD |
434 | if (_argo0) { |
435 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
436 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
437 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_HasFont. Expected _wxListItemAttr_p."); | |
af309447 RD |
438 | return NULL; |
439 | } | |
440 | } | |
cf694132 RD |
441 | { |
442 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 443 | _result = (bool )wxListItemAttr_HasFont(_arg0); |
cf694132 RD |
444 | |
445 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 446 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 447 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
448 | return _resultobj; |
449 | } | |
450 | ||
f6bcfd97 BP |
451 | #define wxListItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) |
452 | static PyObject *_wrap_wxListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 453 | PyObject * _resultobj; |
f6bcfd97 BP |
454 | wxColour * _result; |
455 | wxListItemAttr * _arg0; | |
1d99702e | 456 | PyObject * _argo0 = 0; |
efc5f224 | 457 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 458 | char _ptemp[128]; |
8ab979d7 RD |
459 | |
460 | self = self; | |
f6bcfd97 | 461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetTextColour",_kwnames,&_argo0)) |
8ab979d7 | 462 | return NULL; |
1d99702e RD |
463 | if (_argo0) { |
464 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
465 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetTextColour. Expected _wxListItemAttr_p."); | |
8ab979d7 RD |
467 | return NULL; |
468 | } | |
469 | } | |
cf694132 RD |
470 | { |
471 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
472 | const wxColour & _result_ref = wxListItemAttr_GetTextColour(_arg0); |
473 | _result = (wxColour *) &_result_ref; | |
cf694132 RD |
474 | |
475 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 476 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
477 | } if (_result) { |
478 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
479 | _resultobj = Py_BuildValue("s",_ptemp); | |
480 | } else { | |
481 | Py_INCREF(Py_None); | |
482 | _resultobj = Py_None; | |
483 | } | |
8ab979d7 RD |
484 | return _resultobj; |
485 | } | |
486 | ||
f6bcfd97 BP |
487 | #define wxListItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) |
488 | static PyObject *_wrap_wxListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 489 | PyObject * _resultobj; |
f6bcfd97 BP |
490 | wxColour * _result; |
491 | wxListItemAttr * _arg0; | |
1d99702e | 492 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
493 | char *_kwnames[] = { "self", NULL }; |
494 | char _ptemp[128]; | |
af309447 RD |
495 | |
496 | self = self; | |
f6bcfd97 | 497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetBackgroundColour",_kwnames,&_argo0)) |
af309447 | 498 | return NULL; |
1d99702e RD |
499 | if (_argo0) { |
500 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
501 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
502 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetBackgroundColour. Expected _wxListItemAttr_p."); | |
af309447 RD |
503 | return NULL; |
504 | } | |
505 | } | |
cf694132 RD |
506 | { |
507 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
508 | const wxColour & _result_ref = wxListItemAttr_GetBackgroundColour(_arg0); |
509 | _result = (wxColour *) &_result_ref; | |
cf694132 RD |
510 | |
511 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 512 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
513 | } if (_result) { |
514 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
515 | _resultobj = Py_BuildValue("s",_ptemp); | |
516 | } else { | |
517 | Py_INCREF(Py_None); | |
518 | _resultobj = Py_None; | |
519 | } | |
af309447 RD |
520 | return _resultobj; |
521 | } | |
522 | ||
f6bcfd97 BP |
523 | #define wxListItemAttr_GetFont(_swigobj) (_swigobj->GetFont()) |
524 | static PyObject *_wrap_wxListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 525 | PyObject * _resultobj; |
f6bcfd97 BP |
526 | wxFont * _result; |
527 | wxListItemAttr * _arg0; | |
1d99702e | 528 | PyObject * _argo0 = 0; |
efc5f224 | 529 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 530 | char _ptemp[128]; |
8ab979d7 RD |
531 | |
532 | self = self; | |
f6bcfd97 | 533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItemAttr_GetFont",_kwnames,&_argo0)) |
8ab979d7 | 534 | return NULL; |
1d99702e RD |
535 | if (_argo0) { |
536 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
537 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItemAttr_p")) { |
538 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItemAttr_GetFont. Expected _wxListItemAttr_p."); | |
8ab979d7 RD |
539 | return NULL; |
540 | } | |
541 | } | |
cf694132 RD |
542 | { |
543 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
544 | const wxFont & _result_ref = wxListItemAttr_GetFont(_arg0); |
545 | _result = (wxFont *) &_result_ref; | |
cf694132 RD |
546 | |
547 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 548 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
549 | } if (_result) { |
550 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
551 | _resultobj = Py_BuildValue("s",_ptemp); | |
552 | } else { | |
553 | Py_INCREF(Py_None); | |
554 | _resultobj = Py_None; | |
555 | } | |
8ab979d7 RD |
556 | return _resultobj; |
557 | } | |
558 | ||
9416aa89 RD |
559 | static void *SwigwxListItemTowxObject(void *ptr) { |
560 | wxListItem *src; | |
561 | wxObject *dest; | |
562 | src = (wxListItem *) ptr; | |
563 | dest = (wxObject *) src; | |
564 | return (void *) dest; | |
565 | } | |
566 | ||
f6bcfd97 BP |
567 | #define new_wxListItem() (new wxListItem()) |
568 | static PyObject *_wrap_new_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 569 | PyObject * _resultobj; |
f6bcfd97 BP |
570 | wxListItem * _result; |
571 | char *_kwnames[] = { NULL }; | |
572 | char _ptemp[128]; | |
af309447 RD |
573 | |
574 | self = self; | |
f6bcfd97 | 575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxListItem",_kwnames)) |
af309447 | 576 | return NULL; |
af309447 | 577 | { |
cf694132 | 578 | wxPy_BEGIN_ALLOW_THREADS; |
f6bcfd97 | 579 | _result = (wxListItem *)new_wxListItem(); |
cf694132 RD |
580 | |
581 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 582 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
583 | } if (_result) { |
584 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItem_p"); | |
585 | _resultobj = Py_BuildValue("s",_ptemp); | |
586 | } else { | |
587 | Py_INCREF(Py_None); | |
588 | _resultobj = Py_None; | |
589 | } | |
af309447 RD |
590 | return _resultobj; |
591 | } | |
592 | ||
f6bcfd97 BP |
593 | #define delete_wxListItem(_swigobj) (delete _swigobj) |
594 | static PyObject *_wrap_delete_wxListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 595 | PyObject * _resultobj; |
8ab979d7 | 596 | wxListItem * _arg0; |
1d99702e | 597 | PyObject * _argo0 = 0; |
efc5f224 | 598 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
599 | |
600 | self = self; | |
f6bcfd97 | 601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxListItem",_kwnames,&_argo0)) |
8ab979d7 | 602 | return NULL; |
1d99702e RD |
603 | if (_argo0) { |
604 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
605 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 606 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxListItem. Expected _wxListItem_p."); |
8ab979d7 RD |
607 | return NULL; |
608 | } | |
609 | } | |
8ab979d7 | 610 | { |
cf694132 | 611 | wxPy_BEGIN_ALLOW_THREADS; |
f6bcfd97 | 612 | delete_wxListItem(_arg0); |
cf694132 RD |
613 | |
614 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 615 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
616 | } Py_INCREF(Py_None); |
617 | _resultobj = Py_None; | |
8ab979d7 RD |
618 | return _resultobj; |
619 | } | |
620 | ||
f6bcfd97 BP |
621 | #define wxListItem_Clear(_swigobj) (_swigobj->Clear()) |
622 | static PyObject *_wrap_wxListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 623 | PyObject * _resultobj; |
af309447 | 624 | wxListItem * _arg0; |
1d99702e | 625 | PyObject * _argo0 = 0; |
f6bcfd97 | 626 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
627 | |
628 | self = self; | |
f6bcfd97 | 629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_Clear",_kwnames,&_argo0)) |
af309447 | 630 | return NULL; |
1d99702e RD |
631 | if (_argo0) { |
632 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
633 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 634 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_Clear. Expected _wxListItem_p."); |
af309447 RD |
635 | return NULL; |
636 | } | |
637 | } | |
cf694132 RD |
638 | { |
639 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 640 | wxListItem_Clear(_arg0); |
cf694132 RD |
641 | |
642 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 643 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
644 | } Py_INCREF(Py_None); |
645 | _resultobj = Py_None; | |
af309447 RD |
646 | return _resultobj; |
647 | } | |
648 | ||
f6bcfd97 BP |
649 | #define wxListItem_ClearAttributes(_swigobj) (_swigobj->ClearAttributes()) |
650 | static PyObject *_wrap_wxListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 651 | PyObject * _resultobj; |
8ab979d7 | 652 | wxListItem * _arg0; |
1d99702e | 653 | PyObject * _argo0 = 0; |
efc5f224 | 654 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
655 | |
656 | self = self; | |
f6bcfd97 | 657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_ClearAttributes",_kwnames,&_argo0)) |
8ab979d7 | 658 | return NULL; |
1d99702e RD |
659 | if (_argo0) { |
660 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
661 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 662 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_ClearAttributes. Expected _wxListItem_p."); |
8ab979d7 RD |
663 | return NULL; |
664 | } | |
665 | } | |
cf694132 RD |
666 | { |
667 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 668 | wxListItem_ClearAttributes(_arg0); |
cf694132 RD |
669 | |
670 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 671 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
672 | } Py_INCREF(Py_None); |
673 | _resultobj = Py_None; | |
674 | return _resultobj; | |
675 | } | |
676 | ||
677 | #define wxListItem_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) | |
678 | static PyObject *_wrap_wxListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
679 | PyObject * _resultobj; | |
680 | wxListItem * _arg0; | |
681 | long _arg1; | |
682 | PyObject * _argo0 = 0; | |
683 | char *_kwnames[] = { "self","mask", NULL }; | |
684 | ||
685 | self = self; | |
686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetMask",_kwnames,&_argo0,&_arg1)) | |
687 | return NULL; | |
688 | if (_argo0) { | |
689 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
690 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
691 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetMask. Expected _wxListItem_p."); | |
692 | return NULL; | |
693 | } | |
694 | } | |
695 | { | |
696 | wxPy_BEGIN_ALLOW_THREADS; | |
697 | wxListItem_SetMask(_arg0,_arg1); | |
698 | ||
699 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 700 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
701 | } Py_INCREF(Py_None); |
702 | _resultobj = Py_None; | |
703 | return _resultobj; | |
704 | } | |
705 | ||
706 | #define wxListItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
707 | static PyObject *_wrap_wxListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
708 | PyObject * _resultobj; | |
709 | wxListItem * _arg0; | |
710 | long _arg1; | |
711 | PyObject * _argo0 = 0; | |
712 | char *_kwnames[] = { "self","id", NULL }; | |
713 | ||
714 | self = self; | |
715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetId",_kwnames,&_argo0,&_arg1)) | |
716 | return NULL; | |
717 | if (_argo0) { | |
718 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
719 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
720 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetId. Expected _wxListItem_p."); | |
721 | return NULL; | |
722 | } | |
723 | } | |
724 | { | |
725 | wxPy_BEGIN_ALLOW_THREADS; | |
726 | wxListItem_SetId(_arg0,_arg1); | |
727 | ||
728 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 729 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
730 | } Py_INCREF(Py_None); |
731 | _resultobj = Py_None; | |
732 | return _resultobj; | |
733 | } | |
734 | ||
735 | #define wxListItem_SetColumn(_swigobj,_swigarg0) (_swigobj->SetColumn(_swigarg0)) | |
736 | static PyObject *_wrap_wxListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
737 | PyObject * _resultobj; | |
738 | wxListItem * _arg0; | |
739 | int _arg1; | |
740 | PyObject * _argo0 = 0; | |
741 | char *_kwnames[] = { "self","col", NULL }; | |
742 | ||
743 | self = self; | |
744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetColumn",_kwnames,&_argo0,&_arg1)) | |
745 | return NULL; | |
746 | if (_argo0) { | |
747 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
748 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
749 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetColumn. Expected _wxListItem_p."); | |
750 | return NULL; | |
751 | } | |
752 | } | |
753 | { | |
754 | wxPy_BEGIN_ALLOW_THREADS; | |
755 | wxListItem_SetColumn(_arg0,_arg1); | |
756 | ||
757 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 758 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
759 | } Py_INCREF(Py_None); |
760 | _resultobj = Py_None; | |
761 | return _resultobj; | |
762 | } | |
763 | ||
764 | #define wxListItem_SetState(_swigobj,_swigarg0) (_swigobj->SetState(_swigarg0)) | |
765 | static PyObject *_wrap_wxListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
766 | PyObject * _resultobj; | |
767 | wxListItem * _arg0; | |
768 | long _arg1; | |
769 | PyObject * _argo0 = 0; | |
770 | char *_kwnames[] = { "self","state", NULL }; | |
771 | ||
772 | self = self; | |
773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetState",_kwnames,&_argo0,&_arg1)) | |
774 | return NULL; | |
775 | if (_argo0) { | |
776 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
777 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetState. Expected _wxListItem_p."); | |
779 | return NULL; | |
780 | } | |
781 | } | |
782 | { | |
783 | wxPy_BEGIN_ALLOW_THREADS; | |
784 | wxListItem_SetState(_arg0,_arg1); | |
785 | ||
786 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 787 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
788 | } Py_INCREF(Py_None); |
789 | _resultobj = Py_None; | |
790 | return _resultobj; | |
791 | } | |
792 | ||
793 | #define wxListItem_SetStateMask(_swigobj,_swigarg0) (_swigobj->SetStateMask(_swigarg0)) | |
794 | static PyObject *_wrap_wxListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
795 | PyObject * _resultobj; | |
796 | wxListItem * _arg0; | |
797 | long _arg1; | |
798 | PyObject * _argo0 = 0; | |
799 | char *_kwnames[] = { "self","stateMask", NULL }; | |
800 | ||
801 | self = self; | |
802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetStateMask",_kwnames,&_argo0,&_arg1)) | |
803 | return NULL; | |
804 | if (_argo0) { | |
805 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
806 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
807 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetStateMask. Expected _wxListItem_p."); | |
808 | return NULL; | |
809 | } | |
810 | } | |
811 | { | |
812 | wxPy_BEGIN_ALLOW_THREADS; | |
813 | wxListItem_SetStateMask(_arg0,_arg1); | |
814 | ||
815 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 816 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
817 | } Py_INCREF(Py_None); |
818 | _resultobj = Py_None; | |
819 | return _resultobj; | |
820 | } | |
821 | ||
822 | #define wxListItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) | |
823 | static PyObject *_wrap_wxListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
824 | PyObject * _resultobj; | |
825 | wxListItem * _arg0; | |
826 | wxString * _arg1; | |
827 | PyObject * _argo0 = 0; | |
828 | PyObject * _obj1 = 0; | |
829 | char *_kwnames[] = { "self","text", NULL }; | |
830 | ||
831 | self = self; | |
832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetText",_kwnames,&_argo0,&_obj1)) | |
833 | return NULL; | |
834 | if (_argo0) { | |
835 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
836 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
837 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetText. Expected _wxListItem_p."); | |
838 | return NULL; | |
839 | } | |
840 | } | |
841 | { | |
185d7c3e RD |
842 | #if PYTHON_API_VERSION >= 1009 |
843 | char* tmpPtr; int tmpSize; | |
844 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 845 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
846 | return NULL; |
847 | } | |
848 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
849 | return NULL; | |
850 | _arg1 = new wxString(tmpPtr, tmpSize); | |
851 | #else | |
f6bcfd97 BP |
852 | if (!PyString_Check(_obj1)) { |
853 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
854 | return NULL; | |
855 | } | |
185d7c3e RD |
856 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
857 | #endif | |
f6bcfd97 BP |
858 | } |
859 | { | |
860 | wxPy_BEGIN_ALLOW_THREADS; | |
861 | wxListItem_SetText(_arg0,*_arg1); | |
862 | ||
863 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 864 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
865 | } Py_INCREF(Py_None); |
866 | _resultobj = Py_None; | |
867 | { | |
868 | if (_obj1) | |
869 | delete _arg1; | |
870 | } | |
871 | return _resultobj; | |
872 | } | |
873 | ||
874 | #define wxListItem_SetImage(_swigobj,_swigarg0) (_swigobj->SetImage(_swigarg0)) | |
875 | static PyObject *_wrap_wxListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
876 | PyObject * _resultobj; | |
877 | wxListItem * _arg0; | |
878 | int _arg1; | |
879 | PyObject * _argo0 = 0; | |
880 | char *_kwnames[] = { "self","image", NULL }; | |
881 | ||
882 | self = self; | |
883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetImage",_kwnames,&_argo0,&_arg1)) | |
884 | return NULL; | |
885 | if (_argo0) { | |
886 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
887 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
888 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetImage. Expected _wxListItem_p."); | |
889 | return NULL; | |
890 | } | |
891 | } | |
892 | { | |
893 | wxPy_BEGIN_ALLOW_THREADS; | |
894 | wxListItem_SetImage(_arg0,_arg1); | |
895 | ||
896 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 897 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
898 | } Py_INCREF(Py_None); |
899 | _resultobj = Py_None; | |
900 | return _resultobj; | |
901 | } | |
902 | ||
903 | #define wxListItem_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
904 | static PyObject *_wrap_wxListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
905 | PyObject * _resultobj; | |
906 | wxListItem * _arg0; | |
907 | long _arg1; | |
908 | PyObject * _argo0 = 0; | |
909 | char *_kwnames[] = { "self","data", NULL }; | |
910 | ||
911 | self = self; | |
912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_SetData",_kwnames,&_argo0,&_arg1)) | |
913 | return NULL; | |
914 | if (_argo0) { | |
915 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
916 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
917 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetData. Expected _wxListItem_p."); | |
918 | return NULL; | |
919 | } | |
920 | } | |
921 | { | |
922 | wxPy_BEGIN_ALLOW_THREADS; | |
923 | wxListItem_SetData(_arg0,_arg1); | |
924 | ||
925 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 926 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
927 | } Py_INCREF(Py_None); |
928 | _resultobj = Py_None; | |
929 | return _resultobj; | |
930 | } | |
931 | ||
932 | #define wxListItem_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
933 | static PyObject *_wrap_wxListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
934 | PyObject * _resultobj; | |
935 | wxListItem * _arg0; | |
936 | int _arg1; | |
937 | PyObject * _argo0 = 0; | |
938 | char *_kwnames[] = { "self","width", NULL }; | |
939 | ||
940 | self = self; | |
941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetWidth",_kwnames,&_argo0,&_arg1)) | |
942 | return NULL; | |
943 | if (_argo0) { | |
944 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
945 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
946 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetWidth. Expected _wxListItem_p."); | |
947 | return NULL; | |
948 | } | |
949 | } | |
950 | { | |
951 | wxPy_BEGIN_ALLOW_THREADS; | |
952 | wxListItem_SetWidth(_arg0,_arg1); | |
953 | ||
954 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 955 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
956 | } Py_INCREF(Py_None); |
957 | _resultobj = Py_None; | |
958 | return _resultobj; | |
959 | } | |
960 | ||
961 | #define wxListItem_SetAlign(_swigobj,_swigarg0) (_swigobj->SetAlign(_swigarg0)) | |
962 | static PyObject *_wrap_wxListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
963 | PyObject * _resultobj; | |
964 | wxListItem * _arg0; | |
965 | wxListColumnFormat _arg1; | |
966 | PyObject * _argo0 = 0; | |
967 | char *_kwnames[] = { "self","align", NULL }; | |
968 | ||
969 | self = self; | |
970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_SetAlign",_kwnames,&_argo0,&_arg1)) | |
971 | return NULL; | |
972 | if (_argo0) { | |
973 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
974 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
975 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetAlign. Expected _wxListItem_p."); | |
976 | return NULL; | |
977 | } | |
978 | } | |
979 | { | |
980 | wxPy_BEGIN_ALLOW_THREADS; | |
981 | wxListItem_SetAlign(_arg0,_arg1); | |
982 | ||
983 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 984 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
985 | } Py_INCREF(Py_None); |
986 | _resultobj = Py_None; | |
987 | return _resultobj; | |
988 | } | |
989 | ||
990 | #define wxListItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
991 | static PyObject *_wrap_wxListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
992 | PyObject * _resultobj; | |
993 | wxListItem * _arg0; | |
994 | wxColour * _arg1; | |
995 | PyObject * _argo0 = 0; | |
996 | wxColour temp; | |
997 | PyObject * _obj1 = 0; | |
998 | char *_kwnames[] = { "self","colText", NULL }; | |
999 | ||
1000 | self = self; | |
1001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
1002 | return NULL; | |
1003 | if (_argo0) { | |
1004 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1005 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1006 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetTextColour. Expected _wxListItem_p."); | |
1007 | return NULL; | |
1008 | } | |
1009 | } | |
1010 | { | |
1011 | _arg1 = &temp; | |
1012 | if (! wxColour_helper(_obj1, &_arg1)) | |
1013 | return NULL; | |
1014 | } | |
1015 | { | |
1016 | wxPy_BEGIN_ALLOW_THREADS; | |
1017 | wxListItem_SetTextColour(_arg0,*_arg1); | |
1018 | ||
1019 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1020 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1021 | } Py_INCREF(Py_None); |
1022 | _resultobj = Py_None; | |
1023 | return _resultobj; | |
1024 | } | |
1025 | ||
1026 | #define wxListItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
1027 | static PyObject *_wrap_wxListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1028 | PyObject * _resultobj; | |
1029 | wxListItem * _arg0; | |
1030 | wxColour * _arg1; | |
1031 | PyObject * _argo0 = 0; | |
1032 | wxColour temp; | |
1033 | PyObject * _obj1 = 0; | |
1034 | char *_kwnames[] = { "self","colBack", NULL }; | |
1035 | ||
1036 | self = self; | |
1037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
1038 | return NULL; | |
1039 | if (_argo0) { | |
1040 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1041 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1042 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetBackgroundColour. Expected _wxListItem_p."); | |
1043 | return NULL; | |
1044 | } | |
1045 | } | |
1046 | { | |
1047 | _arg1 = &temp; | |
1048 | if (! wxColour_helper(_obj1, &_arg1)) | |
1049 | return NULL; | |
1050 | } | |
1051 | { | |
1052 | wxPy_BEGIN_ALLOW_THREADS; | |
1053 | wxListItem_SetBackgroundColour(_arg0,*_arg1); | |
1054 | ||
1055 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1056 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1057 | } Py_INCREF(Py_None); |
1058 | _resultobj = Py_None; | |
1059 | return _resultobj; | |
1060 | } | |
1061 | ||
1062 | #define wxListItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
1063 | static PyObject *_wrap_wxListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1064 | PyObject * _resultobj; | |
1065 | wxListItem * _arg0; | |
1066 | wxFont * _arg1; | |
1067 | PyObject * _argo0 = 0; | |
1068 | PyObject * _argo1 = 0; | |
1069 | char *_kwnames[] = { "self","font", NULL }; | |
1070 | ||
1071 | self = self; | |
1072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_SetFont",_kwnames,&_argo0,&_argo1)) | |
1073 | return NULL; | |
1074 | if (_argo0) { | |
1075 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1076 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1077 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_SetFont. Expected _wxListItem_p."); | |
1078 | return NULL; | |
1079 | } | |
1080 | } | |
1081 | if (_argo1) { | |
1082 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1083 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
1084 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListItem_SetFont. Expected _wxFont_p."); | |
1085 | return NULL; | |
1086 | } | |
1087 | } | |
1088 | { | |
1089 | wxPy_BEGIN_ALLOW_THREADS; | |
1090 | wxListItem_SetFont(_arg0,*_arg1); | |
1091 | ||
1092 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1093 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1094 | } Py_INCREF(Py_None); |
1095 | _resultobj = Py_None; | |
1096 | return _resultobj; | |
1097 | } | |
1098 | ||
1099 | #define wxListItem_GetMask(_swigobj) (_swigobj->GetMask()) | |
1100 | static PyObject *_wrap_wxListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1101 | PyObject * _resultobj; | |
1102 | long _result; | |
1103 | wxListItem * _arg0; | |
1104 | PyObject * _argo0 = 0; | |
1105 | char *_kwnames[] = { "self", NULL }; | |
1106 | ||
1107 | self = self; | |
1108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetMask",_kwnames,&_argo0)) | |
1109 | return NULL; | |
1110 | if (_argo0) { | |
1111 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1112 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1113 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetMask. Expected _wxListItem_p."); | |
1114 | return NULL; | |
1115 | } | |
1116 | } | |
1117 | { | |
1118 | wxPy_BEGIN_ALLOW_THREADS; | |
1119 | _result = (long )wxListItem_GetMask(_arg0); | |
1120 | ||
1121 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1122 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1123 | } _resultobj = Py_BuildValue("l",_result); |
1124 | return _resultobj; | |
1125 | } | |
1126 | ||
1127 | #define wxListItem_GetId(_swigobj) (_swigobj->GetId()) | |
1128 | static PyObject *_wrap_wxListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1129 | PyObject * _resultobj; | |
1130 | long _result; | |
1131 | wxListItem * _arg0; | |
1132 | PyObject * _argo0 = 0; | |
1133 | char *_kwnames[] = { "self", NULL }; | |
1134 | ||
1135 | self = self; | |
1136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetId",_kwnames,&_argo0)) | |
1137 | return NULL; | |
1138 | if (_argo0) { | |
1139 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1140 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1141 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetId. Expected _wxListItem_p."); | |
1142 | return NULL; | |
1143 | } | |
1144 | } | |
1145 | { | |
1146 | wxPy_BEGIN_ALLOW_THREADS; | |
1147 | _result = (long )wxListItem_GetId(_arg0); | |
1148 | ||
1149 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1150 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1151 | } _resultobj = Py_BuildValue("l",_result); |
1152 | return _resultobj; | |
1153 | } | |
1154 | ||
1155 | #define wxListItem_GetColumn(_swigobj) (_swigobj->GetColumn()) | |
1156 | static PyObject *_wrap_wxListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1157 | PyObject * _resultobj; | |
1158 | int _result; | |
1159 | wxListItem * _arg0; | |
1160 | PyObject * _argo0 = 0; | |
1161 | char *_kwnames[] = { "self", NULL }; | |
1162 | ||
1163 | self = self; | |
1164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetColumn",_kwnames,&_argo0)) | |
1165 | return NULL; | |
1166 | if (_argo0) { | |
1167 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1168 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1169 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetColumn. Expected _wxListItem_p."); | |
1170 | return NULL; | |
1171 | } | |
1172 | } | |
1173 | { | |
1174 | wxPy_BEGIN_ALLOW_THREADS; | |
1175 | _result = (int )wxListItem_GetColumn(_arg0); | |
1176 | ||
1177 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1178 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1179 | } _resultobj = Py_BuildValue("i",_result); |
1180 | return _resultobj; | |
1181 | } | |
1182 | ||
1183 | #define wxListItem_GetState(_swigobj) (_swigobj->GetState()) | |
1184 | static PyObject *_wrap_wxListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1185 | PyObject * _resultobj; | |
1186 | long _result; | |
1187 | wxListItem * _arg0; | |
1188 | PyObject * _argo0 = 0; | |
1189 | char *_kwnames[] = { "self", NULL }; | |
1190 | ||
1191 | self = self; | |
1192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetState",_kwnames,&_argo0)) | |
1193 | return NULL; | |
1194 | if (_argo0) { | |
1195 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1196 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1197 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetState. Expected _wxListItem_p."); | |
1198 | return NULL; | |
1199 | } | |
1200 | } | |
1201 | { | |
1202 | wxPy_BEGIN_ALLOW_THREADS; | |
1203 | _result = (long )wxListItem_GetState(_arg0); | |
1204 | ||
1205 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1206 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1207 | } _resultobj = Py_BuildValue("l",_result); |
1208 | return _resultobj; | |
1209 | } | |
1210 | ||
1211 | #define wxListItem_GetText(_swigobj) (_swigobj->GetText()) | |
1212 | static PyObject *_wrap_wxListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1213 | PyObject * _resultobj; | |
1214 | wxString * _result; | |
1215 | wxListItem * _arg0; | |
1216 | PyObject * _argo0 = 0; | |
1217 | char *_kwnames[] = { "self", NULL }; | |
1218 | ||
1219 | self = self; | |
1220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetText",_kwnames,&_argo0)) | |
1221 | return NULL; | |
1222 | if (_argo0) { | |
1223 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1224 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetText. Expected _wxListItem_p."); | |
1226 | return NULL; | |
1227 | } | |
1228 | } | |
1229 | { | |
1230 | wxPy_BEGIN_ALLOW_THREADS; | |
1231 | const wxString & _result_ref = wxListItem_GetText(_arg0); | |
1232 | _result = (wxString *) &_result_ref; | |
1233 | ||
1234 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1235 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1236 | }{ |
1237 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1238 | } | |
1239 | return _resultobj; | |
1240 | } | |
1241 | ||
1242 | #define wxListItem_GetImage(_swigobj) (_swigobj->GetImage()) | |
1243 | static PyObject *_wrap_wxListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1244 | PyObject * _resultobj; | |
1245 | int _result; | |
1246 | wxListItem * _arg0; | |
1247 | PyObject * _argo0 = 0; | |
1248 | char *_kwnames[] = { "self", NULL }; | |
1249 | ||
1250 | self = self; | |
1251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetImage",_kwnames,&_argo0)) | |
1252 | return NULL; | |
1253 | if (_argo0) { | |
1254 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1255 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1256 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetImage. Expected _wxListItem_p."); | |
1257 | return NULL; | |
1258 | } | |
1259 | } | |
1260 | { | |
1261 | wxPy_BEGIN_ALLOW_THREADS; | |
1262 | _result = (int )wxListItem_GetImage(_arg0); | |
1263 | ||
1264 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1265 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1266 | } _resultobj = Py_BuildValue("i",_result); |
1267 | return _resultobj; | |
1268 | } | |
1269 | ||
1270 | #define wxListItem_GetData(_swigobj) (_swigobj->GetData()) | |
1271 | static PyObject *_wrap_wxListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1272 | PyObject * _resultobj; | |
1273 | long _result; | |
1274 | wxListItem * _arg0; | |
1275 | PyObject * _argo0 = 0; | |
1276 | char *_kwnames[] = { "self", NULL }; | |
1277 | ||
1278 | self = self; | |
1279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetData",_kwnames,&_argo0)) | |
1280 | return NULL; | |
1281 | if (_argo0) { | |
1282 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1283 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1284 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetData. Expected _wxListItem_p."); | |
1285 | return NULL; | |
1286 | } | |
1287 | } | |
1288 | { | |
1289 | wxPy_BEGIN_ALLOW_THREADS; | |
1290 | _result = (long )wxListItem_GetData(_arg0); | |
1291 | ||
1292 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1293 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1294 | } _resultobj = Py_BuildValue("l",_result); |
1295 | return _resultobj; | |
1296 | } | |
1297 | ||
1298 | #define wxListItem_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1299 | static PyObject *_wrap_wxListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1300 | PyObject * _resultobj; | |
1301 | int _result; | |
1302 | wxListItem * _arg0; | |
1303 | PyObject * _argo0 = 0; | |
1304 | char *_kwnames[] = { "self", NULL }; | |
1305 | ||
1306 | self = self; | |
1307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetWidth",_kwnames,&_argo0)) | |
1308 | return NULL; | |
1309 | if (_argo0) { | |
1310 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1311 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1312 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetWidth. Expected _wxListItem_p."); | |
1313 | return NULL; | |
1314 | } | |
1315 | } | |
1316 | { | |
1317 | wxPy_BEGIN_ALLOW_THREADS; | |
1318 | _result = (int )wxListItem_GetWidth(_arg0); | |
1319 | ||
1320 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1321 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1322 | } _resultobj = Py_BuildValue("i",_result); |
1323 | return _resultobj; | |
1324 | } | |
1325 | ||
1326 | #define wxListItem_GetAlign(_swigobj) (_swigobj->GetAlign()) | |
1327 | static PyObject *_wrap_wxListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1328 | PyObject * _resultobj; | |
1329 | wxListColumnFormat _result; | |
1330 | wxListItem * _arg0; | |
1331 | PyObject * _argo0 = 0; | |
1332 | char *_kwnames[] = { "self", NULL }; | |
1333 | ||
1334 | self = self; | |
1335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAlign",_kwnames,&_argo0)) | |
1336 | return NULL; | |
1337 | if (_argo0) { | |
1338 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1339 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1340 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAlign. Expected _wxListItem_p."); | |
1341 | return NULL; | |
1342 | } | |
1343 | } | |
1344 | { | |
1345 | wxPy_BEGIN_ALLOW_THREADS; | |
1346 | _result = (wxListColumnFormat )wxListItem_GetAlign(_arg0); | |
1347 | ||
1348 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1349 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1350 | } _resultobj = Py_BuildValue("i",_result); |
1351 | return _resultobj; | |
1352 | } | |
1353 | ||
1354 | #define wxListItem_GetAttributes(_swigobj) (_swigobj->GetAttributes()) | |
1355 | static PyObject *_wrap_wxListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1356 | PyObject * _resultobj; | |
1357 | wxListItemAttr * _result; | |
1358 | wxListItem * _arg0; | |
1359 | PyObject * _argo0 = 0; | |
1360 | char *_kwnames[] = { "self", NULL }; | |
1361 | char _ptemp[128]; | |
1362 | ||
1363 | self = self; | |
1364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetAttributes",_kwnames,&_argo0)) | |
1365 | return NULL; | |
1366 | if (_argo0) { | |
1367 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1368 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1369 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetAttributes. Expected _wxListItem_p."); | |
1370 | return NULL; | |
1371 | } | |
1372 | } | |
1373 | { | |
1374 | wxPy_BEGIN_ALLOW_THREADS; | |
1375 | _result = (wxListItemAttr *)wxListItem_GetAttributes(_arg0); | |
1376 | ||
1377 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1378 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1379 | } if (_result) { |
1380 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxListItemAttr_p"); | |
1381 | _resultobj = Py_BuildValue("s",_ptemp); | |
1382 | } else { | |
1383 | Py_INCREF(Py_None); | |
1384 | _resultobj = Py_None; | |
1385 | } | |
1386 | return _resultobj; | |
1387 | } | |
1388 | ||
1389 | #define wxListItem_HasAttributes(_swigobj) (_swigobj->HasAttributes()) | |
1390 | static PyObject *_wrap_wxListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1391 | PyObject * _resultobj; | |
1392 | bool _result; | |
1393 | wxListItem * _arg0; | |
1394 | PyObject * _argo0 = 0; | |
1395 | char *_kwnames[] = { "self", NULL }; | |
1396 | ||
1397 | self = self; | |
1398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_HasAttributes",_kwnames,&_argo0)) | |
1399 | return NULL; | |
1400 | if (_argo0) { | |
1401 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1402 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_HasAttributes. Expected _wxListItem_p."); | |
1404 | return NULL; | |
1405 | } | |
1406 | } | |
1407 | { | |
1408 | wxPy_BEGIN_ALLOW_THREADS; | |
1409 | _result = (bool )wxListItem_HasAttributes(_arg0); | |
1410 | ||
1411 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1412 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1413 | } _resultobj = Py_BuildValue("i",_result); |
1414 | return _resultobj; | |
1415 | } | |
1416 | ||
1417 | #define wxListItem_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
1418 | static PyObject *_wrap_wxListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1419 | PyObject * _resultobj; | |
1420 | wxColour * _result; | |
1421 | wxListItem * _arg0; | |
1422 | PyObject * _argo0 = 0; | |
1423 | char *_kwnames[] = { "self", NULL }; | |
1424 | char _ptemp[128]; | |
1425 | ||
1426 | self = self; | |
1427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetTextColour",_kwnames,&_argo0)) | |
1428 | return NULL; | |
1429 | if (_argo0) { | |
1430 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1431 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1432 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetTextColour. Expected _wxListItem_p."); | |
1433 | return NULL; | |
1434 | } | |
1435 | } | |
1436 | { | |
1437 | wxPy_BEGIN_ALLOW_THREADS; | |
1438 | _result = new wxColour (wxListItem_GetTextColour(_arg0)); | |
1439 | ||
1440 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1441 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1442 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
1443 | _resultobj = Py_BuildValue("s",_ptemp); | |
1444 | return _resultobj; | |
1445 | } | |
1446 | ||
1447 | #define wxListItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
1448 | static PyObject *_wrap_wxListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1449 | PyObject * _resultobj; | |
1450 | wxColour * _result; | |
1451 | wxListItem * _arg0; | |
1452 | PyObject * _argo0 = 0; | |
1453 | char *_kwnames[] = { "self", NULL }; | |
1454 | char _ptemp[128]; | |
1455 | ||
1456 | self = self; | |
1457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetBackgroundColour",_kwnames,&_argo0)) | |
1458 | return NULL; | |
1459 | if (_argo0) { | |
1460 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1461 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1462 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetBackgroundColour. Expected _wxListItem_p."); | |
1463 | return NULL; | |
1464 | } | |
1465 | } | |
1466 | { | |
1467 | wxPy_BEGIN_ALLOW_THREADS; | |
1468 | _result = new wxColour (wxListItem_GetBackgroundColour(_arg0)); | |
1469 | ||
1470 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1471 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1472 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
1473 | _resultobj = Py_BuildValue("s",_ptemp); | |
1474 | return _resultobj; | |
1475 | } | |
1476 | ||
1477 | #define wxListItem_GetFont(_swigobj) (_swigobj->GetFont()) | |
1478 | static PyObject *_wrap_wxListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1479 | PyObject * _resultobj; | |
1480 | wxFont * _result; | |
1481 | wxListItem * _arg0; | |
1482 | PyObject * _argo0 = 0; | |
1483 | char *_kwnames[] = { "self", NULL }; | |
1484 | char _ptemp[128]; | |
1485 | ||
1486 | self = self; | |
1487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_GetFont",_kwnames,&_argo0)) | |
1488 | return NULL; | |
1489 | if (_argo0) { | |
1490 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1491 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_GetFont. Expected _wxListItem_p."); | |
1493 | return NULL; | |
1494 | } | |
1495 | } | |
1496 | { | |
1497 | wxPy_BEGIN_ALLOW_THREADS; | |
1498 | _result = new wxFont (wxListItem_GetFont(_arg0)); | |
1499 | ||
1500 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1501 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1502 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
1503 | _resultobj = Py_BuildValue("s",_ptemp); | |
1504 | return _resultobj; | |
1505 | } | |
1506 | ||
1507 | #define wxListItem_m_mask_set(_swigobj,_swigval) (_swigobj->m_mask = _swigval,_swigval) | |
1508 | static PyObject *_wrap_wxListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1509 | PyObject * _resultobj; | |
1510 | long _result; | |
1511 | wxListItem * _arg0; | |
1512 | long _arg1; | |
1513 | PyObject * _argo0 = 0; | |
1514 | char *_kwnames[] = { "self","m_mask", NULL }; | |
1515 | ||
1516 | self = self; | |
1517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_mask_set",_kwnames,&_argo0,&_arg1)) | |
1518 | return NULL; | |
1519 | if (_argo0) { | |
1520 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1521 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1522 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_set. Expected _wxListItem_p."); | |
1523 | return NULL; | |
1524 | } | |
1525 | } | |
1526 | { | |
1527 | wxPy_BEGIN_ALLOW_THREADS; | |
1528 | _result = (long )wxListItem_m_mask_set(_arg0,_arg1); | |
1529 | ||
1530 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1531 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1532 | } _resultobj = Py_BuildValue("l",_result); |
1533 | return _resultobj; | |
1534 | } | |
1535 | ||
1536 | #define wxListItem_m_mask_get(_swigobj) ((long ) _swigobj->m_mask) | |
1537 | static PyObject *_wrap_wxListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1538 | PyObject * _resultobj; | |
1539 | long _result; | |
1540 | wxListItem * _arg0; | |
1541 | PyObject * _argo0 = 0; | |
1542 | char *_kwnames[] = { "self", NULL }; | |
1543 | ||
1544 | self = self; | |
1545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_mask_get",_kwnames,&_argo0)) | |
1546 | return NULL; | |
1547 | if (_argo0) { | |
1548 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1549 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1550 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_mask_get. Expected _wxListItem_p."); | |
1551 | return NULL; | |
1552 | } | |
1553 | } | |
1554 | { | |
1555 | wxPy_BEGIN_ALLOW_THREADS; | |
1556 | _result = (long )wxListItem_m_mask_get(_arg0); | |
1557 | ||
1558 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1559 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1560 | } _resultobj = Py_BuildValue("l",_result); |
1561 | return _resultobj; | |
1562 | } | |
1563 | ||
1564 | #define wxListItem_m_itemId_set(_swigobj,_swigval) (_swigobj->m_itemId = _swigval,_swigval) | |
1565 | static PyObject *_wrap_wxListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1566 | PyObject * _resultobj; | |
1567 | long _result; | |
1568 | wxListItem * _arg0; | |
1569 | long _arg1; | |
1570 | PyObject * _argo0 = 0; | |
1571 | char *_kwnames[] = { "self","m_itemId", NULL }; | |
1572 | ||
1573 | self = self; | |
1574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_itemId_set",_kwnames,&_argo0,&_arg1)) | |
1575 | return NULL; | |
1576 | if (_argo0) { | |
1577 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1578 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1579 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_set. Expected _wxListItem_p."); | |
1580 | return NULL; | |
1581 | } | |
1582 | } | |
1583 | { | |
1584 | wxPy_BEGIN_ALLOW_THREADS; | |
1585 | _result = (long )wxListItem_m_itemId_set(_arg0,_arg1); | |
1586 | ||
1587 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1588 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1589 | } _resultobj = Py_BuildValue("l",_result); |
1590 | return _resultobj; | |
1591 | } | |
1592 | ||
1593 | #define wxListItem_m_itemId_get(_swigobj) ((long ) _swigobj->m_itemId) | |
1594 | static PyObject *_wrap_wxListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1595 | PyObject * _resultobj; | |
1596 | long _result; | |
1597 | wxListItem * _arg0; | |
1598 | PyObject * _argo0 = 0; | |
1599 | char *_kwnames[] = { "self", NULL }; | |
1600 | ||
1601 | self = self; | |
1602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_itemId_get",_kwnames,&_argo0)) | |
1603 | return NULL; | |
1604 | if (_argo0) { | |
1605 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1606 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1607 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_itemId_get. Expected _wxListItem_p."); | |
1608 | return NULL; | |
1609 | } | |
1610 | } | |
1611 | { | |
1612 | wxPy_BEGIN_ALLOW_THREADS; | |
1613 | _result = (long )wxListItem_m_itemId_get(_arg0); | |
1614 | ||
1615 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1616 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1617 | } _resultobj = Py_BuildValue("l",_result); |
1618 | return _resultobj; | |
1619 | } | |
1620 | ||
1621 | #define wxListItem_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval) | |
1622 | static PyObject *_wrap_wxListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1623 | PyObject * _resultobj; | |
1624 | int _result; | |
1625 | wxListItem * _arg0; | |
1626 | int _arg1; | |
1627 | PyObject * _argo0 = 0; | |
1628 | char *_kwnames[] = { "self","m_col", NULL }; | |
1629 | ||
1630 | self = self; | |
1631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_col_set",_kwnames,&_argo0,&_arg1)) | |
1632 | return NULL; | |
1633 | if (_argo0) { | |
1634 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1635 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1636 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_set. Expected _wxListItem_p."); | |
1637 | return NULL; | |
1638 | } | |
1639 | } | |
1640 | { | |
1641 | wxPy_BEGIN_ALLOW_THREADS; | |
1642 | _result = (int )wxListItem_m_col_set(_arg0,_arg1); | |
1643 | ||
1644 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1645 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1646 | } _resultobj = Py_BuildValue("i",_result); |
1647 | return _resultobj; | |
1648 | } | |
1649 | ||
1650 | #define wxListItem_m_col_get(_swigobj) ((int ) _swigobj->m_col) | |
1651 | static PyObject *_wrap_wxListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1652 | PyObject * _resultobj; | |
1653 | int _result; | |
1654 | wxListItem * _arg0; | |
1655 | PyObject * _argo0 = 0; | |
1656 | char *_kwnames[] = { "self", NULL }; | |
1657 | ||
1658 | self = self; | |
1659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_col_get",_kwnames,&_argo0)) | |
1660 | return NULL; | |
1661 | if (_argo0) { | |
1662 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1663 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1664 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_col_get. Expected _wxListItem_p."); | |
1665 | return NULL; | |
1666 | } | |
1667 | } | |
1668 | { | |
1669 | wxPy_BEGIN_ALLOW_THREADS; | |
1670 | _result = (int )wxListItem_m_col_get(_arg0); | |
1671 | ||
1672 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1673 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1674 | } _resultobj = Py_BuildValue("i",_result); |
1675 | return _resultobj; | |
1676 | } | |
1677 | ||
1678 | #define wxListItem_m_state_set(_swigobj,_swigval) (_swigobj->m_state = _swigval,_swigval) | |
1679 | static PyObject *_wrap_wxListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1680 | PyObject * _resultobj; | |
1681 | long _result; | |
1682 | wxListItem * _arg0; | |
1683 | long _arg1; | |
1684 | PyObject * _argo0 = 0; | |
1685 | char *_kwnames[] = { "self","m_state", NULL }; | |
1686 | ||
1687 | self = self; | |
1688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_state_set",_kwnames,&_argo0,&_arg1)) | |
1689 | return NULL; | |
1690 | if (_argo0) { | |
1691 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1692 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1693 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_set. Expected _wxListItem_p."); | |
1694 | return NULL; | |
1695 | } | |
1696 | } | |
1697 | { | |
1698 | wxPy_BEGIN_ALLOW_THREADS; | |
1699 | _result = (long )wxListItem_m_state_set(_arg0,_arg1); | |
1700 | ||
1701 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1702 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1703 | } _resultobj = Py_BuildValue("l",_result); |
1704 | return _resultobj; | |
1705 | } | |
1706 | ||
1707 | #define wxListItem_m_state_get(_swigobj) ((long ) _swigobj->m_state) | |
1708 | static PyObject *_wrap_wxListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1709 | PyObject * _resultobj; | |
1710 | long _result; | |
1711 | wxListItem * _arg0; | |
1712 | PyObject * _argo0 = 0; | |
1713 | char *_kwnames[] = { "self", NULL }; | |
1714 | ||
1715 | self = self; | |
1716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_state_get",_kwnames,&_argo0)) | |
1717 | return NULL; | |
1718 | if (_argo0) { | |
1719 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1720 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1721 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_state_get. Expected _wxListItem_p."); | |
1722 | return NULL; | |
1723 | } | |
1724 | } | |
1725 | { | |
1726 | wxPy_BEGIN_ALLOW_THREADS; | |
1727 | _result = (long )wxListItem_m_state_get(_arg0); | |
1728 | ||
1729 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1730 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1731 | } _resultobj = Py_BuildValue("l",_result); |
1732 | return _resultobj; | |
1733 | } | |
1734 | ||
1735 | #define wxListItem_m_stateMask_set(_swigobj,_swigval) (_swigobj->m_stateMask = _swigval,_swigval) | |
1736 | static PyObject *_wrap_wxListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1737 | PyObject * _resultobj; | |
1738 | long _result; | |
1739 | wxListItem * _arg0; | |
1740 | long _arg1; | |
1741 | PyObject * _argo0 = 0; | |
1742 | char *_kwnames[] = { "self","m_stateMask", NULL }; | |
1743 | ||
1744 | self = self; | |
1745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_stateMask_set",_kwnames,&_argo0,&_arg1)) | |
1746 | return NULL; | |
1747 | if (_argo0) { | |
1748 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1749 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_set. Expected _wxListItem_p."); | |
1751 | return NULL; | |
1752 | } | |
1753 | } | |
1754 | { | |
1755 | wxPy_BEGIN_ALLOW_THREADS; | |
1756 | _result = (long )wxListItem_m_stateMask_set(_arg0,_arg1); | |
1757 | ||
1758 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1759 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1760 | } _resultobj = Py_BuildValue("l",_result); |
1761 | return _resultobj; | |
1762 | } | |
1763 | ||
1764 | #define wxListItem_m_stateMask_get(_swigobj) ((long ) _swigobj->m_stateMask) | |
1765 | static PyObject *_wrap_wxListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1766 | PyObject * _resultobj; | |
1767 | long _result; | |
1768 | wxListItem * _arg0; | |
1769 | PyObject * _argo0 = 0; | |
1770 | char *_kwnames[] = { "self", NULL }; | |
1771 | ||
1772 | self = self; | |
1773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_stateMask_get",_kwnames,&_argo0)) | |
1774 | return NULL; | |
1775 | if (_argo0) { | |
1776 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1777 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_stateMask_get. Expected _wxListItem_p."); | |
1779 | return NULL; | |
1780 | } | |
1781 | } | |
1782 | { | |
1783 | wxPy_BEGIN_ALLOW_THREADS; | |
1784 | _result = (long )wxListItem_m_stateMask_get(_arg0); | |
1785 | ||
1786 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1787 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1788 | } _resultobj = Py_BuildValue("l",_result); |
1789 | return _resultobj; | |
1790 | } | |
1791 | ||
1792 | #define wxListItem_m_text_set(_swigobj,_swigval) (_swigobj->m_text = *(_swigval),_swigval) | |
1793 | static PyObject *_wrap_wxListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1794 | PyObject * _resultobj; | |
1795 | wxString * _result; | |
1796 | wxListItem * _arg0; | |
1797 | wxString * _arg1; | |
1798 | PyObject * _argo0 = 0; | |
1799 | PyObject * _obj1 = 0; | |
1800 | char *_kwnames[] = { "self","m_text", NULL }; | |
1801 | ||
1802 | self = self; | |
1803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListItem_m_text_set",_kwnames,&_argo0,&_obj1)) | |
1804 | return NULL; | |
1805 | if (_argo0) { | |
1806 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1807 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1808 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_set. Expected _wxListItem_p."); | |
1809 | return NULL; | |
1810 | } | |
1811 | } | |
1812 | { | |
185d7c3e RD |
1813 | #if PYTHON_API_VERSION >= 1009 |
1814 | char* tmpPtr; int tmpSize; | |
1815 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 1816 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1817 | return NULL; |
1818 | } | |
1819 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
1820 | return NULL; | |
1821 | _arg1 = new wxString(tmpPtr, tmpSize); | |
1822 | #else | |
f6bcfd97 BP |
1823 | if (!PyString_Check(_obj1)) { |
1824 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1825 | return NULL; | |
1826 | } | |
185d7c3e RD |
1827 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
1828 | #endif | |
f6bcfd97 BP |
1829 | } |
1830 | { | |
1831 | wxPy_BEGIN_ALLOW_THREADS; | |
1832 | _result = (wxString *)wxListItem_m_text_set(_arg0,_arg1); | |
1833 | ||
1834 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1835 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1836 | }{ |
1837 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1838 | } | |
1839 | { | |
1840 | if (_obj1) | |
1841 | delete _arg1; | |
1842 | } | |
1843 | return _resultobj; | |
1844 | } | |
1845 | ||
1846 | #define wxListItem_m_text_get(_swigobj) (&_swigobj->m_text) | |
1847 | static PyObject *_wrap_wxListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1848 | PyObject * _resultobj; | |
1849 | wxString * _result; | |
1850 | wxListItem * _arg0; | |
1851 | PyObject * _argo0 = 0; | |
1852 | char *_kwnames[] = { "self", NULL }; | |
1853 | ||
1854 | self = self; | |
1855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_text_get",_kwnames,&_argo0)) | |
1856 | return NULL; | |
1857 | if (_argo0) { | |
1858 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1859 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1860 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_text_get. Expected _wxListItem_p."); | |
1861 | return NULL; | |
1862 | } | |
1863 | } | |
1864 | { | |
1865 | wxPy_BEGIN_ALLOW_THREADS; | |
1866 | _result = (wxString *)wxListItem_m_text_get(_arg0); | |
1867 | ||
1868 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1869 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1870 | }{ |
1871 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1872 | } | |
1873 | return _resultobj; | |
1874 | } | |
1875 | ||
1876 | #define wxListItem_m_image_set(_swigobj,_swigval) (_swigobj->m_image = _swigval,_swigval) | |
1877 | static PyObject *_wrap_wxListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1878 | PyObject * _resultobj; | |
1879 | int _result; | |
1880 | wxListItem * _arg0; | |
1881 | int _arg1; | |
1882 | PyObject * _argo0 = 0; | |
1883 | char *_kwnames[] = { "self","m_image", NULL }; | |
1884 | ||
1885 | self = self; | |
1886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_image_set",_kwnames,&_argo0,&_arg1)) | |
1887 | return NULL; | |
1888 | if (_argo0) { | |
1889 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1890 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1891 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_set. Expected _wxListItem_p."); | |
1892 | return NULL; | |
1893 | } | |
1894 | } | |
1895 | { | |
1896 | wxPy_BEGIN_ALLOW_THREADS; | |
1897 | _result = (int )wxListItem_m_image_set(_arg0,_arg1); | |
1898 | ||
1899 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1900 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1901 | } _resultobj = Py_BuildValue("i",_result); |
1902 | return _resultobj; | |
1903 | } | |
1904 | ||
1905 | #define wxListItem_m_image_get(_swigobj) ((int ) _swigobj->m_image) | |
1906 | static PyObject *_wrap_wxListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1907 | PyObject * _resultobj; | |
1908 | int _result; | |
1909 | wxListItem * _arg0; | |
1910 | PyObject * _argo0 = 0; | |
1911 | char *_kwnames[] = { "self", NULL }; | |
1912 | ||
1913 | self = self; | |
1914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_image_get",_kwnames,&_argo0)) | |
1915 | return NULL; | |
1916 | if (_argo0) { | |
1917 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1918 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1919 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_image_get. Expected _wxListItem_p."); | |
1920 | return NULL; | |
1921 | } | |
1922 | } | |
1923 | { | |
1924 | wxPy_BEGIN_ALLOW_THREADS; | |
1925 | _result = (int )wxListItem_m_image_get(_arg0); | |
1926 | ||
1927 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1928 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1929 | } _resultobj = Py_BuildValue("i",_result); |
1930 | return _resultobj; | |
1931 | } | |
1932 | ||
1933 | #define wxListItem_m_data_set(_swigobj,_swigval) (_swigobj->m_data = _swigval,_swigval) | |
1934 | static PyObject *_wrap_wxListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1935 | PyObject * _resultobj; | |
1936 | long _result; | |
1937 | wxListItem * _arg0; | |
1938 | long _arg1; | |
1939 | PyObject * _argo0 = 0; | |
1940 | char *_kwnames[] = { "self","m_data", NULL }; | |
1941 | ||
1942 | self = self; | |
1943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListItem_m_data_set",_kwnames,&_argo0,&_arg1)) | |
1944 | return NULL; | |
1945 | if (_argo0) { | |
1946 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1947 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1948 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_set. Expected _wxListItem_p."); | |
1949 | return NULL; | |
1950 | } | |
1951 | } | |
1952 | { | |
1953 | wxPy_BEGIN_ALLOW_THREADS; | |
1954 | _result = (long )wxListItem_m_data_set(_arg0,_arg1); | |
1955 | ||
1956 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1957 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1958 | } _resultobj = Py_BuildValue("l",_result); |
1959 | return _resultobj; | |
1960 | } | |
1961 | ||
1962 | #define wxListItem_m_data_get(_swigobj) ((long ) _swigobj->m_data) | |
1963 | static PyObject *_wrap_wxListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1964 | PyObject * _resultobj; | |
1965 | long _result; | |
1966 | wxListItem * _arg0; | |
1967 | PyObject * _argo0 = 0; | |
1968 | char *_kwnames[] = { "self", NULL }; | |
1969 | ||
1970 | self = self; | |
1971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_data_get",_kwnames,&_argo0)) | |
1972 | return NULL; | |
1973 | if (_argo0) { | |
1974 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1975 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
1976 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_data_get. Expected _wxListItem_p."); | |
1977 | return NULL; | |
1978 | } | |
1979 | } | |
1980 | { | |
1981 | wxPy_BEGIN_ALLOW_THREADS; | |
1982 | _result = (long )wxListItem_m_data_get(_arg0); | |
1983 | ||
1984 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 1985 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
1986 | } _resultobj = Py_BuildValue("l",_result); |
1987 | return _resultobj; | |
1988 | } | |
1989 | ||
1990 | #define wxListItem_m_format_set(_swigobj,_swigval) (_swigobj->m_format = _swigval,_swigval) | |
1991 | static PyObject *_wrap_wxListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1992 | PyObject * _resultobj; | |
1993 | int _result; | |
1994 | wxListItem * _arg0; | |
1995 | int _arg1; | |
1996 | PyObject * _argo0 = 0; | |
1997 | char *_kwnames[] = { "self","m_format", NULL }; | |
1998 | ||
1999 | self = self; | |
2000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_format_set",_kwnames,&_argo0,&_arg1)) | |
2001 | return NULL; | |
2002 | if (_argo0) { | |
2003 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2004 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
2005 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_set. Expected _wxListItem_p."); | |
2006 | return NULL; | |
2007 | } | |
2008 | } | |
2009 | { | |
2010 | wxPy_BEGIN_ALLOW_THREADS; | |
2011 | _result = (int )wxListItem_m_format_set(_arg0,_arg1); | |
2012 | ||
2013 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2014 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2015 | } _resultobj = Py_BuildValue("i",_result); |
2016 | return _resultobj; | |
2017 | } | |
2018 | ||
2019 | #define wxListItem_m_format_get(_swigobj) ((int ) _swigobj->m_format) | |
2020 | static PyObject *_wrap_wxListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2021 | PyObject * _resultobj; | |
2022 | int _result; | |
2023 | wxListItem * _arg0; | |
2024 | PyObject * _argo0 = 0; | |
2025 | char *_kwnames[] = { "self", NULL }; | |
2026 | ||
2027 | self = self; | |
2028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_format_get",_kwnames,&_argo0)) | |
2029 | return NULL; | |
2030 | if (_argo0) { | |
2031 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2032 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
2033 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_format_get. Expected _wxListItem_p."); | |
2034 | return NULL; | |
2035 | } | |
2036 | } | |
2037 | { | |
2038 | wxPy_BEGIN_ALLOW_THREADS; | |
2039 | _result = (int )wxListItem_m_format_get(_arg0); | |
2040 | ||
2041 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2042 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2043 | } _resultobj = Py_BuildValue("i",_result); |
2044 | return _resultobj; | |
8ab979d7 RD |
2045 | } |
2046 | ||
f6bcfd97 BP |
2047 | #define wxListItem_m_width_set(_swigobj,_swigval) (_swigobj->m_width = _swigval,_swigval) |
2048 | static PyObject *_wrap_wxListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2049 | PyObject * _resultobj; |
f6bcfd97 | 2050 | int _result; |
af309447 | 2051 | wxListItem * _arg0; |
f6bcfd97 | 2052 | int _arg1; |
1d99702e | 2053 | PyObject * _argo0 = 0; |
f6bcfd97 | 2054 | char *_kwnames[] = { "self","m_width", NULL }; |
af309447 RD |
2055 | |
2056 | self = self; | |
f6bcfd97 | 2057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListItem_m_width_set",_kwnames,&_argo0,&_arg1)) |
af309447 | 2058 | return NULL; |
1d99702e RD |
2059 | if (_argo0) { |
2060 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2061 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 | 2062 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_set. Expected _wxListItem_p."); |
af309447 RD |
2063 | return NULL; |
2064 | } | |
2065 | } | |
cf694132 RD |
2066 | { |
2067 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2068 | _result = (int )wxListItem_m_width_set(_arg0,_arg1); |
cf694132 RD |
2069 | |
2070 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2071 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2072 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2073 | return _resultobj; |
2074 | } | |
2075 | ||
f6bcfd97 BP |
2076 | #define wxListItem_m_width_get(_swigobj) ((int ) _swigobj->m_width) |
2077 | static PyObject *_wrap_wxListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2078 | PyObject * _resultobj; |
f6bcfd97 | 2079 | int _result; |
8ab979d7 | 2080 | wxListItem * _arg0; |
1d99702e | 2081 | PyObject * _argo0 = 0; |
efc5f224 | 2082 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2083 | |
2084 | self = self; | |
f6bcfd97 | 2085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListItem_m_width_get",_kwnames,&_argo0)) |
8ab979d7 | 2086 | return NULL; |
1d99702e RD |
2087 | if (_argo0) { |
2088 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2089 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListItem_p")) { | |
f6bcfd97 BP |
2090 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListItem_m_width_get. Expected _wxListItem_p."); |
2091 | return NULL; | |
2092 | } | |
2093 | } | |
2094 | { | |
2095 | wxPy_BEGIN_ALLOW_THREADS; | |
2096 | _result = (int )wxListItem_m_width_get(_arg0); | |
2097 | ||
2098 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2099 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2100 | } _resultobj = Py_BuildValue("i",_result); |
2101 | return _resultobj; | |
2102 | } | |
2103 | ||
c368d904 RD |
2104 | static void *SwigwxListEventTowxNotifyEvent(void *ptr) { |
2105 | wxListEvent *src; | |
2106 | wxNotifyEvent *dest; | |
2107 | src = (wxListEvent *) ptr; | |
2108 | dest = (wxNotifyEvent *) src; | |
2109 | return (void *) dest; | |
2110 | } | |
2111 | ||
f6bcfd97 BP |
2112 | static void *SwigwxListEventTowxCommandEvent(void *ptr) { |
2113 | wxListEvent *src; | |
2114 | wxCommandEvent *dest; | |
2115 | src = (wxListEvent *) ptr; | |
2116 | dest = (wxCommandEvent *) src; | |
2117 | return (void *) dest; | |
2118 | } | |
2119 | ||
2120 | static void *SwigwxListEventTowxEvent(void *ptr) { | |
2121 | wxListEvent *src; | |
2122 | wxEvent *dest; | |
2123 | src = (wxListEvent *) ptr; | |
2124 | dest = (wxEvent *) src; | |
2125 | return (void *) dest; | |
2126 | } | |
2127 | ||
9416aa89 RD |
2128 | static void *SwigwxListEventTowxObject(void *ptr) { |
2129 | wxListEvent *src; | |
2130 | wxObject *dest; | |
2131 | src = (wxListEvent *) ptr; | |
2132 | dest = (wxObject *) src; | |
2133 | return (void *) dest; | |
2134 | } | |
2135 | ||
f6bcfd97 BP |
2136 | #define wxListEvent_m_code_set(_swigobj,_swigval) (_swigobj->m_code = _swigval,_swigval) |
2137 | static PyObject *_wrap_wxListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2138 | PyObject * _resultobj; | |
2139 | int _result; | |
2140 | wxListEvent * _arg0; | |
2141 | int _arg1; | |
2142 | PyObject * _argo0 = 0; | |
2143 | char *_kwnames[] = { "self","m_code", NULL }; | |
2144 | ||
2145 | self = self; | |
2146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_code_set",_kwnames,&_argo0,&_arg1)) | |
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_code_set. Expected _wxListEvent_p."); | |
2152 | return NULL; | |
2153 | } | |
2154 | } | |
2155 | { | |
2156 | wxPy_BEGIN_ALLOW_THREADS; | |
2157 | _result = (int )wxListEvent_m_code_set(_arg0,_arg1); | |
2158 | ||
2159 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2160 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2161 | } _resultobj = Py_BuildValue("i",_result); |
2162 | return _resultobj; | |
2163 | } | |
2164 | ||
2165 | #define wxListEvent_m_code_get(_swigobj) ((int ) _swigobj->m_code) | |
2166 | static PyObject *_wrap_wxListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2167 | PyObject * _resultobj; | |
2168 | int _result; | |
2169 | wxListEvent * _arg0; | |
2170 | PyObject * _argo0 = 0; | |
2171 | char *_kwnames[] = { "self", NULL }; | |
2172 | ||
2173 | self = self; | |
2174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_code_get",_kwnames,&_argo0)) | |
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_code_get. Expected _wxListEvent_p."); | |
2180 | return NULL; | |
2181 | } | |
2182 | } | |
2183 | { | |
2184 | wxPy_BEGIN_ALLOW_THREADS; | |
2185 | _result = (int )wxListEvent_m_code_get(_arg0); | |
2186 | ||
2187 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2188 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2189 | } _resultobj = Py_BuildValue("i",_result); |
2190 | return _resultobj; | |
2191 | } | |
2192 | ||
2193 | #define wxListEvent_m_itemIndex_set(_swigobj,_swigval) (_swigobj->m_itemIndex = _swigval,_swigval) | |
2194 | static PyObject *_wrap_wxListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2195 | PyObject * _resultobj; | |
2196 | long _result; | |
2197 | wxListEvent * _arg0; | |
2198 | long _arg1; | |
2199 | PyObject * _argo0 = 0; | |
2200 | char *_kwnames[] = { "self","m_itemIndex", NULL }; | |
2201 | ||
2202 | self = self; | |
2203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListEvent_m_itemIndex_set",_kwnames,&_argo0,&_arg1)) | |
2204 | return NULL; | |
2205 | if (_argo0) { | |
2206 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2207 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2208 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_set. Expected _wxListEvent_p."); | |
2209 | return NULL; | |
2210 | } | |
2211 | } | |
2212 | { | |
2213 | wxPy_BEGIN_ALLOW_THREADS; | |
2214 | _result = (long )wxListEvent_m_itemIndex_set(_arg0,_arg1); | |
2215 | ||
2216 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2217 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2218 | } _resultobj = Py_BuildValue("l",_result); |
2219 | return _resultobj; | |
2220 | } | |
2221 | ||
2222 | #define wxListEvent_m_itemIndex_get(_swigobj) ((long ) _swigobj->m_itemIndex) | |
2223 | static PyObject *_wrap_wxListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2224 | PyObject * _resultobj; | |
2225 | long _result; | |
2226 | wxListEvent * _arg0; | |
2227 | PyObject * _argo0 = 0; | |
2228 | char *_kwnames[] = { "self", NULL }; | |
2229 | ||
2230 | self = self; | |
2231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_itemIndex_get",_kwnames,&_argo0)) | |
2232 | return NULL; | |
2233 | if (_argo0) { | |
2234 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2235 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2236 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_itemIndex_get. Expected _wxListEvent_p."); | |
2237 | return NULL; | |
2238 | } | |
2239 | } | |
2240 | { | |
2241 | wxPy_BEGIN_ALLOW_THREADS; | |
2242 | _result = (long )wxListEvent_m_itemIndex_get(_arg0); | |
2243 | ||
2244 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2245 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2246 | } _resultobj = Py_BuildValue("l",_result); |
2247 | return _resultobj; | |
2248 | } | |
2249 | ||
2250 | #define wxListEvent_m_oldItemIndex_set(_swigobj,_swigval) (_swigobj->m_oldItemIndex = _swigval,_swigval) | |
2251 | static PyObject *_wrap_wxListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2252 | PyObject * _resultobj; | |
2253 | long _result; | |
2254 | wxListEvent * _arg0; | |
2255 | long _arg1; | |
2256 | PyObject * _argo0 = 0; | |
2257 | char *_kwnames[] = { "self","m_oldItemIndex", NULL }; | |
2258 | ||
2259 | self = self; | |
2260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListEvent_m_oldItemIndex_set",_kwnames,&_argo0,&_arg1)) | |
2261 | return NULL; | |
2262 | if (_argo0) { | |
2263 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2264 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2265 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_set. Expected _wxListEvent_p."); | |
2266 | return NULL; | |
2267 | } | |
2268 | } | |
2269 | { | |
2270 | wxPy_BEGIN_ALLOW_THREADS; | |
2271 | _result = (long )wxListEvent_m_oldItemIndex_set(_arg0,_arg1); | |
2272 | ||
2273 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2274 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2275 | } _resultobj = Py_BuildValue("l",_result); |
2276 | return _resultobj; | |
2277 | } | |
2278 | ||
2279 | #define wxListEvent_m_oldItemIndex_get(_swigobj) ((long ) _swigobj->m_oldItemIndex) | |
2280 | static PyObject *_wrap_wxListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2281 | PyObject * _resultobj; | |
2282 | long _result; | |
2283 | wxListEvent * _arg0; | |
2284 | PyObject * _argo0 = 0; | |
2285 | char *_kwnames[] = { "self", NULL }; | |
2286 | ||
2287 | self = self; | |
2288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_oldItemIndex_get",_kwnames,&_argo0)) | |
2289 | return NULL; | |
2290 | if (_argo0) { | |
2291 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2292 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2293 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_oldItemIndex_get. Expected _wxListEvent_p."); | |
2294 | return NULL; | |
2295 | } | |
2296 | } | |
2297 | { | |
2298 | wxPy_BEGIN_ALLOW_THREADS; | |
2299 | _result = (long )wxListEvent_m_oldItemIndex_get(_arg0); | |
2300 | ||
2301 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2302 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2303 | } _resultobj = Py_BuildValue("l",_result); |
2304 | return _resultobj; | |
2305 | } | |
2306 | ||
2307 | #define wxListEvent_m_col_set(_swigobj,_swigval) (_swigobj->m_col = _swigval,_swigval) | |
2308 | static PyObject *_wrap_wxListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2309 | PyObject * _resultobj; | |
2310 | int _result; | |
2311 | wxListEvent * _arg0; | |
2312 | int _arg1; | |
2313 | PyObject * _argo0 = 0; | |
2314 | char *_kwnames[] = { "self","m_col", NULL }; | |
2315 | ||
2316 | self = self; | |
2317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_col_set",_kwnames,&_argo0,&_arg1)) | |
2318 | return NULL; | |
2319 | if (_argo0) { | |
2320 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2321 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2322 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_set. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2323 | return NULL; |
2324 | } | |
2325 | } | |
cf694132 RD |
2326 | { |
2327 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2328 | _result = (int )wxListEvent_m_col_set(_arg0,_arg1); |
cf694132 RD |
2329 | |
2330 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2331 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2332 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2333 | return _resultobj; |
2334 | } | |
2335 | ||
f6bcfd97 BP |
2336 | #define wxListEvent_m_col_get(_swigobj) ((int ) _swigobj->m_col) |
2337 | static PyObject *_wrap_wxListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
2338 | PyObject * _resultobj; |
2339 | int _result; | |
f6bcfd97 | 2340 | wxListEvent * _arg0; |
1d99702e | 2341 | PyObject * _argo0 = 0; |
f6bcfd97 | 2342 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2343 | |
2344 | self = self; | |
f6bcfd97 | 2345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_col_get",_kwnames,&_argo0)) |
af309447 | 2346 | return NULL; |
1d99702e RD |
2347 | if (_argo0) { |
2348 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2349 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2350 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_col_get. Expected _wxListEvent_p."); | |
af309447 RD |
2351 | return NULL; |
2352 | } | |
2353 | } | |
cf694132 RD |
2354 | { |
2355 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2356 | _result = (int )wxListEvent_m_col_get(_arg0); |
cf694132 RD |
2357 | |
2358 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2359 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2360 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2361 | return _resultobj; |
2362 | } | |
2363 | ||
f6bcfd97 BP |
2364 | #define wxListEvent_m_cancelled_set(_swigobj,_swigval) (_swigobj->m_cancelled = _swigval,_swigval) |
2365 | static PyObject *_wrap_wxListEvent_m_cancelled_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2366 | PyObject * _resultobj; |
f6bcfd97 BP |
2367 | bool _result; |
2368 | wxListEvent * _arg0; | |
2369 | bool _arg1; | |
1d99702e | 2370 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
2371 | int tempbool1; |
2372 | char *_kwnames[] = { "self","m_cancelled", NULL }; | |
8ab979d7 RD |
2373 | |
2374 | self = self; | |
f6bcfd97 | 2375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListEvent_m_cancelled_set",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 2376 | return NULL; |
1d99702e RD |
2377 | if (_argo0) { |
2378 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2379 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_cancelled_set. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2381 | return NULL; |
2382 | } | |
2383 | } | |
f6bcfd97 | 2384 | _arg1 = (bool ) tempbool1; |
cf694132 RD |
2385 | { |
2386 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2387 | _result = (bool )wxListEvent_m_cancelled_set(_arg0,_arg1); |
cf694132 RD |
2388 | |
2389 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2390 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2391 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2392 | return _resultobj; |
2393 | } | |
2394 | ||
f6bcfd97 BP |
2395 | #define wxListEvent_m_cancelled_get(_swigobj) ((bool ) _swigobj->m_cancelled) |
2396 | static PyObject *_wrap_wxListEvent_m_cancelled_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2397 | PyObject * _resultobj; |
f6bcfd97 BP |
2398 | bool _result; |
2399 | wxListEvent * _arg0; | |
1d99702e | 2400 | PyObject * _argo0 = 0; |
f6bcfd97 | 2401 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2402 | |
2403 | self = self; | |
f6bcfd97 | 2404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_cancelled_get",_kwnames,&_argo0)) |
af309447 | 2405 | return NULL; |
1d99702e RD |
2406 | if (_argo0) { |
2407 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2408 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2409 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_cancelled_get. Expected _wxListEvent_p."); | |
af309447 RD |
2410 | return NULL; |
2411 | } | |
2412 | } | |
cf694132 RD |
2413 | { |
2414 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2415 | _result = (bool )wxListEvent_m_cancelled_get(_arg0); |
cf694132 RD |
2416 | |
2417 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2418 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2419 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2420 | return _resultobj; |
2421 | } | |
2422 | ||
f6bcfd97 BP |
2423 | #define wxListEvent_m_pointDrag_set(_swigobj,_swigval) (_swigobj->m_pointDrag = *(_swigval),_swigval) |
2424 | static PyObject *_wrap_wxListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2425 | PyObject * _resultobj; |
f6bcfd97 BP |
2426 | wxPoint * _result; |
2427 | wxListEvent * _arg0; | |
2428 | wxPoint * _arg1; | |
1d99702e | 2429 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
2430 | wxPoint temp; |
2431 | PyObject * _obj1 = 0; | |
2432 | char *_kwnames[] = { "self","m_pointDrag", NULL }; | |
2433 | char _ptemp[128]; | |
8ab979d7 RD |
2434 | |
2435 | self = self; | |
f6bcfd97 | 2436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListEvent_m_pointDrag_set",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 2437 | return NULL; |
1d99702e RD |
2438 | if (_argo0) { |
2439 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2440 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2441 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_set. Expected _wxListEvent_p."); | |
8ab979d7 RD |
2442 | return NULL; |
2443 | } | |
2444 | } | |
f6bcfd97 BP |
2445 | { |
2446 | _arg1 = &temp; | |
2447 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2448 | return NULL; | |
2449 | } | |
cf694132 RD |
2450 | { |
2451 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2452 | _result = (wxPoint *)wxListEvent_m_pointDrag_set(_arg0,_arg1); |
cf694132 RD |
2453 | |
2454 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2455 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2456 | } if (_result) { |
2457 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
2458 | _resultobj = Py_BuildValue("s",_ptemp); | |
2459 | } else { | |
2460 | Py_INCREF(Py_None); | |
2461 | _resultobj = Py_None; | |
2462 | } | |
8ab979d7 RD |
2463 | return _resultobj; |
2464 | } | |
2465 | ||
f6bcfd97 BP |
2466 | #define wxListEvent_m_pointDrag_get(_swigobj) (&_swigobj->m_pointDrag) |
2467 | static PyObject *_wrap_wxListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2468 | PyObject * _resultobj; |
f6bcfd97 BP |
2469 | wxPoint * _result; |
2470 | wxListEvent * _arg0; | |
2471 | PyObject * _argo0 = 0; | |
2472 | char *_kwnames[] = { "self", NULL }; | |
8ab979d7 RD |
2473 | char _ptemp[128]; |
2474 | ||
2475 | self = self; | |
f6bcfd97 BP |
2476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_pointDrag_get",_kwnames,&_argo0)) |
2477 | return NULL; | |
2478 | if (_argo0) { | |
2479 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2480 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
2481 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_pointDrag_get. Expected _wxListEvent_p."); | |
8ab979d7 | 2482 | return NULL; |
f6bcfd97 BP |
2483 | } |
2484 | } | |
cf694132 RD |
2485 | { |
2486 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2487 | _result = (wxPoint *)wxListEvent_m_pointDrag_get(_arg0); |
cf694132 RD |
2488 | |
2489 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2490 | if (PyErr_Occurred()) return NULL; |
1d99702e | 2491 | } if (_result) { |
f6bcfd97 | 2492 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); |
1d99702e RD |
2493 | _resultobj = Py_BuildValue("s",_ptemp); |
2494 | } else { | |
2495 | Py_INCREF(Py_None); | |
2496 | _resultobj = Py_None; | |
2497 | } | |
8ab979d7 RD |
2498 | return _resultobj; |
2499 | } | |
2500 | ||
f6bcfd97 BP |
2501 | #define wxListEvent_m_item_set(_swigobj,_swigval) (_swigobj->m_item = *(_swigval),_swigval) |
2502 | static PyObject *_wrap_wxListEvent_m_item_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2503 | PyObject * _resultobj; |
f6bcfd97 BP |
2504 | wxListItem * _result; |
2505 | wxListEvent * _arg0; | |
2506 | wxListItem * _arg1; | |
1d99702e | 2507 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
2508 | PyObject * _argo1 = 0; |
2509 | char *_kwnames[] = { "self","m_item", NULL }; | |
8ab979d7 RD |
2510 | |
2511 | self = self; | |
f6bcfd97 | 2512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListEvent_m_item_set",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 2513 | return NULL; |
1d99702e RD |
2514 | if (_argo0) { |
2515 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
2516 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { |
2517 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_set. Expected _wxListEvent_p."); | |
2518 | return NULL; | |
2519 | } | |
2520 | } | |
2521 | if (_argo1) { | |
2522 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2523 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
2524 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListEvent_m_item_set. Expected _wxListItem_p."); | |
8ab979d7 RD |
2525 | return NULL; |
2526 | } | |
2527 | } | |
cf694132 RD |
2528 | { |
2529 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2530 | _result = (wxListItem *)wxListEvent_m_item_set(_arg0,_arg1); |
cf694132 RD |
2531 | |
2532 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2533 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 2534 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
2535 | return _resultobj; |
2536 | } | |
2537 | ||
f6bcfd97 BP |
2538 | #define wxListEvent_m_item_get(_swigobj) (&_swigobj->m_item) |
2539 | static PyObject *_wrap_wxListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2540 | PyObject * _resultobj; |
f6bcfd97 | 2541 | wxListItem * _result; |
af309447 | 2542 | wxListEvent * _arg0; |
1d99702e | 2543 | PyObject * _argo0 = 0; |
f6bcfd97 | 2544 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2545 | |
2546 | self = self; | |
f6bcfd97 | 2547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_m_item_get",_kwnames,&_argo0)) |
af309447 | 2548 | return NULL; |
1d99702e RD |
2549 | if (_argo0) { |
2550 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2551 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2552 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_m_item_get. Expected _wxListEvent_p."); |
af309447 RD |
2553 | return NULL; |
2554 | } | |
2555 | } | |
cf694132 RD |
2556 | { |
2557 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2558 | _result = (wxListItem *)wxListEvent_m_item_get(_arg0); |
cf694132 RD |
2559 | |
2560 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2561 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 2562 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
2563 | return _resultobj; |
2564 | } | |
2565 | ||
f6bcfd97 BP |
2566 | #define wxListEvent_GetCode(_swigobj) (_swigobj->GetCode()) |
2567 | static PyObject *_wrap_wxListEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2568 | PyObject * _resultobj; |
2569 | int _result; | |
2570 | wxListEvent * _arg0; | |
1d99702e | 2571 | PyObject * _argo0 = 0; |
efc5f224 | 2572 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2573 | |
2574 | self = self; | |
f6bcfd97 | 2575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetCode",_kwnames,&_argo0)) |
8ab979d7 | 2576 | return NULL; |
1d99702e RD |
2577 | if (_argo0) { |
2578 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2579 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2580 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetCode. Expected _wxListEvent_p."); |
8ab979d7 RD |
2581 | return NULL; |
2582 | } | |
2583 | } | |
cf694132 RD |
2584 | { |
2585 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2586 | _result = (int )wxListEvent_GetCode(_arg0); |
cf694132 RD |
2587 | |
2588 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2589 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2590 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2591 | return _resultobj; |
2592 | } | |
2593 | ||
f6bcfd97 BP |
2594 | #define wxListEvent_GetIndex(_swigobj) (_swigobj->GetIndex()) |
2595 | static PyObject *_wrap_wxListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
2596 | PyObject * _resultobj; |
2597 | long _result; | |
2598 | wxListEvent * _arg0; | |
1d99702e | 2599 | PyObject * _argo0 = 0; |
f6bcfd97 | 2600 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2601 | |
2602 | self = self; | |
f6bcfd97 | 2603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetIndex",_kwnames,&_argo0)) |
af309447 | 2604 | return NULL; |
1d99702e RD |
2605 | if (_argo0) { |
2606 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2607 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2608 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetIndex. Expected _wxListEvent_p."); |
af309447 RD |
2609 | return NULL; |
2610 | } | |
2611 | } | |
cf694132 RD |
2612 | { |
2613 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2614 | _result = (long )wxListEvent_GetIndex(_arg0); |
cf694132 RD |
2615 | |
2616 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2617 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2618 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2619 | return _resultobj; |
2620 | } | |
2621 | ||
f6bcfd97 BP |
2622 | #define wxListEvent_GetOldIndex(_swigobj) (_swigobj->GetOldIndex()) |
2623 | static PyObject *_wrap_wxListEvent_GetOldIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2624 | PyObject * _resultobj; |
2625 | long _result; | |
2626 | wxListEvent * _arg0; | |
1d99702e | 2627 | PyObject * _argo0 = 0; |
efc5f224 | 2628 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2629 | |
2630 | self = self; | |
f6bcfd97 | 2631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetOldIndex",_kwnames,&_argo0)) |
8ab979d7 | 2632 | return NULL; |
1d99702e RD |
2633 | if (_argo0) { |
2634 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2635 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2636 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetOldIndex. Expected _wxListEvent_p."); |
8ab979d7 RD |
2637 | return NULL; |
2638 | } | |
2639 | } | |
cf694132 RD |
2640 | { |
2641 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2642 | _result = (long )wxListEvent_GetOldIndex(_arg0); |
cf694132 RD |
2643 | |
2644 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2645 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2646 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2647 | return _resultobj; |
2648 | } | |
2649 | ||
f6bcfd97 BP |
2650 | #define wxListEvent_GetOldItem(_swigobj) (_swigobj->GetOldItem()) |
2651 | static PyObject *_wrap_wxListEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
2652 | PyObject * _resultobj; |
2653 | long _result; | |
2654 | wxListEvent * _arg0; | |
1d99702e | 2655 | PyObject * _argo0 = 0; |
f6bcfd97 | 2656 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2657 | |
2658 | self = self; | |
f6bcfd97 | 2659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetOldItem",_kwnames,&_argo0)) |
af309447 | 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_GetOldItem. Expected _wxListEvent_p."); |
af309447 RD |
2665 | return NULL; |
2666 | } | |
2667 | } | |
cf694132 RD |
2668 | { |
2669 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2670 | _result = (long )wxListEvent_GetOldItem(_arg0); |
cf694132 RD |
2671 | |
2672 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2673 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2674 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2675 | return _resultobj; |
2676 | } | |
2677 | ||
f6bcfd97 BP |
2678 | #define wxListEvent_GetColumn(_swigobj) (_swigobj->GetColumn()) |
2679 | static PyObject *_wrap_wxListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2680 | PyObject * _resultobj; |
f6bcfd97 | 2681 | int _result; |
8ab979d7 | 2682 | wxListEvent * _arg0; |
1d99702e | 2683 | PyObject * _argo0 = 0; |
efc5f224 | 2684 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2685 | |
2686 | self = self; | |
f6bcfd97 | 2687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetColumn",_kwnames,&_argo0)) |
8ab979d7 | 2688 | return NULL; |
1d99702e RD |
2689 | if (_argo0) { |
2690 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2691 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2692 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetColumn. Expected _wxListEvent_p."); |
8ab979d7 RD |
2693 | return NULL; |
2694 | } | |
2695 | } | |
cf694132 RD |
2696 | { |
2697 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2698 | _result = (int )wxListEvent_GetColumn(_arg0); |
cf694132 RD |
2699 | |
2700 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2701 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2702 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2703 | return _resultobj; |
2704 | } | |
2705 | ||
f6bcfd97 BP |
2706 | #define wxListEvent_Cancelled(_swigobj) (_swigobj->Cancelled()) |
2707 | static PyObject *_wrap_wxListEvent_Cancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2708 | PyObject * _resultobj; |
f6bcfd97 | 2709 | bool _result; |
af309447 | 2710 | wxListEvent * _arg0; |
1d99702e | 2711 | PyObject * _argo0 = 0; |
f6bcfd97 | 2712 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2713 | |
2714 | self = self; | |
f6bcfd97 | 2715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_Cancelled",_kwnames,&_argo0)) |
af309447 | 2716 | return NULL; |
1d99702e RD |
2717 | if (_argo0) { |
2718 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2719 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2720 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_Cancelled. Expected _wxListEvent_p."); |
af309447 RD |
2721 | return NULL; |
2722 | } | |
2723 | } | |
cf694132 RD |
2724 | { |
2725 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2726 | _result = (bool )wxListEvent_Cancelled(_arg0); |
cf694132 RD |
2727 | |
2728 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2729 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2730 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2731 | return _resultobj; |
2732 | } | |
2733 | ||
f6bcfd97 BP |
2734 | #define wxListEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) |
2735 | static PyObject *_wrap_wxListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2736 | PyObject * _resultobj; |
f6bcfd97 | 2737 | wxPoint * _result; |
8ab979d7 | 2738 | wxListEvent * _arg0; |
1d99702e | 2739 | PyObject * _argo0 = 0; |
efc5f224 | 2740 | char *_kwnames[] = { "self", NULL }; |
f6bcfd97 | 2741 | char _ptemp[128]; |
8ab979d7 RD |
2742 | |
2743 | self = self; | |
f6bcfd97 | 2744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetPoint",_kwnames,&_argo0)) |
8ab979d7 | 2745 | return NULL; |
1d99702e RD |
2746 | if (_argo0) { |
2747 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2748 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2749 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetPoint. Expected _wxListEvent_p."); |
8ab979d7 RD |
2750 | return NULL; |
2751 | } | |
2752 | } | |
cf694132 RD |
2753 | { |
2754 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2755 | _result = new wxPoint (wxListEvent_GetPoint(_arg0)); |
cf694132 RD |
2756 | |
2757 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2758 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2759 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
2760 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
2761 | return _resultobj; |
2762 | } | |
2763 | ||
f6bcfd97 BP |
2764 | #define wxListEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) |
2765 | static PyObject *_wrap_wxListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2766 | PyObject * _resultobj; |
f6bcfd97 | 2767 | wxString * _result; |
af309447 | 2768 | wxListEvent * _arg0; |
1d99702e | 2769 | PyObject * _argo0 = 0; |
f6bcfd97 | 2770 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2771 | |
2772 | self = self; | |
f6bcfd97 | 2773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetLabel",_kwnames,&_argo0)) |
af309447 | 2774 | return NULL; |
1d99702e RD |
2775 | if (_argo0) { |
2776 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2777 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetLabel. Expected _wxListEvent_p."); |
af309447 RD |
2779 | return NULL; |
2780 | } | |
2781 | } | |
cf694132 RD |
2782 | { |
2783 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
2784 | const wxString & _result_ref = wxListEvent_GetLabel(_arg0); |
2785 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
2786 | |
2787 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2788 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2789 | }{ |
2790 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2791 | } | |
af309447 RD |
2792 | return _resultobj; |
2793 | } | |
2794 | ||
f6bcfd97 BP |
2795 | #define wxListEvent_GetText(_swigobj) (_swigobj->GetText()) |
2796 | static PyObject *_wrap_wxListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2797 | PyObject * _resultobj; |
f6bcfd97 | 2798 | wxString * _result; |
8ab979d7 | 2799 | wxListEvent * _arg0; |
1d99702e | 2800 | PyObject * _argo0 = 0; |
efc5f224 | 2801 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2802 | |
2803 | self = self; | |
f6bcfd97 | 2804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetText",_kwnames,&_argo0)) |
8ab979d7 | 2805 | return NULL; |
1d99702e RD |
2806 | if (_argo0) { |
2807 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2808 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2809 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetText. Expected _wxListEvent_p."); |
8ab979d7 RD |
2810 | return NULL; |
2811 | } | |
2812 | } | |
cf694132 RD |
2813 | { |
2814 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
2815 | const wxString & _result_ref = wxListEvent_GetText(_arg0); |
2816 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
2817 | |
2818 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2819 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2820 | }{ |
2821 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2822 | } | |
8ab979d7 RD |
2823 | return _resultobj; |
2824 | } | |
2825 | ||
f6bcfd97 BP |
2826 | #define wxListEvent_GetImage(_swigobj) (_swigobj->GetImage()) |
2827 | static PyObject *_wrap_wxListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2828 | PyObject * _resultobj; |
f6bcfd97 | 2829 | int _result; |
af309447 | 2830 | wxListEvent * _arg0; |
1d99702e | 2831 | PyObject * _argo0 = 0; |
f6bcfd97 | 2832 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2833 | |
2834 | self = self; | |
f6bcfd97 | 2835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetImage",_kwnames,&_argo0)) |
af309447 | 2836 | return NULL; |
1d99702e RD |
2837 | if (_argo0) { |
2838 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2839 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2840 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetImage. Expected _wxListEvent_p."); |
af309447 RD |
2841 | return NULL; |
2842 | } | |
2843 | } | |
cf694132 RD |
2844 | { |
2845 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2846 | _result = (int )wxListEvent_GetImage(_arg0); |
cf694132 RD |
2847 | |
2848 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2849 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2850 | } _resultobj = Py_BuildValue("i",_result); |
af309447 RD |
2851 | return _resultobj; |
2852 | } | |
2853 | ||
f6bcfd97 BP |
2854 | #define wxListEvent_GetData(_swigobj) (_swigobj->GetData()) |
2855 | static PyObject *_wrap_wxListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 2856 | PyObject * _resultobj; |
f6bcfd97 | 2857 | long _result; |
8ab979d7 | 2858 | wxListEvent * _arg0; |
1d99702e | 2859 | PyObject * _argo0 = 0; |
efc5f224 | 2860 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2861 | |
2862 | self = self; | |
f6bcfd97 | 2863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetData",_kwnames,&_argo0)) |
8ab979d7 | 2864 | return NULL; |
1d99702e RD |
2865 | if (_argo0) { |
2866 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2867 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2868 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetData. Expected _wxListEvent_p."); |
8ab979d7 RD |
2869 | return NULL; |
2870 | } | |
2871 | } | |
cf694132 RD |
2872 | { |
2873 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2874 | _result = (long )wxListEvent_GetData(_arg0); |
cf694132 RD |
2875 | |
2876 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2877 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2878 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2879 | return _resultobj; |
2880 | } | |
2881 | ||
f6bcfd97 BP |
2882 | #define wxListEvent_GetMask(_swigobj) (_swigobj->GetMask()) |
2883 | static PyObject *_wrap_wxListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 | 2884 | PyObject * _resultobj; |
f6bcfd97 | 2885 | long _result; |
af309447 | 2886 | wxListEvent * _arg0; |
1d99702e | 2887 | PyObject * _argo0 = 0; |
f6bcfd97 | 2888 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
2889 | |
2890 | self = self; | |
f6bcfd97 | 2891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetMask",_kwnames,&_argo0)) |
af309447 | 2892 | return NULL; |
1d99702e RD |
2893 | if (_argo0) { |
2894 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2895 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2896 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetMask. Expected _wxListEvent_p."); |
af309447 RD |
2897 | return NULL; |
2898 | } | |
2899 | } | |
cf694132 RD |
2900 | { |
2901 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 2902 | _result = (long )wxListEvent_GetMask(_arg0); |
cf694132 RD |
2903 | |
2904 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2905 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 | 2906 | } _resultobj = Py_BuildValue("l",_result); |
af309447 RD |
2907 | return _resultobj; |
2908 | } | |
2909 | ||
f6bcfd97 BP |
2910 | #define wxListEvent_GetItem(_swigobj) (_swigobj->GetItem()) |
2911 | static PyObject *_wrap_wxListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
2912 | PyObject * _resultobj; |
2913 | wxListItem * _result; | |
2914 | wxListEvent * _arg0; | |
1d99702e | 2915 | PyObject * _argo0 = 0; |
efc5f224 | 2916 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2917 | |
2918 | self = self; | |
f6bcfd97 | 2919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListEvent_GetItem",_kwnames,&_argo0)) |
8ab979d7 | 2920 | return NULL; |
1d99702e RD |
2921 | if (_argo0) { |
2922 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2923 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListEvent_p")) { | |
f6bcfd97 | 2924 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListEvent_GetItem. Expected _wxListEvent_p."); |
8ab979d7 RD |
2925 | return NULL; |
2926 | } | |
2927 | } | |
cf694132 RD |
2928 | { |
2929 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 BP |
2930 | const wxListItem & _result_ref = wxListEvent_GetItem(_arg0); |
2931 | _result = (wxListItem *) &_result_ref; | |
cf694132 RD |
2932 | |
2933 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 2934 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 2935 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
2936 | return _resultobj; |
2937 | } | |
2938 | ||
c7e7022c RD |
2939 | static void *SwigwxPyListCtrlTowxControl(void *ptr) { |
2940 | wxPyListCtrl *src; | |
8ab979d7 | 2941 | wxControl *dest; |
c7e7022c | 2942 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
2943 | dest = (wxControl *) src; |
2944 | return (void *) dest; | |
2945 | } | |
2946 | ||
c7e7022c RD |
2947 | static void *SwigwxPyListCtrlTowxWindow(void *ptr) { |
2948 | wxPyListCtrl *src; | |
8ab979d7 | 2949 | wxWindow *dest; |
c7e7022c | 2950 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
2951 | dest = (wxWindow *) src; |
2952 | return (void *) dest; | |
2953 | } | |
2954 | ||
c7e7022c RD |
2955 | static void *SwigwxPyListCtrlTowxEvtHandler(void *ptr) { |
2956 | wxPyListCtrl *src; | |
8ab979d7 | 2957 | wxEvtHandler *dest; |
c7e7022c | 2958 | src = (wxPyListCtrl *) ptr; |
8ab979d7 RD |
2959 | dest = (wxEvtHandler *) src; |
2960 | return (void *) dest; | |
2961 | } | |
2962 | ||
c7e7022c RD |
2963 | static void *SwigwxPyListCtrlTowxObject(void *ptr) { |
2964 | wxPyListCtrl *src; | |
9416aa89 | 2965 | wxObject *dest; |
c7e7022c | 2966 | src = (wxPyListCtrl *) ptr; |
9416aa89 RD |
2967 | dest = (wxObject *) src; |
2968 | return (void *) dest; | |
2969 | } | |
2970 | ||
c7e7022c | 2971 | #define new_wxListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyListCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 2972 | static PyObject *_wrap_new_wxListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 2973 | PyObject * _resultobj; |
c7e7022c | 2974 | wxPyListCtrl * _result; |
8ab979d7 | 2975 | wxWindow * _arg0; |
c7e7022c | 2976 | wxWindowID _arg1 = (wxWindowID ) -1; |
e508a2b6 RD |
2977 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
2978 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
0adbc166 | 2979 | long _arg4 = (long ) (wxLC_ICON); |
e508a2b6 | 2980 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
2981 | char * _arg6 = (char *) "listCtrl"; |
2982 | PyObject * _argo0 = 0; | |
2f90df85 RD |
2983 | wxPoint temp; |
2984 | PyObject * _obj2 = 0; | |
2985 | wxSize temp0; | |
2986 | PyObject * _obj3 = 0; | |
1d99702e | 2987 | PyObject * _argo5 = 0; |
efc5f224 | 2988 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
2989 | char _ptemp[128]; |
2990 | ||
2991 | self = self; | |
c7e7022c | 2992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxListCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) |
8ab979d7 | 2993 | return NULL; |
1d99702e RD |
2994 | if (_argo0) { |
2995 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2996 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2997 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxListCtrl. Expected _wxWindow_p."); |
2998 | return NULL; | |
2999 | } | |
3000 | } | |
2f90df85 RD |
3001 | if (_obj2) |
3002 | { | |
3003 | _arg2 = &temp; | |
3004 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 3005 | return NULL; |
2f90df85 RD |
3006 | } |
3007 | if (_obj3) | |
3008 | { | |
3009 | _arg3 = &temp0; | |
3010 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 3011 | return NULL; |
2f90df85 | 3012 | } |
1d99702e RD |
3013 | if (_argo5) { |
3014 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
3015 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
8ab979d7 RD |
3016 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxListCtrl. Expected _wxValidator_p."); |
3017 | return NULL; | |
3018 | } | |
3019 | } | |
cf694132 RD |
3020 | { |
3021 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 3022 | _result = (wxPyListCtrl *)new_wxListCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); |
cf694132 RD |
3023 | |
3024 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3025 | if (PyErr_Occurred()) return NULL; |
1d99702e | 3026 | } if (_result) { |
c7e7022c | 3027 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyListCtrl_p"); |
1d99702e RD |
3028 | _resultobj = Py_BuildValue("s",_ptemp); |
3029 | } else { | |
3030 | Py_INCREF(Py_None); | |
3031 | _resultobj = Py_None; | |
3032 | } | |
8ab979d7 RD |
3033 | return _resultobj; |
3034 | } | |
3035 | ||
c7e7022c RD |
3036 | #define wxListCtrl__setSelf(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setSelf(_swigarg0,_swigarg1)) |
3037 | static PyObject *_wrap_wxListCtrl__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3038 | PyObject * _resultobj; |
c7e7022c RD |
3039 | wxPyListCtrl * _arg0; |
3040 | PyObject * _arg1; | |
3041 | PyObject * _arg2; | |
1d99702e | 3042 | PyObject * _argo0 = 0; |
c7e7022c RD |
3043 | PyObject * _obj1 = 0; |
3044 | PyObject * _obj2 = 0; | |
3045 | char *_kwnames[] = { "self","self","_class", NULL }; | |
8ab979d7 RD |
3046 | |
3047 | self = self; | |
c7e7022c | 3048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxListCtrl__setSelf",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 3049 | return NULL; |
1d99702e RD |
3050 | if (_argo0) { |
3051 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3052 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3053 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl__setSelf. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3054 | return NULL; |
3055 | } | |
3056 | } | |
c7e7022c RD |
3057 | { |
3058 | _arg1 = _obj1; | |
3059 | } | |
3060 | { | |
3061 | _arg2 = _obj2; | |
3062 | } | |
cf694132 RD |
3063 | { |
3064 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 3065 | wxListCtrl__setSelf(_arg0,_arg1,_arg2); |
cf694132 RD |
3066 | |
3067 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3068 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
3069 | } Py_INCREF(Py_None); |
3070 | _resultobj = Py_None; | |
8ab979d7 RD |
3071 | return _resultobj; |
3072 | } | |
3073 | ||
c7e7022c RD |
3074 | #define wxListCtrl_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) |
3075 | static PyObject *_wrap_wxListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1b62f00d | 3076 | PyObject * _resultobj; |
c7e7022c RD |
3077 | bool _result; |
3078 | wxPyListCtrl * _arg0; | |
3079 | wxColour * _arg1; | |
1b62f00d | 3080 | PyObject * _argo0 = 0; |
c7e7022c RD |
3081 | wxColour temp; |
3082 | PyObject * _obj1 = 0; | |
3083 | char *_kwnames[] = { "self","col", NULL }; | |
1b62f00d RD |
3084 | |
3085 | self = self; | |
c7e7022c | 3086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
1b62f00d RD |
3087 | return NULL; |
3088 | if (_argo0) { | |
3089 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3090 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3091 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetForegroundColour. Expected _wxPyListCtrl_p."); | |
1b62f00d RD |
3092 | return NULL; |
3093 | } | |
3094 | } | |
c7e7022c RD |
3095 | { |
3096 | _arg1 = &temp; | |
3097 | if (! wxColour_helper(_obj1, &_arg1)) | |
1b62f00d | 3098 | return NULL; |
c7e7022c | 3099 | } |
1b62f00d RD |
3100 | { |
3101 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 3102 | _result = (bool )wxListCtrl_SetForegroundColour(_arg0,*_arg1); |
1b62f00d RD |
3103 | |
3104 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3105 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3106 | } _resultobj = Py_BuildValue("i",_result); |
1b62f00d RD |
3107 | return _resultobj; |
3108 | } | |
3109 | ||
c7e7022c RD |
3110 | #define wxListCtrl_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
3111 | static PyObject *_wrap_wxListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3112 | PyObject * _resultobj; |
3113 | bool _result; | |
c7e7022c RD |
3114 | wxPyListCtrl * _arg0; |
3115 | wxColour * _arg1; | |
1d99702e | 3116 | PyObject * _argo0 = 0; |
c7e7022c RD |
3117 | wxColour temp; |
3118 | PyObject * _obj1 = 0; | |
3119 | char *_kwnames[] = { "self","col", NULL }; | |
8ab979d7 RD |
3120 | |
3121 | self = self; | |
c7e7022c | 3122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3123 | return NULL; |
1d99702e RD |
3124 | if (_argo0) { |
3125 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3126 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3127 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetBackgroundColour. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3128 | return NULL; |
3129 | } | |
3130 | } | |
c7e7022c RD |
3131 | { |
3132 | _arg1 = &temp; | |
3133 | if (! wxColour_helper(_obj1, &_arg1)) | |
3134 | return NULL; | |
3135 | } | |
cf694132 RD |
3136 | { |
3137 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 3138 | _result = (bool )wxListCtrl_SetBackgroundColour(_arg0,*_arg1); |
cf694132 RD |
3139 | |
3140 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3141 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3142 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3143 | return _resultobj; |
3144 | } | |
3145 | ||
c7e7022c RD |
3146 | #define wxListCtrl_GetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetColumn(_swigarg0,_swigarg1)) |
3147 | static PyObject *_wrap_wxListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3148 | PyObject * _resultobj; |
3149 | bool _result; | |
c7e7022c RD |
3150 | wxPyListCtrl * _arg0; |
3151 | int _arg1; | |
3152 | wxListItem * _arg2; | |
1d99702e | 3153 | PyObject * _argo0 = 0; |
c7e7022c RD |
3154 | PyObject * _argo2 = 0; |
3155 | char *_kwnames[] = { "self","col","item", NULL }; | |
8ab979d7 RD |
3156 | |
3157 | self = self; | |
c7e7022c | 3158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_GetColumn",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 3159 | return NULL; |
1d99702e RD |
3160 | if (_argo0) { |
3161 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3162 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3163 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumn. Expected _wxPyListCtrl_p."); | |
3164 | return NULL; | |
3165 | } | |
3166 | } | |
3167 | if (_argo2) { | |
3168 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3169 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
3170 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_GetColumn. Expected _wxListItem_p."); | |
8ab979d7 RD |
3171 | return NULL; |
3172 | } | |
3173 | } | |
cf694132 RD |
3174 | { |
3175 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 3176 | _result = (bool )wxListCtrl_GetColumn(_arg0,_arg1,*_arg2); |
cf694132 RD |
3177 | |
3178 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3179 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3180 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3181 | return _resultobj; |
3182 | } | |
3183 | ||
c7e7022c RD |
3184 | #define wxListCtrl_SetColumn(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumn(_swigarg0,_swigarg1)) |
3185 | static PyObject *_wrap_wxListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3186 | PyObject * _resultobj; |
3187 | bool _result; | |
c7e7022c | 3188 | wxPyListCtrl * _arg0; |
8ab979d7 | 3189 | int _arg1; |
c7e7022c | 3190 | wxListItem * _arg2; |
1d99702e | 3191 | PyObject * _argo0 = 0; |
c7e7022c RD |
3192 | PyObject * _argo2 = 0; |
3193 | char *_kwnames[] = { "self","col","item", NULL }; | |
8ab979d7 RD |
3194 | |
3195 | self = self; | |
c7e7022c | 3196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxListCtrl_SetColumn",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 3197 | return NULL; |
1d99702e RD |
3198 | if (_argo0) { |
3199 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3200 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3201 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumn. Expected _wxPyListCtrl_p."); | |
3202 | return NULL; | |
3203 | } | |
3204 | } | |
3205 | if (_argo2) { | |
3206 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3207 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
3208 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_SetColumn. Expected _wxListItem_p."); | |
8ab979d7 RD |
3209 | return NULL; |
3210 | } | |
3211 | } | |
cf694132 RD |
3212 | { |
3213 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 3214 | _result = (bool )wxListCtrl_SetColumn(_arg0,_arg1,*_arg2); |
cf694132 RD |
3215 | |
3216 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3217 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3218 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3219 | return _resultobj; |
3220 | } | |
3221 | ||
c7e7022c RD |
3222 | #define wxListCtrl_GetColumnWidth(_swigobj,_swigarg0) (_swigobj->GetColumnWidth(_swigarg0)) |
3223 | static PyObject *_wrap_wxListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3224 | PyObject * _resultobj; |
c7e7022c RD |
3225 | int _result; |
3226 | wxPyListCtrl * _arg0; | |
3227 | int _arg1; | |
1d99702e | 3228 | PyObject * _argo0 = 0; |
c7e7022c | 3229 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
3230 | |
3231 | self = self; | |
c7e7022c | 3232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetColumnWidth",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3233 | return NULL; |
1d99702e RD |
3234 | if (_argo0) { |
3235 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3236 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3237 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnWidth. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3238 | return NULL; |
3239 | } | |
3240 | } | |
cf694132 RD |
3241 | { |
3242 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 3243 | _result = (int )wxListCtrl_GetColumnWidth(_arg0,_arg1); |
cf694132 RD |
3244 | |
3245 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3246 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3247 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3248 | return _resultobj; |
3249 | } | |
3250 | ||
c7e7022c RD |
3251 | #define wxListCtrl_SetColumnWidth(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetColumnWidth(_swigarg0,_swigarg1)) |
3252 | static PyObject *_wrap_wxListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3253 | PyObject * _resultobj; |
c7e7022c RD |
3254 | bool _result; |
3255 | wxPyListCtrl * _arg0; | |
3256 | int _arg1; | |
3257 | int _arg2; | |
1d99702e | 3258 | PyObject * _argo0 = 0; |
c7e7022c | 3259 | char *_kwnames[] = { "self","col","width", NULL }; |
8ab979d7 RD |
3260 | |
3261 | self = self; | |
c7e7022c | 3262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_SetColumnWidth",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3263 | return NULL; |
1d99702e RD |
3264 | if (_argo0) { |
3265 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3266 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetColumnWidth. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3268 | return NULL; |
3269 | } | |
3270 | } | |
cf694132 RD |
3271 | { |
3272 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 3273 | _result = (bool )wxListCtrl_SetColumnWidth(_arg0,_arg1,_arg2); |
cf694132 RD |
3274 | |
3275 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3276 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3277 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3278 | return _resultobj; |
3279 | } | |
3280 | ||
c7e7022c RD |
3281 | #define wxListCtrl_GetCountPerPage(_swigobj) (_swigobj->GetCountPerPage()) |
3282 | static PyObject *_wrap_wxListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3283 | PyObject * _resultobj; |
c7e7022c RD |
3284 | int _result; |
3285 | wxPyListCtrl * _arg0; | |
1d99702e | 3286 | PyObject * _argo0 = 0; |
c7e7022c | 3287 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3288 | |
3289 | self = self; | |
c7e7022c | 3290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetCountPerPage",_kwnames,&_argo0)) |
8ab979d7 | 3291 | return NULL; |
1d99702e RD |
3292 | if (_argo0) { |
3293 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3294 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3295 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetCountPerPage. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3296 | return NULL; |
3297 | } | |
3298 | } | |
cf694132 RD |
3299 | { |
3300 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 3301 | _result = (int )wxListCtrl_GetCountPerPage(_arg0); |
cf694132 RD |
3302 | |
3303 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3304 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3305 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3306 | return _resultobj; |
3307 | } | |
3308 | ||
c7e7022c RD |
3309 | #define wxListCtrl_GetEditControl(_swigobj) (_swigobj->GetEditControl()) |
3310 | static PyObject *_wrap_wxListCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3311 | PyObject * _resultobj; |
c7e7022c RD |
3312 | wxTextCtrl * _result; |
3313 | wxPyListCtrl * _arg0; | |
1d99702e | 3314 | PyObject * _argo0 = 0; |
c7e7022c | 3315 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3316 | |
3317 | self = self; | |
c7e7022c | 3318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetEditControl",_kwnames,&_argo0)) |
8ab979d7 | 3319 | return NULL; |
1d99702e RD |
3320 | if (_argo0) { |
3321 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3322 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3323 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetEditControl. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3324 | return NULL; |
3325 | } | |
3326 | } | |
cf694132 RD |
3327 | { |
3328 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 3329 | _result = (wxTextCtrl *)wxListCtrl_GetEditControl(_arg0); |
cf694132 RD |
3330 | |
3331 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3332 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3333 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
3334 | return _resultobj; |
3335 | } | |
3336 | ||
c7e7022c RD |
3337 | static wxListItem * wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col) { |
3338 | wxListItem* info = new wxListItem; | |
3339 | info->m_itemId = itemId; | |
3340 | info->m_col = col; | |
3341 | info->m_mask = 0xFFFF; | |
3342 | self->GetItem(*info); | |
3343 | return info; | |
3344 | } | |
3345 | static PyObject *_wrap_wxListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
be4d9c1f | 3346 | PyObject * _resultobj; |
c7e7022c RD |
3347 | wxListItem * _result; |
3348 | wxPyListCtrl * _arg0; | |
3349 | long _arg1; | |
3350 | int _arg2 = (int ) 0; | |
1d99702e | 3351 | PyObject * _argo0 = 0; |
c7e7022c | 3352 | char *_kwnames[] = { "self","itemId","col", NULL }; |
be4d9c1f RD |
3353 | |
3354 | self = self; | |
c7e7022c | 3355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItem",_kwnames,&_argo0,&_arg1,&_arg2)) |
be4d9c1f | 3356 | return NULL; |
1d99702e RD |
3357 | if (_argo0) { |
3358 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3359 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItem. Expected _wxPyListCtrl_p."); | |
be4d9c1f RD |
3361 | return NULL; |
3362 | } | |
3363 | } | |
cf694132 RD |
3364 | { |
3365 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 3366 | _result = (wxListItem *)wxPyListCtrl_GetItem(_arg0,_arg1,_arg2); |
cf694132 RD |
3367 | |
3368 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3369 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 3370 | }{ _resultobj = wxPyMake_wxObject(_result); } |
be4d9c1f RD |
3371 | return _resultobj; |
3372 | } | |
3373 | ||
c7e7022c RD |
3374 | #define wxListCtrl_SetItem(_swigobj,_swigarg0) (_swigobj->SetItem(_swigarg0)) |
3375 | static PyObject *_wrap_wxListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3376 | PyObject * _resultobj; |
3377 | bool _result; | |
c7e7022c RD |
3378 | wxPyListCtrl * _arg0; |
3379 | wxListItem * _arg1; | |
1d99702e | 3380 | PyObject * _argo0 = 0; |
c7e7022c RD |
3381 | PyObject * _argo1 = 0; |
3382 | char *_kwnames[] = { "self","info", NULL }; | |
8ab979d7 RD |
3383 | |
3384 | self = self; | |
c7e7022c | 3385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3386 | return NULL; |
1d99702e RD |
3387 | if (_argo0) { |
3388 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3389 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3390 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItem. Expected _wxPyListCtrl_p."); | |
3391 | return NULL; | |
3392 | } | |
3393 | } | |
3394 | if (_argo1) { | |
3395 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3396 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
3397 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetItem. Expected _wxListItem_p."); | |
8ab979d7 RD |
3398 | return NULL; |
3399 | } | |
3400 | } | |
cf694132 RD |
3401 | { |
3402 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 3403 | _result = (bool )wxListCtrl_SetItem(_arg0,*_arg1); |
cf694132 RD |
3404 | |
3405 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3406 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3407 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3408 | return _resultobj; |
3409 | } | |
3410 | ||
c7e7022c RD |
3411 | #define wxListCtrl_SetStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
3412 | static PyObject *_wrap_wxListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3413 | PyObject * _resultobj; |
3414 | long _result; | |
c7e7022c | 3415 | wxPyListCtrl * _arg0; |
8ab979d7 | 3416 | long _arg1; |
c7e7022c RD |
3417 | int _arg2; |
3418 | wxString * _arg3; | |
3419 | int _arg4 = (int ) -1; | |
1d99702e | 3420 | PyObject * _argo0 = 0; |
c7e7022c RD |
3421 | PyObject * _obj3 = 0; |
3422 | char *_kwnames[] = { "self","index","col","label","imageId", NULL }; | |
8ab979d7 RD |
3423 | |
3424 | self = self; | |
c7e7022c | 3425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OliO|i:wxListCtrl_SetStringItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4)) |
8ab979d7 | 3426 | return NULL; |
1d99702e RD |
3427 | if (_argo0) { |
3428 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3429 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3430 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetStringItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3431 | return NULL; |
3432 | } | |
3433 | } | |
3434 | { | |
185d7c3e RD |
3435 | #if PYTHON_API_VERSION >= 1009 |
3436 | char* tmpPtr; int tmpSize; | |
c7e7022c | 3437 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { |
794c5cb1 | 3438 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
3439 | return NULL; |
3440 | } | |
c7e7022c | 3441 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) |
185d7c3e | 3442 | return NULL; |
c7e7022c | 3443 | _arg3 = new wxString(tmpPtr, tmpSize); |
185d7c3e | 3444 | #else |
c7e7022c | 3445 | if (!PyString_Check(_obj3)) { |
8ab979d7 RD |
3446 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
3447 | return NULL; | |
3448 | } | |
c7e7022c | 3449 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
185d7c3e | 3450 | #endif |
8ab979d7 | 3451 | } |
cf694132 RD |
3452 | { |
3453 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 3454 | _result = (long )wxListCtrl_SetStringItem(_arg0,_arg1,_arg2,*_arg3,_arg4); |
cf694132 RD |
3455 | |
3456 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3457 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3458 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 | 3459 | { |
c7e7022c RD |
3460 | if (_obj3) |
3461 | delete _arg3; | |
8ab979d7 RD |
3462 | } |
3463 | return _resultobj; | |
3464 | } | |
3465 | ||
c7e7022c RD |
3466 | #define wxListCtrl_GetItemState(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemState(_swigarg0,_swigarg1)) |
3467 | static PyObject *_wrap_wxListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3468 | PyObject * _resultobj; |
c7e7022c RD |
3469 | int _result; |
3470 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
3471 | long _arg1; |
3472 | long _arg2; | |
1d99702e | 3473 | PyObject * _argo0 = 0; |
c7e7022c | 3474 | char *_kwnames[] = { "self","item","stateMask", NULL }; |
8ab979d7 RD |
3475 | |
3476 | self = self; | |
c7e7022c | 3477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_GetItemState",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3478 | return NULL; |
1d99702e RD |
3479 | if (_argo0) { |
3480 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3481 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3482 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemState. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3483 | return NULL; |
3484 | } | |
3485 | } | |
cf694132 RD |
3486 | { |
3487 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 3488 | _result = (int )wxListCtrl_GetItemState(_arg0,_arg1,_arg2); |
cf694132 RD |
3489 | |
3490 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3491 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3492 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3493 | return _resultobj; |
3494 | } | |
3495 | ||
c7e7022c RD |
3496 | #define wxListCtrl_SetItemState(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemState(_swigarg0,_swigarg1,_swigarg2)) |
3497 | static PyObject *_wrap_wxListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3498 | PyObject * _resultobj; |
c7e7022c RD |
3499 | bool _result; |
3500 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3501 | long _arg1; |
c7e7022c RD |
3502 | long _arg2; |
3503 | long _arg3; | |
1d99702e | 3504 | PyObject * _argo0 = 0; |
c7e7022c | 3505 | char *_kwnames[] = { "self","item","state","stateMask", NULL }; |
8ab979d7 RD |
3506 | |
3507 | self = self; | |
c7e7022c | 3508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxListCtrl_SetItemState",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 3509 | return NULL; |
1d99702e RD |
3510 | if (_argo0) { |
3511 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3512 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3513 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemState. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3514 | return NULL; |
3515 | } | |
3516 | } | |
cf694132 RD |
3517 | { |
3518 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 3519 | _result = (bool )wxListCtrl_SetItemState(_arg0,_arg1,_arg2,_arg3); |
cf694132 RD |
3520 | |
3521 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3522 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3523 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3524 | return _resultobj; |
3525 | } | |
3526 | ||
c7e7022c RD |
3527 | #define wxListCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) |
3528 | static PyObject *_wrap_wxListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3529 | PyObject * _resultobj; |
3530 | bool _result; | |
c7e7022c RD |
3531 | wxPyListCtrl * _arg0; |
3532 | long _arg1; | |
3533 | int _arg2; | |
3534 | int _arg3; | |
1d99702e | 3535 | PyObject * _argo0 = 0; |
c7e7022c | 3536 | char *_kwnames[] = { "self","item","image","selImage", NULL }; |
8ab979d7 RD |
3537 | |
3538 | self = self; | |
c7e7022c | 3539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olii:wxListCtrl_SetItemImage",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 3540 | return NULL; |
1d99702e RD |
3541 | if (_argo0) { |
3542 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3543 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemImage. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3545 | return NULL; |
3546 | } | |
3547 | } | |
cf694132 RD |
3548 | { |
3549 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 3550 | _result = (bool )wxListCtrl_SetItemImage(_arg0,_arg1,_arg2,_arg3); |
cf694132 RD |
3551 | |
3552 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3553 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3554 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3555 | return _resultobj; |
3556 | } | |
3557 | ||
c7e7022c RD |
3558 | #define wxListCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) |
3559 | static PyObject *_wrap_wxListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3560 | PyObject * _resultobj; |
c7e7022c RD |
3561 | wxString * _result; |
3562 | wxPyListCtrl * _arg0; | |
3563 | long _arg1; | |
1d99702e | 3564 | PyObject * _argo0 = 0; |
c7e7022c | 3565 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3566 | |
3567 | self = self; | |
c7e7022c | 3568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemText",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3569 | return NULL; |
1d99702e RD |
3570 | if (_argo0) { |
3571 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3572 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3573 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemText. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3574 | return NULL; |
3575 | } | |
3576 | } | |
cf694132 RD |
3577 | { |
3578 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 3579 | _result = new wxString (wxListCtrl_GetItemText(_arg0,_arg1)); |
cf694132 RD |
3580 | |
3581 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3582 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
3583 | }{ |
3584 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3585 | } | |
3586 | { | |
3587 | delete _result; | |
3588 | } | |
8ab979d7 RD |
3589 | return _resultobj; |
3590 | } | |
3591 | ||
c7e7022c RD |
3592 | #define wxListCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) |
3593 | static PyObject *_wrap_wxListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3594 | PyObject * _resultobj; |
c7e7022c RD |
3595 | wxPyListCtrl * _arg0; |
3596 | long _arg1; | |
3597 | wxString * _arg2; | |
1d99702e | 3598 | PyObject * _argo0 = 0; |
c7e7022c RD |
3599 | PyObject * _obj2 = 0; |
3600 | char *_kwnames[] = { "self","item","str", NULL }; | |
8ab979d7 RD |
3601 | |
3602 | self = self; | |
c7e7022c | 3603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemText",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 3604 | return NULL; |
1d99702e RD |
3605 | if (_argo0) { |
3606 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3607 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3608 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemText. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3609 | return NULL; |
3610 | } | |
3611 | } | |
cf694132 | 3612 | { |
c7e7022c RD |
3613 | #if PYTHON_API_VERSION >= 1009 |
3614 | char* tmpPtr; int tmpSize; | |
3615 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
3616 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8ab979d7 | 3617 | return NULL; |
c7e7022c RD |
3618 | } |
3619 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
3620 | return NULL; | |
3621 | _arg2 = new wxString(tmpPtr, tmpSize); | |
3622 | #else | |
3623 | if (!PyString_Check(_obj2)) { | |
3624 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8ab979d7 | 3625 | return NULL; |
8ab979d7 | 3626 | } |
c7e7022c RD |
3627 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
3628 | #endif | |
3629 | } | |
cf694132 RD |
3630 | { |
3631 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 3632 | wxListCtrl_SetItemText(_arg0,_arg1,*_arg2); |
cf694132 RD |
3633 | |
3634 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3635 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
3636 | } Py_INCREF(Py_None); |
3637 | _resultobj = Py_None; | |
3638 | { | |
3639 | if (_obj2) | |
3640 | delete _arg2; | |
3641 | } | |
8ab979d7 RD |
3642 | return _resultobj; |
3643 | } | |
3644 | ||
3645 | #define wxListCtrl_GetItemData(_swigobj,_swigarg0) (_swigobj->GetItemData(_swigarg0)) | |
efc5f224 | 3646 | static PyObject *_wrap_wxListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3647 | PyObject * _resultobj; |
3648 | long _result; | |
c7e7022c | 3649 | wxPyListCtrl * _arg0; |
8ab979d7 | 3650 | long _arg1; |
1d99702e | 3651 | PyObject * _argo0 = 0; |
efc5f224 | 3652 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3653 | |
3654 | self = self; | |
efc5f224 | 3655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemData",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3656 | return NULL; |
1d99702e RD |
3657 | if (_argo0) { |
3658 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3659 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3660 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3661 | return NULL; |
3662 | } | |
3663 | } | |
cf694132 RD |
3664 | { |
3665 | wxPy_BEGIN_ALLOW_THREADS; | |
3666 | _result = (long )wxListCtrl_GetItemData(_arg0,_arg1); | |
3667 | ||
3668 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3669 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3670 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
3671 | return _resultobj; |
3672 | } | |
3673 | ||
c7e7022c RD |
3674 | #define wxListCtrl_SetItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemData(_swigarg0,_swigarg1)) |
3675 | static PyObject *_wrap_wxListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3676 | PyObject * _resultobj; |
c7e7022c RD |
3677 | bool _result; |
3678 | wxPyListCtrl * _arg0; | |
0699c864 | 3679 | long _arg1; |
c7e7022c | 3680 | long _arg2; |
1d99702e | 3681 | PyObject * _argo0 = 0; |
c7e7022c | 3682 | char *_kwnames[] = { "self","item","data", NULL }; |
8ab979d7 RD |
3683 | |
3684 | self = self; | |
c7e7022c | 3685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_SetItemData",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3686 | return NULL; |
1d99702e RD |
3687 | if (_argo0) { |
3688 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3689 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3690 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3691 | return NULL; |
3692 | } | |
3693 | } | |
cf694132 RD |
3694 | { |
3695 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 3696 | _result = (bool )wxListCtrl_SetItemData(_arg0,_arg1,_arg2); |
cf694132 RD |
3697 | |
3698 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3699 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3700 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3701 | return _resultobj; |
3702 | } | |
3703 | ||
c7e7022c | 3704 | static wxPoint * wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item) { |
8ab979d7 RD |
3705 | wxPoint* pos = new wxPoint; |
3706 | self->GetItemPosition(item, *pos); | |
3707 | return pos; | |
3708 | } | |
efc5f224 | 3709 | static PyObject *_wrap_wxListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3710 | PyObject * _resultobj; |
3711 | wxPoint * _result; | |
c7e7022c | 3712 | wxPyListCtrl * _arg0; |
8ab979d7 | 3713 | long _arg1; |
1d99702e | 3714 | PyObject * _argo0 = 0; |
efc5f224 | 3715 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
3716 | char _ptemp[128]; |
3717 | ||
3718 | self = self; | |
efc5f224 | 3719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_GetItemPosition",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 3720 | return NULL; |
1d99702e RD |
3721 | if (_argo0) { |
3722 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3723 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3724 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemPosition. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3725 | return NULL; |
3726 | } | |
3727 | } | |
cf694132 RD |
3728 | { |
3729 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 3730 | _result = (wxPoint *)wxPyListCtrl_GetItemPosition(_arg0,_arg1); |
cf694132 RD |
3731 | |
3732 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3733 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3734 | } if (_result) { |
3735 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
3736 | _resultobj = Py_BuildValue("s",_ptemp); | |
3737 | } else { | |
3738 | Py_INCREF(Py_None); | |
3739 | _resultobj = Py_None; | |
3740 | } | |
8ab979d7 RD |
3741 | return _resultobj; |
3742 | } | |
3743 | ||
c7e7022c | 3744 | static wxRect * wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code) { |
8ab979d7 RD |
3745 | wxRect* rect= new wxRect; |
3746 | self->GetItemRect(item, *rect, code); | |
3747 | return rect; | |
3748 | } | |
efc5f224 | 3749 | static PyObject *_wrap_wxListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3750 | PyObject * _resultobj; |
3751 | wxRect * _result; | |
c7e7022c | 3752 | wxPyListCtrl * _arg0; |
8ab979d7 | 3753 | long _arg1; |
1d99702e RD |
3754 | int _arg2 = (int ) (wxLIST_RECT_BOUNDS); |
3755 | PyObject * _argo0 = 0; | |
efc5f224 | 3756 | char *_kwnames[] = { "self","item","code", NULL }; |
8ab979d7 RD |
3757 | char _ptemp[128]; |
3758 | ||
3759 | self = self; | |
efc5f224 | 3760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_GetItemRect",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 3761 | return NULL; |
1d99702e RD |
3762 | if (_argo0) { |
3763 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3764 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3765 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemRect. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3766 | return NULL; |
3767 | } | |
3768 | } | |
cf694132 RD |
3769 | { |
3770 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 3771 | _result = (wxRect *)wxPyListCtrl_GetItemRect(_arg0,_arg1,_arg2); |
cf694132 RD |
3772 | |
3773 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3774 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
3775 | } if (_result) { |
3776 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRect_p"); | |
3777 | _resultobj = Py_BuildValue("s",_ptemp); | |
3778 | } else { | |
3779 | Py_INCREF(Py_None); | |
3780 | _resultobj = Py_None; | |
3781 | } | |
8ab979d7 RD |
3782 | return _resultobj; |
3783 | } | |
3784 | ||
c7e7022c RD |
3785 | #define wxListCtrl_SetItemPosition(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemPosition(_swigarg0,_swigarg1)) |
3786 | static PyObject *_wrap_wxListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3787 | PyObject * _resultobj; |
c7e7022c RD |
3788 | bool _result; |
3789 | wxPyListCtrl * _arg0; | |
8ab979d7 | 3790 | long _arg1; |
c7e7022c | 3791 | wxPoint * _arg2; |
1d99702e | 3792 | PyObject * _argo0 = 0; |
c7e7022c RD |
3793 | wxPoint temp; |
3794 | PyObject * _obj2 = 0; | |
3795 | char *_kwnames[] = { "self","item","pos", NULL }; | |
8ab979d7 RD |
3796 | |
3797 | self = self; | |
c7e7022c | 3798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_SetItemPosition",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 3799 | return NULL; |
1d99702e RD |
3800 | if (_argo0) { |
3801 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3802 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3803 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemPosition. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3804 | return NULL; |
3805 | } | |
3806 | } | |
c7e7022c RD |
3807 | { |
3808 | _arg2 = &temp; | |
3809 | if (! wxPoint_helper(_obj2, &_arg2)) | |
3810 | return NULL; | |
3811 | } | |
cf694132 RD |
3812 | { |
3813 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 3814 | _result = (bool )wxListCtrl_SetItemPosition(_arg0,_arg1,*_arg2); |
cf694132 RD |
3815 | |
3816 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3817 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3818 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3819 | return _resultobj; |
3820 | } | |
3821 | ||
3822 | #define wxListCtrl_GetItemCount(_swigobj) (_swigobj->GetItemCount()) | |
efc5f224 | 3823 | static PyObject *_wrap_wxListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3824 | PyObject * _resultobj; |
3825 | int _result; | |
c7e7022c | 3826 | wxPyListCtrl * _arg0; |
1d99702e | 3827 | PyObject * _argo0 = 0; |
efc5f224 | 3828 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3829 | |
3830 | self = self; | |
efc5f224 | 3831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetItemCount",_kwnames,&_argo0)) |
8ab979d7 | 3832 | return NULL; |
1d99702e RD |
3833 | if (_argo0) { |
3834 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3835 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3836 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3837 | return NULL; |
3838 | } | |
3839 | } | |
cf694132 RD |
3840 | { |
3841 | wxPy_BEGIN_ALLOW_THREADS; | |
3842 | _result = (int )wxListCtrl_GetItemCount(_arg0); | |
3843 | ||
3844 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3845 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3846 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3847 | return _resultobj; |
3848 | } | |
3849 | ||
c7e7022c RD |
3850 | #define wxListCtrl_GetColumnCount(_swigobj) (_swigobj->GetColumnCount()) |
3851 | static PyObject *_wrap_wxListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
3852 | PyObject * _resultobj; |
3853 | int _result; | |
c7e7022c | 3854 | wxPyListCtrl * _arg0; |
1d99702e | 3855 | PyObject * _argo0 = 0; |
c7e7022c | 3856 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3857 | |
3858 | self = self; | |
c7e7022c | 3859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetColumnCount",_kwnames,&_argo0)) |
8ab979d7 | 3860 | return NULL; |
1d99702e RD |
3861 | if (_argo0) { |
3862 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3863 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3864 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetColumnCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3865 | return NULL; |
3866 | } | |
3867 | } | |
cf694132 RD |
3868 | { |
3869 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 3870 | _result = (int )wxListCtrl_GetColumnCount(_arg0); |
cf694132 RD |
3871 | |
3872 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3873 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3874 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3875 | return _resultobj; |
3876 | } | |
3877 | ||
c7e7022c RD |
3878 | #define wxListCtrl_GetItemSpacing(_swigobj,_swigarg0) (_swigobj->GetItemSpacing(_swigarg0)) |
3879 | static PyObject *_wrap_wxListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3880 | PyObject * _resultobj; |
c7e7022c RD |
3881 | int _result; |
3882 | wxPyListCtrl * _arg0; | |
3883 | bool _arg1; | |
1d99702e | 3884 | PyObject * _argo0 = 0; |
c7e7022c RD |
3885 | int tempbool1; |
3886 | char *_kwnames[] = { "self","isSmall", NULL }; | |
8ab979d7 RD |
3887 | |
3888 | self = self; | |
c7e7022c | 3889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetItemSpacing",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3890 | return NULL; |
1d99702e RD |
3891 | if (_argo0) { |
3892 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3893 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3894 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetItemSpacing. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3895 | return NULL; |
3896 | } | |
3897 | } | |
c7e7022c | 3898 | _arg1 = (bool ) tempbool1; |
8ab979d7 | 3899 | { |
cf694132 | 3900 | wxPy_BEGIN_ALLOW_THREADS; |
c7e7022c | 3901 | _result = (int )wxListCtrl_GetItemSpacing(_arg0,_arg1); |
cf694132 RD |
3902 | |
3903 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3904 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3905 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3906 | return _resultobj; |
3907 | } | |
3908 | ||
c7e7022c RD |
3909 | #define wxListCtrl_GetSelectedItemCount(_swigobj) (_swigobj->GetSelectedItemCount()) |
3910 | static PyObject *_wrap_wxListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3911 | PyObject * _resultobj; |
c7e7022c RD |
3912 | int _result; |
3913 | wxPyListCtrl * _arg0; | |
1d99702e | 3914 | PyObject * _argo0 = 0; |
c7e7022c | 3915 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3916 | |
3917 | self = self; | |
c7e7022c | 3918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetSelectedItemCount",_kwnames,&_argo0)) |
8ab979d7 | 3919 | return NULL; |
1d99702e RD |
3920 | if (_argo0) { |
3921 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3922 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3923 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetSelectedItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3924 | return NULL; |
3925 | } | |
3926 | } | |
cf694132 RD |
3927 | { |
3928 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 3929 | _result = (int )wxListCtrl_GetSelectedItemCount(_arg0); |
cf694132 RD |
3930 | |
3931 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3932 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 3933 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3934 | return _resultobj; |
3935 | } | |
3936 | ||
c7e7022c RD |
3937 | #define wxListCtrl_GetTextColour(_swigobj) (_swigobj->GetTextColour()) |
3938 | static PyObject *_wrap_wxListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 3939 | PyObject * _resultobj; |
c7e7022c RD |
3940 | wxColour * _result; |
3941 | wxPyListCtrl * _arg0; | |
1d99702e | 3942 | PyObject * _argo0 = 0; |
efc5f224 | 3943 | char *_kwnames[] = { "self", NULL }; |
c7e7022c | 3944 | char _ptemp[128]; |
8ab979d7 RD |
3945 | |
3946 | self = self; | |
c7e7022c | 3947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTextColour",_kwnames,&_argo0)) |
8ab979d7 | 3948 | return NULL; |
1d99702e RD |
3949 | if (_argo0) { |
3950 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3951 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3952 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTextColour. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
3953 | return NULL; |
3954 | } | |
3955 | } | |
cf694132 RD |
3956 | { |
3957 | wxPy_BEGIN_ALLOW_THREADS; | |
3958 | _result = new wxColour (wxListCtrl_GetTextColour(_arg0)); | |
3959 | ||
3960 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3961 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3962 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8ab979d7 RD |
3963 | _resultobj = Py_BuildValue("s",_ptemp); |
3964 | return _resultobj; | |
3965 | } | |
3966 | ||
be4d9c1f | 3967 | #define wxListCtrl_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) |
efc5f224 | 3968 | static PyObject *_wrap_wxListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
be4d9c1f | 3969 | PyObject * _resultobj; |
c7e7022c | 3970 | wxPyListCtrl * _arg0; |
be4d9c1f | 3971 | wxColour * _arg1; |
1d99702e | 3972 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3973 | wxColour temp; |
3974 | PyObject * _obj1 = 0; | |
efc5f224 | 3975 | char *_kwnames[] = { "self","col", NULL }; |
be4d9c1f RD |
3976 | |
3977 | self = self; | |
f6bcfd97 | 3978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SetTextColour",_kwnames,&_argo0,&_obj1)) |
be4d9c1f | 3979 | return NULL; |
1d99702e RD |
3980 | if (_argo0) { |
3981 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
3982 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
3983 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetTextColour. Expected _wxPyListCtrl_p."); | |
be4d9c1f RD |
3984 | return NULL; |
3985 | } | |
3986 | } | |
f6bcfd97 BP |
3987 | { |
3988 | _arg1 = &temp; | |
3989 | if (! wxColour_helper(_obj1, &_arg1)) | |
be4d9c1f | 3990 | return NULL; |
f6bcfd97 | 3991 | } |
cf694132 RD |
3992 | { |
3993 | wxPy_BEGIN_ALLOW_THREADS; | |
3994 | wxListCtrl_SetTextColour(_arg0,*_arg1); | |
3995 | ||
3996 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 3997 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3998 | } Py_INCREF(Py_None); |
be4d9c1f RD |
3999 | _resultobj = Py_None; |
4000 | return _resultobj; | |
4001 | } | |
4002 | ||
8ab979d7 | 4003 | #define wxListCtrl_GetTopItem(_swigobj) (_swigobj->GetTopItem()) |
efc5f224 | 4004 | static PyObject *_wrap_wxListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4005 | PyObject * _resultobj; |
4006 | long _result; | |
c7e7022c | 4007 | wxPyListCtrl * _arg0; |
1d99702e | 4008 | PyObject * _argo0 = 0; |
efc5f224 | 4009 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4010 | |
4011 | self = self; | |
efc5f224 | 4012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_GetTopItem",_kwnames,&_argo0)) |
8ab979d7 | 4013 | return NULL; |
1d99702e RD |
4014 | if (_argo0) { |
4015 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4016 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4017 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetTopItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4018 | return NULL; |
4019 | } | |
4020 | } | |
cf694132 RD |
4021 | { |
4022 | wxPy_BEGIN_ALLOW_THREADS; | |
4023 | _result = (long )wxListCtrl_GetTopItem(_arg0); | |
4024 | ||
4025 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4026 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4027 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4028 | return _resultobj; |
4029 | } | |
4030 | ||
c7e7022c RD |
4031 | #define wxListCtrl_SetSingleStyle(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSingleStyle(_swigarg0,_swigarg1)) |
4032 | static PyObject *_wrap_wxListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4033 | PyObject * _resultobj; |
c7e7022c RD |
4034 | wxPyListCtrl * _arg0; |
4035 | long _arg1; | |
4036 | bool _arg2 = (bool ) TRUE; | |
1d99702e | 4037 | PyObject * _argo0 = 0; |
c7e7022c RD |
4038 | int tempbool2 = (int) TRUE; |
4039 | char *_kwnames[] = { "self","style","add", NULL }; | |
8ab979d7 RD |
4040 | |
4041 | self = self; | |
c7e7022c | 4042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|i:wxListCtrl_SetSingleStyle",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 4043 | return NULL; |
1d99702e RD |
4044 | if (_argo0) { |
4045 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4046 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4047 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetSingleStyle. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4048 | return NULL; |
4049 | } | |
4050 | } | |
c7e7022c | 4051 | _arg2 = (bool ) tempbool2; |
cf694132 RD |
4052 | { |
4053 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 4054 | wxListCtrl_SetSingleStyle(_arg0,_arg1,_arg2); |
cf694132 RD |
4055 | |
4056 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4057 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
4058 | } Py_INCREF(Py_None); |
4059 | _resultobj = Py_None; | |
8ab979d7 RD |
4060 | return _resultobj; |
4061 | } | |
4062 | ||
c7e7022c RD |
4063 | #define wxListCtrl_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) |
4064 | static PyObject *_wrap_wxListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4065 | PyObject * _resultobj; |
c7e7022c | 4066 | wxPyListCtrl * _arg0; |
8ab979d7 | 4067 | long _arg1; |
1d99702e | 4068 | PyObject * _argo0 = 0; |
c7e7022c | 4069 | char *_kwnames[] = { "self","style", NULL }; |
8ab979d7 RD |
4070 | |
4071 | self = self; | |
c7e7022c | 4072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4073 | return NULL; |
1d99702e RD |
4074 | if (_argo0) { |
4075 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4076 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4077 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetWindowStyleFlag. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4078 | return NULL; |
4079 | } | |
4080 | } | |
cf694132 RD |
4081 | { |
4082 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 4083 | wxListCtrl_SetWindowStyleFlag(_arg0,_arg1); |
cf694132 RD |
4084 | |
4085 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4086 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
4087 | } Py_INCREF(Py_None); |
4088 | _resultobj = Py_None; | |
8ab979d7 RD |
4089 | return _resultobj; |
4090 | } | |
4091 | ||
c7e7022c RD |
4092 | #define wxListCtrl_GetNextItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetNextItem(_swigarg0,_swigarg1,_swigarg2)) |
4093 | static PyObject *_wrap_wxListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4094 | PyObject * _resultobj; |
4095 | long _result; | |
c7e7022c | 4096 | wxPyListCtrl * _arg0; |
8ab979d7 | 4097 | long _arg1; |
c7e7022c RD |
4098 | int _arg2 = (int ) (wxLIST_NEXT_ALL); |
4099 | int _arg3 = (int ) (wxLIST_STATE_DONTCARE); | |
1d99702e | 4100 | PyObject * _argo0 = 0; |
c7e7022c | 4101 | char *_kwnames[] = { "self","item","geometry","state", NULL }; |
8ab979d7 RD |
4102 | |
4103 | self = self; | |
c7e7022c | 4104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:wxListCtrl_GetNextItem",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
8ab979d7 | 4105 | return NULL; |
1d99702e RD |
4106 | if (_argo0) { |
4107 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4108 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4109 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetNextItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4110 | return NULL; |
4111 | } | |
4112 | } | |
4113 | { | |
c7e7022c RD |
4114 | wxPy_BEGIN_ALLOW_THREADS; |
4115 | _result = (long )wxListCtrl_GetNextItem(_arg0,_arg1,_arg2,_arg3); | |
4116 | ||
4117 | wxPy_END_ALLOW_THREADS; | |
4118 | if (PyErr_Occurred()) return NULL; | |
4119 | } _resultobj = Py_BuildValue("l",_result); | |
4120 | return _resultobj; | |
4121 | } | |
4122 | ||
4123 | #define wxListCtrl_GetImageList(_swigobj,_swigarg0) (_swigobj->GetImageList(_swigarg0)) | |
4124 | static PyObject *_wrap_wxListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4125 | PyObject * _resultobj; | |
4126 | wxImageList * _result; | |
4127 | wxPyListCtrl * _arg0; | |
4128 | int _arg1; | |
4129 | PyObject * _argo0 = 0; | |
4130 | char *_kwnames[] = { "self","which", NULL }; | |
4131 | ||
4132 | self = self; | |
4133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_GetImageList",_kwnames,&_argo0,&_arg1)) | |
185d7c3e | 4134 | return NULL; |
c7e7022c RD |
4135 | if (_argo0) { |
4136 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4137 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4138 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_GetImageList. Expected _wxPyListCtrl_p."); | |
8ab979d7 | 4139 | return NULL; |
c7e7022c | 4140 | } |
8ab979d7 | 4141 | } |
cf694132 RD |
4142 | { |
4143 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 4144 | _result = (wxImageList *)wxListCtrl_GetImageList(_arg0,_arg1); |
cf694132 RD |
4145 | |
4146 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4147 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4148 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
4149 | return _resultobj; |
4150 | } | |
4151 | ||
c7e7022c RD |
4152 | #define wxListCtrl_SetImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetImageList(_swigarg0,_swigarg1)) |
4153 | static PyObject *_wrap_wxListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4154 | PyObject * _resultobj; |
c7e7022c RD |
4155 | wxPyListCtrl * _arg0; |
4156 | wxImageList * _arg1; | |
4157 | int _arg2; | |
1d99702e RD |
4158 | PyObject * _argo0 = 0; |
4159 | PyObject * _argo1 = 0; | |
c7e7022c | 4160 | char *_kwnames[] = { "self","imageList","which", NULL }; |
8ab979d7 RD |
4161 | |
4162 | self = self; | |
c7e7022c | 4163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_SetImageList",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 4164 | return NULL; |
1d99702e RD |
4165 | if (_argo0) { |
4166 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4167 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4168 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetImageList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4169 | return NULL; |
4170 | } | |
4171 | } | |
1d99702e RD |
4172 | if (_argo1) { |
4173 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
c7e7022c RD |
4174 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { |
4175 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_SetImageList. Expected _wxImageList_p."); | |
8ab979d7 RD |
4176 | return NULL; |
4177 | } | |
4178 | } | |
cf694132 RD |
4179 | { |
4180 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 4181 | wxListCtrl_SetImageList(_arg0,_arg1,_arg2); |
cf694132 RD |
4182 | |
4183 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4184 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
4185 | } Py_INCREF(Py_None); |
4186 | _resultobj = Py_None; | |
8ab979d7 RD |
4187 | return _resultobj; |
4188 | } | |
4189 | ||
c7e7022c RD |
4190 | #define wxListCtrl_AssignImageList(_swigobj,_swigarg0,_swigarg1) (_swigobj->AssignImageList(_swigarg0,_swigarg1)) |
4191 | static PyObject *_wrap_wxListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4192 | PyObject * _resultobj; |
c7e7022c RD |
4193 | wxPyListCtrl * _arg0; |
4194 | wxImageList * _arg1; | |
4195 | int _arg2; | |
1d99702e | 4196 | PyObject * _argo0 = 0; |
c7e7022c RD |
4197 | PyObject * _argo1 = 0; |
4198 | char *_kwnames[] = { "self","imageList","which", NULL }; | |
8ab979d7 RD |
4199 | |
4200 | self = self; | |
c7e7022c | 4201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxListCtrl_AssignImageList",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 4202 | return NULL; |
1d99702e RD |
4203 | if (_argo0) { |
4204 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4205 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4206 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_AssignImageList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4207 | return NULL; |
4208 | } | |
4209 | } | |
c7e7022c RD |
4210 | if (_argo1) { |
4211 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4212 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
4213 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_AssignImageList. Expected _wxImageList_p."); | |
8ab979d7 | 4214 | return NULL; |
c7e7022c | 4215 | } |
8ab979d7 | 4216 | } |
cf694132 RD |
4217 | { |
4218 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 4219 | wxListCtrl_AssignImageList(_arg0,_arg1,_arg2); |
cf694132 RD |
4220 | |
4221 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4222 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
4223 | } Py_INCREF(Py_None); |
4224 | _resultobj = Py_None; | |
8ab979d7 RD |
4225 | return _resultobj; |
4226 | } | |
4227 | ||
c7e7022c RD |
4228 | #define wxListCtrl_IsVirtual(_swigobj) (_swigobj->IsVirtual()) |
4229 | static PyObject *_wrap_wxListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4230 | PyObject * _resultobj; |
c7e7022c RD |
4231 | bool _result; |
4232 | wxPyListCtrl * _arg0; | |
1d99702e | 4233 | PyObject * _argo0 = 0; |
c7e7022c | 4234 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4235 | |
4236 | self = self; | |
c7e7022c | 4237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_IsVirtual",_kwnames,&_argo0)) |
8ab979d7 | 4238 | return NULL; |
1d99702e RD |
4239 | if (_argo0) { |
4240 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4241 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4242 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_IsVirtual. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4243 | return NULL; |
4244 | } | |
4245 | } | |
cf694132 RD |
4246 | { |
4247 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 4248 | _result = (bool )wxListCtrl_IsVirtual(_arg0); |
cf694132 RD |
4249 | |
4250 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4251 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4252 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4253 | return _resultobj; |
4254 | } | |
4255 | ||
c7e7022c RD |
4256 | #define wxListCtrl_RefreshItem(_swigobj,_swigarg0) (_swigobj->RefreshItem(_swigarg0)) |
4257 | static PyObject *_wrap_wxListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4258 | PyObject * _resultobj; |
c7e7022c | 4259 | wxPyListCtrl * _arg0; |
8ab979d7 | 4260 | long _arg1; |
1d99702e | 4261 | PyObject * _argo0 = 0; |
c7e7022c | 4262 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
4263 | |
4264 | self = self; | |
c7e7022c | 4265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_RefreshItem",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4266 | return NULL; |
1d99702e RD |
4267 | if (_argo0) { |
4268 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4269 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4270 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4271 | return NULL; |
4272 | } | |
4273 | } | |
cf694132 RD |
4274 | { |
4275 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 4276 | wxListCtrl_RefreshItem(_arg0,_arg1); |
cf694132 RD |
4277 | |
4278 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4279 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
4280 | } Py_INCREF(Py_None); |
4281 | _resultobj = Py_None; | |
8ab979d7 RD |
4282 | return _resultobj; |
4283 | } | |
4284 | ||
c7e7022c RD |
4285 | #define wxListCtrl_RefreshItems(_swigobj,_swigarg0,_swigarg1) (_swigobj->RefreshItems(_swigarg0,_swigarg1)) |
4286 | static PyObject *_wrap_wxListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4287 | PyObject * _resultobj; |
c7e7022c RD |
4288 | wxPyListCtrl * _arg0; |
4289 | long _arg1; | |
4290 | long _arg2; | |
1d99702e | 4291 | PyObject * _argo0 = 0; |
c7e7022c | 4292 | char *_kwnames[] = { "self","itemFrom","itemTo", NULL }; |
8ab979d7 RD |
4293 | |
4294 | self = self; | |
c7e7022c | 4295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_RefreshItems",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4296 | return NULL; |
1d99702e RD |
4297 | if (_argo0) { |
4298 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4299 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4300 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_RefreshItems. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4301 | return NULL; |
4302 | } | |
4303 | } | |
cf694132 RD |
4304 | { |
4305 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 4306 | wxListCtrl_RefreshItems(_arg0,_arg1,_arg2); |
cf694132 RD |
4307 | |
4308 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4309 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
4310 | } Py_INCREF(Py_None); |
4311 | _resultobj = Py_None; | |
8ab979d7 RD |
4312 | return _resultobj; |
4313 | } | |
4314 | ||
c7e7022c RD |
4315 | #define wxListCtrl_Arrange(_swigobj,_swigarg0) (_swigobj->Arrange(_swigarg0)) |
4316 | static PyObject *_wrap_wxListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4317 | PyObject * _resultobj; |
c7e7022c RD |
4318 | bool _result; |
4319 | wxPyListCtrl * _arg0; | |
4320 | int _arg1 = (int ) (wxLIST_ALIGN_DEFAULT); | |
1d99702e | 4321 | PyObject * _argo0 = 0; |
c7e7022c | 4322 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
4323 | |
4324 | self = self; | |
c7e7022c | 4325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxListCtrl_Arrange",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4326 | return NULL; |
1d99702e RD |
4327 | if (_argo0) { |
4328 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4329 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_Arrange. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4331 | return NULL; |
4332 | } | |
4333 | } | |
cf694132 RD |
4334 | { |
4335 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 4336 | _result = (bool )wxListCtrl_Arrange(_arg0,_arg1); |
cf694132 RD |
4337 | |
4338 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4339 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4340 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4341 | return _resultobj; |
4342 | } | |
4343 | ||
c7e7022c RD |
4344 | #define wxListCtrl_DeleteItem(_swigobj,_swigarg0) (_swigobj->DeleteItem(_swigarg0)) |
4345 | static PyObject *_wrap_wxListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4346 | PyObject * _resultobj; |
4347 | bool _result; | |
c7e7022c RD |
4348 | wxPyListCtrl * _arg0; |
4349 | long _arg1; | |
1d99702e | 4350 | PyObject * _argo0 = 0; |
c7e7022c | 4351 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
4352 | |
4353 | self = self; | |
c7e7022c | 4354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_DeleteItem",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4355 | return NULL; |
1d99702e RD |
4356 | if (_argo0) { |
4357 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4358 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4359 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4360 | return NULL; |
4361 | } | |
4362 | } | |
c7e7022c RD |
4363 | { |
4364 | wxPy_BEGIN_ALLOW_THREADS; | |
4365 | _result = (bool )wxListCtrl_DeleteItem(_arg0,_arg1); | |
4366 | ||
4367 | wxPy_END_ALLOW_THREADS; | |
4368 | if (PyErr_Occurred()) return NULL; | |
4369 | } _resultobj = Py_BuildValue("i",_result); | |
4370 | return _resultobj; | |
4371 | } | |
4372 | ||
4373 | #define wxListCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) | |
4374 | static PyObject *_wrap_wxListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4375 | PyObject * _resultobj; | |
4376 | bool _result; | |
4377 | wxPyListCtrl * _arg0; | |
4378 | PyObject * _argo0 = 0; | |
4379 | char *_kwnames[] = { "self", NULL }; | |
4380 | ||
4381 | self = self; | |
4382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllItems",_kwnames,&_argo0)) | |
4383 | return NULL; | |
4384 | if (_argo0) { | |
4385 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4386 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4387 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllItems. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4388 | return NULL; |
4389 | } | |
4390 | } | |
cf694132 RD |
4391 | { |
4392 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 4393 | _result = (bool )wxListCtrl_DeleteAllItems(_arg0); |
cf694132 RD |
4394 | |
4395 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4396 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4397 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4398 | return _resultobj; |
4399 | } | |
4400 | ||
c7e7022c RD |
4401 | #define wxListCtrl_DeleteColumn(_swigobj,_swigarg0) (_swigobj->DeleteColumn(_swigarg0)) |
4402 | static PyObject *_wrap_wxListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4403 | PyObject * _resultobj; |
4404 | bool _result; | |
c7e7022c | 4405 | wxPyListCtrl * _arg0; |
8ab979d7 | 4406 | int _arg1; |
1d99702e | 4407 | PyObject * _argo0 = 0; |
c7e7022c | 4408 | char *_kwnames[] = { "self","col", NULL }; |
8ab979d7 RD |
4409 | |
4410 | self = self; | |
c7e7022c | 4411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_DeleteColumn",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4412 | return NULL; |
1d99702e RD |
4413 | if (_argo0) { |
4414 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4415 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4416 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteColumn. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4417 | return NULL; |
4418 | } | |
4419 | } | |
cf694132 RD |
4420 | { |
4421 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 4422 | _result = (bool )wxListCtrl_DeleteColumn(_arg0,_arg1); |
cf694132 RD |
4423 | |
4424 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4425 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4426 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4427 | return _resultobj; |
4428 | } | |
4429 | ||
c7e7022c RD |
4430 | #define wxListCtrl_DeleteAllColumns(_swigobj) (_swigobj->DeleteAllColumns()) |
4431 | static PyObject *_wrap_wxListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4432 | PyObject * _resultobj; |
c7e7022c RD |
4433 | bool _result; |
4434 | wxPyListCtrl * _arg0; | |
1d99702e | 4435 | PyObject * _argo0 = 0; |
c7e7022c | 4436 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4437 | |
4438 | self = self; | |
c7e7022c | 4439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_DeleteAllColumns",_kwnames,&_argo0)) |
8ab979d7 | 4440 | return NULL; |
1d99702e RD |
4441 | if (_argo0) { |
4442 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4443 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4444 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_DeleteAllColumns. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4445 | return NULL; |
4446 | } | |
4447 | } | |
c7e7022c RD |
4448 | { |
4449 | wxPy_BEGIN_ALLOW_THREADS; | |
4450 | _result = (bool )wxListCtrl_DeleteAllColumns(_arg0); | |
4451 | ||
4452 | wxPy_END_ALLOW_THREADS; | |
4453 | if (PyErr_Occurred()) return NULL; | |
4454 | } _resultobj = Py_BuildValue("i",_result); | |
4455 | return _resultobj; | |
4456 | } | |
4457 | ||
4458 | #define wxListCtrl_ClearAll(_swigobj) (_swigobj->ClearAll()) | |
4459 | static PyObject *_wrap_wxListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4460 | PyObject * _resultobj; | |
4461 | wxPyListCtrl * _arg0; | |
4462 | PyObject * _argo0 = 0; | |
4463 | char *_kwnames[] = { "self", NULL }; | |
4464 | ||
4465 | self = self; | |
4466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxListCtrl_ClearAll",_kwnames,&_argo0)) | |
4467 | return NULL; | |
4468 | if (_argo0) { | |
4469 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4470 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4471 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ClearAll. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4472 | return NULL; |
4473 | } | |
4474 | } | |
cf694132 RD |
4475 | { |
4476 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 4477 | wxListCtrl_ClearAll(_arg0); |
cf694132 RD |
4478 | |
4479 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4480 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4481 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4482 | _resultobj = Py_None; |
4483 | return _resultobj; | |
4484 | } | |
4485 | ||
c7e7022c RD |
4486 | #define wxListCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0)) |
4487 | static PyObject *_wrap_wxListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4488 | PyObject * _resultobj; | |
4489 | wxTextCtrl * _result; | |
4490 | wxPyListCtrl * _arg0; | |
4491 | long _arg1; | |
4492 | PyObject * _argo0 = 0; | |
4493 | char *_kwnames[] = { "self","item", NULL }; | |
4494 | ||
4495 | self = self; | |
4496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EditLabel",_kwnames,&_argo0,&_arg1)) | |
4497 | return NULL; | |
4498 | if (_argo0) { | |
4499 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4500 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4501 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EditLabel. Expected _wxPyListCtrl_p."); | |
4502 | return NULL; | |
4503 | } | |
4504 | } | |
4505 | { | |
4506 | wxPy_BEGIN_ALLOW_THREADS; | |
4507 | _result = (wxTextCtrl *)wxListCtrl_EditLabel(_arg0,_arg1); | |
4508 | ||
4509 | wxPy_END_ALLOW_THREADS; | |
4510 | if (PyErr_Occurred()) return NULL; | |
4511 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
4512 | return _resultobj; | |
4513 | } | |
4514 | ||
4515 | #define wxListCtrl_EndEditLabel(_swigobj,_swigarg0) (_swigobj->EndEditLabel(_swigarg0)) | |
4516 | static PyObject *_wrap_wxListCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4517 | PyObject * _resultobj; |
4518 | bool _result; | |
c7e7022c RD |
4519 | wxPyListCtrl * _arg0; |
4520 | bool _arg1; | |
1d99702e | 4521 | PyObject * _argo0 = 0; |
c7e7022c RD |
4522 | int tempbool1; |
4523 | char *_kwnames[] = { "self","cancel", NULL }; | |
8ab979d7 RD |
4524 | |
4525 | self = self; | |
c7e7022c | 4526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxListCtrl_EndEditLabel",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 4527 | return NULL; |
1d99702e RD |
4528 | if (_argo0) { |
4529 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4530 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EndEditLabel. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4532 | return NULL; |
4533 | } | |
4534 | } | |
c7e7022c RD |
4535 | _arg1 = (bool ) tempbool1; |
4536 | { | |
4537 | wxPy_BEGIN_ALLOW_THREADS; | |
4538 | _result = (bool )wxListCtrl_EndEditLabel(_arg0,_arg1); | |
4539 | ||
4540 | wxPy_END_ALLOW_THREADS; | |
4541 | if (PyErr_Occurred()) return NULL; | |
4542 | } _resultobj = Py_BuildValue("i",_result); | |
4543 | return _resultobj; | |
4544 | } | |
4545 | ||
4546 | #define wxListCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) | |
4547 | static PyObject *_wrap_wxListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4548 | PyObject * _resultobj; | |
4549 | bool _result; | |
4550 | wxPyListCtrl * _arg0; | |
4551 | long _arg1; | |
4552 | PyObject * _argo0 = 0; | |
4553 | char *_kwnames[] = { "self","item", NULL }; | |
4554 | ||
4555 | self = self; | |
4556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_EnsureVisible",_kwnames,&_argo0,&_arg1)) | |
4557 | return NULL; | |
4558 | if (_argo0) { | |
4559 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4560 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4561 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_EnsureVisible. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4562 | return NULL; |
4563 | } | |
4564 | } | |
cf694132 RD |
4565 | { |
4566 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 4567 | _result = (bool )wxListCtrl_EnsureVisible(_arg0,_arg1); |
cf694132 RD |
4568 | |
4569 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4570 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4571 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4572 | return _resultobj; |
4573 | } | |
4574 | ||
c7e7022c RD |
4575 | #define wxListCtrl_FindItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) |
4576 | static PyObject *_wrap_wxListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
4577 | PyObject * _resultobj; |
4578 | long _result; | |
c7e7022c | 4579 | wxPyListCtrl * _arg0; |
8ab979d7 | 4580 | long _arg1; |
c7e7022c RD |
4581 | wxString * _arg2; |
4582 | bool _arg3 = (bool ) FALSE; | |
1d99702e | 4583 | PyObject * _argo0 = 0; |
c7e7022c RD |
4584 | PyObject * _obj2 = 0; |
4585 | int tempbool3 = (int) FALSE; | |
4586 | char *_kwnames[] = { "self","start","str","partial", NULL }; | |
8ab979d7 RD |
4587 | |
4588 | self = self; | |
c7e7022c | 4589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|i:wxListCtrl_FindItem",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3)) |
8ab979d7 | 4590 | return NULL; |
1d99702e RD |
4591 | if (_argo0) { |
4592 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4593 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4594 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4595 | return NULL; |
4596 | } | |
4597 | } | |
4598 | { | |
185d7c3e RD |
4599 | #if PYTHON_API_VERSION >= 1009 |
4600 | char* tmpPtr; int tmpSize; | |
c7e7022c | 4601 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { |
794c5cb1 | 4602 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
4603 | return NULL; |
4604 | } | |
c7e7022c | 4605 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) |
185d7c3e | 4606 | return NULL; |
c7e7022c | 4607 | _arg2 = new wxString(tmpPtr, tmpSize); |
185d7c3e | 4608 | #else |
c7e7022c | 4609 | if (!PyString_Check(_obj2)) { |
8ab979d7 RD |
4610 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
4611 | return NULL; | |
4612 | } | |
c7e7022c | 4613 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
185d7c3e | 4614 | #endif |
8ab979d7 | 4615 | } |
c7e7022c | 4616 | _arg3 = (bool ) tempbool3; |
cf694132 RD |
4617 | { |
4618 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 4619 | _result = (long )wxListCtrl_FindItem(_arg0,_arg1,*_arg2,_arg3); |
cf694132 RD |
4620 | |
4621 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4622 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4623 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 | 4624 | { |
c7e7022c RD |
4625 | if (_obj2) |
4626 | delete _arg2; | |
8ab979d7 RD |
4627 | } |
4628 | return _resultobj; | |
4629 | } | |
4630 | ||
c7e7022c RD |
4631 | #define wxListCtrl_FindItemData(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindItem(_swigarg0,_swigarg1)) |
4632 | static PyObject *_wrap_wxListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4633 | PyObject * _resultobj; |
c7e7022c RD |
4634 | long _result; |
4635 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
4636 | long _arg1; |
4637 | long _arg2; | |
1d99702e | 4638 | PyObject * _argo0 = 0; |
c7e7022c | 4639 | char *_kwnames[] = { "self","start","data", NULL }; |
8ab979d7 RD |
4640 | |
4641 | self = self; | |
c7e7022c | 4642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxListCtrl_FindItemData",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4643 | return NULL; |
1d99702e RD |
4644 | if (_argo0) { |
4645 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4646 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4647 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemData. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4648 | return NULL; |
4649 | } | |
4650 | } | |
cf694132 RD |
4651 | { |
4652 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 4653 | _result = (long )wxListCtrl_FindItemData(_arg0,_arg1,_arg2); |
cf694132 RD |
4654 | |
4655 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4656 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4657 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4658 | return _resultobj; |
4659 | } | |
4660 | ||
c7e7022c RD |
4661 | #define wxListCtrl_FindItemAtPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindItem(_swigarg0,_swigarg1,_swigarg2)) |
4662 | static PyObject *_wrap_wxListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4663 | PyObject * _resultobj; |
c7e7022c RD |
4664 | long _result; |
4665 | wxPyListCtrl * _arg0; | |
4666 | long _arg1; | |
4667 | wxPoint * _arg2; | |
4668 | int _arg3; | |
4669 | PyObject * _argo0 = 0; | |
4670 | wxPoint temp; | |
4671 | PyObject * _obj2 = 0; | |
4672 | char *_kwnames[] = { "self","start","pt","direction", NULL }; | |
4673 | ||
4674 | self = self; | |
4675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_FindItemAtPos",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) | |
4676 | return NULL; | |
4677 | if (_argo0) { | |
4678 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4679 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4680 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_FindItemAtPos. Expected _wxPyListCtrl_p."); | |
4681 | return NULL; | |
4682 | } | |
4683 | } | |
4684 | { | |
4685 | _arg2 = &temp; | |
4686 | if (! wxPoint_helper(_obj2, &_arg2)) | |
4687 | return NULL; | |
4688 | } | |
4689 | { | |
4690 | wxPy_BEGIN_ALLOW_THREADS; | |
4691 | _result = (long )wxListCtrl_FindItemAtPos(_arg0,_arg1,*_arg2,_arg3); | |
4692 | ||
4693 | wxPy_END_ALLOW_THREADS; | |
4694 | if (PyErr_Occurred()) return NULL; | |
4695 | } _resultobj = Py_BuildValue("l",_result); | |
4696 | return _resultobj; | |
4697 | } | |
4698 | ||
4699 | #define wxListCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) | |
4700 | static PyObject *_wrap_wxListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4701 | PyObject * _resultobj; | |
4702 | long _result; | |
4703 | wxPyListCtrl * _arg0; | |
4704 | wxPoint * _arg1; | |
4705 | int * _arg2; | |
4706 | int temp; | |
4707 | PyObject * _argo0 = 0; | |
4708 | wxPoint temp0; | |
4709 | PyObject * _obj1 = 0; | |
4710 | char *_kwnames[] = { "self","point", NULL }; | |
4711 | ||
4712 | self = self; | |
4713 | { | |
4714 | _arg2 = &temp; | |
4715 | } | |
4716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_HitTest",_kwnames,&_argo0,&_obj1)) | |
4717 | return NULL; | |
4718 | if (_argo0) { | |
4719 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4720 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4721 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_HitTest. Expected _wxPyListCtrl_p."); | |
4722 | return NULL; | |
4723 | } | |
4724 | } | |
4725 | { | |
4726 | _arg1 = &temp0; | |
4727 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4728 | return NULL; | |
4729 | } | |
4730 | { | |
4731 | wxPy_BEGIN_ALLOW_THREADS; | |
4732 | _result = (long )wxListCtrl_HitTest(_arg0,*_arg1,*_arg2); | |
4733 | ||
4734 | wxPy_END_ALLOW_THREADS; | |
4735 | if (PyErr_Occurred()) return NULL; | |
4736 | } _resultobj = Py_BuildValue("l",_result); | |
4737 | { | |
4738 | PyObject *o; | |
4739 | o = PyInt_FromLong((long) (*_arg2)); | |
4740 | _resultobj = t_output_helper(_resultobj, o); | |
4741 | } | |
4742 | return _resultobj; | |
4743 | } | |
4744 | ||
4745 | #define wxListCtrl_InsertItem(_swigobj,_swigarg0) (_swigobj->InsertItem(_swigarg0)) | |
4746 | static PyObject *_wrap_wxListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4747 | PyObject * _resultobj; | |
4748 | long _result; | |
4749 | wxPyListCtrl * _arg0; | |
4750 | wxListItem * _arg1; | |
4751 | PyObject * _argo0 = 0; | |
4752 | PyObject * _argo1 = 0; | |
4753 | char *_kwnames[] = { "self","info", NULL }; | |
4754 | ||
4755 | self = self; | |
4756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_InsertItem",_kwnames,&_argo0,&_argo1)) | |
4757 | return NULL; | |
4758 | if (_argo0) { | |
4759 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4760 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4761 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertItem. Expected _wxPyListCtrl_p."); | |
4762 | return NULL; | |
4763 | } | |
4764 | } | |
4765 | if (_argo1) { | |
4766 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4767 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxListItem_p")) { | |
4768 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxListCtrl_InsertItem. Expected _wxListItem_p."); | |
4769 | return NULL; | |
4770 | } | |
4771 | } | |
4772 | { | |
4773 | wxPy_BEGIN_ALLOW_THREADS; | |
4774 | _result = (long )wxListCtrl_InsertItem(_arg0,*_arg1); | |
4775 | ||
4776 | wxPy_END_ALLOW_THREADS; | |
4777 | if (PyErr_Occurred()) return NULL; | |
4778 | } _resultobj = Py_BuildValue("l",_result); | |
4779 | return _resultobj; | |
4780 | } | |
4781 | ||
4782 | #define wxListCtrl_InsertStringItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) | |
4783 | static PyObject *_wrap_wxListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4784 | PyObject * _resultobj; | |
4785 | long _result; | |
4786 | wxPyListCtrl * _arg0; | |
4787 | long _arg1; | |
4788 | wxString * _arg2; | |
4789 | PyObject * _argo0 = 0; | |
4790 | PyObject * _obj2 = 0; | |
4791 | char *_kwnames[] = { "self","index","label", NULL }; | |
4792 | ||
4793 | self = self; | |
4794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertStringItem",_kwnames,&_argo0,&_arg1,&_obj2)) | |
4795 | return NULL; | |
4796 | if (_argo0) { | |
4797 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4798 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { | |
4799 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertStringItem. Expected _wxPyListCtrl_p."); | |
4800 | return NULL; | |
4801 | } | |
4802 | } | |
4803 | { | |
4804 | #if PYTHON_API_VERSION >= 1009 | |
4805 | char* tmpPtr; int tmpSize; | |
4806 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
4807 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4808 | return NULL; | |
4809 | } | |
4810 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4811 | return NULL; | |
4812 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4813 | #else | |
4814 | if (!PyString_Check(_obj2)) { | |
4815 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4816 | return NULL; | |
4817 | } | |
4818 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
4819 | #endif | |
4820 | } | |
4821 | { | |
4822 | wxPy_BEGIN_ALLOW_THREADS; | |
4823 | _result = (long )wxListCtrl_InsertStringItem(_arg0,_arg1,*_arg2); | |
4824 | ||
4825 | wxPy_END_ALLOW_THREADS; | |
4826 | if (PyErr_Occurred()) return NULL; | |
4827 | } _resultobj = Py_BuildValue("l",_result); | |
4828 | { | |
4829 | if (_obj2) | |
4830 | delete _arg2; | |
4831 | } | |
4832 | return _resultobj; | |
4833 | } | |
4834 | ||
4835 | #define wxListCtrl_InsertImageItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertItem(_swigarg0,_swigarg1)) | |
4836 | static PyObject *_wrap_wxListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4837 | PyObject * _resultobj; | |
4838 | long _result; | |
4839 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
4840 | long _arg1; |
4841 | int _arg2; | |
1d99702e | 4842 | PyObject * _argo0 = 0; |
c7e7022c | 4843 | char *_kwnames[] = { "self","index","imageIndex", NULL }; |
8ab979d7 RD |
4844 | |
4845 | self = self; | |
c7e7022c | 4846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oli:wxListCtrl_InsertImageItem",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4847 | return NULL; |
1d99702e RD |
4848 | if (_argo0) { |
4849 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4850 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4851 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4852 | return NULL; |
4853 | } | |
4854 | } | |
cf694132 RD |
4855 | { |
4856 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 4857 | _result = (long )wxListCtrl_InsertImageItem(_arg0,_arg1,_arg2); |
cf694132 RD |
4858 | |
4859 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4860 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4861 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4862 | return _resultobj; |
4863 | } | |
4864 | ||
c7e7022c RD |
4865 | #define wxListCtrl_InsertImageStringItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2)) |
4866 | static PyObject *_wrap_wxListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4867 | PyObject * _resultobj; |
c7e7022c RD |
4868 | long _result; |
4869 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4870 | long _arg1; |
c7e7022c RD |
4871 | wxString * _arg2; |
4872 | int _arg3; | |
1d99702e | 4873 | PyObject * _argo0 = 0; |
2f90df85 | 4874 | PyObject * _obj2 = 0; |
c7e7022c | 4875 | char *_kwnames[] = { "self","index","label","imageIndex", NULL }; |
8ab979d7 RD |
4876 | |
4877 | self = self; | |
c7e7022c | 4878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlOi:wxListCtrl_InsertImageStringItem",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3)) |
8ab979d7 | 4879 | return NULL; |
1d99702e RD |
4880 | if (_argo0) { |
4881 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4882 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4883 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertImageStringItem. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4884 | return NULL; |
4885 | } | |
4886 | } | |
2f90df85 | 4887 | { |
c7e7022c RD |
4888 | #if PYTHON_API_VERSION >= 1009 |
4889 | char* tmpPtr; int tmpSize; | |
4890 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
4891 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4892 | return NULL; | |
4893 | } | |
4894 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4895 | return NULL; | |
4896 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4897 | #else | |
4898 | if (!PyString_Check(_obj2)) { | |
4899 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8ab979d7 | 4900 | return NULL; |
c7e7022c RD |
4901 | } |
4902 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
4903 | #endif | |
2f90df85 | 4904 | } |
cf694132 RD |
4905 | { |
4906 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 4907 | _result = (long )wxListCtrl_InsertImageStringItem(_arg0,_arg1,*_arg2,_arg3); |
cf694132 RD |
4908 | |
4909 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4910 | if (PyErr_Occurred()) return NULL; |
c7e7022c RD |
4911 | } _resultobj = Py_BuildValue("l",_result); |
4912 | { | |
4913 | if (_obj2) | |
4914 | delete _arg2; | |
4915 | } | |
8ab979d7 RD |
4916 | return _resultobj; |
4917 | } | |
4918 | ||
c7e7022c RD |
4919 | #define wxListCtrl_InsertColumnInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->InsertColumn(_swigarg0,_swigarg1)) |
4920 | static PyObject *_wrap_wxListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4921 | PyObject * _resultobj; |
c7e7022c RD |
4922 | long _result; |
4923 | wxPyListCtrl * _arg0; | |
8ab979d7 | 4924 | long _arg1; |
c7e7022c | 4925 | wxListItem * _arg2; |
1d99702e | 4926 | PyObject * _argo0 = 0; |
c7e7022c RD |
4927 | PyObject * _argo2 = 0; |
4928 | char *_kwnames[] = { "self","col","info", NULL }; | |
8ab979d7 RD |
4929 | |
4930 | self = self; | |
c7e7022c | 4931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO:wxListCtrl_InsertColumnInfo",_kwnames,&_argo0,&_arg1,&_argo2)) |
8ab979d7 | 4932 | return NULL; |
1d99702e RD |
4933 | if (_argo0) { |
4934 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4935 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4936 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumnInfo. Expected _wxPyListCtrl_p."); | |
4937 | return NULL; | |
4938 | } | |
4939 | } | |
4940 | if (_argo2) { | |
4941 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
4942 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxListItem_p")) { | |
4943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxListCtrl_InsertColumnInfo. Expected _wxListItem_p."); | |
8ab979d7 RD |
4944 | return NULL; |
4945 | } | |
4946 | } | |
cf694132 RD |
4947 | { |
4948 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 4949 | _result = (long )wxListCtrl_InsertColumnInfo(_arg0,_arg1,*_arg2); |
cf694132 RD |
4950 | |
4951 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 4952 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 4953 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
4954 | return _resultobj; |
4955 | } | |
4956 | ||
c7e7022c RD |
4957 | #define wxListCtrl_InsertColumn(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertColumn(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
4958 | static PyObject *_wrap_wxListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 4959 | PyObject * _resultobj; |
c7e7022c RD |
4960 | long _result; |
4961 | wxPyListCtrl * _arg0; | |
8ab979d7 RD |
4962 | long _arg1; |
4963 | wxString * _arg2; | |
c7e7022c RD |
4964 | int _arg3 = (int ) (wxLIST_FORMAT_LEFT); |
4965 | int _arg4 = (int ) -1; | |
1d99702e | 4966 | PyObject * _argo0 = 0; |
8ab979d7 | 4967 | PyObject * _obj2 = 0; |
c7e7022c | 4968 | char *_kwnames[] = { "self","col","heading","format","width", NULL }; |
8ab979d7 RD |
4969 | |
4970 | self = self; | |
c7e7022c | 4971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OlO|ii:wxListCtrl_InsertColumn",_kwnames,&_argo0,&_arg1,&_obj2,&_arg3,&_arg4)) |
8ab979d7 | 4972 | return NULL; |
1d99702e RD |
4973 | if (_argo0) { |
4974 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
4975 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
4976 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_InsertColumn. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
4977 | return NULL; |
4978 | } | |
4979 | } | |
4980 | { | |
185d7c3e RD |
4981 | #if PYTHON_API_VERSION >= 1009 |
4982 | char* tmpPtr; int tmpSize; | |
4983 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 4984 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
4985 | return NULL; |
4986 | } | |
4987 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
4988 | return NULL; | |
4989 | _arg2 = new wxString(tmpPtr, tmpSize); | |
4990 | #else | |
8ab979d7 RD |
4991 | if (!PyString_Check(_obj2)) { |
4992 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4993 | return NULL; | |
4994 | } | |
185d7c3e RD |
4995 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
4996 | #endif | |
8ab979d7 | 4997 | } |
cf694132 RD |
4998 | { |
4999 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 5000 | _result = (long )wxListCtrl_InsertColumn(_arg0,_arg1,*_arg2,_arg3,_arg4); |
cf694132 RD |
5001 | |
5002 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5003 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 5004 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
5005 | { |
5006 | if (_obj2) | |
5007 | delete _arg2; | |
5008 | } | |
5009 | return _resultobj; | |
5010 | } | |
5011 | ||
c7e7022c RD |
5012 | #define wxListCtrl_SetItemCount(_swigobj,_swigarg0) (_swigobj->SetItemCount(_swigarg0)) |
5013 | static PyObject *_wrap_wxListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5014 | PyObject * _resultobj; |
c7e7022c | 5015 | wxPyListCtrl * _arg0; |
8ab979d7 | 5016 | long _arg1; |
1d99702e | 5017 | PyObject * _argo0 = 0; |
c7e7022c | 5018 | char *_kwnames[] = { "self","count", NULL }; |
8ab979d7 RD |
5019 | |
5020 | self = self; | |
c7e7022c | 5021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxListCtrl_SetItemCount",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 5022 | return NULL; |
1d99702e RD |
5023 | if (_argo0) { |
5024 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
5025 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
5026 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SetItemCount. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
5027 | return NULL; |
5028 | } | |
5029 | } | |
cf694132 RD |
5030 | { |
5031 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 5032 | wxListCtrl_SetItemCount(_arg0,_arg1); |
cf694132 RD |
5033 | |
5034 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5035 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5036 | } Py_INCREF(Py_None); |
8ab979d7 RD |
5037 | _resultobj = Py_None; |
5038 | return _resultobj; | |
5039 | } | |
5040 | ||
c7e7022c RD |
5041 | #define wxListCtrl_ScrollList(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScrollList(_swigarg0,_swigarg1)) |
5042 | static PyObject *_wrap_wxListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 5043 | PyObject * _resultobj; |
c7e7022c RD |
5044 | bool _result; |
5045 | wxPyListCtrl * _arg0; | |
5046 | int _arg1; | |
5047 | int _arg2; | |
1d99702e | 5048 | PyObject * _argo0 = 0; |
c7e7022c | 5049 | char *_kwnames[] = { "self","dx","dy", NULL }; |
8ab979d7 RD |
5050 | |
5051 | self = self; | |
c7e7022c | 5052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxListCtrl_ScrollList",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 5053 | return NULL; |
1d99702e RD |
5054 | if (_argo0) { |
5055 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
5056 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
5057 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_ScrollList. Expected _wxPyListCtrl_p."); | |
8ab979d7 RD |
5058 | return NULL; |
5059 | } | |
5060 | } | |
cf694132 RD |
5061 | { |
5062 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 5063 | _result = (bool )wxListCtrl_ScrollList(_arg0,_arg1,_arg2); |
cf694132 RD |
5064 | |
5065 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5066 | if (PyErr_Occurred()) return NULL; |
c7e7022c | 5067 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5068 | return _resultobj; |
5069 | } | |
5070 | ||
c7e7022c | 5071 | static bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject * func) { |
dcd38683 RD |
5072 | if (!PyCallable_Check(func)) |
5073 | return FALSE; | |
f6bcfd97 | 5074 | return self->SortItems(wxPyListCtrl_SortItems, (long)func); |
dcd38683 RD |
5075 | } |
5076 | static PyObject *_wrap_wxListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5077 | PyObject * _resultobj; | |
5078 | bool _result; | |
c7e7022c | 5079 | wxPyListCtrl * _arg0; |
dcd38683 RD |
5080 | PyObject * _arg1; |
5081 | PyObject * _argo0 = 0; | |
5082 | PyObject * _obj1 = 0; | |
5083 | char *_kwnames[] = { "self","func", NULL }; | |
5084 | ||
5085 | self = self; | |
5086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxListCtrl_SortItems",_kwnames,&_argo0,&_obj1)) | |
5087 | return NULL; | |
5088 | if (_argo0) { | |
5089 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
c7e7022c RD |
5090 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyListCtrl_p")) { |
5091 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxListCtrl_SortItems. Expected _wxPyListCtrl_p."); | |
dcd38683 RD |
5092 | return NULL; |
5093 | } | |
5094 | } | |
5095 | { | |
5096 | _arg1 = _obj1; | |
5097 | } | |
5098 | { | |
5099 | wxPy_BEGIN_ALLOW_THREADS; | |
c7e7022c | 5100 | _result = (bool )wxPyListCtrl_SortItems(_arg0,_arg1); |
dcd38683 RD |
5101 | |
5102 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5103 | if (PyErr_Occurred()) return NULL; |
dcd38683 RD |
5104 | } _resultobj = Py_BuildValue("i",_result); |
5105 | return _resultobj; | |
5106 | } | |
5107 | ||
00b6c4e3 RD |
5108 | #define new_wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2) (new wxTreeItemAttr(_swigarg0,_swigarg1,_swigarg2)) |
5109 | static PyObject *_wrap_new_wxTreeItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5110 | PyObject * _resultobj; | |
5111 | wxTreeItemAttr * _result; | |
5112 | wxColour * _arg0 = (wxColour *) &wxNullColour; | |
5113 | wxColour * _arg1 = (wxColour *) &wxNullColour; | |
5114 | wxFont * _arg2 = (wxFont *) &wxNullFont; | |
5115 | wxColour temp; | |
5116 | PyObject * _obj0 = 0; | |
5117 | wxColour temp0; | |
5118 | PyObject * _obj1 = 0; | |
5119 | PyObject * _argo2 = 0; | |
5120 | char *_kwnames[] = { "colText","colBack","font", NULL }; | |
5121 | char _ptemp[128]; | |
5122 | ||
5123 | self = self; | |
5124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOO:new_wxTreeItemAttr",_kwnames,&_obj0,&_obj1,&_argo2)) | |
5125 | return NULL; | |
5126 | if (_obj0) | |
5127 | { | |
5128 | _arg0 = &temp; | |
5129 | if (! wxColour_helper(_obj0, &_arg0)) | |
5130 | return NULL; | |
5131 | } | |
5132 | if (_obj1) | |
5133 | { | |
5134 | _arg1 = &temp0; | |
5135 | if (! wxColour_helper(_obj1, &_arg1)) | |
5136 | return NULL; | |
5137 | } | |
5138 | if (_argo2) { | |
5139 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
5140 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
5141 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxTreeItemAttr. Expected _wxFont_p."); | |
5142 | return NULL; | |
5143 | } | |
5144 | } | |
5145 | { | |
5146 | wxPy_BEGIN_ALLOW_THREADS; | |
5147 | _result = (wxTreeItemAttr *)new_wxTreeItemAttr(*_arg0,*_arg1,*_arg2); | |
5148 | ||
5149 | wxPy_END_ALLOW_THREADS; | |
5150 | if (PyErr_Occurred()) return NULL; | |
5151 | } if (_result) { | |
5152 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemAttr_p"); | |
5153 | _resultobj = Py_BuildValue("s",_ptemp); | |
5154 | } else { | |
5155 | Py_INCREF(Py_None); | |
5156 | _resultobj = Py_None; | |
5157 | } | |
5158 | return _resultobj; | |
5159 | } | |
5160 | ||
5161 | #define wxTreeItemAttr_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
5162 | static PyObject *_wrap_wxTreeItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5163 | PyObject * _resultobj; | |
5164 | wxTreeItemAttr * _arg0; | |
5165 | wxColour * _arg1; | |
5166 | PyObject * _argo0 = 0; | |
5167 | wxColour temp; | |
5168 | PyObject * _obj1 = 0; | |
5169 | char *_kwnames[] = { "self","colText", NULL }; | |
5170 | ||
5171 | self = self; | |
5172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
5173 | return NULL; | |
5174 | if (_argo0) { | |
5175 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5176 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5177 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetTextColour. Expected _wxTreeItemAttr_p."); | |
5178 | return NULL; | |
5179 | } | |
5180 | } | |
5181 | { | |
5182 | _arg1 = &temp; | |
5183 | if (! wxColour_helper(_obj1, &_arg1)) | |
5184 | return NULL; | |
5185 | } | |
5186 | { | |
5187 | wxPy_BEGIN_ALLOW_THREADS; | |
5188 | wxTreeItemAttr_SetTextColour(_arg0,*_arg1); | |
5189 | ||
5190 | wxPy_END_ALLOW_THREADS; | |
5191 | if (PyErr_Occurred()) return NULL; | |
5192 | } Py_INCREF(Py_None); | |
5193 | _resultobj = Py_None; | |
5194 | return _resultobj; | |
5195 | } | |
5196 | ||
5197 | #define wxTreeItemAttr_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
5198 | static PyObject *_wrap_wxTreeItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5199 | PyObject * _resultobj; | |
5200 | wxTreeItemAttr * _arg0; | |
5201 | wxColour * _arg1; | |
5202 | PyObject * _argo0 = 0; | |
5203 | wxColour temp; | |
5204 | PyObject * _obj1 = 0; | |
5205 | char *_kwnames[] = { "self","colBack", NULL }; | |
5206 | ||
5207 | self = self; | |
5208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
5209 | return NULL; | |
5210 | if (_argo0) { | |
5211 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5212 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5213 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetBackgroundColour. Expected _wxTreeItemAttr_p."); | |
5214 | return NULL; | |
5215 | } | |
5216 | } | |
5217 | { | |
5218 | _arg1 = &temp; | |
5219 | if (! wxColour_helper(_obj1, &_arg1)) | |
5220 | return NULL; | |
5221 | } | |
5222 | { | |
5223 | wxPy_BEGIN_ALLOW_THREADS; | |
5224 | wxTreeItemAttr_SetBackgroundColour(_arg0,*_arg1); | |
5225 | ||
5226 | wxPy_END_ALLOW_THREADS; | |
5227 | if (PyErr_Occurred()) return NULL; | |
5228 | } Py_INCREF(Py_None); | |
5229 | _resultobj = Py_None; | |
5230 | return _resultobj; | |
5231 | } | |
5232 | ||
5233 | #define wxTreeItemAttr_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) | |
5234 | static PyObject *_wrap_wxTreeItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5235 | PyObject * _resultobj; | |
5236 | wxTreeItemAttr * _arg0; | |
5237 | wxFont * _arg1; | |
5238 | PyObject * _argo0 = 0; | |
5239 | PyObject * _argo1 = 0; | |
5240 | char *_kwnames[] = { "self","font", NULL }; | |
5241 | ||
5242 | self = self; | |
5243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemAttr_SetFont",_kwnames,&_argo0,&_argo1)) | |
5244 | return NULL; | |
5245 | if (_argo0) { | |
5246 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5247 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_SetFont. Expected _wxTreeItemAttr_p."); | |
5249 | return NULL; | |
5250 | } | |
5251 | } | |
5252 | if (_argo1) { | |
5253 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5254 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
5255 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemAttr_SetFont. Expected _wxFont_p."); | |
5256 | return NULL; | |
5257 | } | |
5258 | } | |
5259 | { | |
5260 | wxPy_BEGIN_ALLOW_THREADS; | |
5261 | wxTreeItemAttr_SetFont(_arg0,*_arg1); | |
5262 | ||
5263 | wxPy_END_ALLOW_THREADS; | |
5264 | if (PyErr_Occurred()) return NULL; | |
5265 | } Py_INCREF(Py_None); | |
5266 | _resultobj = Py_None; | |
5267 | return _resultobj; | |
5268 | } | |
5269 | ||
5270 | #define wxTreeItemAttr_HasTextColour(_swigobj) (_swigobj->HasTextColour()) | |
5271 | static PyObject *_wrap_wxTreeItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5272 | PyObject * _resultobj; | |
5273 | bool _result; | |
5274 | wxTreeItemAttr * _arg0; | |
5275 | PyObject * _argo0 = 0; | |
5276 | char *_kwnames[] = { "self", NULL }; | |
5277 | ||
5278 | self = self; | |
5279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasTextColour",_kwnames,&_argo0)) | |
5280 | return NULL; | |
5281 | if (_argo0) { | |
5282 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5283 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5284 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasTextColour. Expected _wxTreeItemAttr_p."); | |
5285 | return NULL; | |
5286 | } | |
5287 | } | |
5288 | { | |
5289 | wxPy_BEGIN_ALLOW_THREADS; | |
5290 | _result = (bool )wxTreeItemAttr_HasTextColour(_arg0); | |
5291 | ||
5292 | wxPy_END_ALLOW_THREADS; | |
5293 | if (PyErr_Occurred()) return NULL; | |
5294 | } _resultobj = Py_BuildValue("i",_result); | |
5295 | return _resultobj; | |
5296 | } | |
5297 | ||
5298 | #define wxTreeItemAttr_HasBackgroundColour(_swigobj) (_swigobj->HasBackgroundColour()) | |
5299 | static PyObject *_wrap_wxTreeItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5300 | PyObject * _resultobj; | |
5301 | bool _result; | |
5302 | wxTreeItemAttr * _arg0; | |
5303 | PyObject * _argo0 = 0; | |
5304 | char *_kwnames[] = { "self", NULL }; | |
5305 | ||
5306 | self = self; | |
5307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasBackgroundColour",_kwnames,&_argo0)) | |
5308 | return NULL; | |
5309 | if (_argo0) { | |
5310 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5311 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5312 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasBackgroundColour. Expected _wxTreeItemAttr_p."); | |
5313 | return NULL; | |
5314 | } | |
5315 | } | |
5316 | { | |
5317 | wxPy_BEGIN_ALLOW_THREADS; | |
5318 | _result = (bool )wxTreeItemAttr_HasBackgroundColour(_arg0); | |
5319 | ||
5320 | wxPy_END_ALLOW_THREADS; | |
5321 | if (PyErr_Occurred()) return NULL; | |
5322 | } _resultobj = Py_BuildValue("i",_result); | |
5323 | return _resultobj; | |
5324 | } | |
5325 | ||
5326 | #define wxTreeItemAttr_HasFont(_swigobj) (_swigobj->HasFont()) | |
5327 | static PyObject *_wrap_wxTreeItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5328 | PyObject * _resultobj; | |
5329 | bool _result; | |
5330 | wxTreeItemAttr * _arg0; | |
5331 | PyObject * _argo0 = 0; | |
5332 | char *_kwnames[] = { "self", NULL }; | |
5333 | ||
5334 | self = self; | |
5335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_HasFont",_kwnames,&_argo0)) | |
5336 | return NULL; | |
5337 | if (_argo0) { | |
5338 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5339 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5340 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_HasFont. Expected _wxTreeItemAttr_p."); | |
5341 | return NULL; | |
5342 | } | |
5343 | } | |
5344 | { | |
5345 | wxPy_BEGIN_ALLOW_THREADS; | |
5346 | _result = (bool )wxTreeItemAttr_HasFont(_arg0); | |
5347 | ||
5348 | wxPy_END_ALLOW_THREADS; | |
5349 | if (PyErr_Occurred()) return NULL; | |
5350 | } _resultobj = Py_BuildValue("i",_result); | |
5351 | return _resultobj; | |
5352 | } | |
5353 | ||
5354 | #define wxTreeItemAttr_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
5355 | static PyObject *_wrap_wxTreeItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5356 | PyObject * _resultobj; | |
5357 | wxColour * _result; | |
5358 | wxTreeItemAttr * _arg0; | |
5359 | PyObject * _argo0 = 0; | |
5360 | char *_kwnames[] = { "self", NULL }; | |
5361 | char _ptemp[128]; | |
5362 | ||
5363 | self = self; | |
5364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetTextColour",_kwnames,&_argo0)) | |
5365 | return NULL; | |
5366 | if (_argo0) { | |
5367 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5368 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5369 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetTextColour. Expected _wxTreeItemAttr_p."); | |
5370 | return NULL; | |
5371 | } | |
5372 | } | |
5373 | { | |
5374 | wxPy_BEGIN_ALLOW_THREADS; | |
5375 | const wxColour & _result_ref = wxTreeItemAttr_GetTextColour(_arg0); | |
5376 | _result = (wxColour *) &_result_ref; | |
5377 | ||
5378 | wxPy_END_ALLOW_THREADS; | |
5379 | if (PyErr_Occurred()) return NULL; | |
5380 | } if (_result) { | |
5381 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
5382 | _resultobj = Py_BuildValue("s",_ptemp); | |
5383 | } else { | |
5384 | Py_INCREF(Py_None); | |
5385 | _resultobj = Py_None; | |
5386 | } | |
5387 | return _resultobj; | |
5388 | } | |
5389 | ||
5390 | #define wxTreeItemAttr_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
5391 | static PyObject *_wrap_wxTreeItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5392 | PyObject * _resultobj; | |
5393 | wxColour * _result; | |
5394 | wxTreeItemAttr * _arg0; | |
5395 | PyObject * _argo0 = 0; | |
5396 | char *_kwnames[] = { "self", NULL }; | |
5397 | char _ptemp[128]; | |
5398 | ||
5399 | self = self; | |
5400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetBackgroundColour",_kwnames,&_argo0)) | |
5401 | return NULL; | |
5402 | if (_argo0) { | |
5403 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5404 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5405 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetBackgroundColour. Expected _wxTreeItemAttr_p."); | |
5406 | return NULL; | |
5407 | } | |
5408 | } | |
5409 | { | |
5410 | wxPy_BEGIN_ALLOW_THREADS; | |
5411 | const wxColour & _result_ref = wxTreeItemAttr_GetBackgroundColour(_arg0); | |
5412 | _result = (wxColour *) &_result_ref; | |
5413 | ||
5414 | wxPy_END_ALLOW_THREADS; | |
5415 | if (PyErr_Occurred()) return NULL; | |
5416 | } if (_result) { | |
5417 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p"); | |
5418 | _resultobj = Py_BuildValue("s",_ptemp); | |
5419 | } else { | |
5420 | Py_INCREF(Py_None); | |
5421 | _resultobj = Py_None; | |
5422 | } | |
5423 | return _resultobj; | |
5424 | } | |
5425 | ||
5426 | #define wxTreeItemAttr_GetFont(_swigobj) (_swigobj->GetFont()) | |
5427 | static PyObject *_wrap_wxTreeItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5428 | PyObject * _resultobj; | |
5429 | wxFont * _result; | |
5430 | wxTreeItemAttr * _arg0; | |
5431 | PyObject * _argo0 = 0; | |
5432 | char *_kwnames[] = { "self", NULL }; | |
5433 | char _ptemp[128]; | |
5434 | ||
5435 | self = self; | |
5436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemAttr_GetFont",_kwnames,&_argo0)) | |
5437 | return NULL; | |
5438 | if (_argo0) { | |
5439 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5440 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemAttr_p")) { | |
5441 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemAttr_GetFont. Expected _wxTreeItemAttr_p."); | |
5442 | return NULL; | |
5443 | } | |
5444 | } | |
5445 | { | |
5446 | wxPy_BEGIN_ALLOW_THREADS; | |
5447 | const wxFont & _result_ref = wxTreeItemAttr_GetFont(_arg0); | |
5448 | _result = (wxFont *) &_result_ref; | |
5449 | ||
5450 | wxPy_END_ALLOW_THREADS; | |
5451 | if (PyErr_Occurred()) return NULL; | |
5452 | } if (_result) { | |
5453 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
5454 | _resultobj = Py_BuildValue("s",_ptemp); | |
5455 | } else { | |
5456 | Py_INCREF(Py_None); | |
5457 | _resultobj = Py_None; | |
5458 | } | |
5459 | return _resultobj; | |
5460 | } | |
5461 | ||
d5c9047a | 5462 | #define new_wxTreeItemId() (new wxTreeItemId()) |
efc5f224 | 5463 | static PyObject *_wrap_new_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5464 | PyObject * _resultobj; |
d5c9047a | 5465 | wxTreeItemId * _result; |
efc5f224 | 5466 | char *_kwnames[] = { NULL }; |
d5c9047a | 5467 | char _ptemp[128]; |
8ab979d7 RD |
5468 | |
5469 | self = self; | |
efc5f224 | 5470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxTreeItemId",_kwnames)) |
8ab979d7 | 5471 | return NULL; |
cf694132 RD |
5472 | { |
5473 | wxPy_BEGIN_ALLOW_THREADS; | |
5474 | _result = (wxTreeItemId *)new_wxTreeItemId(); | |
5475 | ||
5476 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5477 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5478 | } if (_result) { |
5479 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
5480 | _resultobj = Py_BuildValue("s",_ptemp); | |
5481 | } else { | |
5482 | Py_INCREF(Py_None); | |
5483 | _resultobj = Py_None; | |
5484 | } | |
8ab979d7 RD |
5485 | return _resultobj; |
5486 | } | |
5487 | ||
d5c9047a | 5488 | #define delete_wxTreeItemId(_swigobj) (delete _swigobj) |
efc5f224 | 5489 | static PyObject *_wrap_delete_wxTreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5490 | PyObject * _resultobj; |
d5c9047a | 5491 | wxTreeItemId * _arg0; |
1d99702e | 5492 | PyObject * _argo0 = 0; |
efc5f224 | 5493 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5494 | |
5495 | self = self; | |
efc5f224 | 5496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTreeItemId",_kwnames,&_argo0)) |
8ab979d7 | 5497 | return NULL; |
1d99702e RD |
5498 | if (_argo0) { |
5499 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5500 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
d5c9047a | 5501 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTreeItemId. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
5502 | return NULL; |
5503 | } | |
5504 | } | |
cf694132 RD |
5505 | { |
5506 | wxPy_BEGIN_ALLOW_THREADS; | |
5507 | delete_wxTreeItemId(_arg0); | |
5508 | ||
5509 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5510 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5511 | } Py_INCREF(Py_None); |
d5c9047a | 5512 | _resultobj = Py_None; |
8ab979d7 RD |
5513 | return _resultobj; |
5514 | } | |
5515 | ||
d5c9047a | 5516 | #define wxTreeItemId_IsOk(_swigobj) (_swigobj->IsOk()) |
efc5f224 | 5517 | static PyObject *_wrap_wxTreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5518 | PyObject * _resultobj; |
d5c9047a RD |
5519 | bool _result; |
5520 | wxTreeItemId * _arg0; | |
1d99702e | 5521 | PyObject * _argo0 = 0; |
efc5f224 | 5522 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5523 | |
5524 | self = self; | |
efc5f224 | 5525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemId_IsOk",_kwnames,&_argo0)) |
8ab979d7 | 5526 | return NULL; |
1d99702e RD |
5527 | if (_argo0) { |
5528 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5529 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
d5c9047a | 5530 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId_IsOk. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
5531 | return NULL; |
5532 | } | |
5533 | } | |
cf694132 RD |
5534 | { |
5535 | wxPy_BEGIN_ALLOW_THREADS; | |
5536 | _result = (bool )wxTreeItemId_IsOk(_arg0); | |
5537 | ||
5538 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5539 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5540 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5541 | return _resultobj; |
5542 | } | |
5543 | ||
f6bcfd97 | 5544 | static int wxTreeItemId___cmp__(wxTreeItemId *self,wxTreeItemId * other) { |
c368d904 | 5545 | if (! other) return -1; |
f6bcfd97 BP |
5546 | return *self != *other; |
5547 | } | |
5548 | static PyObject *_wrap_wxTreeItemId___cmp__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5549 | PyObject * _resultobj; | |
5550 | int _result; | |
5551 | wxTreeItemId * _arg0; | |
5552 | wxTreeItemId * _arg1; | |
5553 | PyObject * _argo0 = 0; | |
5554 | PyObject * _argo1 = 0; | |
5555 | char *_kwnames[] = { "self","other", NULL }; | |
5556 | ||
5557 | self = self; | |
5558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemId___cmp__",_kwnames,&_argo0,&_argo1)) | |
5559 | return NULL; | |
5560 | if (_argo0) { | |
5561 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5562 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeItemId_p")) { | |
5563 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
5564 | return NULL; | |
5565 | } | |
5566 | } | |
5567 | if (_argo1) { | |
5568 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5569 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
5570 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemId___cmp__. Expected _wxTreeItemId_p."); | |
5571 | return NULL; | |
5572 | } | |
5573 | } | |
5574 | { | |
5575 | wxPy_BEGIN_ALLOW_THREADS; | |
5576 | _result = (int )wxTreeItemId___cmp__(_arg0,_arg1); | |
5577 | ||
5578 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5579 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
5580 | } _resultobj = Py_BuildValue("i",_result); |
5581 | return _resultobj; | |
5582 | } | |
5583 | ||
9416aa89 RD |
5584 | static void *SwigwxPyTreeItemDataTowxObject(void *ptr) { |
5585 | wxPyTreeItemData *src; | |
5586 | wxObject *dest; | |
5587 | src = (wxPyTreeItemData *) ptr; | |
5588 | dest = (wxObject *) src; | |
5589 | return (void *) dest; | |
5590 | } | |
5591 | ||
cf694132 | 5592 | #define new_wxTreeItemData(_swigarg0) (new wxPyTreeItemData(_swigarg0)) |
efc5f224 | 5593 | static PyObject *_wrap_new_wxTreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5594 | PyObject * _resultobj; |
cf694132 | 5595 | wxPyTreeItemData * _result; |
1d99702e | 5596 | PyObject * _arg0 = (PyObject *) NULL; |
cf694132 | 5597 | PyObject * _obj0 = 0; |
efc5f224 | 5598 | char *_kwnames[] = { "obj", NULL }; |
d5c9047a | 5599 | char _ptemp[128]; |
8ab979d7 RD |
5600 | |
5601 | self = self; | |
efc5f224 | 5602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxTreeItemData",_kwnames,&_obj0)) |
8ab979d7 | 5603 | return NULL; |
cf694132 RD |
5604 | if (_obj0) |
5605 | { | |
5606 | _arg0 = _obj0; | |
5607 | } | |
5608 | { | |
5609 | wxPy_BEGIN_ALLOW_THREADS; | |
5610 | _result = (wxPyTreeItemData *)new_wxTreeItemData(_arg0); | |
5611 | ||
5612 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5613 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5614 | } if (_result) { |
5615 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
5616 | _resultobj = Py_BuildValue("s",_ptemp); | |
5617 | } else { | |
5618 | Py_INCREF(Py_None); | |
5619 | _resultobj = Py_None; | |
5620 | } | |
8ab979d7 RD |
5621 | return _resultobj; |
5622 | } | |
5623 | ||
cf694132 | 5624 | #define wxTreeItemData_GetData(_swigobj) (_swigobj->GetData()) |
efc5f224 | 5625 | static PyObject *_wrap_wxTreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
5626 | PyObject * _resultobj; |
5627 | PyObject * _result; | |
5628 | wxPyTreeItemData * _arg0; | |
1d99702e | 5629 | PyObject * _argo0 = 0; |
efc5f224 | 5630 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
5631 | |
5632 | self = self; | |
efc5f224 | 5633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetData",_kwnames,&_argo0)) |
cf694132 | 5634 | return NULL; |
1d99702e RD |
5635 | if (_argo0) { |
5636 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5637 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 RD |
5638 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetData. Expected _wxPyTreeItemData_p."); |
5639 | return NULL; | |
5640 | } | |
5641 | } | |
5642 | { | |
5643 | wxPy_BEGIN_ALLOW_THREADS; | |
5644 | _result = (PyObject *)wxTreeItemData_GetData(_arg0); | |
5645 | ||
5646 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5647 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
5648 | }{ |
5649 | _resultobj = _result; | |
5650 | } | |
5651 | return _resultobj; | |
5652 | } | |
5653 | ||
5654 | #define wxTreeItemData_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
efc5f224 | 5655 | static PyObject *_wrap_wxTreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5656 | PyObject * _resultobj; |
cf694132 RD |
5657 | wxPyTreeItemData * _arg0; |
5658 | PyObject * _arg1; | |
1d99702e | 5659 | PyObject * _argo0 = 0; |
cf694132 | 5660 | PyObject * _obj1 = 0; |
efc5f224 | 5661 | char *_kwnames[] = { "self","obj", NULL }; |
8ab979d7 RD |
5662 | |
5663 | self = self; | |
efc5f224 | 5664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetData",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 5665 | return NULL; |
1d99702e RD |
5666 | if (_argo0) { |
5667 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5668 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 5669 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetData. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
5670 | return NULL; |
5671 | } | |
5672 | } | |
cf694132 RD |
5673 | { |
5674 | _arg1 = _obj1; | |
5675 | } | |
5676 | { | |
5677 | wxPy_BEGIN_ALLOW_THREADS; | |
5678 | wxTreeItemData_SetData(_arg0,_arg1); | |
5679 | ||
5680 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5681 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5682 | } Py_INCREF(Py_None); |
d5c9047a | 5683 | _resultobj = Py_None; |
8ab979d7 RD |
5684 | return _resultobj; |
5685 | } | |
5686 | ||
630d84f2 | 5687 | #define wxTreeItemData_GetId(_swigobj) (_swigobj->GetId()) |
efc5f224 | 5688 | static PyObject *_wrap_wxTreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5689 | PyObject * _resultobj; |
d5c9047a | 5690 | wxTreeItemId * _result; |
cf694132 | 5691 | wxPyTreeItemData * _arg0; |
1d99702e | 5692 | PyObject * _argo0 = 0; |
efc5f224 | 5693 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5694 | char _ptemp[128]; |
5695 | ||
5696 | self = self; | |
efc5f224 | 5697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeItemData_GetId",_kwnames,&_argo0)) |
8ab979d7 | 5698 | return NULL; |
1d99702e RD |
5699 | if (_argo0) { |
5700 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5701 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 5702 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_GetId. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
5703 | return NULL; |
5704 | } | |
5705 | } | |
cf694132 RD |
5706 | { |
5707 | wxPy_BEGIN_ALLOW_THREADS; | |
5708 | const wxTreeItemId & _result_ref = wxTreeItemData_GetId(_arg0); | |
d5c9047a | 5709 | _result = (wxTreeItemId *) &_result_ref; |
cf694132 RD |
5710 | |
5711 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5712 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
5713 | } if (_result) { |
5714 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeItemId_p"); | |
5715 | _resultobj = Py_BuildValue("s",_ptemp); | |
5716 | } else { | |
5717 | Py_INCREF(Py_None); | |
5718 | _resultobj = Py_None; | |
5719 | } | |
8ab979d7 RD |
5720 | return _resultobj; |
5721 | } | |
5722 | ||
630d84f2 | 5723 | #define wxTreeItemData_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) |
efc5f224 | 5724 | static PyObject *_wrap_wxTreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
630d84f2 | 5725 | PyObject * _resultobj; |
cf694132 | 5726 | wxPyTreeItemData * _arg0; |
630d84f2 | 5727 | wxTreeItemId * _arg1; |
1d99702e RD |
5728 | PyObject * _argo0 = 0; |
5729 | PyObject * _argo1 = 0; | |
efc5f224 | 5730 | char *_kwnames[] = { "self","id", NULL }; |
630d84f2 RD |
5731 | |
5732 | self = self; | |
efc5f224 | 5733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeItemData_SetId",_kwnames,&_argo0,&_argo1)) |
630d84f2 | 5734 | return NULL; |
1d99702e RD |
5735 | if (_argo0) { |
5736 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5737 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeItemData_p")) { | |
cf694132 | 5738 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeItemData_SetId. Expected _wxPyTreeItemData_p."); |
630d84f2 RD |
5739 | return NULL; |
5740 | } | |
5741 | } | |
1d99702e RD |
5742 | if (_argo1) { |
5743 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5744 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
630d84f2 RD |
5745 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeItemData_SetId. Expected _wxTreeItemId_p."); |
5746 | return NULL; | |
5747 | } | |
5748 | } | |
cf694132 RD |
5749 | { |
5750 | wxPy_BEGIN_ALLOW_THREADS; | |
5751 | wxTreeItemData_SetId(_arg0,*_arg1); | |
5752 | ||
5753 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5754 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5755 | } Py_INCREF(Py_None); |
630d84f2 RD |
5756 | _resultobj = Py_None; |
5757 | return _resultobj; | |
5758 | } | |
5759 | ||
8bf5d46e RD |
5760 | static void *SwigwxTreeEventTowxNotifyEvent(void *ptr) { |
5761 | wxTreeEvent *src; | |
5762 | wxNotifyEvent *dest; | |
5763 | src = (wxTreeEvent *) ptr; | |
5764 | dest = (wxNotifyEvent *) src; | |
5765 | return (void *) dest; | |
5766 | } | |
5767 | ||
8ab979d7 RD |
5768 | static void *SwigwxTreeEventTowxCommandEvent(void *ptr) { |
5769 | wxTreeEvent *src; | |
5770 | wxCommandEvent *dest; | |
5771 | src = (wxTreeEvent *) ptr; | |
5772 | dest = (wxCommandEvent *) src; | |
5773 | return (void *) dest; | |
5774 | } | |
5775 | ||
5776 | static void *SwigwxTreeEventTowxEvent(void *ptr) { | |
5777 | wxTreeEvent *src; | |
5778 | wxEvent *dest; | |
5779 | src = (wxTreeEvent *) ptr; | |
5780 | dest = (wxEvent *) src; | |
5781 | return (void *) dest; | |
5782 | } | |
5783 | ||
9416aa89 RD |
5784 | static void *SwigwxTreeEventTowxObject(void *ptr) { |
5785 | wxTreeEvent *src; | |
5786 | wxObject *dest; | |
5787 | src = (wxTreeEvent *) ptr; | |
5788 | dest = (wxObject *) src; | |
5789 | return (void *) dest; | |
5790 | } | |
5791 | ||
00b6c4e3 RD |
5792 | #define new_wxTreeEvent(_swigarg0,_swigarg1) (new wxTreeEvent(_swigarg0,_swigarg1)) |
5793 | static PyObject *_wrap_new_wxTreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5794 | PyObject * _resultobj; | |
5795 | wxTreeEvent * _result; | |
5796 | wxEventType _arg0 = (wxEventType ) wxEVT_NULL; | |
5797 | int _arg1 = (int ) 0; | |
5798 | char *_kwnames[] = { "commandType","id", NULL }; | |
5799 | char _ptemp[128]; | |
5800 | ||
5801 | self = self; | |
5802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ii:new_wxTreeEvent",_kwnames,&_arg0,&_arg1)) | |
5803 | return NULL; | |
5804 | { | |
5805 | wxPy_BEGIN_ALLOW_THREADS; | |
5806 | _result = (wxTreeEvent *)new_wxTreeEvent(_arg0,_arg1); | |
5807 | ||
5808 | wxPy_END_ALLOW_THREADS; | |
5809 | if (PyErr_Occurred()) return NULL; | |
5810 | } if (_result) { | |
5811 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTreeEvent_p"); | |
5812 | _resultobj = Py_BuildValue("s",_ptemp); | |
5813 | } else { | |
5814 | Py_INCREF(Py_None); | |
5815 | _resultobj = Py_None; | |
5816 | } | |
5817 | return _resultobj; | |
5818 | } | |
5819 | ||
d5c9047a | 5820 | #define wxTreeEvent_GetItem(_swigobj) (_swigobj->GetItem()) |
efc5f224 | 5821 | static PyObject *_wrap_wxTreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5822 | PyObject * _resultobj; |
d5c9047a | 5823 | wxTreeItemId * _result; |
8ab979d7 | 5824 | wxTreeEvent * _arg0; |
1d99702e | 5825 | PyObject * _argo0 = 0; |
efc5f224 | 5826 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 5827 | char _ptemp[128]; |
8ab979d7 RD |
5828 | |
5829 | self = self; | |
efc5f224 | 5830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetItem",_kwnames,&_argo0)) |
8ab979d7 | 5831 | return NULL; |
1d99702e RD |
5832 | if (_argo0) { |
5833 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5834 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 5835 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetItem. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
5836 | return NULL; |
5837 | } | |
5838 | } | |
cf694132 RD |
5839 | { |
5840 | wxPy_BEGIN_ALLOW_THREADS; | |
5841 | _result = new wxTreeItemId (wxTreeEvent_GetItem(_arg0)); | |
5842 | ||
5843 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5844 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5845 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 5846 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
5847 | return _resultobj; |
5848 | } | |
5849 | ||
d5c9047a | 5850 | #define wxTreeEvent_GetOldItem(_swigobj) (_swigobj->GetOldItem()) |
efc5f224 | 5851 | static PyObject *_wrap_wxTreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5852 | PyObject * _resultobj; |
d5c9047a | 5853 | wxTreeItemId * _result; |
8ab979d7 | 5854 | wxTreeEvent * _arg0; |
1d99702e | 5855 | PyObject * _argo0 = 0; |
efc5f224 | 5856 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5857 | char _ptemp[128]; |
5858 | ||
5859 | self = self; | |
efc5f224 | 5860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetOldItem",_kwnames,&_argo0)) |
8ab979d7 | 5861 | return NULL; |
1d99702e RD |
5862 | if (_argo0) { |
5863 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5864 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 5865 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetOldItem. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
5866 | return NULL; |
5867 | } | |
5868 | } | |
cf694132 RD |
5869 | { |
5870 | wxPy_BEGIN_ALLOW_THREADS; | |
5871 | _result = new wxTreeItemId (wxTreeEvent_GetOldItem(_arg0)); | |
5872 | ||
5873 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5874 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5875 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
8ab979d7 RD |
5876 | _resultobj = Py_BuildValue("s",_ptemp); |
5877 | return _resultobj; | |
5878 | } | |
5879 | ||
d5c9047a | 5880 | #define wxTreeEvent_GetPoint(_swigobj) (_swigobj->GetPoint()) |
efc5f224 | 5881 | static PyObject *_wrap_wxTreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5882 | PyObject * _resultobj; |
d5c9047a | 5883 | wxPoint * _result; |
8ab979d7 | 5884 | wxTreeEvent * _arg0; |
1d99702e | 5885 | PyObject * _argo0 = 0; |
efc5f224 | 5886 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 5887 | char _ptemp[128]; |
8ab979d7 RD |
5888 | |
5889 | self = self; | |
efc5f224 | 5890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetPoint",_kwnames,&_argo0)) |
8ab979d7 | 5891 | return NULL; |
1d99702e RD |
5892 | if (_argo0) { |
5893 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5894 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 5895 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetPoint. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
5896 | return NULL; |
5897 | } | |
5898 | } | |
cf694132 RD |
5899 | { |
5900 | wxPy_BEGIN_ALLOW_THREADS; | |
5901 | _result = new wxPoint (wxTreeEvent_GetPoint(_arg0)); | |
5902 | ||
5903 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5904 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5905 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
d5c9047a | 5906 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
5907 | return _resultobj; |
5908 | } | |
5909 | ||
d5c9047a | 5910 | #define wxTreeEvent_GetCode(_swigobj) (_swigobj->GetCode()) |
efc5f224 | 5911 | static PyObject *_wrap_wxTreeEvent_GetCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 5912 | PyObject * _resultobj; |
d5c9047a | 5913 | int _result; |
8ab979d7 | 5914 | wxTreeEvent * _arg0; |
1d99702e | 5915 | PyObject * _argo0 = 0; |
efc5f224 | 5916 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5917 | |
5918 | self = self; | |
efc5f224 | 5919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetCode",_kwnames,&_argo0)) |
8ab979d7 | 5920 | return NULL; |
1d99702e RD |
5921 | if (_argo0) { |
5922 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5923 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
d5c9047a | 5924 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetCode. Expected _wxTreeEvent_p."); |
8ab979d7 RD |
5925 | return NULL; |
5926 | } | |
5927 | } | |
cf694132 RD |
5928 | { |
5929 | wxPy_BEGIN_ALLOW_THREADS; | |
5930 | _result = (int )wxTreeEvent_GetCode(_arg0); | |
5931 | ||
5932 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5933 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5934 | } _resultobj = Py_BuildValue("i",_result); |
d5c9047a RD |
5935 | return _resultobj; |
5936 | } | |
5937 | ||
8bf5d46e | 5938 | #define wxTreeEvent_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 5939 | static PyObject *_wrap_wxTreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 5940 | PyObject * _resultobj; |
8bf5d46e | 5941 | wxString * _result; |
d5c9047a | 5942 | wxTreeEvent * _arg0; |
1d99702e | 5943 | PyObject * _argo0 = 0; |
efc5f224 | 5944 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
5945 | |
5946 | self = self; | |
efc5f224 | 5947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeEvent_GetLabel",_kwnames,&_argo0)) |
d5c9047a | 5948 | return NULL; |
1d99702e RD |
5949 | if (_argo0) { |
5950 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5951 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeEvent_p")) { | |
8bf5d46e | 5952 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeEvent_GetLabel. Expected _wxTreeEvent_p."); |
d5c9047a RD |
5953 | return NULL; |
5954 | } | |
5955 | } | |
cf694132 RD |
5956 | { |
5957 | wxPy_BEGIN_ALLOW_THREADS; | |
8bf5d46e RD |
5958 | const wxString & _result_ref = wxTreeEvent_GetLabel(_arg0); |
5959 | _result = (wxString *) &_result_ref; | |
cf694132 RD |
5960 | |
5961 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 5962 | if (PyErr_Occurred()) return NULL; |
8bf5d46e | 5963 | }{ |
eec92d76 | 5964 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
8bf5d46e | 5965 | } |
8ab979d7 RD |
5966 | return _resultobj; |
5967 | } | |
5968 | ||
f6bcfd97 BP |
5969 | static void *SwigwxPyTreeCtrlTowxControl(void *ptr) { |
5970 | wxPyTreeCtrl *src; | |
8ab979d7 | 5971 | wxControl *dest; |
f6bcfd97 | 5972 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
5973 | dest = (wxControl *) src; |
5974 | return (void *) dest; | |
5975 | } | |
5976 | ||
f6bcfd97 BP |
5977 | static void *SwigwxPyTreeCtrlTowxWindow(void *ptr) { |
5978 | wxPyTreeCtrl *src; | |
8ab979d7 | 5979 | wxWindow *dest; |
f6bcfd97 | 5980 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
5981 | dest = (wxWindow *) src; |
5982 | return (void *) dest; | |
5983 | } | |
5984 | ||
f6bcfd97 BP |
5985 | static void *SwigwxPyTreeCtrlTowxEvtHandler(void *ptr) { |
5986 | wxPyTreeCtrl *src; | |
8ab979d7 | 5987 | wxEvtHandler *dest; |
f6bcfd97 | 5988 | src = (wxPyTreeCtrl *) ptr; |
8ab979d7 RD |
5989 | dest = (wxEvtHandler *) src; |
5990 | return (void *) dest; | |
5991 | } | |
5992 | ||
9416aa89 RD |
5993 | static void *SwigwxPyTreeCtrlTowxObject(void *ptr) { |
5994 | wxPyTreeCtrl *src; | |
5995 | wxObject *dest; | |
5996 | src = (wxPyTreeCtrl *) ptr; | |
5997 | dest = (wxObject *) src; | |
5998 | return (void *) dest; | |
5999 | } | |
6000 | ||
f6bcfd97 | 6001 | #define new_wxTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxPyTreeCtrl(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 6002 | static PyObject *_wrap_new_wxTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6003 | PyObject * _resultobj; |
f6bcfd97 | 6004 | wxPyTreeCtrl * _result; |
8ab979d7 | 6005 | wxWindow * _arg0; |
1d99702e | 6006 | wxWindowID _arg1 = (wxWindowID ) -1; |
e508a2b6 RD |
6007 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
6008 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
00b6c4e3 | 6009 | long _arg4 = (long ) (wxTR_HAS_BUTTONS)|(wxTR_LINES_AT_ROOT); |
e508a2b6 | 6010 | wxValidator * _arg5 = (wxValidator *) &wxDefaultValidator; |
1d99702e RD |
6011 | char * _arg6 = (char *) "wxTreeCtrl"; |
6012 | PyObject * _argo0 = 0; | |
2f90df85 RD |
6013 | wxPoint temp; |
6014 | PyObject * _obj2 = 0; | |
6015 | wxSize temp0; | |
6016 | PyObject * _obj3 = 0; | |
1d99702e | 6017 | PyObject * _argo5 = 0; |
efc5f224 | 6018 | char *_kwnames[] = { "parent","id","pos","size","style","validator","name", NULL }; |
8ab979d7 RD |
6019 | char _ptemp[128]; |
6020 | ||
6021 | self = self; | |
2f90df85 | 6022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlOs:new_wxTreeCtrl",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5,&_arg6)) |
8ab979d7 | 6023 | return NULL; |
1d99702e RD |
6024 | if (_argo0) { |
6025 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6026 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6027 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxTreeCtrl. Expected _wxWindow_p."); |
6028 | return NULL; | |
6029 | } | |
6030 | } | |
2f90df85 RD |
6031 | if (_obj2) |
6032 | { | |
6033 | _arg2 = &temp; | |
6034 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 6035 | return NULL; |
2f90df85 RD |
6036 | } |
6037 | if (_obj3) | |
6038 | { | |
6039 | _arg3 = &temp0; | |
6040 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 6041 | return NULL; |
2f90df85 | 6042 | } |
1d99702e RD |
6043 | if (_argo5) { |
6044 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
6045 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxValidator_p")) { | |
8ab979d7 RD |
6046 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxTreeCtrl. Expected _wxValidator_p."); |
6047 | return NULL; | |
6048 | } | |
6049 | } | |
cf694132 RD |
6050 | { |
6051 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 6052 | _result = (wxPyTreeCtrl *)new_wxTreeCtrl(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5,_arg6); |
cf694132 RD |
6053 | |
6054 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6055 | if (PyErr_Occurred()) return NULL; |
1d99702e | 6056 | } if (_result) { |
f6bcfd97 | 6057 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeCtrl_p"); |
1d99702e RD |
6058 | _resultobj = Py_BuildValue("s",_ptemp); |
6059 | } else { | |
6060 | Py_INCREF(Py_None); | |
6061 | _resultobj = Py_None; | |
6062 | } | |
8ab979d7 RD |
6063 | return _resultobj; |
6064 | } | |
6065 | ||
f6bcfd97 BP |
6066 | #define wxTreeCtrl__setSelf(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setSelf(_swigarg0,_swigarg1)) |
6067 | static PyObject *_wrap_wxTreeCtrl__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6068 | PyObject * _resultobj; | |
6069 | wxPyTreeCtrl * _arg0; | |
6070 | PyObject * _arg1; | |
6071 | PyObject * _arg2; | |
6072 | PyObject * _argo0 = 0; | |
6073 | PyObject * _obj1 = 0; | |
6074 | PyObject * _obj2 = 0; | |
6075 | char *_kwnames[] = { "self","self","_class", NULL }; | |
6076 | ||
6077 | self = self; | |
6078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl__setSelf",_kwnames,&_argo0,&_obj1,&_obj2)) | |
6079 | return NULL; | |
6080 | if (_argo0) { | |
6081 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6082 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6083 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl__setSelf. Expected _wxPyTreeCtrl_p."); | |
6084 | return NULL; | |
6085 | } | |
6086 | } | |
6087 | { | |
6088 | _arg1 = _obj1; | |
6089 | } | |
6090 | { | |
6091 | _arg2 = _obj2; | |
6092 | } | |
6093 | { | |
6094 | wxPy_BEGIN_ALLOW_THREADS; | |
6095 | wxTreeCtrl__setSelf(_arg0,_arg1,_arg2); | |
6096 | ||
6097 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6098 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
6099 | } Py_INCREF(Py_None); |
6100 | _resultobj = Py_None; | |
6101 | return _resultobj; | |
6102 | } | |
6103 | ||
d5c9047a | 6104 | #define wxTreeCtrl_GetCount(_swigobj) (_swigobj->GetCount()) |
efc5f224 | 6105 | static PyObject *_wrap_wxTreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6106 | PyObject * _resultobj; |
c127177f | 6107 | size_t _result; |
f6bcfd97 | 6108 | wxPyTreeCtrl * _arg0; |
1d99702e | 6109 | PyObject * _argo0 = 0; |
efc5f224 | 6110 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6111 | |
6112 | self = self; | |
efc5f224 | 6113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetCount",_kwnames,&_argo0)) |
8ab979d7 | 6114 | return NULL; |
1d99702e RD |
6115 | if (_argo0) { |
6116 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6117 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6118 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetCount. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6119 | return NULL; |
6120 | } | |
6121 | } | |
cf694132 RD |
6122 | { |
6123 | wxPy_BEGIN_ALLOW_THREADS; | |
c127177f | 6124 | _result = (size_t )wxTreeCtrl_GetCount(_arg0); |
cf694132 RD |
6125 | |
6126 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6127 | if (PyErr_Occurred()) return NULL; |
c127177f | 6128 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6129 | return _resultobj; |
6130 | } | |
6131 | ||
d5c9047a | 6132 | #define wxTreeCtrl_GetIndent(_swigobj) (_swigobj->GetIndent()) |
efc5f224 | 6133 | static PyObject *_wrap_wxTreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6134 | PyObject * _resultobj; |
d5c9047a | 6135 | unsigned int _result; |
f6bcfd97 | 6136 | wxPyTreeCtrl * _arg0; |
1d99702e | 6137 | PyObject * _argo0 = 0; |
efc5f224 | 6138 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6139 | |
6140 | self = self; | |
efc5f224 | 6141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetIndent",_kwnames,&_argo0)) |
8ab979d7 | 6142 | return NULL; |
1d99702e RD |
6143 | if (_argo0) { |
6144 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6145 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6146 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetIndent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6147 | return NULL; |
6148 | } | |
6149 | } | |
cf694132 RD |
6150 | { |
6151 | wxPy_BEGIN_ALLOW_THREADS; | |
6152 | _result = (unsigned int )wxTreeCtrl_GetIndent(_arg0); | |
6153 | ||
6154 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6155 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6156 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6157 | return _resultobj; |
6158 | } | |
6159 | ||
d5c9047a | 6160 | #define wxTreeCtrl_SetIndent(_swigobj,_swigarg0) (_swigobj->SetIndent(_swigarg0)) |
efc5f224 | 6161 | static PyObject *_wrap_wxTreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6162 | PyObject * _resultobj; |
f6bcfd97 | 6163 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6164 | unsigned int _arg1; |
1d99702e | 6165 | PyObject * _argo0 = 0; |
efc5f224 | 6166 | char *_kwnames[] = { "self","indent", NULL }; |
8ab979d7 RD |
6167 | |
6168 | self = self; | |
efc5f224 | 6169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetIndent",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 6170 | return NULL; |
1d99702e RD |
6171 | if (_argo0) { |
6172 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6173 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6174 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetIndent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6175 | return NULL; |
6176 | } | |
6177 | } | |
cf694132 RD |
6178 | { |
6179 | wxPy_BEGIN_ALLOW_THREADS; | |
6180 | wxTreeCtrl_SetIndent(_arg0,_arg1); | |
6181 | ||
6182 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6183 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6184 | } Py_INCREF(Py_None); |
d5c9047a | 6185 | _resultobj = Py_None; |
8ab979d7 RD |
6186 | return _resultobj; |
6187 | } | |
6188 | ||
d5c9047a | 6189 | #define wxTreeCtrl_GetImageList(_swigobj) (_swigobj->GetImageList()) |
efc5f224 | 6190 | static PyObject *_wrap_wxTreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6191 | PyObject * _resultobj; |
d5c9047a | 6192 | wxImageList * _result; |
f6bcfd97 | 6193 | wxPyTreeCtrl * _arg0; |
1d99702e | 6194 | PyObject * _argo0 = 0; |
efc5f224 | 6195 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6196 | |
6197 | self = self; | |
efc5f224 | 6198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetImageList",_kwnames,&_argo0)) |
8ab979d7 | 6199 | return NULL; |
1d99702e RD |
6200 | if (_argo0) { |
6201 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6202 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6203 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6204 | return NULL; |
6205 | } | |
6206 | } | |
cf694132 RD |
6207 | { |
6208 | wxPy_BEGIN_ALLOW_THREADS; | |
6209 | _result = (wxImageList *)wxTreeCtrl_GetImageList(_arg0); | |
6210 | ||
6211 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6212 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 6213 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
6214 | return _resultobj; |
6215 | } | |
6216 | ||
d5c9047a | 6217 | #define wxTreeCtrl_GetStateImageList(_swigobj) (_swigobj->GetStateImageList()) |
efc5f224 | 6218 | static PyObject *_wrap_wxTreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6219 | PyObject * _resultobj; |
d5c9047a | 6220 | wxImageList * _result; |
f6bcfd97 | 6221 | wxPyTreeCtrl * _arg0; |
1d99702e | 6222 | PyObject * _argo0 = 0; |
efc5f224 | 6223 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6224 | |
6225 | self = self; | |
efc5f224 | 6226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetStateImageList",_kwnames,&_argo0)) |
8ab979d7 | 6227 | return NULL; |
1d99702e RD |
6228 | if (_argo0) { |
6229 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6230 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6231 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetStateImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6232 | return NULL; |
6233 | } | |
6234 | } | |
cf694132 RD |
6235 | { |
6236 | wxPy_BEGIN_ALLOW_THREADS; | |
6237 | _result = (wxImageList *)wxTreeCtrl_GetStateImageList(_arg0); | |
6238 | ||
6239 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6240 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 6241 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
6242 | return _resultobj; |
6243 | } | |
6244 | ||
d5c9047a | 6245 | #define wxTreeCtrl_SetImageList(_swigobj,_swigarg0) (_swigobj->SetImageList(_swigarg0)) |
efc5f224 | 6246 | static PyObject *_wrap_wxTreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6247 | PyObject * _resultobj; |
f6bcfd97 | 6248 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6249 | wxImageList * _arg1; |
1d99702e RD |
6250 | PyObject * _argo0 = 0; |
6251 | PyObject * _argo1 = 0; | |
efc5f224 | 6252 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
6253 | |
6254 | self = self; | |
efc5f224 | 6255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6256 | return NULL; |
1d99702e RD |
6257 | if (_argo0) { |
6258 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6259 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6261 | return NULL; |
6262 | } | |
6263 | } | |
1d99702e RD |
6264 | if (_argo1) { |
6265 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6266 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
d5c9047a RD |
6267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetImageList. Expected _wxImageList_p."); |
6268 | return NULL; | |
6269 | } | |
6270 | } | |
cf694132 RD |
6271 | { |
6272 | wxPy_BEGIN_ALLOW_THREADS; | |
6273 | wxTreeCtrl_SetImageList(_arg0,_arg1); | |
6274 | ||
6275 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6276 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6277 | } Py_INCREF(Py_None); |
d5c9047a | 6278 | _resultobj = Py_None; |
8ab979d7 RD |
6279 | return _resultobj; |
6280 | } | |
6281 | ||
d5c9047a | 6282 | #define wxTreeCtrl_SetStateImageList(_swigobj,_swigarg0) (_swigobj->SetStateImageList(_swigarg0)) |
efc5f224 | 6283 | static PyObject *_wrap_wxTreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6284 | PyObject * _resultobj; |
f6bcfd97 | 6285 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6286 | wxImageList * _arg1; |
1d99702e RD |
6287 | PyObject * _argo0 = 0; |
6288 | PyObject * _argo1 = 0; | |
efc5f224 | 6289 | char *_kwnames[] = { "self","imageList", NULL }; |
8ab979d7 RD |
6290 | |
6291 | self = self; | |
efc5f224 | 6292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SetStateImageList",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6293 | return NULL; |
1d99702e RD |
6294 | if (_argo0) { |
6295 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6296 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6297 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetStateImageList. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6298 | return NULL; |
6299 | } | |
6300 | } | |
1d99702e RD |
6301 | if (_argo1) { |
6302 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6303 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
d5c9047a RD |
6304 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetStateImageList. Expected _wxImageList_p."); |
6305 | return NULL; | |
6306 | } | |
6307 | } | |
cf694132 RD |
6308 | { |
6309 | wxPy_BEGIN_ALLOW_THREADS; | |
6310 | wxTreeCtrl_SetStateImageList(_arg0,_arg1); | |
6311 | ||
6312 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6313 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6314 | } Py_INCREF(Py_None); |
d5c9047a | 6315 | _resultobj = Py_None; |
8ab979d7 RD |
6316 | return _resultobj; |
6317 | } | |
6318 | ||
00b6c4e3 RD |
6319 | #define wxTreeCtrl_AssignImageList(_swigobj,_swigarg0) (_swigobj->AssignImageList(_swigarg0)) |
6320 | static PyObject *_wrap_wxTreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6321 | PyObject * _resultobj; | |
6322 | wxPyTreeCtrl * _arg0; | |
6323 | wxImageList * _arg1; | |
6324 | PyObject * _argo0 = 0; | |
6325 | PyObject * _argo1 = 0; | |
6326 | char *_kwnames[] = { "self","imageList", NULL }; | |
6327 | ||
6328 | self = self; | |
6329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignImageList",_kwnames,&_argo0,&_argo1)) | |
6330 | return NULL; | |
6331 | if (_argo0) { | |
6332 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6333 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6334 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignImageList. Expected _wxPyTreeCtrl_p."); | |
6335 | return NULL; | |
6336 | } | |
6337 | } | |
6338 | if (_argo1) { | |
6339 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6340 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
6341 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignImageList. Expected _wxImageList_p."); | |
6342 | return NULL; | |
6343 | } | |
6344 | } | |
6345 | { | |
6346 | wxPy_BEGIN_ALLOW_THREADS; | |
6347 | wxTreeCtrl_AssignImageList(_arg0,_arg1); | |
6348 | ||
6349 | wxPy_END_ALLOW_THREADS; | |
6350 | if (PyErr_Occurred()) return NULL; | |
6351 | } Py_INCREF(Py_None); | |
6352 | _resultobj = Py_None; | |
6353 | return _resultobj; | |
6354 | } | |
6355 | ||
6356 | #define wxTreeCtrl_AssignStateImageList(_swigobj,_swigarg0) (_swigobj->AssignStateImageList(_swigarg0)) | |
6357 | static PyObject *_wrap_wxTreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6358 | PyObject * _resultobj; | |
6359 | wxPyTreeCtrl * _arg0; | |
6360 | wxImageList * _arg1; | |
6361 | PyObject * _argo0 = 0; | |
6362 | PyObject * _argo1 = 0; | |
6363 | char *_kwnames[] = { "self","imageList", NULL }; | |
6364 | ||
6365 | self = self; | |
6366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_AssignStateImageList",_kwnames,&_argo0,&_argo1)) | |
6367 | return NULL; | |
6368 | if (_argo0) { | |
6369 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6370 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
6371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AssignStateImageList. Expected _wxPyTreeCtrl_p."); | |
6372 | return NULL; | |
6373 | } | |
6374 | } | |
6375 | if (_argo1) { | |
6376 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6377 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxImageList_p")) { | |
6378 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AssignStateImageList. Expected _wxImageList_p."); | |
6379 | return NULL; | |
6380 | } | |
6381 | } | |
6382 | { | |
6383 | wxPy_BEGIN_ALLOW_THREADS; | |
6384 | wxTreeCtrl_AssignStateImageList(_arg0,_arg1); | |
6385 | ||
6386 | wxPy_END_ALLOW_THREADS; | |
6387 | if (PyErr_Occurred()) return NULL; | |
6388 | } Py_INCREF(Py_None); | |
6389 | _resultobj = Py_None; | |
6390 | return _resultobj; | |
6391 | } | |
6392 | ||
b1462dfa RD |
6393 | #define wxTreeCtrl_GetSpacing(_swigobj) (_swigobj->GetSpacing()) |
6394 | static PyObject *_wrap_wxTreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6395 | PyObject * _resultobj; | |
6396 | unsigned int _result; | |
f6bcfd97 | 6397 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
6398 | PyObject * _argo0 = 0; |
6399 | char *_kwnames[] = { "self", NULL }; | |
6400 | ||
6401 | self = self; | |
6402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSpacing",_kwnames,&_argo0)) | |
6403 | return NULL; | |
6404 | if (_argo0) { | |
6405 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6406 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6407 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSpacing. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
6408 | return NULL; |
6409 | } | |
6410 | } | |
6411 | { | |
6412 | wxPy_BEGIN_ALLOW_THREADS; | |
6413 | _result = (unsigned int )wxTreeCtrl_GetSpacing(_arg0); | |
6414 | ||
6415 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6416 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
6417 | } _resultobj = Py_BuildValue("i",_result); |
6418 | return _resultobj; | |
6419 | } | |
6420 | ||
6421 | #define wxTreeCtrl_SetSpacing(_swigobj,_swigarg0) (_swigobj->SetSpacing(_swigarg0)) | |
6422 | static PyObject *_wrap_wxTreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6423 | PyObject * _resultobj; | |
f6bcfd97 | 6424 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
6425 | unsigned int _arg1; |
6426 | PyObject * _argo0 = 0; | |
6427 | char *_kwnames[] = { "self","spacing", NULL }; | |
6428 | ||
6429 | self = self; | |
6430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxTreeCtrl_SetSpacing",_kwnames,&_argo0,&_arg1)) | |
6431 | return NULL; | |
6432 | if (_argo0) { | |
6433 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6434 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6435 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetSpacing. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
6436 | return NULL; |
6437 | } | |
6438 | } | |
6439 | { | |
6440 | wxPy_BEGIN_ALLOW_THREADS; | |
6441 | wxTreeCtrl_SetSpacing(_arg0,_arg1); | |
6442 | ||
6443 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6444 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
6445 | } Py_INCREF(Py_None); |
6446 | _resultobj = Py_None; | |
6447 | return _resultobj; | |
6448 | } | |
6449 | ||
d5c9047a | 6450 | #define wxTreeCtrl_GetItemText(_swigobj,_swigarg0) (_swigobj->GetItemText(_swigarg0)) |
efc5f224 | 6451 | static PyObject *_wrap_wxTreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6452 | PyObject * _resultobj; |
d5c9047a | 6453 | wxString * _result; |
f6bcfd97 | 6454 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6455 | wxTreeItemId * _arg1; |
1d99702e RD |
6456 | PyObject * _argo0 = 0; |
6457 | PyObject * _argo1 = 0; | |
efc5f224 | 6458 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
6459 | |
6460 | self = self; | |
efc5f224 | 6461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemText",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6462 | return NULL; |
1d99702e RD |
6463 | if (_argo0) { |
6464 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6465 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemText. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6467 | return NULL; |
6468 | } | |
6469 | } | |
1d99702e RD |
6470 | if (_argo1) { |
6471 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6472 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6473 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemText. Expected _wxTreeItemId_p."); |
6474 | return NULL; | |
6475 | } | |
6476 | } | |
d5c9047a | 6477 | { |
cf694132 RD |
6478 | wxPy_BEGIN_ALLOW_THREADS; |
6479 | _result = new wxString (wxTreeCtrl_GetItemText(_arg0,*_arg1)); | |
6480 | ||
6481 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6482 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6483 | }{ |
eec92d76 | 6484 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
d5c9047a RD |
6485 | } |
6486 | { | |
6487 | delete _result; | |
6488 | } | |
8ab979d7 RD |
6489 | return _resultobj; |
6490 | } | |
6491 | ||
694759cf | 6492 | #define wxTreeCtrl_GetItemImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetItemImage(_swigarg0,_swigarg1)) |
efc5f224 | 6493 | static PyObject *_wrap_wxTreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6494 | PyObject * _resultobj; |
d5c9047a | 6495 | int _result; |
f6bcfd97 | 6496 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6497 | wxTreeItemId * _arg1; |
694759cf | 6498 | wxTreeItemIcon _arg2 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); |
1d99702e RD |
6499 | PyObject * _argo0 = 0; |
6500 | PyObject * _argo1 = 0; | |
694759cf | 6501 | char *_kwnames[] = { "self","item","which", NULL }; |
8ab979d7 RD |
6502 | |
6503 | self = self; | |
694759cf | 6504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetItemImage",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 6505 | return NULL; |
1d99702e RD |
6506 | if (_argo0) { |
6507 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6508 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6509 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6510 | return NULL; |
6511 | } | |
6512 | } | |
1d99702e RD |
6513 | if (_argo1) { |
6514 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6515 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemImage. Expected _wxTreeItemId_p."); |
6517 | return NULL; | |
6518 | } | |
6519 | } | |
cf694132 RD |
6520 | { |
6521 | wxPy_BEGIN_ALLOW_THREADS; | |
694759cf | 6522 | _result = (int )wxTreeCtrl_GetItemImage(_arg0,*_arg1,_arg2); |
cf694132 RD |
6523 | |
6524 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6525 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6526 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6527 | return _resultobj; |
6528 | } | |
6529 | ||
d5c9047a | 6530 | #define wxTreeCtrl_GetItemSelectedImage(_swigobj,_swigarg0) (_swigobj->GetItemSelectedImage(_swigarg0)) |
efc5f224 | 6531 | static PyObject *_wrap_wxTreeCtrl_GetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6532 | PyObject * _resultobj; |
d5c9047a | 6533 | int _result; |
f6bcfd97 | 6534 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6535 | wxTreeItemId * _arg1; |
1d99702e RD |
6536 | PyObject * _argo0 = 0; |
6537 | PyObject * _argo1 = 0; | |
efc5f224 | 6538 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
6539 | |
6540 | self = self; | |
efc5f224 | 6541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemSelectedImage",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6542 | return NULL; |
1d99702e RD |
6543 | if (_argo0) { |
6544 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6545 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6546 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6547 | return NULL; |
6548 | } | |
6549 | } | |
1d99702e RD |
6550 | if (_argo1) { |
6551 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6552 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6553 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemSelectedImage. Expected _wxTreeItemId_p."); |
6554 | return NULL; | |
6555 | } | |
6556 | } | |
cf694132 RD |
6557 | { |
6558 | wxPy_BEGIN_ALLOW_THREADS; | |
6559 | _result = (int )wxTreeCtrl_GetItemSelectedImage(_arg0,*_arg1); | |
8ab979d7 | 6560 | |
cf694132 | 6561 | wxPy_END_ALLOW_THREADS; |
493f1553 | 6562 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6563 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6564 | return _resultobj; |
6565 | } | |
6566 | ||
d5c9047a | 6567 | #define wxTreeCtrl_SetItemText(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemText(_swigarg0,_swigarg1)) |
efc5f224 | 6568 | static PyObject *_wrap_wxTreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6569 | PyObject * _resultobj; |
f6bcfd97 | 6570 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
6571 | wxTreeItemId * _arg1; |
6572 | wxString * _arg2; | |
1d99702e RD |
6573 | PyObject * _argo0 = 0; |
6574 | PyObject * _argo1 = 0; | |
d5c9047a | 6575 | PyObject * _obj2 = 0; |
efc5f224 | 6576 | char *_kwnames[] = { "self","item","text", NULL }; |
8ab979d7 RD |
6577 | |
6578 | self = self; | |
efc5f224 | 6579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemText",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 6580 | return NULL; |
1d99702e RD |
6581 | if (_argo0) { |
6582 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6583 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6584 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemText. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6585 | return NULL; |
6586 | } | |
6587 | } | |
1d99702e RD |
6588 | if (_argo1) { |
6589 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6590 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6591 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemText. Expected _wxTreeItemId_p."); |
6592 | return NULL; | |
6593 | } | |
6594 | } | |
6595 | { | |
185d7c3e RD |
6596 | #if PYTHON_API_VERSION >= 1009 |
6597 | char* tmpPtr; int tmpSize; | |
6598 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 6599 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
6600 | return NULL; |
6601 | } | |
6602 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
6603 | return NULL; | |
6604 | _arg2 = new wxString(tmpPtr, tmpSize); | |
6605 | #else | |
d5c9047a RD |
6606 | if (!PyString_Check(_obj2)) { |
6607 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6608 | return NULL; | |
6609 | } | |
185d7c3e RD |
6610 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
6611 | #endif | |
d5c9047a | 6612 | } |
cf694132 RD |
6613 | { |
6614 | wxPy_BEGIN_ALLOW_THREADS; | |
6615 | wxTreeCtrl_SetItemText(_arg0,*_arg1,*_arg2); | |
6616 | ||
6617 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6618 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6619 | } Py_INCREF(Py_None); |
d5c9047a RD |
6620 | _resultobj = Py_None; |
6621 | { | |
6622 | if (_obj2) | |
6623 | delete _arg2; | |
6624 | } | |
8ab979d7 RD |
6625 | return _resultobj; |
6626 | } | |
6627 | ||
694759cf | 6628 | #define wxTreeCtrl_SetItemImage(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetItemImage(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 6629 | static PyObject *_wrap_wxTreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6630 | PyObject * _resultobj; |
f6bcfd97 | 6631 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
6632 | wxTreeItemId * _arg1; |
6633 | int _arg2; | |
694759cf | 6634 | wxTreeItemIcon _arg3 = (wxTreeItemIcon ) (wxTreeItemIcon_Normal); |
1d99702e RD |
6635 | PyObject * _argo0 = 0; |
6636 | PyObject * _argo1 = 0; | |
694759cf | 6637 | char *_kwnames[] = { "self","item","image","which", NULL }; |
8ab979d7 RD |
6638 | |
6639 | self = self; | |
694759cf | 6640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|i:wxTreeCtrl_SetItemImage",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8ab979d7 | 6641 | return NULL; |
1d99702e RD |
6642 | if (_argo0) { |
6643 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6644 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6645 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6646 | return NULL; |
6647 | } | |
6648 | } | |
1d99702e RD |
6649 | if (_argo1) { |
6650 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6651 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6652 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemImage. Expected _wxTreeItemId_p."); |
6653 | return NULL; | |
6654 | } | |
6655 | } | |
cf694132 RD |
6656 | { |
6657 | wxPy_BEGIN_ALLOW_THREADS; | |
694759cf | 6658 | wxTreeCtrl_SetItemImage(_arg0,*_arg1,_arg2,_arg3); |
cf694132 RD |
6659 | |
6660 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6661 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6662 | } Py_INCREF(Py_None); |
d5c9047a | 6663 | _resultobj = Py_None; |
8ab979d7 RD |
6664 | return _resultobj; |
6665 | } | |
6666 | ||
d5c9047a | 6667 | #define wxTreeCtrl_SetItemSelectedImage(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemSelectedImage(_swigarg0,_swigarg1)) |
efc5f224 | 6668 | static PyObject *_wrap_wxTreeCtrl_SetItemSelectedImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6669 | PyObject * _resultobj; |
f6bcfd97 | 6670 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
6671 | wxTreeItemId * _arg1; |
6672 | int _arg2; | |
1d99702e RD |
6673 | PyObject * _argo0 = 0; |
6674 | PyObject * _argo1 = 0; | |
efc5f224 | 6675 | char *_kwnames[] = { "self","item","image", NULL }; |
8ab979d7 RD |
6676 | |
6677 | self = self; | |
efc5f224 | 6678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxTreeCtrl_SetItemSelectedImage",_kwnames,&_argo0,&_argo1,&_arg2)) |
8ab979d7 | 6679 | return NULL; |
1d99702e RD |
6680 | if (_argo0) { |
6681 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6682 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6683 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemSelectedImage. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6684 | return NULL; |
6685 | } | |
6686 | } | |
1d99702e RD |
6687 | if (_argo1) { |
6688 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6689 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6690 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemSelectedImage. Expected _wxTreeItemId_p."); |
6691 | return NULL; | |
6692 | } | |
6693 | } | |
cf694132 RD |
6694 | { |
6695 | wxPy_BEGIN_ALLOW_THREADS; | |
6696 | wxTreeCtrl_SetItemSelectedImage(_arg0,*_arg1,_arg2); | |
6697 | ||
6698 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6699 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
6700 | } Py_INCREF(Py_None); |
6701 | _resultobj = Py_None; | |
6702 | return _resultobj; | |
6703 | } | |
6704 | ||
6705 | #define wxTreeCtrl_SetItemHasChildren(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemHasChildren(_swigarg0,_swigarg1)) | |
efc5f224 | 6706 | static PyObject *_wrap_wxTreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 | 6707 | PyObject * _resultobj; |
f6bcfd97 | 6708 | wxPyTreeCtrl * _arg0; |
cf694132 | 6709 | wxTreeItemId * _arg1; |
1d99702e RD |
6710 | bool _arg2 = (bool ) TRUE; |
6711 | PyObject * _argo0 = 0; | |
6712 | PyObject * _argo1 = 0; | |
6713 | int tempbool2 = (int) TRUE; | |
efc5f224 | 6714 | char *_kwnames[] = { "self","item","hasChildren", NULL }; |
cf694132 RD |
6715 | |
6716 | self = self; | |
efc5f224 | 6717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemHasChildren",_kwnames,&_argo0,&_argo1,&tempbool2)) |
cf694132 | 6718 | return NULL; |
1d99702e RD |
6719 | if (_argo0) { |
6720 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6721 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6722 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
6723 | return NULL; |
6724 | } | |
6725 | } | |
1d99702e RD |
6726 | if (_argo1) { |
6727 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6728 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
6729 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemHasChildren. Expected _wxTreeItemId_p."); |
6730 | return NULL; | |
6731 | } | |
6732 | } | |
6733 | _arg2 = (bool ) tempbool2; | |
6734 | { | |
6735 | wxPy_BEGIN_ALLOW_THREADS; | |
6736 | wxTreeCtrl_SetItemHasChildren(_arg0,*_arg1,_arg2); | |
6737 | ||
6738 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6739 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6740 | } Py_INCREF(Py_None); |
d5c9047a | 6741 | _resultobj = Py_None; |
8ab979d7 RD |
6742 | return _resultobj; |
6743 | } | |
6744 | ||
f6bcfd97 | 6745 | static wxPyTreeItemData * wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item) { |
cf694132 RD |
6746 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
6747 | if (data == NULL) { | |
6748 | data = new wxPyTreeItemData(); | |
f6bcfd97 | 6749 | data->SetId(item); // set the id |
cf694132 RD |
6750 | self->SetItemData(item, data); |
6751 | } | |
6752 | return data; | |
6753 | } | |
efc5f224 | 6754 | static PyObject *_wrap_wxTreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 RD |
6755 | PyObject * _resultobj; |
6756 | wxPyTreeItemData * _result; | |
f6bcfd97 | 6757 | wxPyTreeCtrl * _arg0; |
cf694132 | 6758 | wxTreeItemId * _arg1; |
1d99702e RD |
6759 | PyObject * _argo0 = 0; |
6760 | PyObject * _argo1 = 0; | |
efc5f224 | 6761 | char *_kwnames[] = { "self","item", NULL }; |
cf694132 RD |
6762 | char _ptemp[128]; |
6763 | ||
6764 | self = self; | |
efc5f224 | 6765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemData",_kwnames,&_argo0,&_argo1)) |
cf694132 | 6766 | return NULL; |
1d99702e RD |
6767 | if (_argo0) { |
6768 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6769 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6770 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemData. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
6771 | return NULL; |
6772 | } | |
6773 | } | |
1d99702e RD |
6774 | if (_argo1) { |
6775 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6776 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
6777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemData. Expected _wxTreeItemId_p."); |
6778 | return NULL; | |
6779 | } | |
6780 | } | |
6781 | { | |
6782 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 6783 | _result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(_arg0,*_arg1); |
cf694132 RD |
6784 | |
6785 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6786 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6787 | } if (_result) { |
6788 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTreeItemData_p"); | |
6789 | _resultobj = Py_BuildValue("s",_ptemp); | |
6790 | } else { | |
6791 | Py_INCREF(Py_None); | |
6792 | _resultobj = Py_None; | |
6793 | } | |
cf694132 RD |
6794 | return _resultobj; |
6795 | } | |
6796 | ||
f6bcfd97 BP |
6797 | static void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,const wxTreeItemId & item,wxPyTreeItemData * data) { |
6798 | data->SetId(item); // set the id | |
6799 | self->SetItemData(item, data); | |
c368d904 | 6800 | } |
efc5f224 | 6801 | static PyObject *_wrap_wxTreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6802 | PyObject * _resultobj; |
f6bcfd97 | 6803 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6804 | wxTreeItemId * _arg1; |
cf694132 | 6805 | wxPyTreeItemData * _arg2; |
1d99702e RD |
6806 | PyObject * _argo0 = 0; |
6807 | PyObject * _argo1 = 0; | |
6808 | PyObject * _argo2 = 0; | |
efc5f224 | 6809 | char *_kwnames[] = { "self","item","data", NULL }; |
8ab979d7 RD |
6810 | |
6811 | self = self; | |
efc5f224 | 6812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemData",_kwnames,&_argo0,&_argo1,&_argo2)) |
8ab979d7 | 6813 | return NULL; |
1d99702e RD |
6814 | if (_argo0) { |
6815 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6816 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6817 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemData. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6818 | return NULL; |
6819 | } | |
6820 | } | |
1d99702e RD |
6821 | if (_argo1) { |
6822 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6823 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6824 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemData. Expected _wxTreeItemId_p."); |
6825 | return NULL; | |
6826 | } | |
6827 | } | |
1d99702e RD |
6828 | if (_argo2) { |
6829 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
6830 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyTreeItemData_p")) { | |
cf694132 | 6831 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemData. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
6832 | return NULL; |
6833 | } | |
6834 | } | |
cf694132 RD |
6835 | { |
6836 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 6837 | wxPyTreeCtrl_SetItemData(_arg0,*_arg1,_arg2); |
cf694132 RD |
6838 | |
6839 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6840 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6841 | } Py_INCREF(Py_None); |
d5c9047a | 6842 | _resultobj = Py_None; |
8ab979d7 RD |
6843 | return _resultobj; |
6844 | } | |
6845 | ||
f6bcfd97 | 6846 | static PyObject * wxPyTreeCtrl_GetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item) { |
cf694132 RD |
6847 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
6848 | if (data == NULL) { | |
6849 | data = new wxPyTreeItemData(); | |
f6bcfd97 | 6850 | data->SetId(item); // set the id |
cf694132 RD |
6851 | self->SetItemData(item, data); |
6852 | } | |
6853 | return data->GetData(); | |
c368d904 | 6854 | } |
efc5f224 | 6855 | static PyObject *_wrap_wxTreeCtrl_GetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 | 6856 | PyObject * _resultobj; |
cf694132 | 6857 | PyObject * _result; |
f6bcfd97 | 6858 | wxPyTreeCtrl * _arg0; |
08127323 | 6859 | wxTreeItemId * _arg1; |
1d99702e RD |
6860 | PyObject * _argo0 = 0; |
6861 | PyObject * _argo1 = 0; | |
efc5f224 | 6862 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
6863 | |
6864 | self = self; | |
efc5f224 | 6865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPyData",_kwnames,&_argo0,&_argo1)) |
08127323 | 6866 | return NULL; |
1d99702e RD |
6867 | if (_argo0) { |
6868 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6869 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6870 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPyData. Expected _wxPyTreeCtrl_p."); | |
08127323 RD |
6871 | return NULL; |
6872 | } | |
6873 | } | |
1d99702e RD |
6874 | if (_argo1) { |
6875 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6876 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 | 6877 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPyData. Expected _wxTreeItemId_p."); |
08127323 RD |
6878 | return NULL; |
6879 | } | |
6880 | } | |
cf694132 RD |
6881 | { |
6882 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 6883 | _result = (PyObject *)wxPyTreeCtrl_GetPyData(_arg0,*_arg1); |
cf694132 RD |
6884 | |
6885 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6886 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
6887 | }{ |
6888 | _resultobj = _result; | |
6889 | } | |
6890 | return _resultobj; | |
6891 | } | |
6892 | ||
f6bcfd97 | 6893 | static void wxPyTreeCtrl_SetPyData(wxPyTreeCtrl *self,const wxTreeItemId & item,PyObject * obj) { |
cf694132 RD |
6894 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); |
6895 | if (data == NULL) { | |
6896 | data = new wxPyTreeItemData(obj); | |
f6bcfd97 | 6897 | data->SetId(item); // set the id |
cf694132 RD |
6898 | self->SetItemData(item, data); |
6899 | } else | |
6900 | data->SetData(obj); | |
c368d904 | 6901 | } |
efc5f224 | 6902 | static PyObject *_wrap_wxTreeCtrl_SetPyData(PyObject *self, PyObject *args, PyObject *kwargs) { |
cf694132 | 6903 | PyObject * _resultobj; |
f6bcfd97 | 6904 | wxPyTreeCtrl * _arg0; |
cf694132 RD |
6905 | wxTreeItemId * _arg1; |
6906 | PyObject * _arg2; | |
1d99702e RD |
6907 | PyObject * _argo0 = 0; |
6908 | PyObject * _argo1 = 0; | |
cf694132 | 6909 | PyObject * _obj2 = 0; |
efc5f224 | 6910 | char *_kwnames[] = { "self","item","obj", NULL }; |
cf694132 RD |
6911 | |
6912 | self = self; | |
efc5f224 | 6913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetPyData",_kwnames,&_argo0,&_argo1,&_obj2)) |
cf694132 | 6914 | return NULL; |
1d99702e RD |
6915 | if (_argo0) { |
6916 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6917 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6918 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetPyData. Expected _wxPyTreeCtrl_p."); | |
cf694132 RD |
6919 | return NULL; |
6920 | } | |
6921 | } | |
1d99702e RD |
6922 | if (_argo1) { |
6923 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6924 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
cf694132 RD |
6925 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetPyData. Expected _wxTreeItemId_p."); |
6926 | return NULL; | |
6927 | } | |
6928 | } | |
6929 | { | |
6930 | _arg2 = _obj2; | |
6931 | } | |
6932 | { | |
6933 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 6934 | wxPyTreeCtrl_SetPyData(_arg0,*_arg1,_arg2); |
cf694132 RD |
6935 | |
6936 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6937 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6938 | } Py_INCREF(Py_None); |
08127323 RD |
6939 | _resultobj = Py_None; |
6940 | return _resultobj; | |
6941 | } | |
6942 | ||
d5c9047a | 6943 | #define wxTreeCtrl_IsVisible(_swigobj,_swigarg0) (_swigobj->IsVisible(_swigarg0)) |
efc5f224 | 6944 | static PyObject *_wrap_wxTreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6945 | PyObject * _resultobj; |
d5c9047a | 6946 | bool _result; |
f6bcfd97 | 6947 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6948 | wxTreeItemId * _arg1; |
1d99702e RD |
6949 | PyObject * _argo0 = 0; |
6950 | PyObject * _argo1 = 0; | |
efc5f224 | 6951 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
6952 | |
6953 | self = self; | |
efc5f224 | 6954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6955 | return NULL; |
1d99702e RD |
6956 | if (_argo0) { |
6957 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6958 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6959 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6960 | return NULL; |
6961 | } | |
6962 | } | |
1d99702e RD |
6963 | if (_argo1) { |
6964 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6965 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
6966 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsVisible. Expected _wxTreeItemId_p."); |
6967 | return NULL; | |
6968 | } | |
6969 | } | |
cf694132 RD |
6970 | { |
6971 | wxPy_BEGIN_ALLOW_THREADS; | |
6972 | _result = (bool )wxTreeCtrl_IsVisible(_arg0,*_arg1); | |
6973 | ||
6974 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 6975 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6976 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6977 | return _resultobj; |
6978 | } | |
6979 | ||
d5c9047a | 6980 | #define wxTreeCtrl_ItemHasChildren(_swigobj,_swigarg0) (_swigobj->ItemHasChildren(_swigarg0)) |
efc5f224 | 6981 | static PyObject *_wrap_wxTreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 6982 | PyObject * _resultobj; |
d5c9047a | 6983 | bool _result; |
f6bcfd97 | 6984 | wxPyTreeCtrl * _arg0; |
d5c9047a | 6985 | wxTreeItemId * _arg1; |
1d99702e RD |
6986 | PyObject * _argo0 = 0; |
6987 | PyObject * _argo1 = 0; | |
efc5f224 | 6988 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
6989 | |
6990 | self = self; | |
efc5f224 | 6991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ItemHasChildren",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6992 | return NULL; |
1d99702e RD |
6993 | if (_argo0) { |
6994 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
6995 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
6996 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ItemHasChildren. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
6997 | return NULL; |
6998 | } | |
6999 | } | |
1d99702e RD |
7000 | if (_argo1) { |
7001 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7002 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7003 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ItemHasChildren. Expected _wxTreeItemId_p."); |
7004 | return NULL; | |
7005 | } | |
7006 | } | |
cf694132 RD |
7007 | { |
7008 | wxPy_BEGIN_ALLOW_THREADS; | |
7009 | _result = (bool )wxTreeCtrl_ItemHasChildren(_arg0,*_arg1); | |
7010 | ||
7011 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7012 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7013 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7014 | return _resultobj; |
7015 | } | |
7016 | ||
d5c9047a | 7017 | #define wxTreeCtrl_IsExpanded(_swigobj,_swigarg0) (_swigobj->IsExpanded(_swigarg0)) |
efc5f224 | 7018 | static PyObject *_wrap_wxTreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7019 | PyObject * _resultobj; |
d5c9047a | 7020 | bool _result; |
f6bcfd97 | 7021 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7022 | wxTreeItemId * _arg1; |
1d99702e RD |
7023 | PyObject * _argo0 = 0; |
7024 | PyObject * _argo1 = 0; | |
efc5f224 | 7025 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7026 | |
7027 | self = self; | |
efc5f224 | 7028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsExpanded",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7029 | return NULL; |
1d99702e RD |
7030 | if (_argo0) { |
7031 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7032 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7033 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsExpanded. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7034 | return NULL; |
7035 | } | |
7036 | } | |
1d99702e RD |
7037 | if (_argo1) { |
7038 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7039 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7040 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsExpanded. Expected _wxTreeItemId_p."); |
7041 | return NULL; | |
7042 | } | |
7043 | } | |
cf694132 RD |
7044 | { |
7045 | wxPy_BEGIN_ALLOW_THREADS; | |
7046 | _result = (bool )wxTreeCtrl_IsExpanded(_arg0,*_arg1); | |
7047 | ||
7048 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7049 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7050 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7051 | return _resultobj; |
7052 | } | |
7053 | ||
d5c9047a | 7054 | #define wxTreeCtrl_IsSelected(_swigobj,_swigarg0) (_swigobj->IsSelected(_swigarg0)) |
efc5f224 | 7055 | static PyObject *_wrap_wxTreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7056 | PyObject * _resultobj; |
d5c9047a | 7057 | bool _result; |
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 }; |
8ab979d7 RD |
7063 | |
7064 | self = self; | |
efc5f224 | 7065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsSelected",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 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_IsSelected. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 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_IsSelected. Expected _wxTreeItemId_p."); |
7078 | return NULL; | |
7079 | } | |
7080 | } | |
cf694132 RD |
7081 | { |
7082 | wxPy_BEGIN_ALLOW_THREADS; | |
7083 | _result = (bool )wxTreeCtrl_IsSelected(_arg0,*_arg1); | |
7084 | ||
7085 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7086 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7087 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7088 | return _resultobj; |
7089 | } | |
7090 | ||
7091 | #define wxTreeCtrl_GetRootItem(_swigobj) (_swigobj->GetRootItem()) | |
efc5f224 | 7092 | static PyObject *_wrap_wxTreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7093 | PyObject * _resultobj; |
d5c9047a | 7094 | wxTreeItemId * _result; |
f6bcfd97 | 7095 | wxPyTreeCtrl * _arg0; |
1d99702e | 7096 | PyObject * _argo0 = 0; |
efc5f224 | 7097 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 7098 | char _ptemp[128]; |
8ab979d7 RD |
7099 | |
7100 | self = self; | |
efc5f224 | 7101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetRootItem",_kwnames,&_argo0)) |
8ab979d7 | 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_GetRootItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7107 | return NULL; |
7108 | } | |
7109 | } | |
cf694132 RD |
7110 | { |
7111 | wxPy_BEGIN_ALLOW_THREADS; | |
7112 | _result = new wxTreeItemId (wxTreeCtrl_GetRootItem(_arg0)); | |
7113 | ||
7114 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7115 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7116 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7117 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7118 | return _resultobj; |
7119 | } | |
7120 | ||
7121 | #define wxTreeCtrl_GetSelection(_swigobj) (_swigobj->GetSelection()) | |
efc5f224 | 7122 | static PyObject *_wrap_wxTreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7123 | PyObject * _resultobj; |
d5c9047a | 7124 | wxTreeItemId * _result; |
f6bcfd97 | 7125 | wxPyTreeCtrl * _arg0; |
1d99702e | 7126 | PyObject * _argo0 = 0; |
efc5f224 | 7127 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 7128 | char _ptemp[128]; |
8ab979d7 RD |
7129 | |
7130 | self = self; | |
efc5f224 | 7131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelection",_kwnames,&_argo0)) |
8ab979d7 | 7132 | return NULL; |
1d99702e RD |
7133 | if (_argo0) { |
7134 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7135 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7136 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelection. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7137 | return NULL; |
7138 | } | |
7139 | } | |
cf694132 RD |
7140 | { |
7141 | wxPy_BEGIN_ALLOW_THREADS; | |
7142 | _result = new wxTreeItemId (wxTreeCtrl_GetSelection(_arg0)); | |
7143 | ||
7144 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7145 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7146 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7147 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7148 | return _resultobj; |
7149 | } | |
7150 | ||
eb715945 RD |
7151 | #define wxTreeCtrl_GetItemParent(_swigobj,_swigarg0) (_swigobj->GetParent(_swigarg0)) |
7152 | static PyObject *_wrap_wxTreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7153 | PyObject * _resultobj; |
d5c9047a | 7154 | wxTreeItemId * _result; |
f6bcfd97 | 7155 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7156 | wxTreeItemId * _arg1; |
1d99702e RD |
7157 | PyObject * _argo0 = 0; |
7158 | PyObject * _argo1 = 0; | |
efc5f224 | 7159 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7160 | char _ptemp[128]; |
8ab979d7 RD |
7161 | |
7162 | self = self; | |
eb715945 | 7163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetItemParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7164 | return NULL; |
1d99702e RD |
7165 | if (_argo0) { |
7166 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7167 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7168 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetItemParent. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7169 | return NULL; |
7170 | } | |
7171 | } | |
1d99702e RD |
7172 | if (_argo1) { |
7173 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7174 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
eb715945 | 7175 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetItemParent. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
7176 | return NULL; |
7177 | } | |
7178 | } | |
cf694132 RD |
7179 | { |
7180 | wxPy_BEGIN_ALLOW_THREADS; | |
eb715945 | 7181 | _result = new wxTreeItemId (wxTreeCtrl_GetItemParent(_arg0,*_arg1)); |
cf694132 RD |
7182 | |
7183 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7184 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7185 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7186 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7187 | return _resultobj; |
7188 | } | |
7189 | ||
f6bcfd97 | 7190 | static PyObject * wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self) { |
26b9cf27 | 7191 | bool doSave = wxPyRestoreThread(); |
d426c97e RD |
7192 | PyObject* rval = PyList_New(0); |
7193 | wxArrayTreeItemIds array; | |
7194 | size_t num, x; | |
7195 | num = self->GetSelections(array); | |
7196 | for (x=0; x < num; x++) { | |
c368d904 RD |
7197 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); |
7198 | PyObject* item = wxPyConstructObject((void*)tii, "wxTreeItemId", TRUE); | |
d426c97e RD |
7199 | PyList_Append(rval, item); |
7200 | } | |
26b9cf27 | 7201 | wxPySaveThread(doSave); |
d426c97e RD |
7202 | return rval; |
7203 | } | |
7204 | static PyObject *_wrap_wxTreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7205 | PyObject * _resultobj; | |
7206 | PyObject * _result; | |
f6bcfd97 | 7207 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
7208 | PyObject * _argo0 = 0; |
7209 | char *_kwnames[] = { "self", NULL }; | |
7210 | ||
7211 | self = self; | |
7212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetSelections",_kwnames,&_argo0)) | |
7213 | return NULL; | |
7214 | if (_argo0) { | |
7215 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7216 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7217 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetSelections. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
7218 | return NULL; |
7219 | } | |
7220 | } | |
7221 | { | |
7222 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 7223 | _result = (PyObject *)wxPyTreeCtrl_GetSelections(_arg0); |
d426c97e RD |
7224 | |
7225 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7226 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
7227 | }{ |
7228 | _resultobj = _result; | |
7229 | } | |
7230 | return _resultobj; | |
7231 | } | |
7232 | ||
bb0054cd | 7233 | #define wxTreeCtrl_GetChildrenCount(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetChildrenCount(_swigarg0,_swigarg1)) |
efc5f224 | 7234 | static PyObject *_wrap_wxTreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
7235 | PyObject * _resultobj; |
7236 | size_t _result; | |
f6bcfd97 | 7237 | wxPyTreeCtrl * _arg0; |
bb0054cd | 7238 | wxTreeItemId * _arg1; |
1d99702e RD |
7239 | bool _arg2 = (bool ) TRUE; |
7240 | PyObject * _argo0 = 0; | |
7241 | PyObject * _argo1 = 0; | |
7242 | int tempbool2 = (int) TRUE; | |
efc5f224 | 7243 | char *_kwnames[] = { "self","item","recursively", NULL }; |
bb0054cd RD |
7244 | |
7245 | self = self; | |
efc5f224 | 7246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetChildrenCount",_kwnames,&_argo0,&_argo1,&tempbool2)) |
bb0054cd | 7247 | return NULL; |
1d99702e RD |
7248 | if (_argo0) { |
7249 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7250 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7251 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetChildrenCount. Expected _wxPyTreeCtrl_p."); | |
bb0054cd RD |
7252 | return NULL; |
7253 | } | |
7254 | } | |
1d99702e RD |
7255 | if (_argo1) { |
7256 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7257 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
bb0054cd RD |
7258 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetChildrenCount. Expected _wxTreeItemId_p."); |
7259 | return NULL; | |
7260 | } | |
7261 | } | |
7262 | _arg2 = (bool ) tempbool2; | |
7263 | { | |
7264 | wxPy_BEGIN_ALLOW_THREADS; | |
7265 | _result = (size_t )wxTreeCtrl_GetChildrenCount(_arg0,*_arg1,_arg2); | |
7266 | ||
7267 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7268 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
7269 | } _resultobj = Py_BuildValue("i",_result); |
7270 | return _resultobj; | |
7271 | } | |
7272 | ||
d5c9047a | 7273 | #define wxTreeCtrl_GetFirstChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetFirstChild(_swigarg0,_swigarg1)) |
efc5f224 | 7274 | static PyObject *_wrap_wxTreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7275 | PyObject * _resultobj; |
d5c9047a | 7276 | wxTreeItemId * _result; |
f6bcfd97 | 7277 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7278 | wxTreeItemId * _arg1; |
7279 | long * _arg2; | |
1d99702e RD |
7280 | PyObject * _argo0 = 0; |
7281 | PyObject * _argo1 = 0; | |
d5c9047a RD |
7282 | long temp; |
7283 | PyObject * _obj2 = 0; | |
efc5f224 | 7284 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 7285 | char _ptemp[128]; |
8ab979d7 RD |
7286 | |
7287 | self = self; | |
efc5f224 | 7288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetFirstChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 7289 | return NULL; |
1d99702e RD |
7290 | if (_argo0) { |
7291 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7292 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7293 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstChild. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7294 | return NULL; |
7295 | } | |
7296 | } | |
1d99702e RD |
7297 | if (_argo1) { |
7298 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7299 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 7300 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetFirstChild. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
7301 | return NULL; |
7302 | } | |
7303 | } | |
d5c9047a RD |
7304 | { |
7305 | temp = (long) PyInt_AsLong(_obj2); | |
7306 | _arg2 = &temp; | |
7307 | } | |
cf694132 RD |
7308 | { |
7309 | wxPy_BEGIN_ALLOW_THREADS; | |
7310 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstChild(_arg0,*_arg1,*_arg2)); | |
7311 | ||
7312 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7313 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7314 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
7315 | _resultobj = Py_BuildValue("s",_ptemp); |
7316 | { | |
7317 | PyObject *o; | |
7318 | o = PyInt_FromLong((long) (*_arg2)); | |
7319 | _resultobj = t_output_helper(_resultobj, o); | |
7320 | } | |
8ab979d7 RD |
7321 | return _resultobj; |
7322 | } | |
7323 | ||
d5c9047a | 7324 | #define wxTreeCtrl_GetNextChild(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetNextChild(_swigarg0,_swigarg1)) |
efc5f224 | 7325 | static PyObject *_wrap_wxTreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7326 | PyObject * _resultobj; |
d5c9047a | 7327 | wxTreeItemId * _result; |
f6bcfd97 | 7328 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7329 | wxTreeItemId * _arg1; |
7330 | long * _arg2; | |
1d99702e RD |
7331 | PyObject * _argo0 = 0; |
7332 | PyObject * _argo1 = 0; | |
d5c9047a | 7333 | long temp; |
8ab979d7 | 7334 | PyObject * _obj2 = 0; |
efc5f224 | 7335 | char *_kwnames[] = { "self","item","INOUT", NULL }; |
d5c9047a | 7336 | char _ptemp[128]; |
8ab979d7 RD |
7337 | |
7338 | self = self; | |
efc5f224 | 7339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_GetNextChild",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 7340 | return NULL; |
1d99702e RD |
7341 | if (_argo0) { |
7342 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7343 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7344 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextChild. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7345 | return NULL; |
7346 | } | |
7347 | } | |
1d99702e RD |
7348 | if (_argo1) { |
7349 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7350 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 7351 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextChild. Expected _wxTreeItemId_p."); |
8ab979d7 | 7352 | return NULL; |
d5c9047a | 7353 | } |
8ab979d7 | 7354 | } |
d5c9047a RD |
7355 | { |
7356 | temp = (long) PyInt_AsLong(_obj2); | |
7357 | _arg2 = &temp; | |
8ab979d7 | 7358 | } |
cf694132 RD |
7359 | { |
7360 | wxPy_BEGIN_ALLOW_THREADS; | |
7361 | _result = new wxTreeItemId (wxTreeCtrl_GetNextChild(_arg0,*_arg1,*_arg2)); | |
7362 | ||
7363 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7364 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7365 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7366 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 | 7367 | { |
d5c9047a RD |
7368 | PyObject *o; |
7369 | o = PyInt_FromLong((long) (*_arg2)); | |
7370 | _resultobj = t_output_helper(_resultobj, o); | |
8ab979d7 RD |
7371 | } |
7372 | return _resultobj; | |
7373 | } | |
7374 | ||
d5c9047a | 7375 | #define wxTreeCtrl_GetNextSibling(_swigobj,_swigarg0) (_swigobj->GetNextSibling(_swigarg0)) |
efc5f224 | 7376 | static PyObject *_wrap_wxTreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7377 | PyObject * _resultobj; |
d5c9047a | 7378 | wxTreeItemId * _result; |
f6bcfd97 | 7379 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7380 | wxTreeItemId * _arg1; |
1d99702e RD |
7381 | PyObject * _argo0 = 0; |
7382 | PyObject * _argo1 = 0; | |
efc5f224 | 7383 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7384 | char _ptemp[128]; |
8ab979d7 RD |
7385 | |
7386 | self = self; | |
efc5f224 | 7387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7388 | return NULL; |
1d99702e RD |
7389 | if (_argo0) { |
7390 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7391 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7392 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextSibling. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7393 | return NULL; |
7394 | } | |
7395 | } | |
1d99702e RD |
7396 | if (_argo1) { |
7397 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7398 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7399 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextSibling. Expected _wxTreeItemId_p."); |
7400 | return NULL; | |
7401 | } | |
7402 | } | |
cf694132 RD |
7403 | { |
7404 | wxPy_BEGIN_ALLOW_THREADS; | |
7405 | _result = new wxTreeItemId (wxTreeCtrl_GetNextSibling(_arg0,*_arg1)); | |
7406 | ||
7407 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7408 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7409 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7410 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7411 | return _resultobj; |
7412 | } | |
7413 | ||
d5c9047a | 7414 | #define wxTreeCtrl_GetPrevSibling(_swigobj,_swigarg0) (_swigobj->GetPrevSibling(_swigarg0)) |
efc5f224 | 7415 | static PyObject *_wrap_wxTreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7416 | PyObject * _resultobj; |
d5c9047a | 7417 | wxTreeItemId * _result; |
f6bcfd97 | 7418 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7419 | wxTreeItemId * _arg1; |
1d99702e RD |
7420 | PyObject * _argo0 = 0; |
7421 | PyObject * _argo1 = 0; | |
efc5f224 | 7422 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7423 | char _ptemp[128]; |
8ab979d7 RD |
7424 | |
7425 | self = self; | |
efc5f224 | 7426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevSibling",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7427 | return NULL; |
1d99702e RD |
7428 | if (_argo0) { |
7429 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7430 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7431 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevSibling. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7432 | return NULL; |
7433 | } | |
7434 | } | |
1d99702e RD |
7435 | if (_argo1) { |
7436 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7437 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7438 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevSibling. Expected _wxTreeItemId_p."); |
7439 | return NULL; | |
7440 | } | |
7441 | } | |
cf694132 RD |
7442 | { |
7443 | wxPy_BEGIN_ALLOW_THREADS; | |
7444 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevSibling(_arg0,*_arg1)); | |
7445 | ||
7446 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7447 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7448 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7449 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7450 | return _resultobj; |
7451 | } | |
7452 | ||
d5c9047a | 7453 | #define wxTreeCtrl_GetFirstVisibleItem(_swigobj) (_swigobj->GetFirstVisibleItem()) |
efc5f224 | 7454 | static PyObject *_wrap_wxTreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7455 | PyObject * _resultobj; |
d5c9047a | 7456 | wxTreeItemId * _result; |
f6bcfd97 | 7457 | wxPyTreeCtrl * _arg0; |
1d99702e | 7458 | PyObject * _argo0 = 0; |
efc5f224 | 7459 | char *_kwnames[] = { "self", NULL }; |
d5c9047a | 7460 | char _ptemp[128]; |
8ab979d7 RD |
7461 | |
7462 | self = self; | |
efc5f224 | 7463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetFirstVisibleItem",_kwnames,&_argo0)) |
8ab979d7 | 7464 | return NULL; |
1d99702e RD |
7465 | if (_argo0) { |
7466 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7467 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7468 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetFirstVisibleItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7469 | return NULL; |
7470 | } | |
7471 | } | |
cf694132 RD |
7472 | { |
7473 | wxPy_BEGIN_ALLOW_THREADS; | |
7474 | _result = new wxTreeItemId (wxTreeCtrl_GetFirstVisibleItem(_arg0)); | |
7475 | ||
7476 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7477 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7478 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7479 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7480 | return _resultobj; |
7481 | } | |
7482 | ||
d5c9047a | 7483 | #define wxTreeCtrl_GetNextVisible(_swigobj,_swigarg0) (_swigobj->GetNextVisible(_swigarg0)) |
efc5f224 | 7484 | static PyObject *_wrap_wxTreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7485 | PyObject * _resultobj; |
d5c9047a | 7486 | wxTreeItemId * _result; |
f6bcfd97 | 7487 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7488 | wxTreeItemId * _arg1; |
1d99702e RD |
7489 | PyObject * _argo0 = 0; |
7490 | PyObject * _argo1 = 0; | |
efc5f224 | 7491 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7492 | char _ptemp[128]; |
8ab979d7 RD |
7493 | |
7494 | self = self; | |
efc5f224 | 7495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetNextVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7496 | return NULL; |
1d99702e RD |
7497 | if (_argo0) { |
7498 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7499 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7500 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetNextVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7501 | return NULL; |
7502 | } | |
7503 | } | |
1d99702e RD |
7504 | if (_argo1) { |
7505 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7506 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7507 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetNextVisible. Expected _wxTreeItemId_p."); |
7508 | return NULL; | |
7509 | } | |
7510 | } | |
cf694132 RD |
7511 | { |
7512 | wxPy_BEGIN_ALLOW_THREADS; | |
7513 | _result = new wxTreeItemId (wxTreeCtrl_GetNextVisible(_arg0,*_arg1)); | |
7514 | ||
7515 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7516 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7517 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7518 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7519 | return _resultobj; |
7520 | } | |
7521 | ||
d5c9047a | 7522 | #define wxTreeCtrl_GetPrevVisible(_swigobj,_swigarg0) (_swigobj->GetPrevVisible(_swigarg0)) |
efc5f224 | 7523 | static PyObject *_wrap_wxTreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7524 | PyObject * _resultobj; |
d5c9047a | 7525 | wxTreeItemId * _result; |
f6bcfd97 | 7526 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7527 | wxTreeItemId * _arg1; |
1d99702e RD |
7528 | PyObject * _argo0 = 0; |
7529 | PyObject * _argo1 = 0; | |
efc5f224 | 7530 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a | 7531 | char _ptemp[128]; |
8ab979d7 RD |
7532 | |
7533 | self = self; | |
efc5f224 | 7534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetPrevVisible",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7535 | return NULL; |
1d99702e RD |
7536 | if (_argo0) { |
7537 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7538 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7539 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetPrevVisible. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7540 | return NULL; |
7541 | } | |
7542 | } | |
1d99702e RD |
7543 | if (_argo1) { |
7544 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7545 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 7546 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetPrevVisible. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
7547 | return NULL; |
7548 | } | |
7549 | } | |
cf694132 RD |
7550 | { |
7551 | wxPy_BEGIN_ALLOW_THREADS; | |
7552 | _result = new wxTreeItemId (wxTreeCtrl_GetPrevVisible(_arg0,*_arg1)); | |
7553 | ||
7554 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7555 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7556 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7557 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7558 | return _resultobj; |
7559 | } | |
7560 | ||
d426c97e RD |
7561 | #define wxTreeCtrl_GetLastChild(_swigobj,_swigarg0) (_swigobj->GetLastChild(_swigarg0)) |
7562 | static PyObject *_wrap_wxTreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7563 | PyObject * _resultobj; | |
7564 | wxTreeItemId * _result; | |
f6bcfd97 | 7565 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
7566 | wxTreeItemId * _arg1; |
7567 | PyObject * _argo0 = 0; | |
7568 | PyObject * _argo1 = 0; | |
7569 | char *_kwnames[] = { "self","item", NULL }; | |
7570 | char _ptemp[128]; | |
7571 | ||
7572 | self = self; | |
7573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_GetLastChild",_kwnames,&_argo0,&_argo1)) | |
7574 | return NULL; | |
7575 | if (_argo0) { | |
7576 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7577 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7578 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetLastChild. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
7579 | return NULL; |
7580 | } | |
7581 | } | |
7582 | if (_argo1) { | |
7583 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7584 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7585 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetLastChild. Expected _wxTreeItemId_p."); | |
7586 | return NULL; | |
7587 | } | |
7588 | } | |
7589 | { | |
7590 | wxPy_BEGIN_ALLOW_THREADS; | |
7591 | _result = new wxTreeItemId (wxTreeCtrl_GetLastChild(_arg0,*_arg1)); | |
7592 | ||
7593 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7594 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
7595 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
7596 | _resultobj = Py_BuildValue("s",_ptemp); | |
7597 | return _resultobj; | |
7598 | } | |
7599 | ||
d5c9047a | 7600 | #define wxTreeCtrl_AddRoot(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->AddRoot(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
efc5f224 | 7601 | static PyObject *_wrap_wxTreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7602 | PyObject * _resultobj; |
d5c9047a | 7603 | wxTreeItemId * _result; |
f6bcfd97 | 7604 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7605 | wxString * _arg1; |
1d99702e RD |
7606 | int _arg2 = (int ) -1; |
7607 | int _arg3 = (int ) -1; | |
7608 | wxPyTreeItemData * _arg4 = (wxPyTreeItemData *) NULL; | |
7609 | PyObject * _argo0 = 0; | |
d5c9047a | 7610 | PyObject * _obj1 = 0; |
1d99702e | 7611 | PyObject * _argo4 = 0; |
efc5f224 | 7612 | char *_kwnames[] = { "self","text","image","selectedImage","data", NULL }; |
d5c9047a | 7613 | char _ptemp[128]; |
8ab979d7 RD |
7614 | |
7615 | self = self; | |
efc5f224 | 7616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iiO:wxTreeCtrl_AddRoot",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_argo4)) |
8ab979d7 | 7617 | return NULL; |
1d99702e RD |
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_AddRoot. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7622 | return NULL; |
7623 | } | |
7624 | } | |
d5c9047a | 7625 | { |
185d7c3e RD |
7626 | #if PYTHON_API_VERSION >= 1009 |
7627 | char* tmpPtr; int tmpSize; | |
7628 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 7629 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7630 | return NULL; |
7631 | } | |
7632 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
7633 | return NULL; | |
7634 | _arg1 = new wxString(tmpPtr, tmpSize); | |
7635 | #else | |
d5c9047a RD |
7636 | if (!PyString_Check(_obj1)) { |
7637 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7638 | return NULL; | |
7639 | } | |
185d7c3e RD |
7640 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
7641 | #endif | |
d5c9047a | 7642 | } |
1d99702e RD |
7643 | if (_argo4) { |
7644 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
7645 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxPyTreeItemData_p")) { | |
cf694132 | 7646 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxTreeCtrl_AddRoot. Expected _wxPyTreeItemData_p."); |
8ab979d7 RD |
7647 | return NULL; |
7648 | } | |
7649 | } | |
cf694132 RD |
7650 | { |
7651 | wxPy_BEGIN_ALLOW_THREADS; | |
7652 | _result = new wxTreeItemId (wxTreeCtrl_AddRoot(_arg0,*_arg1,_arg2,_arg3,_arg4)); | |
7653 | ||
7654 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7655 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7656 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
7657 | _resultobj = Py_BuildValue("s",_ptemp); |
7658 | { | |
7659 | if (_obj1) | |
7660 | delete _arg1; | |
7661 | } | |
8ab979d7 RD |
7662 | return _resultobj; |
7663 | } | |
7664 | ||
d5c9047a | 7665 | #define wxTreeCtrl_PrependItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->PrependItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 7666 | static PyObject *_wrap_wxTreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7667 | PyObject * _resultobj; |
d5c9047a | 7668 | wxTreeItemId * _result; |
f6bcfd97 | 7669 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7670 | wxTreeItemId * _arg1; |
7671 | wxString * _arg2; | |
1d99702e RD |
7672 | int _arg3 = (int ) -1; |
7673 | int _arg4 = (int ) -1; | |
7674 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
7675 | PyObject * _argo0 = 0; | |
7676 | PyObject * _argo1 = 0; | |
d5c9047a | 7677 | PyObject * _obj2 = 0; |
1d99702e | 7678 | PyObject * _argo5 = 0; |
efc5f224 | 7679 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 7680 | char _ptemp[128]; |
8ab979d7 RD |
7681 | |
7682 | self = self; | |
efc5f224 | 7683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_PrependItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 7684 | return NULL; |
1d99702e RD |
7685 | if (_argo0) { |
7686 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7687 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7688 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_PrependItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7689 | return NULL; |
7690 | } | |
7691 | } | |
1d99702e RD |
7692 | if (_argo1) { |
7693 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7694 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7695 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_PrependItem. Expected _wxTreeItemId_p."); |
7696 | return NULL; | |
7697 | } | |
7698 | } | |
7699 | { | |
185d7c3e RD |
7700 | #if PYTHON_API_VERSION >= 1009 |
7701 | char* tmpPtr; int tmpSize; | |
7702 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 7703 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7704 | return NULL; |
7705 | } | |
7706 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7707 | return NULL; | |
7708 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7709 | #else | |
d5c9047a RD |
7710 | if (!PyString_Check(_obj2)) { |
7711 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7712 | return NULL; | |
7713 | } | |
185d7c3e RD |
7714 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7715 | #endif | |
d5c9047a | 7716 | } |
1d99702e RD |
7717 | if (_argo5) { |
7718 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
7719 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 7720 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_PrependItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
7721 | return NULL; |
7722 | } | |
7723 | } | |
cf694132 RD |
7724 | { |
7725 | wxPy_BEGIN_ALLOW_THREADS; | |
7726 | _result = new wxTreeItemId (wxTreeCtrl_PrependItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); | |
7727 | ||
7728 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7729 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7730 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
7731 | _resultobj = Py_BuildValue("s",_ptemp); |
7732 | { | |
7733 | if (_obj2) | |
7734 | delete _arg2; | |
7735 | } | |
8ab979d7 RD |
7736 | return _resultobj; |
7737 | } | |
7738 | ||
d5c9047a | 7739 | #define wxTreeCtrl_InsertItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 7740 | static PyObject *_wrap_wxTreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7741 | PyObject * _resultobj; |
d5c9047a | 7742 | wxTreeItemId * _result; |
f6bcfd97 | 7743 | wxPyTreeCtrl * _arg0; |
d5c9047a RD |
7744 | wxTreeItemId * _arg1; |
7745 | wxTreeItemId * _arg2; | |
7746 | wxString * _arg3; | |
1d99702e RD |
7747 | int _arg4 = (int ) -1; |
7748 | int _arg5 = (int ) -1; | |
7749 | wxPyTreeItemData * _arg6 = (wxPyTreeItemData *) NULL; | |
7750 | PyObject * _argo0 = 0; | |
7751 | PyObject * _argo1 = 0; | |
7752 | PyObject * _argo2 = 0; | |
d5c9047a | 7753 | PyObject * _obj3 = 0; |
1d99702e | 7754 | PyObject * _argo6 = 0; |
efc5f224 | 7755 | char *_kwnames[] = { "self","parent","idPrevious","text","image","selectedImage","data", NULL }; |
d5c9047a | 7756 | char _ptemp[128]; |
8ab979d7 RD |
7757 | |
7758 | self = self; | |
efc5f224 | 7759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO|iiO:wxTreeCtrl_InsertItem",_kwnames,&_argo0,&_argo1,&_argo2,&_obj3,&_arg4,&_arg5,&_argo6)) |
8ab979d7 | 7760 | return NULL; |
1d99702e RD |
7761 | if (_argo0) { |
7762 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7763 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7764 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItem. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7765 | return NULL; |
7766 | } | |
7767 | } | |
1d99702e RD |
7768 | if (_argo1) { |
7769 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7770 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
7772 | return NULL; | |
7773 | } | |
7774 | } | |
1d99702e RD |
7775 | if (_argo2) { |
7776 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7777 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_InsertItem. Expected _wxTreeItemId_p."); |
7779 | return NULL; | |
7780 | } | |
7781 | } | |
7782 | { | |
185d7c3e RD |
7783 | #if PYTHON_API_VERSION >= 1009 |
7784 | char* tmpPtr; int tmpSize; | |
7785 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
794c5cb1 | 7786 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7787 | return NULL; |
7788 | } | |
7789 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
7790 | return NULL; | |
7791 | _arg3 = new wxString(tmpPtr, tmpSize); | |
7792 | #else | |
d5c9047a RD |
7793 | if (!PyString_Check(_obj3)) { |
7794 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7795 | return NULL; | |
7796 | } | |
185d7c3e RD |
7797 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
7798 | #endif | |
d5c9047a | 7799 | } |
1d99702e RD |
7800 | if (_argo6) { |
7801 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
7802 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxPyTreeItemData_p")) { | |
cf694132 | 7803 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
7804 | return NULL; |
7805 | } | |
7806 | } | |
cf694132 RD |
7807 | { |
7808 | wxPy_BEGIN_ALLOW_THREADS; | |
7809 | _result = new wxTreeItemId (wxTreeCtrl_InsertItem(_arg0,*_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6)); | |
7810 | ||
7811 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7812 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7813 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a RD |
7814 | _resultobj = Py_BuildValue("s",_ptemp); |
7815 | { | |
7816 | if (_obj3) | |
7817 | delete _arg3; | |
7818 | } | |
8ab979d7 RD |
7819 | return _resultobj; |
7820 | } | |
7821 | ||
f6bcfd97 BP |
7822 | #define wxTreeCtrl_InsertItemBefore(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->InsertItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
7823 | static PyObject *_wrap_wxTreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7824 | PyObject * _resultobj; | |
7825 | wxTreeItemId * _result; | |
7826 | wxPyTreeCtrl * _arg0; | |
7827 | wxTreeItemId * _arg1; | |
7828 | size_t _arg2; | |
7829 | wxString * _arg3; | |
7830 | int _arg4 = (int ) -1; | |
7831 | int _arg5 = (int ) -1; | |
7832 | wxTreeItemData * _arg6 = (wxTreeItemData *) NULL; | |
7833 | PyObject * _argo0 = 0; | |
7834 | PyObject * _argo1 = 0; | |
7835 | PyObject * _obj3 = 0; | |
7836 | PyObject * _argo6 = 0; | |
7837 | char *_kwnames[] = { "self","parent","before","text","image","selectedImage","data", NULL }; | |
7838 | char _ptemp[128]; | |
7839 | ||
7840 | self = self; | |
7841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiO|iiO:wxTreeCtrl_InsertItemBefore",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_arg4,&_arg5,&_argo6)) | |
7842 | return NULL; | |
7843 | if (_argo0) { | |
7844 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7845 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { | |
7846 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_InsertItemBefore. Expected _wxPyTreeCtrl_p."); | |
7847 | return NULL; | |
7848 | } | |
7849 | } | |
7850 | if (_argo1) { | |
7851 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7852 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
7853 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemId_p."); | |
7854 | return NULL; | |
7855 | } | |
7856 | } | |
7857 | { | |
185d7c3e RD |
7858 | #if PYTHON_API_VERSION >= 1009 |
7859 | char* tmpPtr; int tmpSize; | |
7860 | if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) { | |
794c5cb1 | 7861 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7862 | return NULL; |
7863 | } | |
7864 | if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1) | |
7865 | return NULL; | |
7866 | _arg3 = new wxString(tmpPtr, tmpSize); | |
7867 | #else | |
f6bcfd97 BP |
7868 | if (!PyString_Check(_obj3)) { |
7869 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7870 | return NULL; | |
7871 | } | |
185d7c3e RD |
7872 | _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3)); |
7873 | #endif | |
f6bcfd97 BP |
7874 | } |
7875 | if (_argo6) { | |
7876 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
7877 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxTreeItemData_p")) { | |
7878 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxTreeCtrl_InsertItemBefore. Expected _wxTreeItemData_p."); | |
7879 | return NULL; | |
7880 | } | |
7881 | } | |
7882 | { | |
7883 | wxPy_BEGIN_ALLOW_THREADS; | |
7884 | _result = new wxTreeItemId (wxTreeCtrl_InsertItemBefore(_arg0,*_arg1,_arg2,*_arg3,_arg4,_arg5,_arg6)); | |
7885 | ||
7886 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7887 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
7888 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
7889 | _resultobj = Py_BuildValue("s",_ptemp); | |
7890 | { | |
7891 | if (_obj3) | |
7892 | delete _arg3; | |
7893 | } | |
7894 | return _resultobj; | |
7895 | } | |
7896 | ||
d5c9047a | 7897 | #define wxTreeCtrl_AppendItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->AppendItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 7898 | static PyObject *_wrap_wxTreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7899 | PyObject * _resultobj; |
d5c9047a | 7900 | wxTreeItemId * _result; |
f6bcfd97 | 7901 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7902 | wxTreeItemId * _arg1; |
8ab979d7 | 7903 | wxString * _arg2; |
1d99702e RD |
7904 | int _arg3 = (int ) -1; |
7905 | int _arg4 = (int ) -1; | |
7906 | wxPyTreeItemData * _arg5 = (wxPyTreeItemData *) NULL; | |
7907 | PyObject * _argo0 = 0; | |
7908 | PyObject * _argo1 = 0; | |
8ab979d7 | 7909 | PyObject * _obj2 = 0; |
1d99702e | 7910 | PyObject * _argo5 = 0; |
efc5f224 | 7911 | char *_kwnames[] = { "self","parent","text","image","selectedImage","data", NULL }; |
d5c9047a | 7912 | char _ptemp[128]; |
8ab979d7 RD |
7913 | |
7914 | self = self; | |
efc5f224 | 7915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iiO:wxTreeCtrl_AppendItem",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3,&_arg4,&_argo5)) |
8ab979d7 | 7916 | return NULL; |
1d99702e RD |
7917 | if (_argo0) { |
7918 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7919 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7920 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_AppendItem. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
7921 | return NULL; |
7922 | } | |
7923 | } | |
1d99702e RD |
7924 | if (_argo1) { |
7925 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7926 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a | 7927 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_AppendItem. Expected _wxTreeItemId_p."); |
8ab979d7 RD |
7928 | return NULL; |
7929 | } | |
7930 | } | |
7931 | { | |
185d7c3e RD |
7932 | #if PYTHON_API_VERSION >= 1009 |
7933 | char* tmpPtr; int tmpSize; | |
7934 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 7935 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
7936 | return NULL; |
7937 | } | |
7938 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
7939 | return NULL; | |
7940 | _arg2 = new wxString(tmpPtr, tmpSize); | |
7941 | #else | |
8ab979d7 RD |
7942 | if (!PyString_Check(_obj2)) { |
7943 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7944 | return NULL; | |
7945 | } | |
185d7c3e RD |
7946 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
7947 | #endif | |
8ab979d7 | 7948 | } |
1d99702e RD |
7949 | if (_argo5) { |
7950 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
7951 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxPyTreeItemData_p")) { | |
cf694132 | 7952 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxTreeCtrl_AppendItem. Expected _wxPyTreeItemData_p."); |
d5c9047a RD |
7953 | return NULL; |
7954 | } | |
7955 | } | |
cf694132 RD |
7956 | { |
7957 | wxPy_BEGIN_ALLOW_THREADS; | |
7958 | _result = new wxTreeItemId (wxTreeCtrl_AppendItem(_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5)); | |
7959 | ||
7960 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 7961 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7962 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
d5c9047a | 7963 | _resultobj = Py_BuildValue("s",_ptemp); |
8ab979d7 RD |
7964 | { |
7965 | if (_obj2) | |
7966 | delete _arg2; | |
7967 | } | |
7968 | return _resultobj; | |
7969 | } | |
7970 | ||
d5c9047a | 7971 | #define wxTreeCtrl_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
efc5f224 | 7972 | static PyObject *_wrap_wxTreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 7973 | PyObject * _resultobj; |
f6bcfd97 | 7974 | wxPyTreeCtrl * _arg0; |
d5c9047a | 7975 | wxTreeItemId * _arg1; |
1d99702e RD |
7976 | PyObject * _argo0 = 0; |
7977 | PyObject * _argo1 = 0; | |
efc5f224 | 7978 | char *_kwnames[] = { "self","item", NULL }; |
8ab979d7 RD |
7979 | |
7980 | self = self; | |
efc5f224 | 7981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Delete",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7982 | return NULL; |
1d99702e RD |
7983 | if (_argo0) { |
7984 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
7985 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
7986 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Delete. Expected _wxPyTreeCtrl_p."); | |
8ab979d7 RD |
7987 | return NULL; |
7988 | } | |
7989 | } | |
1d99702e RD |
7990 | if (_argo1) { |
7991 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7992 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
7993 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Delete. Expected _wxTreeItemId_p."); |
7994 | return NULL; | |
7995 | } | |
7996 | } | |
cf694132 RD |
7997 | { |
7998 | wxPy_BEGIN_ALLOW_THREADS; | |
7999 | wxTreeCtrl_Delete(_arg0,*_arg1); | |
8000 | ||
8001 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8002 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8003 | } Py_INCREF(Py_None); |
d5c9047a RD |
8004 | _resultobj = Py_None; |
8005 | return _resultobj; | |
8006 | } | |
8007 | ||
08127323 | 8008 | #define wxTreeCtrl_DeleteChildren(_swigobj,_swigarg0) (_swigobj->DeleteChildren(_swigarg0)) |
efc5f224 | 8009 | static PyObject *_wrap_wxTreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
08127323 | 8010 | PyObject * _resultobj; |
f6bcfd97 | 8011 | wxPyTreeCtrl * _arg0; |
08127323 | 8012 | wxTreeItemId * _arg1; |
1d99702e RD |
8013 | PyObject * _argo0 = 0; |
8014 | PyObject * _argo1 = 0; | |
efc5f224 | 8015 | char *_kwnames[] = { "self","item", NULL }; |
08127323 RD |
8016 | |
8017 | self = self; | |
efc5f224 | 8018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_DeleteChildren",_kwnames,&_argo0,&_argo1)) |
08127323 | 8019 | return NULL; |
1d99702e RD |
8020 | if (_argo0) { |
8021 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8022 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8023 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteChildren. Expected _wxPyTreeCtrl_p."); | |
08127323 RD |
8024 | return NULL; |
8025 | } | |
8026 | } | |
1d99702e RD |
8027 | if (_argo1) { |
8028 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8029 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
08127323 RD |
8030 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_DeleteChildren. Expected _wxTreeItemId_p."); |
8031 | return NULL; | |
8032 | } | |
8033 | } | |
cf694132 RD |
8034 | { |
8035 | wxPy_BEGIN_ALLOW_THREADS; | |
8036 | wxTreeCtrl_DeleteChildren(_arg0,*_arg1); | |
8037 | ||
8038 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8039 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8040 | } Py_INCREF(Py_None); |
08127323 RD |
8041 | _resultobj = Py_None; |
8042 | return _resultobj; | |
8043 | } | |
8044 | ||
d5c9047a | 8045 | #define wxTreeCtrl_DeleteAllItems(_swigobj) (_swigobj->DeleteAllItems()) |
efc5f224 | 8046 | static PyObject *_wrap_wxTreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8047 | PyObject * _resultobj; |
f6bcfd97 | 8048 | wxPyTreeCtrl * _arg0; |
1d99702e | 8049 | PyObject * _argo0 = 0; |
efc5f224 | 8050 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
8051 | |
8052 | self = self; | |
efc5f224 | 8053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_DeleteAllItems",_kwnames,&_argo0)) |
d5c9047a | 8054 | return NULL; |
1d99702e RD |
8055 | if (_argo0) { |
8056 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8057 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8058 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_DeleteAllItems. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8059 | return NULL; |
8060 | } | |
8061 | } | |
cf694132 RD |
8062 | { |
8063 | wxPy_BEGIN_ALLOW_THREADS; | |
8064 | wxTreeCtrl_DeleteAllItems(_arg0); | |
8065 | ||
8066 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8067 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8068 | } Py_INCREF(Py_None); |
d5c9047a RD |
8069 | _resultobj = Py_None; |
8070 | return _resultobj; | |
8071 | } | |
8072 | ||
8073 | #define wxTreeCtrl_Expand(_swigobj,_swigarg0) (_swigobj->Expand(_swigarg0)) | |
efc5f224 | 8074 | static PyObject *_wrap_wxTreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8075 | PyObject * _resultobj; |
f6bcfd97 | 8076 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8077 | wxTreeItemId * _arg1; |
1d99702e RD |
8078 | PyObject * _argo0 = 0; |
8079 | PyObject * _argo1 = 0; | |
efc5f224 | 8080 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8081 | |
8082 | self = self; | |
efc5f224 | 8083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Expand",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8084 | return NULL; |
1d99702e RD |
8085 | if (_argo0) { |
8086 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8087 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8088 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Expand. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8089 | return NULL; |
8090 | } | |
8091 | } | |
1d99702e RD |
8092 | if (_argo1) { |
8093 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8094 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8095 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Expand. Expected _wxTreeItemId_p."); |
8096 | return NULL; | |
8097 | } | |
8098 | } | |
cf694132 RD |
8099 | { |
8100 | wxPy_BEGIN_ALLOW_THREADS; | |
8101 | wxTreeCtrl_Expand(_arg0,*_arg1); | |
8102 | ||
8103 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8104 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8105 | } Py_INCREF(Py_None); |
d5c9047a RD |
8106 | _resultobj = Py_None; |
8107 | return _resultobj; | |
8108 | } | |
8109 | ||
8110 | #define wxTreeCtrl_Collapse(_swigobj,_swigarg0) (_swigobj->Collapse(_swigarg0)) | |
efc5f224 | 8111 | static PyObject *_wrap_wxTreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8112 | PyObject * _resultobj; |
f6bcfd97 | 8113 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8114 | wxTreeItemId * _arg1; |
1d99702e RD |
8115 | PyObject * _argo0 = 0; |
8116 | PyObject * _argo1 = 0; | |
efc5f224 | 8117 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8118 | |
8119 | self = self; | |
efc5f224 | 8120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Collapse",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8121 | return NULL; |
1d99702e RD |
8122 | if (_argo0) { |
8123 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8124 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8125 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Collapse. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8126 | return NULL; |
8127 | } | |
8128 | } | |
1d99702e RD |
8129 | if (_argo1) { |
8130 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8131 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8132 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Collapse. Expected _wxTreeItemId_p."); |
8133 | return NULL; | |
8134 | } | |
8135 | } | |
cf694132 RD |
8136 | { |
8137 | wxPy_BEGIN_ALLOW_THREADS; | |
8138 | wxTreeCtrl_Collapse(_arg0,*_arg1); | |
8139 | ||
8140 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8141 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8142 | } Py_INCREF(Py_None); |
d5c9047a RD |
8143 | _resultobj = Py_None; |
8144 | return _resultobj; | |
8145 | } | |
8146 | ||
8147 | #define wxTreeCtrl_CollapseAndReset(_swigobj,_swigarg0) (_swigobj->CollapseAndReset(_swigarg0)) | |
efc5f224 | 8148 | static PyObject *_wrap_wxTreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8149 | PyObject * _resultobj; |
f6bcfd97 | 8150 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8151 | wxTreeItemId * _arg1; |
1d99702e RD |
8152 | PyObject * _argo0 = 0; |
8153 | PyObject * _argo1 = 0; | |
efc5f224 | 8154 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8155 | |
8156 | self = self; | |
efc5f224 | 8157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_CollapseAndReset",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8158 | return NULL; |
1d99702e RD |
8159 | if (_argo0) { |
8160 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8161 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8162 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_CollapseAndReset. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8163 | return NULL; |
8164 | } | |
8165 | } | |
1d99702e RD |
8166 | if (_argo1) { |
8167 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8168 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8169 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_CollapseAndReset. Expected _wxTreeItemId_p."); |
8170 | return NULL; | |
8171 | } | |
8172 | } | |
cf694132 RD |
8173 | { |
8174 | wxPy_BEGIN_ALLOW_THREADS; | |
8175 | wxTreeCtrl_CollapseAndReset(_arg0,*_arg1); | |
8176 | ||
8177 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8178 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8179 | } Py_INCREF(Py_None); |
d5c9047a RD |
8180 | _resultobj = Py_None; |
8181 | return _resultobj; | |
8182 | } | |
8183 | ||
8184 | #define wxTreeCtrl_Toggle(_swigobj,_swigarg0) (_swigobj->Toggle(_swigarg0)) | |
efc5f224 | 8185 | static PyObject *_wrap_wxTreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8186 | PyObject * _resultobj; |
f6bcfd97 | 8187 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8188 | wxTreeItemId * _arg1; |
1d99702e RD |
8189 | PyObject * _argo0 = 0; |
8190 | PyObject * _argo1 = 0; | |
efc5f224 | 8191 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8192 | |
8193 | self = self; | |
efc5f224 | 8194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_Toggle",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8195 | return NULL; |
1d99702e RD |
8196 | if (_argo0) { |
8197 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8198 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8199 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Toggle. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8200 | return NULL; |
8201 | } | |
8202 | } | |
1d99702e RD |
8203 | if (_argo1) { |
8204 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8205 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8206 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_Toggle. Expected _wxTreeItemId_p."); |
8207 | return NULL; | |
8208 | } | |
8209 | } | |
cf694132 RD |
8210 | { |
8211 | wxPy_BEGIN_ALLOW_THREADS; | |
8212 | wxTreeCtrl_Toggle(_arg0,*_arg1); | |
8213 | ||
8214 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8215 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8216 | } Py_INCREF(Py_None); |
d5c9047a RD |
8217 | _resultobj = Py_None; |
8218 | return _resultobj; | |
8219 | } | |
8220 | ||
8221 | #define wxTreeCtrl_Unselect(_swigobj) (_swigobj->Unselect()) | |
efc5f224 | 8222 | static PyObject *_wrap_wxTreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8223 | PyObject * _resultobj; |
f6bcfd97 | 8224 | wxPyTreeCtrl * _arg0; |
1d99702e | 8225 | PyObject * _argo0 = 0; |
efc5f224 | 8226 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
8227 | |
8228 | self = self; | |
efc5f224 | 8229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_Unselect",_kwnames,&_argo0)) |
d5c9047a | 8230 | return NULL; |
1d99702e RD |
8231 | if (_argo0) { |
8232 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8233 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8234 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_Unselect. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8235 | return NULL; |
8236 | } | |
8237 | } | |
cf694132 RD |
8238 | { |
8239 | wxPy_BEGIN_ALLOW_THREADS; | |
8240 | wxTreeCtrl_Unselect(_arg0); | |
8241 | ||
8242 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8243 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8244 | } Py_INCREF(Py_None); |
d5c9047a RD |
8245 | _resultobj = Py_None; |
8246 | return _resultobj; | |
8247 | } | |
8248 | ||
8bf5d46e | 8249 | #define wxTreeCtrl_UnselectAll(_swigobj) (_swigobj->UnselectAll()) |
efc5f224 | 8250 | static PyObject *_wrap_wxTreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e | 8251 | PyObject * _resultobj; |
f6bcfd97 | 8252 | wxPyTreeCtrl * _arg0; |
1d99702e | 8253 | PyObject * _argo0 = 0; |
efc5f224 | 8254 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
8255 | |
8256 | self = self; | |
efc5f224 | 8257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_UnselectAll",_kwnames,&_argo0)) |
8bf5d46e | 8258 | return NULL; |
1d99702e RD |
8259 | if (_argo0) { |
8260 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8261 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8262 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_UnselectAll. Expected _wxPyTreeCtrl_p."); | |
8bf5d46e RD |
8263 | return NULL; |
8264 | } | |
8265 | } | |
8266 | { | |
8267 | wxPy_BEGIN_ALLOW_THREADS; | |
8268 | wxTreeCtrl_UnselectAll(_arg0); | |
8269 | ||
8270 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8271 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
8272 | } Py_INCREF(Py_None); |
8273 | _resultobj = Py_None; | |
8274 | return _resultobj; | |
8275 | } | |
8276 | ||
d5c9047a | 8277 | #define wxTreeCtrl_SelectItem(_swigobj,_swigarg0) (_swigobj->SelectItem(_swigarg0)) |
efc5f224 | 8278 | static PyObject *_wrap_wxTreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8279 | PyObject * _resultobj; |
f6bcfd97 | 8280 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8281 | wxTreeItemId * _arg1; |
1d99702e RD |
8282 | PyObject * _argo0 = 0; |
8283 | PyObject * _argo1 = 0; | |
efc5f224 | 8284 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8285 | |
8286 | self = self; | |
efc5f224 | 8287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SelectItem",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8288 | return NULL; |
1d99702e RD |
8289 | if (_argo0) { |
8290 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8291 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8292 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SelectItem. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8293 | return NULL; |
8294 | } | |
8295 | } | |
1d99702e RD |
8296 | if (_argo1) { |
8297 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8298 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8299 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SelectItem. Expected _wxTreeItemId_p."); |
8300 | return NULL; | |
8301 | } | |
8302 | } | |
cf694132 RD |
8303 | { |
8304 | wxPy_BEGIN_ALLOW_THREADS; | |
8305 | wxTreeCtrl_SelectItem(_arg0,*_arg1); | |
8306 | ||
8307 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8308 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8309 | } Py_INCREF(Py_None); |
d5c9047a RD |
8310 | _resultobj = Py_None; |
8311 | return _resultobj; | |
8312 | } | |
8313 | ||
8314 | #define wxTreeCtrl_EnsureVisible(_swigobj,_swigarg0) (_swigobj->EnsureVisible(_swigarg0)) | |
efc5f224 | 8315 | static PyObject *_wrap_wxTreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8316 | PyObject * _resultobj; |
f6bcfd97 | 8317 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8318 | wxTreeItemId * _arg1; |
1d99702e RD |
8319 | PyObject * _argo0 = 0; |
8320 | PyObject * _argo1 = 0; | |
efc5f224 | 8321 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8322 | |
8323 | self = self; | |
efc5f224 | 8324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EnsureVisible",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8325 | return NULL; |
1d99702e RD |
8326 | if (_argo0) { |
8327 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8328 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8329 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EnsureVisible. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8330 | return NULL; |
8331 | } | |
8332 | } | |
1d99702e RD |
8333 | if (_argo1) { |
8334 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8335 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8336 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EnsureVisible. Expected _wxTreeItemId_p."); |
8337 | return NULL; | |
8338 | } | |
8339 | } | |
cf694132 RD |
8340 | { |
8341 | wxPy_BEGIN_ALLOW_THREADS; | |
8342 | wxTreeCtrl_EnsureVisible(_arg0,*_arg1); | |
8343 | ||
8344 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8345 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8346 | } Py_INCREF(Py_None); |
d5c9047a RD |
8347 | _resultobj = Py_None; |
8348 | return _resultobj; | |
8349 | } | |
8350 | ||
8351 | #define wxTreeCtrl_ScrollTo(_swigobj,_swigarg0) (_swigobj->ScrollTo(_swigarg0)) | |
efc5f224 | 8352 | static PyObject *_wrap_wxTreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8353 | PyObject * _resultobj; |
f6bcfd97 | 8354 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8355 | wxTreeItemId * _arg1; |
1d99702e RD |
8356 | PyObject * _argo0 = 0; |
8357 | PyObject * _argo1 = 0; | |
efc5f224 | 8358 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8359 | |
8360 | self = self; | |
efc5f224 | 8361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_ScrollTo",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8362 | return NULL; |
1d99702e RD |
8363 | if (_argo0) { |
8364 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8365 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8366 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_ScrollTo. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8367 | return NULL; |
8368 | } | |
8369 | } | |
1d99702e RD |
8370 | if (_argo1) { |
8371 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8372 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8373 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_ScrollTo. Expected _wxTreeItemId_p."); |
8374 | return NULL; | |
8375 | } | |
8376 | } | |
cf694132 RD |
8377 | { |
8378 | wxPy_BEGIN_ALLOW_THREADS; | |
8379 | wxTreeCtrl_ScrollTo(_arg0,*_arg1); | |
8380 | ||
8381 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8382 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8383 | } Py_INCREF(Py_None); |
d5c9047a RD |
8384 | _resultobj = Py_None; |
8385 | return _resultobj; | |
8386 | } | |
8387 | ||
8388 | #define wxTreeCtrl_EditLabel(_swigobj,_swigarg0) (_swigobj->EditLabel(_swigarg0)) | |
efc5f224 | 8389 | static PyObject *_wrap_wxTreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a RD |
8390 | PyObject * _resultobj; |
8391 | wxTextCtrl * _result; | |
f6bcfd97 | 8392 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8393 | wxTreeItemId * _arg1; |
1d99702e RD |
8394 | PyObject * _argo0 = 0; |
8395 | PyObject * _argo1 = 0; | |
efc5f224 | 8396 | char *_kwnames[] = { "self","item", NULL }; |
d5c9047a RD |
8397 | |
8398 | self = self; | |
efc5f224 | 8399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_EditLabel",_kwnames,&_argo0,&_argo1)) |
d5c9047a | 8400 | return NULL; |
1d99702e RD |
8401 | if (_argo0) { |
8402 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8403 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8404 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EditLabel. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8405 | return NULL; |
8406 | } | |
8407 | } | |
1d99702e RD |
8408 | if (_argo1) { |
8409 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8410 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EditLabel. Expected _wxTreeItemId_p."); |
8412 | return NULL; | |
8413 | } | |
8414 | } | |
cf694132 RD |
8415 | { |
8416 | wxPy_BEGIN_ALLOW_THREADS; | |
8417 | _result = (wxTextCtrl *)wxTreeCtrl_EditLabel(_arg0,*_arg1); | |
8418 | ||
8419 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8420 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8421 | }{ _resultobj = wxPyMake_wxObject(_result); } |
d5c9047a RD |
8422 | return _resultobj; |
8423 | } | |
8424 | ||
8425 | #define wxTreeCtrl_GetEditControl(_swigobj) (_swigobj->GetEditControl()) | |
efc5f224 | 8426 | static PyObject *_wrap_wxTreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a RD |
8427 | PyObject * _resultobj; |
8428 | wxTextCtrl * _result; | |
f6bcfd97 | 8429 | wxPyTreeCtrl * _arg0; |
1d99702e | 8430 | PyObject * _argo0 = 0; |
efc5f224 | 8431 | char *_kwnames[] = { "self", NULL }; |
d5c9047a RD |
8432 | |
8433 | self = self; | |
efc5f224 | 8434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTreeCtrl_GetEditControl",_kwnames,&_argo0)) |
d5c9047a | 8435 | return NULL; |
1d99702e RD |
8436 | if (_argo0) { |
8437 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8438 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8439 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetEditControl. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8440 | return NULL; |
8441 | } | |
8442 | } | |
cf694132 RD |
8443 | { |
8444 | wxPy_BEGIN_ALLOW_THREADS; | |
8445 | _result = (wxTextCtrl *)wxTreeCtrl_GetEditControl(_arg0); | |
8446 | ||
8447 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8448 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8449 | }{ _resultobj = wxPyMake_wxObject(_result); } |
d5c9047a RD |
8450 | return _resultobj; |
8451 | } | |
8452 | ||
8453 | #define wxTreeCtrl_EndEditLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->EndEditLabel(_swigarg0,_swigarg1)) | |
efc5f224 | 8454 | static PyObject *_wrap_wxTreeCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d5c9047a | 8455 | PyObject * _resultobj; |
f6bcfd97 | 8456 | wxPyTreeCtrl * _arg0; |
d5c9047a | 8457 | wxTreeItemId * _arg1; |
b1462dfa | 8458 | int _arg2 = (int ) FALSE; |
1d99702e RD |
8459 | PyObject * _argo0 = 0; |
8460 | PyObject * _argo1 = 0; | |
efc5f224 | 8461 | char *_kwnames[] = { "self","item","discardChanges", NULL }; |
d5c9047a RD |
8462 | |
8463 | self = self; | |
b1462dfa | 8464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_EndEditLabel",_kwnames,&_argo0,&_argo1,&_arg2)) |
d5c9047a | 8465 | return NULL; |
1d99702e RD |
8466 | if (_argo0) { |
8467 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8468 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8469 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_EndEditLabel. Expected _wxPyTreeCtrl_p."); | |
d5c9047a RD |
8470 | return NULL; |
8471 | } | |
8472 | } | |
1d99702e RD |
8473 | if (_argo1) { |
8474 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8475 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
d5c9047a RD |
8476 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_EndEditLabel. Expected _wxTreeItemId_p."); |
8477 | return NULL; | |
8478 | } | |
8479 | } | |
cf694132 RD |
8480 | { |
8481 | wxPy_BEGIN_ALLOW_THREADS; | |
8482 | wxTreeCtrl_EndEditLabel(_arg0,*_arg1,_arg2); | |
8483 | ||
8484 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8485 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8486 | } Py_INCREF(Py_None); |
d5c9047a | 8487 | _resultobj = Py_None; |
8ab979d7 RD |
8488 | return _resultobj; |
8489 | } | |
8490 | ||
d426c97e RD |
8491 | #define wxTreeCtrl_SortChildren(_swigobj,_swigarg0) (_swigobj->SortChildren(_swigarg0)) |
8492 | static PyObject *_wrap_wxTreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8493 | PyObject * _resultobj; | |
f6bcfd97 | 8494 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
8495 | wxTreeItemId * _arg1; |
8496 | PyObject * _argo0 = 0; | |
8497 | PyObject * _argo1 = 0; | |
8498 | char *_kwnames[] = { "self","item", NULL }; | |
8499 | ||
8500 | self = self; | |
8501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_SortChildren",_kwnames,&_argo0,&_argo1)) | |
8502 | return NULL; | |
8503 | if (_argo0) { | |
8504 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8505 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8506 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SortChildren. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
8507 | return NULL; |
8508 | } | |
8509 | } | |
8510 | if (_argo1) { | |
8511 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8512 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8513 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SortChildren. Expected _wxTreeItemId_p."); | |
8514 | return NULL; | |
8515 | } | |
8516 | } | |
8517 | { | |
8518 | wxPy_BEGIN_ALLOW_THREADS; | |
8519 | wxTreeCtrl_SortChildren(_arg0,*_arg1); | |
8520 | ||
8521 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8522 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
8523 | } Py_INCREF(Py_None); |
8524 | _resultobj = Py_None; | |
8525 | return _resultobj; | |
8526 | } | |
8527 | ||
b8b8dda7 | 8528 | #define wxTreeCtrl_SetItemBold(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBold(_swigarg0,_swigarg1)) |
efc5f224 | 8529 | static PyObject *_wrap_wxTreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 | 8530 | PyObject * _resultobj; |
f6bcfd97 | 8531 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 8532 | wxTreeItemId * _arg1; |
b1462dfa | 8533 | int _arg2 = (int ) TRUE; |
1d99702e RD |
8534 | PyObject * _argo0 = 0; |
8535 | PyObject * _argo1 = 0; | |
efc5f224 | 8536 | char *_kwnames[] = { "self","item","bold", NULL }; |
b8b8dda7 RD |
8537 | |
8538 | self = self; | |
b1462dfa | 8539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemBold",_kwnames,&_argo0,&_argo1,&_arg2)) |
b8b8dda7 | 8540 | return NULL; |
1d99702e RD |
8541 | if (_argo0) { |
8542 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8543 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBold. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
8545 | return NULL; |
8546 | } | |
8547 | } | |
1d99702e RD |
8548 | if (_argo1) { |
8549 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8550 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
b8b8dda7 RD |
8551 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBold. Expected _wxTreeItemId_p."); |
8552 | return NULL; | |
8553 | } | |
8554 | } | |
cf694132 RD |
8555 | { |
8556 | wxPy_BEGIN_ALLOW_THREADS; | |
8557 | wxTreeCtrl_SetItemBold(_arg0,*_arg1,_arg2); | |
8558 | ||
8559 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8560 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8561 | } Py_INCREF(Py_None); |
b8b8dda7 RD |
8562 | _resultobj = Py_None; |
8563 | return _resultobj; | |
8564 | } | |
8565 | ||
8566 | #define wxTreeCtrl_IsBold(_swigobj,_swigarg0) (_swigobj->IsBold(_swigarg0)) | |
efc5f224 | 8567 | static PyObject *_wrap_wxTreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
8568 | PyObject * _resultobj; |
8569 | bool _result; | |
f6bcfd97 | 8570 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 8571 | wxTreeItemId * _arg1; |
1d99702e RD |
8572 | PyObject * _argo0 = 0; |
8573 | PyObject * _argo1 = 0; | |
efc5f224 | 8574 | char *_kwnames[] = { "self","item", NULL }; |
b8b8dda7 RD |
8575 | |
8576 | self = self; | |
efc5f224 | 8577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_IsBold",_kwnames,&_argo0,&_argo1)) |
b8b8dda7 | 8578 | return NULL; |
1d99702e RD |
8579 | if (_argo0) { |
8580 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8581 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_IsBold. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
8583 | return NULL; |
8584 | } | |
8585 | } | |
1d99702e RD |
8586 | if (_argo1) { |
8587 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8588 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
b8b8dda7 RD |
8589 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_IsBold. Expected _wxTreeItemId_p."); |
8590 | return NULL; | |
8591 | } | |
8592 | } | |
cf694132 RD |
8593 | { |
8594 | wxPy_BEGIN_ALLOW_THREADS; | |
8595 | _result = (bool )wxTreeCtrl_IsBold(_arg0,*_arg1); | |
8596 | ||
8597 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8598 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8599 | } _resultobj = Py_BuildValue("i",_result); |
b8b8dda7 RD |
8600 | return _resultobj; |
8601 | } | |
8602 | ||
164b735b | 8603 | #define wxTreeCtrl_HitTest(_swigobj,_swigarg0,_swigarg1) (_swigobj->HitTest(_swigarg0,_swigarg1)) |
efc5f224 | 8604 | static PyObject *_wrap_wxTreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
8605 | PyObject * _resultobj; |
8606 | wxTreeItemId * _result; | |
f6bcfd97 | 8607 | wxPyTreeCtrl * _arg0; |
b8b8dda7 | 8608 | wxPoint * _arg1; |
164b735b RD |
8609 | int * _arg2; |
8610 | int temp; | |
1d99702e | 8611 | PyObject * _argo0 = 0; |
164b735b | 8612 | wxPoint temp0; |
2f90df85 | 8613 | PyObject * _obj1 = 0; |
efc5f224 | 8614 | char *_kwnames[] = { "self","point", NULL }; |
b8b8dda7 RD |
8615 | char _ptemp[128]; |
8616 | ||
8617 | self = self; | |
164b735b RD |
8618 | { |
8619 | _arg2 = &temp; | |
8620 | } | |
2f90df85 | 8621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTreeCtrl_HitTest",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 8622 | return NULL; |
1d99702e RD |
8623 | if (_argo0) { |
8624 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8625 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8626 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_HitTest. Expected _wxPyTreeCtrl_p."); | |
b8b8dda7 RD |
8627 | return NULL; |
8628 | } | |
8629 | } | |
2f90df85 | 8630 | { |
164b735b | 8631 | _arg1 = &temp0; |
2f90df85 | 8632 | if (! wxPoint_helper(_obj1, &_arg1)) |
b8b8dda7 | 8633 | return NULL; |
2f90df85 | 8634 | } |
cf694132 RD |
8635 | { |
8636 | wxPy_BEGIN_ALLOW_THREADS; | |
164b735b | 8637 | _result = new wxTreeItemId (wxTreeCtrl_HitTest(_arg0,*_arg1,*_arg2)); |
cf694132 RD |
8638 | |
8639 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8640 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8641 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTreeItemId_p"); |
b8b8dda7 | 8642 | _resultobj = Py_BuildValue("s",_ptemp); |
164b735b RD |
8643 | { |
8644 | PyObject *o; | |
8645 | o = PyInt_FromLong((long) (*_arg2)); | |
8646 | _resultobj = t_output_helper(_resultobj, o); | |
8647 | } | |
b8b8dda7 RD |
8648 | return _resultobj; |
8649 | } | |
8650 | ||
b7e72427 RD |
8651 | #define wxTreeCtrl_SetItemTextColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemTextColour(_swigarg0,_swigarg1)) |
8652 | static PyObject *_wrap_wxTreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8653 | PyObject * _resultobj; | |
f6bcfd97 | 8654 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
8655 | wxTreeItemId * _arg1; |
8656 | wxColour * _arg2; | |
8657 | PyObject * _argo0 = 0; | |
8658 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
8659 | wxColour temp; |
8660 | PyObject * _obj2 = 0; | |
b7e72427 RD |
8661 | char *_kwnames[] = { "self","item","col", NULL }; |
8662 | ||
8663 | self = self; | |
f6bcfd97 | 8664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemTextColour",_kwnames,&_argo0,&_argo1,&_obj2)) |
b7e72427 RD |
8665 | return NULL; |
8666 | if (_argo0) { | |
8667 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8668 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8669 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemTextColour. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
8670 | return NULL; |
8671 | } | |
8672 | } | |
8673 | if (_argo1) { | |
8674 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8675 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8676 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemTextColour. Expected _wxTreeItemId_p."); | |
8677 | return NULL; | |
8678 | } | |
8679 | } | |
f6bcfd97 BP |
8680 | { |
8681 | _arg2 = &temp; | |
8682 | if (! wxColour_helper(_obj2, &_arg2)) | |
b7e72427 | 8683 | return NULL; |
f6bcfd97 | 8684 | } |
b7e72427 RD |
8685 | { |
8686 | wxPy_BEGIN_ALLOW_THREADS; | |
8687 | wxTreeCtrl_SetItemTextColour(_arg0,*_arg1,*_arg2); | |
8688 | ||
8689 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8690 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
8691 | } Py_INCREF(Py_None); |
8692 | _resultobj = Py_None; | |
8693 | return _resultobj; | |
8694 | } | |
8695 | ||
8696 | #define wxTreeCtrl_SetItemBackgroundColour(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemBackgroundColour(_swigarg0,_swigarg1)) | |
8697 | static PyObject *_wrap_wxTreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8698 | PyObject * _resultobj; | |
f6bcfd97 | 8699 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
8700 | wxTreeItemId * _arg1; |
8701 | wxColour * _arg2; | |
8702 | PyObject * _argo0 = 0; | |
8703 | PyObject * _argo1 = 0; | |
f6bcfd97 BP |
8704 | wxColour temp; |
8705 | PyObject * _obj2 = 0; | |
b7e72427 RD |
8706 | char *_kwnames[] = { "self","item","col", NULL }; |
8707 | ||
8708 | self = self; | |
f6bcfd97 | 8709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemBackgroundColour",_kwnames,&_argo0,&_argo1,&_obj2)) |
b7e72427 RD |
8710 | return NULL; |
8711 | if (_argo0) { | |
8712 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8713 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8714 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
8715 | return NULL; |
8716 | } | |
8717 | } | |
8718 | if (_argo1) { | |
8719 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8720 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8721 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemBackgroundColour. Expected _wxTreeItemId_p."); | |
8722 | return NULL; | |
8723 | } | |
8724 | } | |
f6bcfd97 BP |
8725 | { |
8726 | _arg2 = &temp; | |
8727 | if (! wxColour_helper(_obj2, &_arg2)) | |
b7e72427 | 8728 | return NULL; |
f6bcfd97 | 8729 | } |
b7e72427 RD |
8730 | { |
8731 | wxPy_BEGIN_ALLOW_THREADS; | |
8732 | wxTreeCtrl_SetItemBackgroundColour(_arg0,*_arg1,*_arg2); | |
8733 | ||
8734 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8735 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
8736 | } Py_INCREF(Py_None); |
8737 | _resultobj = Py_None; | |
8738 | return _resultobj; | |
8739 | } | |
8740 | ||
8741 | #define wxTreeCtrl_SetItemFont(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemFont(_swigarg0,_swigarg1)) | |
8742 | static PyObject *_wrap_wxTreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8743 | PyObject * _resultobj; | |
f6bcfd97 | 8744 | wxPyTreeCtrl * _arg0; |
b7e72427 RD |
8745 | wxTreeItemId * _arg1; |
8746 | wxFont * _arg2; | |
8747 | PyObject * _argo0 = 0; | |
8748 | PyObject * _argo1 = 0; | |
8749 | PyObject * _argo2 = 0; | |
8750 | char *_kwnames[] = { "self","item","font", NULL }; | |
8751 | ||
8752 | self = self; | |
8753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxTreeCtrl_SetItemFont",_kwnames,&_argo0,&_argo1,&_argo2)) | |
8754 | return NULL; | |
8755 | if (_argo0) { | |
8756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemFont. Expected _wxPyTreeCtrl_p."); | |
b7e72427 RD |
8759 | return NULL; |
8760 | } | |
8761 | } | |
8762 | if (_argo1) { | |
8763 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8764 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8765 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemFont. Expected _wxTreeItemId_p."); | |
8766 | return NULL; | |
8767 | } | |
8768 | } | |
8769 | if (_argo2) { | |
8770 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8771 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxFont_p")) { | |
8772 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxTreeCtrl_SetItemFont. Expected _wxFont_p."); | |
8773 | return NULL; | |
8774 | } | |
8775 | } | |
8776 | { | |
8777 | wxPy_BEGIN_ALLOW_THREADS; | |
8778 | wxTreeCtrl_SetItemFont(_arg0,*_arg1,*_arg2); | |
8779 | ||
8780 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8781 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
8782 | } Py_INCREF(Py_None); |
8783 | _resultobj = Py_None; | |
8784 | return _resultobj; | |
8785 | } | |
8786 | ||
b1462dfa RD |
8787 | #define wxTreeCtrl_SetItemDropHighlight(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetItemDropHighlight(_swigarg0,_swigarg1)) |
8788 | static PyObject *_wrap_wxTreeCtrl_SetItemDropHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8789 | PyObject * _resultobj; | |
f6bcfd97 | 8790 | wxPyTreeCtrl * _arg0; |
b1462dfa RD |
8791 | wxTreeItemId * _arg1; |
8792 | int _arg2 = (int ) TRUE; | |
8793 | PyObject * _argo0 = 0; | |
8794 | PyObject * _argo1 = 0; | |
8795 | char *_kwnames[] = { "self","item","highlight", NULL }; | |
8796 | ||
8797 | self = self; | |
8798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_SetItemDropHighlight",_kwnames,&_argo0,&_argo1,&_arg2)) | |
8799 | return NULL; | |
8800 | if (_argo0) { | |
8801 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8802 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8803 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_SetItemDropHighlight. Expected _wxPyTreeCtrl_p."); | |
b1462dfa RD |
8804 | return NULL; |
8805 | } | |
8806 | } | |
8807 | if (_argo1) { | |
8808 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8809 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8810 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_SetItemDropHighlight. Expected _wxTreeItemId_p."); | |
8811 | return NULL; | |
8812 | } | |
8813 | } | |
8814 | { | |
8815 | wxPy_BEGIN_ALLOW_THREADS; | |
8816 | wxTreeCtrl_SetItemDropHighlight(_arg0,*_arg1,_arg2); | |
8817 | ||
8818 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8819 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8820 | } Py_INCREF(Py_None); |
8821 | _resultobj = Py_None; | |
8822 | return _resultobj; | |
8823 | } | |
8824 | ||
f6bcfd97 | 8825 | static PyObject * wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,const wxTreeItemId & item,int textOnly) { |
d426c97e | 8826 | wxRect rect; |
164b735b RD |
8827 | if (self->GetBoundingRect(item, rect, textOnly)) { |
8828 | bool doSave = wxPyRestoreThread(); | |
8829 | wxRect* r = new wxRect(rect); | |
8830 | PyObject* val = wxPyConstructObject((void*)r, "wxRect"); | |
8831 | wxPySaveThread(doSave); | |
8832 | return val; | |
8833 | } | |
d426c97e RD |
8834 | else { |
8835 | Py_INCREF(Py_None); | |
8836 | return Py_None; | |
8837 | } | |
8838 | } | |
8839 | static PyObject *_wrap_wxTreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8840 | PyObject * _resultobj; | |
8841 | PyObject * _result; | |
f6bcfd97 | 8842 | wxPyTreeCtrl * _arg0; |
d426c97e RD |
8843 | wxTreeItemId * _arg1; |
8844 | int _arg2 = (int ) FALSE; | |
8845 | PyObject * _argo0 = 0; | |
8846 | PyObject * _argo1 = 0; | |
8847 | char *_kwnames[] = { "self","item","textOnly", NULL }; | |
8848 | ||
8849 | self = self; | |
8850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxTreeCtrl_GetBoundingRect",_kwnames,&_argo0,&_argo1,&_arg2)) | |
8851 | return NULL; | |
8852 | if (_argo0) { | |
8853 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
8854 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTreeCtrl_p")) { |
8855 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTreeCtrl_GetBoundingRect. Expected _wxPyTreeCtrl_p."); | |
d426c97e RD |
8856 | return NULL; |
8857 | } | |
8858 | } | |
8859 | if (_argo1) { | |
8860 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8861 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
8862 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxTreeCtrl_GetBoundingRect. Expected _wxTreeItemId_p."); | |
8863 | return NULL; | |
8864 | } | |
8865 | } | |
8866 | { | |
8867 | wxPy_BEGIN_ALLOW_THREADS; | |
f6bcfd97 | 8868 | _result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(_arg0,*_arg1,_arg2); |
d426c97e RD |
8869 | |
8870 | wxPy_END_ALLOW_THREADS; | |
493f1553 | 8871 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
8872 | }{ |
8873 | _resultobj = _result; | |
8874 | } | |
8875 | return _resultobj; | |
8876 | } | |
8877 | ||
8ab979d7 | 8878 | static PyMethodDef controls2cMethods[] = { |
d426c97e | 8879 | { "wxTreeCtrl_GetBoundingRect", (PyCFunction) _wrap_wxTreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 8880 | { "wxTreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_wxTreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 RD |
8881 | { "wxTreeCtrl_SetItemFont", (PyCFunction) _wrap_wxTreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, |
8882 | { "wxTreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8883 | { "wxTreeCtrl_SetItemTextColour", (PyCFunction) _wrap_wxTreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
8884 | { "wxTreeCtrl_HitTest", (PyCFunction) _wrap_wxTreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
8885 | { "wxTreeCtrl_IsBold", (PyCFunction) _wrap_wxTreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
8886 | { "wxTreeCtrl_SetItemBold", (PyCFunction) _wrap_wxTreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 8887 | { "wxTreeCtrl_SortChildren", (PyCFunction) _wrap_wxTreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8888 | { "wxTreeCtrl_EndEditLabel", (PyCFunction) _wrap_wxTreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, |
8889 | { "wxTreeCtrl_GetEditControl", (PyCFunction) _wrap_wxTreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
8890 | { "wxTreeCtrl_EditLabel", (PyCFunction) _wrap_wxTreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
8891 | { "wxTreeCtrl_ScrollTo", (PyCFunction) _wrap_wxTreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
8892 | { "wxTreeCtrl_EnsureVisible", (PyCFunction) _wrap_wxTreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
8893 | { "wxTreeCtrl_SelectItem", (PyCFunction) _wrap_wxTreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
8894 | { "wxTreeCtrl_UnselectAll", (PyCFunction) _wrap_wxTreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, | |
8895 | { "wxTreeCtrl_Unselect", (PyCFunction) _wrap_wxTreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
8896 | { "wxTreeCtrl_Toggle", (PyCFunction) _wrap_wxTreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
8897 | { "wxTreeCtrl_CollapseAndReset", (PyCFunction) _wrap_wxTreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
8898 | { "wxTreeCtrl_Collapse", (PyCFunction) _wrap_wxTreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
8899 | { "wxTreeCtrl_Expand", (PyCFunction) _wrap_wxTreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
8900 | { "wxTreeCtrl_DeleteAllItems", (PyCFunction) _wrap_wxTreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
8901 | { "wxTreeCtrl_DeleteChildren", (PyCFunction) _wrap_wxTreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
8902 | { "wxTreeCtrl_Delete", (PyCFunction) _wrap_wxTreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
8903 | { "wxTreeCtrl_AppendItem", (PyCFunction) _wrap_wxTreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 8904 | { "wxTreeCtrl_InsertItemBefore", (PyCFunction) _wrap_wxTreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8905 | { "wxTreeCtrl_InsertItem", (PyCFunction) _wrap_wxTreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, |
8906 | { "wxTreeCtrl_PrependItem", (PyCFunction) _wrap_wxTreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
8907 | { "wxTreeCtrl_AddRoot", (PyCFunction) _wrap_wxTreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 8908 | { "wxTreeCtrl_GetLastChild", (PyCFunction) _wrap_wxTreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8909 | { "wxTreeCtrl_GetPrevVisible", (PyCFunction) _wrap_wxTreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, |
8910 | { "wxTreeCtrl_GetNextVisible", (PyCFunction) _wrap_wxTreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
8911 | { "wxTreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_wxTreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
8912 | { "wxTreeCtrl_GetPrevSibling", (PyCFunction) _wrap_wxTreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
8913 | { "wxTreeCtrl_GetNextSibling", (PyCFunction) _wrap_wxTreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
8914 | { "wxTreeCtrl_GetNextChild", (PyCFunction) _wrap_wxTreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
8915 | { "wxTreeCtrl_GetFirstChild", (PyCFunction) _wrap_wxTreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
8916 | { "wxTreeCtrl_GetChildrenCount", (PyCFunction) _wrap_wxTreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 8917 | { "wxTreeCtrl_GetSelections", (PyCFunction) _wrap_wxTreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 8918 | { "wxTreeCtrl_GetItemParent", (PyCFunction) _wrap_wxTreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8919 | { "wxTreeCtrl_GetSelection", (PyCFunction) _wrap_wxTreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, |
8920 | { "wxTreeCtrl_GetRootItem", (PyCFunction) _wrap_wxTreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
8921 | { "wxTreeCtrl_IsSelected", (PyCFunction) _wrap_wxTreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
8922 | { "wxTreeCtrl_IsExpanded", (PyCFunction) _wrap_wxTreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
8923 | { "wxTreeCtrl_ItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
8924 | { "wxTreeCtrl_IsVisible", (PyCFunction) _wrap_wxTreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
8925 | { "wxTreeCtrl_SetPyData", (PyCFunction) _wrap_wxTreeCtrl_SetPyData, METH_VARARGS | METH_KEYWORDS }, | |
8926 | { "wxTreeCtrl_GetPyData", (PyCFunction) _wrap_wxTreeCtrl_GetPyData, METH_VARARGS | METH_KEYWORDS }, | |
8927 | { "wxTreeCtrl_SetItemData", (PyCFunction) _wrap_wxTreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
8928 | { "wxTreeCtrl_GetItemData", (PyCFunction) _wrap_wxTreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
8929 | { "wxTreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_wxTreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
8930 | { "wxTreeCtrl_SetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
8931 | { "wxTreeCtrl_SetItemImage", (PyCFunction) _wrap_wxTreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
8932 | { "wxTreeCtrl_SetItemText", (PyCFunction) _wrap_wxTreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
8933 | { "wxTreeCtrl_GetItemSelectedImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemSelectedImage, METH_VARARGS | METH_KEYWORDS }, | |
8934 | { "wxTreeCtrl_GetItemImage", (PyCFunction) _wrap_wxTreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
8935 | { "wxTreeCtrl_GetItemText", (PyCFunction) _wrap_wxTreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
8936 | { "wxTreeCtrl_SetSpacing", (PyCFunction) _wrap_wxTreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, |
8937 | { "wxTreeCtrl_GetSpacing", (PyCFunction) _wrap_wxTreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
00b6c4e3 RD |
8938 | { "wxTreeCtrl_AssignStateImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, |
8939 | { "wxTreeCtrl_AssignImageList", (PyCFunction) _wrap_wxTreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
8940 | { "wxTreeCtrl_SetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, |
8941 | { "wxTreeCtrl_SetImageList", (PyCFunction) _wrap_wxTreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
8942 | { "wxTreeCtrl_GetStateImageList", (PyCFunction) _wrap_wxTreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
8943 | { "wxTreeCtrl_GetImageList", (PyCFunction) _wrap_wxTreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
8944 | { "wxTreeCtrl_SetIndent", (PyCFunction) _wrap_wxTreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
8945 | { "wxTreeCtrl_GetIndent", (PyCFunction) _wrap_wxTreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
8946 | { "wxTreeCtrl_GetCount", (PyCFunction) _wrap_wxTreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 8947 | { "wxTreeCtrl__setSelf", (PyCFunction) _wrap_wxTreeCtrl__setSelf, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8948 | { "new_wxTreeCtrl", (PyCFunction) _wrap_new_wxTreeCtrl, METH_VARARGS | METH_KEYWORDS }, |
8949 | { "wxTreeEvent_GetLabel", (PyCFunction) _wrap_wxTreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
8950 | { "wxTreeEvent_GetCode", (PyCFunction) _wrap_wxTreeEvent_GetCode, METH_VARARGS | METH_KEYWORDS }, | |
8951 | { "wxTreeEvent_GetPoint", (PyCFunction) _wrap_wxTreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
8952 | { "wxTreeEvent_GetOldItem", (PyCFunction) _wrap_wxTreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
8953 | { "wxTreeEvent_GetItem", (PyCFunction) _wrap_wxTreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
00b6c4e3 | 8954 | { "new_wxTreeEvent", (PyCFunction) _wrap_new_wxTreeEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8955 | { "wxTreeItemData_SetId", (PyCFunction) _wrap_wxTreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, |
8956 | { "wxTreeItemData_GetId", (PyCFunction) _wrap_wxTreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
8957 | { "wxTreeItemData_SetData", (PyCFunction) _wrap_wxTreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
8958 | { "wxTreeItemData_GetData", (PyCFunction) _wrap_wxTreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
8959 | { "new_wxTreeItemData", (PyCFunction) _wrap_new_wxTreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 8960 | { "wxTreeItemId___cmp__", (PyCFunction) _wrap_wxTreeItemId___cmp__, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8961 | { "wxTreeItemId_IsOk", (PyCFunction) _wrap_wxTreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, |
8962 | { "delete_wxTreeItemId", (PyCFunction) _wrap_delete_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
8963 | { "new_wxTreeItemId", (PyCFunction) _wrap_new_wxTreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
00b6c4e3 RD |
8964 | { "wxTreeItemAttr_GetFont", (PyCFunction) _wrap_wxTreeItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, |
8965 | { "wxTreeItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8966 | { "wxTreeItemAttr_GetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8967 | { "wxTreeItemAttr_HasFont", (PyCFunction) _wrap_wxTreeItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
8968 | { "wxTreeItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8969 | { "wxTreeItemAttr_HasTextColour", (PyCFunction) _wrap_wxTreeItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8970 | { "wxTreeItemAttr_SetFont", (PyCFunction) _wrap_wxTreeItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
8971 | { "wxTreeItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxTreeItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
8972 | { "wxTreeItemAttr_SetTextColour", (PyCFunction) _wrap_wxTreeItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
8973 | { "new_wxTreeItemAttr", (PyCFunction) _wrap_new_wxTreeItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
dcd38683 | 8974 | { "wxListCtrl_SortItems", (PyCFunction) _wrap_wxListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 8975 | { "wxListCtrl_ScrollList", (PyCFunction) _wrap_wxListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, |
c7e7022c RD |
8976 | { "wxListCtrl_SetItemCount", (PyCFunction) _wrap_wxListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, |
8977 | { "wxListCtrl_InsertColumn", (PyCFunction) _wrap_wxListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
8978 | { "wxListCtrl_InsertColumnInfo", (PyCFunction) _wrap_wxListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
8979 | { "wxListCtrl_InsertImageStringItem", (PyCFunction) _wrap_wxListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, |
8980 | { "wxListCtrl_InsertImageItem", (PyCFunction) _wrap_wxListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
8981 | { "wxListCtrl_InsertStringItem", (PyCFunction) _wrap_wxListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
8982 | { "wxListCtrl_InsertItem", (PyCFunction) _wrap_wxListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 8983 | { "wxListCtrl_HitTest", (PyCFunction) _wrap_wxListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
8984 | { "wxListCtrl_FindItemAtPos", (PyCFunction) _wrap_wxListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, |
8985 | { "wxListCtrl_FindItemData", (PyCFunction) _wrap_wxListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
8986 | { "wxListCtrl_FindItem", (PyCFunction) _wrap_wxListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
8987 | { "wxListCtrl_EnsureVisible", (PyCFunction) _wrap_wxListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
8988 | { "wxListCtrl_EndEditLabel", (PyCFunction) _wrap_wxListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, |
8989 | { "wxListCtrl_EditLabel", (PyCFunction) _wrap_wxListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
8990 | { "wxListCtrl_ClearAll", (PyCFunction) _wrap_wxListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, | |
8991 | { "wxListCtrl_DeleteAllColumns", (PyCFunction) _wrap_wxListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
8992 | { "wxListCtrl_DeleteColumn", (PyCFunction) _wrap_wxListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
8993 | { "wxListCtrl_DeleteAllItems", (PyCFunction) _wrap_wxListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
8994 | { "wxListCtrl_DeleteItem", (PyCFunction) _wrap_wxListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
8995 | { "wxListCtrl_Arrange", (PyCFunction) _wrap_wxListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
c7e7022c RD |
8996 | { "wxListCtrl_RefreshItems", (PyCFunction) _wrap_wxListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, |
8997 | { "wxListCtrl_RefreshItem", (PyCFunction) _wrap_wxListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, | |
8998 | { "wxListCtrl_IsVirtual", (PyCFunction) _wrap_wxListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, | |
8999 | { "wxListCtrl_AssignImageList", (PyCFunction) _wrap_wxListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
9000 | { "wxListCtrl_SetImageList", (PyCFunction) _wrap_wxListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
9001 | { "wxListCtrl_GetImageList", (PyCFunction) _wrap_wxListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
9002 | { "wxListCtrl_GetNextItem", (PyCFunction) _wrap_wxListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
9003 | { "wxListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_wxListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
9004 | { "wxListCtrl_SetSingleStyle", (PyCFunction) _wrap_wxListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
9005 | { "wxListCtrl_GetTopItem", (PyCFunction) _wrap_wxListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
9006 | { "wxListCtrl_SetTextColour", (PyCFunction) _wrap_wxListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9007 | { "wxListCtrl_GetTextColour", (PyCFunction) _wrap_wxListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9008 | { "wxListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_wxListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
9009 | { "wxListCtrl_GetItemSpacing", (PyCFunction) _wrap_wxListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
9010 | { "wxListCtrl_GetColumnCount", (PyCFunction) _wrap_wxListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
9011 | { "wxListCtrl_GetItemCount", (PyCFunction) _wrap_wxListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
9012 | { "wxListCtrl_SetItemPosition", (PyCFunction) _wrap_wxListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
9013 | { "wxListCtrl_GetItemRect", (PyCFunction) _wrap_wxListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
9014 | { "wxListCtrl_GetItemPosition", (PyCFunction) _wrap_wxListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
9015 | { "wxListCtrl_SetItemData", (PyCFunction) _wrap_wxListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
9016 | { "wxListCtrl_GetItemData", (PyCFunction) _wrap_wxListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
9017 | { "wxListCtrl_SetItemText", (PyCFunction) _wrap_wxListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
9018 | { "wxListCtrl_GetItemText", (PyCFunction) _wrap_wxListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
9019 | { "wxListCtrl_SetItemImage", (PyCFunction) _wrap_wxListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
9020 | { "wxListCtrl_SetItemState", (PyCFunction) _wrap_wxListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
9021 | { "wxListCtrl_GetItemState", (PyCFunction) _wrap_wxListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
9022 | { "wxListCtrl_SetStringItem", (PyCFunction) _wrap_wxListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
9023 | { "wxListCtrl_SetItem", (PyCFunction) _wrap_wxListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
9024 | { "wxListCtrl_GetItem", (PyCFunction) _wrap_wxListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
9025 | { "wxListCtrl_GetEditControl", (PyCFunction) _wrap_wxListCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
9026 | { "wxListCtrl_GetCountPerPage", (PyCFunction) _wrap_wxListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
9027 | { "wxListCtrl_SetColumnWidth", (PyCFunction) _wrap_wxListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
9028 | { "wxListCtrl_GetColumnWidth", (PyCFunction) _wrap_wxListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
9029 | { "wxListCtrl_SetColumn", (PyCFunction) _wrap_wxListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
9030 | { "wxListCtrl_GetColumn", (PyCFunction) _wrap_wxListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
9031 | { "wxListCtrl_SetBackgroundColour", (PyCFunction) _wrap_wxListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9032 | { "wxListCtrl_SetForegroundColour", (PyCFunction) _wrap_wxListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9033 | { "wxListCtrl__setSelf", (PyCFunction) _wrap_wxListCtrl__setSelf, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 9034 | { "new_wxListCtrl", (PyCFunction) _wrap_new_wxListCtrl, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
9035 | { "wxListEvent_GetItem", (PyCFunction) _wrap_wxListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, |
9036 | { "wxListEvent_GetMask", (PyCFunction) _wrap_wxListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
9037 | { "wxListEvent_GetData", (PyCFunction) _wrap_wxListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
9038 | { "wxListEvent_GetImage", (PyCFunction) _wrap_wxListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
9039 | { "wxListEvent_GetText", (PyCFunction) _wrap_wxListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
9040 | { "wxListEvent_GetLabel", (PyCFunction) _wrap_wxListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
9041 | { "wxListEvent_GetPoint", (PyCFunction) _wrap_wxListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
9042 | { "wxListEvent_Cancelled", (PyCFunction) _wrap_wxListEvent_Cancelled, METH_VARARGS | METH_KEYWORDS }, | |
9043 | { "wxListEvent_GetColumn", (PyCFunction) _wrap_wxListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
9044 | { "wxListEvent_GetOldItem", (PyCFunction) _wrap_wxListEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
9045 | { "wxListEvent_GetOldIndex", (PyCFunction) _wrap_wxListEvent_GetOldIndex, METH_VARARGS | METH_KEYWORDS }, | |
9046 | { "wxListEvent_GetIndex", (PyCFunction) _wrap_wxListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
9047 | { "wxListEvent_GetCode", (PyCFunction) _wrap_wxListEvent_GetCode, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9048 | { "wxListEvent_m_item_get", (PyCFunction) _wrap_wxListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, |
9049 | { "wxListEvent_m_item_set", (PyCFunction) _wrap_wxListEvent_m_item_set, METH_VARARGS | METH_KEYWORDS }, | |
9050 | { "wxListEvent_m_pointDrag_get", (PyCFunction) _wrap_wxListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, | |
9051 | { "wxListEvent_m_pointDrag_set", (PyCFunction) _wrap_wxListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS }, | |
9052 | { "wxListEvent_m_cancelled_get", (PyCFunction) _wrap_wxListEvent_m_cancelled_get, METH_VARARGS | METH_KEYWORDS }, | |
9053 | { "wxListEvent_m_cancelled_set", (PyCFunction) _wrap_wxListEvent_m_cancelled_set, METH_VARARGS | METH_KEYWORDS }, | |
9054 | { "wxListEvent_m_col_get", (PyCFunction) _wrap_wxListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
9055 | { "wxListEvent_m_col_set", (PyCFunction) _wrap_wxListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
9056 | { "wxListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
9057 | { "wxListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_wxListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
9058 | { "wxListEvent_m_itemIndex_get", (PyCFunction) _wrap_wxListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
9059 | { "wxListEvent_m_itemIndex_set", (PyCFunction) _wrap_wxListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
9060 | { "wxListEvent_m_code_get", (PyCFunction) _wrap_wxListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, | |
9061 | { "wxListEvent_m_code_set", (PyCFunction) _wrap_wxListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
9062 | { "wxListItem_m_width_get", (PyCFunction) _wrap_wxListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, |
9063 | { "wxListItem_m_width_set", (PyCFunction) _wrap_wxListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
9064 | { "wxListItem_m_format_get", (PyCFunction) _wrap_wxListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
9065 | { "wxListItem_m_format_set", (PyCFunction) _wrap_wxListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
9066 | { "wxListItem_m_data_get", (PyCFunction) _wrap_wxListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
9067 | { "wxListItem_m_data_set", (PyCFunction) _wrap_wxListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
9068 | { "wxListItem_m_image_get", (PyCFunction) _wrap_wxListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
9069 | { "wxListItem_m_image_set", (PyCFunction) _wrap_wxListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
9070 | { "wxListItem_m_text_get", (PyCFunction) _wrap_wxListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
9071 | { "wxListItem_m_text_set", (PyCFunction) _wrap_wxListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
9072 | { "wxListItem_m_stateMask_get", (PyCFunction) _wrap_wxListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
9073 | { "wxListItem_m_stateMask_set", (PyCFunction) _wrap_wxListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
9074 | { "wxListItem_m_state_get", (PyCFunction) _wrap_wxListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
9075 | { "wxListItem_m_state_set", (PyCFunction) _wrap_wxListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
9076 | { "wxListItem_m_col_get", (PyCFunction) _wrap_wxListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
9077 | { "wxListItem_m_col_set", (PyCFunction) _wrap_wxListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
9078 | { "wxListItem_m_itemId_get", (PyCFunction) _wrap_wxListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
9079 | { "wxListItem_m_itemId_set", (PyCFunction) _wrap_wxListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
9080 | { "wxListItem_m_mask_get", (PyCFunction) _wrap_wxListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
9081 | { "wxListItem_m_mask_set", (PyCFunction) _wrap_wxListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
9082 | { "wxListItem_GetFont", (PyCFunction) _wrap_wxListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, |
9083 | { "wxListItem_GetBackgroundColour", (PyCFunction) _wrap_wxListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9084 | { "wxListItem_GetTextColour", (PyCFunction) _wrap_wxListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9085 | { "wxListItem_HasAttributes", (PyCFunction) _wrap_wxListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
9086 | { "wxListItem_GetAttributes", (PyCFunction) _wrap_wxListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
9087 | { "wxListItem_GetAlign", (PyCFunction) _wrap_wxListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
9088 | { "wxListItem_GetWidth", (PyCFunction) _wrap_wxListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
9089 | { "wxListItem_GetData", (PyCFunction) _wrap_wxListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
9090 | { "wxListItem_GetImage", (PyCFunction) _wrap_wxListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
9091 | { "wxListItem_GetText", (PyCFunction) _wrap_wxListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
9092 | { "wxListItem_GetState", (PyCFunction) _wrap_wxListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
9093 | { "wxListItem_GetColumn", (PyCFunction) _wrap_wxListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
9094 | { "wxListItem_GetId", (PyCFunction) _wrap_wxListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
9095 | { "wxListItem_GetMask", (PyCFunction) _wrap_wxListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
9096 | { "wxListItem_SetFont", (PyCFunction) _wrap_wxListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
9097 | { "wxListItem_SetBackgroundColour", (PyCFunction) _wrap_wxListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9098 | { "wxListItem_SetTextColour", (PyCFunction) _wrap_wxListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9099 | { "wxListItem_SetAlign", (PyCFunction) _wrap_wxListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
9100 | { "wxListItem_SetWidth", (PyCFunction) _wrap_wxListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
9101 | { "wxListItem_SetData", (PyCFunction) _wrap_wxListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
9102 | { "wxListItem_SetImage", (PyCFunction) _wrap_wxListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
9103 | { "wxListItem_SetText", (PyCFunction) _wrap_wxListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
9104 | { "wxListItem_SetStateMask", (PyCFunction) _wrap_wxListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
9105 | { "wxListItem_SetState", (PyCFunction) _wrap_wxListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
9106 | { "wxListItem_SetColumn", (PyCFunction) _wrap_wxListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
9107 | { "wxListItem_SetId", (PyCFunction) _wrap_wxListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
9108 | { "wxListItem_SetMask", (PyCFunction) _wrap_wxListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
9109 | { "wxListItem_ClearAttributes", (PyCFunction) _wrap_wxListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
9110 | { "wxListItem_Clear", (PyCFunction) _wrap_wxListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
9111 | { "delete_wxListItem", (PyCFunction) _wrap_delete_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
9112 | { "new_wxListItem", (PyCFunction) _wrap_new_wxListItem, METH_VARARGS | METH_KEYWORDS }, | |
9113 | { "wxListItemAttr_GetFont", (PyCFunction) _wrap_wxListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
9114 | { "wxListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9115 | { "wxListItemAttr_GetTextColour", (PyCFunction) _wrap_wxListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9116 | { "wxListItemAttr_HasFont", (PyCFunction) _wrap_wxListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
9117 | { "wxListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9118 | { "wxListItemAttr_HasTextColour", (PyCFunction) _wrap_wxListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9119 | { "wxListItemAttr_SetFont", (PyCFunction) _wrap_wxListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
9120 | { "wxListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_wxListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9121 | { "wxListItemAttr_SetTextColour", (PyCFunction) _wrap_wxListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
9122 | { "new_wxListItemAttr", (PyCFunction) _wrap_new_wxListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
8ab979d7 RD |
9123 | { NULL, NULL } |
9124 | }; | |
1d99702e RD |
9125 | #ifdef __cplusplus |
9126 | } | |
9127 | #endif | |
9128 | /* | |
9129 | * This table is used by the pointer type-checker | |
9130 | */ | |
9131 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 9132 | { "_wxEvent","_wxTreeEvent",SwigwxTreeEventTowxEvent}, |
1d99702e | 9133 | { "_wxEvent","_wxListEvent",SwigwxListEventTowxEvent}, |
1d99702e | 9134 | { "_signed_long","_long",0}, |
b1462dfa | 9135 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
9136 | { "_wxPrintQuality","_int",0}, |
9137 | { "_wxPrintQuality","_signed_int",0}, | |
9138 | { "_wxPrintQuality","_unsigned_int",0}, | |
9139 | { "_wxPrintQuality","_wxWindowID",0}, | |
9140 | { "_wxPrintQuality","_uint",0}, | |
9141 | { "_wxPrintQuality","_EBool",0}, | |
9142 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 9143 | { "_wxPrintQuality","_time_t",0}, |
1d99702e | 9144 | { "_wxNotifyEvent","_wxTreeEvent",SwigwxTreeEventTowxNotifyEvent}, |
c368d904 | 9145 | { "_wxNotifyEvent","_wxListEvent",SwigwxListEventTowxNotifyEvent}, |
1d99702e | 9146 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
9147 | { "_long","_unsigned_long",0}, |
9148 | { "_long","_signed_long",0}, | |
b1462dfa | 9149 | { "_size_t","_wxCoord",0}, |
1d99702e | 9150 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 9151 | { "_size_t","_time_t",0}, |
1d99702e RD |
9152 | { "_size_t","_unsigned_int",0}, |
9153 | { "_size_t","_int",0}, | |
9154 | { "_size_t","_wxWindowID",0}, | |
9155 | { "_size_t","_uint",0}, | |
b1462dfa | 9156 | { "_uint","_wxCoord",0}, |
1d99702e | 9157 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 9158 | { "_uint","_time_t",0}, |
1d99702e RD |
9159 | { "_uint","_size_t",0}, |
9160 | { "_uint","_unsigned_int",0}, | |
9161 | { "_uint","_int",0}, | |
9162 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 9163 | { "_wxChar","_char",0}, |
1d99702e | 9164 | { "_wxCommandEvent","_wxTreeEvent",SwigwxTreeEventTowxCommandEvent}, |
1d99702e | 9165 | { "_wxCommandEvent","_wxListEvent",SwigwxListEventTowxCommandEvent}, |
f6bcfd97 | 9166 | { "_char","_wxChar",0}, |
b1462dfa | 9167 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
9168 | { "_EBool","_wxPrintQuality",0}, |
9169 | { "_EBool","_signed_int",0}, | |
9170 | { "_EBool","_int",0}, | |
9171 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 9172 | { "_unsigned_long","_long",0}, |
b1462dfa | 9173 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
9174 | { "_signed_int","_wxPrintQuality",0}, |
9175 | { "_signed_int","_EBool",0}, | |
9176 | { "_signed_int","_wxWindowID",0}, | |
9177 | { "_signed_int","_int",0}, | |
1d99702e RD |
9178 | { "_WXTYPE","_short",0}, |
9179 | { "_WXTYPE","_signed_short",0}, | |
9180 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
9181 | { "_unsigned_short","_WXTYPE",0}, |
9182 | { "_unsigned_short","_short",0}, | |
9416aa89 | 9183 | { "_wxObject","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxObject}, |
9416aa89 | 9184 | { "_wxObject","_wxTreeEvent",SwigwxTreeEventTowxObject}, |
9416aa89 | 9185 | { "_wxObject","_wxPyTreeItemData",SwigwxPyTreeItemDataTowxObject}, |
c7e7022c | 9186 | { "_wxObject","_wxPyListCtrl",SwigwxPyListCtrlTowxObject}, |
9416aa89 | 9187 | { "_wxObject","_wxListEvent",SwigwxListEventTowxObject}, |
9416aa89 | 9188 | { "_wxObject","_wxListItem",SwigwxListItemTowxObject}, |
1d99702e RD |
9189 | { "_signed_short","_WXTYPE",0}, |
9190 | { "_signed_short","_short",0}, | |
1d99702e | 9191 | { "_unsigned_char","_byte",0}, |
f6bcfd97 | 9192 | { "_wxControl","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxControl}, |
c7e7022c | 9193 | { "_wxControl","_wxPyListCtrl",SwigwxPyListCtrlTowxControl}, |
b1462dfa | 9194 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 9195 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 9196 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
9197 | { "_unsigned_int","_size_t",0}, |
9198 | { "_unsigned_int","_uint",0}, | |
9199 | { "_unsigned_int","_wxWindowID",0}, | |
9200 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
9201 | { "_short","_WXTYPE",0}, |
9202 | { "_short","_unsigned_short",0}, | |
9203 | { "_short","_signed_short",0}, | |
b1462dfa | 9204 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 9205 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 9206 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
9207 | { "_wxWindowID","_size_t",0}, |
9208 | { "_wxWindowID","_EBool",0}, | |
9209 | { "_wxWindowID","_uint",0}, | |
9210 | { "_wxWindowID","_int",0}, | |
9211 | { "_wxWindowID","_signed_int",0}, | |
9212 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 9213 | { "_int","_wxCoord",0}, |
1d99702e | 9214 | { "_int","_wxPrintQuality",0}, |
c368d904 | 9215 | { "_int","_time_t",0}, |
1d99702e RD |
9216 | { "_int","_size_t",0}, |
9217 | { "_int","_EBool",0}, | |
9218 | { "_int","_uint",0}, | |
9219 | { "_int","_wxWindowID",0}, | |
9220 | { "_int","_unsigned_int",0}, | |
9221 | { "_int","_signed_int",0}, | |
c368d904 RD |
9222 | { "_time_t","_wxCoord",0}, |
9223 | { "_time_t","_wxPrintQuality",0}, | |
9224 | { "_time_t","_unsigned_int",0}, | |
9225 | { "_time_t","_int",0}, | |
9226 | { "_time_t","_wxWindowID",0}, | |
9227 | { "_time_t","_uint",0}, | |
9228 | { "_time_t","_size_t",0}, | |
b1462dfa RD |
9229 | { "_wxCoord","_int",0}, |
9230 | { "_wxCoord","_signed_int",0}, | |
9231 | { "_wxCoord","_unsigned_int",0}, | |
9232 | { "_wxCoord","_wxWindowID",0}, | |
9233 | { "_wxCoord","_uint",0}, | |
9234 | { "_wxCoord","_EBool",0}, | |
9235 | { "_wxCoord","_size_t",0}, | |
c368d904 | 9236 | { "_wxCoord","_time_t",0}, |
b1462dfa | 9237 | { "_wxCoord","_wxPrintQuality",0}, |
f6bcfd97 | 9238 | { "_wxEvtHandler","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxEvtHandler}, |
c7e7022c | 9239 | { "_wxEvtHandler","_wxPyListCtrl",SwigwxPyListCtrlTowxEvtHandler}, |
f6bcfd97 | 9240 | { "_wxWindow","_wxPyTreeCtrl",SwigwxPyTreeCtrlTowxWindow}, |
c7e7022c | 9241 | { "_wxWindow","_wxPyListCtrl",SwigwxPyListCtrlTowxWindow}, |
1d99702e RD |
9242 | {0,0,0}}; |
9243 | ||
8ab979d7 RD |
9244 | static PyObject *SWIG_globals; |
9245 | #ifdef __cplusplus | |
9246 | extern "C" | |
9247 | #endif | |
1d99702e | 9248 | SWIGEXPORT(void) initcontrols2c() { |
8ab979d7 RD |
9249 | PyObject *m, *d; |
9250 | SWIG_globals = SWIG_newvarlink(); | |
9251 | m = Py_InitModule("controls2c", controls2cMethods); | |
9252 | d = PyModule_GetDict(m); | |
c7e7022c RD |
9253 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
9254 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
9255 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
9256 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
9257 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
9258 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong((long) wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
9259 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_GET_INFO)); | |
9260 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_LIST_SET_INFO)); | |
9261 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
9262 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
9263 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_LIST_KEY_DOWN)); | |
9264 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
9265 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_COL_CLICK)); | |
9266 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
9267 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
9268 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
9269 | PyDict_SetItemString(d,"wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong((long) wxEVT_COMMAND_LIST_CACHE_HINT)); | |
9270 | PyDict_SetItemString(d,"wxLC_VRULES", PyInt_FromLong((long) wxLC_VRULES)); | |
9271 | PyDict_SetItemString(d,"wxLC_HRULES", PyInt_FromLong((long) wxLC_HRULES)); | |
9272 | PyDict_SetItemString(d,"wxLC_ICON", PyInt_FromLong((long) wxLC_ICON)); | |
9273 | PyDict_SetItemString(d,"wxLC_SMALL_ICON", PyInt_FromLong((long) wxLC_SMALL_ICON)); | |
9274 | PyDict_SetItemString(d,"wxLC_LIST", PyInt_FromLong((long) wxLC_LIST)); | |
9275 | PyDict_SetItemString(d,"wxLC_REPORT", PyInt_FromLong((long) wxLC_REPORT)); | |
9276 | PyDict_SetItemString(d,"wxLC_ALIGN_TOP", PyInt_FromLong((long) wxLC_ALIGN_TOP)); | |
9277 | PyDict_SetItemString(d,"wxLC_ALIGN_LEFT", PyInt_FromLong((long) wxLC_ALIGN_LEFT)); | |
9278 | PyDict_SetItemString(d,"wxLC_AUTOARRANGE", PyInt_FromLong((long) wxLC_AUTOARRANGE)); | |
9279 | PyDict_SetItemString(d,"wxLC_VIRTUAL", PyInt_FromLong((long) wxLC_VIRTUAL)); | |
9280 | PyDict_SetItemString(d,"wxLC_EDIT_LABELS", PyInt_FromLong((long) wxLC_EDIT_LABELS)); | |
9281 | PyDict_SetItemString(d,"wxLC_NO_HEADER", PyInt_FromLong((long) wxLC_NO_HEADER)); | |
9282 | PyDict_SetItemString(d,"wxLC_NO_SORT_HEADER", PyInt_FromLong((long) wxLC_NO_SORT_HEADER)); | |
9283 | PyDict_SetItemString(d,"wxLC_SINGLE_SEL", PyInt_FromLong((long) wxLC_SINGLE_SEL)); | |
9284 | PyDict_SetItemString(d,"wxLC_SORT_ASCENDING", PyInt_FromLong((long) wxLC_SORT_ASCENDING)); | |
9285 | PyDict_SetItemString(d,"wxLC_SORT_DESCENDING", PyInt_FromLong((long) wxLC_SORT_DESCENDING)); | |
9286 | PyDict_SetItemString(d,"wxLC_MASK_TYPE", PyInt_FromLong((long) wxLC_MASK_TYPE)); | |
9287 | PyDict_SetItemString(d,"wxLC_MASK_ALIGN", PyInt_FromLong((long) wxLC_MASK_ALIGN)); | |
9288 | PyDict_SetItemString(d,"wxLC_MASK_SORT", PyInt_FromLong((long) wxLC_MASK_SORT)); | |
9289 | PyDict_SetItemString(d,"wxLIST_MASK_STATE", PyInt_FromLong((long) wxLIST_MASK_STATE)); | |
af309447 RD |
9290 | PyDict_SetItemString(d,"wxLIST_MASK_TEXT", PyInt_FromLong((long) wxLIST_MASK_TEXT)); |
9291 | PyDict_SetItemString(d,"wxLIST_MASK_IMAGE", PyInt_FromLong((long) wxLIST_MASK_IMAGE)); | |
9292 | PyDict_SetItemString(d,"wxLIST_MASK_DATA", PyInt_FromLong((long) wxLIST_MASK_DATA)); | |
c7e7022c | 9293 | PyDict_SetItemString(d,"wxLIST_SET_ITEM", PyInt_FromLong((long) wxLIST_SET_ITEM)); |
af309447 RD |
9294 | PyDict_SetItemString(d,"wxLIST_MASK_WIDTH", PyInt_FromLong((long) wxLIST_MASK_WIDTH)); |
9295 | PyDict_SetItemString(d,"wxLIST_MASK_FORMAT", PyInt_FromLong((long) wxLIST_MASK_FORMAT)); | |
9296 | PyDict_SetItemString(d,"wxLIST_STATE_DONTCARE", PyInt_FromLong((long) wxLIST_STATE_DONTCARE)); | |
9297 | PyDict_SetItemString(d,"wxLIST_STATE_DROPHILITED", PyInt_FromLong((long) wxLIST_STATE_DROPHILITED)); | |
9298 | PyDict_SetItemString(d,"wxLIST_STATE_FOCUSED", PyInt_FromLong((long) wxLIST_STATE_FOCUSED)); | |
9299 | PyDict_SetItemString(d,"wxLIST_STATE_SELECTED", PyInt_FromLong((long) wxLIST_STATE_SELECTED)); | |
9300 | PyDict_SetItemString(d,"wxLIST_STATE_CUT", PyInt_FromLong((long) wxLIST_STATE_CUT)); | |
9301 | PyDict_SetItemString(d,"wxLIST_HITTEST_ABOVE", PyInt_FromLong((long) wxLIST_HITTEST_ABOVE)); | |
9302 | PyDict_SetItemString(d,"wxLIST_HITTEST_BELOW", PyInt_FromLong((long) wxLIST_HITTEST_BELOW)); | |
9303 | PyDict_SetItemString(d,"wxLIST_HITTEST_NOWHERE", PyInt_FromLong((long) wxLIST_HITTEST_NOWHERE)); | |
9304 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMICON)); | |
9305 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMLABEL)); | |
9306 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMRIGHT)); | |
9307 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxLIST_HITTEST_ONITEMSTATEICON)); | |
9308 | PyDict_SetItemString(d,"wxLIST_HITTEST_TOLEFT", PyInt_FromLong((long) wxLIST_HITTEST_TOLEFT)); | |
9309 | PyDict_SetItemString(d,"wxLIST_HITTEST_TORIGHT", PyInt_FromLong((long) wxLIST_HITTEST_TORIGHT)); | |
9310 | PyDict_SetItemString(d,"wxLIST_HITTEST_ONITEM", PyInt_FromLong((long) wxLIST_HITTEST_ONITEM)); | |
9311 | PyDict_SetItemString(d,"wxLIST_NEXT_ABOVE", PyInt_FromLong((long) wxLIST_NEXT_ABOVE)); | |
9312 | PyDict_SetItemString(d,"wxLIST_NEXT_ALL", PyInt_FromLong((long) wxLIST_NEXT_ALL)); | |
9313 | PyDict_SetItemString(d,"wxLIST_NEXT_BELOW", PyInt_FromLong((long) wxLIST_NEXT_BELOW)); | |
9314 | PyDict_SetItemString(d,"wxLIST_NEXT_LEFT", PyInt_FromLong((long) wxLIST_NEXT_LEFT)); | |
9315 | PyDict_SetItemString(d,"wxLIST_NEXT_RIGHT", PyInt_FromLong((long) wxLIST_NEXT_RIGHT)); | |
9316 | PyDict_SetItemString(d,"wxLIST_ALIGN_DEFAULT", PyInt_FromLong((long) wxLIST_ALIGN_DEFAULT)); | |
9317 | PyDict_SetItemString(d,"wxLIST_ALIGN_LEFT", PyInt_FromLong((long) wxLIST_ALIGN_LEFT)); | |
9318 | PyDict_SetItemString(d,"wxLIST_ALIGN_TOP", PyInt_FromLong((long) wxLIST_ALIGN_TOP)); | |
9319 | PyDict_SetItemString(d,"wxLIST_ALIGN_SNAP_TO_GRID", PyInt_FromLong((long) wxLIST_ALIGN_SNAP_TO_GRID)); | |
af309447 RD |
9320 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE", PyInt_FromLong((long) wxLIST_AUTOSIZE)); |
9321 | PyDict_SetItemString(d,"wxLIST_AUTOSIZE_USEHEADER", PyInt_FromLong((long) wxLIST_AUTOSIZE_USEHEADER)); | |
9322 | PyDict_SetItemString(d,"wxLIST_RECT_BOUNDS", PyInt_FromLong((long) wxLIST_RECT_BOUNDS)); | |
9323 | PyDict_SetItemString(d,"wxLIST_RECT_ICON", PyInt_FromLong((long) wxLIST_RECT_ICON)); | |
9324 | PyDict_SetItemString(d,"wxLIST_RECT_LABEL", PyInt_FromLong((long) wxLIST_RECT_LABEL)); | |
9325 | PyDict_SetItemString(d,"wxLIST_FIND_UP", PyInt_FromLong((long) wxLIST_FIND_UP)); | |
9326 | PyDict_SetItemString(d,"wxLIST_FIND_DOWN", PyInt_FromLong((long) wxLIST_FIND_DOWN)); | |
9327 | PyDict_SetItemString(d,"wxLIST_FIND_LEFT", PyInt_FromLong((long) wxLIST_FIND_LEFT)); | |
9328 | PyDict_SetItemString(d,"wxLIST_FIND_RIGHT", PyInt_FromLong((long) wxLIST_FIND_RIGHT)); | |
f6bcfd97 BP |
9329 | PyDict_SetItemString(d,"wxLIST_FORMAT_LEFT", PyInt_FromLong((long) wxLIST_FORMAT_LEFT)); |
9330 | PyDict_SetItemString(d,"wxLIST_FORMAT_RIGHT", PyInt_FromLong((long) wxLIST_FORMAT_RIGHT)); | |
9331 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTRE", PyInt_FromLong((long) wxLIST_FORMAT_CENTRE)); | |
9332 | PyDict_SetItemString(d,"wxLIST_FORMAT_CENTER", PyInt_FromLong((long) wxLIST_FORMAT_CENTER)); | |
00b6c4e3 RD |
9333 | PyDict_SetItemString(d,"wxTR_NO_BUTTONS", PyInt_FromLong((long) wxTR_NO_BUTTONS)); |
9334 | PyDict_SetItemString(d,"wxTR_HAS_BUTTONS", PyInt_FromLong((long) wxTR_HAS_BUTTONS)); | |
9335 | PyDict_SetItemString(d,"wxTR_TWIST_BUTTONS", PyInt_FromLong((long) wxTR_TWIST_BUTTONS)); | |
9336 | PyDict_SetItemString(d,"wxTR_NO_LINES", PyInt_FromLong((long) wxTR_NO_LINES)); | |
9337 | PyDict_SetItemString(d,"wxTR_MAC_BUTTONS", PyInt_FromLong((long) wxTR_MAC_BUTTONS)); | |
9338 | PyDict_SetItemString(d,"wxTR_SINGLE", PyInt_FromLong((long) wxTR_SINGLE)); | |
9339 | PyDict_SetItemString(d,"wxTR_MULTIPLE", PyInt_FromLong((long) wxTR_MULTIPLE)); | |
9340 | PyDict_SetItemString(d,"wxTR_EXTENDED", PyInt_FromLong((long) wxTR_EXTENDED)); | |
9341 | PyDict_SetItemString(d,"wxTR_EDIT_LABELS", PyInt_FromLong((long) wxTR_EDIT_LABELS)); | |
9342 | PyDict_SetItemString(d,"wxTR_LINES_AT_ROOT", PyInt_FromLong((long) wxTR_LINES_AT_ROOT)); | |
9343 | PyDict_SetItemString(d,"wxTR_HIDE_ROOT", PyInt_FromLong((long) wxTR_HIDE_ROOT)); | |
9344 | PyDict_SetItemString(d,"wxTR_ROW_LINES", PyInt_FromLong((long) wxTR_ROW_LINES)); | |
9345 | PyDict_SetItemString(d,"wxTR_HAS_VARIABLE_ROW_HEIGHT", PyInt_FromLong((long) wxTR_HAS_VARIABLE_ROW_HEIGHT)); | |
9346 | PyDict_SetItemString(d,"wxTR_DEFAULT_STYLE", PyInt_FromLong((long) wxTR_DEFAULT_STYLE)); | |
694759cf RD |
9347 | PyDict_SetItemString(d,"wxTreeItemIcon_Normal", PyInt_FromLong((long) wxTreeItemIcon_Normal)); |
9348 | PyDict_SetItemString(d,"wxTreeItemIcon_Selected", PyInt_FromLong((long) wxTreeItemIcon_Selected)); | |
9349 | PyDict_SetItemString(d,"wxTreeItemIcon_Expanded", PyInt_FromLong((long) wxTreeItemIcon_Expanded)); | |
9350 | PyDict_SetItemString(d,"wxTreeItemIcon_SelectedExpanded", PyInt_FromLong((long) wxTreeItemIcon_SelectedExpanded)); | |
9351 | PyDict_SetItemString(d,"wxTreeItemIcon_Max", PyInt_FromLong((long) wxTreeItemIcon_Max)); | |
164b735b RD |
9352 | PyDict_SetItemString(d,"wxTREE_HITTEST_ABOVE", PyInt_FromLong((long) wxTREE_HITTEST_ABOVE)); |
9353 | PyDict_SetItemString(d,"wxTREE_HITTEST_BELOW", PyInt_FromLong((long) wxTREE_HITTEST_BELOW)); | |
9354 | PyDict_SetItemString(d,"wxTREE_HITTEST_NOWHERE", PyInt_FromLong((long) wxTREE_HITTEST_NOWHERE)); | |
9355 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMBUTTON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMBUTTON)); | |
9356 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMICON)); | |
9357 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMINDENT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMINDENT)); | |
9358 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLABEL", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLABEL)); | |
9359 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMRIGHT", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMRIGHT)); | |
9360 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMSTATEICON", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMSTATEICON)); | |
9361 | PyDict_SetItemString(d,"wxTREE_HITTEST_TOLEFT", PyInt_FromLong((long) wxTREE_HITTEST_TOLEFT)); | |
9362 | PyDict_SetItemString(d,"wxTREE_HITTEST_TORIGHT", PyInt_FromLong((long) wxTREE_HITTEST_TORIGHT)); | |
9363 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMUPPERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMUPPERPART)); | |
9364 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEMLOWERPART", PyInt_FromLong((long) wxTREE_HITTEST_ONITEMLOWERPART)); | |
9365 | PyDict_SetItemString(d,"wxTREE_HITTEST_ONITEM", PyInt_FromLong((long) wxTREE_HITTEST_ONITEM)); | |
1b62f00d RD |
9366 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
9367 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
9368 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
9369 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
9370 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong((long) wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
9371 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_GET_INFO)); | |
9372 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SET_INFO)); | |
9373 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
9374 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
9375 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
9376 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
9377 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
9378 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong((long) wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
9379 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong((long) wxEVT_COMMAND_TREE_KEY_DOWN)); | |
9380 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
9381 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
9382 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong((long) wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
d1679124 | 9383 | PyDict_SetItemString(d,"wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong((long) wxEVT_COMMAND_TREE_END_DRAG)); |
9416aa89 RD |
9384 | |
9385 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
9386 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
1d99702e RD |
9387 | { |
9388 | int i; | |
9389 | for (i = 0; _swig_mapping[i].n1; i++) | |
9390 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
9391 | } | |
8ab979d7 | 9392 | } |